text: /*
  Stimulsoft.Dashboards.JS
  Version: 2021.3.6
  Build date: 2021.07.22
  License: https://www.stimulsoft.com/en/licensing/reports
  */
  !function(e){!('undefined'!=typeof process&&process.__nwjs)&&'object'==typeof exports&&'undefined'!=typeof module?module.exports=e(require('./stimulsoft.reports').Stimulsoft):'function'==typeof define&&define.amd?define(['./stimulsoft.reports'],e):window.Stimulsoft=window.Stimulsoft?window.Stimulsoft.Report.StiReport?e(window.Stimulsoft).Stimulsoft:Object.assign(window.Stimulsoft,{dashboardsFactory:e}):{dashboardsFactory:e}}(function(Stimulsoft){var StiOptions=Stimulsoft.StiOptions;var __awaiter=this&&this.__awaiter||function(e,a,r,n){function l(t){return t instanceof r?t:new r(function(e){e(t)})}return new(r=r||Promise)(function(t,r){function o(e){try{i(n.next(e))}catch(e){r(e)}}function s(e){try{i(n["throw"](e))}catch(e){r(e)}}function i(e){e.done?t(e.value):l(e.value).then(o,s)}i((n=n.apply(e,a||[])).next())})},Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft;!function(e){var t,r,o,e,s,i,a;r=t=e.Dashboard||(e.Dashboard={}),(e=o=r.StiTextFormatState||(r.StiTextFormatState={}))[e["None"]=0]="None",e[e["DecimalDigits"]=1]="DecimalDigits",e[e["DecimalSeparator"]=2]="DecimalSeparator",e[e["GroupSeparator"]=4]="GroupSeparator",e[e["GroupSize"]=8]="GroupSize",e[e["PositivePattern"]=16]="PositivePattern",e[e["NegativePattern"]=32]="NegativePattern",e[e["CurrencySymbol"]=64]="CurrencySymbol",e[e["PercentageSymbol"]=128]="PercentageSymbol",e[e["Abbreviation"]=256]="Abbreviation",e[e["NegativeInRed"]=512]="NegativeInRed",(e=s=r.StiFilterCondition||(r.StiFilterCondition={}))[e["EqualTo"]=0]="EqualTo",e[e["NotEqualTo"]=1]="NotEqualTo",e[e["GreaterThan"]=2]="GreaterThan",e[e["GreaterThanOrEqualTo"]=3]="GreaterThanOrEqualTo",e[e["LessThan"]=4]="LessThan",e[e["LessThanOrEqualTo"]=5]="LessThanOrEqualTo",e[e["Between"]=6]="Between",e[e["NotBetween"]=7]="NotBetween",e[e["Containing"]=8]="Containing",e[e["NotContaining"]=9]="NotContaining",e[e["BeginningWith"]=10]="BeginningWith",e[e["EndingWith"]=11]="EndingWith",e[e["IsNull"]=12]="IsNull",e[e["IsNotNull"]=13]="IsNotNull",(e=i=r.StiFilterItem||(r.StiFilterItem={}))[e["Argument"]=0]="Argument",e[e["Value"]=1]="Value",e[e["ValueEnd"]=2]="ValueEnd",e[e["Expression"]=3]="Expression",e[e["ValueOpen"]=4]="ValueOpen",e[e["ValueClose"]=5]="ValueClose",e[e["ValueLow"]=6]="ValueLow",e[e["ValueHigh"]=7]="ValueHigh",(r=a=r.StiFilterDataType||(r.StiFilterDataType={}))[r["String"]=0]="String",r[r["Numeric"]=1]="Numeric",r[r["DateTime"]=2]="DateTime",r[r["Boolean"]=3]="Boolean",r[r["Expression"]=4]="Expression"}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Components||(e.Components={}),(e=o=e.StiMeterIdent||(e.StiMeterIdent={}))[e["ArgumentChartMeter"]=1]="ArgumentChartMeter",e[e["SeriesChartMeter"]=2]="SeriesChartMeter",e[e["ValueChartMeter"]=3]="ValueChartMeter",e[e["StartValueChartMeter"]=4]="StartValueChartMeter",e[e["EndValueChartMeter"]=5]="EndValueChartMeter",e[e["OpenValueChartMeter"]=6]="OpenValueChartMeter",e[e["CloseValueChartMeter"]=7]="CloseValueChartMeter",e[e["LowValueChartMeter"]=8]="LowValueChartMeter",e[e["HighValueChartMeter"]=9]="HighValueChartMeter",e[e["WeightChartMeter"]=10]="WeightChartMeter",e[e["XChartMeter"]=11]="XChartMeter",e[e["YChartMeter"]=12]="YChartMeter",e[e["MaxGaugeMeter"]=13]="MaxGaugeMeter",e[e["MinGaugeMeter"]=14]="MinGaugeMeter",e[e["SeriesGaugeMeter"]=15]="SeriesGaugeMeter",e[e["ValueGaugeMeter"]=16]="ValueGaugeMeter",e[e["TargetGaugeMeter"]=17]="TargetGaugeMeter",e[e["SeriesIndicatorMeter"]=18]="SeriesIndicatorMeter",e[e["TargetIndicatorMeter"]=19]="TargetIndicatorMeter",e[e["ValueIndicatorMeter"]=20]="ValueIndicatorMeter",e[e["SeriesProgressMeter"]=21]="SeriesProgressMeter",e[e["TargetProgressMeter"]=22]="TargetProgressMeter",e[e["ValueProgressMeter"]=23]="ValueProgressMeter",e[e["LatitudeMapMeter"]=24]="LatitudeMapMeter",e[e["LongitudeMapMeter"]=25]="LongitudeMapMeter",e[e["LocationMapMeter"]=26]="LocationMapMeter",e[e["LocationValueMapMeter"]=27]="LocationValueMapMeter",e[e["LocationColorMapMeter"]=28]="LocationColorMapMeter",e[e["LocationArgumentMapMeter"]=29]="LocationArgumentMapMeter",e[e["KeyMapMeter"]=30]="KeyMapMeter",e[e["NameMapMeter"]=31]="NameMapMeter",e[e["ValueMapMeter"]=32]="ValueMapMeter",e[e["GroupMapMeter"]=33]="GroupMapMeter",e[e["ColorMapMeter"]=34]="ColorMapMeter",e[e["ColorScaleColumn"]=35]="ColorScaleColumn",e[e["DataBarsColumn"]=36]="DataBarsColumn",e[e["DimensionColumn"]=37]="DimensionColumn",e[e["IndicatorColumn"]=38]="IndicatorColumn",e[e["MeasureColumn"]=39]="MeasureColumn",e[e["SparklinesColumn"]=40]="SparklinesColumn",e[e["BubbleColumn"]=41]="BubbleColumn",e[e["PivotColumn"]=42]="PivotColumn",e[e["PivotRow"]=43]="PivotRow",e[e["PivotSummary"]=44]="PivotSummary",e[e["NameListBoxMeter"]=45]="NameListBoxMeter",e[e["KeyListBoxMeter"]=46]="KeyListBoxMeter",e[e["KeyTreeViewMeter"]=47]="KeyTreeViewMeter",e[e["KeyTreeViewBoxMeter"]=48]="KeyTreeViewBoxMeter",e[e["NameComboBoxMeter"]=49]="NameComboBoxMeter",e[e["KeyComboBoxMeter"]=50]="KeyComboBoxMeter",e[e["ValueDatePickerMeter"]=51]="ValueDatePickerMeter",e[e["TextMeter"]=52]="TextMeter",e[e["ImageMeter"]=53]="ImageMeter"}(Stimulsoft=Stimulsoft||{}),function(E){var e,t,r;t=e=E.Dashboard||(E.Dashboard={}),function(e){var t=E.Report.Helpers.StiAppExpressionParser,r=E.Base.StiAppExpressionHelper,o=E.System.StiString,s=E.Base.JsonReportObject.IStiJsonReportObject,i=E.Report.Dashboard.ImplementsIStiDashboard,a=E.Base.StiJsonReportObjectHelper,n=E.Base.StiKeyHelper,l=E.Base.Drawing.StiSolidBrush,u=E.Base.Drawing.StiBrush,h=E.Report.Units.StiUnit,m=E.Report.Components.StiMargins,c=E.Report.StiComponentId,d=E.Data.Engine.StiDataSourcePicker,p=E.System.Drawing.Color,S=E.Report.Dashboard.IStiSkipOwnFilter,g=E.Data.Engine.IStiUserFilters,b=E.Report.Dashboard.Helpers.StiCrossLinkedFilterHelper,f=E.Report.Dashboard.IStiFilterElement,C=E.Report.Dashboard.StiGroupElementHelper,y=E.Report.Dashboard.IStiElement,v=E.System.Collections.List,w=E.Report.Dashboard.StiElementStyleIdent,D=E.System.Enum,x=E.Report.Dashboard.IStiDashboard,T=E.Report.Components.StiPage,F=E.Base.Localization.StiLocalization,M=E.Base.Drawing.StiBorder,I=E.System.Drawing.Size,k=E.Report.Components.StiDashboardViewMode,R=E.Report.Dashboard.IStiAltProperties,A=E.Report.Dashboard.IStiTitleElement,B=E.System.Drawing.Rectangle,O=E.Report.Dashboard.StiDashboardContentAlignment;class P extends T{constructor(e=null){super(e),this.backColor=p.transparent,this.margins=new m(10,10,10,10),this._style=w.Blue,this.customStyleName="",this._width2=1200,this._height2=600,this._altSize=I.empty,this._dashboardViewMode=k.Desktop,this._contentAlignment=O.StretchXY,this._altContentAlignment=O.StretchXY,this._deviceWidth=480,this.key=n.generateKey(),this.width=1200,this.height=600}implements(){return P.ImplementsStiDashboard||(P.ImplementsStiDashboard=super.implements().concat([x,...i,s])),P.ImplementsStiDashboard}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.removeProperty("Margins"),t.removeProperty("MirrorMargins"),t.removeProperty("PrintHeadersFootersFromPreviousPage"),t.removeProperty("PrintOnPreviousPage"),t.removeProperty("StopBeforePrint"),t.removeProperty("LargeHeight"),t.removeProperty("LargeHeightFactor"),t.removeProperty("ResetPageNumber"),t.removeProperty("Watermark"),t.removeProperty("ExcelSheet"),t.removeProperty("CanBreak"),t.removeProperty("Interaction"),t.removeProperty("PaperSourceFirstPage"),t.removeProperty("PaperSourceOfFirstPage"),t.removeProperty("PaperSourceOtherPages"),t.removeProperty("PaperSourceOfOtherPages"),t.removeProperty("UseParentStyles"),t.removeProperty("Conditions"),t.removeProperty("PaperSize"),t.removeProperty("NumberOfCopies"),t.removeProperty("BeginRenderEvent"),t.removeProperty("RenderingEvent"),t.removeProperty("EndRenderEvent"),t.removeProperty("GetToolTipEvent"),t.removeProperty("GetTagEvent"),t.removeProperty("GetBookmarkEvent"),t.removeProperty("GetHyperlinkEvent"),t.removeProperty("BeforePrintEvent"),t.removeProperty("AfterPrintEvent"),t.removeProperty("MouseEnterEvent"),t.removeProperty("MouseLeaveEvent"),t.removeProperty("ClickEvent"),t.removeProperty("DoubleEvent"),t.removeProperty("ColumnBeginRenderEvent"),t.removeProperty("ColumnEndRenderEvent"),t.removeProperty("GetExcelSheetEvent"),t.removeProperty("GetDrillDownReportEvent"),t.addPropertyNumber("Width",this.width,1200),t.addPropertyNumber("Height",this.height,600),t.addPropertyNumber("DeviceWidth",this.deviceWidth,480),t.addPropertyEnum("Style",w,this.style,w.Blue),t.addPropertyStringNullOrEmpty("Border",a.Serialize.jBorder(this.border)),t.addPropertyStringNullOrEmpty("BackColor",a.Serialize.jColor(this.backColor,p.transparent)),t.addPropertyEnum("DashboardViewMode",k,this.dashboardViewMode,k.Desktop),t.addPropertyString("AltSize",a.Serialize.sizeD(this.altSize),a.Serialize.sizeD(I.empty)),t.addPropertyEnum("ContentAlignment",O,this.contentAlignment,O.StretchXY),t.addPropertyEnum("AltContentAlignment",O,this.altContentAlignment,O.StretchXY),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"Border":this.border=a.Deserialize.border(t.value);break;case"BackColor":this.backColor=a.Deserialize.color(t.value.toString());break;case"Style":this.style=D.parse(w,t.value.toString());break;case"Width":this.width=t.value.stimulsoft().toNumber();break;case"Height":this.height=t.value.stimulsoft().toNumber();break;case"DeviceWidth":this.deviceWidth=t.value.stimulsoft().toNumber();break;case"DashboardViewMode":this.dashboardViewMode=D.parse(k,t.value.toString());break;case"AltSize":this.altSize=a.Deserialize.sizeD(t.value.toString());break;case"ContentAlignment":this.contentAlignment=D.parse(O,t.value.toString());break;case"AltContentAlignment":this.altContentAlignment=D.parse(O,t.value.toString());break}}loadFromXml(r,e){super.loadFromXml(r,e);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"Border":case"br":this.border=M.loadFromXml(e.textContent);break;case"BackColor":this.backColor=E.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"Style":this.style=D.parse(w,e.textContent);break;case"Width":this.width=e.textContent.stimulsoft().toNumber();break;case"Height":this.height=e.textContent.stimulsoft().toNumber();break;case"DeviceWidth":this.deviceWidth=e.textContent.stimulsoft().toNumber();break;case"DashboardViewMode":this.dashboardViewMode=D.parse(k,e.textContent);break;case"AltSize":this.altSize=E.System.Drawing.Size.convertFromXml(e.textContent);break;case"ContentAlignment":this.contentAlignment=D.parse(O,e.textContent);break;case"AltContentAlignment":this.altContentAlignment=D.parse(O,e.textContent);break}}}getMeters(e=!0,t=null){return this.getElements(e,t).selectMany(e=>e.getMeters())}getElements(t=!0,r=null){return null==r?(t?this.getComponents():this.components).toList().where(e=>e.is(y)).cast():o.isNullOrWhiteSpace(r)?(t?this.getComponents():this.components).toList().where(e=>e.is(y)).cast().where(e=>o.isNullOrWhiteSpace(C.getGroup(e))).toList():this.report.pages.toList().where(e=>e.isDashboard).selectMany(e=>(t?e.getComponents():e.components).toList()).where(e=>e.is(y)).cast().where(e=>C.getGroup(e)==r)}getUserFilters(t){if(null==t)return null;var e=C.getGroup(t);let o=this.getElements(!0,e),s=t.as(f);if(null!=s){if(b.isCrossLinkedFilter(s))return null;let e=o.where(e=>e.is(f)).cast().firstOrDefault(e=>e.getKey()==s.getParentKey());if(null==e)return null;let t=new v,r=e.is(g)?e.userFilters:null;return null!=r&&t.addRange(r),r=this.as(x).getUserFilters(e.as(y)),null!=r&&t.addRange(r),t}return o.where(e=>e.is(g)&&(e!=t||!(e.is(S)&&e.allowSkipOwnFilter))).cast().selectMany(this.getUserFilters3)}getUserFilters3(t){return t.userFilters.forEach(e=>e.elementKey=t.as(y).key),t.userFilters}getUnplacedElements(){return this.getComponents().toList().where(e=>0==e.width||0==e.height).cast()}switchDashboardViewMode(e){if(this.dashboardViewMode==e)return;this.dashboardViewMode=e;let r=!1;var t,o;this.altSize.isEmpty&&e==k.Mobile&&(this.altSize=new I(480,800),r=!0,this.altContentAlignment=this.contentAlignment);for(o of this.getComponents().list){let t=o.as(R);if(null!=t){var s=o.clientRectangle.clone(),s;o.clientRectangle=t.altClientRectangle.clone(),t.altClientRectangle=s;let e=o.as(A);null!=(null===e||void 0===e?void 0:e.title)&&(s=e.title.visible,r||(e.title.visible=t.altTitleVisible),t.altTitleVisible=s)}}var e=new I(this.width,this.height);this.width=this.altSize.width,this.height=this.altSize.height,this.altSize=e;var e=this.contentAlignment;this.contentAlignment=this.altContentAlignment,this.altContentAlignment=e}removeMobileSurface(){var e,t;this.altSize=I.empty;for(t of this.getComponents().list){let e=t.as(R);null!=e&&(e.altClientRectangle=B.empty)}this.altContentAlignment=O.StretchXY}fetchAllMeters(){return new v}getNestedPages(){return new v}get isEnabled(){return r.isExpressionSpecified(this,"enabled")?t.parseBoolExpression(this,"enabled",!0):this.enabled}get isDefined(){return 0<this.components.count}get isQuerable(){return!0}shouldSerializeBackColor(){return!p.transparent.equals(this.backColor)}retrieveUsedDataNames(t){return this.getElements(!0,t).selectMany(e=>e.retrieveUsedDataNames(t)).distinct()}getDictionary(){return null!=this.report?this.report.dictionary:null}getDataSources(e){return d.fetch(this,null,e,null!=this.report?this.getDictionary().fetchDataSources():null)}get serviceCategory(){return F.get("Permissions","ItemDashboards")}get componentId(){return c.StiDashboard}get localizedName(){return F.get("Components","StiDashboard")}get gridSize(){return this.report.info.gridSizePoints}get unit(){return h.HundredthsOfInch}get brush(){return new l(this.backColor)}set brush(e){this.backColor=u.toColor(e)}get skip(){return!0}set skip(e){}convert(e,t,r=!1){}getKey(){return this.key}createNew(){return new P}get key(){return this.guid}set key(e){this.guid=e}get style(){return this._style}set style(e){if(this._style==e)return;e==w.Auto&&(e=D.getValues(typeof w).stimulsoft().toList().cast().firstOrDefault(e=>e!=w.Auto)),this._style=e}get width(){return this._width2}set width(e){this._width2=Math.round2(e,2)}get height(){return this._height2}set height(e){this._height2=Math.round2(e,2)}get altSize(){return this._altSize}set altSize(e){this._altSize=e}get dashboardViewMode(){return this._dashboardViewMode}set dashboardViewMode(e){this._dashboardViewMode=e}get contentAlignment(){return this._contentAlignment}set contentAlignment(e){this._contentAlignment=e}get altContentAlignment(){return this._altContentAlignment}set altContentAlignment(e){this._altContentAlignment=e}get deviceWidth(){return this._deviceWidth}set deviceWidth(e){this._deviceWidth=e}get isMobileSurfacePresent(){return!this.altSize.isEmpty}}e.StiDashboard=P}(r=t.Components||(t.Components={}))}(Stimulsoft=Stimulsoft||{}),function(h){var e,t,r;t=e=h.Dashboard||(h.Dashboard={}),function(r){var t=h.System.StiString,o=h.System.Type,s=h.Base.StiKeyHelper,e=h.Base.JsonReportObject.IStiJsonReportObject,i=h.Base.Meters.IStiLocalizedMeter,a=h.Base.Meters.IStiMeter,n=h.Base.StiJsonSaveMode,l=h.Base.StiJson;class u{constructor(e,t,r){this.expression="",this.label="",null==e&&(e=s.generateKey()),this.key=e,null!=t&&(this.expression=t),null!=r&&(this.label=r)}is(e){if(e instanceof h.System.Interface)return-1!=this.implements().indexOf(e);if("function"==typeof e)return this instanceof e;if(null==e)throw new Error("Type for comparison is 'undefined'");return!1}is2(e){return this.is(e)}as(e){if(this.is(e))return this;return null}implements(){return u.ImplementsStiMeter||(u.ImplementsStiMeter=[a,i,e]),u.ImplementsStiMeter}clone(e=!0,t=!0){return this.stimulsoft().memberwiseClone()}saveToString(){return this.saveToJsonObject(n.Report).serialize()}loadFromString(e){let t=new l;t.deserialize(e),this.loadFromJsonObject(t)}saveToJsonObject(e){let t=new l;return t.addPropertyEnum("Ident",r.StiMeterIdent,this.ident),t.addPropertyStringNullOrEmpty("Key",this.key),t.addPropertyStringNullOrEmpty("Expression",this.expression),t.addPropertyStringNullOrEmpty("Label",this.label),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"Key":this.key=t.value.toString();break;case"Expression":this.expression=t.value.toString();break;case"Label":this.label=t.value.toString();break}}loadFromXml(t,e,r){for(let e=0;e<t.childNodes.length;e++){var o=t.childNodes[e];switch(o.nodeName){case"Key":this.key=o.textContent;break;case"Expression":this.expression=o.textContent;break;case"Label":this.label=o.textContent;break}}}getUniqueCode(){var e=null!=this.expression?this.expression.stimulsoft().getHashCode():0,e;return e=397*(e=397*(e=397*e^o.getTypeName(this).stimulsoft().getHashCode())^(null!=this.label?this.label.stimulsoft().getHashCode():0))^(null!=this.key?this.key.stimulsoft().getHashCode():0),Math.abs(e)}get localizedName(){return""}isDefault(){return this.getIsDefault()}getIsDefault(){return null==this.key&&null!=this.expression&&0==this.expression.length&&null!=this.label&&0==this.label.length}toString(){var e=this.stimulsoft().getType().stimulsoft().getTypeName();return t.isNullOrWhiteSpace(this.expression)?e:`${e}-\"{Expression}\"`}}r.StiMeter=u}(r=t.Components||(t.Components={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r;t=e=o.Dashboard||(o.Dashboard={}),function(e){var t=o.Base.Meters.IStiDimensionMeter;class r extends e.StiMeter{constructor(e,t,r){super(e,t,r)}implements(){return r.ImplementsStiDimensionMeter||(r.ImplementsStiDimensionMeter=super.implements().concat([t])),r.ImplementsStiDimensionMeter}}e.StiDimensionMeter=r}(r=t.Components||(t.Components={}))}(Stimulsoft=Stimulsoft||{}),function(E){var e,t,r,L,o;t=e=E.Dashboard||(E.Dashboard={}),L=r=t.Components||(t.Components={}),function(e){var t=E.Data.Engine.StiDataSourcePicker,r=E.System.Drawing.Rectangle,o=E.Base.JsonReportObject.IStiJsonReportObject,s=E.Report.Dashboard.ImplementsIStiMargin,i=E.Report.Dashboard.ImplementsIStiPadding,a=E.Report.Dashboard.ImplementsIStiPanel,n=E.Report.Dashboard.ImplementsIStiAltProperties,l=E.Report.Components.StiComponentToolboxPosition,u=E.Report.Dashboard.IStiDashboard,h=E.Base.StiJsonReportObjectHelper,m=E.Base.Drawing.StiEmptyBrush,c=E.Base.StiKeyHelper,d=E.Report.Components.StiToolboxCategory,p=E.Base.Drawing.StiSolidBrush,S=E.Base.Drawing.StiBrush,g=E.Base.Localization.StiLocalization,b=E.System.Drawing.Color,f=E.Base.Drawing.StiSimpleBorder,C=E.Report.Dashboard.StiPadding,y=E.Report.Dashboard.StiMargin,v=E.System.Collections.List,w=E.Report.Dashboard.IStiElement,D=E.Report.Dashboard.StiGroupElementHelper,x=E.Report.Dashboard.IStiGroupElement,T=E.Report.StiComponentId,F=E.Report.Dashboard.IStiMargin,M=E.Report.Dashboard.IStiPadding,I=E.Report.Dashboard.IStiPanel,k=E.Report.Components.IStiSimpleBorder,R=E.Report.Components.StiPanel,A=E.Base.Localization.StiLocalization,B=E.Report.Dashboard.IStiAltProperties,O=E.System.Drawing.Rectangle;class P extends R{constructor(e=r.empty){super(e),this.margin=y.create(3),this.padding=C.create(0),this.border2=new f,this.backColor=b.transparent,this.altTitleVisible=!0,this.altClientRectangle=O.empty,this.defaultClientRectangle=new r(0,0,300,300),this.helpUrl="user-manual/dashboards_panel.htm",this.key=c.generateKey(),this.brush=new m,this.placeOnToolbox=!0}implements(){return P.ImplementsStiPanelElement||(P.ImplementsStiPanelElement=super.implements().concat([k,I,M,F,B,...a,...i,...s,...n,o])),P.ImplementsStiPanelElement}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.removeProperty("Border"),t.removeProperty("UseParentStyles"),t.removeProperty("MinSize"),t.removeProperty("MaxSize"),t.removeProperty("Interaction"),t.removeProperty("PrintOn"),t.removeProperty("GrowToHeight"),t.removeProperty("ShiftMode"),t.removeProperty("CanShrink"),t.removeProperty("CanGrow"),t.removeProperty("Printable"),t.removeProperty("Bookmark"),t.removeProperty("Hyperlink"),t.removeProperty("Conditions"),t.removeProperty("GetBookmarkEvent"),t.removeProperty("GetHyperlinkEvent"),t.removeProperty("GetTagEvent"),t.removeProperty("GetToolTipEvent"),t.removeProperty("BeforePrintEvent"),t.removeProperty("AfterPrintEvent"),t.removeProperty("ClickEvent"),t.removeProperty("DoubleEvent"),t.removeProperty("MouseEnterEvent"),t.removeProperty("MouseLeaveEvent"),t.removeProperty("GetDrillDownReportEvent"),t.addPropertyJObject("Margin",this.margin.saveToJsonObject(e,3,3,3,3)),t.addPropertyJObject("Padding",this.padding.saveToJsonObject(e,0,0,0,0)),t.addPropertyStringNullOrEmpty("Border",h.Serialize.jBorder2(this.border2)),t.addPropertyStringNullOrEmpty("BackColor",h.Serialize.jColor(this.backColor,b.transparent)),t.addPropertyString("AltClientRectangle",h.Serialize.rectangleD(this.altClientRectangle),h.Serialize.rectangleD(O.empty)),t.addPropertyBool("AltTitleVisible",this.altTitleVisible,!0),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"Border":this.border2=h.Deserialize.simpleBorder(t.value);break;case"BackColor":this.backColor=h.Deserialize.color(t.value.toString());break;case"Margin":this.margin.loadFromJsonObject(t.value);break;case"Padding":this.padding.loadFromJsonObject(t.value);break;case"AltClientRectangle":this.altClientRectangle=h.Deserialize.rectangleD(t.value);break;case"AltTitleVisible":this.altTitleVisible=t.value.stimulsoft().toBoolean();break}}loadFromXml(r,e){super.loadFromXml(r,e);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"Border":this.border2=h.Deserialize.simpleBorder(e.textContent);break;case"BackColor":this.backColor=E.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"Margin":this.margin.loadFromXml(e);break;case"Padding":this.padding.loadFromXml(e);break;case"AltClientRectangle":this.altClientRectangle=this.loadRectangleDFromXml(e.textContent);break;case"AltTitleVisible":this.altTitleVisible=e.textContent.stimulsoft().toBoolean();break}}}get componentId(){return T.StiPanelElement}getMeters(e=!0,t=null){return this.getElements(e,t).selectMany(e=>e.getMeters())}getElements(e=!0,t=null){let r=(e?this.getComponents():this.components).toList().where(e=>e.is(w)).cast();return(null==t?r.where(e=>!e.is(x)||null==D.getGroup(e)):r.where(e=>D.getGroup(e)==t)).toList()}fetchAllMeters(){return new v}getMeters2(){return new v}getFilterRules(){return new v}getNestedPages(){return new v}get dashboard(){return this.page.as(u)}get isDefined(){return!0}get isQuerable(){return!1}get isEnabled(){return this.enabled}get zoom(){return null==this.report||null==this.report.info?1:this.report.info.zoom}retrieveUsedDataNames(e){return new v}getDictionary(){return null!=this.report?this.report.dictionary:null}getDataSources(e){var e;return t.fetch(this,null,e,null===(e=this.getDictionary())||void 0===e?void 0:e.fetchDataSources())}shouldSerializeMargin(){return!(3==this.margin.left&&3==this.margin.right&&3==this.margin.top&&3==this.margin.bottom)}shouldSerializePadding(){return!this.padding.isEmpty}shouldSerializeBorder(){return null==this.border||!this.border.isDefault()}shouldSerializeBackColor(){return!b.transparent.equals(this.backColor)}get toolboxPosition(){return l.TextElement}get localizedName(){return g.get("Components","StiPanel")}get brush(){return new p(this.backColor)}set brush(e){this.backColor=S.toColor(e)}get serviceCategory(){return A.get("Permissions","ItemDashboards")}get localizedCategory(){return this.serviceCategory}get toolboxCategory(){return d.Dashboards}canContainIn(e){return e.is(L.StiDashboard)}createNew(){return new P}get key(){return this.guid}set key(e){this.guid=e}}e.StiPanelElement=P}(o=L.Panel||(L.Panel={}))}(Stimulsoft=Stimulsoft||{}),function(A){var e,t,r;t=e=A.Dashboard||(A.Dashboard={}),function(t){var e=A.Report.Helpers.StiAppExpressionParser,r=A.Base.StiAppExpressionHelper,o=A.Data.Engine.StiDataSourcePicker,s=A.System.Drawing.Rectangle,i=A.Base.JsonReportObject.IStiJsonReportObject,a=A.Report.Dashboard.ImplementsIStiElement,n=A.Report.Components.ImplementsIStiBackColor,l=A.Report.Dashboard.ImplementsIStiPadding,u=A.Report.Dashboard.ImplementsIStiMargin,h=A.Report.Dashboard.ImplementsIStiAltProperties,m=A.Report.Components.StiToolboxCategory,c=A.Report.Dashboard.StiMargin,d=A.Base.StiJsonReportObjectHelper,p=A.Base.StiKeyHelper,S=A.Dashboard.Components.Panel.StiPanelElement,g=A.Report.Dashboard.StiPadding,b=A.Base.Drawing.StiSimpleBorder,f=A.Report.Dashboard.IStiDashboard,C=A.System.Collections.List,y=A.System.Drawing.Color,v=A.Report.Dashboard.IStiMargin,w=A.Report.Dashboard.IStiPadding,D=A.Report.Components.IStiBackColor,x=A.Report.Components.IStiSimpleBorder,T=A.Report.Dashboard.IStiElement,F=A.Report.Components.StiComponent,M=A.Base.Localization.StiLocalization,I=A.Report.Dashboard.IStiAltProperties,k=A.System.Drawing.Rectangle;class R extends F{constructor(e=s.empty){super(e),this.border2=new b,this.backColor=y.transparent,this.margin=c.create(3),this.padding=g.create(5),this.altTitleVisible=!0,this.altClientRectangle=k.empty,this.toolboxCategory=m.Dashboards,this.defaultClientRectangle=new s(0,0,280,280),this.key=p.generateKey(),this.placeOnToolbox=!0}implements(){return R.ImplementsStiElement||(R.ImplementsStiElement=super.implements().concat([T,x,D,w,v,I,...a,...n,...l,...u,...h,i])),R.ImplementsStiElement}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.removeProperty("UseParentStyles"),t.removeProperty("MinSize"),t.removeProperty("MaxSize"),t.removeProperty("Interaction"),t.removeProperty("PrintOn"),t.removeProperty("GrowToHeight"),t.removeProperty("ShiftMode"),t.removeProperty("CanShrink"),t.removeProperty("CanGrow"),t.removeProperty("Printable"),t.removeProperty("Bookmark"),t.removeProperty("Hyperlink"),t.removeProperty("Conditions"),t.removeProperty("GetBookmarkEvent"),t.removeProperty("GetHyperlinkEvent"),t.removeProperty("GetTagEvent"),t.removeProperty("GetToolTipEvent"),t.removeProperty("BeforePrintEvent"),t.removeProperty("AfterPrintEvent"),t.removeProperty("ClickEvent"),t.removeProperty("DoubleEvent"),t.removeProperty("MouseEnterEvent"),t.removeProperty("MouseLeaveEvent"),t.removeProperty("GetDrillDownReportEvent"),t.addPropertyJObject("Margin",this.margin.saveToJsonObject(e,3,3,3,3)),t.addPropertyJObject("Padding",this.padding.saveToJsonObject(e,5,5,5,5)),t.addPropertyStringNullOrEmpty("Border",d.Serialize.jBorder2(this.border2)),t.addPropertyStringNullOrEmpty("BackColor",d.Serialize.jColor(this.backColor,y.transparent)),t.addPropertyString("AltClientRectangle",d.Serialize.rectangleD(this.altClientRectangle),d.Serialize.rectangleD(k.empty)),t.addPropertyBool("AltTitleVisible",this.altTitleVisible,!0),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"Border":this.border2=d.Deserialize.simpleBorder(t.value);break;case"BackColor":this.backColor=d.Deserialize.color(t.value.toString());break;case"Margin":this.margin.loadFromJsonObject(t.value);break;case"Padding":this.padding.loadFromJsonObject(t.value);break;case"AltClientRectangle":this.altClientRectangle=d.Deserialize.rectangleD(t.value);break;case"AltTitleVisible":this.altTitleVisible=t.value.stimulsoft().toBoolean();break}}loadFromXml(r,e){super.loadFromXml(r,e);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"Border":this.border2=d.Deserialize.simpleBorder(e.textContent);break;case"BackColor":this.backColor=A.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"Margin":this.margin.loadFromXml(e);break;case"Padding":this.padding.loadFromXml(e);break;case"AltClientRectangle":this.altClientRectangle=this.loadRectangleDFromXml(e.textContent);break;case"AltTitleVisible":this.altTitleVisible=e.textContent.stimulsoft().toBoolean();break}}}convert(e,t,r=!1){}fetchAllMeters(){return new C}getMeters(){return new C}get dashboard(){return this.page.as(f)}get isDefined(){return!0}get isQuerable(){return!0}get isEnabled(){return r.isExpressionSpecified(this,"enabled")?e.parseBoolExpression(this,"enabled",!0):this.enabled}get zoom(){return null!=this.page?this.page.zoom:1}retrieveUsedDataNames2(e){return this.retrieveUsedDataNames()}retrieveUsedDataNames(){return new C}getDictionary(){return null!=this.report?this.report.dictionary:null}getDataSources(e){var e;return o.fetch(this,null,e,null===(e=this.getDictionary())||void 0===e?void 0:e.fetchDataSources())}clone(e){let t=super.clone(e);return t.border2=null!=this.border2?this.border2.clone():null,t}shouldSerializeBorder(){return null==this.border2||!this.border2.isDefault()}shouldSerializeBackColor(){return!y.transparent.equals(this.backColor)}shouldSerializeMargin(){return!(3==this.margin.left&&3==this.margin.top&&3==this.margin.right&&3==this.margin.bottom)}shouldSerializePadding(){return null==this.padding||5!=this.padding.left||5!=this.padding.top||5!=this.padding.right||5!=this.padding.bottom}get serviceCategory(){return M.get("Permissions","ItemDashboards")}canContainIn(e){return e.is(t.StiDashboard)||e.is(S)}get localizedCategory(){return this.serviceCategory}get localizedName(){return M.get("Components","StiDashboard")}get key(){return this.guid}set key(e){this.guid=e}getNestedPages(){return null}}t.StiElement=R}(r=t.Components||(t.Components={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r;t=e=o.Dashboard||(o.Dashboard={}),function(e){var t=o.Base.Meters.IStiMeasureMeter;class r extends e.StiMeter{constructor(e,t,r){super(e,t,r)}implements(){return r.ImplementsStiMeasureMeter||(r.ImplementsStiMeasureMeter=super.implements().concat([t])),r.ImplementsStiMeasureMeter}}e.StiMeasureMeter=r}(r=t.Components||(t.Components={}))}(Stimulsoft=Stimulsoft||{}),function(d){var e,t,r;t=e=d.Dashboard||(d.Dashboard={}),function(e){var t=d.Report.Dashboard.ImplementsIStiTitle,o=d.System.Enum,r=d.Base.StiJsonReportObjectHelper,s=d.Base.JsonReportObject.IStiJsonReportObject,i=d.Report.Dashboard.IStiTitle,a=d.System.ICloneable,n=d.System.Drawing.Color,l=d.System.Drawing.FontStyle,u=d.System.Drawing.Font,h=d.Base.Drawing.StiHorAlignment,m=d.Base.StiJson;class c{constructor(e,t,r,o,s,i){this.horAlignment=h.Left,this.font=new u("Arial",11),this.backColor=n.transparent,this.foreColor=n.transparent,this.text="",this.visible=!0,this.text=e,null!=t&&(this.foreColor=t),null!=r&&(this.backColor=r),null!=o&&(this.font=o),null!=s&&(this.horAlignment=s),null!=i&&(this.visible=i)}implements(){return c.ImplementsStiTitle||(c.ImplementsStiTitle=[a,s,i,...t]),c.ImplementsStiTitle}saveToJsonObject(e){let t=new m;return t.addPropertyStringNullOrEmpty("Text",this.text),t.addPropertyStringNullOrEmpty("ForeColor",r.Serialize.jColor(this.foreColor,n.transparent)),t.addPropertyStringNullOrEmpty("BackColor",r.Serialize.jColor(this.backColor,n.transparent)),t.addPropertyBool("Visible",this.visible,!0),t.addPropertyStringNullOrEmpty("Font",r.Serialize.font(this.font,"Arial",11)),t.addPropertyEnum("HorAlignment",h,this.horAlignment,h.Left),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"Text":this.text=t.value.toString();break;case"Visible":this.visible=t.value.stimulsoft().toBoolean();break;case"Font":this.font=r.Deserialize.font(t.value,this.font);break;case"ForeColor":this.foreColor=r.Deserialize.color(t.value.toString());break;case"BackColor":this.backColor=r.Deserialize.color(t.value.toString());break;case"HorAlignment":this.horAlignment=o.parse(h,t.value.toString());break}}loadFromXml(r){for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"Text":this.text=e.textContent;break;case"Visible":this.visible=e.textContent.stimulsoft().toBoolean();break;case"Font":this.font=d.System.Convert.toFont(e.textContent);break;case"ForeColor":this.foreColor=d.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"BackColor":this.backColor=d.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"HorAlignment":this.horAlignment=o.parse(h,e.textContent);break}}}static createFromJsonObject(e){let t=new c;return t.loadFromJsonObject(e),t}static createFromXml(e){let t=new c;return t.loadFromXml(e),t}clone(){return this.stimulsoft().memberwiseClone()}shouldSerializeFont(){return!(null!=this.font&&"Arial"==this.font.name&&11==this.font.sizeInPoints&&this.font.style==l.Regular)}shouldSerializeBackColor(){return!n.transparent.equals(this.backColor)}shouldSerializeForeColor(){return!n.transparent.equals(this.foreColor)}}e.StiTitle=c}(r=t.Components||(t.Components={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,r,o,e,s,i,a;r=t=e.Dashboard||(e.Dashboard={}),e=o=r.Components||(r.Components={}),r=s=e.Chart||(e.Chart={}),(e=i=r.StiChartLabelsStyle||(r.StiChartLabelsStyle={}))[e["Value"]=0]="Value",e[e["PercentOfTotal"]=1]="PercentOfTotal",e[e["Category"]=2]="Category",e[e["CategoryValue"]=3]="CategoryValue",e[e["CategoryPercentOfTotal"]=4]="CategoryPercentOfTotal",(r=a=r.StiLegendVisibility||(r.StiLegendVisibility={}))[r["False"]=0]="False",r[r["Auto"]=1]="Auto",r[r["Always"]=2]="Always"}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiArgumentMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.ArgumentChartMeter}implements(){return o.ImplementsStiArgumentChartMeter||(o.ImplementsStiArgumentChartMeter=super.implements().concat([t])),o.ImplementsStiArgumentChartMeter}get localizedName(){return r.get("PropertyMain","Argument")}}e.StiArgumentChartMeter=o}(o=i.Chart||(i.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,o;t=e=s.Dashboard||(s.Dashboard={}),t=r=t.Components||(t.Components={}),function(m){var e=s.Report.Dashboard.IStiChartArea,t=s.Base.JsonReportObject.IStiJsonReportObject,r=s.Base.StiJson;class o{constructor(e,t,r,o,s,i,a,n,l,u,h){this.colorEach=!1,this.reverseHor=!1,this.reverseVert=!1,this.interlacingHor=new m.StiHorChartInterlacing,this.interlacingVert=new m.StiVertChartInterlacing,this.gridLinesHor=new m.StiHorChartGridLines,this.gridLinesVert=new m.StiVertChartGridLines,this.xAxis=new m.StiXChartAxis,this.xTopAxis=new m.StiXTopChartAxis,this.yAxis=new m.StiYChartAxis,this.yRightAxis=new m.StiYRightChartAxis,null!=e&&(this.colorEach=e),null!=t&&(this.reverseHor=t),null!=r&&(this.reverseVert=r),null!=o&&(this.gridLinesHor=o),null!=s&&(this.gridLinesVert=s),null!=s&&(this.interlacingHor=i),null!=a&&(this.interlacingVert=a),null!=n&&(this.xAxis=n),null!=l&&(this.yAxis=l),null!=u&&(this.xTopAxis=u),null!=h&&(this.yRightAxis=h)}implements(){return o.ImplementsStiChartArea||(o.ImplementsStiChartArea=[e,t]),o.ImplementsStiChartArea}saveToJsonObject(e){let t=new r;return t.addPropertyBool("ColorEach",this.colorEach),t.addPropertyJObject("GridLinesHor",this.gridLinesHor.saveToJsonObject(e)),t.addPropertyJObject("GridLinesVert",this.gridLinesVert.saveToJsonObject(e)),t.addPropertyJObject("InterlacingHor",this.interlacingHor.saveToJsonObject(e)),t.addPropertyJObject("InterlacingVert",this.interlacingVert.saveToJsonObject(e)),t.addPropertyBool("ReverseHor",this.reverseHor),t.addPropertyBool("ReverseVert",this.reverseVert),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"ColorEach":this.colorEach=t.value.stimulsoft().toBoolean();break;case"GridLinesHor":this.gridLinesHor.loadFromJsonObject(t.value);break;case"GridLinesVert":this.gridLinesVert.loadFromJsonObject(t.value);break;case"InterlacingHor":this.interlacingHor.loadFromJsonObject(t.value);break;case"InterlacingVert":this.interlacingVert.loadFromJsonObject(t.value);break;case"ReverseHor":this.reverseHor=t.value.stimulsoft().toBoolean();break;case"ReverseVert":this.reverseVert=t.value.stimulsoft().toBoolean();break}}loadFromXml(r,o){for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"ColorEach":this.colorEach=e.textContent.stimulsoft().toBoolean();break;case"GridLinesHor":this.gridLinesHor.loadFromXml(e);break;case"GridLinesVert":this.gridLinesVert.loadFromXml(e);break;case"InterlacingHor":this.interlacingHor.loadFromXml(e);break;case"InterlacingVert":this.interlacingVert.loadFromXml(e);break;case"ReverseHor":this.reverseHor=e.textContent.stimulsoft().toBoolean();break;case"ReverseVert":this.reverseVert=e.textContent.stimulsoft().toBoolean();break;case"XAxis":this.xAxis.loadFromXml(e,o);break;case"XTopAxis":this.xTopAxis.loadFromXml(e,o);break;case"YAxis":this.yAxis.loadFromXml(e,o);break;case"YRightAxis":this.yRightAxis.loadFromXml(e,o);break}}}clone(){let e=this.stimulsoft().memberwiseClone();return e.gridLinesHor=null!=this.gridLinesHor?this.gridLinesHor.clone():null,e.gridLinesVert=null!=this.gridLinesVert?this.gridLinesVert.clone():null,e.interlacingHor=null!=this.interlacingHor?this.interlacingHor.clone():null,e.interlacingVert=null!=this.interlacingVert?this.interlacingVert.clone():null,e}shouldSerializeXAxis(){return null==this.xAxis||!this.xAxis.isDefault()}shouldSerializeXTopAxis(){return null==this.xTopAxis||!this.xTopAxis.isDefault()}shouldSerializeYAxis(){return null==this.yAxis||!this.yAxis.isDefault()}shouldSerializeYRightAxis(){return null==this.yRightAxis||!this.yRightAxis.isDefault()}}m.StiChartArea=o}(o=t.Chart||(t.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(p){var e,t,r,o;t=e=p.Dashboard||(p.Dashboard={}),t=r=t.Components||(t.Components={}),function(e){var t=p.Report.Components.ImplementsIStiFont,o=p.System.Enum,r=p.Base.StiJsonReportObjectHelper,n=p.Report.Chart.StiLabelsPlacement,s=p.System.Drawing.FontStyle,l=p.System.Drawing.Font,u=p.System.Drawing.Color,i=p.Base.JsonReportObject.IStiJsonReportObject,a=p.Report.Components.IStiFont,h=p.System.ICloneable,m=p.Base.StiJson,c=p.Base.Drawing.StiHorAlignment;class d{constructor(e,t,r,o,s,i,a){this.angle=0,this.color=u.transparent,this.font=new l("Arial",8),this.placement=n.AutoRotation,this.textAlignment=c.Right,this.textAfter="",this.textBefore="",this.step=0,null!=e&&(this.textBefore=e),null!=t&&(this.textAfter=t),null!=r&&(this.angle=r),null!=o&&(this.font=o),null!=s&&(this.placement=s),null!=i&&(this.color=i),null!=a&&(this.textAlignment=a)}implements(){return d.ImplementsStiChartAxisLabels||(d.ImplementsStiChartAxisLabels=[h,a,...t,i]),d.ImplementsStiChartAxisLabels}saveToJsonObject(e){let t=new m;return t.addPropertyNumber("Angle",this.angle,0),t.addPropertyStringNullOrEmpty("TextBefore",this.textBefore),t.addPropertyStringNullOrEmpty("TextAfter",this.textAfter),t.addPropertyStringNullOrEmpty("Font",r.Serialize.font(this.font,"Arial",8)),t.addPropertyEnum("Placement",n,this.placement,n.AutoRotation),t.addPropertyStringNullOrEmpty("Color",r.Serialize.jColor(this.color,u.transparent)),t.addPropertyEnum("TextAlignment",c,this.textAlignment,c.Right),t.addPropertyNumber("Step",this.step,0),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"Angle":this.angle=t.value.stimulsoft().toNumber();break;case"TextBefore":this.textBefore=t.value.toString();break;case"TextAfter":this.textAfter=t.value.toString();break;case"Font":this.font=r.Deserialize.font(t.value,this.font);break;case"Placement":this.placement=o.parse(n,t.value.toString());break;case"Color":this.color=r.Deserialize.color(t.value.toString());break;case"TextAlignment":this.textAlignment=o.parse(c,t.value.toString());break;case"Step":this.step=t.value.stimulsoft().toNumber();break}}loadFromXml(r,e){for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"Angle":this.angle=e.textContent.stimulsoft().toNumber();break;case"TextBefore":this.textBefore=e.textContent;break;case"TextAfter":this.textAfter=e.textContent;break;case"Font":this.font=p.System.Convert.toFont(e.textContent);break;case"Placement":this.placement=o.parse(n,e.textContent);break;case"Color":this.color=p.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"TextAlignment":this.textAlignment=o.parse(c,e.textContent);break;case"Step":this.step=e.textContent.stimulsoft().toNumber();break}}}clone(){let e=this.stimulsoft().memberwiseClone();return e.font=this.font.clone(),e}shouldSerializeColor(){return!u.transparent.equals(this.color)}shouldSerializeFont(){return!(null!=this.font&&"Arial"==this.font.name&&8==this.font.sizeInPoints&&this.font.style==s.Regular)}isDefault(){return!this.shouldSerializeFont()&&!this.shouldSerializeColor()&&this.placement==n.AutoRotation&&this.textAlignment==c.Right&&""==this.textAfter&&""==this.textBefore&&0==this.angle&&0==this.step}}e.StiChartAxisLabels=d}(o=t.Chart||(t.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(n){var e,t,r,o;t=e=n.Dashboard||(n.Dashboard={}),t=r=t.Components||(t.Components={}),function(o){var e=n.Base.Design.IStiDefault,s=n.Dashboard.Components.Chart.StiChartAxisLabels,t=n.Base.JsonReportObject.IStiJsonReportObject,r=n.System.ICloneable,i=n.Base.StiJson;class a{constructor(e,t,r){this.labels=new s,this.range=new o.StiChartAxisRange,this.visible=!0,null!=e&&(this.labels=e),null!=t&&(this.range=t),null!=r&&(this.visible=r)}implements(){return a.ImplementsStiChartAxis||(a.ImplementsStiChartAxis=[t,e,r]),a.ImplementsStiChartAxis}is(e){if(e instanceof n.System.Interface)return-1!=this.implements().indexOf(e);if("function"==typeof e)return this instanceof e;if(null==e)throw new Error("Type for comparison is 'undefined'");return!1}is2(e){return this.is(e)}as(e){if(this.is(e))return this;return null}clone(){let e=this.stimulsoft().memberwiseClone();return e.labels=this.labels.clone(),e.range=this.range.clone(),e}saveToJsonObject(e){let t=new i;return null!=this.labels&&t.addPropertyJObject("Labels",this.labels.saveToJsonObject(e)),null!=this.range&&t.addPropertyJObject("Range",this.range.saveToJsonObject(e)),t.addPropertyBool("Visible",this.visible,!0),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"Labels":this.labels.loadFromJsonObject(t.value);break;case"Range":this.range.loadFromJsonObject(t.value);break;case"Visible":this.visible=t.value.stimulsoft().toBoolean();break}}loadFromXml(r,o){for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"Labels":this.labels.loadFromXml(e,o);break;case"Range":this.range.loadFromXml(e,o);break;case"Visible":this.visible=e.textContent.stimulsoft().toBoolean();break}}}shouldSerializeLabels(){return null==this.labels||!this.labels.isDefault()}shouldSerializeRange(){return null==this.range||!this.range.isDefault()}isDefault(){return!this.shouldSerializeLabels()&&this.visible}}o.StiChartAxis=a}(o=t.Chart||(t.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(i){var e,t,r,o;t=e=i.Dashboard||(i.Dashboard={}),t=r=t.Components||(t.Components={}),function(e){var t=i.Base.JsonReportObject.IStiJsonReportObject,r=i.Base.StiJson,o=i.System.ICloneable;class s{constructor(e,t,r){this._minimum=0,this.maximum=0,this.auto=!0,null!=e&&(this.auto=e),null!=t&&(this.minimum=t),null!=r&&(this.maximum=r)}implements(){return s.ImplementsStiChartAxisRange||(s.ImplementsStiChartAxisRange=[t,o]),s.ImplementsStiChartAxisRange}saveToJsonObject(e){let t=new r;return t.addPropertyNumber("Minimum",this.minimum,0),t.addPropertyNumber("Maximum",this.maximum,0),t.addPropertyBool("Auto",this.auto,!0),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"Minimum":this.minimum=t.value.stimulsoft().toNumber();break;case"Maximum":this.maximum=t.value.stimulsoft().toNumber();break;case"Auto":this.auto=t.value.stimulsoft().toBoolean();break}}loadFromXml(r,e){for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"Minimum":this.minimum=e.textContent.stimulsoft().toNumber();break;case"Maximum":this.maximum=e.textContent.stimulsoft().toNumber();break;case"Auto":this.auto=e.textContent.stimulsoft().toBoolean();break}}}clone(){return this.stimulsoft().memberwiseClone()}get minimum(){return this._minimum}set minimum(e){this._minimum=e}isDefault(){return 0==this.minimum&&0==this.maximum&&this.auto}}e.StiChartAxisRange=s}(o=t.Chart||(t.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(p){var e,t,r,o;t=e=p.Dashboard||(p.Dashboard={}),t=r=t.Components||(t.Components={}),function(e){var t=p.Base.Design.IStiDefault,r=p.Base.JsonReportObject.IStiJsonReportObject,o=p.System.Enum,s=p.Base.StiJsonReportObjectHelper,a=p.System.Drawing.Font,i=p.Base.StiJson,n=p.Report.Chart.StiTitlePosition,l=p.System.Drawing.FontStyle,u=p.System.Drawing.Color,h=p.System.Drawing.StringAlignment,m,c;(c=m=e.Order||(e.Order={}))[c["Alignment"]=1]="Alignment",c[c["Color"]=2]="Color",c[c["Direction"]=3]="Direction",c[c["Font"]=4]="Font",c[c["Placement"]=5]="Placement",c[c["Position"]=6]="Position",c[c["Text"]=7]="Text",c[c["Visible"]=8]="Visible";class d{constructor(e,t,r,o,s,i){this.visible=!0,this.alignment=h.Center,this.color=u.transparent,this.font=new a("Arial",12,l.Bold),this.position=n.Outside,this.text="",null!=e&&(this.font=e),null!=t&&(this.text=t),null!=r&&(this.color=r),null!=o&&(this.alignment=o),null!=s&&(this.position=s),null!=i&&(this.visible=i)}implements(){return d.ImplementsStiChartAxisTitle||(d.ImplementsStiChartAxisTitle=[r,t]),d.ImplementsStiChartAxisTitle}is(e){if(e instanceof p.System.Interface)return-1!=this.implements().indexOf(e);if("function"==typeof e)return this instanceof e;if(null==e)throw new Error("Type for comparison is 'undefined'");return!1}is2(e){return this.is(e)}as(e){if(this.is(e))return this;return null}saveToJsonObject(e){let t=new i;return t.addPropertyStringNullOrEmpty("Font",s.Serialize.font(this.font,"Arial",12,l.Bold)),t.addPropertyStringNullOrEmpty("Text",this.text),t.addPropertyStringNullOrEmpty("Color",s.Serialize.jColor(this.color,u.transparent)),t.addPropertyEnum("Alignment",h,this.alignment,h.Center),t.addPropertyEnum("Position",n,this.position,n.Outside),t.addPropertyBool("Visible",this.visible,!0),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"Font":this.font=s.Deserialize.font(t.value,this.font);break;case"Text":this.text=t.value.toString();break;case"Color":this.color=s.Deserialize.color(t.value.toString());break;case"Alignment":this.alignment=o.parse(h,t.value.toString());break;case"Position":this.position=o.parse(n,t.value.toString());break;case"Visible":this.visible=t.value.stimulsoft().toBoolean();break}}loadFromXml(r,e){for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"Font":this.font=p.System.Convert.toFont(e.textContent);break;case"Text":this.text=e.textContent;break;case"Color":this.color=p.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"Alignment":this.alignment=o.parse(h,e.textContent);break;case"Position":this.position=o.parse(n,e.textContent);break;case"Visible":this.visible=e.textContent.stimulsoft().toBoolean();break}}}clone(){let e=this.stimulsoft().memberwiseClone();return e.font=this.font.clone(),e}shouldSerializeColor(){return!u.transparent.equals(this.color)}shouldSerializeFont(){return!(null!=this.font&&"Arial"==this.font.name&&12==this.font.sizeInPoints&&this.font.style==l.Bold)}isDefault(){return null!=a&&!this.shouldSerializeFont()&&!this.shouldSerializeColor()&&null!=this.text&&0==this.text.length&&this.position==n.Outside&&this.alignment==h.Center&&this.visible}}e.StiChartAxisTitle=d}(o=t.Chart||(t.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(m){var e,t,r,o;t=e=m.Dashboard||(m.Dashboard={}),t=r=t.Components||(t.Components={}),function(e){var a=m.Report.Chart.StiConstantLines_StiTextPosition,n=m.Base.Drawing.StiPenStyle,t=m.System.ICloneable,r=m.Base.JsonReportObject.IStiJsonReportObject,o=m.Base.StiJson,s=m.Base.StiJsonReportObjectHelper,l=m.System.Drawing.Color,i=m.System.Enum,u=m.Report.Dashboard.IStiChartConstantLines;class h{constructor(e,t,r,o,s,i){this.text="",this.lineStyle=n.Solid,this.lineColor=l.black,this.axisValue="1",this.lineWidth=1,this.position=a.LeftTop,null!=e&&(this.text=e),null!=t&&(this.axisValue=t),null!=r&&(this.lineColor=r),null!=o&&(this.lineStyle=o),null!=s&&(this.lineWidth=s),null!=i&&(this.position=i)}implements(){return h.ImplementsStiChartConstantLines||(h.ImplementsStiChartConstantLines=[t,u,r]),h.ImplementsStiChartConstantLines}saveToJsonObject(e){let t=new o;return t.addPropertyStringNullOrEmpty("Text",this.text),t.addPropertyStringNullOrEmpty("LineColor",s.Serialize.jColor(this.lineColor)),t.addPropertyEnum("LineStyle",n,this.lineStyle,n.Solid),t.addPropertyNumber("LineWidth",this.lineWidth,1),t.addPropertyString("AxisValue",this.axisValue,"1"),t.addPropertyEnum("Position",a,this.position,a.LeftTop),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"Text":this.text=t.value.toString();break;case"LineColor":this.lineColor=s.Deserialize.color(t.value.toString());break;case"LineStyle":this.lineStyle=i.parse(n,t.value.toString());break;case"LineWidth":this.lineWidth=t.value.stimulsoft().toNumber();break;case"AxisValue":this.axisValue=t.value.toString();break;case"Position":this.position=i.parse(a,t.value.toString());break}}loadFromXml(r){for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"Text":this.text=e.textContent;break;case"LineColor":this.lineColor=s.Deserialize.color(e.textContent);break;case"LineStyle":this.lineStyle=i.parse(n,e.textContent);break;case"LineWidth":this.lineWidth=e.textContent.stimulsoft().toNumber();break;case"AxisValue":this.axisValue=e.textContent;break;case"Position":this.position=i.parse(a,e.textContent);break}}}clone(){return this.stimulsoft().memberwiseClone()}static createFromJson(e){let t=new h;return t.loadFromJsonObject(e),t}static createFromXml(e){let t=new h;return t.loadFromXml(e),t}}e.StiChartConstantLines=h}(o=t.Chart||(t.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(l){var e,t,r,o;t=e=l.Dashboard||(l.Dashboard={}),t=r=t.Components||(t.Components={}),function(r){var o=l.Report.Chart.StiMarkerType,s=l.Report.Chart.StiExtendedStyleBool,e=l.System.ICloneable,t=l.Base.JsonReportObject.IStiJsonReportObject,i=l.Base.StiJson,a=l.System.Enum;class n{constructor(e){this.size=7,this.angle=0,this.type=o.Circle,this.visible=s.FromStyle,null!=e&&(this.size=e)}implements(){return n.ImplementsStiChartMarker||(n.ImplementsStiChartMarker=[e,t]),n.ImplementsStiChartMarker}saveToJsonObject(e){let t=new i;return t.addPropertyNumber("Size",this.size,7),t.addPropertyNumber("Angle",this.angle,0),t.addPropertyEnum("Type",o,this.type,o.Circle),t.addPropertyEnum("Visible",s,this.visible,s.FromStyle),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"Size":this.size=t.value.stimulsoft().toNumber();break;case"Angle":this.angle=t.value.stimulsoft().toNumber();break;case"Type":this.type=a.parse(o,t.value.toString());break;case"Visible":this.visible=a.parse(s,t.value.toString());break}}loadFromXml(r,e){for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"Size":this.size=e.textContent.stimulsoft().toNumber();break;case"Angle":this.angle=e.textContent.stimulsoft().toNumber();break;case"Type":this.type=a.parse(o,e.textContent);break;case"Visible":this.visible=a.parse(s,e.textContent);break}}}clone(){return this.stimulsoft().memberwiseClone()}isDefault(){return 7==this.size&&0==this.angle&&this.type==o.Circle}static createFromJson(e){let t=new r.StiChartConstantLines;return t.loadFromJsonObject(e),t}static createFromXml(e){let t=new r.StiChartConstantLines;return t.loadFromXml(e),t}}r.StiChartMarker=n}(o=t.Chart||(t.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiValueMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.KeyTreeViewBoxMeter}implements(){return o.ImplementsStiKeyTreeViewBoxMeter||(o.ImplementsStiKeyTreeViewBoxMeter=super.implements().concat([t])),o.ImplementsStiKeyTreeViewBoxMeter}get localizedName(){return r.get("PropertyMain","Key")}}e.StiKeyTreeViewBoxMeter=o}(o=i.TreeViewBox||(i.TreeViewBox={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiValueMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.KeyTreeViewMeter}implements(){return o.ImplementsStiKeyTreeViewMeter||(o.ImplementsStiKeyTreeViewMeter=super.implements().concat([t])),o.ImplementsStiKeyTreeViewMeter}get localizedName(){return r.get("PropertyMain","Key")}}e.StiKeyTreeViewMeter=o}(o=i.TreeView||(i.TreeView={}))}(Stimulsoft=Stimulsoft||{}),function(t){var e,r,o,s;r=e=t.Dashboard||(t.Dashboard={}),r=o=r.Interactions||(r.Interactions={}),function(o){var s=t.System.StiString,i=t.Base.StiActivator;class e{static loadInteractionFromJsonObject(e){var t=e.properties().firstOrDefault(e=>"Ident"==e.name).value.toString();let r=o.StiDashboardInteractionCreator.new2(t);return r.loadFromJsonObject(e),r}static loadInteractionFromXml(t,r){var e;if(null!=t.attributes.getNamedItem("type")){var o=t.attributes.getNamedItem("type").value;if(!s.isNullOrEmpty(o)){let e=i.createObject2(o);if(null!=e)return e.loadFromXml(t,r),e}}return null}}o.StiDashboardInteractionLoader=e}(s=r.Design||(r.Design={}))}(Stimulsoft=Stimulsoft||{}),function(g){var e,t,r;t=e=g.Dashboard||(g.Dashboard={}),function(o){var e=g.System.StiString,r=g.Base.StiJsonReportObjectHelper,n=g.System.Collections.List,t=g.Base.JsonReportObject.IStiJsonReportObject,s=g.Report.Dashboard.IStiDashboardInteraction,l=g.Report.Dashboard.StiInteractionOnHover,u=g.Report.Dashboard.StiInteractionOnClick,h=g.Report.Dashboard.StiInteractionOpenHyperlinkDestination,i=g.Report.Dashboard.StiInteractionIdent,m=g.Report.Dashboard.StiAvailableInteractionOnClick,c=g.Report.Dashboard.StiAvailableInteractionOnHover,d=g.Report.Dashboard.StiAvailableInteractionOnDataManipulation,a=g.Base.StiJson,p=g.System.Enum;class S{constructor(e,t,r,o,s,i,a){this.availableOnClick=m.All,this.availableOnHover=c.All,this.availableOnDataManipulation=d.None,this.onHover=l.ShowToolTip,this.onClick=u.ApplyFilter,this.hyperlinkDestination=h.NewTab,this.toolTip="",this.hyperlink="",this.drillDownPageKey="",this.drillDownParameters=new n,null!=e&&(this.onHover=e),null!=t&&(this.onClick=t),null!=r&&(this.hyperlinkDestination=r),null!=o&&(this.toolTip=o),null!=s&&(this.hyperlink=s),null!=i&&(this.drillDownPageKey=i),null!=a&&(this.drillDownParameters=a)}implements(){return S.ImplementsStiDashboardInteraction||(S.ImplementsStiDashboardInteraction=[s,t]),S.ImplementsStiDashboardInteraction}is(e){if(e instanceof g.System.Interface)return-1!=this.implements().indexOf(e);if("function"==typeof e)return this instanceof e;if(null==e)throw new Error("Type for comparison is 'undefined'");return!1}is2(e){return this.is(e)}as(e){if(this.is(e))return this;return null}clone(e=!0,t=!0){return this.stimulsoft().memberwiseClone()}saveToJsonObject(e){let t=new a;return t.addPropertyEnum("Ident",i,this.ident),t.addPropertyEnum("OnHover",l,this.onHover),t.addPropertyEnum("OnClick",u,this.onClick),t.addPropertyEnum("HyperlinkDestination",h,this.hyperlinkDestination),t.addPropertyStringNullOrEmpty("ToolTip",this.toolTip),t.addPropertyStringNullOrEmpty("DrillDownPageKey",this.drillDownPageKey),t.addPropertyStringNullOrEmpty("Hyperlink",this.hyperlink),t.addPropertyJObject("DrillDownParameters",r.Serialize.objectArray(this.drillDownParameters,e)),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"OnHover":this.onHover=p.parse(l,t.value.toString());break;case"OnClick":this.onClick=p.parse(u,t.value.toString());break;case"HyperlinkDestination":this.hyperlinkDestination=p.parse(h,t.value.toString());break;case"ToolTip":this.toolTip=t.value.toString();break;case"DrillDownPageKey":this.drillDownPageKey=t.value.toString();break;case"Hyperlink":this.hyperlink=t.value.toString();break;case"DrillDownParameters":this.drillDownParameters.addRange(t.value.properties().select(e=>o.StiDashboardDrillDownParameter.loadFromJson(e.value)));break}}loadFromXml(r,e){for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"OnHover":this.onHover=p.parse(l,e.textContent);break;case"OnClick":this.onClick=p.parse(u,e.textContent);break;case"HyperlinkDestination":this.hyperlinkDestination=p.parse(h,e.textContent);break;case"ToolTip":this.toolTip=e.textContent;break;case"DrillDownPageKey":this.drillDownPageKey=e.textContent;break;case"Hyperlink":this.hyperlink=e.textContent;break;case"DrillDownParameters":this.drillDownParameters.addRange(e.childNodes.select(e=>o.StiDashboardDrillDownParameter.loadFromXml(e)));break}}}isDefault(){return this.onHover==l.ShowToolTip&&this.onClick==u.ApplyFilter&&this.hyperlinkDestination==h.NewTab&&e.isNullOrEmpty(this.hyperlink)&&e.isNullOrEmpty(this.drillDownPageKey)&&null!=this.drillDownParameters&&0==this.drillDownParameters.length&&e.isNullOrEmpty(this.toolTip)}getDrillDownParameters(){return this.drillDownParameters.cast().toList()}setDrillDownParameters(e){this.drillDownParameters=new n,null!=e&&e.stimulsoft().toList().forEach(e=>{let t=new o.StiDashboardDrillDownParameter;t.name=e["name"],t.expression=e["expression"],this.drillDownParameters.add(t)})}shouldSerializeOnHover(){return this.onHover!=l.ShowToolTip}shouldSerializeOnClick(){return this.onClick!=u.ApplyFilter}}o.StiDashboardInteraction=S}(r=t.Interactions||(t.Interactions={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r;t=e=s.Dashboard||(s.Dashboard={}),function(e){var t=s.System.StiString,n=s.Report.Dashboard.StiInteractionOnHover,l=s.Report.Dashboard.StiInteractionOnClick,r=s.Report.Dashboard.StiInteractionOpenHyperlinkDestination,u=s.Report.Dashboard.StiInteractionIdent,h=s.Report.Dashboard.StiAvailableInteractionOnClick;class o extends e.StiDashboardInteraction{constructor(e,t,r,o,s,i,a){super(e,t,r,o,s,i,a),this.ident=u.TableColumn,this.availableOnClick=h.ApplyFilter|h.ShowDashboard,this.onHover=n.None,this.onClick=l.None}isDefault(){return this.onHover==n.None&&this.onClick==l.None&&this.hyperlinkDestination==r.NewTab&&t.isNullOrEmpty(this.hyperlink)&&t.isNullOrEmpty(this.drillDownPageKey)&&null!=this.drillDownParameters&&0==this.drillDownParameters.length&&t.isNullOrEmpty(this.toolTip)}}e.StiTableColumnDashboardInteraction=o}(r=t.Interactions||(t.Interactions={}))}(Stimulsoft=Stimulsoft||{}),function(k){var e,t,r,R,o;t=e=k.Dashboard||(k.Dashboard={}),R=r=t.Components||(t.Components={}),function(e){var c=k.Base.Drawing.StiTableColumnVisibility,t=k.Data.Engine.IStiDataFormat,r=k.Report.Components.TextFormats.StiTimeFormatService,o=k.Report.Components.TextFormats.StiDateFormatService,s=k.Report.Components.TextFormats.StiNumberFormatService,i=k.Report.Components.TextFormats.StiCurrencyFormatService,a=k.Report.Components.TextFormats.StiPercentageFormatService,n=k.Report.Components.TextFormats.StiBooleanFormatService,l=k.Data.Engine.StiDataFormatKind,d=k.Base.StiSummaryColumnType,u=k.Report.Dashboard.IStiElementInteraction,h=k.Dashboard.Interactions.Design.StiDashboardInteractionLoader,p=k.Dashboard.Interactions.StiTableColumnDashboardInteraction,m=k.Base.JsonReportObject.IStiJsonReportObject,S=k.Report.Components.ImplementsIStiForeColor,g=k.Report.Components.ImplementsIStiTextFormat,b=k.Report.Components.ImplementsIStiHorAlignment,f=k.System.Enum,C=k.Base.StiJsonReportObjectHelper,y=k.System.Drawing.Color,v=k.Report.Components.TextFormats.StiFormatService,w=k.Report.Components.TextFormats.StiGeneralFormatService,D=k.Base.Drawing.StiHorAlignment,x=k.Report.Components.IStiForeColor,T=k.Base.Meters.IStiTableColumn,F=k.Report.Components.IStiTextFormat,M=k.Report.Components.IStiHorAlignment;class I extends R.StiMeter{constructor(e,t,r,o,s,i,a,n,l,u,h,m){super(e,t,r),this.horAlignment=D.Left,this.textFormat=new w,this.foreColor=y.transparent,this.dashboardInteraction=new p,this.visibility=c.True,this.visibilityExpression=null,this.showTotalSummary=!1,this.summaryType=d.Sum,this.summaryAlignment=D.Right,null!=o&&(this.horAlignment=o),null!=s&&(this.textFormat=s),null!=i&&(this.visibility=i),null!=a&&(this.visibilityExpression=a),null!=l&&(this.showTotalSummary=l),null!=h&&(this.summaryAlignment=h),null!=u&&(this.summaryType=u),null!=n&&(this.foreColor=n),null!=m&&(this.dashboardInteraction=m)}implements(){return I.ImplementsStiTableColumn||(I.ImplementsStiTableColumn=super.implements().concat([M,F,T,t,x,...b,...g,...S,m,u])),I.ImplementsStiTableColumn}saveToJsonObject(e){let t=super.saveToJsonObject(e);t.addPropertyEnum("HorAlignment",D,this.horAlignment,D.Left),t.addPropertyEnum("SummaryAlignment",D,this.summaryAlignment,D.Right),this.textFormat.is(w)||null==this.textFormat||t.addPropertyJObject("TextFormat",this.textFormat.saveToJsonObject(e)),t.addPropertyStringNullOrEmpty("ForeColor",C.Serialize.jColor(this.foreColor,y.transparent)),t.addPropertyBool("ShowTotalSummary",this.showTotalSummary,!1),t.addPropertyEnum("SummaryType",d,this.summaryType,d.Sum),t.addPropertyEnum("Visibility",c,this.visibility,c.True),null!=this.visibilityExpression&&t.addPropertyStringNullOrEmpty("VisibilityExpression",this.visibilityExpression);let r=this.dashboardInteraction.as(p);return null!=r&&t.addPropertyJObject("DashboardInteraction",r.saveToJsonObject(e)),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"DashboardInteraction":this.dashboardInteraction=h.loadInteractionFromJsonObject(t.value);break;case"HorAlignment":this.horAlignment=f.parse(D,t.value.toString());break;case"SummaryAlignment":this.summaryAlignment=f.parse(D,t.value.toString());break;case"SummaryType":this.summaryType=f.parse(d,t.value.toString());break;case"TextFormat":this.textFormat=v.createFromJsonObject(t.value);break;case"Visible":this.visibility=t.value.stimulsoft().toBoolean()?c.True:c.False;break;case"ShowTotalSummary":this.showTotalSummary=t.value.stimulsoft().toBoolean();break;case"ForeColor":this.foreColor=C.Deserialize.color(t.value.toString());break;case"Visibility":this.visibility=f.parse(c,t.value.toString());break;case"VisibilityExpression":this.visibilityExpression=t.value.toString();break}}loadFromXml(r,o,s){super.loadFromXml(r,o);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"DashboardInteraction":this.dashboardInteraction=h.loadInteractionFromXml(e,o);break;case"HorAlignment":this.horAlignment=f.parse(D,e.textContent);break;case"SummaryAlignment":this.summaryAlignment=f.parse(D,e.textContent);break;case"SummaryType":this.summaryType=f.parse(d,e.textContent);break;case"TextFormat":var i=v.loadFormatFromXml(e,s);null!=i&&(this.textFormat=i);break;case"Visible":this.visibility=e.textContent.stimulsoft().toBoolean()?c.True:c.False;break;case"ShowTotalSummary":this.showTotalSummary=e.textContent.stimulsoft().toBoolean();break;case"ForeColor":this.foreColor=k.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"Visibility":this.visibility=f.parse(c,e.textContent);break;case"VisibilityExpression":this.visibilityExpression=e.textContent;break}}}clone(){let e=super.clone();return e.textFormat=this.textFormat.clone(),e.dashboardInteraction=this.dashboardInteraction.clone(),e}shouldSerializeTextFormat(){return!this.textFormat.is(w)}getDataFormat(){if(this.textFormat.is(n))return l.Boolean;if(this.textFormat.is(a))return l.Percentage;if(this.textFormat.is(i))return l.Currency;if(this.textFormat.is(s))return l.Number;if(this.textFormat.is(o))return l.Date;if(this.textFormat.is(r))return l.Time;return l.General}shouldSerializeForeColor(){return!y.transparent.equals(this.foreColor)}shouldSerializeDashboardInteraction(){return null==this.dashboardInteraction||!this.dashboardInteraction.isDefault()}isDefault(){return super.isDefault()&&this.visibility==c.True&&null==this.visibilityExpression&&!this.showTotalSummary&&this.summaryType==d.Sum&&this.horAlignment==D.Left&&this.summaryAlignment==D.Right&&!this.shouldSerializeTextFormat()&&!this.shouldSerializeForeColor()&&!this.shouldSerializeDashboardInteraction()}getUniqueCode(){let e=super.getUniqueCode();return e=397*e^this.horAlignment,e=397*e^this.summaryAlignment,e=397*e^(null!=this.textFormat?this.textFormat.stimulsoft().getHashCode():0),e=397*e^this.visibility.stimulsoft().getHashCode(),null!=this.visibilityExpression&&(e=397*e^this.visibilityExpression.stimulsoft().getHashCode()),Math.abs(e)}get visible(){return this.visibility==c.True}set visible(e){this.visibility=e?c.True:c.False}}e.StiTableColumn=I}(o=R.Table||(R.Table={}))}(Stimulsoft=Stimulsoft||{}),function(i){var e,t,r,c,o;t=e=i.Dashboard||(i.Dashboard={}),c=r=t.Components||(t.Components={}),function(e){var t=i.Base.Meters.IStiMeasureMeter,r=i.Base.Meters.IStiMeasureColumn,o=i.Base.Localization.StiLocalization;class s extends e.StiTableColumn{constructor(e,t,r,o,s,i,a,n,l,u,h,m){super(e,t,r,o,s,i,a,n,l,u,h,m),this.ident=c.StiMeterIdent.MeasureColumn}implements(){return s.ImplementsStiMeasureColumn||(s.ImplementsStiMeasureColumn=super.implements().concat([t,r])),s.ImplementsStiMeasureColumn}get localizedName(){return o.get("Dashboard","Indicator")}}e.StiMeasureColumn=s}(o=c.Table||(c.Table={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,m,o;t=e=s.Dashboard||(s.Dashboard={}),m=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiIndicatorColumn,r=s.Base.Localization.StiLocalization;class o extends e.StiMeasureColumn{constructor(e,t,r,o,s,i,a,n,l,u,h){super(e,t,r,o,s,i,a,n,l,u,h),this.ident=m.StiMeterIdent.IndicatorColumn}implements(){return o.ImplementsStiIndicatorColumn||(o.ImplementsStiIndicatorColumn=super.implements().concat([t])),o.ImplementsStiIndicatorColumn}get localizedName(){return r.get("Dashboard","Dimension")}}e.StiIndicatorColumn=o}(o=m.Table||(m.Table={}))}(Stimulsoft=Stimulsoft||{}),function(a){var e,t,r,p,o;t=e=a.Dashboard||(a.Dashboard={}),p=r=t.Components||(t.Components={}),function(e){var r=a.Base.StiJsonReportObjectHelper,t=a.Base.JsonReportObject.IStiJsonReportObject,d=a.System.Drawing.Color,o=a.Base.Meters.IStiColorScaleColumn,s=a.Base.Localization.StiLocalization;class i extends e.StiMeasureColumn{constructor(e,t,r,o,s,i,a,n,l,u,h,m,c){super(e,t,r,o,s,i,a,n,l,u,h),this.ident=p.StiMeterIdent.ColorScaleColumn,this.minimumColor=d.red,this.maximumColor=d.green,null!=m&&(this.minimumColor=m),null!=c&&(this.maximumColor=c)}implements(){return i.ImplementsStiColorScaleColumn||(i.ImplementsStiColorScaleColumn=super.implements().concat([o,t])),i.ImplementsStiColorScaleColumn}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyStringNullOrEmpty("MinimumColor",r.Serialize.jColor(this.minimumColor,d.red)),t.addPropertyStringNullOrEmpty("MaximumColor",r.Serialize.jColor(this.maximumColor,d.green)),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"MinimumColor":this.minimumColor=r.Deserialize.color(t.value.toString());break;case"MaximumColor":this.maximumColor=r.Deserialize.color(t.value.toString());break}}loadFromXml(t,e,r){super.loadFromXml(t,e,r);for(let e=0;e<t.childNodes.length;e++){var o=t.childNodes[e];switch(o.nodeName){case"MinimumColor":this.minimumColor=a.System.Text.StiReportObjectStringConverter.convertStringToColor(o.textContent);break;case"MaximumColor":this.maximumColor=a.System.Text.StiReportObjectStringConverter.convertStringToColor(o.textContent);break}}}getUniqueCode(){var e=super.getUniqueCode(),e;return e=397*(e=397*e^this.minimumColor.stimulsoft().getHashCode())^this.maximumColor.stimulsoft().getHashCode(),Math.abs(e)}isDefault(){return super.isDefault()&&!this.shouldSerializeMinimumColor()&&!this.shouldSerializeMaximumColor()}shouldSerializeMinimumColor(){return!d.red.equals(this.minimumColor)}shouldSerializeMaximumColor(){return!d.green.equals(this.maximumColor)}get localizedName(){return s.get("Dashboard","ColorScale")}}e.StiColorScaleColumn=i}(o=p.Table||(p.Table={}))}(Stimulsoft=Stimulsoft||{}),function(n){var e,t,r,m,o;t=e=n.Dashboard||(n.Dashboard={}),m=r=t.Components||(t.Components={}),function(e){var t=n.Base.JsonReportObject.IStiJsonReportObject,s=n.Base.Drawing.StiHorAlignment,i=n.System.Enum,r=n.Base.Meters.IStiDataBarsColumn,o=n.Base.Localization.StiLocalization;class a extends e.StiMeasureColumn{constructor(e,t,r,o,s,i,a,n,l,u,h){super(e,t,r,o,s,i,a,n,l,u,h),this.ident=m.StiMeterIdent.DataBarsColumn}implements(){return a.ImplementsStiDataBarsColumn||(a.ImplementsStiDataBarsColumn=super.implements().concat([r,t])),a.ImplementsStiDataBarsColumn}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyEnum("HorAlignment",s,this.horAlignment,s.Center),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"HorAlignment":this.horAlignment=i.parse(s,t.value.toString());break}}loadFromXml(t,e,r){super.loadFromXml(t,e,r);for(let e=0;e<t.childNodes.length;e++){var o=t.childNodes[e];switch(o.nodeName){case"HorAlignment":this.horAlignment=i.parse(s,o.textContent);break}}}getUniqueCode(){var e,e=397*(e=super.getUniqueCode())^this.horAlignment;return Math.abs(e)}get localizedName(){return o.get("Dashboard","DataBars")}}e.StiDataBarsColumn=a}(o=m.Table||(m.Table={}))}(Stimulsoft=Stimulsoft||{}),function(a){var e,t,r,C,o;t=e=a.Dashboard||(a.Dashboard={}),C=r=t.Components||(t.Components={}),function(b){var e=a.Base.JsonReportObject.IStiJsonReportObject,o=a.System.Enum,t=a.Base.Meters.IStiSparklinesColumn,r=a.Base.Localization.StiLocalization,s=a.Base.StiJsonReportObjectHelper,f=a.Base.Drawing.StiColor;class i extends b.StiMeasureColumn{constructor(e,t,r,o,s,i,a,n,l,u,h,m,c,d,p,S,g){super(e,t,r,o,s,l,u,h,m,c,d),this.type=b.StiSparklinesType.Area,this.showHighLowPoints=!1,this.showFirstLastPoints=!0,this.allowCustomColors=!1,this.positiveColor=f.get("537eb6"),this.negativeColor=f.get("ff0000"),this.ident=C.StiMeterIdent.SparklinesColumn,null!=i&&(this.type=i),null!=a&&(this.showHighLowPoints=a),null!=n&&(this.showFirstLastPoints=n),null!=p&&(this.allowCustomColors=p),null!=S&&(this.positiveColor=S),null!=g&&(this.negativeColor=g)}implements(){return i.ImplementsStiSparklinesColumn||(i.ImplementsStiSparklinesColumn=super.implements().concat([t,e])),i.ImplementsStiSparklinesColumn}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyEnum("Type",b.StiSparklinesType,this.type,b.StiSparklinesType.Area),t.addPropertyBool("ShowHighLowPoints",this.showHighLowPoints),t.addPropertyBool("ShowFirstLastPoints",this.showFirstLastPoints,!0),t.addPropertyBool("AllowCustomColors",this.allowCustomColors),t.addPropertyStringNullOrEmpty("PositiveColor",s.Serialize.jColor(this.positiveColor,f.get("537eb6"))),t.addPropertyStringNullOrEmpty("NegativeColor",s.Serialize.jColor(this.negativeColor,f.get("ff0000"))),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"Type":this.type=o.parse(b.StiSparklinesType,t.value.toString());break;case"ShowHighLowPoints":this.showHighLowPoints=t.value.stimulsoft().toBoolean();break;case"ShowFirstLastPoints":this.showFirstLastPoints=t.value.stimulsoft().toBoolean();break;case"AllowCustomColors":this.allowCustomColors=t.value.stimulsoft().toBoolean();break;case"PositiveColor":this.positiveColor=s.Deserialize.color(t.value.toString());break;case"NegativeColor":this.negativeColor=s.Deserialize.color(t.value.toString());break}}loadFromXml(r,e,t){super.loadFromXml(r,e,t);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"Type":this.type=o.parse(b.StiSparklinesType,e.textContent);break;case"ShowHighLowPoints":this.showHighLowPoints=e.textContent.stimulsoft().toBoolean();break;case"ShowFirstLastPoints":this.showFirstLastPoints=e.textContent.stimulsoft().toBoolean();break;case"AllowCustomColors":this.allowCustomColors=e.textContent.stimulsoft().toBoolean();break;case"PositiveColor":this.positiveColor=a.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"NegativeColor":this.negativeColor=a.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break}}}shouldSerializePositiveColor(){return!this.positiveColor.equals(f.get("537eb6"))}shouldSerializeNegativeColor(){return!this.positiveColor.equals(f.get("ff0000"))}getUniqueCode(){var e=super.getUniqueCode(),e;return e=397*(e=397*(e=397*(e=397*(e=397*e^this.showHighLowPoints.stimulsoft().getHashCode())^this.showFirstLastPoints.stimulsoft().getHashCode())^this.allowCustomColors.stimulsoft().getHashCode())^this.positiveColor.stimulsoft().getHashCode())^this.negativeColor.stimulsoft().getHashCode(),Math.abs(e)}isDefault(){return super.isDefault()&&this.type==b.StiSparklinesType.Area&&!this.showHighLowPoints&&this.showFirstLastPoints&&!this.allowCustomColors&&!this.shouldSerializePositiveColor()&&!this.shouldSerializeNegativeColor()}get localizedName(){return r.get("Dashboard","Sparklines")}}b.StiSparklinesColumn=i}(o=C.Table||(C.Table={}))}(Stimulsoft=Stimulsoft||{}),function(n){var e,t,r,g,o;t=e=n.Dashboard||(n.Dashboard={}),g=r=t.Components||(t.Components={}),function(e){var o=n.System.Enum,p=n.Base.Drawing.StiColor,r=n.Base.StiJsonReportObjectHelper,t=n.Base.JsonReportObject.IStiJsonReportObject,S=n.Base.Drawing.StiHorAlignment,s=n.Base.Meters.IStiBubbleColumn,i=n.Base.Localization.StiLocalization;class a extends e.StiMeasureColumn{constructor(e,t,r,o,s,i,a,n,l,u,h,m,c,d){super(e,t,r,o,s,i,a,n,l,u,h),this.ident=g.StiMeterIdent.BubbleColumn,this.allowCustomColors=!1,this.positiveColor=p.get("537eb6"),this.negativeColor=p.get("537eb6"),this.horAlignment=S.Center,null!=m&&(this.allowCustomColors=m),null!=c&&(this.positiveColor=c),null!=d&&(this.negativeColor=d)}implements(){return a.ImplementsStiBubbleColumn||(a.ImplementsStiBubbleColumn=super.implements().concat([s,t])),a.ImplementsStiBubbleColumn}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyEnum("HorAlignment",S,this.horAlignment,S.Center),t.addPropertyBool("AllowCustomColors",this.allowCustomColors),t.addPropertyStringNullOrEmpty("PositiveColor",r.Serialize.jColor(this.positiveColor,p.get("537eb6"))),t.addPropertyStringNullOrEmpty("NegativeColor",r.Serialize.jColor(this.negativeColor,p.get("ff0000"))),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"HorAlignment":this.horAlignment=o.parse(S,t.value.toString());break;case"AllowCustomColors":this.allowCustomColors=t.value.stimulsoft().toBoolean();break;case"PositiveColor":this.positiveColor=r.Deserialize.color(t.value.toString());break;case"NegativeColor":this.negativeColor=r.Deserialize.color(t.value.toString());break}}loadFromXml(r,e,t){super.loadFromXml(r,e,t);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"HorAlignment":this.horAlignment=o.parse(S,e.textContent);break;case"AllowCustomColors":this.allowCustomColors=e.textContent.stimulsoft().toBoolean();break;case"PositiveColor":this.positiveColor=n.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"NegativeColor":this.negativeColor=n.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break}}}getUniqueCode(){var e,e=397*(e=super.getUniqueCode())^this.horAlignment.stimulsoft().getHashCode();return Math.abs(e)}isDefault(){return super.isDefault()&&this.horAlignment==S.Center&&!this.allowCustomColors&&!this.shouldSerializePositiveColor()&&!this.shouldSerializeNegativeColor()}shouldSerializePositiveColor(){return!p.get("537eb6").equals(this.positiveColor)}shouldSerializeNegativeColor(){return!p.get("ff0000").equals(this.negativeColor)}get localizedName(){return i.get("Chart","Bubble")}}e.StiBubbleColumn=a}(o=g.Table||(g.Table={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r;t=e=s.Dashboard||(s.Dashboard={}),function(e){var r=s.System.StiString,o=s.System.Globalization.CultureInfo;class t{static set(e){if(r.isNullOrWhiteSpace(e.culture))return null;var t=o.currentCulture;try{o.currentCulture=o.cultures[e.culture]}catch(e){}return t}static restore(e){if(null==e)return;o.currentCulture=e}}e.StiCultureHelper=t}(r=t.Helpers||(t.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(d){var e,t,r;t=e=d.Dashboard||(d.Dashboard={}),function(r){var n=d.Data.Functions.StiExtValueConverter,l=d.Dashboard.Helpers.StiCultureHelper,u=d.System.Type,o=d.Report.Dictionary.StiDataColumn,h=d.Data.Helpers.StiMoneyNameHelper,e=d.Report.Components.TextFormats.StiBooleanFormatService,t=d.Report.Components.TextFormats.StiDateFormatService,s=d.Report.Components.TextFormats.StiNumberFormatService,i=d.Report.Components.TextFormats.StiPercentageFormatService,a=d.Report.Components.TextFormats.StiCurrencyFormatService,m=d.Report.Components.TextFormats.StiGeneralFormatService;class c{static get defaultGeneralFormat(){return null==this._defaultGeneralFormat&&(this._defaultGeneralFormat=new m),this._defaultGeneralFormat}static get defaultCurrencyFormat(){return null==this._defaultCurrencyFormat&&(this._defaultCurrencyFormat=new a),this._defaultCurrencyFormat}static get defaultPercentageFormat(){return null==this._defaultPercentageFormat&&(this._defaultPercentageFormat=new i(1,1,null,null,0,null,100,null,null,null,null,d.Report.Components.StiTextFormatState.DecimalDigits|d.Report.Components.StiTextFormatState.GroupSize|d.Report.Components.StiTextFormatState.PositivePattern|d.Report.Components.StiTextFormatState.NegativePattern)),this._defaultPercentageFormat}static get defaultNumberFormat(){return null==this._defaultNumberFormat&&(this._defaultNumberFormat=new s),this._defaultNumberFormat}static get defaultIntegerFormat(){return null==this._defaultIntegerFormat&&(this._defaultIntegerFormat=new s(null,null,null,0,null,null,!1,!1)),this._defaultIntegerFormat}static get defaultDateFormat(){return null==this._defaultDateFormat&&(this._defaultDateFormat=new t),this._defaultDateFormat}static get defaultBooleanFormat(){return null==this._defaultBooleanFormat&&(this._defaultBooleanFormat=new e),this._defaultBooleanFormat}static formatBasedOnColumnType(e,t,r){var o,s;let i=l.set(e.report);try{if(null==r)return"";if(null==t)return r.toString();if(n.isEligable(r,null===(o=null==e?void 0:e.report)||void 0===o?void 0:o.culture))return n.convert(r,null===(s=null==e?void 0:e.report)||void 0===s?void 0:s.culture);if(null==t.textFormat||t.textFormat.is(m)){var a=u.getType(r);if(u.isDateType(a))return this.defaultDateFormat.format(r);if((u.isNumericType(a)||u.isIntegerType(a))&&h.isMoneyName(t.label))return this.defaultCurrencyFormat.format(r);if(u.isIntegerType(a))return this.defaultIntegerFormat.format(r);if(u.isNumericType(a))return this.defaultNumberFormat.format(r);if(a==Boolean)return this.defaultBooleanFormat.format(r)}return t.textFormat.format(r)}catch(e){return r.toString()}finally{l.restore(i)}null!==i&&void 0!==i&&i.fix()}static format(e,t,r){let o=l.set(e);try{if(null==r)return"";return null!=t?t.format(r):r.toString()}catch(e){return r.toString()}finally{l.restore(o)}null!==o&&void 0!==o&&o.fix()}static formatAsPercentage(e,t){let r=l.set(e);try{if(null==t)return"";return this.defaultPercentageFormat.format(t)}catch(e){return t.toString()}finally{l.restore(r)}null!==r&&void 0!==r&&r.fix()}static formatAsPercentage2(e,t,r){let o=l.set(e);try{if(null==r)return"";if(null==t||t.is(m))return this.defaultPercentageFormat.format(r);return t.format(r)}catch(e){return r.toString()}finally{l.restore(o)}null!==o&&void 0!==o&&o.fix()}static getDefaultFormatForColumn(e){var t=r.StiMeterHelper.toDataType(e);if(null==t)return this.defaultGeneralFormat;if(u.isNumericType(t)){if(h.isMoneyName(e.as(o).nameInSource))return this.defaultCurrencyFormat;if(u.isIntegerType(t))return this.defaultIntegerFormat;return this.defaultNumberFormat}if(u.isDateType(t))return this.defaultDateFormat;if(t==Boolean)return this.defaultBooleanFormat;return this.defaultGeneralFormat}}r.StiTextFormatHelper=c}(r=t.Helpers||(t.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(n){var e,t,r,g,o;t=e=n.Dashboard||(n.Dashboard={}),g=r=t.Components||(t.Components={}),function(e){var S=n.Report.Dashboard.StiTableColumnSize,t=n.Report.Dashboard.IStiTableColumnSize,r=n.System.StiString,o=n.Base.Meters.IStiDimensionColumn,s=n.Base.Meters.IStiDimensionMeter,i=n.Base.Localization.StiLocalization;class a extends e.StiTableColumn{constructor(e,t,r,o,s,i,a,n,l,u,h,m,c,d,p){super(e,t,r,o,s,i,a,l,m,c,d),this.ident=g.StiMeterIdent.DimensionColumn,this.showHyperlink=!1,this.hyperlinkPattern="",this.size=new S,null!=u&&(this.showHyperlink=u),null!=h&&(this.hyperlinkPattern=h),null!=p&&(this.size=p)}implements(){return a.ImplementsStiDimensionColumn||(a.ImplementsStiDimensionColumn=super.implements().concat([s,o,t])),a.ImplementsStiDimensionColumn}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyBool("ShowHyperlink",this.showHyperlink,!1),t.addPropertyStringNullOrEmpty("HyperlinkPattern",this.hyperlinkPattern),null!=this.size&&t.addPropertyJObject("Size",this.size.saveToJsonObject(e)),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"ShowHyperlink":this.showHyperlink=t.value.stimulsoft().toBoolean();break;case"HyperlinkPattern":this.hyperlinkPattern=t.value.toString();break;case"Size":this.size=S.createFromJsonObject(t.value);break}}loadFromXml(r,e,t){super.loadFromXml(r,e,t);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"ShowHyperlink":this.showHyperlink=e.textContent.stimulsoft().toBoolean();break;case"HyperlinkPattern":this.hyperlinkPattern=e.textContent;break;case"Size":this.size=S.createFromXml(e);break}}}clone(){var e;let t=super.clone();return t.size=null===(e=this.size)||void 0===e?void 0:e.clone(),t}get localizedName(){return i.get("Dashboard","Dimension")}shouldSerializeSize(){return null==this.size||!this.size.isDefault()}checkRules(){var e;null!==(e=this.size)&&void 0!==e&&e.checkRules()}isDefault(){return super.isDefault()&&!this.showHyperlink&&r.isNullOrEmpty(this.hyperlinkPattern)&&null!=this.size&&this.size.isDefault()}}e.StiDimensionColumn=a}(o=g.Table||(g.Table={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiColorMapMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.ColorMapMeter}implements(){return o.ImplementsStiColorMapMeter||(o.ImplementsStiColorMapMeter=super.implements().concat([t])),o.ImplementsStiColorMapMeter}get localizedName(){return r.get("PropertyMain","Color")}}e.StiColorMapMeter=o}(o=i.RegionMap||(i.RegionMap={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiValueMapMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiMeasureMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.ValueMapMeter}implements(){return o.ImplementsStiValueMapMeter||(o.ImplementsStiValueMapMeter=super.implements().concat([t])),o.ImplementsStiValueMapMeter}get localizedName(){return r.get("PropertyMain","Value")}}e.StiValueMapMeter=o}(o=i.RegionMap||(i.RegionMap={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiGroupMapMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.GroupMapMeter}implements(){return o.ImplementsStiGroupMapMeter||(o.ImplementsStiGroupMapMeter=super.implements().concat([t])),o.ImplementsStiGroupMapMeter}get localizedName(){return r.get("PropertyMain","Group")}}e.StiGroupMapMeter=o}(o=i.RegionMap||(i.RegionMap={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiNameMapMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.NameMapMeter}implements(){return o.ImplementsStiNameMapMeter||(o.ImplementsStiNameMapMeter=super.implements().concat([t])),o.ImplementsStiNameMapMeter}get localizedName(){return r.get("PropertyMain","Name")}}e.StiNameMapMeter=o}(o=i.RegionMap||(i.RegionMap={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiKeyMapMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.KeyMapMeter}implements(){return o.ImplementsStiKeyMapMeter||(o.ImplementsStiKeyMapMeter=super.implements().concat([t])),o.ImplementsStiKeyMapMeter}get localizedName(){return r.get("PropertyMain","Key")}}e.StiKeyMapMeter=o}(o=i.RegionMap||(i.RegionMap={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiValueMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiMeasureMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.ValueProgressMeter}implements(){return o.ImplementsStiValueProgressMeter||(o.ImplementsStiValueProgressMeter=super.implements().concat([t])),o.ImplementsStiValueProgressMeter}get localizedName(){return r.get("PropertyMain","Value")}}e.StiValueProgressMeter=o}(o=i.Progress||(i.Progress={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiValueMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiMeasureMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.TargetProgressMeter}implements(){return o.ImplementsStiValueProgressMeter||(o.ImplementsStiValueProgressMeter=super.implements().concat([t])),o.ImplementsStiValueProgressMeter}get localizedName(){return r.get("PropertyMain","Target")}}e.StiTargetProgressMeter=o}(o=i.Progress||(i.Progress={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiValueMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.SeriesProgressMeter}implements(){return o.ImplementsStiSeriesProgressMeter||(o.ImplementsStiSeriesProgressMeter=super.implements().concat([t])),o.ImplementsStiSeriesProgressMeter}get localizedName(){return r.get("PropertyMain","Series")}}e.StiSeriesProgressMeter=o}(o=i.Progress||(i.Progress={}))}(Stimulsoft=Stimulsoft||{}),function(C){var e,t,r,y,o;t=e=C.Dashboard||(C.Dashboard={}),y=r=t.Components||(t.Components={}),function(e){var t=C.Report.Dashboard.ImplementsIStiTableColumnSize,r=C.Report.Dashboard.IStiTableColumnSize,n=C.Report.Dashboard.StiTableColumnSize,o=C.Base.JsonReportObject.IStiJsonReportObject,s=C.Report.Components.ImplementsIStiTextFormat,i=C.Report.Components.ImplementsIStiHorAlignment,a=C.System.Enum,l=C.Base.Meters.IStiPivotColumn,u=C.Report.Components.IStiTextFormat,h=C.Report.Components.TextFormats.StiFormatService,m=C.Report.Components.TextFormats.StiGeneralFormatService,c=C.Base.Drawing.StiHorAlignment,d=C.Report.Components.IStiHorAlignment,p=C.Base.Meters.IStiDimensionMeter,S=C.Base.Localization.StiLocalization,g=C.Data.Engine.IStiDataTopN,b=C.Data.Engine.StiDataTopN;class f extends y.StiMeter{constructor(e,t,r,o,s,i,a){super(e,t,r),this.horAlignment=c.Center,this.textFormat=new m,this.size=new n,this.topN=new b,this.ident=y.StiMeterIdent.PivotColumn,null!=o&&(this.horAlignment=o),null!=s&&(this.textFormat=s),null!=i&&(this.topN=i),null!=a&&(this.size=a)}implements(){return f.ImplementsStiPivotColumn||(f.ImplementsStiPivotColumn=super.implements().concat([p,d,u,r,l,g,...i,...s,...t,o])),f.ImplementsStiPivotColumn}clone(){var e;let t=super.clone();return t.textFormat=this.textFormat.clone(),t.topN=this.topN.clone(),t.size=null===(e=this.size)||void 0===e?void 0:e.clone(),t}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyEnum("HorAlignment",c,this.horAlignment,c.Left),this.textFormat.is(m)||null==this.textFormat||t.addPropertyJObject("TextFormat",this.textFormat.saveToJsonObject(e)),null!=this.topN&&t.addPropertyJObject("TopN",this.topN.saveToJsonObject(e)),null!=this.size&&t.addPropertyJObject("Size",this.size.saveToJsonObject(e)),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"HorAlignment":this.horAlignment=a.parse(c,t.value.toString());break;case"TextFormat":this.textFormat=h.createFromJsonObject(t.value);break;case"TopN":this.topN=b.createFromJsonObject(t.value);break;case"Size":this.size=n.createFromJsonObject(t.value);break}}loadFromXml(t,e){super.loadFromXml(t,e);for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];switch(r.nodeName){case"HorAlignment":this.horAlignment=a.parse(c,r.textContent);break;case"TextFormat":this.textFormat=h.loadFormatFromXml(r);break;case"TopN":this.topN=b.createFromXml(r);break;case"Size":this.size=n.createFromXml(r);break}}}shouldSerializeTextFormat(){return!this.textFormat.is(m)}shouldSerializeSize(){return null==this.size||!this.size.isDefault()}getUniqueCode(){var e=super.getUniqueCode(),e;return e=397*(e=397*(e=397*(e=397*e^this.horAlignment)^(null!=this.textFormat?this.textFormat.stimulsoft().getHashCode():0))^(null!=this.topN?this.topN.stimulsoft().getHashCode():0))^(null!=this.size?this.size.stimulsoft().getHashCode():0),Math.abs(e)}get localizedName(){return S.get("Components","StiPivotColumn")}}e.StiPivotColumn=f}(o=y.PivotTable||(y.PivotTable={}))}(Stimulsoft=Stimulsoft||{}),function(C){var e,t,r,y,o;t=e=C.Dashboard||(C.Dashboard={}),y=r=t.Components||(t.Components={}),function(e){var n=C.Report.Dashboard.StiTableColumnSize,t=C.Report.Dashboard.ImplementsIStiTableColumnSize,r=C.Report.Dashboard.IStiTableColumnSize,o=C.Base.JsonReportObject.IStiJsonReportObject,s=C.Report.Components.ImplementsIStiTextFormat,i=C.Report.Components.ImplementsIStiHorAlignment,l=C.Report.Components.TextFormats.StiGeneralFormatService,a=C.Report.Components.TextFormats.StiFormatService,u=C.Base.Drawing.StiHorAlignment,h=C.System.Enum,m=C.Base.Meters.IStiPivotRow,c=C.Report.Components.IStiTextFormat,d=C.Report.Components.IStiHorAlignment,p=C.Base.Meters.IStiDimensionMeter,S=C.Base.Localization.StiLocalization,g=C.Data.Engine.IStiDataTopN,b=C.Data.Engine.StiDataTopN;class f extends y.StiMeter{constructor(e,t,r,o,s,i,a){super(e,t,r),this.horAlignment=u.Center,this.textFormat=new l,this.size=new n,this.topN=new b,this.ident=y.StiMeterIdent.PivotRow,null!=o&&(this.horAlignment=o),null!=s&&(this.textFormat=s),null!=i&&(this.topN=i),null!=a&&(this.size=a)}implements(){return f.ImplementsStiPivotRow||(f.ImplementsStiPivotRow=super.implements().concat([p,d,c,r,m,g,...i,...s,...t,o])),f.ImplementsStiPivotRow}clone(){var e;let t=super.clone();return t.textFormat=this.textFormat.clone(),t.topN=this.topN.clone(),t.size=null===(e=this.size)||void 0===e?void 0:e.clone(),t}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyEnum("HorAlignment",u,this.horAlignment,u.Left),this.textFormat.is(l)||null==this.textFormat||t.addPropertyJObject("TextFormat",this.textFormat.saveToJsonObject(e)),null!=this.topN&&t.addPropertyJObject("TopN",this.topN.saveToJsonObject(e)),null!=this.size&&t.addPropertyJObject("Size",this.size.saveToJsonObject(e)),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"HorAlignment":this.horAlignment=h.parse(u,t.value.toString());break;case"TextFormat":this.textFormat=a.createFromJsonObject(t.value);break;case"TopN":this.topN=b.createFromJsonObject(t.value);break;case"Size":this.size=n.createFromJsonObject(t.value);break}}loadFromXml(t,e){super.loadFromXml(t,e);for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];switch(r.nodeName){case"HorAlignment":this.horAlignment=h.parse(u,r.textContent);break;case"TextFormat":this.textFormat=a.loadFormatFromXml(r);break;case"TopN":this.topN=b.createFromXml(r);break;case"Size":this.size=n.createFromXml(r);break}}}shouldSerializeTextFormat(){return!this.textFormat.is(l)}shouldSerializeSize(){return null==this.size||!this.size.isDefault()}getUniqueCode(){var e=super.getUniqueCode(),e;return e=397*(e=397*(e=397*(e=397*e^this.horAlignment)^(null!=this.textFormat?this.textFormat.stimulsoft().getHashCode():0))^(null!=this.topN?this.topN.stimulsoft().getHashCode():0))^(null!=this.size?this.size.stimulsoft().getHashCode():0),Math.abs(e)}get localizedName(){return S.get("Components","StiPivotRow")}}e.StiPivotRow=f}(o=y.PivotTable||(y.PivotTable={}))}(Stimulsoft=Stimulsoft||{}),function(g){var e,t,r,b,o;t=e=g.Dashboard||(g.Dashboard={}),b=r=t.Components||(t.Components={}),function(e){var a=g.Report.Dashboard.StiTableColumnSize,t=g.Report.Dashboard.ImplementsIStiTableColumnSize,r=g.Report.Dashboard.IStiTableColumnSize,o=g.Base.JsonReportObject.IStiJsonReportObject,s=g.Report.Components.ImplementsIStiTextFormat,i=g.Report.Components.ImplementsIStiHorAlignment,n=g.System.Enum,l=g.Report.Components.TextFormats.StiFormatService,u=g.Report.Components.TextFormats.StiGeneralFormatService,h=g.Base.Drawing.StiHorAlignment,m=g.Base.Meters.IStiPivotSummary,c=g.Report.Components.IStiTextFormat,d=g.Report.Components.IStiHorAlignment,p=g.Base.Localization.StiLocalization;class S extends b.StiMeasureMeter{constructor(e,t,r,o,s,i){super(e,t,r),this.horAlignment=h.Center,this.textFormat=new u,this.size=new a,this.ident=b.StiMeterIdent.PivotSummary,null!=o&&(this.horAlignment=o),null!=s&&(this.textFormat=s),null!=i&&(this.size=i)}implements(){return S.ImplementsStiPivotSummary||(S.ImplementsStiPivotSummary=super.implements().concat([d,c,r,m,...i,...s,...t,o])),S.ImplementsStiPivotSummary}clone(){var e;let t=super.clone();return t.textFormat=this.textFormat.clone(),t.size=null===(e=this.size)||void 0===e?void 0:e.clone(),t}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyEnum("HorAlignment",h,this.horAlignment,h.Left),this.textFormat.is(u)||null==this.textFormat||t.addPropertyJObject("TextFormat",this.textFormat.saveToJsonObject(e)),null!=this.size&&t.addPropertyJObject("Size",this.size.saveToJsonObject(e)),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"HorAlignment":this.horAlignment=n.parse(h,t.value.toString());break;case"TextFormat":this.textFormat=l.createFromJsonObject(t.value);break;case"Size":this.size=a.createFromJsonObject(t.value);break}}loadFromXml(t,e){super.loadFromXml(t,e);for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];switch(r.nodeName){case"HorAlignment":this.horAlignment=n.parse(h,r.textContent);break;case"TextFormat":this.textFormat=l.loadFormatFromXml(r);break;case"Size":this.size=a.createFromXml(r);break}}}shouldSerializeTextFormat(){return!this.textFormat.is(u)}shouldSerializeSize(){return null==this.size||!this.size.isDefault()}getUniqueCode(){var e=super.getUniqueCode(),e;return e=397*(e=397*(e=397*e^this.horAlignment)^(null!=this.textFormat?this.textFormat.stimulsoft().getHashCode():0))^(null!=this.size?this.size.stimulsoft().getHashCode():0),Math.abs(e)}get localizedName(){return p.get("Components","StiPivotSummary")}}e.StiPivotSummary=S}(o=b.PivotTable||(b.PivotTable={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),s=r=t.Components||(t.Components={}),function(e){var t=o.Base.Localization.StiLocalization;class r extends s.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=s.StiMeterIdent.LatitudeMapMeter}get localizedName(){return t.get("PropertyMain","Latitude")}}e.StiLatitudeMapMeter=r}(i=s.OnlineMap||(s.OnlineMap={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),s=r=t.Components||(t.Components={}),function(e){var t=o.Base.Localization.StiLocalization;class r extends s.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=s.StiMeterIdent.LongitudeMapMeter}get localizedName(){return t.get("PropertyMain","Longitude")}}e.StiLongitudeMapMeter=r}(i=s.OnlineMap||(s.OnlineMap={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiValueMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.KeyListBoxMeter}implements(){return o.ImplementsStiKeyListBoxMeter||(o.ImplementsStiKeyListBoxMeter=super.implements().concat([t])),o.ImplementsStiKeyListBoxMeter}get localizedName(){return r.get("PropertyMain","Key")}}e.StiKeyListBoxMeter=o}(o=i.ListBox||(i.ListBox={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiArgumentMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.NameListBoxMeter}implements(){return o.ImplementsStiNameListBoxMeter||(o.ImplementsStiNameListBoxMeter=super.implements().concat([t])),o.ImplementsStiNameListBoxMeter}get localizedName(){return r.get("PropertyMain","Name")}}e.StiNameListBoxMeter=o}(o=i.ListBox||(i.ListBox={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiValueMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.ValueDatePickerMeter}implements(){return o.ImplementsStiValueDatePickerMeter||(o.ImplementsStiValueDatePickerMeter=super.implements().concat([t])),o.ImplementsStiValueDatePickerMeter}get localizedName(){return r.get("PropertyMain","Value")}}e.StiValueDatePickerMeter=o}(o=i.DatePicker||(i.DatePicker={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),s=r=t.Components||(t.Components={}),function(e){var t=o.Base.Localization.StiLocalization;class r extends s.StiMeasureMeter{constructor(e,t,r){super(e,t,r),this.ident=s.StiMeterIdent.EndValueChartMeter}get localizedName(){return t.get("PropertyMain","ValueEnd")}}e.StiEndValueChartMeter=r}(i=s.Chart||(s.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiArgumentMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.NameComboBoxMeter}implements(){return o.ImplementsStiNameComboBoxMeter||(o.ImplementsStiNameComboBoxMeter=super.implements().concat([t])),o.ImplementsStiNameComboBoxMeter}get localizedName(){return r.get("PropertyMain","Name")}}e.StiNameComboBoxMeter=o}(o=i.ComboBox||(i.ComboBox={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiValueMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.KeyComboBoxMeter}implements(){return o.ImplementsStiKeyComboBoxMeter||(o.ImplementsStiKeyComboBoxMeter=super.implements().concat([t])),o.ImplementsStiKeyComboBoxMeter}get localizedName(){return r.get("PropertyMain","Key")}}e.StiKeyComboBoxMeter=o}(o=i.ComboBox||(i.ComboBox={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiSeriesMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.SeriesGaugeMeter}implements(){return o.ImplementsStiSeriesGaugeMeter||(o.ImplementsStiSeriesGaugeMeter=super.implements().concat([t])),o.ImplementsStiSeriesGaugeMeter}get localizedName(){return r.get("PropertyMain","Series")}}e.StiSeriesGaugeMeter=o}(o=i.Gauge||(i.Gauge={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiValueMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiMeasureMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.ValueGaugeMeter}implements(){return o.ImplementsStiValueGaugeMeter||(o.ImplementsStiValueGaugeMeter=super.implements().concat([t])),o.ImplementsStiValueGaugeMeter}get localizedName(){return r.get("PropertyMain","Value")}}e.StiValueGaugeMeter=o}(o=i.Gauge||(i.Gauge={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiTargetMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiMeasureMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.TargetGaugeMeter}implements(){return o.ImplementsStiTargetGaugeMeter||(o.ImplementsStiTargetGaugeMeter=super.implements().concat([t])),o.ImplementsStiTargetGaugeMeter}get localizedName(){return r.get("PropertyMain","Target")}}e.StiTargetGaugeMeter=o}(o=i.Gauge||(i.Gauge={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiSeriesMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.SeriesIndicatorMeter}implements(){return o.ImplementsStiSeriesIndicatorMeter||(o.ImplementsStiSeriesIndicatorMeter=super.implements().concat([t])),o.ImplementsStiSeriesIndicatorMeter}get localizedName(){return r.get("PropertyMain","Series")}}e.StiSeriesIndicatorMeter=o}(o=i.Indicator||(i.Indicator={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiValueMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiMeasureMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.ValueIndicatorMeter}implements(){return o.ImplementsStiValueIndicatorMeter||(o.ImplementsStiValueIndicatorMeter=super.implements().concat([t])),o.ImplementsStiValueIndicatorMeter}get localizedName(){return r.get("PropertyMain","Value")}}e.StiValueIndicatorMeter=o}(o=i.Indicator||(i.Indicator={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiTargetMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiMeasureMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.TargetIndicatorMeter}implements(){return o.ImplementsStiTargetIndicatorMeter||(o.ImplementsStiTargetIndicatorMeter=super.implements().concat([t])),o.ImplementsStiTargetIndicatorMeter}get localizedName(){return r.get("PropertyMain","Target")}}e.StiTargetIndicatorMeter=o}(o=i.Indicator||(i.Indicator={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),s=r=t.Components||(t.Components={}),function(e){var t=o.Base.Localization.StiLocalization;class r extends s.StiMeasureMeter{constructor(e,t,r){super(e,t,r),this.ident=s.StiMeterIdent.WeightChartMeter}get localizedName(){return t.get("PropertyMain","Weight")}}e.StiWeightChartMeter=r}(i=s.Chart||(s.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(a){var e,t,r,d,o;t=e=a.Dashboard||(a.Dashboard={}),d=r=t.Components||(t.Components={}),function(e){var u=a.Report.Dashboard.StiChartSeriesType,h=a.Base.Drawing.StiPenStyle,m=a.Report.Dashboard.StiEmptyCellsAs,c=a.Report.Chart.StiSeriesYAxis,t=a.Base.Meters.IStiValueMeter,r=a.Base.JsonReportObject.IStiJsonReportObject,o=a.System.Enum,s=a.Base.Localization.StiLocalization;class i extends d.StiMeasureMeter{constructor(e,t,r,o,s,i,a,n,l){super(e,t,r),this.seriesType=u.ClusteredColumn,this.yAxis=c.LeftYAxis,this.lineStyle=h.Solid,this.lineWidth=2,this.showZeros=m.Zero,this.showNulls=m.Zero,this.ident=d.StiMeterIdent.ValueChartMeter,null!=o&&(this.seriesType=o),null!=s&&(this.yAxis=s),null!=i&&(this.lineStyle=i),null!=a&&(this.lineWidth=a),null!=l&&(this.showNulls=l),null!=n&&(this.showZeros=n)}implements(){return i.ImplementsStiValueChartMeter||(i.ImplementsStiValueChartMeter=super.implements().concat([t,r])),i.ImplementsStiValueChartMeter}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyEnum("SeriesType",u,this.seriesType,u.ClusteredColumn),t.addPropertyEnum("YAxis",c,this.yAxis,c.LeftYAxis),t.addPropertyEnum("LineStyle",h,this.lineStyle,h.Solid),t.addPropertyNumber("LineWidth",this.lineWidth,2),t.addPropertyEnum("ShowZeros",m,this.showZeros,m.Zero),t.addPropertyEnum("ShowNulls",m,this.showNulls,m.Zero),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"SeriesType":this.seriesType=o.parse(u,t.value.toString());break;case"YAxis":this.yAxis=o.parse(c,t.value.toString());break;case"LineStyle":this.lineStyle=o.parse(h,t.value.toString());break;case"LineWidth":this.lineWidth=t.value.stimulsoft().toNumber();break;case"ShowZeros":this.showZeros=o.parse(m,t.value.toString());break;case"ShowNulls":this.showNulls=o.parse(m,t.value.toString());break}}loadFromXml(r,e){super.loadFromXml(r,e);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"SeriesType":this.seriesType=o.parse(u,e.textContent);break;case"YAxis":this.yAxis=o.parse(c,e.textContent);break;case"LineStyle":this.lineStyle=o.parse(h,e.textContent);break;case"LineWidth":this.lineWidth=e.textContent.stimulsoft().toNumber();break;case"ShowZeros":this.showZeros=o.parse(m,e.textContent);break;case"ShowNulls":this.showNulls=o.parse(m,e.textContent);break}}}getUniqueCode(){var e=super.getUniqueCode(),e;return e=397*(e=397*(e=397*(e=397*(e=397*(e=397*e^this.seriesType)^this.yAxis)^this.lineStyle)^this.lineWidth)^this.showNulls)^this.showZeros,Math.abs(e)}get localizedName(){return s.get("PropertyMain","Value")}}e.StiValueChartMeter=i}(o=d.Chart||(d.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,i,s;t=e=o.Dashboard||(o.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var s=o.Report.Dashboard.StiChartSeriesType,t=o.Base.Localization.StiLocalization;class r extends e.StiValueChartMeter{constructor(e,t,r,o){super(e,t,r,o),this.ident=i.StiMeterIdent.OpenValueChartMeter,this.seriesType=s.Candlestick}get localizedName(){return t.get("PropertyMain","ValueOpen")}}e.StiOpenValueChartMeter=r}(s=i.Chart||(i.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),s=r=t.Components||(t.Components={}),function(e){var t=o.Base.Localization.StiLocalization;class r extends s.StiMeasureMeter{constructor(e,t,r){super(e,t,r),this.ident=s.StiMeterIdent.CloseValueChartMeter}get localizedName(){return t.get("PropertyMain","ValueClose")}}e.StiCloseValueChartMeter=r}(i=s.Chart||(s.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),s=r=t.Components||(t.Components={}),function(e){var t=o.Base.Localization.StiLocalization;class r extends s.StiMeasureMeter{constructor(e,t,r){super(e,t,r),this.ident=s.StiMeterIdent.LowValueChartMeter}get localizedName(){return t.get("PropertyMain","ValueLow")}}e.StiLowValueChartMeter=r}(i=s.Chart||(s.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),s=r=t.Components||(t.Components={}),function(e){var t=o.Base.Localization.StiLocalization;class r extends s.StiMeasureMeter{constructor(e,t,r){super(e,t,r),this.ident=s.StiMeterIdent.HighValueChartMeter}get localizedName(){return t.get("PropertyMain","ValueHigh")}}e.StiHighValueChartMeter=r}(i=s.Chart||(s.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiSeriesMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.SeriesChartMeter}implements(){return o.ImplementsStiSeriesChartMeter||(o.ImplementsStiSeriesChartMeter=super.implements().concat([t])),o.ImplementsStiSeriesChartMeter}get localizedName(){return r.get("PropertyMain","Series")}}e.StiSeriesChartMeter=o}(o=i.Chart||(i.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),s=r=t.Components||(t.Components={}),function(e){var t=o.Base.Localization.StiLocalization;class r extends s.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=s.StiMeterIdent.LocationMapMeter}get localizedName(){return t.get("PropertyMain","Location")}}e.StiLocationMapMeter=r}(i=s.OnlineMap||(s.OnlineMap={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),s=r=t.Components||(t.Components={}),function(e){var t=o.Base.Localization.StiLocalization;class r extends s.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=s.StiMeterIdent.LocationColorMapMeter}get localizedName(){return t.get("PropertyMain","Group")}}e.StiLocationColorMapMeter=r}(i=s.OnlineMap||(s.OnlineMap={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),s=r=t.Components||(t.Components={}),function(e){var t=o.Base.Localization.StiLocalization;class r extends s.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=s.StiMeterIdent.LocationValueMapMeter}get localizedName(){return t.get("PropertyMain","Value")}}e.StiLocationValueMapMeter=r}(i=s.OnlineMap||(s.OnlineMap={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),s=r=t.Components||(t.Components={}),function(e){var t=o.Base.Localization.StiLocalization;class r extends s.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=s.StiMeterIdent.LocationArgumentMapMeter}get localizedName(){return t.get("PropertyMain","Argument")}}e.StiLocationArgumentMapMeter=r}(i=s.OnlineMap||(s.OnlineMap={}))}(Stimulsoft=Stimulsoft||{}),function(Me){var e,t,r;t=e=Me.Dashboard||(Me.Dashboard={}),function(r){var o=Me.Report.Dictionary.StiDataColumnExt,s=Me.Dashboard.Components.Table.StiBubbleColumn,t=Me.Dashboard.Components.OnlineMap.StiLocationArgumentMapMeter,i=Me.Dashboard.Components.OnlineMap.StiLocationMapMeter,a=Me.Dashboard.Components.OnlineMap.StiLocationColorMapMeter,n=Me.Dashboard.Components.OnlineMap.StiLocationValueMapMeter,l=Me.Data.Engine.StiDataTopN,u=Me.System.Type,h=Me.Report.Components.TextFormats.StiGeneralFormatService,m=Me.Data.Engine.StiDataFilterCondition,c=Me.Base.StiKeyHelper,d=Me.Dashboard.Components.TreeViewBox.StiKeyTreeViewBoxMeter,p=Me.Dashboard.Components.TreeView.StiKeyTreeViewMeter,S=Me.Base.Drawing.StiHorAlignment,g=Me.Dashboard.Components.Table.StiIndicatorColumn,b=Me.Dashboard.Components.Table.StiColorScaleColumn,f=Me.Dashboard.Components.Table.StiDataBarsColumn,C=Me.Dashboard.Components.Table.StiSparklinesColumn,y=Me.Data.Functions.Funcs,v=Me.Dashboard.Helpers.StiTextFormatHelper,w=Me.Dashboard.Components.Table.StiDimensionColumn,D=Me.Dashboard.Components.Table.StiMeasureColumn,x=Me.Base.Meters.IStiMeasureMeter,T=Me.Dashboard.Components.RegionMap.StiColorMapMeter,F=Me.Dashboard.Components.RegionMap.StiValueMapMeter,M=Me.Dashboard.Components.RegionMap.StiGroupMapMeter,I=Me.Dashboard.Components.RegionMap.StiNameMapMeter,k=Me.Dashboard.Components.RegionMap.StiKeyMapMeter,R=Me.Dashboard.Components.Progress.StiValueProgressMeter,A=Me.Dashboard.Components.Progress.StiTargetProgressMeter,B=Me.Dashboard.Components.Progress.StiSeriesProgressMeter,O=Me.Dashboard.Components.PivotTable.StiPivotColumn,P=Me.Dashboard.Components.PivotTable.StiPivotRow,E=Me.Dashboard.Components.PivotTable.StiPivotSummary,L=Me.Dashboard.Components.OnlineMap.StiLatitudeMapMeter,N=Me.Dashboard.Components.OnlineMap.StiLongitudeMapMeter,V=Me.Dashboard.Components.ListBox.StiKeyListBoxMeter,z=Me.Dashboard.Components.ListBox.StiNameListBoxMeter,J=Me.Dashboard.Components.DatePicker.StiValueDatePickerMeter,j=Me.Data.Engine.StiDataExpressionHelper,H=Me.Dashboard.Components.Table.StiTableColumn,G=Me.System.DateTime,X=Me.Data.Engine.StiDataFilterRule,U=Me.Dashboard.Components.ComboBox.StiNameComboBoxMeter,K=Me.Dashboard.Components.ComboBox.StiKeyComboBoxMeter,W=Me.Dashboard.Components.Gauge.StiSeriesGaugeMeter,q=Me.Dashboard.Components.Gauge.StiValueGaugeMeter,Y=Me.Dashboard.Components.Gauge.StiTargetGaugeMeter,Q=Me.Dashboard.Components.Indicator.StiSeriesIndicatorMeter,Z=Me.Dashboard.Components.Indicator.StiValueIndicatorMeter,_=Me.Dashboard.Components.Indicator.StiTargetIndicatorMeter,$=Me.Data.Helpers.StiExpressionHelper,ee=Me.Dashboard.Components.Chart.StiWeightChartMeter,te=Me.Dashboard.Components.Chart.StiOpenValueChartMeter,re=Me.Dashboard.Components.Chart.StiCloseValueChartMeter,oe=Me.Dashboard.Components.Chart.StiLowValueChartMeter,se=Me.Dashboard.Components.Chart.StiHighValueChartMeter,ie=Me.Dashboard.Components.Chart.StiArgumentChartMeter,ae=Me.Dashboard.Components.Chart.StiValueChartMeter,ne=Me.Dashboard.Components.Chart.StiSeriesChartMeter,le=Me.Report.Dictionary.StiDataColumn,ue=Me.Dashboard.Components.Chart.StiEndValueChartMeter,he=Me.Report.Dashboard.StiChartSeriesType,me=Me.Base.IStiAppAlias,ce=Me.Report.Dictionary.StiVariable;class e{static getValue(e){if(e.is(ae))return e;let t=new ae;return t.expression=Fe.toTotalExpression(e),t.label=e.label,t}static getEndValue(e){if(e.is2(ue))return e;let t=new ue;return t.expression=Fe.toTotalExpression(e),t.label=e.label,t}static getOpenValue(e){if(e.is(te))return e;let t=new te;return t.expression=Fe.toTotalExpression(e),t.label=e.label,t}static getCloseValue(e){if(e.is2(re))return e;let t=new re;return t.expression=Fe.toTotalExpression(e),t.label=e.label,t}static getLowValue(e){if(e.is2(oe))return e;let t=new oe;return t.expression=Fe.toTotalExpression(e),t.label=e.label,t}static getHighValue(e){if(e.is2(se))return e;let t=new se;return t.expression=Fe.toTotalExpression(e),t.label=e.label,t}static getValue2(e,t){let r=new ae;return r.expression=Fe.toTotalExpression2(e),r.seriesType=null!=t.values&&0<t.values.length?t.values.firstOrDefault().seriesType:he.ClusteredColumn,r.label=Fe.toAlias(e),r}static getEndValue2(e){let t=new ue;return t.expression=Fe.toTotalExpression2(e),t.label=Fe.toAlias(e),t}static getCloseValue2(e){let t=new re;return t.expression=Fe.toTotalExpression2(e),t.label=Fe.toAlias(e),t}static getLowValue2(e){let t=new oe;return t.expression=Fe.toTotalExpression2(e),t.label=Fe.toAlias(e),t}static getHighValue2(e){let t=new se;return t.expression=Fe.toTotalExpression2(e),t.label=Fe.toAlias(e),t}static getWeight(e){if(e.is2(ee))return e;let t=new ee;return t.expression=Fe.toTotalExpression(e),t.label=e.label,t}static getWeight2(e){let t=new ee;return t.expression=Fe.toTotalExpression2(e),t.label=Fe.toAlias(e),t}static getArgument(e){if(e.is2(ie))return e;let t=new ie;return t.expression=$.removeFunction(e.expression),t.label=e.label,t}static getArgument2(e){let t=new ie;return t.expression=Fe.toExpression(e),t.label=Fe.toAlias(e),t}static getX2(e){let t=new ie;return t.expression=Fe.toExpression(e),t.label=Fe.toAlias(e),t}static getX(e){if(e.is2(ie))return e;let t=new ie;return t.expression=$.removeFunction(e.expression),t.label=e.label,t}static getY2(e){let t=new ae;return t.expression=Fe.toExpression(e),t.label=Fe.toAlias(e),t}static getY(e){if(e.is(ae))return e;let t=new ae;return t.expression=$.removeFunction(e.expression),t.label=e.label,t}static getSeries(e){if(e.is2(ne))return e;let t=new ne;return t.expression=$.removeFunction(e.expression),t.label=e.label,t}static getSeries2(e){let t=new ne;return t.expression=Fe.toExpression(e),t.label=Fe.toAlias(e),t}}r.Chart=e;class de{static getName(e){if(e.is2(U))return e;let t=new U;return t.expression=e.expression,t.label=e.label,t}static getName2(e){let t=new U;return t.expression=Fe.toExpression(e),t.label=Fe.toAlias(e),t}static getKey(e){if(e.is2(K))return e;let t=new K;return t.expression=e.expression,t.label=e.label,t}static getKey2(e){let t=new K;return t.expression=Fe.toExpression(e),t.label=Fe.toAlias(e),t}}r.ComboBox=de;class pe{static getFilter2(e){let t="";null!=e&&null!=e.type&&(u.isDateType(e.type)?t=G.now.toString("MM/dd/yyyy"):u.isNumericType(e.type)&&(t="0"));let r=new X;return r.key=c.generateKey(),r.condition=m.EqualTo,r.path=Fe.toExpression(e),r.value=t,r.value2=t,r}static getFilter(e,t){let r=j.getDataColumnFromExpression(t.page.as(Me.Dashboard.Components.StiDashboard),e.expression),o="";null!=r&&null!=r.getDataType()&&(u.isDateType(r.getDataType())?o=G.now.toString("MM/dd/yyyy"):u.isNumericType(r.getDataType())&&(o="0"));let s=new X;return s.key=c.generateKey(),s.condition=m.EqualTo,s.path=$.removeFunction(e.expression),s.value=o,s.value2=o,s}}r.DataFilter=pe;class Se{static getValue(e){if(e.is2(J))return e;let t=new J;return t.expression=e.expression,t.label=e.label,t}static getValue2(e){let t=new J;return t.expression=Fe.toExpression(e),t.label=Fe.toAlias(e),t}}r.DatePicker=Se;class ge{static getSeries(e){if(e.is2(W))return e;let t=new W;return t.expression=$.removeFunction(e.expression),t.label=e.label,t}static getSeries2(e){let t=new W;return t.expression=Fe.toExpression(e),t.label=Fe.toAlias(e),t}static getValue(e){if(e.is2(q))return e;let t=new q;return t.expression=Fe.toTotalExpression(e),t.label=e.label,t}static getValue2(e){let t=new q;return t.expression=Fe.toTotalExpression2(e),t.label=Fe.toAlias(e),t}static getTarget(e){if(e.is2(Y))return e;let t=new Y;return t.expression=Fe.toTotalExpression(e),t.label=e.label,t}static getTarget2(e){let t=new Y;return t.expression=Fe.toTotalExpression2(e),t.label=Fe.toAlias(e),t}}r.Gauge=ge;class be{static getSeries(e){if(e.is2(Q))return e;let t=new Q;return t.expression=$.removeFunction(e.expression),t.label=e.label,t}static getSeries2(e){let t=new Q;return t.expression=Fe.toExpression(e),t.label=Fe.toAlias(e),t}static getValue(e){if(e.is2(Z))return e;let t=new Z;return t.expression=Fe.toTotalExpression(e),t.label=e.label,t}static getValue2(e){let t=new Z;return t.expression=Fe.toTotalExpression2(e),t.label=Fe.toAlias(e),t}static getTarget(e){if(e.is2(_))return e;let t=new _;return t.expression=Fe.toTotalExpression(e),t.label=e.label,t}static getTarget2(e){let t=new _;return t.expression=Fe.toTotalExpression2(e),t.label=Fe.toAlias(e),t}}r.Indicator=be;class fe{static getName(e){if(e.is2(z))return e;let t=new z;return t.expression=e.expression,t.label=e.label,t}static getName2(e){let t=new z;return t.expression=Fe.toExpression(e),t.label=Fe.toAlias(e),t}static getKey(e){if(e.is2(V))return e;let t=new V;return t.expression=e.expression,t.label=e.label,t}static getKey2(e){let t=new V;return t.expression=Fe.toExpression(e),t.label=Fe.toAlias(e),t}}r.ListBox=fe;class Ce{static getLatitude(e){if(e.is2(L))return e;let t=new L;return t.expression=e.expression,t.label=e.label,t}static getLongitude(e){if(e.is2(N))return e;let t=new N;return t.expression=e.expression,t.label=e.label,t}static getLocation(e){if(e.is2(i))return e;return new i(null,e.expression,e.label)}static getLocationColor(e){if(e.is2(a))return e;return new a(null,e.expression,e.label)}static getLocationValue(e){if(e.is2(n))return e;return new n(null,e.expression,e.label)}static getLocationArgument(e){if(e.is2(t))return e;return new t(null,e.expression,e.label)}static getLatitude2(e){let t=new L;return t.expression=Fe.toExpression(e),t.label=Fe.toAlias(e),t}static getLongitude2(e){let t=new N;return t.expression=Fe.toExpression(e),t.label=Fe.toAlias(e),t}static getLocation2(e){return new i(null,Fe.toExpression(e),Fe.toAlias(e))}static getLocationColor2(e){return new a(null,Fe.toExpression(e),Fe.toAlias(e))}static getLocationValue2(e){return new n(null,Fe.toExpression(e),Fe.toAlias(e))}static getLocationArgument2(e){return new t(null,Fe.toExpression(e),Fe.toAlias(e))}}r.OnlineMap=Ce;class ye{static getColumn(e){if(e.is(O))return e;let t=new O;return t.expression=e.expression,t.label=e.label,t.textFormat=this.getFormat(e),t.topN=this.getTopN(e),t}static getRow(e){if(e.is(P))return e;let t=new P;return t.expression=e.expression,t.label=e.label,t.textFormat=this.getFormat(e),t.topN=this.getTopN(e),t}static getSummary(e){if(e.is(E))return e;let t=new E;return t.expression=Fe.toTotalExpression(e),t.label=e.label,t.textFormat=this.getFormat(e),t}static getSummary3(e,t){if(e.is(E))return e;let r=new E;return r.expression=Fe.toTotalExpression3(e,t),r.label=e.label,r.textFormat=this.getFormat(e),r}static getColumn2(e){let t=new O;return t.expression=Fe.toExpression(e),t.label=Fe.toAlias(e),t}static getRow2(e){let t=new P;return t.expression=Fe.toExpression(e),t.label=Fe.toAlias(e),t}static getSummary2(e){let t=new E;return t.expression=Fe.toTotalExpression2(e),t.label=Fe.toAlias(e),t}static getFormat(e){if(e.is(O))return e.textFormat;if(e.is(P))return e.textFormat;if(e.is(E))return e.textFormat;return new h}static getTopN(e){if(e.is(O))return e.topN;if(e.is(P))return e.topN;return new l}}r.Pivot=ye;class ve{static getSeries(e){if(e.is2(B))return e;let t=new B;return t.expression=$.removeFunction(e.expression),t.label=e.label,t}static getSeries2(e){let t=new B;return t.expression=Fe.toExpression(e),t.label=Fe.toAlias(e),t}static getValue(e){if(e.is2(R))return e;let t=new R;return t.expression=Fe.toTotalExpression(e),t.label=e.label,t}static getValue2(e){let t=new R;return t.expression=Fe.toTotalExpression2(e),t.label=Fe.toAlias(e),t}static getTarget(e){if(e.is2(A))return e;let t=new A;return t.expression=Fe.toTotalExpression(e),t.label=e.label,t}static getTarget2(e){let t=new A;return t.expression=Fe.toTotalExpression2(e),t.label=Fe.toAlias(e),t}}r.Progress=ve;class we{static getKey(e){if(e.is2(k))return e;let t=new k;return t.expression=e.expression,t.label=e.label,t}static getName(e){if(e.is2(I))return e;let t=new I;return t.expression=e.expression,t.label=e.label,t}static getGroup(e){if(e.is2(M))return e;let t=new M;return t.expression=e.expression,t.label=e.label,t}static getValue(e,t){let r=new F;r.loadFromString(e.saveToString());var t=j.isNumericDataColumnInExpression(t,r.expression)?"Sum":"Count";return r.expression=$.replaceFunction(r.expression,t),r}static getColor(e){if(e.is2(T))return e;let t=new T;return t.expression=e.expression,t.label=e.label,t}static getKey2(e){let t=new k;return t.expression=Fe.toExpression(e),t.label=Fe.toAlias(e),t}static getName2(e){let t=new I;return t.expression=Fe.toExpression(e),t.label=Fe.toAlias(e),t}static getValue2(e){let t=new F;return t.expression=Fe.toTotalExpression2(e),t.label=Fe.toAlias(e),t}static getGroup2(e){let t=new M;return t.expression=Fe.toExpression(e),t.label=Fe.toAlias(e),t}static getColor2(e){let t=new T;return t.expression=Fe.toExpression(e),t.label=Fe.toAlias(e),t}}r.RegionMap=we;class De{static getColumn(e){let t=e.as(H);return null==t&&(t=new(e.is(x)?D:w)),t.loadFromString(e.saveToString()),t}static getDimension(e){let t=new w;return t.loadFromString(e.saveToString()),y.isMeasureFunction(t.expression)&&(t.expression=$.removeFunction(t.expression)),t}static getDimension2(e){let t=new w;return t.textFormat=v.getDefaultFormatForColumn(e),t.expression=Fe.toExpression(e),t.horAlignment=r.StiTableAlignmentHelper.getHorAlign(e),t.label=Fe.toAlias(e),t}static getMeasure(e,t){let r=new D;var t;return r.loadFromString(e.saveToString()),(e.is(w)||e.is(C))&&(t=j.isNumericDataColumnInExpression(t,r.expression)?"Sum":"Count",r.expression=$.replaceFunction(r.expression,t)),r}static getMeasure2(e){let t=new D;return t.textFormat=v.getDefaultFormatForColumn(e),t.expression=Fe.toTotalExpression2(e),t.horAlignment=r.StiTableAlignmentHelper.getHorAlign(e),t.label=Fe.toAlias(e),t}static getDataBars(e,t){let r=new f;var t;return r.loadFromString(e.saveToString()),(e.is(w)||e.is(C))&&(t=j.isNumericDataColumnInExpression(t,r.expression)?"Sum":"First",r.expression=$.replaceFunction(r.expression,t)),r}static getColorScale(e,t){let r=new b;var t;return r.loadFromString(e.saveToString()),(e.is(w)||e.is(C))&&(t=j.isNumericDataColumnInExpression(t,r.expression)?"Sum":"Count",r.expression=$.replaceFunction(r.expression,t)),r}static getSparklines(e){let t=new C;return t.loadFromString(e.saveToString()),y.isMeasureFunction(t.expression)&&(t.expression=$.removeFunction(t.expression)),t}static getBubble(e,t){let r=new s;var t;return r.loadFromString(e.saveToString()),(e.is(w)||e.is(C))&&(t=j.isNumericDataColumnInExpression(t,r.expression)?"Sum":"Count",r.expression=$.replaceFunction(r.expression,t)),r}static getIndicator(e,t){let r=new g;var t;return r.loadFromString(e.saveToString()),(e.is(w)||e.is(C))&&(t=j.isNumericDataColumnInExpression(t,r.expression)?"Sum":"Count",r.expression=$.replaceFunction(r.expression,t)),r.horAlignment=S.Right,r}}r.Table=De;class xe{static getKey(e){if(e.is2(p))return e;let t=new p;return t.expression=e.expression,t.label=e.label,t}static getKey2(e){let t=new p;return t.expression=Fe.toExpression(e),t.label=Fe.toAlias(e),t}}r.TreeView=xe;class Te{static getKey(e){if(e.is2(d))return e;let t=new d;return t.expression=e.expression,t.label=e.label,t}static getKey2(e){let t=new d;return t.expression=Fe.toExpression(e),t.label=Fe.toAlias(e),t}}r.TreeViewBox=Te;class Fe{static toTotalExpression2(e){var t=null==e?void 0:e.as(le);if(null!=t)return o.isNumericType(t)?this.toSumExpression2(t):this.toCountExpression2(t);return null==e?void 0:e.getName()}static toTotalExpression(e){if($.isFunctionPresent(e.expression))return e.expression;return this.toCountExpression(e.expression)}static toTotalExpression3(e,t){if($.isFunctionPresent(e.expression))return e.expression;return j.isNumericDataColumnInExpression(t,e.expression)?this.toSumExpression(e.expression):this.toCountExpression(e.expression)}static toSumExpression2(e){return`Sum(${this.toExpression(e)})`}static toSumExpression(e){return`Sum(${e})`}static toCountExpression2(e){return`Count(${this.toExpression(e)})`}static toCountExpression(e){return`Count(${e})`}static toExpression(e){var t=null==e?void 0:e.as(le);if(null!=t)return y.toExpression2(t.dataSource.name,t.name);return y.toExpression(null==e?void 0:e.getName())}static toAlias(e){let t=e.as(me);if(null!=t)return t.getAlias();return null==e?void 0:e.getName()}static toDataType(e){var t,e,t=null===(t=null==e?void 0:e.as(le))||void 0===t?void 0:t.type;if(null!=t)return t;return null===(e=null==e?void 0:e.as(ce))||void 0===e?void 0:e.type}}Fe.Chart=e,Fe.ComboBox=de,Fe.DataFilter=pe,Fe.DatePicker=Se,Fe.Gauge=ge,Fe.Indicator=be,Fe.ListBox=fe,Fe.OnlineMap=Ce,Fe.Pivot=ye,Fe.Progress=ve,Fe.RegionMap=we,Fe.Table=De,Fe.TreeView=xe,Fe.TreeViewBox=Te,r.StiMeterHelper=Fe}(r=t.Helpers||(t.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(t){var e,r,o,s;r=e=t.Dashboard||(t.Dashboard={}),r=o=r.Components||(r.Components={}),function(s){var i=t.System.StiString,r=t.System.Collections.List,a=t.Base.StiActivator;class e{static loadFromJson2(e){let t=new r;return e.forEach(e=>t.add(this.loadFromJson(e))),t.where(e=>null!=e)}static loadFromJson(t){let r=t.properties().firstOrDefault(e=>"Ident"==e.name);if(null!=r){var o=r.value.toString();let e=s.StiMeterCreator.neww(o);if(null!=e)return e.loadFromJsonObject(t),e}return null}static loadFromXml(t,r,o){var e;if(null!=t.attributes.getNamedItem("type")){var s=t.attributes.getNamedItem("type").value;if(!i.isNullOrEmpty(s)){let e=a.createObject2(s);if(null!=e)return e.loadFromXml(t,r,o),e}}return null}}s.StiMeterLoader=e}(s=r.Helpers||(r.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(i){var e,t,r,o,s;t=e=i.Dashboard||(i.Dashboard={}),t=r=t.Components||(t.Components={}),t=o=t.Chart||(t.Chart={}),function(e){var t=i.Report.Dashboard.StiChartSeriesType,r=i.System.StiString,o=i.System.Enum;class s{static neww(e){if(r.isNullOrEmpty(e))return null;var e=o.parse(t,e);return null!=e?this.neww2(e):null}static neww2(e){switch(e){case t.ClusteredColumn:return new i.Report.Chart["StiClusteredColumnSeries"];case t.StackedColumn:return new i.Report.Chart["StiStackedColumnSeries"];case t.FullStackedColumn:return new i.Report.Chart["StiFullStackedColumnSeries"];case t.Pareto:return new i.Report.Chart["StiParetoSeries"];case t.Histogram:return new i.Report.Chart["StiHistogramSeries"];case t.Waterfall:return new i.Report.Chart["StiWaterfallSeries"];case t.Line:return new i.Report.Chart["StiLineSeries"];case t.StackedLine:return new i.Report.Chart["StiStackedLineSeries"];case t.FullStackedLine:return new i.Report.Chart["StiFullStackedLineSeries"];case t.Spline:return new i.Report.Chart["StiSplineSeries"];case t.StackedSpline:return new i.Report.Chart["StiStackedSplineSeries"];case t.FullStackedSpline:return new i.Report.Chart["StiFullStackedSplineSeries"];case t.SteppedLine:return new i.Report.Chart["StiSteppedLineSeries"];case t.Area:return new i.Report.Chart["StiAreaSeries"];case t.StackedArea:return new i.Report.Chart["StiStackedAreaSeries"];case t.FullStackedArea:return new i.Report.Chart["StiFullStackedAreaSeries"];case t.SplineArea:return new i.Report.Chart["StiSplineAreaSeries"];case t.StackedSplineArea:return new i.Report.Chart["StiStackedSplineAreaSeries"];case t.FullStackedSplineArea:return new i.Report.Chart["StiFullStackedSplineAreaSeries"];case t.SteppedArea:return new i.Report.Chart["StiSteppedAreaSeries"];case t.Range:return new i.Report.Chart["StiRangeSeries"];case t.SplineRange:return new i.Report.Chart["StiSplineRangeSeries"];case t.SteppedRange:return new i.Report.Chart["StiSteppedRangeSeries"];case t.RangeBar:return new i.Report.Chart["StiRangeBarSeries"];case t.ClusteredBar:return new i.Report.Chart["StiClusteredBarSeries"];case t.StackedBar:return new i.Report.Chart["StiStackedBarSeries"];case t.FullStackedBar:return new i.Report.Chart["StiFullStackedBarSeries"];case t.Scatter:return new i.Report.Chart["StiScatterSeries"];case t.ScatterLine:return new i.Report.Chart["StiScatterLineSeries"];case t.ScatterSpline:return new i.Report.Chart["StiScatterSplineSeries"];case t.Pie:return new i.Report.Chart["StiPieSeries"];case t.RadarPoint:return new i.Report.Chart["StiRadarPointSeries"];case t.RadarLine:return new i.Report.Chart["StiRadarLineSeries"];case t.RadarArea:return new i.Report.Chart["StiRadarAreaSeries"];case t.Funnel:return new i.Report.Chart["StiFunnelSeries"];case t.FunnelWeightedSlices:return new i.Report.Chart["StiFunnelWeightedSlicesSeries"];case t.Candlestick:return new i.Report.Chart["StiCandlestickSeries"];case t.Stock:return new i.Report.Chart["StiStockSeries"];case t.Treemap:return new i.Report.Chart["StiTreemapSeries"];case t.Gantt:return new i.Report.Chart["StiGanttSeries"];case t.Doughnut:return new i.Report.Chart["StiDoughnutSeries"];case t.Bubble:return new i.Report.Chart["StiBubbleSeries"];case t.Pictorial:return new i.Report.Chart["StiPictorialSeries"];case t.Sunburst:return new i.Report.Chart["StiSunburstSeries"];case t.BoxAndWhisker:return new i.Report.Chart["StiBoxAndWhiskerSeries"];default:throw new Error("NotSupportedException")}}}e.StiChartSeriesCreator=s}(s=t.Helpers||(t.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(n){var e,t,r,o;t=e=n.Dashboard||(n.Dashboard={}),t=r=t.Components||(t.Components={}),function(e){var o=n.System.Drawing.Font,s=n.System.Drawing.Color,r=n.Base.StiJsonReportObjectHelper,i=n.System.Drawing.FontStyle,a=n.Base.StiJson;class t{constructor(e,t,r){this.color=s.transparent,this.font=new o("Arial",12,i.Bold),this.text="",null!=e&&(this.font=e),null!=t&&(this.text=t),null!=r&&(this.color=r)}saveToJsonObject(e){let t=new a;return t.addPropertyStringNullOrEmpty("Font",r.Serialize.font(this.font,"Arial",12,i.Bold)),t.addPropertyStringNullOrEmpty("Text",this.text),t.addPropertyStringNullOrEmpty("Color",r.Serialize.jColor(this.color,s.transparent)),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"Font":this.font=r.Deserialize.font(t.value,this.font);break;case"Text":this.text=t.value.toString();break;case"Color":this.color=r.Deserialize.color(t.value.toString());break}}loadFromXml(t,e){for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];switch(r.nodeName){case"Font":this.font=n.System.Convert.toFont(r.textContent);break;case"Text":this.text=r.textContent;break;case"Color":this.color=n.System.Text.StiReportObjectStringConverter.convertStringToColor(r.textContent);break}}}clone(){let e=this.stimulsoft().memberwiseClone();return e.font=this.font.clone(),e}shouldSerializeColor(){return!s.transparent.equals(this.color)}shouldSerializeFont(){return!(null!=this.font&&"Arial"==this.font.name&&12==this.font.sizeInPoints&&this.font.style==i.Bold)}isDefault(){return null!=this.font&&!this.shouldSerializeFont()&&!this.shouldSerializeColor()&&null!=this.text&&0==this.text.length}}e.StiChartLegendTitle=t}(o=t.Chart||(t.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(d){var e,t,r,o;t=e=d.Dashboard||(d.Dashboard={}),t=r=t.Components||(t.Components={}),function(e){var o=d.System.Enum,s=d.Report.Chart.StiSeriesLabelsValueType,t=d.Report.Components.ImplementsIStiFont,r=d.Base.StiJsonReportObjectHelper,i=d.System.Drawing.FontStyle,a=d.System.Drawing.Font,n=d.System.Drawing.Color,l=d.Base.StiJson,u=d.Base.JsonReportObject.IStiJsonReportObject,h=d.Report.Components.IStiFont,m=d.System.ICloneable;class c{constructor(e,t,r){this.color=n.transparent,this.font=new a("Arial",8),this.valueType=null,null!=e&&(this.font=e),null!=t&&(this.color=t),null!=r&&(this.valueType=r)}implements(){return c.ImplementsStiChartLegendLabels||(c.ImplementsStiChartLegendLabels=[m,h,...t,u]),c.ImplementsStiChartLegendLabels}saveToJsonObject(e){let t=new l;return t.addPropertyStringNullOrEmpty("Font",r.Serialize.font(this.font,"Arial",8)),t.addPropertyStringNullOrEmpty("Color",r.Serialize.jColor(this.color,n.transparent)),t.addPropertyEnum("ValueType",s,this.valueType),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"Font":this.font=r.Deserialize.font(t.value,this.font);break;case"Color":this.color=r.Deserialize.color(t.value.toString());break;case"ValueType":this.valueType=o.parse(s,t.value);break}}loadFromXml(t,e){for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];switch(r.nodeName){case"Font":this.font=d.System.Convert.toFont(r.textContent);break;case"Color":this.color=d.System.Text.StiReportObjectStringConverter.convertStringToColor(r.textContent);break;case"ValueType":this.valueType=o.parse(s,r.textContent);break}}}clone(){let e=this.stimulsoft().memberwiseClone();return e.font=this.font.clone(),e}shouldSerializeColor(){return!n.transparent.equals(this.color)}shouldSerializeFont(){return!(null!=this.font&&"Arial"==this.font.name&&8==this.font.sizeInPoints&&this.font.style==i.Regular)}isDefault(){return!this.shouldSerializeFont()&&!this.shouldSerializeColor()}}e.StiChartLegendLabels=c}(o=t.Chart||(t.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(a){var e,t,r,o;t=e=a.Dashboard||(a.Dashboard={}),t=r=t.Components||(t.Components={}),function(n){var l=a.Report.Chart.StiLegendDirection,u=a.Dashboard.Components.Chart.StiChartLegendTitle,h=a.Dashboard.Components.Chart.StiChartLegendLabels,s=a.System.Enum,m=a.Report.Chart.StiLegendVertAlignment,c=a.Report.Chart.StiLegendHorAlignment,r=a.Base.StiJson,e=a.Base.JsonReportObject.IStiJsonReportObject,t,o;(o=t=n.Order||(n.Order={}))[o["HorAlignment"]=1]="HorAlignment",o[o["Labels"]=2]="Labels",o[o["Title"]=3]="Title",o[o["VertAlignment"]=4]="VertAlignment";class i{constructor(e,t,r,o,s,i,a){this.horAlignment=c.Left,this.vertAlignment=m.TopOutside,this.visibility=n.StiLegendVisibility.Auto,this.direction=l.TopToBottom,this.columns=0,this.labels=new h,this.title=new u,null!=e&&(this.title=e),null!=t&&(this.labels=t),null!=r&&(this.horAlignment=r),null!=o&&(this.vertAlignment=o),null!=s&&(this.visibility=s),null!=i&&(this.direction=i),null!=a&&(this.columns=a)}implements(){return i.ImplementsStiChartLegend||(i.ImplementsStiChartLegend=[e]),i.ImplementsStiChartLegend}saveToJsonObject(e){let t=new r;return t.addPropertyJObject("Title",this.title.saveToJsonObject(e)),t.addPropertyJObject("Labels",this.labels.saveToJsonObject(e)),t.addPropertyEnum("HorAlignment",c,this.horAlignment,c.Left),t.addPropertyEnum("VertAlignment",m,this.vertAlignment,m.TopOutside),t.addPropertyBool("Visible",this.visible,!0),t.addPropertyEnum("Visibility",n.StiLegendVisibility,this.visibility,n.StiLegendVisibility.Auto),t.addPropertyEnum("Direction",l,this.direction,l.TopToBottom),t.addPropertyNumber("Columns",this.columns),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"Title":this.title.loadFromJsonObject(t.value);break;case"Labels":this.labels.loadFromJsonObject(t.value);break;case"HorAlignment":this.horAlignment=s.parse(c,t.value.toString());break;case"VertAlignment":this.vertAlignment=s.parse(m,t.value.toString());break;case"Direction":this.direction=s.parse(l,t.value.toString());break;case"Visible":this.visible=t.value.stimulsoft().toBoolean();break;case"Visibility":this.visibility=s.parse(n.StiLegendVisibility,t.value.toString());break;case"Columns":this.columns=t.value.stimulsoft().toNumber();break}}loadFromXml(r,o){for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"Title":this.title.loadFromXml(e,o);break;case"Labels":this.labels.loadFromXml(e,o);break;case"HorAlignment":this.horAlignment=s.parse(c,e.textContent);break;case"VertAlignment":this.vertAlignment=s.parse(m,e.textContent);break;case"Direction":this.direction=s.parse(l,e.textContent);break;case"Visible":this.visible=e.textContent.stimulsoft().toBoolean();break;case"Visibility":this.visibility=s.parse(n.StiLegendVisibility,e.textContent);break;case"Columns":this.columns=e.textContent.stimulsoft().toNumber();break}}}clone(){let e=this.stimulsoft().memberwiseClone();return e.title=this.title.clone(),e.labels=this.labels.clone(),e.horAlignment=this.horAlignment,e.vertAlignment=this.vertAlignment,e.visible=this.visible,e.direction=this.direction,e.columns=this.columns,e.visibility=this.visibility,e}get visible(){return this.visibility==n.StiLegendVisibility.Auto}set visible(e){this.visibility=e?n.StiLegendVisibility.Auto:n.StiLegendVisibility.False}isDefault(){return this.title.isDefault()&&this.labels.isDefault()&&this.horAlignment==c.Left&&this.vertAlignment==m.TopOutside&&this.direction==l.TopToBottom&&0==this.columns&&this.visibility==n.StiLegendVisibility.Auto}}n.StiChartLegend=i}(o=t.Chart||(t.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(r){var e,t,o,s;t=e=r.Dashboard||(r.Dashboard={}),t=o=t.Components||(t.Components={}),function(e){var o=r.System.Enum,n=r.Report.Chart.StiDirection;class t extends e.StiChartAxisTitle{constructor(e,t,r,o,s,i,a){super(e,t,r,o,i,a),this.direction=n.BottomToTop,null!=s&&(this.direction=s)}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyEnum("Direction",n,this.direction,n.BottomToTop),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"Direction":this.direction=o.parse(n,t.value.toString());break}}loadFromXml(t,e){super.loadFromXml(t,e);for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];switch(r.nodeName){case"Direction":this.direction=o.parse(n,r.textContent);break}}}isDefault(){return this.direction==n.BottomToTop}}e.StiYChartAxisTitle=t}(s=t.Chart||(t.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(r){var e,t,o,s;t=e=r.Dashboard||(r.Dashboard={}),t=o=t.Components||(t.Components={}),function(e){var s=r.Dashboard.Components.Chart.StiYChartAxisTitle;class t extends e.StiChartAxis{constructor(e,t,r,o){super(e),this.title=new s,this.startFromZero=!0,null!=e&&(this.labels=e),null!=t&&(this.title=t),null!=r&&(this.visible=r),null!=o&&(this.startFromZero=o)}clone(){var e;let t=super.clone();return t.title=this.title.clone(),t.range=null===(e=this.range)||void 0===e?void 0:e.clone(),t}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyJObject("Title",this.title.saveToJsonObject(e)),t.addPropertyBool("StartFromZero",this.startFromZero,!0),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"Title":this.title.loadFromJsonObject(t.value);break;case"StartFromZero":this.startFromZero=t.value.stimulsoft().toBoolean();break}}loadFromXml(r,o){super.loadFromXml(r,o);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"Title":this.title.loadFromXml(e,o);break;case"StartFromZero":this.startFromZero=e.textContent.stimulsoft().toBoolean();break}}}shouldSerializeTitle(){return!(null!=this.title&&this.title.isDefault())}shouldSerializeStartFromZero(){return!this.startFromZero}isDefault(){return!this.shouldSerializeTitle()&&!this.shouldSerializeStartFromZero()}}e.StiYChartAxis=t}(s=t.Chart||(t.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(t){var e,r,o,s;r=e=t.Dashboard||(t.Dashboard={}),r=o=r.Components||(r.Components={}),function(i){var a=t.Base.StiAutoBool,s=t.System.Enum;class e extends i.StiChartAxis{constructor(e,t,r,o,s){super(e),this.title=new i.StiXChartAxisTitle,this.showEdgeValues=a.Auto,this.startFromZero=a.Auto,null!=e&&(this.labels=e),null!=t&&(this.title=t),null!=r&&(this.visible=r),null!=o&&(this.startFromZero=o),null!=s&&(this.showEdgeValues=s)}clone(){let e=super.clone();return e.title=this.title.clone(),e}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyJObject("Title",this.title.saveToJsonObject(e)),t.addPropertyEnum("ShowEdgeValues",a,this.showEdgeValues,a.Auto),t.addPropertyEnum("StartFromZero",a,this.startFromZero,a.Auto),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"Title":this.title.loadFromJsonObject(t.value);break;case"ShowEdgeValues":this.showEdgeValues=s.parse(a,t.value.toString());break;case"StartFromZero":this.startFromZero=s.parse(a,t.value.toString());break}}loadFromXml(t,r){super.loadFromXml(t,r);for(let e=0;e<t.childNodes.length;e++){var o=t.childNodes[e];switch(o.nodeName){case"Title":this.title.loadFromXml(o,r);break;case"ShowEdgeValues":this.showEdgeValues=s.parse(a,o.textContent);break;case"StartFromZero":this.startFromZero=s.parse(a,o.textContent);break}}}shouldSerializeTitle(){return null==this.title||!this.title.isDefault()}shouldSerializeShowEdgeValues(){return this.showEdgeValues!=a.Auto}shouldSerializeStartFromZero(){return this.startFromZero!=a.Auto}isDefault(){return!this.shouldSerializeTitle()&&!this.shouldSerializeShowEdgeValues()&&!this.shouldSerializeStartFromZero()}}i.StiXChartAxis=e}(s=r.Chart||(r.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),s=r=t.Components||(t.Components={}),function(e){var t=o.Base.Localization.StiLocalization;class r extends s.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=s.StiMeterIdent.YChartMeter}get localizedName(){return`Y${t.get("PropertyMain","Value")}`}}e.StiYChartMeter=r}(i=s.Chart||(s.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(i){var e,t,r,o,s;t=e=i.Dashboard||(i.Dashboard={}),t=r=t.Components||(t.Components={}),t=o=t.Chart||(t.Chart={}),function(e){var t=i.Report.Dashboard.StiChartSeriesType,r=i.System.Collections.List,o=i.System.Collections.Hashtable;class s{static sameGroup(e,t){let r=this.getGroup(e);if(null==r)throw new Error("NotSupportedException");return r.contains(t)}static getGroup(t){this.init();for(var r of this.hash.keys){let e=this.hash.get(r);if(e.contains(t))return e}return null}static init(){if(this.isInit)return;this.hash.clear(),this.hash.set("Bubble",new r([t.Bubble])),this.hash.set("Candlestick",new r([t.Candlestick])),this.hash.set("ClusteredBar",new r([t.ClusteredBar])),this.hash.set("ClusteredColumn",new r([t.ClusteredColumn,t.Line,t.SteppedLine,t.Spline,t.Area,t.SteppedArea,t.SplineArea])),this.hash.set("Doughnut",new r([t.Doughnut])),this.hash.set("FullStackedBar",new r([t.FullStackedBar])),this.hash.set("FullStackedColumn",new r([t.FullStackedArea,t.FullStackedColumn,t.FullStackedLine,t.FullStackedSpline,t.FullStackedSplineArea])),this.hash.set("Funnel",new r([t.Funnel])),this.hash.set("FunnelWeightedSlices",new r([t.FunnelWeightedSlices])),this.hash.set("Gantt",new r([t.Gantt])),this.hash.set("Pie",new r([t.Pie])),this.hash.set("Radar",new r([t.RadarArea,t.RadarLine,t.RadarPoint])),this.hash.set("Range",new r([t.Range,t.RangeBar,t.SplineRange,t.SteppedRange])),this.hash.set("Scatter",new r([t.Scatter,t.ScatterLine,t.ScatterSpline])),this.hash.set("StackedBar",new r([t.StackedBar])),this.hash.set("StackedColumn",new r([t.StackedArea,t.StackedColumn,t.StackedLine,t.StackedSpline,t.StackedSplineArea])),this.hash.set("Stock",new r([t.Stock])),this.hash.set("Treemap",new r([t.Treemap])),this.hash.set("Pareto",new r([t.Pareto])),this.hash.set("Pictorial",new r([t.Pictorial])),this.hash.set("Sunburst",new r([t.Sunburst])),this.hash.set("Waterfall",new r([t.Waterfall])),this.hash.set("Histogram",new r([t.Histogram])),this.hash.set("BoxAndWhisker",new r([t.BoxAndWhisker])),this.isInit=!0}}s.hash=new o,e.StiChartGroups=s}(s=t.Helpers||(t.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r;t=e=s.Dashboard||(s.Dashboard={}),function(e){var t=s.System.Collections.Dictionary,r=s.System.Attribute;class o extends r{constructor(e){super(),this.exportToolTypeName=e}static add(e,t){this.attributes.add(e,new o(t))}}o.attributes=new t,e.StiExportToolAttribute=o}(r=t.Export||(t.Export={}))}(Stimulsoft=Stimulsoft||{}),function(h){var e,t,r;t=e=h.Dashboard||(h.Dashboard={}),function(e){var p=h.Report.Dashboard.StiAvailableInteractionOnDataManipulation,t=h.Report.Dashboard.IStiAllowUserSortingDashboardInteraction,r=h.Report.Dashboard.IStiInteractionLayout,o=h.System.StiString,s=h.Base.JsonReportObject.IStiJsonReportObject,i=h.Report.Dashboard.StiInteractionOnHover,a=h.Report.Dashboard.StiInteractionOnClick,n=h.Report.Dashboard.StiInteractionOpenHyperlinkDestination,S=h.Report.Dashboard.StiInteractionIdent,g=h.Report.Dashboard.StiAvailableInteractionOnClick,l=h.Report.Dashboard.IStiAllowUserDrillDownDashboardInteraction;class u extends e.StiDashboardInteraction{constructor(e,t,r,o,s,i,a,n,l,u,h,m,c,d){super(e,t,r,o,s,i,a),this.ident=S.Chart,this.allowUserDrillDown=!1,this.allowUserSorting=!0,this.availableOnClick=g.ApplyFilter|g.OpenHyperlink|g.ShowDashboard|g.DrillDown,this.availableOnDataManipulation=p.AllowDrillDown|p.AllowSorting,this.showFullScreenButton=!0,this.showSaveButton=!0,this.showViewDataButton=!0,this.fileName=null,this.headerText=null,this.footerText=null,null!=n&&(this.allowUserDrillDown=n),null!=l&&(this.fileName=l),null!=u&&(this.headerText=u),null!=h&&(this.footerText=h),null!=m&&(this.showFullScreenButton=m),null!=c&&(this.showSaveButton=c),null!=d&&(this.showViewDataButton=d)}implements(){return u.ImplementsIStiChartDashboardInteraction||(u.ImplementsIStiChartDashboardInteraction=super.implements().concat([l,t,s,r])),u.ImplementsIStiChartDashboardInteraction}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyBool("AllowUserDrillDown",this.allowUserDrillDown,!1),t.addPropertyBool("AllowUserSorting",this.allowUserSorting,!0),t.addPropertyBool("ShowFullScreenButton",this.showFullScreenButton,!0),t.addPropertyBool("ShowSaveButton",this.showSaveButton,!0),t.addPropertyBool("ShowViewDataButton",this.showViewDataButton,!0),t.addPropertyStringNullOrEmpty("FileName",this.fileName),t.addPropertyStringNullOrEmpty("HeaderText",this.headerText),t.addPropertyStringNullOrEmpty("FooterText",this.footerText),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"AllowUserDrillDown":this.allowUserDrillDown=t.value.stimulsoft().toBoolean();break;case"AllowUserSorting":this.allowUserSorting=t.value.stimulsoft().toBoolean();break;case"ShowFullScreenButton":this.showFullScreenButton=t.value.stimulsoft().toBoolean();break;case"ShowSaveButton":this.showSaveButton=t.value.stimulsoft().toBoolean();break;case"ShowViewDataButton":this.showViewDataButton=t.value.stimulsoft().toBoolean();break;case"FileName":this.fileName=t.value.toString();break;case"HeaderText":this.headerText=t.value.toString();break;case"FooterText":this.footerText=t.value.toString();break}}loadFromXml(r,e){super.loadFromXml(r,e);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"AllowUserDrillDown":this.allowUserDrillDown=e.textContent.stimulsoft().toBoolean();break;case"AllowUserSorting":this.allowUserSorting=e.textContent.stimulsoft().toBoolean();break;case"ShowFullScreenButton":this.showFullScreenButton=e.textContent.stimulsoft().toBoolean();break;case"ShowSaveButton":this.showSaveButton=e.textContent.stimulsoft().toBoolean();break;case"ShowViewDataButton":this.showViewDataButton=e.textContent.stimulsoft().toBoolean();break;case"FileName":this.fileName=e.textContent;break;case"HeaderText":this.headerText=e.textContent;break;case"FooterText":this.footerText=e.textContent;break}}}get isDefaultLayout(){return this.showFullScreenButton&&this.showSaveButton&&this.showViewDataButton&&null==this.fileName&&null==this.headerText&&null==this.footerText}isDefault(){return this.onHover==i.ShowToolTip&&this.onClick==a.ApplyFilter&&this.hyperlinkDestination==n.NewTab&&o.isNullOrEmpty(this.hyperlink)&&o.isNullOrEmpty(this.drillDownPageKey)&&null!=this.drillDownParameters&&0==this.drillDownParameters.length&&o.isNullOrEmpty(this.toolTip)&&!this.allowUserDrillDown&&this.allowUserSorting&&this.isDefaultLayout}}e.StiChartDashboardInteraction=u}(r=t.Interactions||(t.Interactions={}))}(Stimulsoft=Stimulsoft||{}),function(r){var e,t,o;t=e=r.Dashboard||(r.Dashboard={}),function(e){var o=r.Data.Engine.IStiDrillDownElement,s=r.Report.Dashboard.IStiAllowUserDrillDownDashboardInteraction,i=r.Report.Dashboard.IStiElementInteraction;class t{static isDrillAvailable(e){var t=e.is(i)?e.dashboardInteraction.as(s):null,r;if(null==t||!t.allowUserDrillDown)return!1;return null!=e.as(o)}static isDrillUpAvailable(e){if(!this.isDrillAvailable(e))return!1;var t;return 0<e.as(o).drillDownCurrentLevel}static isDrillDownAvailable(e){if(!this.isDrillAvailable(e))return!1;var e=e.as(o);return e.drillDownCurrentLevel<e.drillDownLevelCount-1}static drillUp(e){let t=e.as(o);t.drillDownCurrentLevel--,t.drillDownFilters=t.drillDownFiltersList[t.drillDownCurrentLevel],t.drillDownFiltersList.removeAt(t.drillDownFiltersList.length-1)}static drillDown(e,t=null){let r=e.as(o);r.drillDownFiltersList.add(r.drillDownFilters),r.drillDownFilters=t,r.drillDownCurrentLevel++}}e.StiDrillDownHelper=t}(o=t.Interactions||(t.Interactions={}))}(Stimulsoft=Stimulsoft||{}),function(m){var e,t,r,o;t=e=m.Dashboard||(m.Dashboard={}),t=r=t.Components||(t.Components={}),function(e){var i=m.Base.Drawing.StiPenStyle,t=m.System.ICloneable,r=m.Base.JsonReportObject.IStiJsonReportObject,o=m.Base.StiJson,s=m.Base.StiJsonReportObjectHelper,a=m.System.Drawing.Color,n=m.System.Enum,l=m.Report.Dashboard.IStiChartConstantLines,u=m.Report.Dashboard.StiChartTrendLineType;class h{constructor(e,t,r,o,s){this.type=u.None,this.lineStyle=i.Solid,this.lineColor=a.black,this.lineWidth=1,null!=e&&(this.keyValueMeter=e),null!=t&&(this.type=t),null!=r&&(this.lineColor=r),null!=o&&(this.lineStyle=o),null!=s&&(this.lineWidth=s)}implements(){return h.ImplementsStiChartTrendLine||(h.ImplementsStiChartTrendLine=[t,l,r]),h.ImplementsStiChartTrendLine}saveToJsonObject(e){let t=new o;return t.addPropertyStringNullOrEmpty("KeyValueMeter",this.keyValueMeter),t.addPropertyEnum("Type",u,this.type,u.None),t.addPropertyEnum("LineStyle",i,this.lineStyle,i.Solid),t.addPropertyStringNullOrEmpty("LineColor",s.Serialize.jColor(this.lineColor,a.black)),t.addPropertyNumber("LineWidth",this.lineWidth,1),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"KeyValueMeter":this.keyValueMeter=t.value.toString();break;case"Type":this.type=n.parse(u,t.value.toString());break;case"LineStyle":this.lineStyle=n.parse(i,t.value.toString());break;case"LineColor":this.lineColor=s.Deserialize.color(t.value.toString());break;case"LineWidth":this.lineWidth=t.value.stimulsoft().toNumber();break}}loadFromXml(r){for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"KeyValueMeter":this.keyValueMeter=e.textContent;break;case"Type":this.type=n.parse(u,e.textContent);break;case"LineStyle":this.lineStyle=n.parse(i,e.textContent);break;case"LineColor":this.lineColor=s.Deserialize.color(e.textContent);break;case"LineWidth":this.lineWidth=e.textContent.stimulsoft().toNumber();break}}}clone(){return this.stimulsoft().memberwiseClone()}static createFromJson(e){let t=new h;return t.loadFromJsonObject(e),t}static createFromXml(e){let t=new h;return t.loadFromXml(e),t}}e.StiChartTrendLine=h}(o=t.Chart||(t.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(ve){var e,t,r,we,o;t=e=ve.Dashboard||(ve.Dashboard={}),we=r=t.Components||(t.Components={}),function(u){var o=ve.Report.Dashboard.StiChartSeriesType,i=ve.Report.Dashboard.StiUserViewState,e=ve.Report.Dashboard.IStiUserViewStates,r=ve.Report.Dashboard.StiInteractionOnClick,h=ve.Report.Dashboard.StiEmptyCellsAs,t=ve.System.StiArray,s=ve.Report.Components.StiTextFormatState,a=ve.Report.Components.TextFormats.StiNumberFormatService,m=ve.Dashboard.Components.Chart.Helpers.StiChartSeriesCreator,n=ve.Dashboard.Components.Chart.StiChartMarker,c=ve.Dashboard.Interactions.StiDrillDownHelper,l=ve.Base.StiKeyHelper,d=ve.Base.Meters.IStiSeriesMeter,p=ve.Base.Meters.IStiMeasureMeter,S=ve.Base.Meters.IStiValueMeter,g=ve.Report.Dashboard.IStiElementInteraction,b=ve.Dashboard.Interactions.Design.StiDashboardInteractionLoader,f=ve.Dashboard.Interactions.StiChartDashboardInteraction,C=ve.System.Drawing.Rectangle,y=ve.Data.Engine.StiDataTopN,v=ve.Report.Dashboard.IStiNegativeSeriesColors,w=ve.Report.Dashboard.IStiParetoSeriesColors,D=ve.Report.Dashboard.IStiSeriesColors,x=ve.Report.Dashboard.ImplementsIStiSeriesColors,T=ve.Report.Dashboard.ImplementsIStiNegativeSeriesColors,F=ve.Report.Dashboard.ImplementsIStiParetoSeriesColors,M=ve.Report.Dashboard.StiElementLayout,I=ve.Report.Dashboard.ImplementsIStiElementLayout,k=ve.Report.Dashboard.IStiElementLayout,R=ve.Base.JsonReportObject.IStiJsonReportObject,A=ve.Dashboard.Export.StiExportToolAttribute,B=ve.Report.Dashboard.ImplementsIStiUserViewStates,O=ve.Report.Dashboard.ImplementsIStiSkipOwnFilter,P=ve.Report.Dashboard.ImplementsIStiChartElement,E=ve.Report.Dashboard.ImplementsIStiTitleElement,L=ve.Data.Helpers.StiUsedDataHelper,N=ve.Dashboard.Helpers.StiMeterHelper,V=ve.Data.Helpers.StiExpressionHelper,z=ve.Dashboard.Components.Helpers.StiMeterLoader,J=ve.Base.StiJsonSaveMode,j=ve.Data.Engine.StiDataSortRule,H=ve.Report.Components.TextFormats.StiFormatService,G=ve.Data.Engine.StiDataActionRule,X=ve.Data.Engine.StiDataFilterRule,U=ve.Base.StiJsonReportObjectHelper,K=ve.Report.Components.StiComponentToolboxPosition,W=ve.Base.Localization.StiLocalization,q=ve.Report.Components.TextFormats.StiGeneralFormatService,Y=ve.Dashboard.Components.Chart.StiChartLegend,Q=ve.Report.Dashboard.StiElementStyleIdent,Z=ve.Dashboard.Components.StiTitle,_=ve.Dashboard.Components.Chart.StiYChartMeter,$=ve.Dashboard.Components.Chart.StiSeriesChartMeter,ee=ve.Dashboard.Components.Chart.StiWeightChartMeter,te=ve.Dashboard.Components.Chart.StiArgumentChartMeter,re=ve.Dashboard.Components.Chart.StiHighValueChartMeter,oe=ve.Dashboard.Components.Chart.StiLowValueChartMeter,se=ve.Dashboard.Components.Chart.StiCloseValueChartMeter,ie=ve.Dashboard.Components.Chart.StiEndValueChartMeter,ae=ve.Dashboard.Components.Chart.Helpers.StiChartGroups,ne=ve.System.Enum,le=ve.System.Collections.List,ue=ve.Report.StiComponentId,he=ve.Report.Dashboard.IStiTitleElement,me=ve.Report.Dashboard.IStiSkipOwnFilter,ce=ve.Report.Dashboard.IStiChartElement,de=ve.Report.IStiGlobalizationProvider,pe=ve.System.Text.StiReportObjectStringConverter,Se=ve.Data.Engine.ImplementsIStiDrillDownElement,ge=ve.Data.Engine.IStiDrillDownElement,be=ve.Report.Helpers.StiFontIcons,fe=ve.Dashboard.Components.Chart.StiChartTrendLine,Ce=ve.Report.Chart.IStiShowNullsSeries;A.add("StiChartElement","Stimulsoft.Dashboard.Export.Tools.StiChartElementExportTool");class ye extends we.StiElement{constructor(e=C.empty){super(e),this.title=new Z,this.layout=new M,this.group="",this.crossFiltering=!0,this._style=Q.Auto,this.customStyleName="",this.userFilters=new le,this.userSorts=new le,this.userViewStates=new le,this.transformActions=new le,this.transformFilters=new le,this.transformSorts=new le,this.topN=new y,this.dataTransformation={},this.dataFilters=new le,this.seriesColors=[],this.negativeSeriesColors=[],this.paretoSeriesColors=[],this.helpUrl="user-manual/dashboards_chart.htm",this.values=new le,this.endValues=new le,this.closeValues=new le,this.lowValues=new le,this.highValues=new le,this.arguments=new le,this.weights=new le,this.legend=new Y,this.area=new u.StiChartArea,this._labels=new u.StiChartLabels,this.argumentFormat=new q,this.valueFormat=new a(null,null,null,0,null,null,null,null,null,s.DecimalDigits|s.Abbreviation),this.trendLines=new le,this.constantLines=new le,this.chartConditions=new le,this.marker=new n,this.roundValues=!0,this.drillDownFiltersList=new le,this.drillDownFilters=new le,this.drillDownCurrentLevel=0,this.title.text=this.localizedName,this.dashboardInteraction=new f,this.labels=new u.StiChartLabels}implements(){return ye.ImplementsStiChartElement||(ye.ImplementsStiChartElement=super.implements().concat([ce,e,me,he,k,de,D,v,w,...P,...B,...O,...E,...I,...x,...T,...F,...Se,R,g,ge])),ye.ImplementsStiChartElement}clone(e){var e,e;let t=super.clone(e);return t.values=this.values.select(e=>e.clone()).toList(),t.endValues=this.endValues.select(e=>e.clone()).toList(),t.closeValues=this.closeValues.select(e=>e.clone()).toList(),t.lowValues=this.lowValues.select(e=>e.clone()).toList(),t.highValues=this.highValues.select(e=>e.clone()).toList(),t.arguments=this.arguments.select(e=>e.clone()).toList(),t.weights=this.weights.select(e=>e.clone()).toList(),t.series=null!=this.series?this.series.clone():null,t.userFilters=this.userFilters.select(e=>e.clone()).toList(),t.userSorts=this.userSorts.select(e=>e.clone()).toList(),t.userViewStates=this.userViewStates.select(e=>e.clone()).toList(),t.transformActions=this.transformActions.select(e=>e.clone()).toList(),t.transformFilters=this.transformFilters.select(e=>e.clone()).toList(),t.transformSorts=this.transformSorts.select(e=>e.clone()).toList(),t.dataFilters=this.dataFilters.select(e=>e.clone()).toList(),t.topN=this.topN.clone(),t.argumentFormat=null!=this.argumentFormat?this.argumentFormat.clone():null,t.valueFormat=null!=this.valueFormat?this.valueFormat.clone():null,t.title=null!=this.title?this.title.clone():null,t.layout=null!=this.layout?this.layout.clone():null,t.dashboardInteraction=this.dashboardInteraction.clone(),t.xAxis=null!=this.xAxis?this.xAxis.clone():null,t.xTopAxis=null===(e=this.xTopAxis)||void 0===e?void 0:e.clone(),t.yAxis=null!=this.yAxis?this.yAxis.clone():null,t.yRightAxis=null===(e=this.yRightAxis)||void 0===e?void 0:e.clone(),t.legend=null!=this.legend?this.legend.clone():null,t.area=null!=this.area?this.area.clone():null,t.seriesColors=null!=this.seriesColors?this.seriesColors.stimulsoft().clone():null,t.negativeSeriesColors=null!=this.negativeSeriesColors?this.negativeSeriesColors.stimulsoft().clone():null,t.paretoSeriesColors=null!=this.paretoSeriesColors?this.paretoSeriesColors.stimulsoft().clone():null,t.marker=null!=this.marker?this.marker.clone():null,t.constantLines=this.constantLines.select(e=>e.clone()).toList(),t.trendLines=this.trendLines.select(e=>e.clone()).toList(),t.chartConditions=this.chartConditions.select(e=>e.clone()).toList(),t}saveToJsonObject(e){let t=super.saveToJsonObject(e);t.addPropertyJObject("UserFilters",U.Serialize.objectArray(this.userFilters,e)),t.addPropertyJObject("UserSorts",U.Serialize.objectArray(this.userSorts,e)),t.addPropertyJObject("TransformActions",U.Serialize.objectArray(this.transformActions,e)),t.addPropertyJObject("TransformFilters",U.Serialize.objectArray(this.transformFilters,e)),t.addPropertyJObject("TransformSorts",U.Serialize.objectArray(this.transformSorts,e)),t.addPropertyJObject("DataFilters",U.Serialize.objectArray(this.dataFilters,e)),t.addPropertyJObject("Values",U.Serialize.objectArray(this.values,e)),t.addPropertyJObject("EndValues",U.Serialize.objectArray(this.endValues,e)),t.addPropertyJObject("CloseValues",U.Serialize.objectArray(this.closeValues,e)),t.addPropertyJObject("LowValues",U.Serialize.objectArray(this.lowValues,e)),t.addPropertyJObject("HighValues",U.Serialize.objectArray(this.highValues,e)),t.addPropertyJObject("Arguments",U.Serialize.objectArray(this.arguments,e)),t.addPropertyJObject("Weights",U.Serialize.objectArray(this.weights,e)),t.addPropertyJObject("UserViewStates",U.Serialize.objectArray(this.userViewStates,e)),t.addPropertyBool("ColorEach",this.colorEach),t.addPropertyBool("CrossFiltering",this.crossFiltering,!0),null!=this.topN&&t.addPropertyJObject("TopN",this.topN.saveToJsonObject(e));let r=this.dashboardInteraction.as(f);return null!=r&&t.addPropertyJObject("DashboardInteraction",r.saveToJsonObject(e)),null!=this.title&&t.addPropertyJObject("Title",this.title.saveToJsonObject(e)),null!=this.layout&&t.addPropertyJObject("Layout",this.layout.saveToJsonObject(e)),null!=this.series&&t.addPropertyJObject("Series",this.series.saveToJsonObject(e)),null!=this.argumentFormat&&t.addPropertyJObject("ArgumentFormat",this.argumentFormat.saveToJsonObject(e)),null!=this.valueFormat&&t.addPropertyJObject("ValueFormat",this.valueFormat.saveToJsonObject(e)),null!=this.xAxis&&t.addPropertyJObject("XAxis",this.xAxis.saveToJsonObject(e)),null!=this.xTopAxis&&t.addPropertyJObject("XTopAxis",this.xTopAxis.saveToJsonObject(e)),null!=this.yAxis&&t.addPropertyJObject("YAxis",this.yAxis.saveToJsonObject(e)),null!=this.yRightAxis&&t.addPropertyJObject("YRightAxis",this.yRightAxis.saveToJsonObject(e)),null!=this.legend&&t.addPropertyJObject("Legend",this.legend.saveToJsonObject(e)),null!=this.area&&t.addPropertyJObject("Area",this.area.saveToJsonObject(e)),null!=this.marker&&t.addPropertyJObject("Marker",this.marker.saveToJsonObject(e)),null!=this.labels&&t.addPropertyJObject("Labels",this.labels.saveToJsonObject(e)),t.addPropertyJObject("SeriesColors",U.Serialize.colorArray(this.seriesColors)),t.addPropertyJObject("NegativeSeriesColors",U.Serialize.colorArray(this.negativeSeriesColors)),t.addPropertyJObject("ParetoSeriesColors",U.Serialize.colorArray(this.paretoSeriesColors)),t.addPropertyEnum("Style",Q,this.style,Q.Auto),t.addPropertyStringNullOrEmpty("Group",this.group),t.addPropertyStringNullOrEmpty("CustomStyleName",this.customStyleName),t.addPropertyJObject("ConstantLines",U.Serialize.objectArray(this.constantLines,e)),t.addPropertyJObject("TrendLines",U.Serialize.objectArray(this.trendLines,e)),t.addPropertyJObject("ChartConditions",U.Serialize.objectArray(this.chartConditions,e)),null!=this.icon&&t.addPropertyEnum("Icon",be,this.icon),t.addPropertyBool("RoundValues",this.roundValues,!0),null!=this.selectedViewStateKey&&t.addPropertyStringNullOrEmpty("SelectedViewStateKey",this.selectedViewStateKey),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"DashboardInteraction":this.dashboardInteraction=b.loadInteractionFromJsonObject(t.value);break;case"TopN":this.topN=y.createFromJsonObject(t.value);break;case"Title":this.title=Z.createFromJsonObject(t.value);break;case"Layout":this.layout=M.createFromJsonObject(t.value);break;case"UserSorts":this.userSorts.addRange(t.value.properties().select(e=>j.loadFromJson(e.value)));break;case"UserViewStates":this.userViewStates.addRange(t.value.properties().select(e=>i.loadFromJson(e.value)));break;case"UserFilters":this.userFilters.addRange(t.value.properties().select(e=>X.loadFromJson(e.value)));break;case"TransformActions":this.transformActions.addRange(t.value.properties().select(e=>G.loadFromJson(e.value)));break;case"TransformFilters":this.transformFilters.addRange(t.value.properties().select(e=>X.loadFromJson(e.value)));break;case"TransformSorts":this.transformSorts.addRange(t.value.properties().select(e=>j.loadFromJson(e.value)));break;case"DataFilters":this.dataFilters.addRange(t.value.properties().select(e=>X.loadFromJson(e.value)));break;case"Values":this.values.addRange(t.value.properties().select(e=>z.loadFromJson(e.value)));break;case"EndValues":this.endValues.addRange(t.value.properties().select(e=>z.loadFromJson(e.value)));break;case"CloseValues":this.closeValues.addRange(t.value.properties().select(e=>z.loadFromJson(e.value)));break;case"LowValues":this.lowValues.addRange(t.value.properties().select(e=>z.loadFromJson(e.value)));break;case"HighValues":this.highValues.addRange(t.value.properties().select(e=>z.loadFromJson(e.value)));break;case"Arguments":this.arguments.addRange(t.value.properties().select(e=>z.loadFromJson(e.value)));break;case"Weights":this.weights.addRange(t.value.properties().select(e=>z.loadFromJson(e.value)));break;case"Series":var r=z.loadFromJson(t.value).as($);null!=r&&(this.series=r);break;case"Style":this.style=ne.parse(Q,t.value.toString());break;case"Group":this.group=t.value.toString();break;case"CustomStyleName":this.customStyleName=t.value.toString();break;case"ColorEach":null!=this.area&&(this.area.colorEach=t.value.stimulsoft().toBoolean());break;case"CrossFiltering":this.crossFiltering=t.value.stimulsoft().toBoolean();break;case"ArgumentFormat":this.argumentFormat=H.createFromJsonObject(t.value);break;case"ValueFormat":this.valueFormat=H.createFromJsonObject(t.value);break;case"XAxis":this.xAxis.loadFromJsonObject(t.value);break;case"XTopAxis":this.xTopAxis.loadFromJsonObject(t.value);break;case"YAxis":this.yAxis.loadFromJsonObject(t.value);break;case"YRightAxis":this.yRightAxis.loadFromJsonObject(t.value);break;case"Legend":this.legend.loadFromJsonObject(t.value);break;case"Area":this.area.loadFromJsonObject(t.value);break;case"Marker":this.marker.loadFromJsonObject(t.value);break;case"Labels":this.labels.loadFromJsonObject(t.value);break;case"SeriesColors":this.seriesColors=U.Deserialize.colorArray(t.value);break;case"NegativeSeriesColors":this.negativeSeriesColors=U.Deserialize.colorArray(t.value);break;case"ParetoSeriesColors":this.paretoSeriesColors=U.Deserialize.colorArray(t.value);break;case"ConstantLines":this.constantLines.addRange(t.value.properties().select(e=>u.StiChartConstantLines.createFromJson(e.value)));break;case"TrendLines":this.trendLines.addRange(t.value.properties().select(e=>fe.createFromJson(e.value)));break;case"ChartConditions":this.chartConditions.addRange(t.value.properties().select(e=>u.StiChartElementCondition.createFromJson(e.value)));break;case"Icon":this.icon=ne.parse(be,t.value.toString());break;case"RoundValues":this.roundValues=t.value.stimulsoft().toBoolean();break;case"SelectedViewStateKey":this.selectedViewStateKey=t.value.toString();break}}loadFromXml(r,o){super.loadFromXml(r,o);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"DashboardInteraction":this.dashboardInteraction=b.loadInteractionFromXml(e,o);break;case"TopN":this.topN=y.createFromXml(e);break;case"Title":this.title=Z.createFromXml(e);break;case"Layout":this.layout=M.createFromXml(e);break;case"UserSorts":this.userSorts.addRange(e.childNodes.select(e=>j.loadFromXml(e)));break;case"UserFilters":this.userFilters.addRange(e.childNodes.select(e=>X.loadFromXml(e)));break;case"UserViewStates":this.userViewStates.addRange(e.childNodes.select(e=>i.loadFromXml(e)));break;case"TransformActions":this.transformActions.addRange(e.childNodes.select(e=>G.loadFromXml(e)));break;case"TransformFilters":this.transformFilters.addRange(e.childNodes.select(e=>X.loadFromXml(e)));break;case"TransformSorts":this.transformSorts.addRange(e.childNodes.select(e=>j.loadFromXml(e)));break;case"DataFilters":this.dataFilters.addRange(e.childNodes.select(e=>X.loadFromXml(e)));break;case"Values":this.values.addRange(e.childNodes.select(e=>z.loadFromXml(e,o)));break;case"EndValues":this.endValues.addRange(e.childNodes.select(e=>z.loadFromXml(e,o)));break;case"CloseValues":this.closeValues.addRange(e.childNodes.select(e=>z.loadFromXml(e,o)));break;case"LowValues":this.lowValues.addRange(e.childNodes.select(e=>z.loadFromXml(e,o)));break;case"HighValues":this.highValues.addRange(e.childNodes.select(e=>z.loadFromXml(e,o)));break;case"Arguments":this.arguments.addRange(e.childNodes.select(e=>z.loadFromXml(e,o)));break;case"Weights":this.weights.addRange(e.childNodes.select(e=>z.loadFromXml(e,o)));break;case"Series":var s=z.loadFromXml(e,o).as($);null!=s&&(this.series=s);break;case"Style":this.style=ne.parse(Q,e.textContent);break;case"Group":this.group=e.textContent;break;case"CustomStyleName":this.customStyleName=e.textContent;break;case"ColorEach":null!=this.area&&(this.area.colorEach=e.textContent.stimulsoft().toBoolean());break;case"CrossFiltering":this.crossFiltering=e.textContent.stimulsoft().toBoolean();break;case"ArgumentFormat":this.argumentFormat=H.loadFormatFromXml(e,this.report);break;case"ValueFormat":this.valueFormat=H.loadFormatFromXml(e,this.report);break;case"XAxis":null!=this.xAxis&&this.xAxis.loadFromXml(e,o);break;case"XTopAxis":null!=this.xTopAxis&&this.xTopAxis.loadFromXml(e,o);break;case"YAxis":null!=this.yAxis&&this.yAxis.loadFromXml(e,o);break;case"YRightAxis":null!=this.yRightAxis&&this.yRightAxis.loadFromXml(e,o);break;case"Legend":this.legend.loadFromXml(e,o);break;case"Area":this.area.loadFromXml(e,o);break;case"Marker":this.marker.loadFromXml(e,o);break;case"Labels":this.labels.loadFromXml(e);break;case"SeriesColors":this.seriesColors=pe.convertStringToColorArray(e.textContent);break;case"NegativeSeriesColors":this.negativeSeriesColors=pe.convertStringToColorArray(e.textContent);break;case"ParetoSeriesColors":this.paretoSeriesColors=pe.convertStringToColorArray(e.textContent);break;case"ConstantLines":this.constantLines.addRange(e.childNodes.select(e=>u.StiChartConstantLines.createFromXml(e)));break;case"TrendLines":this.trendLines.addRange(e.childNodes.select(e=>fe.createFromXml(e)));break;case"ChartConditions":this.chartConditions.addRange(e.childNodes.select(e=>u.StiChartElementCondition.createFromXml(e)));break;case"Icon":this.icon=ne.parse(be,e.textContent);break;case"RoundValues":this.roundValues=e.textContent.stimulsoft().toBoolean();break;case"SelectedViewStateKey":this.selectedViewStateKey=e.textContent;break}}}get componentId(){return ue.StiChartElement}convertToBubble(){null!=this.arguments&&this.arguments.where(e=>null!=e).toList().forEach(e=>{e.expression=V.replaceFunction(e.expression,"Sum")})}convertFromBubble(){null!=this.arguments&&this.arguments.where(e=>null!=e).toList().forEach(e=>{e.expression=V.removeFunction(e.expression)}),null!=this.weights&&this.weights.clear()}getChartSeriesTypes(e){let t=new le;if(1<this.values.length){var e=ne.parse(o,e),e=ae.getGroup(e);if(null!=e)for(var r of e)t.add(ne.getName(o,r))}return t}addValue(e){null!=e&&this.values.add(N.Chart.getValue2(e,this))}getValue2(e){return null!=e?N.Chart.getValue2(e,this):null}getValue(e){return null!=e?N.Chart.getValue(e.as(we.StiMeter)):null}fetchAllValues(){return this.values.cast().toList()}getValueByIndex(e){return e<this.values.length?this.values[e]:null}insertValue(e,t){var t=t.as(u.StiValueChartMeter);null!=t&&(0<=e&&e<this.values.length?this.values.insert(e,t):this.values.add(t))}removeValue(e){e<this.values.length&&this.values.removeAt(e)}removeAllValues(){this.values.clear()}createNewValue(){let e=new u.StiValueChartMeter;return e.expression="Sum()",this.values.add(e),e}addEndValue(e){null!=e&&this.endValues.add(N.Chart.getEndValue2(e))}getEndValue2(e){return null!=e?N.Chart.getEndValue2(e):null}getEndValue(e){return null!=e?N.Chart.getEndValue(e.as(we.StiMeter)):null}getEndValueByIndex(e){return e<this.endValues.length?this.endValues[e]:null}insertEndValue(e,t){var t=t.as(ie);null!=t&&(0<=e&&e<this.endValues.length?this.endValues.insert(e,t):this.endValues.add(t))}removeEndValue(e){e<this.endValues.length&&this.endValues.removeAt(e)}removeAllEndValues(){this.endValues.clear()}createNewEndValue(){let e=new ie;return e.expression="Sum()",this.endValues.add(e),e}addCloseValue(e){null!=e&&this.closeValues.add(N.Chart.getCloseValue2(e))}getCloseValue2(e){return null!=e?N.Chart.getCloseValue2(e):null}getCloseValue(e){return null!=e?N.Chart.getCloseValue(e.as(we.StiMeter)):null}getCloseValueByIndex(e){return e<this.closeValues.length?this.closeValues[e]:null}insertCloseValue(e,t){var t=t.as(se);null!=t&&(0<=e&&e<this.closeValues.length?this.closeValues.insert(e,t):this.closeValues.add(t))}removeCloseValue(e){e<this.closeValues.length&&this.closeValues.removeAt(e)}removeAllCloseValues(){this.closeValues.clear()}createNewCloseValue(){let e=new se;return e.expression="Sum()",this.closeValues.add(e),e}addLowValue(e){null!=e&&this.lowValues.add(N.Chart.getLowValue2(e))}getLowValue2(e){return null!=e?N.Chart.getLowValue2(e):null}getLowValue(e){return null!=e?N.Chart.getLowValue(e.as(we.StiMeter)):null}getLowValueByIndex(e){return e<this.lowValues.length?this.lowValues[e]:null}insertLowValue(e,t){var t=t.as(oe);null!=t&&(0<=e&&e<this.lowValues.length?this.lowValues.insert(e,t):this.lowValues.add(t))}removeLowValue(e){e<this.lowValues.length&&this.lowValues.removeAt(e)}removeAllLowValues(){this.lowValues.clear()}createNewLowValue(){let e=new oe;return e.expression="Sum()",this.lowValues.add(e),e}addHighalue(e){null!=e&&this.highValues.add(N.Chart.getHighValue2(e))}getHighValue2(e){return null!=e?N.Chart.getHighValue2(e):null}getHighValue(e){return null!=e?N.Chart.getHighValue(e.as(we.StiMeter)):null}getHighValueByIndex(e){return e<this.highValues.length?this.highValues[e]:null}insertHighValue(e,t){var t=t.as(re);null!=t&&(0<=e&&e<this.highValues.length?this.highValues.insert(e,t):this.highValues.add(t))}removeHighValue(e){e<this.highValues.length&&this.highValues.removeAt(e)}removeAllHighValues(){this.highValues.clear()}createNewHighValue(){let e=new re;return e.expression="Sum()",this.highValues.add(e),e}addArgument(e){null!=e&&this.arguments.add(N.Chart.getArgument2(e))}getArgument2(e){return null!=e?N.Chart.getArgument2(e):null}getArgument(e){return null!=e?N.Chart.getArgument(e.as(we.StiMeter)):null}fetchAllArguments(){return this.arguments.cast().toList()}getArgumentByIndex(e){return e<this.arguments.length?this.arguments[e]:null}insertArgument(e,t){var t=t.as(te);null!=t&&(0<=e&&e<this.arguments.length?this.arguments.insert(e,t):this.arguments.add(t))}removeArgument(e){e<this.arguments.length&&this.arguments.removeAt(e)}removeAllArguments(){this.arguments.clear()}createNewArgument(){this.arguments.add(new te)}addWeight(e){null!=e&&this.weights.add(N.Chart.getWeight2(e))}getWeight2(e){return null!=e?N.Chart.getWeight2(e):null}getWeight(e){return null!=e?N.Chart.getWeight(e.as(we.StiMeter)):null}getWeightByIndex(e){return e<this.weights.length?this.weights[e]:null}insertWeight(e,t){var t=t.as(ee);null!=t&&(0<=e&&e<this.weights.length?this.weights.insert(e,t):this.weights.add(t))}removeWeight(e){e<this.weights.length&&this.weights.removeAt(e)}removeAllWeights(){this.weights.clear()}createNewWeight(){let e=new ee;e.expression="Sum()",this.weights.add(e)}addSeries(e){this.series=null!=e?N.Chart.getSeries2(e):null}getSeries2(e){return null!=e?N.Chart.getSeries2(e):null}getSeries(e){return null!=e?N.Chart.getSeries(e.as(we.StiMeter)):null}getSeries3(){return this.series}insertSeries(e){this.series=e.as($)}removeSeries(){this.series=null}createNewSeries(){this.series=new $}fetchConstantLines(){let e=new le;return null!=this.constantLines&&e.addRange(this.constantLines),e}addConstantLine(){this.constantLines.add(new u.StiChartConstantLines)}removeConstantLine(e){0<=e&&e<this.constantLines.length&&this.constantLines.removeAt(e)}moveConstantLine(e,t){var r;0<=e&&e<this.constantLines.length&&(r=this.constantLines[e],this.constantLines.removeAt(e),this.constantLines.insert(t,r))}addTrendLines(e,t,r,o,s){this.trendLines.add(new fe(e,t,r,o,s))}fetchTrendLines(){let e=new le;return null!=e&&e.addRange(this.trendLines),e}clearTrendLines(){this.trendLines.clear()}addChartCondition(e,t,r,o,s,i,a,n,l){this.chartConditions.add(new u.StiChartElementCondition(e,s,t,r,o,i,a,n,l))}fetchChartConditions(){let e=new le;return null!=this.chartConditions&&e.addRange(this.chartConditions),e}clearChartConditions(){this.chartConditions.clear()}convertFrom(e){let t=e.fetchAllMeters();if(this.values.clear(),this.arguments.clear(),null==t)return;t.where(e=>(e.is2(S)||e.is2(p))&&!e.is2(d)).cast().forEach(e=>{let t=new u.StiValueChartMeter;t.loadFromJsonObject(e.saveToJsonObject(J.Report)),this.values.add(t)},this),t.where(e=>e.is(d)).cast().forEach(e=>{let t=new te;t.loadFromJsonObject(e.saveToJsonObject(J.Report)),this.arguments.add(t)},this),null==this.dashboardInteraction&&(this.dashboardInteraction=new f)}fetchAllMeters(){let e=new le;return null!=this.values&&e.addRange(this.values),null!=this.endValues&&e.addRange(this.endValues),null!=this.closeValues&&e.addRange(this.closeValues),null!=this.lowValues&&e.addRange(this.lowValues),null!=this.highValues&&e.addRange(this.highValues),null!=this.arguments&&e.addRange(this.arguments),null!=this.weights&&e.addRange(this.weights),null!=this.series&&e.add(this.series),e}getMeters(){let r=new le;for(var o of this.values)if(this.isBubbleChart){let e=new _;e.key=o.key,e.expression=o.expression,e.label=o.label,r.add(e)}else if(this.isFinancial){let e=new u.StiOpenValueChartMeter;e.seriesType=o.seriesType,e.key=o.key,e.expression=o.expression,e.label=o.label,r.add(e)}else if(this.isRange){let e=new u.StiStartValueChartMeter;e.seriesType=o.seriesType,e.key=o.key,e.expression=o.expression,e.label=o.label,r.add(e)}else if(o.showZeros==h.Zero&&o.showNulls==h.Zero||!m.neww2(o.seriesType).is(Ce))r.add(o);else{let e=V.getFunction(o.expression);null!=e&&(e=e.toLowerCase());let t=null;if("sum"==e?t="sumnulls":"avg"==e&&(t="avgnulls"),null!=t){let e=o.clone();e.expression=V.replaceFunction(o.expression,t),r.add(e)}else r.add(o)}if(this.isRange)for(var e of this.endValues)r.add(e);if(this.isFinancial)for(var t of this.closeValues)r.add(t);if(this.isFinancial)for(var s of this.lowValues)r.add(s);if(this.isFinancial)for(var i of this.highValues)r.add(i);var a,n;for(n of c.isDrillAvailable(this)&&this.drillDownCurrentLevel<this.drillDownLevelCount?this.arguments.getRange(this.drillDownCurrentLevel,1):this.arguments)if(this.isBubbleChart){let e=new u.StiXChartMeter;e.key=n.key,e.expression=n.expression,e.label=n.label,r.add(e)}else r.add(n);if(this.isBubbleChart)for(var l of this.weights)r.add(l);return null!=this.series&&r.add(this.series),r}retrieveUsedDataNames(){let e=new le;return e.addRange(L.getMany2(this.values)),e.addRange(L.getMany2(this.arguments)),e.addRange(L.getMany2(this.weights)),e.addRange(L.getMany(this.series)),e.distinct()}get isDefined(){return null!=this.values&&0<this.values.length||null!=this.weights&&0<this.weights.length&&this.isBubbleChart||null!=this.arguments&&0<this.arguments.length||null!=this.series}shouldSerializeLayout(){return null==this.layout||!this.layout.isDefault()}get allowSkipOwnFilter(){return!0}get style(){return this._style}set style(e){(this._style=e)!=Q.Custom&&(this.customStyleName="")}switchSelectedViewState(e){u.StiChartUserViewStatesHelper.switchSelectedViewState(this,e)}saveToJsonForViewState(){return u.StiChartUserViewStatesHelper.saveToJsonObject(this)}loadFromJsonForViewState(e){u.StiChartUserViewStatesHelper.loadFromJsonObject(this,e)}shouldSerializeDataTransformation(){return null==this.transformActions||this.transformActions.any()||null==this.transformFilters||this.transformFilters.any()||null==this.transformSorts||this.transformSorts.any()}isDefaultDataTransformation(){return!this.shouldSerializeDataTransformation()}setString(e,t){switch(e){case"Title.Text":this.title.text=t;break;case"Legend.Title.Text":this.legend.title.text=t;break;case"XAxis.Labels.TextAfter":this.xAxis.labels.textAfter=t;break;case"XAxis.Labels.TextBefore":this.xAxis.labels.textBefore=t;break;case"XAxis.Title.Text":this.xAxis.title.text=t;break;case"XTopAxis.Labels.TextAfter":this.xTopAxis.labels.textAfter=t;break;case"XTopAxis.Labels.TextBefore":this.xTopAxis.labels.textBefore=t;break;case"XTopAxis.Title.Text":this.xTopAxis.title.text=t;break;case"YAxis.Labels.TextAfter":this.yAxis.labels.textAfter=t;break;case"YAxis.Labels.TextBefore":this.yAxis.labels.textBefore=t;break;case"YAxis.Title.Text":this.yAxis.title.text=t;break;case"YRightAxis.Labels.TextAfter":this.yRightAxis.labels.textAfter=t;break;case"YRightAxis.Labels.TextBefore":this.yRightAxis.labels.textBefore=t;break;case"YRightAxis.Title.Text":this.yRightAxis.title.text=t;break}let r=0;for(var o of this.values){var s;e==`Value${r++}.Label`&&(o.label=t)}r=0;for(var i of this.arguments){var a;e==`Argument${r++}.Label`&&(i.label=t)}}getString(e){switch(e){case"Title.Text":return this.title.text;case"Legend.Title.Text":return this.legend.title.text;case"XAxis.Labels.TextAfter":return this.xAxis.labels.textAfter;case"XAxis.Labels.TextBefore":return this.xAxis.labels.textBefore;case"XAxis.Title.Text":return this.xAxis.title.text;case"XTopAxis.Labels.TextAfter":return this.xTopAxis.labels.textAfter;case"XTopAxis.Labels.TextBefore":return this.xTopAxis.labels.textBefore;case"XTopAxis.Title.Text":return this.xTopAxis.title.text;case"YAxis.Labels.TextAfter":return this.yAxis.labels.textAfter;case"YAxis.Labels.TextBefore":return this.yAxis.labels.textBefore;case"YAxis.Title.Text":return this.yAxis.title.text;case"YRightAxis.Labels.TextAfter":return this.yRightAxis.labels.textAfter;case"YRightAxis.Labels.TextBefore":return this.yRightAxis.labels.textBefore;case"YRightAxis.Title.Text":return this.yRightAxis.title.text}let t=0;for(var r of this.values){var o;if(e==`Value${t++}.Label`)return r.label}t=0;for(var s of this.arguments){var i;if(e==`Argument${t++}.Label`)return s.label}throw new Error(`Property with name ${e}`)}getAllStrings(){let t=["Title.Text","Legend.Title.Text"];this.isAxisAreaChart&&(t.push("XAxis.Labels.TextAfter"),t.push("XAxis.Labels.TextBefore"),t.push("XAxis.Title.Text"),t.push("XTopAxis.Labels.TextAfter"),t.push("XTopAxis.Labels.TextBefore"),t.push("XTopAxis.Title.Text"),t.push("YAxis.Labels.TextAfter"),t.push("YAxis.Labels.TextBefore"),t.push("YAxis.Title.Text"),t.push("YRightAxis.Labels.TextAfter"),t.push("YRightAxis.Labels.TextBefore"),t.push("YRightAxis.Title.Text"));let r=0;return this.values.forEach(e=>t.push(`Value${r++}.Label`)),r=0,this.arguments.forEach(e=>t.push(`Argument${r++}.Label`)),t}get shouldSerializeDashboardInteraction(){return null==this.dashboardInteraction||!this.dashboardInteraction.isDefault()}getFonts(){let e=super.getFonts();return e.push(this.title.font),e.push(this.labels.font),e.push(this.legend.labels.font),e.push(this.legend.title.font),e.push(this.xAxis.labels.font),e.push(this.xAxis.title.font),e.push(this.xTopAxis.labels.font),e.push(this.xTopAxis.title.font),e.push(this.yAxis.labels.font),e.push(this.yAxis.title.font),e.push(this.yRightAxis.labels.font),e.push(this.yRightAxis.title.font),t.distinct(e)}get toolboxPosition(){return K.ChartElement}get localizedName(){return W.get("Components","StiChart")}get colorEach(){return null!=this.area&&this.area.colorEach}set colorEach(e){null!=this.area&&(this.area.colorEach=e)}shouldSerializeValues(){return null==this.values||0!=this.values.length}shouldSerializeEndValues(){return null==this.endValues||0!=this.endValues.length}shouldSerializeCloseValues(){return null==this.closeValues||0!=this.closeValues.length}shouldSerializeLowValues(){return null==this.lowValues||0!=this.lowValues.length}shouldSerializeHighValues(){return null==this.highValues||0!=this.highValues.length}shouldSerializeArguments(){return null==this.arguments||0!=this.arguments.length}shouldSerializeWeights(){return null==this.weights||0!=this.weights.length}shouldSerializeSeries(){return null==this.series||!this.series.isDefault()}get xAxis(){var e;return null===(e=this.area)||void 0===e?void 0:e.xAxis}set xAxis(e){null!=this.area&&(this.area.xAxis=e)}get xTopAxis(){var e;return null===(e=this.area)||void 0===e?void 0:e.xTopAxis}set xTopAxis(e){null!=this.area&&(this.area.xTopAxis=e)}get yAxis(){var e;return null===(e=this.area)||void 0===e?void 0:e.yAxis}set yAxis(e){null!=this.area&&(this.area.yAxis=e)}get yRightAxis(){var e;return null===(e=this.area)||void 0===e?void 0:e.yRightAxis}set yRightAxis(e){null!=this.area&&(this.area.yRightAxis=e)}shouldSerializeLegend(){return null==this.legend||!this.legend.isDefault()}get labels(){return this._labels}set labels(e){null!=e&&(e.element=this),this._labels=e}shouldSerializeLabels(){return null==this.labels||!this.labels.isDefault()}shouldSerializeArgumentFormat(){return!this.argumentFormat.is(q)}static getValueFormatDefault(){return new a(null,null,null,0,null,null,null,null,null,s.DecimalDigits|s.Abbreviation)}shouldSerializeValueFormat(){return this.valueFormat.stimulsoft().equals(ye.getValueFormatDefault())}shouldSerializeTrendLines(){return null==this.trendLines||0<this.trendLines.length}shouldSerializeConstantLines(){return null==this.constantLines||0<this.constantLines.length}shouldSerializeConditions(){return null==this.chartConditions||0<this.chartConditions.length}shouldSerializeMarker(){return null==this.marker||!this.marker.isDefault()}shouldSerializeIcon(){return null!=this.icon}get isAxisAreaChart(){return null!=this.values&&this.values.any(e=>null!=e&&(e.seriesType==o.ClusteredBar||e.seriesType==o.ClusteredColumn||e.seriesType==o.Pareto||e.seriesType==o.Histogram||e.seriesType==o.FullStackedArea||e.seriesType==o.FullStackedBar||e.seriesType==o.FullStackedColumn||e.seriesType==o.FullStackedLine||e.seriesType==o.FullStackedSpline||e.seriesType==o.FullStackedSplineArea||e.seriesType==o.StackedBar||e.seriesType==o.StackedColumn||e.seriesType==o.StackedLine||e.seriesType==o.StackedSpline||e.seriesType==o.StackedArea||e.seriesType==o.StackedSplineArea||e.seriesType==o.Scatter||e.seriesType==o.ScatterLine||e.seriesType==o.ScatterSpline||e.seriesType==o.Candlestick||e.seriesType==o.Stock||e.seriesType==o.Gantt||e.seriesType==o.Bubble||e.seriesType==o.Area||e.seriesType==o.Line||e.seriesType==o.Spline||e.seriesType==o.SplineArea||e.seriesType==o.SplineRange||e.seriesType==o.Range||e.seriesType==o.RangeBar||e.seriesType==o.SteppedArea||e.seriesType==o.SteppedLine||e.seriesType==o.SteppedRange||e.seriesType==o.BoxAndWhisker))}get isStackedChart(){return null!=this.values&&this.values.any(e=>null!=e&&(e.seriesType==o.StackedBar||e.seriesType==o.StackedColumn||e.seriesType==o.StackedLine||e.seriesType==o.StackedSpline||e.seriesType==o.StackedArea||e.seriesType==o.StackedSplineArea))}get isLinesChart(){return null!=this.values&&this.values.any(e=>null!=e&&(e.seriesType==o.FullStackedArea||e.seriesType==o.FullStackedLine||e.seriesType==o.FullStackedSpline||e.seriesType==o.FullStackedSplineArea||e.seriesType==o.StackedLine||e.seriesType==o.StackedSpline||e.seriesType==o.StackedArea||e.seriesType==o.StackedSplineArea||e.seriesType==o.Scatter||e.seriesType==o.ScatterLine||e.seriesType==o.ScatterSpline||e.seriesType==o.Area||e.seriesType==o.Line||e.seriesType==o.Spline||e.seriesType==o.SplineArea||e.seriesType==o.SplineRange||e.seriesType==o.Range||e.seriesType==o.SteppedArea||e.seriesType==o.SteppedLine||e.seriesType==o.SteppedRange))}get isBubbleChart(){return null!=this.values&&this.values.any(e=>null!=e&&e.seriesType==o.Bubble)}get isBarChart(){return null!=this.values&&this.values.any(e=>null!=e&&(e.seriesType==o.ClusteredBar||e.seriesType==o.FullStackedBar||e.seriesType==o.StackedBar||e.seriesType==o.Gantt))}get isRange(){return null!=this.values&&this.values.any(e=>null!=e&&(e.seriesType==o.Range||e.seriesType==o.RangeBar||e.seriesType==o.SteppedRange||e.seriesType==o.SplineRange||e.seriesType==o.Gantt))}get isFinancial(){return null!=this.values&&this.values.any(e=>null!=e&&(e.seriesType==o.Candlestick||e.seriesType==o.Stock))}get isPieChart(){return null!=this.values&&this.values.any(e=>null!=e&&e.seriesType==o.Pie)}get isDoughnutChart(){return null!=this.values&&this.values.any(e=>null!=e&&e.seriesType==o.Doughnut)}get isFunnelChart(){return null!=this.values&&this.values.any(e=>null!=e&&(e.seriesType==o.Funnel||e.seriesType==o.FunnelWeightedSlices))}get isTreemapChart(){return null!=this.values&&this.values.any(e=>null!=e&&e.seriesType==o.Treemap)}get isParetoChart(){return null!=this.values&&this.values.any(e=>null!=e&&e.seriesType==o.Pareto)}get isSunburstChart(){return null!=this.values&&this.values.any(e=>null!=e&&e.seriesType==o.Sunburst)}get isFullStackedChart(){return null!=this.values&&this.values.any(e=>null!=e&&(e.seriesType==o.FullStackedArea||e.seriesType==o.FullStackedBar||e.seriesType==o.FullStackedColumn||e.seriesType==o.FullStackedLine||e.seriesType==o.FullStackedSpline||e.seriesType==o.FullStackedSplineArea))}get isWaterfallChart(){return null!=this.values&&this.values.any(e=>null!=e&&e.seriesType==o.Waterfall)}get isRadarChart(){return null!=this.values&&this.values.any(e=>null!=e&&(e.seriesType==o.RadarPoint||e.seriesType==o.RadarArea||e.seriesType==o.RadarLine))}getNestedPages(){if(null==this.dashboardInteraction||this.dashboardInteraction.onClick==r.None)return null;let t=this.dashboardInteraction.drillDownPageKey;if(l.isEmptyKey(t))return null;var e=this.report.pages.toList().firstOrDefault(e=>e.guid==t);if(null==e)return null;return new le([e])}get drillDownLevelCount(){return null!=this.arguments?this.arguments.length:0}createNew(){return new ye}checkBrowsableProperties(){this.isRange?(this.setBrowsableProperty("Weights",!1),this.setBrowsableProperty("EndValues",!0),this.setBrowsableProperty("CloseValues",!1),this.setBrowsableProperty("LowValues",!1),this.setBrowsableProperty("HighValues",!1)):this.isFinancial?(this.setBrowsableProperty("Weights",!1),this.setBrowsableProperty("EndValues",!1),this.setBrowsableProperty("CloseValues",!0),this.setBrowsableProperty("LowValues",!0),this.setBrowsableProperty("HighValues",!0)):(this.isBubbleChart?this.setBrowsableProperty("Weights",!0):this.setBrowsableProperty("Weights",!1),this.setBrowsableProperty("EndValues",!1),this.setBrowsableProperty("CloseValues",!1),this.setBrowsableProperty("LowValues",!1),this.setBrowsableProperty("HighValues",!1))}setBrowsableProperty(e,t){}getChartSeries(){let e=o.ClusteredColumn;return null!=this.values&&0<this.values.length&&(e=this.values[0].seriesType),m.neww2(e)}}u.StiChartElement=ye}(o=we.Chart||(we.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(l){var e,t,r,o;t=e=l.Dashboard||(l.Dashboard={}),t=r=t.Components||(t.Components={}),function(e){var t=l.System.ICloneable,r=l.Base.JsonReportObject.IStiJsonReportObject,o=l.Base.StiJson,s=l.Base.StiJsonReportObjectHelper,i=l.System.Enum,a=l.Report.Dashboard.IStiChartElementCondition,u=l.Report.Chart.StiMarkerType,h=l.Report.Components.StiFilterCondition,m=l.Report.Components.StiFilterDataType,c=l.System.Drawing.Color,d=l.Report.Chart.StiChartConditionalField;class n{constructor(e,t,r,o,s,i,a,n,l){this.color=c.white,this.markerAngle=0,this.markerType=u.Circle,this.condition=h.EqualTo,this.dataType=m.Numeric,this.value="",this.keyValueMeter="",this.field=d.Value,this.isExpression=!1,null!=e&&(this.keyValueMeter=e),null!=t&&(this.color=t),null!=r&&(this.dataType=r),null!=o&&(this.condition=o),null!=s&&(this.value=s),null!=i&&(this.markerType=i),null!=a&&(this.markerAngle=a),null!=n&&(this.field=n),null!=l&&(this.isExpression=l)}implements(){return n.ImplementsStiChartElementCondition||(n.ImplementsStiChartElementCondition=[t,a,r]),n.ImplementsStiChartElementCondition}saveToJsonObject(e){let t=new o;return t.addPropertyIdent("Ident",this.stimulsoft().getType().stimulsoft().getTypeName()),t.addPropertyStringNullOrEmpty("KeyValueMeter",this.keyValueMeter),t.addPropertyEnum("Condition",h,this.condition,h.EqualTo),t.addPropertyEnum("DataType",m,this.dataType,m.Numeric),t.addPropertyEnum("Field",d,this.field,d.Value),t.addPropertyStringNullOrEmpty("Value",this.value),t.addPropertyStringNullOrEmpty("Color",s.Serialize.jColor(this.color,c.white)),t.addPropertyEnum("MarkerType",u,this.markerType,u.Circle),t.addPropertyNumber("MarkerAngle",this.markerAngle,0),t.addPropertyBool("IsExpression",this.isExpression),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"KeyValueMeter":this.keyValueMeter=t.value.toString();break;case"Condition":this.condition=i.parse(h,t.value.toString());break;case"DataType":this.dataType=i.parse(m,t.value.toString());break;case"Field":this.field=i.parse(d,t.value.toString());break;case"Value":this.value=t.value.toString();break;case"Color":this.color=s.Deserialize.color(t.value.toString());break;case"MarkerType":this.markerType=i.parse(u,t.value.toString());break;case"MarkerAngle":this.markerAngle=t.value.stimulsoft().toNumber();break;case"IsExpression":this.isExpression=t.value.stimulsoft().toBoolean();break}}loadFromXml(r){for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"KeyValueMeter":this.keyValueMeter=e.textContent;break;case"Condition":this.condition=i.parse(h,e.textContent);break;case"DataType":this.dataType=i.parse(m,e.textContent);break;case"Field":this.field=i.parse(d,e.textContent);break;case"Value":this.value=e.textContent;break;case"Color":this.color=s.Deserialize.color(e.textContent);break;case"MarkerType":this.markerType=i.parse(u,e.textContent);break;case"MarkerAngle":this.markerAngle=e.textContent.stimulsoft().toNumber();break;case"IsExpression":this.isExpression=e.textContent.stimulsoft().toBoolean();break}}}clone(){return this.stimulsoft().memberwiseClone()}isDefault(){return this.color.equals(c.white)&&this.markerType==u.Circle&&this.condition==l.Report.Components.StiFilterCondition.EqualTo&&this.dataType==l.Report.Components.StiFilterDataType.Numeric&&this.field==d.Value&&""==this.value&&!this.isExpression&&""==this.keyValueMeter}static createFromJson(e){let t=new n;return t.loadFromJsonObject(e),t}static createFromXml(e){let t=new n;return t.loadFromXml(e),t}}e.StiChartElementCondition=n}(o=t.Chart||(t.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(l){var e,t,r,o;t=e=l.Dashboard||(l.Dashboard={}),t=r=t.Components||(t.Components={}),function(e){var t=l.Base.Design.IStiDefault,r=l.System.ICloneable,o=l.Base.JsonReportObject.IStiJsonReportObject,s=l.Base.StiJson,i=l.Base.StiJsonReportObjectHelper,a=l.System.Drawing.Color;class n{constructor(){this.color=a.transparent}implements(){return n.ImplementsStiChartGridLines||(n.ImplementsStiChartGridLines=[r,t,o]),n.ImplementsStiChartGridLines}saveToJsonObject(e){let t=new s;return t.addPropertyStringNullOrEmpty("Color",i.Serialize.jColor(this.color)),t.addPropertyBool("Visible",this.visible),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"Color":this.color=i.Deserialize.color(t.value);break;case"Visible":this.visible=t.value.stimulsoft().toBoolean();break}}loadFromXml(r){for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"Color":this.color=i.Deserialize.color(e.textContent);break;case"Visible":this.visible=e.textContent.stimulsoft().toBoolean();break}}}clone(){return this.stimulsoft().memberwiseClone()}isDefault(){return null}}e.StiChartGridLines=n}(o=t.Chart||(t.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(i){var e,t,r,o;t=e=i.Dashboard||(i.Dashboard={}),t=r=t.Components||(t.Components={}),function(e){var o=i.Base.StiJsonReportObjectHelper,r=i.System.Drawing.Color,s=i.Base.StiJson;class t{constructor(e,t){this.color=r.transparent,this.visible=!1,null!=e&&(this.color=e),null!=e&&(this.visible=t)}saveToJsonObject(e){let t=new s;return t.addPropertyStringNullOrEmpty("Color",o.Serialize.jColor(this.color)),t.addPropertyBool("Visible",this.visible),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"Color":this.color=o.Deserialize.color(t.value);break;case"Visible":this.visible=t.value.stimulsoft().toBoolean();break}}loadFromXml(r){for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"Color":this.color=o.Deserialize.color(e.textContent);break;case"Visible":this.visible=e.textContent.stimulsoft().toBoolean();break}}}clone(){return this.stimulsoft().memberwiseClone()}isDefault(){return r.transparent.equals(this.color)&&!this.visible}}e.StiChartInterlacing=t}(o=t.Chart||(t.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(a){var e,t,r,o;t=e=a.Dashboard||(a.Dashboard={}),t=r=t.Components||(t.Components={}),function(c){var o=a.System.Enum,d=a.System.Drawing.Color,p=a.System.Drawing.Font,s=a.Base.StiJsonReportObjectHelper,r=a.Base.StiJson,e=a.Report.Dashboard.IStiChartLabels,t=a.Base.JsonReportObject.IStiJsonReportObject,S=a.Report.Dashboard.StiChartLabelsPosition;class i{constructor(e,t,r,o,s,i,a,n,l,u,h,m){this.axisPosition=S.None,this.piePosition=S.Center,this.doughnutPosition=S.Center,this.funnelPosition=S.Center,this.treemapPosition=S.Center,this.radarPosition=S.None,this.foreColor=d.transparent,this.font=new p("Arial",8),this.autoRotate=!1,this.style=c.StiChartLabelsStyle.CategoryValue,this.textAfter="",this.textBefore="",null!=e&&(this.axisPosition=e),null!=t&&(this.piePosition=t),null!=r&&(this.doughnutPosition=r),null!=o&&(this.funnelPosition=o),null!=s&&(this.treemapPosition=s),null!=i&&(this.radarPosition=i),null!=a&&(this.style=a),null!=n&&(this.font=n),null!=l&&(this.foreColor=l),null!=u&&(this.textBefore=u),null!=h&&(this.textAfter=h),null!=m&&(this.autoRotate=m)}implements(){return i.ImplementsStiChartLabels||(i.ImplementsStiChartLabels=[e,t]),i.ImplementsStiChartLabels}saveToJsonObject(e){let t=new r;return t.addPropertyStringNullOrEmpty("Font",s.Serialize.font(this.font,"Arial",8)),t.addPropertyStringNullOrEmpty("TextAfter",this.textAfter),t.addPropertyStringNullOrEmpty("TextBefore",this.textBefore),t.addPropertyStringNullOrEmpty("ForeColor",s.Serialize.jColor(this.foreColor,d.transparent)),t.addPropertyEnum("Position",S,this.position),t.addPropertyEnum("Style",c.StiChartLabelsStyle,this.style,c.StiChartLabelsStyle.CategoryValue),t.addPropertyBool("AutoRotate",this.autoRotate),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"Font":this.font=s.Deserialize.font(t.value,this.font);break;case"TextAfter":this.textAfter=t.value.toString();break;case"TextBefore":this.textBefore=t.value.toString();break;case"Color":case"ForeColor":this.foreColor=s.Deserialize.color(t.value);break;case"Position":this.position=o.parse(S,t.value);break;case"Style":this.style=o.parse(c.StiChartLabelsStyle,t.value);break;case"AutoRotate":this.autoRotate=t.value.stimulsoft().toBoolean();break}}loadFromXml(r){for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"Font":this.font=a.System.Convert.toFont(e.textContent);break;case"TextAfter":this.textAfter=e.textContent;break;case"TextBefore":this.textBefore=e.textContent;break;case"Color":case"ForeColor":this.foreColor=s.Deserialize.color(e.textContent);break;case"PiePosition":this.piePosition=o.parse(S,e.textContent);break;case"DoughnutPosition":this.doughnutPosition=o.parse(S,e.textContent);break;case"FunnelPosition":this.funnelPosition=o.parse(S,e.textContent);break;case"TreemapPosition":this.treemapPosition=o.parse(S,e.textContent);break;case"RadarPosition":this.radarPosition=o.parse(S,e.textContent);break;case"Position":case"AxisPosition":this.position=o.parse(S,e.textContent);break;case"Style":this.style=o.parse(c.StiChartLabelsStyle,e.textContent);break;case"AutoRotate":this.autoRotate=e.textContent.stimulsoft().toBoolean();break}}}clone(){let e=this.stimulsoft().memberwiseClone();return e.font=this.font.clone(),e}get position(){return this.element.isStackedChart||this.axisPosition!=S.Total||(this.axisPosition=S.None),this.element.isPieChart?this.piePosition:this.element.isDoughnutChart||this.element.isSunburstChart?this.doughnutPosition:this.element.isFunnelChart?this.funnelPosition:this.element.isTreemapChart?this.treemapPosition:this.element.isRadarChart?this.radarPosition:this.axisPosition}set position(e){this.element.isPieChart?this.piePosition=e:this.element.isDoughnutChart||this.element.isSunburstChart?this.doughnutPosition=e:this.element.isFunnelChart?this.funnelPosition=e:this.element.isTreemapChart?this.treemapPosition=e:this.element.isRadarChart?this.radarPosition=e:this.axisPosition=e}shouldSerializePosition(){return this.element.isPieChart&&this.piePosition!=S.Center||this.element.isDoughnutChart&&this.doughnutPosition!=S.Center||this.element.isFunnelChart&&this.funnelPosition!=S.Center||this.element.isTreemapChart&&this.treemapPosition!=S.Center||this.element.isRadarChart&&this.radarPosition!=S.None||this.element.isAxisAreaChart&&this.axisPosition!=S.None}isDefault(){return d.transparent.equals(this.foreColor)&&!this.autoRotate&&this.axisPosition==S.None&&this.piePosition==S.Center&&this.doughnutPosition==S.Center&&this.funnelPosition==S.Center&&this.treemapPosition==S.Center&&this.radarPosition==S.None&&this.style==c.StiChartLabelsStyle.CategoryValue&&null!=this.textAfter&&0==this.textAfter.length&&null!=this.textBefore&&0==this.textBefore.length}}c.StiChartLabels=i}(o=t.Chart||(t.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(t){var e,r,o,s;r=e=t.Dashboard||(t.Dashboard={}),r=o=r.Components||(r.Components={}),function(s){var i=t.System.Text.Encoding,a=t.Base.StiPacker,n=t.System.StiString,l=t.System.Enum,u=t.Dashboard.Components.Helpers.StiMeterLoader,h=t.Report.Helpers.StiFontIcons,o=t.Base.StiJsonSaveMode,m=t.Base.StiJsonReportObjectHelper,c=t.Base.StiJson;class e{static saveToJsonObject(e){let t=new c;var r=o.Report;return t.addPropertyJObject("Values",m.Serialize.objectArray(e.values,r)),t.addPropertyJObject("EndValues",m.Serialize.objectArray(e.endValues,r)),t.addPropertyJObject("CloseValues",m.Serialize.objectArray(e.closeValues,r)),t.addPropertyJObject("LowValues",m.Serialize.objectArray(e.lowValues,r)),t.addPropertyJObject("HighValues",m.Serialize.objectArray(e.highValues,r)),t.addPropertyJObject("Arguments",m.Serialize.objectArray(e.arguments,r)),t.addPropertyJObject("Weights",m.Serialize.objectArray(e.weights,r)),null!=e.series&&t.addPropertyJObject("Series",e.series.saveToJsonObject(r)),null!=e.icon&&t.addPropertyEnum("Icon",h,e.icon),t.addPropertyBool("RoundValues",e.roundValues,!0),t}static loadFromJsonObject(e,t){for(var r of t.properties())switch(r.name){case"Values":e.values.addRange(r.value.properties().select(e=>u.loadFromJson(e.value)));break;case"EndValues":e.endValues.addRange(r.value.properties().select(e=>u.loadFromJson(e.value)));break;case"CloseValues":e.closeValues.addRange(r.value.properties().select(e=>u.loadFromJson(e.value)));break;case"LowValues":e.lowValues.addRange(r.value.properties().select(e=>u.loadFromJson(e.value)));break;case"HighValues":e.highValues.addRange(r.value.properties().select(e=>u.loadFromJson(e.value)));break;case"Arguments":e.arguments.addRange(r.value.properties().select(e=>u.loadFromJson(e.value)));break;case"Weights":e.weights.addRange(r.value.properties().select(e=>u.loadFromJson(e.value)));break;case"Series":var o=u.loadFromJson(r.value).as(s.StiSeriesChartMeter);null!=o&&(e.series=o);break;case"Icon":e.icon=l.parse(h,r.value.toString());break;case"RoundValues":e.roundValues=r.value.stimulsoft().toBoolean();break}}static clearVisualState(e){e.values.clear(),e.endValues.clear(),e.closeValues.clear(),e.lowValues.clear(),e.highValues.clear(),e.arguments.clear(),e.weights.clear(),e.series=null,e.icon=null}static switchSelectedViewState(e,t){var r;let o=e.selectedViewStateKey;n.isNullOrWhiteSpace(o)&&(o=null===(r=e.userViewStates.firstOrDefault())||void 0===r?void 0:r.key),this.saveVisualState(e,o),this.loadVisualState(e,t),e.selectedViewStateKey=t}static saveVisualState(e,t){if(n.isNullOrWhiteSpace(t))return;let r=e.userViewStates.firstOrDefault(e=>e.key==t);if(null==r)return;let o=this.saveToJsonObject(e);r.state=a.packToString(i.UTF8.getBytes(o.serialize()))}static loadVisualState(e,t){if(this.clearVisualState(e),n.isNullOrWhiteSpace(t))return;var r=e.userViewStates.firstOrDefault(e=>e.key==t);if(n.isNullOrWhiteSpace(null==r?void 0:r.state))return;var r=i.UTF8.getString(a.unpackFromString(r.state));let o=new c;o.deserialize(r),this.loadFromJsonObject(e,o)}}s.StiChartUserViewStatesHelper=e}(s=r.Chart||(r.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s;t=e=o.Dashboard||(o.Dashboard={}),t=r=t.Components||(t.Components={}),function(e){var t=o.Report.Chart.StiLabelsPlacement,n=o.Base.Drawing.StiHorAlignment;class r extends e.StiChartAxisLabels{constructor(e,t,r,o,s,i,a){super(e,t,r,o,s,i,a),this.textAlignment=n.Left}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.removeProperty("TextAlignment"),t.addPropertyEnum("TextAlignment",n,this.textAlignment,n.Left),t}isDefault(){return!this.shouldSerializeFont()&&!this.shouldSerializeColor()&&this.placement==t.AutoRotation&&this.textAlignment==n.Left&&""==this.textAfter&&""==this.textBefore&&0==this.angle&&0==this.step}}e.StiChartYRightAxisLabels=r}(s=t.Chart||(t.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(i){var e,t,r,o;t=e=i.Dashboard||(i.Dashboard={}),t=r=t.Components||(t.Components={}),function(e){var t=i.System.Drawing.Color,r=i.Base.StiJsonReportObjectHelper,o=i.Base.StiJson;class s extends e.StiChartGridLines{constructor(e,t){super(),this.visible=!0,null!=e&&(this.color=e),null!=t&&(this.visible=t)}saveToJsonObject(e){let t=new o;return t.addPropertyStringNullOrEmpty("Color",r.Serialize.jColor(this.color)),t.addPropertyBool("Visible",this.visible,!0),t}isDefault(){return t.transparent.equals(this.color)&&this.visible}}e.StiHorChartGridLines=s}(o=t.Chart||(t.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Components||(e.Components={}),function(e){class t extends e.StiChartInterlacing{constructor(e,t){super(e,t)}}e.StiHorChartInterlacing=t}(o=e.Chart||(e.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,i,s;t=e=o.Dashboard||(o.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var s=o.Report.Dashboard.StiChartSeriesType,t=o.Base.Localization.StiLocalization;class r extends e.StiValueChartMeter{constructor(e,t,r,o){super(e,t,r,o),this.seriesType=s.Gantt,this.ident=i.StiMeterIdent.StartValueChartMeter}get localizedName(){return t.get("PropertyMain","StartValue")}}e.StiStartValueChartMeter=r}(s=i.Chart||(i.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(i){var e,t,r,o;t=e=i.Dashboard||(i.Dashboard={}),t=r=t.Components||(t.Components={}),function(e){var t=i.System.Drawing.Color,r=i.Base.StiJsonReportObjectHelper,o=i.Base.StiJson;class s extends e.StiChartGridLines{constructor(e,t){super(),this.visible=!1,null!=e&&(this.color=e),null!=t&&(this.visible=t)}saveToJsonObject(e){let t=new o;return t.addPropertyStringNullOrEmpty("Color",r.Serialize.jColor(this.color)),t.addPropertyBool("Visible",this.visible,!1),t}isDefault(){return t.transparent.equals(this.color)&&!this.visible}}e.StiVertChartGridLines=s}(o=t.Chart||(t.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Components||(e.Components={}),function(e){class t extends e.StiChartInterlacing{constructor(e,t){super(e,t)}}e.StiVertChartInterlacing=t}(o=e.Chart||(e.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(r){var e,t,o,s;t=e=r.Dashboard||(r.Dashboard={}),t=o=t.Components||(t.Components={}),function(e){var o=r.System.Enum,n=r.Report.Chart.StiDirection;class t extends e.StiChartAxisTitle{constructor(e,t,r,o,s,i,a){super(e,t,r,o,i,a),this.direction=n.LeftToRight,null!=s&&(this.direction=s)}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyEnum("Direction",n,this.direction,n.LeftToRight),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"Direction":this.direction=o.parse(n,t.value.toString());break}}loadFromXml(t,e){super.loadFromXml(t,e);for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];switch(r.nodeName){case"Direction":this.direction=o.parse(n,r.textContent);break}}}isDefault(){return this.direction==n.LeftToRight}}e.StiXChartAxisTitle=t}(s=t.Chart||(t.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),s=r=t.Components||(t.Components={}),function(e){var t=o.Base.Localization.StiLocalization;class r extends s.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=s.StiMeterIdent.XChartMeter}get localizedName(){return`X${t.get("PropertyMain","Value")}`}}e.StiXChartMeter=r}(i=s.Chart||(s.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Components||(e.Components={}),function(e){class t extends e.StiXChartAxis{constructor(e,t,r){super(e,t,r),this.visible=!1}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.removeProperty("Range"),t.removeProperty("Visible"),t.addPropertyBool("Visible",this.visible,!1),t}isDefault(){return!this.shouldSerializeTitle()&&!this.shouldSerializeLabels()&&!this.visible}}e.StiXTopChartAxis=t}(o=e.Chart||(e.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Components||(e.Components={}),function(o){class e extends o.StiYChartAxis{constructor(e,t,r){super(e,t,r),this.visible=!1,this.labels=new o.StiChartYRightAxisLabels}isDefault(){return!this.shouldSerializeTitle()&&!this.shouldSerializeLabels()&&!this.visible}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.removeProperty("Range"),t.removeProperty("Visible"),t.addPropertyBool("Visible",this.visible,!1),t}shouldSerializeLabels(){return null==this.labels||!this.labels.isDefault()}}o.StiYRightChartAxis=e}(o=e.Chart||(e.Chart={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Components||(e.Components={}),function(e){class t{}e.StiMeterConverter=t}(o=e.Design||(e.Design={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),t=r=t.Components||(t.Components={}),t=s=t.Chart||(t.Chart={}),function(e){var t=o.Dashboard.Components.Design.StiMeterConverter;class r extends t{}e.StiValueChartMeterConverter=r}(i=t.Design||(t.Design={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o,s;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Components||(e.Components={}),e=o=e.Chart||(e.Chart={}),function(e){class t{}e.StiXChartAxisConverter=t}(s=e.Design||(e.Design={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o,s;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Components||(e.Components={}),e=o=e.Chart||(e.Chart={}),function(e){class t{}e.StiYChartAxisConverter=t}(s=e.Design||(e.Design={}))}(Stimulsoft=Stimulsoft||{}),function(P){var e,t,r,E,o;t=e=P.Dashboard||(P.Dashboard={}),E=r=t.Components||(t.Components={}),function(a){var s=P.Base.Meters.IStiDimensionMeter,i=P.Base.Meters.IStiMeasureMeter,n=P.Base.Meters.IStiValueMeter,t=P.System.Drawing.Rectangle,e=P.Base.JsonReportObject.IStiJsonReportObject,r=P.Report.Dashboard.ImplementsIStiFixedHeightElement,o=P.Report.Dashboard.ImplementsIStiComboBoxElement,l=P.Base.Localization.StiLocalization,u=P.Dashboard.Helpers.StiMeterHelper,h=P.Data.Helpers.StiUsedDataHelper,m=P.Report.Components.TextFormats.StiFormatService,c=P.Dashboard.Components.Helpers.StiMeterLoader,d=P.Data.Engine.StiDataSortRule,p=P.Data.Engine.StiDataFilterRule,S=P.Data.Engine.StiDataActionRule,g=P.Base.StiJsonReportObjectHelper,b=P.Base.StiAlignValue,f=P.System.Drawing.Size,C=P.Report.Components.StiComponentToolboxPosition,y=P.Report.Components.TextFormats.StiGeneralFormatService,v=P.System.Drawing.Color,w=P.System.Drawing.FontStyle,D=P.System.Collections.List,x=P.System.Drawing.Font,T=P.System.Enum,F=P.Report.Dashboard.StiElementStyleIdent,M=P.Report.Dashboard.StiItemSelectionMode,I=P.Base.StiJsonSaveMode,k=P.Report.StiComponentId,R=P.Report.Dashboard.IStiFixedHeightElement,A=P.Report.Dashboard.IStiComboBoxElement,B;P.Dashboard.Export.StiExportToolAttribute.add("StiComboBoxElement","Stimulsoft.Dashboard.Export.Tools.StiComboBoxElementExportTool");class O extends E.StiElement{constructor(e=t.empty){super(e),this.group="",this.userFilters=new D,this.transformActions=new D,this.transformFilters=new D,this.transformSorts=new D,this.dataTransformation={},this.dataFilters=new D,this._style=F.Auto,this.customStyleName="",this.font=new x("Arial",8),this.foreColor=v.transparent,this.showAllValue=!1,this.showBlanks=!1,this.selectionMode=M.One,this.textFormat=new y,this.defaultClientRectangle=new t(0,0,200,40),this.helpUrl="user-manual/dashboards_data_filtering_combo_box.htm"}implements(){return O.ImplementsStiComboBoxElement||(O.ImplementsStiComboBoxElement=super.implements().concat([A,R,...o,...r,e])),O.ImplementsStiComboBoxElement}get componentId(){return k.StiComboBoxElement}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyStringNullOrEmpty("ParentKey",this.parentKey),t.addPropertyJObject("TransformActions",g.Serialize.objectArray(this.transformActions,e)),t.addPropertyJObject("TransformFilters",g.Serialize.objectArray(this.transformFilters,e)),t.addPropertyJObject("TransformSorts",g.Serialize.objectArray(this.transformSorts,e)),t.addPropertyJObject("DataFilters",g.Serialize.objectArray(this.dataFilters,e)),t.addPropertyStringNullOrEmpty("ForeColor",g.Serialize.jColor(this.foreColor,v.transparent)),t.addPropertyStringNullOrEmpty("Font",g.Serialize.fontArial8(this.font)),t.addPropertyBool("ShowAllValue",this.showAllValue),t.addPropertyBool("ShowBlanks",this.showBlanks),t.addPropertyEnum("SelectionMode",M,this.selectionMode,M.One),null!=this.nameMeter&&t.addPropertyJObject("NameMeter",this.nameMeter.saveToJsonObject(e)),null!=this.keyMeter&&t.addPropertyJObject("KeyMeter",this.keyMeter.saveToJsonObject(e)),t.addPropertyEnum("Style",F,this.style,F.Auto),t.addPropertyStringNullOrEmpty("Group",this.group),t.addPropertyStringNullOrEmpty("CustomStyleName",this.customStyleName),this.textFormat.is(y)||null==this.textFormat||t.addPropertyJObject("TextFormat",this.textFormat.saveToJsonObject(e)),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"ParentKey":this.parentKey=t.value.toString();break;case"TransformActions":this.transformActions.addRange(t.value.properties().select(e=>S.loadFromJson(e.value)));break;case"TransformFilters":this.transformFilters.addRange(t.value.properties().select(e=>p.loadFromJson(e.value)));break;case"TransformSorts":this.transformSorts.addRange(t.value.properties().select(e=>d.loadFromJson(e.value)));break;case"DataFilters":this.dataFilters.addRange(t.value.properties().select(e=>p.loadFromJson(e.value)));break;case"ForeColor":this.foreColor=g.Deserialize.color(t.value.toString());break;case"Font":this.font=g.Deserialize.font(t.value.toString(),this.font);break;case"ShowAllValue":this.showAllValue=t.value.stimulsoft().toBoolean();break;case"ShowBlanks":this.showBlanks=t.value.stimulsoft().toBoolean();break;case"SelectionMode":var r=T.parse(M,t.value);null!=r&&(this.selectionMode=r);break;case"NameMeter":var o=c.loadFromJson(t.value).as(a.StiNameComboBoxMeter);null!=o&&(this.nameMeter=o);break;case"KeyMeter":var o=c.loadFromJson(t.value).as(a.StiKeyComboBoxMeter);null!=o&&(this.keyMeter=o);break;case"Style":this.style=T.parse(F,t.value.toString());break;case"Group":this.group=t.value.toString();break;case"CustomStyleName":this.customStyleName=t.value.toString();break;case"TextFormat":this.textFormat=m.createFromJsonObject(t.value);break}}loadFromXml(r,o){super.loadFromXml(r,o);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"ParentKey":this.parentKey=e.textContent;break;case"TransformActions":this.transformActions.addRange(e.childNodes.select(e=>S.loadFromXml(e)));break;case"TransformFilters":this.transformFilters.addRange(e.childNodes.select(e=>p.loadFromXml(e)));break;case"TransformSorts":this.transformSorts.addRange(e.childNodes.select(e=>d.loadFromXml(e)));break;case"DataFilters":this.dataFilters.addRange(e.childNodes.select(e=>p.loadFromXml(e)));break;case"ForeColor":this.foreColor=P.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"Font":this.font=P.System.Convert.toFont(e.textContent);break;case"ShowAllValue":this.showAllValue=e.textContent.stimulsoft().toBoolean();break;case"ShowBlanks":this.showBlanks=e.textContent.stimulsoft().toBoolean();break;case"SelectionMode":var s=T.parse(M,e.textContent);null!=s&&(this.selectionMode=s);break;case"NameMeter":var i=c.loadFromXml(e,o).as(a.StiNameComboBoxMeter);null!=i&&(this.nameMeter=i);break;case"KeyMeter":var i=c.loadFromXml(e,o).as(a.StiKeyComboBoxMeter);null!=i&&(this.keyMeter=i);break;case"Style":this.style=T.parse(F,e.textContent);break;case"Group":this.group=e.textContent;break;case"CustomStyleName":this.customStyleName=e.textContent;break;case"TextFormat":this.textFormat=m.loadFormatFromXml(e,this.report);break}}}clone(e){let t=super.clone(e);return t.nameMeter=null!=this.nameMeter?this.nameMeter.clone():null,t.keyMeter=null!=this.keyMeter?this.keyMeter.clone():null,t.userFilters=this.userFilters.select(e=>e.clone()).toList(),t.transformActions=this.transformActions.select(e=>e.clone()).toList(),t.transformFilters=this.transformFilters.select(e=>e.clone()).toList(),t.transformSorts=this.transformSorts.select(e=>e.clone()).toList(),t.dataFilters=this.dataFilters.select(e=>e.clone()).toList(),t.textFormat=this.textFormat.clone(),t}getParentKey(){return this.parentKey}setParentKey(e){this.parentKey=e}applyDefaultFilters(){return __awaiter(this,void 0,void 0,function*(){var e=yield a.StiComboBoxHelper.fetchDefaultUserFilters(this);null!=e&&(this.userFilters=e)})}get style(){return this._style}set style(e){(this._style=e)!=F.Custom&&(this.customStyleName="")}shouldSerializeFont(){return!(null!=this.font&&"Arial"==this.font.name&&8==this.font.sizeInPoints&&this.font.style==w.Regular)}shouldSerializeForeColor(){return!v.transparent.equals(this.foreColor)}fetchAllMeters(){let e=new D;return null!=this.nameMeter&&e.add(this.nameMeter),null!=this.keyMeter&&e.add(this.keyMeter),e}getMeters(){let e=new D;return null!=this.nameMeter&&e.add(this.nameMeter),null!=this.keyMeter&&e.add(this.keyMeter),e}retrieveUsedDataNames(){return h.getMany(this.nameMeter,this.keyMeter)}get isDefined(){return null!=this.nameMeter||null!=this.keyMeter}addKeyMeter2(e){this.keyMeter=null!=e?u.ComboBox.getKey2(e):null}addKeyMeter(e){this.keyMeter=null!=e?u.ComboBox.getKey(e.as(E.StiMeter)):null}getKeyMeter(){return this.keyMeter}removeKeyMeter(){this.keyMeter=null}createNewKeyMeter(){this.keyMeter=new a.StiKeyComboBoxMeter}addNameMeter2(e){this.nameMeter=null!=e?u.ComboBox.getName2(e):null}addNameMeter(e){this.nameMeter=null!=e?u.ComboBox.getName(e.as(E.StiMeter)):null}getNameMeter(){return this.nameMeter}removeNameMeter(){this.nameMeter=null}createNewNameMeter(){this.nameMeter=new a.StiNameComboBoxMeter}createNextMeter(e){null!=this.keyMeter&&null==this.nameMeter?this.nameMeter=u.ComboBox.getName2(e):this.keyMeter=u.ComboBox.getKey2(e)}convertFrom(e){let t=e.fetchAllMeters();if(null==t)return;let r=t.firstOrDefault(e=>e.is(n));r=null==r?t.firstOrDefault(e=>e.is(i)):r,null!=r&&(this.keyMeter=null==this.keyMeter?new a.StiKeyComboBoxMeter:this.keyMeter,this.keyMeter.loadFromJsonObject(r.saveToJsonObject(I.Report)));let o=t.firstOrDefault(e=>e.is(n));o=null==o?t.firstOrDefault(e=>e.is(s)):o,null!=o&&(this.nameMeter=null==this.nameMeter?new a.StiNameComboBoxMeter:this.nameMeter,this.nameMeter.loadFromJsonObject(o.saveToJsonObject(I.Report)))}shouldSerializeTextFormat(){return!this.textFormat.is(y)}get toolboxPosition(){return C.ComboBoxElement}get localizedName(){return l.get("Components","StiComboBox")}get minSize(){var e=null!=this.report?this.report.getCurrentPage():null;if(null==e)return f.empty;var e=b.alignToMaxGrid(this.defaultClientRectangle.height,e.gridSize,!0);return new f(0,e)}set minSize(e){}get maxSize(){var e=null!=this.report?this.report.getCurrentPage():null;if(null==e)return f.empty;var e=b.alignToMaxGrid(this.defaultClientRectangle.height,e.gridSize,!0);return new f(0,e)}set maxSize(e){}createNew(){return new O}}a.StiComboBoxElement=O}(o=E.ComboBox||(E.ComboBox={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s;t=e=o.Dashboard||(o.Dashboard={}),t=r=t.Components||(t.Components={}),function(l){var s=o.Data.Functions.StiExtValueConverter,i=o.Report.Dashboard.StiDataFilterCreator,t=o.System.Data.DBNull,a=o.Report.Components.IStiTextFormat,u=o.Data.Engine.StiDataTable,n=o.Report.Components.TextFormats.StiDateFormatService,h=o.System.DateTime,m=o.Report.Dashboard.StiElementDataCache,c=o.Report.Dashboard.StiItemSelectionMode,d=o.System.Collections.List,r=o.System.StiString;class e{static fetchItems(e,t,r){if(null==t||t==u.nullTable||0==t.rows.length)return null;let o=this.getNameMeterIndex(t),s=this.getKeyMeterIndex(t);if(-1==o&&1==s)return null;-1==s&&(s=o),-1==o&&(o=s);let i=new d;for(var a of t.rows){var n=a[s];if(null==n)continue;var a=a[o];!r&&this.isBlank(a)||i.add(new l.StiComboBoxItem(this.format(e,a),n))}return i}static isBlank(e){return null==e||e==t.value||"string"==typeof e&&r.isNullOrEmpty(e)}static fetchDefaultUserFilters(o){return __awaiter(this,void 0,void 0,function*(){if(o.showAllValue)return null;if(o.selectionMode==c.Multi)return null;var e=this.getKeyMeterExpression(o);if(null==e)return null;var t=yield m.getOrCreate(o);let r=this.fetchItems(o,t,o.showBlanks);if(null==r||0==r.length)return null;var t=r.stimulsoft().toList().firstOrDefault().value;return i.createEqualBasedOnValue(t,e,o).toList()})}static getNameMeterIndex(e){if(null==e)return-1;var t=e.meters.firstOrDefault(e=>e.is(l.StiNameComboBoxMeter));return null!=t?e.meters.indexOf(t):-1}static getKeyMeterIndex(e){if(null==e)return-1;var t=e.meters.firstOrDefault(e=>e.is(l.StiKeyComboBoxMeter));return null!=t?e.meters.indexOf(t):-1}static getKeyMeterExpression(e){if(null!=e.keyMeter)return e.keyMeter.expression;if(null!=e.nameMeter)return e.nameMeter.expression;return null}static format(e,t){var r,e;let o=e.as(a);return t instanceof h&&!o.textFormat.is(n)?t.toShortDateString():s.isEligable(t,null===(r=null==e?void 0:e.report)||void 0===r?void 0:r.culture)?s.convert(t,null===(e=null==e?void 0:e.report)||void 0===e?void 0:e.culture):o.textFormat.format(t)}}l.StiComboBoxHelper=e}(s=t.ComboBox||(t.ComboBox={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Components||(e.Components={}),function(e){class t{constructor(e,t=e){this.label=e,this.value=t}toString(){return null!=this.label?this.label:this.value.toString()}}e.StiComboBoxItem=t}(o=e.ComboBox||(e.ComboBox={}))}(Stimulsoft=Stimulsoft||{}),function(H){var e,t,r,G,o;t=e=H.Dashboard||(H.Dashboard={}),G=r=t.Components||(t.Components={}),function(s){var r=H.Report.Components.TextFormats.StiGeneralFormatService,i=H.Report.Components.TextFormats.StiFormatService,o=H.Base.Meters.IStiMeasureMeter,a=H.Base.Meters.IStiValueMeter,t=H.System.Drawing.Rectangle,e=H.Base.JsonReportObject.IStiJsonReportObject,n=H.Report.Dashboard.ImplementsIStiGroupElement,l=H.Report.Dashboard.ImplementsIStiFixedHeightElement,u=H.Report.Dashboard.ImplementsIStiDatePickerElement,h=H.Report.Dashboard.StiInitialDateRangeSelection,m=H.Report.Dashboard.StiInitialDateRangeSelectionSource,c=H.Base.Localization.StiLocalization,d=H.Report.Components.StiComponentToolboxPosition,p=H.Dashboard.Helpers.StiMeterHelper,S=H.Data.Helpers.StiUsedDataHelper,g=H.System.Drawing.FontStyle,b=H.Data.Engine.StiDataFilterRule,f=H.Base.StiJsonReportObjectHelper,C=H.Dashboard.Components.Helpers.StiMeterLoader,y=H.Report.Dashboard.StiDateSelectionMode,v=H.Report.Dashboard.StiDateCondition,w=H.Base.StiAlignValue,D=H.System.Drawing.Size,x=H.Report.Components.TextFormats.StiDateFormatService,T=H.Dashboard.Components.DatePicker.StiValueDatePickerMeter,F=H.System.Drawing.Font,M=H.Report.Dashboard.StiElementStyleIdent,I=H.System.Collections.List,k=H.System.Enum,R=H.System.Drawing.Color,A=H.Base.StiJsonSaveMode,B=H.Report.StiComponentId,O=H.Report.Dashboard.IStiGroupElement,P=H.Report.Dashboard.IStiFixedHeightElement,E=H.Report.Dashboard.IStiDatePickerElement,L=H.Dashboard.Export.StiExportToolAttribute,N=H.Report.Dictionary.StiVariable,V=H.Report.DateTimeRange,z=H.Report.Range,J=H.Report.Engine.StiVariableHelper;L.add("StiDatePickerElement","Stimulsoft.Dashboard.Export.Tools.StiDatePickerElementExportTool");class j extends G.StiElement{constructor(e=t.empty){super(e),this.group="",this.userFilters=new I,this.dataFilters=new I,this._style=M.Auto,this.customStyleName="",this.font=new F("Arial",8),this.foreColor=R.transparent,this.textFormat=new x,this.defaultClientRectangle=new t(0,0,200,40),this.helpUrl="user-manual/dashboards_data_filtering_date_picker.htm",this.condition=v.GreaterThanOrEqualTo,this.selectionMode=y.Single,this.initialRangeSelection=h.MonthPrevious,this.initialRangeSelectionSource=m.Variable}implements(){return j.ImplementsStiDatePickerElement||(j.ImplementsStiDatePickerElement=super.implements().concat([E,P,O,...u,...l,...n,e])),j.ImplementsStiDatePickerElement}get componentId(){return B.StiDatePickerElement}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyJObject("DataFilters",f.Serialize.objectArray(this.dataFilters,e)),t.addPropertyStringNullOrEmpty("ForeColor",f.Serialize.jColor(this.foreColor,R.transparent)),t.addPropertyStringNullOrEmpty("Font",f.Serialize.fontArial8(this.font)),t.addPropertyEnum("Condition",v,this.condition,v.GreaterThanOrEqualTo),t.addPropertyEnum("SelectionMode",y,this.selectionMode,y.Single),t.addPropertyEnum("InitialRangeSelection",h,this.initialRangeSelection,h.MonthPrevious),t.addPropertyEnum("InitialRangeSelectionSource",m,this.initialRangeSelectionSource,m.Variable),null!=this.valueMeter&&t.addPropertyJObject("ValueMeter",this.valueMeter.saveToJsonObject(e)),t.addPropertyEnum("Style",M,this.style,M.Auto),t.addPropertyStringNullOrEmpty("Group",this.group),t.addPropertyStringNullOrEmpty("CustomStyleName",this.customStyleName),this.textFormat.is(r)||null==this.textFormat||t.addPropertyJObject("TextFormat",this.textFormat.saveToJsonObject(e)),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"DataFilters":this.dataFilters.addRange(t.value.properties().select(e=>b.loadFromJson(e.value)));break;case"ForeColor":this.foreColor=f.Deserialize.color(t.value.toString());break;case"Font":this.font=f.Deserialize.font(t.value,this.font);break;case"Condition":this.condition=k.parse(v,t.value.toString());break;case"SelectionMode":var r=k.parse(y,t.value);null!=r&&(this.selectionMode=r);break;case"InitialRangeSelection":this.initialRangeSelection=k.parse(h,t.value.toString());break;case"InitialRangeSelectionSource":this.initialRangeSelectionSource=k.parse(m,t.value.toString());break;case"ValueMeter":var r=C.loadFromJson(t.value).as(T);null!=r&&(this.valueMeter=r);break;case"Style":this.style=k.parse(M,t.value.toString());break;case"Group":this.group=t.value.toString();break;case"CustomStyleName":this.customStyleName=t.value.toString();break;case"TextFormat":this.textFormat=i.createFromJsonObject(t.value);break}}loadFromXml(r,o){super.loadFromXml(r,o);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"DataFilters":this.dataFilters.addRange(e.childNodes.select(e=>b.loadFromXml(e)));break;case"ForeColor":this.foreColor=H.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"Font":this.font=H.System.Convert.toFont(e.textContent);break;case"Condition":this.condition=k.parse(v,e.textContent);break;case"SelectionMode":var s=k.parse(y,e.textContent);null!=s&&(this.selectionMode=s);break;case"InitialRangeSelection":this.initialRangeSelection=k.parse(h,e.textContent);break;case"InitialRangeSelectionSource":this.initialRangeSelectionSource=k.parse(m,e.textContent);break;case"ValueMeter":var s=C.loadFromXml(e,o).as(T);null!=s&&(this.valueMeter=s);break;case"Style":this.style=k.parse(M,e.textContent);break;case"Group":this.group=e.textContent;break;case"CustomStyleName":this.customStyleName=e.textContent;break;case"TextFormat":this.textFormat=i.loadFormatFromXml(e,this.report);break}}}clone(e){let t=super.clone(e);return t.valueMeter=null!=this.valueMeter?this.valueMeter.clone():null,t.userFilters=this.userFilters.select(e=>e.clone()).toList(),t.dataFilters=this.dataFilters.select(e=>e.clone()).toList(),t.textFormat=this.textFormat.clone(),t}getParentKey(){return null}setParentKey(e){}applyDefaultFilters(){var o;return __awaiter(this,void 0,void 0,function*(){let e=null===(o=s.StiDatePickerHelper.getVariableSpecifiedAsValue(this.as(E)))||void 0===o?void 0:o.as(N);var t,r,t,t;null==e?null!=(t=yield s.StiDatePickerHelper.fetchDefaultUserFilters(this))&&(this.userFilters=t):z.isRangeType(e.type)&&this.initialRangeSelectionSource==m.Selection&&(s.StiDatePickerHelper.calculateRangeFromInitial(this.initialRangeSelection,r={ref:null},t={ref:null}),t=new V(r.ref,t.ref),J.setVariableValue(this.report,e,t),e.valueObject=t)})}get style(){return this._style}set style(e){(this._style=e)!=M.Custom&&(this.customStyleName="")}shouldSerializeFont(){return!(null!=this.font&&"Arial"==this.font.name&&8==this.font.sizeInPoints&&this.font.style==g.Regular)}shouldSerializeForeColor(){return!R.transparent.equals(this.foreColor)}fetchAllMeters(){let e=new I;return null!=this.valueMeter&&e.add(this.valueMeter),e}getMeters(){let e=new I;return(s.StiDatePickerHelper.isVariableSpecifiedAsValue(this)||null!=this.valueMeter&&this.selectionMode==y.AutoRange)&&e.add(this.valueMeter),e}retrieveUsedDataNames(){return null!=this.valueMeter&&this.selectionMode==y.AutoRange?S.getMany(this.valueMeter):super.retrieveUsedDataNames()}get isDefined(){return null!=this.valueMeter}addValueMeter2(e){this.valueMeter=null!=e?p.DatePicker.getValue2(e):null}addValueMeter(e){this.valueMeter=null!=e?p.DatePicker.getValue(e.as(G.StiMeter)):null}getValueMeter(){return this.valueMeter}removeValueMeter(){this.valueMeter=null}createNewValueMeter(){this.valueMeter=new T}convertFrom(e){let t=e.fetchAllMeters();if(null==t)return;let r=t.firstOrDefault(e=>e.is(a));r=null==r?t.firstOrDefault(e=>e.is(o)):r,null!=r&&(this.valueMeter=null==this.valueMeter?new T:this.valueMeter,this.valueMeter.loadFromJsonObject(r.saveToJsonObject(A.Report)))}get toolboxPosition(){return d.DatePickerElement}get localizedName(){return c.get("Components","StiDatePicker")}get minSize(){var e=null!=this.report?this.report.getCurrentPage():null;if(null==e)return D.empty;var e=w.alignToMaxGrid(this.defaultClientRectangle.height,e.gridSize,!0);return new D(0,e)}set minSize(e){}get maxSize(){var e=null!=this.report?this.report.getCurrentPage():null;if(null==e)return D.empty;var e=w.alignToMaxGrid(this.defaultClientRectangle.height,e.gridSize,!0);return new D(0,e)}set maxSize(e){}createNew(){return new j}}s.StiDatePickerElement=j}(o=G.DatePicker||(G.DatePicker={}))}(Stimulsoft=Stimulsoft||{}),function(S){var e,t,r,o;t=e=S.Dashboard||(S.Dashboard={}),t=r=t.Components||(t.Components={}),function(e){var t=S.Report.StiVariableExpressionHelper,o=S.Report.DateTimeRange,s=S.System.StimulsoftDateTimeRange,i=S.Base.Helpers.StiValueHelper,a=S.System.NullableDateTime,n=S.Report.Dictionary.StiVariable,r=S.Report.Dashboard.StiDateCondition,l=S.Data.Engine.StiDataFilterCondition,u=S.Data.Engine.StiDataFilterRule,h=S.Report.Dashboard.StiInitialDateRangeSelection,m=S.Report.Dashboard.StiElementDataCache,c=S.System.DateTime,d=S.Report.Dashboard.StiDateSelectionMode;class p{static calculateRangeFromInitial(e,t,r){switch(e){case h.DayTomorrow:t.ref=c.today.addDays(1),r.ref=c.today.addDays(1);break;case h.DayToday:t.ref=c.today,r.ref=c.today;break;case h.DayYesterday:t.ref=c.today.addDays(-1),r.ref=c.today.addDays(-1);break;case h.Last7Days:t.ref=c.today.addDays(-7),r.ref=c.today;break;case h.Last14Days:t.ref=c.today.addDays(-14),r.ref=c.today;break;case h.Last30Days:t.ref=c.today.addDays(-30),r.ref=c.today;break;case h.WeekNext:t.ref=c.today.addDays(7).firstDayOfWeek(),r.ref=c.today.addDays(7).lastDayOfWeek();break;case h.WeekCurrent:t.ref=c.today.firstDayOfWeek(),r.ref=c.today.lastDayOfWeek();break;case h.WeekPrevious:t.ref=c.today.addDays(-7).firstDayOfWeek(),r.ref=c.today.addDays(-7).lastDayOfWeek();break;case h.MonthNext:t.ref=c.today.addMonths(1).firstDayOfMonth(),r.ref=c.today.addMonths(1).lastDayOfMonth();break;case h.MonthCurrent:t.ref=c.today.firstDayOfMonth(),r.ref=c.today.lastDayOfMonth();break;case h.MonthPrevious:t.ref=c.today.addMonths(-1).firstDayOfMonth(),r.ref=c.today.addMonths(-1).lastDayOfMonth();break;case h.QuarterNext:t.ref=c.today.addMonths(3).firstDayOfQuarter(),r.ref=c.today.addMonths(3).lastDayOfQuarter();break;case h.QuarterCurrent:t.ref=c.today.firstDayOfQuarter(),r.ref=c.today.lastDayOfQuarter();break;case h.QuarterPrevious:t.ref=c.today.addMonths(-3).firstDayOfQuarter(),r.ref=c.today.addMonths(-3).lastDayOfQuarter();break;case h.QuarterFirst:t.ref=c.today.firstDayOfFirthQuarter(),r.ref=c.today.lastDayOfFirthQuarter();break;case h.QuarterSecond:t.ref=c.today.firstDayOfSecondQuarter(),r.ref=c.today.lastDayOfSecondQuarter();break;case h.QuarterThird:t.ref=c.today.firstDayOfThirdQuarter(),r.ref=c.today.lastDayOfThirdQuarter();break;case h.QuarterFourth:t.ref=c.today.firstDayOfFourthQuarter(),r.ref=c.today.lastDayOfFourthQuarter();break;case h.YearNext:t.ref=c.today.addYears(1).firstDayOfYear(),r.ref=c.today.addYears(1).lastDayOfYear();break;case h.YearCurrent:t.ref=c.today.firstDayOfYear(),r.ref=c.today.lastDayOfYear();break;case h.YearPrevious:t.ref=c.today.addYears(-1).firstDayOfYear(),r.ref=c.today.addYears(-1).lastDayOfYear();break;case h.DateToWeek:t.ref=c.today.firstDayOfWeek(),r.ref=c.today;break;case h.DateToMonth:t.ref=c.today.firstDayOfMonth(),r.ref=c.today;break;case h.DateToQuarter:t.ref=c.today.firstDayOfQuarter(),r.ref=c.today;break;case h.DateToYear:t.ref=c.today.firstDayOfYear(),r.ref=c.today;break;default:t.ref=c.now,r.ref=c.now;break}}static fetchDefaultUserFilters(t){return __awaiter(this,void 0,void 0,function*(){var e=this.getValueMeterExpression(t);if(t.selectionMode==d.Single)return this.getSingleDefaultUserFilters(t,e);if(t.selectionMode==d.Range)return this.getRangeDefaultUserFilters(t.initialRangeSelection,e);if(t.selectionMode==d.AutoRange)return yield this.getAutoRangeDefaultUserFilters(t,e);return null})}static getSingleDefaultUserFilters(e,t){var r=this.getFormatedDate(c.now);return new u(null,t,this.getCondition(e),r).toList()}static getRangeDefaultUserFilters(e,t){var r={ref:null},o={ref:null};this.calculateRangeFromInitial(e,r,o);var r=this.getFormatedDate(r.ref),o=this.getFormatedDate(o.ref);return new u("",t,l.Between,r,o,!0,!1).toList()}static getAutoRangeDefaultUserFilters(s,i){return __awaiter(this,void 0,void 0,function*(){let e=yield m.getOrCreate(s);if(null==e)return null;let t=e.rows.select(e=>e[0]).where(e=>e instanceof c);if(null==t||!t.any())return null;var r=t.where(e=>e instanceof c).cast().min(),o=t.where(e=>e instanceof c).cast().max(),r=this.getFormatedDate(r),o=this.getFormatedDate(o);return new u("",i,l.Between,r,o,!0,!1).toList()})}static getValueMeterExpression(e){return null!=e.valueMeter?e.valueMeter.expression:null}static getCondition(e){switch(e.condition){case r.EqualTo:return l.EqualTo;case r.NotEqualTo:return l.NotEqualTo;case r.GreaterThan:return l.GreaterThan;case r.GreaterThanOrEqualTo:return l.GreaterThanOrEqualTo;case r.LessThan:return l.LessThan;case r.LessThanOrEqualTo:return l.LessThanOrEqualTo;default:return l.EqualTo}}static getFormatedDate(e){return e.toString("MM/dd/yyyy")}static getVariableSpecifiedAsValue(e){var e;return t.getVariableSpecifiedAsExpression(e,null===(e=e.getValueMeter())||void 0===e?void 0:e.expression)}static isVariableSpecifiedAsValue(e){var e;return t.isVariableSpecifiedAsExpression(e,null===(e=e.getValueMeter())||void 0===e?void 0:e.expression)}static getDefaultValue(t){var r,r=null===(r=this.getVariableSpecifiedAsValue(t))||void 0===r?void 0:r.as(n);if(null!=r){let e=t.report.dictionary.getVariableValueByName(r.name);if(r.type==c||r.type==a)return i.tryToDateTime(e);if(r.type==o||r.type==s)return e.stimulsoft().is(o)?e:new o}return c.now}}e.StiDatePickerHelper=p}(o=t.DatePicker||(t.DatePicker={}))}(Stimulsoft=Stimulsoft||{}),function(r){var e,t,o,s;t=e=r.Dashboard||(r.Dashboard={}),t=o=t.Components||(t.Components={}),function(e){class t{constructor(){this.elementEditor="Stimulsoft.Dashboard.Design.Components.StiElementEditor, Stimulsoft.Dashboard.Design, "+r.StiVersion.versionInfo,this.textFormatEditor="Stimulsoft.Report.Components.TextFormats.Design.StiTextFormatEditor, Stimulsoft.Report.Design, "+r.StiVersion.versionInfo}}e.StiElementEditorConsts=t}(s=t.Design||(t.Design={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Components||(e.Components={}),function(e){class t{}e.StiElementLayoutConverter=t}(o=e.Design||(e.Design={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Components||(e.Components={}),function(e){class t{}e.StiElementStyleConverter=t}(o=e.Design||(e.Design={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Components||(e.Components={}),function(e){class t{}e.StiMeterListConverter=t}(o=e.Design||(e.Design={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Components||(e.Components={}),function(e){class t{}e.StiTitleConverter=t}(o=e.Design||(e.Design={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r;t=e=o.Dashboard||(o.Dashboard={}),function(e){var r=o.Data.Functions.StiExtValueConverter,s=o.System.Collections.List,i=o.Base.Helpers.StiValueHelper,a=o.System.DateTime,n=o.Report.StiAbbreviationNumberFormatHelper,l=o.System.StiNumber;class t{getSeriesKeysLimitCount(e){let t=null;return e.isDesigning&&(t=100),t}getSeries(e,t,r,o,s=!1){if(null==e||-1==t)return null;var r=e.rows.whereFirstOrDefaultArrayItemStringEqualsTo(t,r);let i=null!=r&&0<r.length?r[t]:null;if(null!=i&&i instanceof a)return i.toShortDateString();if(s&&null!=i){if("number"==typeof i)return n.format(i);var s=l.tryParse(i);if(s.successfully)return n.format(s.result)}return this.toString(i)}getValue(e,t,r,o,s){if(null==e||-1==t)return 0;if(o<2)return e.rows.getArrayItem(t).firstOrDefaultAsNumber();var s=e.rows.whereFirstOrDefaultArrayItemStringEqualsTo(r,s);return null!=s&&0<s.length?i.tryToNumber(s[t]):0}getTarget(e,t,r,o,s){if(null==e||-1==t)return null;if(o<2)return e.rows.getArrayItem(t).firstOrDefaultAsNumber();var s=e.rows.whereFirstOrDefaultArrayItemStringEqualsTo(r,s);return null!=s&&0<s.length?i.tryToNumber(s[t]):0}getNullableValue(e,t,r,o,s){if(null==e||-1==t)return null;if(o<2)return e.rows.getArrayItem(t).firstOrDefaultAsNullableNumber();var s=e.rows.whereFirstOrDefaultArrayItemStringEqualsTo(r,s);return null!=s&&0<s.length?i.tryToNullableNumber(s[t]):null}getSeriesKeyValues(e,t,r){if(null==e||-1==t)return new s([""]);let o=null!=r?e.rows.getArrayItem(t).distinct().select(this.replaceDbNull).where(e=>null!=e).take(r):e.rows.getArrayItem(t).distinct().select(this.replaceDbNull).where(e=>null!=e);return o.any()?o:new s([""])}getSeriesKeys(e,t,r){let o=this.getSeriesKeyValues(e,t,r);return null==o?new s([""]):o.select(this.toString)}replaceDbNull(e){return e}toString(e){return null==e?"":e.toString()}toReadableString(e,t){if(r.isEligable(e,null==t?void 0:t.culture))return r.convert(e,null==t?void 0:t.culture);return this.toString(e)}}e.StiElementBuilder=t}(r=t.Render||(t.Render={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),s=r=t.Components||(t.Components={}),function(e){var t=o.Base.Meters.IStiMinGaugeMeter;class r extends s.StiMeasureMeter{constructor(e,t,r){super(e,t,r),this.ident=s.StiMeterIdent.MinGaugeMeter}implements(){return r.ImplementsStiMinGaugeMeter||(r.ImplementsStiMinGaugeMeter=super.implements().concat([t])),r.ImplementsStiMinGaugeMeter}get localizedName(){return"Min"}}e.StiMinGaugeMeter=r}(i=s.Gauge||(s.Gauge={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),s=r=t.Components||(t.Components={}),function(e){var t=o.Base.Meters.IStiMaxGaugeMeter;class r extends s.StiMeasureMeter{constructor(e,t,r){super(e,t,r),this.ident=s.StiMeterIdent.MaxGaugeMeter}implements(){return r.ImplementsStiMaxGaugeMeter||(r.ImplementsStiMaxGaugeMeter=super.implements().concat([t])),r.ImplementsStiMaxGaugeMeter}get localizedName(){return"Max"}}e.StiMaxGaugeMeter=r}(i=s.Gauge||(s.Gauge={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Visuals||(e.Visuals={}),function(e){class t{}e.StiGaugeIteration=t}(o=e.Gauge||(e.Gauge={}))}(Stimulsoft=Stimulsoft||{}),function(q){var e,t,r;t=e=q.Dashboard||(q.Dashboard={}),function(e){var l=q.Report.Dashboard.Helpers.StiDashboardExpressionHelper,h=q.Report.Gauge.StiLabelRotationMode,S=q.Report.Dashboard.StiReportParser,g=q.Base.Helpers.StiValueHelper,a=q.Dashboard.Helpers.StiCultureHelper,w=q.Report.Components.Gauge.Primitives.StiIndicatorBase,d=q.Report.Components.Gauge.StiRadialRange,p=q.Report.Components.Gauge.StiRadialRangeList,u=q.Report.Components.Gauge.StiLinearMarker,m=q.Report.Components.Gauge.StiLinearTickMarkMajor,c=q.System.Drawing.Font,b=q.Report.Components.Gauge.StiLinearTickLabelMajor,f=q.System.Drawing.Color,C=q.Report.Gauge.StiRadiusMode,y=q.System.Drawing.Point,v=q.Report.Components.Gauge.StiNeedle,D=q.Report.Components.Gauge.StiRadialBar,x=q.Report.Gauge.StiTickMarkSkin,T=q.Report.Gauge.StiGaugeType,F=q.Report.Components.StiGauge,M=q.Base.Drawing.StiSolidBrush,I=q.Report.Gauge.StiPlacement,k=q.Report.Components.Gauge.StiLinearRange,R=q.Report.Components.Gauge.StiLinearRangeList,A=q.Report.Gauge.StiGaugeRangeMode,B=q.Report.Components.Gauge.StiLinearScale,t=q.Report.Gauge.StiGaugeRangeType,O=q.Report.Gauge.StiGaugeCalculationMode,r=q.Dashboard.Components.Gauge.StiValueGaugeMeter,o=q.Dashboard.Components.Gauge.StiMinGaugeMeter,s=q.Dashboard.Components.Gauge.StiMaxGaugeMeter,i=q.Dashboard.Components.Gauge.StiSeriesGaugeMeter,n=q.Dashboard.Components.Gauge.StiTargetGaugeMeter,P=q.Base.Drawing.StiEmptyBrush,E=q.Report.Components.Gauge.StiRadialTickLabelMajor,L=q.Report.Components.Gauge.StiRadialTickMarkMajor,N=q.Report.Components.Gauge.StiRadialScale,V=q.Data.Exceptions.StiTypeNotRecognizedException,z=q.Report.Dashboard.StiElementStyleIdent,J=q.Report.Dashboard.Styles.StiDashboardStyleHelper,j=q.Dashboard.Visuals.Gauge.StiGaugeIteration,H=q.Report.Gauge.StiMarkerSkin,G=q.Report.Components.Gauge.StiLinearTickMarkCustom,X=q.Report.Components.Gauge.StiLinearBar,U=q.Report.Components.Gauge.StiRadialTickMarkCustom,K=q.Report.Dashboard.StiLabelPlacement;class W extends e.StiElementBuilder{findMinMaxValues(e,a,t,n,l,u,h,m,c,d,r,o){let p,S;for(var g of t){var b=this.getValue(n,l,u,h,this.toString(g)),f=this.getTarget(n,m,u,h,this.toString(g));let t=0,r=0;b==c&&b==d&&(r=0==b?(t=-50,50):(t=b-b,b+b));let o=5;switch(e.type){case T.FullCircular:case T.HalfCircular:var C=Math.min(a.width,a.height);o=C<330?2:C<450?5:C<650?7:10;break;case T.Linear:var C=a.height;o=C<330?2:C<450?5:C<650?7:10;break;case T.HorizontalLinear:var y=a.width;o=y<330?2:y<500?5:y<650?8:10;break;case T.Bullet:var y=a.width;o=y<330?2:5;break}let s=0,i=0;if(e.calculationMode==O.Auto){var g=this.getSummary(b,t,r),f;if(b<=t&&(t=Math.round(b-.3*g)),b>=r&&(r=Math.round(b+.3*g)),null!=f&&((f=f)<t&&(t=Math.round(f-.3*g)),f>r&&(r=Math.round(f+.3*g))),s=t,i=r,-1<b&&b<1){(null==p||s<p)&&(p=s),(null==S||i>S)&&(S=i);continue}var g=s%5;0!=g&&(s-=g);var b=i-s;let e=b/o;0<e-e&&(e+=1);var g=e%5;0!=g&&(e+=5-g),b=e*o,i=s+b}else s=e.minimum,i=e.maximum;(null==p||s<p)&&(p=s),(null==S||i>S)&&(S=i)}r.ref=p,o.ref=S}render(e,t,r){return this.render2(e,t,r)()}render2(C,y,v){let e=a.set(C.report);try{let c=this.getValueMeterIndex(v),d=this.getSeriesMeterIndex(v),p=this.getTargetMeterIndex(v);var t=this.getMinMeterIndex(v),r=this.getMaxMeterIndex(v);let e=this.getSeriesKeyValues(v,d,this.getSeriesKeysLimitCount(C)),S=e.count2();var o=this.getMinValue(C,v,t),s=this.getMaxValue(C,v,r);let g={ref:null};var i={ref:null};this.findMinMaxValues(C,y,e,v,c,d,S,p,o,s,g,i);let b=g.ref,f=i.ref;return()=>e.select(e=>{var t=this.getValue(v,c,d,S,this.toString(e)),r=this.getTarget(v,p,d,S,this.toString(e)),o={ref:null},s={ref:null},i={ref:null};this.fundActualValues(C,y,t,b,f,o,s,i);var s=o.ref,o=g.ref,a,n,l;let u=this.createScale(C,i.ref,y,b,f,r);for(l of u.items.toList().where(e=>e.is(w)).cast())l.valueObj=t;if(u.minimum=b,u.maximum=f,u.majorInterval=s,u.minorInterval=o,C.type==T.Linear||C.type==T.HorizontalLinear||C.type==T.Bullet){let e=u.items.toList().where(e=>e.is(R)).cast().firstOrDefault();null!=e&&1==e.ranges.length&&(e.ranges.getByIndex(0).startValue=u.minimum,e.ranges.getByIndex(0).endValue=u.maximum)}let h=new F(C.clientRectangle);h.allowApplyStyle=!0,h.shortValue=C.shortValue,W.setStyle(C,h),h.scales.add(u),h.applyStyle(h.style);let m=new j;return m.gauge=h,m.series=this.getSeries(v,d,e,C.report,C.shortValue),m},this)}finally{a.restore(e)}null!==e&&void 0!==e&&e.fix()}fundActualValues(e,t,r,o,s,i,a,n){let l=i.ref,u=a.ref,h=n.ref,m=5;switch(h=!1,e.type){case T.FullCircular:case T.HalfCircular:var c=Math.min(t.width,t.height);c<330?(m=2,h=!0):m=c<450?5:c<650?7:10;break;case T.Linear:var d=t.height;d<330?(m=2,h=!0):m=d<450?5:d<650?7:10;break;case T.HorizontalLinear:var d=t.width;d<330?(m=2,h=!0):m=d<500?5:d<650?8:10;break;case T.Bullet:var p;t.width<330?(m=2,h=!0):m=5;break}if(e.calculationMode!=O.Auto)return l=Math.abs(Math.round((e.maximum-e.minimum)/m)),0==l&&(l=1),u=l/2,i.ref=l,a.ref=u,void(n.ref=h);var e=this.getSummary(r,o,s);if(l=Math.abs(Math.round(e/m)),u=l/2,i.ref=l,a.ref=u,-1<r&&r<1)return;var s=s-o;let S=s/m;0<S-S&&(S+=1);var o=S%5;0!=o&&(S+=5-o),s=S*m,l=Math.abs(s/m),u=l/2,i.ref=l,a.ref=u,n.ref=h}getSummary(e,t,r){var o=Math.round(r-t);let s=Math.max(e,o);return s=Math.max(s,t),s=Math.max(s,r),0==s&&(s=100),s}static setStyle(e,t){if(e.style!=z.Custom)return void(t.style=J.getGaugeStyle(e));var r=e.report.styles.getCustomGaugeStyle(e.customStyleName);if(null!=r)return t.style=r,t.customStyleName=e.customStyleName,t.brush=new M(J.getBackColor(e)),void(t.allowApplyStyle=!1);t.style=J.getGaugeStyle2(z.Blue)}static getTargetBrush(e){if(e.style!=z.Custom)return new M(J.getGaugeStyle(e).core.targetColor);var e=e.report.styles.getCustomGaugeStyle(e.customStyleName);if(null!=e&&null!=e.core)return new M(e.core.targetColor);return new M(J.getGaugeStyle2(z.Blue).core.targetColor)}static getTickMarkBrush(e){if(e.style!=z.Custom)return J.getGaugeStyle(e).core.tickMarkMajorBrush;var e=e.report.styles.getCustomGaugeStyle(e.customStyleName);if(null!=e&&null!=e.core)return e.core.tickMarkMajorBrush;return J.getGaugeStyle2(z.Blue).core.tickMarkMajorBrush}static getTickLabelBrush(e){if(e.style!=z.Custom)return J.getGaugeStyle(e).core.tickLabelMajorTextBrush;var e=e.report.styles.getCustomGaugeStyle(e.customStyleName);if(null!=e&&null!=e.core)return e.core.tickLabelMajorTextBrush;return J.getGaugeStyle2(z.Blue).core.tickLabelMajorTextBrush}createScale(e,t,r,o,s,i=null){switch(e.type){case T.FullCircular:return this.createFullCircularScale(e,t,r,o,s,i);case T.HalfCircular:return this.createHalfCircularScale(e,t,r,o,s,i);case T.Linear:return this.createLinearScale(e,o,s,!1,i);case T.HorizontalLinear:return this.createLinearScale(e,o,s,!0,i);case T.Bullet:return this.createBullet(e,o,s,i);default:throw new V(e.type)}}static calculateMinorInterval(e,t){if(e<0&&t<0)return Math.abs((e-t)/5);if(e<0)return(t+Math.abs(e))/5;return(t-e)/5}createFullCircularScale(t,r,e,o,s,i=null){var a=Math.min(e.width,e.height),e=a<150,a=a<75;let n=new N;n.startAngle=120,n.sweepAngle=300,n.startWidth=.05,n.endWidth=.05,n.minimum=0,n.maximum=180,n.majorInterval=90,n.minorInterval=10,n.borderBrush=new P,n.brush=new P;var s=W.addRadialRanges(t,o,s,n);let l=new D;l.startWidth=.1,l.endWidth=.1,l.offset=.1,l.placement=I.Outside,l.valueObj=90,n.items.add(l);let u=new v;if(u.relativeHeight=.3,u.relativeWidth=.4,u.startWidth=.1,u.endWidth=1,u.capBrush=new P,u.brush=new P,u.valueObj=90,n.items.add(u),t.labels.visible&&!a){let e=new L;e.relativeWidth=.03,e.relativeHeight=.006,e.skin=x.Rectangle,e.brush=W.getTickMarkBrush(t),t.labels.placement==K.Inside?(e.placement=I.Inside,e.offset=s?0:-.1):(e.placement=I.Outside,e.offset=.2),n.items.add(e)}if(t.labels.visible&&!e){let e=new E;e.allowApplyStyle=!1,e.textBrush=W.getTickLabelBrush(t),e.labelRotationMode=r?h.None:t.labels.rotationMode,e.formatService=t.valueFormat,t.labels.placement==K.Inside?(e.placement=I.Inside,e.offset=s?.07:-.03):(e.placement=I.Outside,e.offset=.27),n.items.add(e)}if(null!=i){let e=new U;e.placement=I.Overlay,e.offset=-.15,e.relativeWidth=.1,e.relativeHeight=.02,e.borderWidth=0,e.brush=W.getTargetBrush(t),e.valueObj=i.stimulsoft().toNumber(),n.items.add(e)}return n}createHalfCircularScale(t,r,e,o,s,i=null){var a=Math.min(e.width,e.height),e=a<150,a=a<75;let n=new N;n.startAngle=180,n.sweepAngle=180,n.startWidth=.05,n.endWidth=.05,n.minimum=0,n.maximum=180,n.radius=.92,n.majorInterval=W.calculateMinorInterval(o,s),n.center=new y(.5,.7),n.radiusMode=C.Auto,n.brush=new M(f.fromArgb(238,238,238));let l=new D;if(l.startWidth=.05,l.endWidth=.05,l.offset=.1,l.valueObj=135,l.placement=I.Overlay,l.brush=new M(f.red),n.items.add(l),W.addRadialRanges(t,o,s,n),t.labels.visible){if(!a){let e=new L;e.offset=.05,e.relativeWidth=.03,e.relativeHeight=.006,e.skin=x.Rectangle,e.brush=W.getTickMarkBrush(t),t.labels.placement==K.Inside?e.placement=I.Inside:e.placement=I.Outside,n.items.add(e)}if(!e){let e=new E;e.allowApplyStyle=!1,e.textBrush=W.getTickLabelBrush(t),e.labelRotationMode=r?h.None:t.labels.rotationMode,e.formatService=t.valueFormat,t.labels.placement==K.Inside?(e.placement=I.Inside,e.offset=.12):(e.placement=I.Outside,e.offset=.1),n.items.add(e)}}if(null!=i){let e=new U;e.placement=I.Overlay,e.relativeWidth=.1,e.relativeHeight=.02,e.borderWidth=0,e.brush=W.getTargetBrush(t),e.valueObj=i.stimulsoft().toNumber(),n.items.add(e)}let u=new v;return u.relativeHeight=.05,u.relativeWidth=.4,u.startWidth=.1,u.endWidth=.2,u.capBrush=new M(f.white),u.capBorderBrush=new M(f.fromArgb(0,150,136)),u.capBorderWidth=2,u.brush=new M(f.fromArgb(0,150,136)),u.borderWidth=0,u.textBrush=new M(f.fromArgb(0,150,136)),u.valueObj=135,n.items.add(u),n}createLinearScale(r,e,t,o,s){var i=J.getGaugeStyle(r);let a=new B;if(a.relativeHeight=o?.9:.92,a.orientation=o?q.System.Drawing.Orientation.Horizontal:q.System.Drawing.Orientation.Vertical,a.startWidth=.1,a.endWidth=.1,a.maximum=100,a.majorInterval=W.calculateMinorInterval(e,t),a.borderBrush=new P,a.brush=i.core.linearScaleBrush,r.labels.visible){let e=new b;e.formatService=r.valueFormat,e.font=new c("Arial",8),e.allowApplyStyle=!1,e.textBrush=W.getTickLabelBrush(r);var i=l.getForeColor(r,r.foreColor);f.transparent.equals(i)||(e.allowApplyStyle=!1,e.textBrush=new M(i));let t=new m;t.relativeHeight=o?.03:.003,t.relativeWidth=o?.003:.03,t.borderBrush=new P,t.borderWidth=0,t.brush=W.getTickMarkBrush(r),r.labels.placement==K.Inside?(t.placement=I.Inside,e.placement=I.Inside):(t.placement=I.Outside,e.placement=I.Outside),e.offset=.04,a.items.add(e),a.items.add(t)}if(W.addLinearRanges(r,e,t,a),null!=s){let e=new G;e.placement=I.Overlay,e.relativeWidth=o?.012:.1,e.relativeHeight=o?.1:.012,e.borderWidth=0,e.brush=W.getTargetBrush(r),e.valueObj=null!=s?s.stimulsoft().toNumber():0,a.items.add(e)}let n=new u;return n.skin=o?H.TriangleBottom:H.TriangleRight,n.relativeWidth=o?.04:.1,n.relativeHeight=o?.1:.04,n.placement=I.Overlay,n.valueObj=60,n.brush=new M(f.fromArgb(205,220,57)),a.items.add(n),a}static addRadialRanges(r,o,s,e){if(0<r.ranges.length&&r.rangeType==t.Color){let t=new p;if(r.rangeMode==A.Percentage)for(var i of r.ranges){var a,n,l=o+(s-o)/100*g.parseNumber(S.parse(i.startExpression,r)),u=o+(s-o)/100*g.parseNumber(S.parse(i.endExpression,r));let e=new d;e.placement=I.Overlay,e.startValue=l,e.endValue=u,e.startWidth=.05,e.endWidth=.05,e.borderBrush=new P,e.brush=new M(i.color),t.ranges.add(e)}else for(var h of r.ranges){var m=g.parseNumber(S.parse(h.startExpression,r)),c=g.parseNumber(S.parse(h.endExpression,r));let e=new d;e.placement=I.Overlay,e.startValue=m,e.endValue=c,e.startWidth=.05,e.endWidth=.05,e.borderBrush=new P,e.brush=new M(h.color),t.ranges.add(e)}return e.items.add(t),0<t.ranges.length}return!1}createBullet(r,e,t,o=null){let s=new B;if(s.orientation=q.System.Drawing.Orientation.Horizontal,s.relativeHeight=.85,s.startWidth=.01,s.endWidth=.01,s.maximum=100,s.majorInterval=W.calculateMinorInterval(e,t),s.borderBrush=new P,s.brush=new P,W.addLinearRanges(r,e,t,s),r.labels.visible){let e=new b;e.formatService=r.valueFormat,e.textBrush=W.getTickLabelBrush(r);let t=new m;t.relativeHeight=.03,t.relativeWidth=.003,t.borderBrush=new P,t.borderWidth=0,t.brush=W.getTickMarkBrush(r),r.labels.placement==K.Inside?(e.placement=I.Inside,e.offset=.2,t.placement=I.Inside):(e.placement=I.Outside,e.offset=.2,t.placement=I.Outside),t.offset=.15,s.items.add(t),s.items.add(e)}if(null!=o){let e=new G;e.placement=I.Overlay,e.relativeWidth=.015,e.relativeHeight=.3,e.borderWidth=0,e.brush=W.getTargetBrush(r),e.valueObj=o.stimulsoft().toNumber(),s.items.add(e)}let i=new X;return i.valueObj=60,i.startWidth=.15,i.endWidth=.15,i.brush=new M(f.fromArgb(205,220,57)),s.items.add(i),s}static addLinearRanges(r,o,s,e,i=!1){if(0<r.ranges.length&&r.rangeType==t.Color){let t=new R;var a=r.type==T.Bullet?.3:.05;if(r.rangeMode==A.Percentage)for(var n of r.ranges){var l,u,h=o+(s-o)/100*g.parseNumber(S.parse(n.startExpression,r)),m=o+(s-o)/100*g.parseNumber(S.parse(n.endExpression,r));let e=new k;e.placement=I.Overlay,e.startValue=h,e.endValue=m,e.startWidth=a,e.endWidth=a,e.borderBrush=new P,e.brush=new M(n.color),i&&(e.borderBrush=new M(f.fromArgb(150,139,138,135))),t.ranges.add(e)}else for(var c of r.ranges){var d=g.parseNumber(S.parse(c.startExpression,r)),p=g.parseNumber(S.parse(c.endExpression,r));let e=new k;e.placement=I.Overlay,e.startValue=d,e.endValue=p,e.startWidth=a,e.endWidth=a,e.borderBrush=new P,e.brush=new M(c.color),i&&(e.borderBrush=new M(f.fromArgb(150,139,138,135))),t.ranges.add(e)}e.items.add(t)}}getMinValue(e,t,r){if(-1==r)return e.minimum;var r=e.calculationMode==O.Auto?t.rows.getArrayItem(r).firstOrDefaultAsNullableNumber():e.minimum;return null!=r?r:e.minimum}getMaxValue(e,t,r){if(-1==r)return e.maximum;var r=e.calculationMode==O.Auto?t.rows.getArrayItem(r).firstOrDefaultAsNullableNumber():e.maximum;return null!=r?r:e.maximum}getValueMeterIndex(e){if(null==e)return-1;var t=e.meters.firstOrDefault(e=>e.is(r));return null!=t?e.meters.indexOf(t):-1}getMinMeterIndex(e){if(null==e)return-1;var t=e.meters.firstOrDefault(e=>e.is(o));return null!=t?e.meters.indexOf(t):-1}getMaxMeterIndex(e){if(null==e)return-1;var t=e.meters.firstOrDefault(e=>e.is(s));return null!=t?e.meters.indexOf(t):-1}getSeriesMeterIndex(e){if(null==e)return-1;var t=e.meters.firstOrDefault(e=>e.is(i));return null!=t?e.meters.indexOf(t):-1}getTargetMeterIndex(e){if(null==e)return-1;var t=e.meters.firstOrDefault(e=>e.is(n));return null!=t?e.meters.indexOf(t):-1}}e.StiGaugeElementBuilder=W}(r=t.Render||(t.Render={}))}(Stimulsoft=Stimulsoft||{}),function(c){var e,t,r,o;t=e=c.Dashboard||(c.Dashboard={}),t=r=t.Components||(t.Components={}),function(e){var r=c.System.Globalization.CultureInfo,t=c.Base.Helpers.StiValueHelper,o=c.Report.Dashboard.ImplementsIStiGaugeRange,s=c.Base.StiJsonReportObjectHelper,i=c.System.Drawing.Color,a=c.Base.StiJson,n=c.Base.StiJsonSaveMode,l=c.Base.JsonReportObject.IStiJsonReportObject,u=c.Report.Dashboard.IStiGaugeRange,h=c.System.ICloneable;class m{constructor(e,t,r){this.color=i.red,this.startExpression="0",this.endExpression="100",null!=e&&(this.color=e),null!=t&&(this.startExpression=t),null!=r&&(this.endExpression=r)}implements(){return m.ImplementsStiGaugeRange||(m.ImplementsStiGaugeRange=[l,u,...o,h]),m.ImplementsStiGaugeRange}clone(){return this.stimulsoft().memberwiseClone()}saveToJsonObject(e){let t=new a;return t.addPropertyStringNullOrEmpty("Color",s.Serialize.jColor(this.color,i.red)),t.addPropertyStringNullOrEmpty("StartExpression",this.startExpression),t.addPropertyStringNullOrEmpty("EndExpression",this.endExpression),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"Color":this.color=s.Deserialize.color(t.value.toString());break;case"Start":this.start=t.value.stimulsoft().toNumber();break;case"End":this.end=t.value.stimulsoft().toNumber();break;case"StartExpression":this.startExpression=t.value.toString();break;case"EndExpression":this.endExpression=t.value.toString();break}}loadFromXml(r,e){for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"Color":this.color=c.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"Start":this.start=e.textContent.stimulsoft().toNumber();break;case"End":this.end=e.textContent.stimulsoft().toNumber();break;case"StartExpression":this.startExpression=e.textContent;break;case"EndExpression":this.endExpression=e.textContent;break}}}shouldSerializeColor(){return!i.red.equals(this.color)}get start(){return t.tryToNumber(this.startExpression)}set start(e){let t=r.currentCulture;try{r.currentCulture=r.cultures["en-US"],this.startExpression=e.toString()}finally{r.currentCulture=t}t.fix()}get end(){return t.tryToNumber(this.endExpression)}set end(e){let t=r.currentCulture;try{r.currentCulture=r.cultures["en-US"],this.endExpression=e.toString()}finally{r.currentCulture=t}t.fix()}static loadFromJson(e){let t=new m;return t.loadFromJsonObject(e),t}static loadFromXml(e){let t=new m;return t.loadFromXml(e,!1),t}saveToString(){return this.saveToJsonObject(n.Report).serialize()}getStringRepresentation(){return`${this.start} - ${this.end}`}}e.StiGaugeRange=m}(o=t.Gauge||(t.Gauge={}))}(Stimulsoft=Stimulsoft||{}),function(i){var e,t,r;t=e=i.Dashboard||(i.Dashboard={}),function(e){var t=i.Report.Dashboard.IStiInteractionLayout,n=i.Report.Dashboard.StiAvailableInteractionOnDataManipulation,l=i.Report.Dashboard.StiAvailableInteractionOnHover,r=i.Report.Dashboard.IStiAllowUserSortingDashboardInteraction,o=i.Base.JsonReportObject.IStiJsonReportObject,u=i.Report.Dashboard.StiInteractionIdent,h=i.Report.Dashboard.StiAvailableInteractionOnClick;class s extends e.StiDashboardInteraction{constructor(e,t,r,o,s,i,a){super(),this.ident=u.Gauge,this.availableOnClick=h.None,this.availableOnHover=l.None,this.availableOnDataManipulation=n.AllowSorting,this.allowUserSorting=!0,this.showFullScreenButton=!0,this.showSaveButton=!0,this.showViewDataButton=!0,this.fileName=null,this.headerText=null,this.footerText=null,null!=e&&(this.fileName=e),null!=t&&(this.headerText=t),null!=r&&(this.footerText=r),null!=o&&(this.showFullScreenButton=o),null!=s&&(this.showSaveButton=s),null!=i&&(this.allowUserSorting=i),null!=a&&(this.showViewDataButton=a)}implements(){return s.ImplementsIStiGaugeDashboardInteraction||(s.ImplementsIStiGaugeDashboardInteraction=super.implements().concat([r,o,t])),s.ImplementsIStiGaugeDashboardInteraction}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyBool("AllowUserSorting",this.allowUserSorting,!0),t.addPropertyBool("ShowFullScreenButton",this.showFullScreenButton,!0),t.addPropertyBool("ShowSaveButton",this.showSaveButton,!0),t.addPropertyBool("ShowViewDataButton",this.showViewDataButton,!0),t.addPropertyStringNullOrEmpty("FileName",this.fileName),t.addPropertyStringNullOrEmpty("HeaderText",this.headerText),t.addPropertyStringNullOrEmpty("FooterText",this.footerText),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"AllowUserSorting":this.allowUserSorting=t.value.stimulsoft().toBoolean();break;case"ShowFullScreenButton":this.showFullScreenButton=t.value.stimulsoft().toBoolean();break;case"ShowSaveButton":this.showSaveButton=t.value.stimulsoft().toBoolean();break;case"ShowViewDataButton":this.showViewDataButton=t.value.stimulsoft().toBoolean();break;case"FileName":this.fileName=t.value.toString();break;case"HeaderText":this.headerText=t.value.toString();break;case"FooterText":this.footerText=t.value.toString();break}}loadFromXml(r,e){super.loadFromXml(r,e);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"AllowUserSorting":this.allowUserSorting=e.textContent.stimulsoft().toBoolean();break;case"ShowFullScreenButton":this.showFullScreenButton=e.textContent.stimulsoft().toBoolean();break;case"ShowSaveButton":this.showSaveButton=e.textContent.stimulsoft().toBoolean();break;case"ShowViewDataButton":this.showViewDataButton=e.textContent.stimulsoft().toBoolean();break;case"FileName":this.fileName=e.textContent;break;case"HeaderText":this.headerText=e.textContent;break;case"FooterText":this.footerText=e.textContent;break}}}get isDefaultLayout(){return this.showFullScreenButton&&this.showSaveButton&&this.showViewDataButton&&null==this.fileName&&null==this.headerText&&null==this.footerText}isDefault(){return this.isDefaultLayout&&this.allowUserSorting}}e.StiGaugeDashboardInteraction=s}(r=t.Interactions||(t.Interactions={}))}(Stimulsoft=Stimulsoft||{}),function(l){var e,t,r,o;t=e=l.Dashboard||(l.Dashboard={}),t=r=t.Components||(t.Components={}),function(e){var o=l.System.Enum,r=l.Base.StiJson,t=l.Base.JsonReportObject.IStiJsonReportObject,s=l.Report.Gauge.StiLabelRotationMode,i=l.Report.Dashboard.StiLabelPlacement,a=l.Report.Dashboard.IStiGaugeLabels;class n{constructor(e,t,r){this.visible=!0,this.placement=i.Inside,this.rotationMode=s.Automatic,null!=e&&(this.visible=e),null!=t&&(this.placement=t),null!=r&&(this.rotationMode=r)}implements(){return n.ImplementsStiGaugeLabels||(n.ImplementsStiGaugeLabels=[a,t]),n.ImplementsStiGaugeLabels}saveToJsonObject(e){let t=new r;return t.addPropertyBool("Visible",this.visible,!0),t.addPropertyEnum("Placement",i,this.placement,i.Inside),t.addPropertyEnum("RotationMode",s,this.rotationMode,s.Automatic),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"Visible":this.visible=t.value.stimulsoft().toBoolean();break;case"Placement":this.placement=o.parse(i,t.value);break;case"RotationMode":this.rotationMode=o.parse(s,t.value);break}}loadFromXml(r){for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"Visible":this.visible=e.textContent.stimulsoft().toBoolean();break;case"Placement":this.placement=o.parse(i,e.textContent);break;case"RotationMode":this.rotationMode=o.parse(s,e.textContent);break}}}clone(){var e;return this.stimulsoft().memberwiseClone()}isDefault(){return this.visible&&this.placement==i.Inside&&this.rotationMode==s.Automatic}}e.StiGaugeLabels=n}(o=t.Gauge||(t.Gauge={}))}(Stimulsoft=Stimulsoft||{}),function($){var e,ee,t,te,r;ee=e=$.Dashboard||($.Dashboard={}),te=t=ee.Components||(ee.Components={}),function(a){var n=$.Dashboard.Interactions.Design.StiDashboardInteractionLoader,i=$.Dashboard.Interactions.StiGaugeDashboardInteraction,e=$.Report.Dashboard.IStiElementInteraction,l=$.Base.Meters.IStiDimensionMeter,u=$.Base.Meters.IStiSeriesMeter,h=$.Base.Meters.IStiMeasureMeter,m=$.Base.Meters.IStiValueMeter,s=$.System.Drawing.Rectangle,c=$.Report.Dashboard.StiElementLayout,t=$.Report.Dashboard.ImplementsIStiElementLayout,r=$.Report.Dashboard.IStiElementLayout,o=$.Base.JsonReportObject.IStiJsonReportObject,d=$.Dashboard.Components.Gauge.StiGaugeRange,p=$.Report.Components.ImplementsIStiForeColor,S=$.Report.Components.ImplementsIStiFont,g=$.Report.Dashboard.ImplementsIStiTitleElement,b=$.Report.Dashboard.ImplementsIStiGaugeElement,f=$.Base.Localization.StiLocalization,C=$.Report.Components.StiComponentToolboxPosition,y=$.Data.Helpers.StiUsedDataHelper,v=$.Base.StiKeyHelper,w=$.Base.Drawing.StiSolidBrush,D=$.Report.Dashboard.StiElementDataCache,x=$.Dashboard.Render.StiGaugeElementBuilder,T=$.Dashboard.Helpers.StiMeterHelper,F=$.System.Enum,M=$.Dashboard.Components.Helpers.StiMeterLoader,I=$.Report.Dashboard.StiElementStyleIdent,k=$.Base.StiJsonReportObjectHelper,R=$.Base.StiJsonSaveMode,A=$.Data.Engine.StiDataSortRule,B=$.Data.Engine.StiDataFilterRule,O=$.Data.Engine.StiDataActionRule,P=$.System.Drawing.Color,E=$.System.Drawing.Font,L=$.System.Drawing.FontStyle,N=$.Data.Helpers.StiExpressionHelper,V=$.System.Collections.List,z=$.Dashboard.Components.StiTitle,J=$.Dashboard.Components.Gauge.StiSeriesGaugeMeter,j=$.Report.StiComponentId,H=$.Report.Components.IStiForeColor,G=$.Report.Components.IStiFont,X=$.Report.Dashboard.IStiTitleElement,U=$.Report.Dashboard.IStiGaugeElement,K=$.Dashboard.Export.StiExportToolAttribute,W=$.Report.IStiGlobalizationProvider,q=$.Report.Components.TextFormats.StiNumberFormatService,Y=$.Report.Components.TextFormats.StiFormatService,Q=$.Base.Meters.IStiTargetMeter,Z=$.Dashboard.Components.Gauge.StiGaugeLabels;K.add("StiGaugeElement","Stimulsoft.Dashboard.Export.Tools.StiGaugeElementExportTool");class _ extends te.StiElement{constructor(e=s.empty){super(e),this.group="",this.title=new z,this.layout=new c,this.crossFiltering=!0,this.font=new E("Arial",13),this.foreColor=P.transparent,this.transformActions=new V,this.transformFilters=new V,this.transformSorts=new V,this.dataTransformation={},this.dataFilters=new V,this.userSorts=new V,this._style=I.Auto,this.customStyleName="",this.helpUrl="user-manual/dashboards_gauge.htm",this.valueFormat=new q(null,null,null,0,null,null,null,null,null,ee.StiTextFormatState.DecimalDigits|ee.StiTextFormatState.Abbreviation),this.shortValue=!0,this.labels=new Z,this.minimum=0,this.maximum=100,this.calculationMode=$.Report["Gauge"].StiGaugeCalculationMode.Auto,this.rangeMode=$.Report["Gauge"].StiGaugeRangeMode.Percentage,this.rangeType=$.Report["Gauge"].StiGaugeRangeType.None,this.type=$.Report["Gauge"].StiGaugeType.FullCircular,this.ranges=new V,this.isSampleForStyles=!1,this.title.text=this.localizedName,this.dashboardInteraction=new i}implements(){return _.ImplementsStiGaugeElement||(_.ImplementsStiGaugeElement=super.implements().concat([U,X,G,H,r,e,W,...b,...g,...S,...p,...t,o])),_.ImplementsStiGaugeElement}clone(e){let t=super.clone(e);return t.value=null!=this.value?this.value.clone():null,t.series=null!=this.series?this.series.clone():null,t.target=null!=this.target?this.target.clone():null,t.valueFormat=null!=this.valueFormat?this.valueFormat.clone():null,t.userSorts=this.userSorts.select(e=>e.clone()).toList(),t.transformActions=this.transformActions.select(e=>e.clone()).toList(),t.transformFilters=this.transformFilters.select(e=>e.clone()).toList(),t.transformSorts=this.transformSorts.select(e=>e.clone()).toList(),t.dataFilters=this.dataFilters.select(e=>e.clone()).toList(),t.title=null!=this.title?this.title.clone():null,t.layout=null!=this.layout?this.layout.clone():null,t.dashboardInteraction=this.dashboardInteraction.clone(),t}saveToJsonObject(e){let t=super.saveToJsonObject(e);t.addPropertyJObject("UserSorts",k.Serialize.objectArray(this.userSorts,e)),t.addPropertyJObject("TransformActions",k.Serialize.objectArray(this.transformActions,e)),t.addPropertyJObject("TransformFilters",k.Serialize.objectArray(this.transformFilters,e)),t.addPropertyJObject("TransformSorts",k.Serialize.objectArray(this.transformSorts,e)),t.addPropertyJObject("DataFilters",k.Serialize.objectArray(this.dataFilters,e)),t.addPropertyJObject("Ranges",k.Serialize.objectArray(this.ranges,e)),t.addPropertyNumber("Minimum",this.minimum,0),t.addPropertyNumber("Maximum",this.maximum,100),t.addPropertyEnum("CalculationMode",$.Report["Gauge"].StiGaugeCalculationMode,this.calculationMode,$.Report["Gauge"].StiGaugeCalculationMode.Auto),t.addPropertyEnum("RangeMode",$.Report["Gauge"].StiGaugeRangeMode,this.rangeMode,$.Report["Gauge"].StiGaugeRangeMode.Percentage),t.addPropertyEnum("Type",$.Report["Gauge"].StiGaugeType,this.type,$.Report["Gauge"].StiGaugeType.FullCircular),t.addPropertyEnum("RangeType",$.Report["Gauge"].StiGaugeRangeType,this.rangeType,$.Report["Gauge"].StiGaugeRangeType.None),t.addPropertyBool("ShortValue",this.shortValue,!0),t.addPropertyBool("CrossFiltering",this.crossFiltering,!0),null!=this.labels&&t.addPropertyJObject("Labels",this.labels.saveToJsonObject(e)),null!=this.value&&t.addPropertyJObject("Value",this.value.saveToJsonObject(e)),null!=this.series&&t.addPropertyJObject("Series",this.series.saveToJsonObject(e)),null!=this.target&&t.addPropertyJObject("Target",this.target.saveToJsonObject(e)),null!=this.title&&t.addPropertyJObject("Title",this.title.saveToJsonObject(e)),null!=this.layout&&t.addPropertyJObject("Layout",this.layout.saveToJsonObject(e)),t.addPropertyStringNullOrEmpty("ForeColor",k.Serialize.jColor(this.foreColor,P.transparent)),t.addPropertyStringNullOrEmpty("Font",k.Serialize.fontArial8(this.font)),t.addPropertyEnum("Style",I,this.style,I.Auto),t.addPropertyStringNullOrEmpty("Group",this.group),t.addPropertyStringNullOrEmpty("CustomStyleName",this.customStyleName),null!=this.valueFormat&&t.addPropertyJObject("ValueFormat",this.valueFormat.saveToJsonObject(e));let r=this.dashboardInteraction.as(i);return null!=r&&t.addPropertyJObject("DashboardInteraction",r.saveToJsonObject(e)),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"Labels":this.labels.loadFromJsonObject(t.value);break;case"TransformActions":this.transformActions.addRange(t.value.properties().select(e=>O.loadFromJson(e.value)));break;case"TransformFilters":this.transformFilters.addRange(t.value.properties().select(e=>B.loadFromJson(e.value)));break;case"TransformSorts":this.transformSorts.addRange(t.value.properties().select(e=>A.loadFromJson(e.value)));break;case"DataFilters":this.dataFilters.addRange(t.value.properties().select(e=>B.loadFromJson(e.value)));break;case"Ranges":this.ranges.addRange(t.value.properties().select(e=>d.loadFromJson(e.value)));break;case"Title":this.title=z.createFromJsonObject(t.value);break;case"Layout":this.layout=c.createFromJsonObject(t.value);break;case"UserSorts":this.userSorts.addRange(t.value.properties().select(e=>A.loadFromJson(e.value)));break;case"Value":var r=M.loadFromJson(t.value).as(a.StiValueGaugeMeter);null!=r&&(this.value=r);break;case"Target":var o=M.loadFromJson(t.value).as(a.StiTargetGaugeMeter);null!=o&&(this.target=o);break;case"Minimum":this.minimum=t.value.stimulsoft().toNumber();break;case"Maximum":this.maximum=t.value.stimulsoft().toNumber();break;case"CalculationMode":this.calculationMode=F.parse($.Report["Gauge"].StiGaugeCalculationMode,t.value);break;case"RangeMode":this.rangeMode=F.parse($.Report["Gauge"].StiGaugeRangeMode,t.value);break;case"Style":this.style=F.parse(I,t.value);break;case"Group":this.group=t.value.toString();break;case"CustomStyleName":this.customStyleName=t.value.toString();break;case"Type":this.type=F.parse($.Report["Gauge"].StiGaugeType,t.value);break;case"Series":var o=M.loadFromJson(t.value).as(J);null!=o&&(this.series=o);break;case"ForeColor":this.foreColor=k.Deserialize.color(t.value.toString());break;case"Font":this.font=k.Deserialize.font(t.value,this.font);break;case"RangeType":this.rangeType=F.parse($.Report["Gauge"].StiGaugeRangeType,t.value);break;case"DashboardInteraction":this.dashboardInteraction=n.loadInteractionFromJsonObject(t.value);break;case"ShortValue":this.shortValue=t.value.stimulsoft().toBoolean();break;case"ValueFormat":this.valueFormat=Y.createFromJsonObject(t.value);break;case"CrossFiltering":this.crossFiltering=t.value.stimulsoft().toBoolean();break}}loadFromXml(r,o){super.loadFromXml(r,o);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"Labels":this.labels.loadFromXml(e);break;case"TransformActions":this.transformActions.addRange(e.childNodes.select(e=>O.loadFromXml(e)));break;case"TransformFilters":this.transformFilters.addRange(e.childNodes.select(e=>B.loadFromXml(e)));break;case"TransformSorts":this.transformSorts.addRange(e.childNodes.select(e=>A.loadFromXml(e)));break;case"DataFilters":this.dataFilters.addRange(e.childNodes.select(e=>B.loadFromXml(e)));break;case"Ranges":this.ranges.addRange(e.childNodes.select(e=>d.loadFromXml(e)));break;case"Title":this.title=z.createFromXml(e);break;case"Layout":this.layout=c.createFromXml(e);break;case"UserSorts":this.userSorts.addRange(e.childNodes.select(e=>A.loadFromXml(e)));break;case"Value":var s=M.loadFromXml(e,o).as(a.StiValueGaugeMeter);null!=s&&(this.value=s);break;case"Target":var i=M.loadFromXml(e,o).as(a.StiTargetGaugeMeter);null!=i&&(this.target=i);break;case"Minimum":this.minimum=e.textContent.stimulsoft().toNumber();break;case"Maximum":this.maximum=e.textContent.stimulsoft().toNumber();break;case"CalculationMode":this.calculationMode=F.parse($.Report["Gauge"].StiGaugeCalculationMode,e.textContent);break;case"RangeMode":this.rangeMode=F.parse($.Report["Gauge"].StiGaugeRangeMode,e.textContent);break;case"Style":this.style=F.parse(I,e.textContent);break;case"Type":this.type=F.parse($.Report["Gauge"].StiGaugeType,e.textContent);break;case"Series":var i=M.loadFromXml(e,o).as(J);null!=i&&(this.series=i);break;case"ForeColor":this.foreColor=$.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"Font":this.font=$.System.Convert.toFont(e.textContent);break;case"Group":this.group=e.textContent;break;case"CustomStyleName":this.customStyleName=e.textContent;break;case"RangeType":this.rangeType=F.parse($.Report["Gauge"].StiGaugeRangeType,e.textContent);break;case"DashboardInteraction":this.dashboardInteraction=n.loadInteractionFromXml(e,o);break;case"ShortValue":this.shortValue=e.textContent.stimulsoft().toBoolean();break;case"ValueFormat":this.valueFormat=Y.loadFormatFromXml(e,this.report);break;case"CrossFiltering":this.crossFiltering=e.textContent.stimulsoft().toBoolean();break}}}get componentId(){return j.StiGaugeElement}addValue2(e){this.value=null!=e?T.Gauge.getValue2(e):null}addValue(e){this.value=T.Gauge.getValue(e.as(te.StiMeter))}removeValue(){this.value=null}getValue(){return this.value}getValue2(e){return null!=e?T.Gauge.getValue(e.as(te.StiMeter)):null}createNewValue(){this.value=new a.StiValueGaugeMeter,this.value.expression="Sum()"}addSeries2(e){this.series=null!=e?T.Gauge.getSeries2(e):null}addSeries(e){this.series=T.Gauge.getSeries(e.as(te.StiMeter))}removeSeries(){this.series=null}getSeries(){return this.series}getSeries2(e){return null!=e?T.Gauge.getSeries(e.as(te.StiMeter)):null}createNewSeries(){this.series=new J}addTarget2(e){this.target=null!=e?T.Gauge.getTarget2(e):null}addTarget(e){this.target=T.Gauge.getTarget(e.as(te.StiMeter))}removeTarget(){this.target=null}getTarget(){return this.target}getTarget2(e){return null!=e?T.Gauge.getTarget(e.as(te.StiMeter)):null}createNewTarget(){this.target=new a.StiTargetGaugeMeter}getRanges(){let e=new V;return e.addRange(this.ranges),e}getPreferedColor(){if(this.ranges.all(e=>!P.green.equals(e.color)))return P.green;if(this.ranges.all(e=>!P.yellow.equals(e.color)))return P.yellow;if(this.ranges.all(e=>!P.red.equals(e.color)))return P.red;return P.orange}addRange(){let e=new d;return e.color=this.getPreferedColor(),this.ranges.add(e),e}removeRange(e){e<this.ranges.length&&this.ranges.removeAt(e)}createdDefaultRanges(){this.ranges.clear(),this.ranges.add(new d(P.red,"0","33")),this.ranges.add(new d(P.yellow,"33","66")),this.ranges.add(new d(P.green,"66","100"))}getGaugeComponent(o=null){return __awaiter(this,void 0,void 0,function*(){var e=yield D.getOrCreate(this);let t=(new x).render2(this,null!=o?o:this.clientRectangle.size,e),r=new $.Report.Components.StiGauge;return 1==t().count2()&&(r=t().firstOrDefault().gauge,r.report=this.report,r.page=this.page,r.name=`${this.name}_Content`,r.clientRectangle=null!=o?new s(0,0,o.width,o.height):this.clientRectangle.clone(),r.brush=new w(this.backColor)),r})}convertFrom(e){let t=e.fetchAllMeters();if(null==t)return;let r=t.firstOrDefault(e=>e.is(m));r=null==r?r=t.firstOrDefault(e=>e.is(h)):r,null!=r&&(this.value=null==this.value?new a.StiValueGaugeMeter:this.value,this.value.loadFromJsonObject(r.saveToJsonObject(R.Report)));let o=t.firstOrDefault(e=>e.is(u));o=null==o?t.firstOrDefault(e=>e.is(l)):o,null!=o&&(this.series=null==this.series?new J:this.series,this.series.loadFromJsonObject(o.saveToJsonObject(R.Report)));let s=t.firstOrDefault(e=>e.is(Q));null!=s&&(this.target=null==this.target?new a.StiTargetGaugeMeter:this.target,this.target.loadFromJsonObject(s.saveToJsonObject(R.Report))),null==this.dashboardInteraction&&(this.dashboardInteraction=new i)}shouldSerializeLayout(){return null==this.layout||!this.layout.isDefault()}fetchAllMeters(){let e=new V;return null!=this.value&&e.add(this.value),null!=this.series&&e.add(this.series),null!=this.target&&e.add(this.target),e}getMeters(){let r=new V;if(null!=this.value&&(this.value.key=v.getOrGeneratedKey(this.value.key),r.add(this.value),this.calculationMode==$.Report["Gauge"].StiGaugeCalculationMode.Auto)){let e=new a.StiMinGaugeMeter;e.key=this.value.key,e.expression=N.replaceFunction(this.value.expression,"Min"),r.add(e);let t=new a.StiMaxGaugeMeter;t.key=this.value.key,t.expression=N.replaceFunction(this.value.expression,"Max"),r.add(t)}return null!=this.series&&r.add(this.series),null!=this.target&&r.add(this.target),r}retrieveUsedDataNames(){return y.getMany(this.value,this.series)}get isDefined(){return null!=this.value||null!=this.series}shouldSerializeFont(){return!(null!=this.font&&"Arial"==this.font.name&&13==this.font.sizeInPoints&&this.font.style==L.Regular)}shouldSerializeForeColor(){return!P.transparent.equals(this.foreColor)}get style(){return this._style}set style(e){(this._style=e)!=I.Custom&&(this.customStyleName="")}setString(e,t){switch(e){case"Title.Text":this.title.text=t;break}}getString(e){switch(e){case"Title.Text":return this.title.text}throw new Error(`Property with name ${e}`)}getAllStrings(){return["Title.Text"]}get toolboxPosition(){return C.GaugeElement}get localizedName(){return f.get("Components","StiGauge")}get shouldSerializeDashboardInteraction(){return null==this.dashboardInteraction||!this.dashboardInteraction.isDefault()}static getValueFormatDefault(){return new q(null,null,null,0,null,null,null,null,null,ee.StiTextFormatState.DecimalDigits|ee.StiTextFormatState.Abbreviation)}shouldSerializeValueFormat(){return this.valueFormat.stimulsoft().equals(_.getValueFormatDefault())}ShouldSerializeLabels(){return null==this.labels||!this.labels.isDefault}createNew(){return new _}}a.StiGaugeElement=_}(r=te.Gauge||(te.Gauge={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o,s;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Components||(e.Components={}),e=o=e.Gauge||(e.Gauge={}),function(e){class t{}e.StiGaugeRangeConverter=t}(s=e.Design||(e.Design={}))}(Stimulsoft=Stimulsoft||{}),function(oe){var e,t,r,se,o;t=e=oe.Dashboard||(oe.Dashboard={}),se=r=t.Components||(t.Components={}),function(e){var t=oe.Dashboard.Components.Table.StiBubbleColumn,r=oe.Dashboard.Components.OnlineMap.StiLocationArgumentMapMeter,o=oe.System.StiNumber,s=oe.System.StiString,i=oe.Dashboard.Components.OnlineMap.StiLocationMapMeter,a=oe.Dashboard.Components.RegionMap.StiGroupMapMeter,n=oe.Dashboard.Components.Chart.StiLowValueChartMeter,l=oe.Dashboard.Components.Chart.StiHighValueChartMeter,u=oe.Dashboard.Components.Chart.StiWeightChartMeter,h=oe.Dashboard.Components.Chart.StiXChartMeter,m=oe.Dashboard.Components.Chart.StiYChartMeter,c=oe.Dashboard.Components.ComboBox.StiKeyComboBoxMeter,d=oe.Dashboard.Components.ComboBox.StiNameComboBoxMeter,p=oe.Dashboard.Components.Gauge.StiMaxGaugeMeter,S=oe.Dashboard.Components.Gauge.StiMinGaugeMeter,g=oe.Dashboard.Components.Gauge.StiSeriesGaugeMeter,b=oe.Dashboard.Components.Gauge.StiValueGaugeMeter,f=oe.Dashboard.Components.Gauge.StiTargetGaugeMeter,C=oe.Dashboard.Components.Indicator.StiSeriesIndicatorMeter,y=oe.Dashboard.Components.Indicator.StiTargetIndicatorMeter,v=oe.Dashboard.Components.Indicator.StiValueIndicatorMeter,w=oe.Dashboard.Components.ListBox.StiKeyListBoxMeter,D=oe.Dashboard.Components.ListBox.StiNameListBoxMeter,x=oe.Dashboard.Components.OnlineMap.StiLatitudeMapMeter,T=oe.Dashboard.Components.OnlineMap.StiLongitudeMapMeter,F=oe.Dashboard.Components.RegionMap.StiKeyMapMeter,M=oe.Dashboard.Components.RegionMap.StiNameMapMeter,I=oe.Dashboard.Components.RegionMap.StiColorMapMeter,k=oe.Dashboard.Components.RegionMap.StiValueMapMeter,R=oe.Dashboard.Components.PivotTable.StiPivotColumn,A=oe.Dashboard.Components.PivotTable.StiPivotRow,B=oe.Dashboard.Components.PivotTable.StiPivotSummary,O=oe.Dashboard.Components.Progress.StiSeriesProgressMeter,P=oe.Dashboard.Components.Progress.StiTargetProgressMeter,E=oe.Dashboard.Components.Progress.StiValueProgressMeter,L=oe.Dashboard.Components.Table.StiColorScaleColumn,N=oe.Dashboard.Components.Table.StiDataBarsColumn,V=oe.Dashboard.Components.Table.StiDimensionColumn,z=oe.Dashboard.Components.Table.StiIndicatorColumn,J=oe.Dashboard.Components.Table.StiMeasureColumn,j=oe.Dashboard.Components.Table.StiSparklinesColumn,H=oe.Dashboard.Components.TreeView.StiKeyTreeViewMeter,G=oe.Dashboard.Components.TreeViewBox.StiKeyTreeViewBoxMeter,X=oe.Dashboard.Components.DatePicker.StiValueDatePickerMeter,U=oe.Data.Exceptions.StiTypeNotRecognizedException,K=oe.Dashboard.Components.Chart.StiCloseValueChartMeter,W=oe.Dashboard.Components.Chart.StiOpenValueChartMeter,q=oe.Dashboard.Components.Chart.StiEndValueChartMeter,Y=oe.Dashboard.Components.Chart.StiValueChartMeter,Q=oe.Dashboard.Components.Chart.StiSeriesChartMeter,Z=oe.Dashboard.Components.Chart.StiArgumentChartMeter,_=oe.Dashboard.Components.OnlineMap.StiLocationColorMapMeter,$=oe.Dashboard.Components.OnlineMap.StiLocationValueMapMeter,ee=oe.Dashboard.Components.Chart.StiStartValueChartMeter,te=oe.System.Enum;class re{static neww(e){if(s.isNullOrEmpty(e))return null;let t;var r=o.tryParse(e);return t=r.successfully?te.parse(se.StiMeterIdent,r.result):te.parse(se.StiMeterIdent,e),null!=t?this.neww2(t):null}static neww2(e){switch(e){case se.StiMeterIdent.ArgumentChartMeter:return new Z;case se.StiMeterIdent.SeriesChartMeter:return new Q;case se.StiMeterIdent.ValueChartMeter:return new Y;case se.StiMeterIdent.StartValueChartMeter:return new ee;case se.StiMeterIdent.EndValueChartMeter:return new q;case se.StiMeterIdent.OpenValueChartMeter:return new W;case se.StiMeterIdent.CloseValueChartMeter:return new K;case se.StiMeterIdent.LowValueChartMeter:return new n;case se.StiMeterIdent.HighValueChartMeter:return new l;case se.StiMeterIdent.WeightChartMeter:return new u;case se.StiMeterIdent.XChartMeter:return new h;case se.StiMeterIdent.YChartMeter:return new m;case se.StiMeterIdent.KeyComboBoxMeter:return new c;case se.StiMeterIdent.NameComboBoxMeter:return new d;case se.StiMeterIdent.MaxGaugeMeter:return new p;case se.StiMeterIdent.MinGaugeMeter:return new S;case se.StiMeterIdent.SeriesGaugeMeter:return new g;case se.StiMeterIdent.ValueGaugeMeter:return new b;case se.StiMeterIdent.TargetGaugeMeter:return new f;case se.StiMeterIdent.SeriesIndicatorMeter:return new C;case se.StiMeterIdent.TargetIndicatorMeter:return new y;case se.StiMeterIdent.ValueIndicatorMeter:return new v;case se.StiMeterIdent.KeyListBoxMeter:return new w;case se.StiMeterIdent.NameListBoxMeter:return new D;case se.StiMeterIdent.LatitudeMapMeter:return new x;case se.StiMeterIdent.LongitudeMapMeter:return new T;case se.StiMeterIdent.LocationMapMeter:return new i;case se.StiMeterIdent.LocationValueMapMeter:return new $;case se.StiMeterIdent.LocationArgumentMapMeter:return new r;case se.StiMeterIdent.LocationColorMapMeter:return new _;case se.StiMeterIdent.KeyMapMeter:return new F;case se.StiMeterIdent.NameMapMeter:return new M;case se.StiMeterIdent.GroupMapMeter:return new a;case se.StiMeterIdent.ColorMapMeter:return new I;case se.StiMeterIdent.ValueMapMeter:return new k;case se.StiMeterIdent.PivotColumn:return new R;case se.StiMeterIdent.PivotRow:return new A;case se.StiMeterIdent.PivotSummary:return new B;case se.StiMeterIdent.SeriesProgressMeter:return new O;case se.StiMeterIdent.TargetProgressMeter:return new P;case se.StiMeterIdent.ValueProgressMeter:return new E;case se.StiMeterIdent.ColorScaleColumn:return new L;case se.StiMeterIdent.DataBarsColumn:return new N;case se.StiMeterIdent.DimensionColumn:return new V;case se.StiMeterIdent.IndicatorColumn:return new z;case se.StiMeterIdent.MeasureColumn:return new J;case se.StiMeterIdent.SparklinesColumn:return new j;case se.StiMeterIdent.BubbleColumn:return new t;case se.StiMeterIdent.KeyTreeViewMeter:return new H;case se.StiMeterIdent.KeyTreeViewBoxMeter:return new G;case se.StiMeterIdent.ValueDatePickerMeter:return new X;default:throw new U(e)}}}e.StiMeterCreator=re}(o=se.Helpers||(se.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Components||(e.Components={}),function(e){class t{}e.StiMeterJsonConverter=t}(o=e.Helpers||(e.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(i){var e,t,r;t=e=i.Dashboard||(i.Dashboard={}),function(e){var t=i.System.StiString,r=i.Report.Dashboard.StiInteractionOnHover,n=i.Report.Dashboard.StiInteractionOnClick,o=i.Report.Dashboard.StiInteractionOpenHyperlinkDestination,l=i.Report.Dashboard.StiInteractionIdent,u=i.Report.Dashboard.StiAvailableInteractionOnClick;class s extends e.StiDashboardInteraction{constructor(e,t,r,o,s,i,a){super(e,t,r,o,s,i,a),this.ident=l.Image,this.availableOnClick=u.OpenHyperlink|u.ShowDashboard,this.onClick=n.OpenHyperlink}isDefault(){return this.onHover==r.ShowToolTip&&this.onClick==n.OpenHyperlink&&this.hyperlinkDestination==o.NewTab&&t.isNullOrEmpty(this.hyperlink)&&t.isNullOrEmpty(this.drillDownPageKey)&&null!=this.drillDownParameters&&0==this.drillDownParameters.length&&t.isNullOrEmpty(this.toolTip)}}e.StiImageDashboardInteraction=s}(r=t.Interactions||(t.Interactions={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiValueMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.ImageMeter}implements(){return o.ImplementsStiImageMeter||(o.ImplementsStiImageMeter=super.implements().concat([t])),o.ImplementsStiImageMeter}get localizedName(){return r.get("PropertyMain","Image")}}e.StiImageMeter=o}(o=i.Text||(i.Text={}))}(Stimulsoft=Stimulsoft||{}),function(N){var e,t,r,V,o;t=e=N.Dashboard||(N.Dashboard={}),V=r=t.Components||(t.Components={}),function(e){var r=N.Report.Dashboard.StiInteractionOnClick,o=N.Dashboard.Components.Text.StiImageMeter,t=N.Data.Helpers.StiUsedDataHelper,s=N.Report.Helpers.StiHyperlinkProcessor,i=N.System.StiString,a=N.System.Collections.List,n=N.Base.StiKeyHelper,l=N.Dashboard.Interactions.Design.StiDashboardInteractionLoader,u=N.Dashboard.Interactions.StiImageDashboardInteraction,h=N.Report.Dashboard.IStiElementInteraction,m=N.Base.Drawing.StiVertAlignment,c=N.System.Drawing.Image,d=N.Report.IStiGlobalizationProvider,p=N.Base.JsonReportObject.IStiJsonReportObject,S=N.Report.Dashboard.ImplementsIStiTitleElement,g=N.Report.Dashboard.ImplementsIStiImageElement,b=N.Report.Components.ImplementsIStiHorAlignment,f=N.Report.Components.ImplementsIStiVertAlignment,C=N.Base.Localization.StiLocalization,y=N.System.Enum,v=N.Base.Drawing.StiImageConverter,w=N.Report.Dashboard.StiPadding,D=N.System.Drawing.Rectangle,x=N.Report.Dashboard.Helpers.StiDashboardImageHyperlinkCache,T=N.Report.Components.StiComponentToolboxPosition,F=N.Base.Drawing.StiHorAlignment,M=N.Report.StiComponentId,I=N.Report.Dashboard.IStiTitleElement,k=N.Report.Dashboard.IStiImageElement,R=N.Report.Components.IStiVertAlignment,A=N.Report.Components.IStiHorAlignment,B=N.Base.StiJsonReportObjectHelper,O=N.Report.Helpers.StiFontIcons,P=N.Report.StiFontIconsHelper,E=N.System.Drawing.Color;class L extends V.StiElement{constructor(e=D.empty){super(e),this.group="",this.title=new V.StiTitle,this._image=null,this.aspectRatio=!0,this.icon=null,this.iconColor=E.fromArgb(68,114,196),this.crossFiltering=!0,this.horAlignment=F.Center,this.vertAlignment=m.Center,this.defaultClientRectangle=new D(0,0,120,120),this.helpUrl="user-manual/dashboards_image.htm",this.title.text=this.localizedName,this.title.visible=!1,this.padding=w.create(0),this.dashboardInteraction=new u}implements(){return L.ImplementsStiImageElement||(L.ImplementsStiImageElement=super.implements().concat([A,R,k,I,d,...b,...f,...g,...S,p,h])),L.ImplementsStiImageElement}clone(e){let t=super.clone(e);return t.title=null!=this.title?this.title.clone():null,t}get componentId(){return M.StiImageElement}saveToJsonObject(e){let t=super.saveToJsonObject(e),r=this.dashboardInteraction.as(u);return null!=r&&t.addPropertyJObject("DashboardInteraction",r.saveToJsonObject(e)),t.addPropertyBool("AspectRatio",this.aspectRatio,!0),t.addPropertyStringNullOrEmpty("ImageHyperlink",this.imageHyperlink),t.addPropertyEnum("HorAlignment",F,this.horAlignment,F.Center),t.addPropertyEnum("VertAlignment",m,this.vertAlignment,m.Center),t.addPropertyStringNullOrEmpty("Group",this.group),t.addPropertyBool("CrossFiltering",this.crossFiltering,!0),null!=this.title&&t.addPropertyJObject("Title",this.title.saveToJsonObject(e)),null!=this.image&&t.addPropertyString("Image",v.imageToString(this.image)),null!=this.icon&&t.addPropertyEnum("Icon",O,this.icon),t.addPropertyStringNullOrEmpty("IconColor",B.Serialize.jColor(this.iconColor,E.fromArgb(68,114,196))),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"DashboardInteraction":var r=l.loadInteractionFromJsonObject(t.value);null!=r&&(this.dashboardInteraction=r);break;case"Title":this.title=V.StiTitle.createFromJsonObject(t);break;case"AspectRatio":this.aspectRatio=t.value.stimulsoft().toBoolean();break;case"ImageHyperlink":this.imageHyperlink=t.value.toString();break;case"Image":this._image=v.stringToImage(t.value.toString());break;case"HorAlignment":this.horAlignment=y.parse(F,t.value.toString());break;case"VertAlignment":this.vertAlignment=y.parse(m,t.value.toString());break;case"Icon":this.icon=y.parse(O,t.value.toString());break;case"IconColor":this.iconColor=B.Deserialize.color(t.value.toString());break;case"Group":this.group=t.value.toString();break;case"CrossFiltering":this.crossFiltering=t.value.stimulsoft().toBoolean();break}}loadFromXml(r,o){super.loadFromXml(r,o);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"DashboardInteraction":var s=l.loadInteractionFromXml(e,o);null!=s&&(this.dashboardInteraction=s);break;case"Title":this.title=V.StiTitle.createFromXml(e);break;case"AspectRatio":this.aspectRatio=e.textContent.stimulsoft().toBoolean();break;case"ImageHyperlink":this.imageHyperlink=e.textContent;break;case"Image":this._image=v.stringToImage(e.textContent);break;case"HorAlignment":this.horAlignment=y.parse(F,e.textContent);break;case"VertAlignment":this.vertAlignment=y.parse(m,e.textContent);break;case"Icon":this.icon=y.parse(O,e.textContent);break;case"IconColor":this.iconColor=B.Deserialize.color(e.textContent);break;case"Group":this.group=e.textContent;break;case"CrossFiltering":this.crossFiltering=e.textContent.stimulsoft().toBoolean();break}}}get isDefined(){return this.isImageDefined||this.isImageHyperlinkDefined||this.isImageIconDefined}get isQuerable(){return this.isImageHyperlinkDataColumnDefined()}fetchAllMeters(){return this.getMeters()}getMeters(){if(!this.isImageHyperlinkDataColumnDefined())return new a;var e=s.getRealDataColumnFromHyperlink(this.report,this.imageHyperlink);let t=new a;return t.add(new o(e,e,e)),t}retrieveUsedDataNames(){return t.getMany2(this.getMeters()).distinct().toList()}get imageToDraw(){if(this.isImageDefined)return new Promise(e=>{e(this._image)});if(this.isImageIconDefined){var e=this.getPaintRectangle(!0,!1);return P.convertFontIconToImageAsync(this.icon,this.iconColor,e.width,e.height)}if(this.isImageHyperlinkDefined)return new Promise(e=>{e(x.get(this.imageHyperlink,this.report))});return new Promise(e=>{e(null)})}get image(){return this._image}set image(e){this._image=e}copyAllImageProperties(e){if(null==e)return;this._image=e.image,this.imageHyperlink=e.imageHyperlink,this.icon=e.icon,this.iconColor=e.iconColor}shouldSerializePadding(){return!this.padding.isEmpty}setString(e,t){switch(e){case"Title.Text":this.title.text=t;break}}get shouldSerializeDashboardInteraction(){return null==this.dashboardInteraction||!this.dashboardInteraction.isDefault()}getString(e){switch(e){case"Title.Text":return this.title.text}throw new Error(`Property with name ${e}`)}getAllStrings(){return["Title.Text"]}get toolboxPosition(){return T.ImageElement}get localizedName(){return C.get("Components","StiImage")}getNestedPages(){if(null==this.dashboardInteraction||this.dashboardInteraction.onClick==r.None)return null;let t=this.dashboardInteraction.drillDownPageKey;if(n.isEmptyKey(t))return null;var e=this.report.pages.toList().firstOrDefault(e=>e.guid==t);if(null==e)return null;return new a([e])}createNew(){return new L}resetAllImageProperties(){this._image=new c,this.imageHyperlink=null,this.icon=null}get isImageDefined(){return null!=this._image&&(null!=this._image.bytes||!i.isNullOrEmpty(this._image.url))}get isImageIconDefined(){return null!=this.icon}get isImageHyperlinkDefined(){return!i.isNullOrWhiteSpace(this.imageHyperlink)}isImageHyperlinkDataColumnDefined(){return!this.isImageDefined&&!this.isImageIconDefined&&this.isImageHyperlinkDefined&&!i.isNullOrWhiteSpace(s.getRealDataColumnFromHyperlink(this.report,this.imageHyperlink))}}e.StiImageElement=L}(o=V.Image||(V.Image={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o,s;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Components||(e.Components={}),e=o=e.Image||(e.Image={}),function(e){class t{}e.StiImageBytesConverter=t}(s=e.Design||(e.Design={}))}(Stimulsoft=Stimulsoft||{}),function(n){var e,t,r;t=e=n.Dashboard||(n.Dashboard={}),function(e){var t=n.Report.Dashboard.IStiInteractionLayout,S=n.Report.Dashboard.StiAvailableInteractionOnDataManipulation,r=n.Report.Dashboard.IStiAllowUserSortingDashboardInteraction,o=n.Base.JsonReportObject.IStiJsonReportObject,g=n.Report.Dashboard.StiInteractionIdent,b=n.Report.Dashboard.StiAvailableInteractionOnClick,s=n.System.StiString,i=n.Report.Dashboard.StiInteractionOpenHyperlinkDestination,f=n.Report.Dashboard.StiInteractionOnClick;class a extends e.StiDashboardInteraction{constructor(e,t,r,o,s,i,a,n,l,u,h,m,c,d,p){super(),this.ident=g.Indicator,this.availableOnClick=b.OpenHyperlink|b.ShowDashboard,this.availableOnDataManipulation=S.AllowDrillDown|S.AllowSorting,this.allowUserDrillDown=!1,this.allowUserSorting=!0,this.onClick=f.None,this.showFullScreenButton=!0,this.showSaveButton=!0,this.showViewDataButton=!0,this.fileName=null,this.headerText=null,this.footerText=null,null!=e&&(this.onHover=e),null!=t&&(this.onClick=t),null!=r&&(this.hyperlinkDestination=r),null!=o&&(this.toolTip=o),null!=s&&(this.hyperlink=s),null!=i&&(this.drillDownPageKey=i),null!=a&&(this.drillDownParameters=a),null!=n&&(this.allowUserDrillDown=n),null!=u&&(this.fileName=u),null!=h&&(this.headerText=h),null!=m&&(this.footerText=m),null!=c&&(this.showFullScreenButton=c),null!=d&&(this.showSaveButton=d),null!=l&&(this.allowUserSorting=l),null!=p&&(this.showViewDataButton=p)}implements(){return a.ImplementsIStiIndicatorDashboardInteraction||(a.ImplementsIStiIndicatorDashboardInteraction=super.implements().concat([r,o,t])),a.ImplementsIStiIndicatorDashboardInteraction}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyBool("AllowUserDrillDown",this.allowUserDrillDown,!1),t.addPropertyBool("AllowUserSorting",this.allowUserSorting,!0),t.addPropertyBool("ShowFullScreenButton",this.showFullScreenButton,!0),t.addPropertyBool("ShowSaveButton",this.showSaveButton,!0),t.addPropertyBool("ShowViewDataButton",this.showViewDataButton,!0),t.addPropertyStringNullOrEmpty("FileName",this.fileName),t.addPropertyStringNullOrEmpty("HeaderText",this.headerText),t.addPropertyStringNullOrEmpty("FooterText",this.footerText),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"AllowUserDrillDown":this.allowUserDrillDown=t.value.stimulsoft().toBoolean();break;case"AllowUserSorting":this.allowUserSorting=t.value.stimulsoft().toBoolean();break;case"ShowFullScreenButton":this.showFullScreenButton=t.value.stimulsoft().toBoolean();break;case"ShowSaveButton":this.showSaveButton=t.value.stimulsoft().toBoolean();break;case"ShowViewDataButton":this.showViewDataButton=t.value.stimulsoft().toBoolean();break;case"FileName":this.fileName=t.value.toString();break;case"HeaderText":this.headerText=t.value.toString();break;case"FooterText":this.footerText=t.value.toString();break}}loadFromXml(r,e){super.loadFromXml(r,e);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"AllowUserDrillDown":this.allowUserDrillDown=e.textContent.stimulsoft().toBoolean();break;case"AllowUserSorting":this.allowUserSorting=e.textContent.stimulsoft().toBoolean();break;case"ShowFullScreenButton":this.showFullScreenButton=e.textContent.stimulsoft().toBoolean();break;case"ShowSaveButton":this.showSaveButton=e.textContent.stimulsoft().toBoolean();break;case"ShowViewDataButton":this.showViewDataButton=e.textContent.stimulsoft().toBoolean();break;case"FileName":this.fileName=e.textContent;break;case"HeaderText":this.headerText=e.textContent;break;case"FooterText":this.footerText=e.textContent;break}}}shouldSerializeOnClick(){return this.onClick!=f.None}get isDefaultLayout(
  ){return this.showFullScreenButton&&this.showSaveButton&&this.showViewDataButton&&null==this.fileName&&null==this.headerText&&!this.allowUserDrillDown&&null==this.footerText}isDefault(){return this.isDefaultLayout&&!this.shouldSerializeOnHover()&&!this.shouldSerializeOnClick()&&this.hyperlinkDestination==i.NewTab&&s.isNullOrEmpty(this.hyperlink)&&s.isNullOrEmpty(this.drillDownPageKey)&&null!=this.drillDownParameters&&0==this.drillDownParameters.length&&s.isNullOrEmpty(this.toolTip)&&!this.allowUserDrillDown&&this.allowUserSorting}}e.StiIndicatorDashboardInteraction=a}(r=t.Interactions||(t.Interactions={}))}(Stimulsoft=Stimulsoft||{}),function(ie){var e,t,r,ae,o;t=e=ie.Dashboard||(ie.Dashboard={}),ae=r=t.Components||(t.Components={}),function(p){var a=ie.Report.Dashboard.StiIndicatorIconRangeMode,n=ie.Report.Dashboard.StiIndicatorIconMode,r=ie.Report.Dashboard.StiInteractionOnClick,e=ie.Data.Engine.IStiAllowSortByVariation,l=ie.Report.Dashboard.StiTargetMode,u=ie.Dashboard.Interactions.Design.StiDashboardInteractionLoader,i=ie.Dashboard.Interactions.StiIndicatorDashboardInteraction,t=ie.Report.Dashboard.IStiElementInteraction,h=ie.Report.Dashboard.StiIconAlignment,m=ie.Base.Meters.IStiDimensionMeter,c=ie.Base.Meters.IStiTargetMeter,d=ie.Base.Meters.IStiSeriesMeter,S=ie.Base.Meters.IStiMeasureMeter,g=ie.Base.Meters.IStiValueMeter,o=ie.System.Drawing.Rectangle,b=ie.Data.Engine.StiDataTopN,s=ie.Report.Dashboard.StiElementLayout,f=ie.Report.Dashboard.ImplementsIStiElementLayout,C=ie.Report.Dashboard.IStiElementLayout,y=ie.Base.JsonReportObject.IStiJsonReportObject,v=ie.Report.Components.ImplementsIStiForeColor,w=ie.Report.Components.ImplementsIStiFont,D=ie.Report.Dashboard.ImplementsIStiTitleElement,x=ie.Report.Dashboard.ImplementsIStiIndicatorElement,T=ie.Report.Components.ImplementsIStiTextFormat,F=ie.Data.Engine.ImplementsIStiAllowSortByVariation,M=ie.Dashboard.Helpers.StiMeterHelper,I=ie.Dashboard.Components.Helpers.StiMeterLoader,k=ie.System.Enum,R=ie.System.Drawing.Font,A=ie.Base.StiJsonReportObjectHelper,B=ie.Base.StiJsonSaveMode,O=ie.Report.Components.TextFormats.StiFormatService,P=ie.Report.Helpers.StiFontIconSet,E=ie.Report.Helpers.StiFontIcons,L=ie.Report.Components.StiComponentToolboxPosition,N=ie.Report.Dashboard.StiElementStyleIdent,V=ie.Data.Engine.StiDataSortRule,z=ie.Data.Engine.StiDataFilterRule,J=ie.Data.Engine.StiDataActionRule,j=ie.Data.Helpers.StiUsedDataHelper,H=ie.System.Collections.List,G=ie.System.Drawing.Color,X=ie.System.Drawing.FontStyle,U=ie.Report.Components.TextFormats.StiGeneralFormatService,K=ie.Dashboard.Components.Indicator.StiValueIndicatorMeter,W=ie.Report.StiComponentId,q=ie.Report.Components.IStiForeColor,Y=ie.Report.Components.IStiFont,Q=ie.Report.Dashboard.IStiTitleElement,Z=ie.Report.Dashboard.IStiIndicatorElement,_=ie.Report.Components.IStiTextFormat,$=ie.Base.Localization.StiLocalization,ee=ie.Report.IStiGlobalizationProvider,te=ie.System.Convert,re=ie.Report.Dashboard.StiFontSizeMode,oe=ie.Base.StiKeyHelper;class se extends ae.StiElement{constructor(e=o.empty){super(e),this.group="",this.textFormat=new U,this.font=new R("Arial",13),this.foreColor=G.transparent,this.title=new ae.StiTitle,this.layout=new s,this.transformActions=new H,this.transformFilters=new H,this.transformSorts=new H,this.topN=new b,this.dataTransformation={},this.dataFilters=new H,this.userSorts=new H,this._style=N.Auto,this.customStyleName="",this.defaultClientRectangle=new o(0,0,160,160),this.helpUrl="user-manual/dashboards_indicator.htm",this.glyphColor=G.transparent,this.icon=E.Rating4,this.iconSet=P.Rating,this.iconAlignment=h.Right,this.targetMode=l.Variation,this.fontSizeMode=re.Auto,this.iconMode=n.Auto,this.iconRangeMode=a.Percentage,this.iconRanges=new H,this.indicatorConditions=new H,this.crossFiltering=!0,this.isSampleForStyles=!1,this.title.text=this.localizedName,this.dashboardInteraction=new i}implements(){return se.ImplementsStiIndicatorElement||(se.ImplementsStiIndicatorElement=super.implements().concat([_,Z,Q,Y,q,C,t,ee,e,...T,...x,...D,...w,...v,...f,...F,y])),se.ImplementsStiIndicatorElement}clone(e){let t=super.clone(e);return t.value=null!=this.value?this.value.clone():null,t.target=null!=this.target?this.target.clone():null,t.series=null!=this.series?this.series.clone():null,t.userSorts=this.userSorts.select(e=>e.clone()).toList(),t.transformActions=this.transformActions.select(e=>e.clone()).toList(),t.transformFilters=this.transformFilters.select(e=>e.clone()).toList(),t.transformSorts=this.transformSorts.select(e=>e.clone()).toList(),t.dataFilters=this.dataFilters.select(e=>e.clone()).toList(),t.topN=this.topN.clone(),t.textFormat=this.textFormat.clone(),t.title=null!=this.title?this.title.clone():null,t.layout=null!=this.layout?this.layout.clone():null,t.indicatorConditions=this.indicatorConditions.select(e=>e.clone()).toList(),t.dashboardInteraction=this.dashboardInteraction.clone(),t}saveToJsonObject(e){let t=super.saveToJsonObject(e);t.addPropertyJObject("UserSorts",A.Serialize.objectArray(this.userSorts,e)),t.addPropertyJObject("TransformActions",A.Serialize.objectArray(this.transformActions,e)),t.addPropertyJObject("TransformFilters",A.Serialize.objectArray(this.transformFilters,e)),t.addPropertyJObject("TransformSorts",A.Serialize.objectArray(this.transformSorts,e)),t.addPropertyJObject("DataFilters",A.Serialize.objectArray(this.dataFilters,e)),t.addPropertyJObject("IconRanges",A.Serialize.objectArray(this.iconRanges,e)),t.addPropertyBool("CrossFiltering",this.crossFiltering,!0),null!=this.topN&&t.addPropertyJObject("TopN",this.topN.saveToJsonObject(e)),this.textFormat.is(U)||null==this.textFormat||t.addPropertyJObject("TextFormat",this.textFormat.saveToJsonObject(e)),null!=this.value&&t.addPropertyJObject("Value",this.value.saveToJsonObject(e)),null!=this.target&&t.addPropertyJObject("Target",this.target.saveToJsonObject(e)),null!=this.series&&t.addPropertyJObject("Series",this.series.saveToJsonObject(e)),null!=this.title&&t.addPropertyJObject("Title",this.title.saveToJsonObject(e)),null!=this.layout&&t.addPropertyJObject("Layout",this.layout.saveToJsonObject(e)),t.addPropertyStringNullOrEmpty("ForeColor",A.Serialize.jColor(this.foreColor,G.transparent)),t.addPropertyStringNullOrEmpty("GlyphColor",A.Serialize.jColor(this.glyphColor,G.transparent)),t.addPropertyStringNullOrEmpty("Font",A.Serialize.fontArial8(this.font)),t.addPropertyEnum("Style",N,this.style,N.Auto),t.addPropertyStringNullOrEmpty("Group",this.group),t.addPropertyStringNullOrEmpty("CustomStyleName",this.customStyleName),t.addPropertyEnum("Icon",E,this.icon,E.Rating4),t.addPropertyEnum("IconSet",P,this.iconSet,P.Rating),t.addPropertyEnum("IconMode",n,this.iconMode,n.Auto),t.addPropertyEnum("IconRangeMode",a,this.iconRangeMode,a.Percentage),null!=this.customIcon&&t.addPropertyString("CustomIcon",te.toBase64String(this.customIcon)),t.addPropertyEnum("IconAlignment",h,this.iconAlignment,h.Right),t.addPropertyEnum("TargetMode",l,this.targetMode,l.Variation),t.addPropertyEnum("FontSizeMode",re,this.fontSizeMode,re.Auto),t.addPropertyJObject("IndicatorConditions",A.Serialize.objectArray(this.indicatorConditions,e));let r=this.dashboardInteraction.as(i);return null!=r&&t.addPropertyJObject("DashboardInteraction",r.saveToJsonObject(e)),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"TopN":this.topN=b.createFromJsonObject(t.value);break;case"TransformActions":this.transformActions.addRange(t.value.properties().select(e=>J.loadFromJson(e.value)));break;case"TransformFilters":this.transformFilters.addRange(t.value.properties().select(e=>z.loadFromJson(e.value)));break;case"TransformSorts":this.transformSorts.addRange(t.value.properties().select(e=>V.loadFromJson(e.value)));break;case"DataFilters":this.dataFilters.addRange(t.value.properties().select(e=>z.loadFromJson(e.value)));break;case"Title":this.title=ae.StiTitle.createFromJsonObject(t.value);break;case"TextFormat":this.textFormat=O.createFromJsonObject(t.value);break;case"Value":var r=I.loadFromJson(t.value).as(K);null!=r&&(this.value=r);break;case"Target":var o=I.loadFromJson(t.value).as(p.StiTargetIndicatorMeter);null!=o&&(this.target=o);break;case"Series":var o=I.loadFromJson(t.value).as(p.StiSeriesIndicatorMeter);null!=o&&(this.series=o);break;case"Style":this.style=k.parse(N,t.value.toString());break;case"Group":this.group=t.value.toString();break;case"CustomStyleName":this.customStyleName=t.value.toString();break;case"Icon":this.icon=k.parse(E,t.value.toString());break;case"IconSet":this.iconSet=k.parse(P,t.value.toString());break;case"IconMode":this.iconMode=k.parse(n,t.value.toString());break;case"IconRangeMode":this.iconRangeMode=k.parse(a,t.value.toString());break;case"CustomIcon":this.customIcon=te.fromBase64String(t.value.toString());break;case"ForeColor":this.foreColor=A.Deserialize.color(t.value.toString());break;case"GlyphColor":this.glyphColor=A.Deserialize.color(t.value.toString());break;case"Font":this.font=A.Deserialize.font(t.value.toString(),this.font);break;case"IconAlignment":this.iconAlignment=k.parse(h,t.value.toString());break;case"TargetMode":this.targetMode=k.parse(l,t.value.toString());break;case"FontSizeMode":this.fontSizeMode=k.parse(re,t.value.toString());break;case"IndicatorConditions":this.indicatorConditions.addRange(t.value.properties().select(e=>p.StiIndicatorElementCondition.createFromJson(e.value)));break;case"DashboardInteraction":this.dashboardInteraction=u.loadInteractionFromJsonObject(t.value);break;case"UserSorts":this.userSorts.addRange(t.value.properties().select(e=>V.loadFromJson(e.value)));break;case"CrossFiltering":this.crossFiltering=t.value.stimulsoft().toBoolean();break;case"IconRanges":this.iconRanges.addRange(t.value.properties().select(e=>p.StiIndicatorIconRange.loadFromJson(e.value)));break}}loadFromXml(r,o){super.loadFromXml(r,o);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"TopN":this.topN=b.createFromXml(e);break;case"TransformActions":this.transformActions.addRange(e.childNodes.select(e=>J.loadFromXml(e)));break;case"TransformFilters":this.transformFilters.addRange(e.childNodes.select(e=>z.loadFromXml(e)));break;case"TransformSorts":this.transformSorts.addRange(e.childNodes.select(e=>V.loadFromXml(e)));break;case"DataFilters":this.dataFilters.addRange(e.childNodes.select(e=>z.loadFromXml(e)));break;case"Title":this.title=this.title=ae.StiTitle.createFromXml(e);break;case"TextFormat":this.textFormat=O.loadFormatFromXml(e,this.report);break;case"Value":var s=I.loadFromXml(e,o).as(K);null!=s&&(this.value=s);break;case"Target":var i=I.loadFromXml(e,o).as(p.StiTargetIndicatorMeter);null!=i&&(this.target=i);break;case"Series":var i=I.loadFromXml(e,o).as(p.StiSeriesIndicatorMeter);null!=i&&(this.series=i);break;case"Style":this.style=k.parse(N,e.textContent);break;case"Group":this.group=e.textContent;break;case"CustomStyleName":this.customStyleName=e.textContent;break;case"Icon":this.icon=k.parse(E,e.textContent);break;case"IconSet":this.iconSet=k.parse(P,e.textContent);break;case"IconMode":this.iconMode=k.parse(n,e.textContent);break;case"IconRangeMode":this.iconRangeMode=k.parse(a,e.textContent);break;case"CustomIcon":this.customIcon=te.fromBase64String(e.textContent);break;case"ForeColor":this.foreColor=ie.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"GlyphColor":this.glyphColor=ie.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"Font":this.font=ie.System.Convert.toFont(e.textContent);break;case"IconAlignment":this.iconAlignment=k.parse(h,e.textContent);break;case"TargetMode":this.targetMode=k.parse(l,e.textContent);break;case"FontSizeMode":this.fontSizeMode=k.parse(re,e.textContent);break;case"IndicatorConditions":this.indicatorConditions.addRange(e.childNodes.select(e=>p.StiIndicatorElementCondition.createFromXml(e)));break;case"DashboardInteraction":this.dashboardInteraction=u.loadInteractionFromXml(e,o);break;case"UserSorts":this.userSorts.addRange(e.childNodes.select(e=>V.loadFromXml(e)));break;case"CrossFiltering":this.crossFiltering=e.textContent.stimulsoft().toBoolean();break;case"IconRanges":this.iconRanges.addRange(e.childNodes.select(e=>p.StiIndicatorIconRange.loadFromXml(e)));break}}}get componentId(){return W.StiIndicatorElement}addValue2(e){this.value=null!=e?M.Indicator.getValue2(e):null}addValue(e){this.value=M.Indicator.getValue(e.as(ae.StiMeter))}removeValue(){this.value=null}getValue(){return this.value}getValue2(e){return null!=e?M.Indicator.getValue(e.as(ae.StiMeter)):null}createNewValue(){this.value=new K,this.value.expression="Sum()"}addTarget2(e){this.target=null!=e?M.Indicator.getTarget2(e):null}addTarget(e){this.target=M.Indicator.getTarget(e.as(ae.StiMeter))}removeTarget(){this.target=null}getTarget(){return this.target}getTarget2(e){return null!=e?M.Indicator.getTarget(e.as(ae.StiMeter)):null}createNewTarget(){this.target=new p.StiTargetIndicatorMeter,this.target.expression="Sum()"}addSeries2(e){this.series=null!=e?M.Indicator.getSeries2(e):null}addSeries(e){this.series=M.Indicator.getSeries(e.as(ae.StiMeter))}removeSeries(){this.series=null}getSeries(){return this.series}getSeries2(e){return null!=e?M.Indicator.getSeries(e.as(ae.StiMeter)):null}createNewSeries(){this.series=new p.StiSeriesIndicatorMeter}getIconRanges(){let e=new H;return e.addRange(this.iconRanges),e}addRange(){var e=new p.StiIndicatorIconRange;return this.iconRanges.add(e),e}removeRange(e){e<this.iconRanges.length&&this.iconRanges.removeAt(e)}createdDefaultRanges(){this.iconRanges.clear(),this.iconRanges.add(new p.StiIndicatorIconRange(E.Rating1,"0","25")),this.iconRanges.add(new p.StiIndicatorIconRange(E.Rating2,"25","50")),this.iconRanges.add(new p.StiIndicatorIconRange(E.Rating3,"50","75")),this.iconRanges.add(new p.StiIndicatorIconRange(E.Rating4,"75","100"))}addIndicatorCondition(e,t,r,o,s,i,a,n,l,u,h,m,c,d){this.indicatorConditions.add(new p.StiIndicatorElementCondition(e,t,r,o,s,i,a,n,l,u,h,m,c,d))}fetchIndicatorConditions(){let e=new H;return null!=this.indicatorConditions&&e.addRange(this.indicatorConditions),e}clearIndicatorConditions(){this.indicatorConditions.clear()}convertFrom(e){let t=e.fetchAllMeters();if(null==t)return;let r=t.firstOrDefault(e=>e.is(g));r=null==r?t.firstOrDefault(e=>e.is(S)):r,null!=r&&(this.value=null==this.value?new K:this.value,this.value.loadFromJsonObject(r.saveToJsonObject(B.Report)));let o=t.firstOrDefault(e=>e.is(c));null!=o&&(this.target=null==this.target?new p.StiTargetIndicatorMeter:this.target,this.target.loadFromJsonObject(o.saveToJsonObject(B.Report)));let s=t.firstOrDefault(e=>e.is(d));s=null==s?t.firstOrDefault(e=>e.is(m)):s,null!=s&&(this.series=null==this.series?new p.StiSeriesIndicatorMeter:this.series,this.series.loadFromJsonObject(s.saveToJsonObject(B.Report))),null==this.dashboardInteraction&&(this.dashboardInteraction=new i)}shouldSerializeTextFormat(){return null==this.textFormat||!this.textFormat.is(U)}shouldSerializeFont(){return!(null!=this.font&&"Arial"==this.font.name&&13==this.font.sizeInPoints&&this.font.style==X.Regular)}shouldSerializeForeColor(){return!G.transparent.equals(this.foreColor)}fetchAllMeters(){let e=new H;return null!=this.value&&e.add(this.value),null!=this.target&&e.add(this.target),null!=this.series&&e.add(this.series),e}getMeters(){let e=new H;return null!=this.value&&e.add(this.value),null!=this.target&&e.add(this.target),null!=this.series&&e.add(this.series),e}retrieveUsedDataNames(){return j.getMany(this.value,this.target,this.series)}get isDefined(){return null!=this.value||null!=this.target||null!=this.series}shouldSerializeLayout(){return null==this.layout||!this.layout.isDefault()}shouldSerializeDataTransformation(){return null==this.transformActions||this.transformActions.any()||null==this.transformFilters||this.transformFilters.any()||null==this.transformSorts||this.transformSorts.any()}isDefaultDataTransformation(){return!this.shouldSerializeDataTransformation()}get style(){return this._style}set style(e){(this._style=e)!=N.Custom&&(this.customStyleName="")}setString(e,t){switch(e){case"Title.Text":this.title.text=t;break}}getString(e){switch(e){case"Title.Text":return this.title.text}throw new Error(`Property with name ${e}`)}getAllStrings(){return["Title.Text"]}get toolboxPosition(){return L.IndicatorElement}get localizedName(){return $.get("Components","StiIndicator")}get shouldSerializeDashboardInteraction(){return null==this.dashboardInteraction||!this.dashboardInteraction.isDefault()}shouldSerializeGlyphColor(){return!G.transparent.equals(this.foreColor)}shouldSerializeConditions(){return null==this.indicatorConditions||0<this.indicatorConditions.length}getNestedPages(){if(null==this.dashboardInteraction||this.dashboardInteraction.onClick==r.None)return null;let t=this.dashboardInteraction.drillDownPageKey;if(oe.isEmptyKey(t))return null;var e=this.report.pages.toList().firstOrDefault(e=>e.guid==t);if(null==e)return null;return new H([e])}createNew(){return new se}}p.StiIndicatorElement=se}(o=ae.Indicator||(ae.Indicator={}))}(Stimulsoft=Stimulsoft||{}),function(u){var e,t,r,o;t=e=u.Dashboard||(u.Dashboard={}),t=r=t.Components||(t.Components={}),function(e){var p=u.System.Drawing.Font,t=u.System.ICloneable,r=u.Base.JsonReportObject.IStiJsonReportObject,o=u.Base.StiJson,s=u.Base.StiJsonReportObjectHelper,i=u.System.Enum,a=u.Report.Dashboard.IStiIndicatorElementCondition,S=u.Report.Components.StiFilterCondition,g=u.System.Drawing.Color,b=u.Report.Dashboard.StiIndicatorFieldCondition,f=u.Report.Dashboard.StiIconAlignment,C=u.Report.Dashboard.StiIndicatorConditionPermissions,n=u.System.Convert,y=u.Report.Helpers.StiFontIcons;class l{constructor(e,t,r,o,s,i,a,n,l,u,h,m,c,d){this.iconColor=g.fromArgb(68,114,196),this.icon=y.Rating4,this.targetIconColor=g.fromArgb(68,114,196),this.targetIcon=y.Rating4,this.condition=S.EqualTo,this.field=b.Value,this.permissions=C.All,this.textColor=g.black,this.backColor=g.transparent,this.font=new p("Arial",8),this.iconAlignment=f.Right,this.targetIconAlignment=f.Right,null!=e&&(this.field=e),null!=t&&(this.condition=t),null!=r&&(this.value=r),null!=i&&(this.targetIcon=i),null!=a&&(this.targetIconColor=a),null!=o&&(this.icon=o),null!=s&&(this.iconColor=s),null!=n&&(this.customIcon=n),null!=l&&(this.iconAlignment=l),null!=u&&(this.targetIconAlignment=u),null!=h&&(this.permissions=h),null!=m&&(this.font=m),null!=c&&(this.textColor=c),null!=d&&(this.backColor=d)}implements(){return l.ImplementsStiIndicatorElementCondition||(l.ImplementsStiIndicatorElementCondition=[t,a,r]),l.ImplementsStiIndicatorElementCondition}saveToJsonObject(e){let t=new o;return t.addPropertyIdent("Ident",this.stimulsoft().getType().stimulsoft().getTypeName()),t.addPropertyEnum("Condition",S,this.condition,S.EqualTo),t.addPropertyEnum("Field",b,this.field,b.Value),t.addPropertyStringNullOrEmpty("Value",this.value),t.addPropertyStringNullOrEmpty("IconColor",s.Serialize.jColor(this.iconColor,g.fromArgb(68,114,196))),t.addPropertyEnum("Icon",y,this.icon,y.Rating4),t.addPropertyStringNullOrEmpty("TargetIconColor",s.Serialize.jColor(this.targetIconColor,g.fromArgb(68,114,196))),t.addPropertyEnum("TargetIcon",y,this.targetIcon,y.Rating4),null!=this.customIcon&&t.addPropertyString("CustomIcon",n.toBase64String(this.customIcon)),t.addPropertyEnum("Permissions",C,this.permissions,C.All),t.addPropertyStringNullOrEmpty("Font",s.Serialize.fontArial8(this.font)),t.addPropertyStringNullOrEmpty("TextColor",s.Serialize.jColor(this.textColor,g.black)),t.addPropertyStringNullOrEmpty("BackColor",s.Serialize.jColor(this.backColor,g.transparent)),t.addPropertyEnum("IconAlignment",f,this.iconAlignment,f.Right),t.addPropertyEnum("TargetIconAlignment",f,this.targetIconAlignment,f.Right),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"Condition":this.condition=i.parse(S,t.value.toString());break;case"Field":this.field=i.parse(b,t.value.toString());break;case"Value":this.value=t.value.toString();break;case"Icon":this.icon=i.parse(y,t.value.toString());break;case"IconColor":this.iconColor=s.Deserialize.color(t.value.toString());break;case"TargetIcon":this.targetIcon=i.parse(y,t.value.toString());break;case"TargetIconColor":this.targetIconColor=s.Deserialize.color(t.value.toString());break;case"CustomIcon":this.customIcon=n.fromBase64String(t.value.toString());break;case"IconAlignment":this.iconAlignment=i.parse(f,t.value.toString());break;case"TargetIconAlignment":this.targetIconAlignment=i.parse(f,t.value.toString());break;case"Permissions":this.permissions=i.parse(C,t.value.toString());break;case"TextColor":this.textColor=s.Deserialize.color(t.value.toString());break;case"BackColor":this.backColor=s.Deserialize.color(t.value.toString());break;case"Font":this.font=s.Deserialize.font(t.value,this.font);break}}loadFromXml(t){for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];switch(r.nodeName){case"Condition":this.condition=i.parse(S,r.textContent);break;case"Field":this.field=i.parse(b,r.textContent);break;case"Value":this.value=r.textContent;break;case"Icon":this.icon=i.parse(y,r.textContent);break;case"IconColor":this.iconColor=u.System.Text.StiReportObjectStringConverter.convertStringToColor(r.textContent);break;case"TargetIcon":this.targetIcon=i.parse(y,r.textContent);break;case"TargetIconColor":this.targetIconColor=u.System.Text.StiReportObjectStringConverter.convertStringToColor(r.textContent);break;case"CustomIcon":this.customIcon=n.fromBase64String(r.textContent);break;case"IconAlignment":this.iconAlignment=i.parse(f,r.textContent);break;case"TargetIconAlignment":this.targetIconAlignment=i.parse(f,r.textContent);break;case"Permissions":this.permissions=i.parse(C,r.textContent);break;case"TextColor":this.textColor=u.System.Text.StiReportObjectStringConverter.convertStringToColor(r.textContent);break;case"BackColor":this.backColor=u.System.Text.StiReportObjectStringConverter.convertStringToColor(r.textContent);break;case"Font":this.font=u.System.Convert.toFont(r.textContent);break}}}clone(){return this.stimulsoft().memberwiseClone()}static createFromJson(e){let t=new l;return t.loadFromJsonObject(e),t}static createFromXml(e){let t=new l;return t.loadFromXml(e),t}}e.StiIndicatorElementCondition=l}(o=t.Indicator||(t.Indicator={}))}(Stimulsoft=Stimulsoft||{}),function(h){var e,t,r,o;t=e=h.Dashboard||(h.Dashboard={}),t=r=t.Components||(t.Components={}),function(e){var r=h.Base.StiJson,t=h.Base.StiJsonSaveMode,o=h.Base.JsonReportObject.IStiJsonReportObject,s=h.System.ICloneable,i=h.Report.Helpers.StiFontIcons,a=h.System.Enum,n=h.Report.Dashboard.ImplementsStiIndicatorIconRange,l=h.Report.Dashboard.IStiIndicatorIconRange;class u{constructor(e,t,r){this.icon=i.Rating4,this.startExpression="0",this.endExpression="100",null!=e&&(this.icon=e),null!=t&&(this.startExpression=t),null!=r&&(this.endExpression=r)}implements(){return u.ImplementsStiIndicatorIconRange||(u.ImplementsStiIndicatorIconRange=[o,l,...n,s]),u.ImplementsStiIndicatorIconRange}clone(){return this.stimulsoft().memberwiseClone()}saveToJsonObject(e){let t=new r;return t.addPropertyStringNullOrEmpty("StartExpression",this.startExpression),t.addPropertyStringNullOrEmpty("EndExpression",this.endExpression),t.addPropertyEnum("Icon",i,this.icon),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"StartExpression":this.startExpression=t.value.toString();break;case"EndExpression":this.endExpression=t.value.toString();break;case"Icon":this.icon=a.parse(i,t.value.toString());break}}loadFromXml(t,e){for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];switch(r.nodeName){case"StartExpression":this.startExpression=r.textContent;break;case"EndExpression":this.endExpression=r.textContent;break;case"Icon":this.icon=a.parse(i,r.textContent);break}}}static loadFromJson(e){let t=new u;return t.loadFromJsonObject(e),t}static loadFromXml(e){let t=new u;return t.loadFromXml(e,!1),t}saveToString(){return this.saveToJsonObject(t.Report).serialize()}getStringRepresentation(){return`${this.startExpression} - ${this.endExpression}`}}e.StiIndicatorIconRange=u}(o=t.Indicator||(t.Indicator={}))}(Stimulsoft=Stimulsoft||{}),function(E){var e,t,r,L,o;t=e=E.Dashboard||(E.Dashboard={}),L=r=t.Components||(t.Components={}),function(s){var i=E.Report.Dashboard.StiItemOrientation,a=E.Base.Meters.IStiMeasureMeter,n=E.Base.Meters.IStiValueMeter,l=E.Base.Meters.IStiDimensionMeter,t=E.System.Drawing.Rectangle,e=E.Base.JsonReportObject.IStiJsonReportObject,r=E.Report.Dashboard.ImplementsIStiTitleElement,o=E.Report.Dashboard.ImplementsIStiListBoxElement,u=E.System.Drawing.FontStyle,h=E.Dashboard.Helpers.StiMeterHelper,m=E.Dashboard.Components.Helpers.StiMeterLoader,c=E.System.Enum,d=E.Report.Dashboard.StiItemSelectionMode,p=E.Base.StiJsonReportObjectHelper,S=E.Report.Components.TextFormats.StiFormatService,g=E.Base.Localization.StiLocalization,b=E.Report.Components.StiComponentToolboxPosition,f=E.Report.Components.TextFormats.StiGeneralFormatService,C=E.System.Drawing.Color,y=E.System.Drawing.Font,v=E.Data.Engine.StiDataActionRule,w=E.Data.Engine.StiDataSortRule,D=E.Data.Engine.StiDataFilterRule,x=E.Dashboard.Components.ListBox.StiNameListBoxMeter,T=E.Data.Helpers.StiUsedDataHelper,F=E.System.Collections.List,M=E.Report.Dashboard.StiElementStyleIdent,I=E.Base.StiJsonSaveMode,k=E.Report.StiComponentId,R=E.Report.Dashboard.IStiTitleElement,A=E.Report.Dashboard.IStiListBoxElement,B=E.Dashboard.Export.StiExportToolAttribute,O=E.Report.IStiGlobalizationProvider;B.add("StiListBoxElement","Stimulsoft.Dashboard.Export.Tools.StiListBoxElementExportTool");class P extends L.StiElement{constructor(e=t.empty){super(e),this.group="",this._style=M.Auto,this.customStyleName="",this.showAllValue=!1,this.showBlanks=!1,this.selectionMode=d.One,this.orientation=i.Vertical,this.title=new L.StiTitle,this.userFilters=new F,this.transformActions=new F,this.transformFilters=new F,this.transformSorts=new F,this.dataTransformation={},this.dataFilters=new F,this.font=new y("Arial",8),this.foreColor=C.transparent,this.textFormat=new f,this.defaultClientRectangle=new t(0,0,200,300),this.helpUrl="user-manual/dashboards_data_filtering_list_box.htm",this.title.text=this.localizedName,this.title.visible=!1}implements(){return P.ImplementsStiListBoxElement||(P.ImplementsStiListBoxElement=super.implements().concat([A,R,O,...o,...r,e])),P.ImplementsStiListBoxElement}clone(e){let t=super.clone(e);return t.keyMeter=null!=this.keyMeter?this.keyMeter.clone():null,t.nameMeter=null!=this.nameMeter?this.nameMeter.clone():null,t.userFilters=this.userFilters.select(e=>e.clone()).toList(),t.transformActions=this.transformActions.select(e=>e.clone()).toList(),t.transformFilters=this.transformFilters.select(e=>e.clone()).toList(),t.transformSorts=this.transformSorts.select(e=>e.clone()).toList(),t.dataFilters=this.dataFilters.select(e=>e.clone()).toList(),t.textFormat=this.textFormat.clone(),t.title=null!=this.title?this.title.clone():null,t}get componentId(){return k.StiListBoxElement}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyStringNullOrEmpty("ParentKey",this.parentKey),t.addPropertyJObject("TransformActions",p.Serialize.objectArray(this.transformActions,e)),t.addPropertyJObject("TransformFilters",p.Serialize.objectArray(this.transformFilters,e)),t.addPropertyJObject("TransformSorts",p.Serialize.objectArray(this.transformSorts,e)),t.addPropertyJObject("DataFilters",p.Serialize.objectArray(this.dataFilters,e)),t.addPropertyStringNullOrEmpty("ForeColor",p.Serialize.jColor(this.foreColor,C.transparent)),t.addPropertyStringNullOrEmpty("Font",p.Serialize.fontArial8(this.font)),t.addPropertyBool("ShowAllValue",this.showAllValue),t.addPropertyBool("ShowBlanks",this.showBlanks),t.addPropertyEnum("SelectionMode",d,this.selectionMode,d.One),t.addPropertyEnum("Orientation",i,this.orientation,i.Vertical),null!=this.nameMeter&&t.addPropertyJObject("NameMeter",this.nameMeter.saveToJsonObject(e)),null!=this.keyMeter&&t.addPropertyJObject("KeyMeter",this.keyMeter.saveToJsonObject(e)),null!=this.title&&t.addPropertyJObject("Title",this.title.saveToJsonObject(e)),this.textFormat.is(f)||null==this.textFormat||t.addPropertyJObject("TextFormat",this.textFormat.saveToJsonObject(e)),t.addPropertyEnum("Style",M,this.style,M.Auto),t.addPropertyStringNullOrEmpty("Group",this.group),t.addPropertyStringNullOrEmpty("CustomStyleName",this.customStyleName),this.textFormat.is(f)||null==this.textFormat||t.addPropertyJObject("TextFormat",this.textFormat.saveToJsonObject(e)),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"ParentKey":this.parentKey=t.value.toString();break;case"TransformActions":this.transformActions.addRange(t.value.properties().select(e=>v.loadFromJson(e.value)));break;case"TransformFilters":this.transformFilters.addRange(t.value.properties().select(e=>D.loadFromJson(e.value)));break;case"TransformSorts":this.transformSorts.addRange(t.value.properties().select(e=>w.loadFromJson(e.value)));break;case"DataFilters":this.dataFilters.addRange(t.value.properties().select(e=>D.loadFromJson(e.value)));break;case"ForeColor":this.foreColor=p.Deserialize.color(t.value.toString());break;case"Font":this.font=p.Deserialize.font(t.value.toString(),this.font);break;case"ShowAllValue":this.showAllValue=t.value.stimulsoft().toBoolean();break;case"ShowBlanks":this.showBlanks=t.value.stimulsoft().toBoolean();break;case"SelectionMode":var r=c.parse(d,t.value.toString());null!=r&&(this.selectionMode=r);break;case"Orientation":this.orientation=c.parse(i,t.value.toString());break;case"Title":this.title=L.StiTitle.createFromJsonObject(t.value);break;case"NameMeter":var o=m.loadFromJson(t.value);null!=o&&(this.nameMeter=o);break;case"KeyMeter":var o=m.loadFromJson(t.value);null!=o&&(this.keyMeter=o);break;case"TextFormat":this.textFormat=S.createFromJsonObject(t.value);break;case"Style":this.style=c.parse(M,t.value.toString());break;case"Group":this.group=t.value.toString();break;case"CustomStyleName":this.customStyleName=t.value.toString();break}}loadFromXml(r,o){super.loadFromXml(r,o);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"ParentKey":this.parentKey=e.textContent;break;case"TransformActions":this.transformActions.addRange(e.childNodes.select(e=>v.loadFromXml(e)));break;case"TransformFilters":this.transformFilters.addRange(e.childNodes.select(e=>D.loadFromXml(e)));break;case"TransformSorts":this.transformSorts.addRange(e.childNodes.select(e=>w.loadFromXml(e)));break;case"DataFilters":this.dataFilters.addRange(e.childNodes.select(e=>D.loadFromXml(e)));break;case"ForeColor":this.foreColor=E.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"Font":this.font=E.System.Convert.toFont(e.textContent);break;case"ShowAllValue":this.showAllValue=e.textContent.stimulsoft().toBoolean();break;case"ShowBlanks":this.showBlanks=e.textContent.stimulsoft().toBoolean();break;case"SelectionMode":this.selectionMode=c.parse(d,e.textContent);break;case"Orientation":this.orientation=c.parse(i,e.textContent);break;case"Title":this.title=L.StiTitle.createFromXml(e);break;case"NameMeter":var s=m.loadFromXml(e,o);null!=s&&(this.nameMeter=s);break;case"KeyMeter":var s=m.loadFromXml(e,o);null!=s&&(this.keyMeter=s);break;case"TextFormat":this.textFormat=S.loadFormatFromXml(e,this.report);break;case"Style":this.style=c.parse(M,e.textContent);break;case"Group":this.group=e.textContent;break;case"CustomStyleName":this.customStyleName=e.textContent;break}}}get style(){return this._style}set style(e){(this._style=e)!=M.Custom&&(this.customStyleName="")}fetchAllMeters(){let e=new F;return null!=this.nameMeter&&e.add(this.nameMeter),null!=this.keyMeter&&e.add(this.keyMeter),e}getMeters(){let e=new F;return null!=this.nameMeter&&e.add(this.nameMeter),null!=this.keyMeter&&e.add(this.keyMeter),e}retrieveUsedDataNames(){return T.getMany(this.nameMeter,this.keyMeter)}get isDefined(){return null!=this.nameMeter||null!=this.keyMeter}getParentKey(){return this.parentKey}setParentKey(e){this.parentKey=e}applyDefaultFilters(){return __awaiter(this,void 0,void 0,function*(){var e=yield s.StiListBoxHelper.fetchDefaultUserFilters(this);null!=e&&(this.userFilters=e)})}addKeyMeter2(e){this.keyMeter=null!=e?h.ListBox.getKey2(e):null}addKeyMeter(e){this.keyMeter=null!=e?h.ListBox.getKey(e.as(L.StiMeter)):null}getKeyMeter(){return this.keyMeter}removeKeyMeter(){this.keyMeter=null}createNewKeyMeter(){this.keyMeter=new s.StiKeyListBoxMeter}addNameMeter2(e){this.nameMeter=null!=e?h.ListBox.getName2(e):null}addNameMeter(e){this.nameMeter=null!=e?h.ListBox.getName(e.as(L.StiMeter)):null}getNameMeter(){return this.nameMeter}removeNameMeter(){this.nameMeter=null}createNewNameMeter(){this.nameMeter=new x}createNextMeter(e){null!=this.keyMeter&&null==this.nameMeter?this.nameMeter=h.ListBox.getName2(e):this.keyMeter=h.ListBox.getKey2(e)}convertFrom(e){let t=e.fetchAllMeters();if(null==t)return;let r=t.firstOrDefault(e=>e.is(n));r=null==r?t.firstOrDefault(e=>e.is(a)):r,null!=r&&(this.keyMeter=null==this.keyMeter?new s.StiKeyListBoxMeter:this.keyMeter,this.keyMeter.loadFromJsonObject(r.saveToJsonObject(I.Report)));let o=t.firstOrDefault(e=>e.is(n));o=null==o?t.firstOrDefault(e=>e.is(l)):o,null!=o&&(this.nameMeter=null==this.nameMeter?new x:this.nameMeter,this.nameMeter.loadFromJsonObject(o.saveToJsonObject(I.Report)))}shouldSerializeFont(){return!(null!=this.font&&"Arial"==this.font.name&&8==this.font.sizeInPoints&&this.font.style==u.Regular)}shouldSerializeForeColor(){return!C.transparent.equals(this.foreColor)}shouldSerializeTextFormat(){return!this.textFormat.is(f)}setString(e,t){switch(e){case"Title.Text":this.title.text=t;break}}getString(e){switch(e){case"Title.Text":return this.title.text}throw new Error(`Property with name ${e}`)}getAllStrings(){return["Title.Text"]}get toolboxPosition(){return b.ListBoxElement}get localizedName(){return g.get("Components","StiListBox")}createNew(){return new P}}s.StiListBoxElement=P}(o=L.ListBox||(L.ListBox={}))}(Stimulsoft=Stimulsoft||{}),function(c){var e,t,r,o;t=e=c.Dashboard||(c.Dashboard={}),t=r=t.Components||(t.Components={}),function(u){var o=c.Data.Functions.StiExtValueConverter,s=c.Report.Dashboard.StiDataFilterCreator,t=c.System.Data.DBNull,i=c.Report.Dashboard.StiItemSelectionMode,a=c.Report.Dashboard.StiElementDataCache,n=c.Report.Components.TextFormats.StiDateFormatService,l=c.System.DateTime,h=c.System.Collections.List,m=c.Data.Engine.StiDataTable,r=c.System.StiString;class e{static fetchItems(e,t,r){if(null==t||t==m.nullTable||0==t.rows.length)return null;let o=this.getNameMeterIndex(t),s=this.getKeyMeterIndex(t);if(-1==o&&1==s)return null;-1==s&&(s=o),-1==o&&(o=s);let i=new h;for(var a of t.rows){var n;if(null==a[s])continue;var l=a[o];!r&&this.isBlank(l)||i.add(new u.StiListBoxItem(this.format(e,a[o]),a[s]))}return i}static isBlank(e){return null==e||e==t.value||"string"==typeof e&&r.isNullOrEmpty(e)}static fetchDefaultUserFilters(o){return __awaiter(this,void 0,void 0,function*(){if(o.showAllValue)return null;if(o.selectionMode==i.Multi)return null;var e=this.getKeyMeterExpression(o);if(null==e)return null;var t=yield a.getOrCreate(o);let r=this.fetchItems(o,t,o.showBlanks);if(null==r)return null;var t=r.stimulsoft().toList().firstOrDefault().value;return s.createEqualBasedOnValue(t,e,o).toList()})}static getNameMeterIndex(e){if(null==e)return-1;var t=e.meters.firstOrDefault(e=>e.is(u.StiNameListBoxMeter));return null!=t?e.meters.indexOf(t):-1}static getKeyMeterIndex(e){if(null==e)return-1;var t=e.meters.firstOrDefault(e=>e.is(u.StiKeyListBoxMeter));return null!=t?e.meters.indexOf(t):-1}static getKeyMeterExpression(e){if(null!=e.keyMeter)return e.keyMeter.expression;if(null!=e.nameMeter)return e.nameMeter.expression;return null}static format(e,t){var r,r;return t instanceof l&&!e.textFormat.is(n)?t.toShortDateString():o.isEligable(t,null===(r=null==e?void 0:e.report)||void 0===r?void 0:r.culture)?o.convert(t,null===(r=null==e?void 0:e.report)||void 0===r?void 0:r.culture):e.textFormat.format(t)}}u.StiListBoxHelper=e}(o=t.ListBox||(t.ListBox={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Components||(e.Components={}),function(e){class t{constructor(e,t=e){this.label=e,this.value=t}toString(){return null!=this.label?this.label:this.value.toString()}}e.StiListBoxItem=t}(o=e.ListBox||(e.ListBox={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r;t=e=s.Dashboard||(s.Dashboard={}),function(e){var t=s.Report.Dashboard.IStiInteractionLayout,a=s.Report.Dashboard.StiAvailableInteractionOnDataManipulation,n=s.Report.Dashboard.StiAvailableInteractionOnHover,r=s.Base.JsonReportObject.IStiJsonReportObject,l=s.Report.Dashboard.StiInteractionIdent,u=s.Report.Dashboard.StiAvailableInteractionOnClick;class o extends e.StiDashboardInteraction{constructor(e,t,r,o,s,i){super(),this.ident=l.OnlineMap,this.availableOnClick=u.None,this.availableOnHover=n.None,this.availableOnDataManipulation=a.None,this.showFullScreenButton=!0,this.showSaveButton=!0,this.showViewDataButton=!0,this.fileName=null,this.headerText=null,this.footerText=null,null!=e&&(this.fileName=e),null!=t&&(this.headerText=t),null!=r&&(this.footerText=r),null!=o&&(this.showFullScreenButton=o),null!=s&&(this.showSaveButton=s),null!=i&&(this.showViewDataButton=i)}implements(){return o.ImplementsIStiOnlineMapDashboardInteraction||(o.ImplementsIStiOnlineMapDashboardInteraction=super.implements().concat([r,t])),o.ImplementsIStiOnlineMapDashboardInteraction}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyBool("ShowFullScreenButton",this.showFullScreenButton,!0),t.addPropertyBool("ShowSaveButton",this.showSaveButton,!0),t.addPropertyBool("ShowViewDataButton",this.showViewDataButton,!0),t.addPropertyStringNullOrEmpty("FileName",this.fileName),t.addPropertyStringNullOrEmpty("HeaderText",this.headerText),t.addPropertyStringNullOrEmpty("FooterText",this.footerText),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"ShowFullScreenButton":this.showFullScreenButton=t.value.stimulsoft().toBoolean();break;case"ShowSaveButton":this.showSaveButton=t.value.stimulsoft().toBoolean();break;case"ShowViewDataButton":this.showViewDataButton=t.value.stimulsoft().toBoolean();break;case"FileName":this.fileName=t.value.toString();break;case"HeaderText":this.headerText=t.value.toString();break;case"FooterText":this.footerText=t.value.toString();break}}loadFromXml(r,e){super.loadFromXml(r,e);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"ShowFullScreenButton":this.showFullScreenButton=e.textContent.stimulsoft().toBoolean();break;case"ShowSaveButton":this.showSaveButton=e.textContent.stimulsoft().toBoolean();break;case"ShowViewDataButton":this.showViewDataButton=e.textContent.stimulsoft().toBoolean();break;case"FileName":this.fileName=e.textContent;break;case"HeaderText":this.headerText=e.textContent;break;case"FooterText":this.footerText=e.textContent;break}}}get isDefaultLayout(){return this.showFullScreenButton&&this.showSaveButton&&this.showViewDataButton&&null==this.fileName&&null==this.headerText&&null==this.footerText}isDefault(){return this.isDefaultLayout}}e.StiOnlineMapDashboardInteraction=o}(r=t.Interactions||(t.Interactions={}))}(Stimulsoft=Stimulsoft||{}),function(P){var e,t,r,E,o;t=e=P.Dashboard||(P.Dashboard={}),E=r=t.Components||(t.Components={}),function(i){var a=P.System.Convert,o=P.Dashboard.Interactions.StiOnlineMapDashboardInteraction,n=P.Dashboard.Interactions.Design.StiDashboardInteractionLoader,e=P.Report.Dashboard.IStiElementInteraction,t=P.System.Drawing.Rectangle,r=P.Report.IStiGlobalizationProvider,l=P.Report.Dashboard.StiElementLayout,s=P.Report.Dashboard.ImplementsIStiElementLayout,u=P.Report.Dashboard.IStiElementLayout,h=P.Base.JsonReportObject.IStiJsonReportObject,m=P.Report.Dashboard.ImplementsIStiTitleElement,c=P.Report.Dashboard.ImplementsIStiOnlineMapElement,d=P.Report.Components.StiComponentToolboxPosition,p=P.Dashboard.Helpers.StiMeterHelper,S=P.Data.Helpers.StiUsedDataHelper,g=P.Dashboard.Components.Helpers.StiMeterLoader,b=P.System.Enum,f=P.Base.StiJsonReportObjectHelper,C=P.Base.Localization.StiLocalization,y=P.Data.Engine.StiDataSortRule,v=P.Data.Engine.StiDataFilterRule,w=P.Data.Engine.StiDataActionRule,D=P.System.Collections.List,x=P.Report.StiComponentId,T=P.Report.Dashboard.IStiTitleElement,F=P.Report.Dashboard.IStiOnlineMapElement,M=P.Report.Dashboard.StiOnlineMapLocationType,I=P.Report.Dashboard.StiOnlineMapCulture,k=P.Report.Dashboard.StiOnlineMapLocationColorType,R=P.Report.Dashboard.StiOnlineMapValueViewMode,A=P.System.Drawing.Color,B=P.Report.Helpers.StiFontIcons;class O extends E.StiElement{constructor(e=t.empty){super(e),this.group="",this.title=new E.StiTitle,this.layout=new l,this.transformActions=new D,this.transformFilters=new D,this.transformSorts=new D,this.dataTransformation={},this.dataFilters=new D,this.helpUrl="user-manual/dashboards_maps_online_map.htm",this.locationType=M.Auto,this.culture=I.en_US,this.locationColorType=k.Single,this.valueViewMode=R.Bubble,this.locationColor=A.limeGreen,this.icon=B.MapMarker,this.iconColor=A.maroon,this.crossFiltering=!0,this.title.text=this.localizedName,this.dashboardInteraction=new o}implements(){return O.ImplementsStiOnlineMapElement||(O.ImplementsStiOnlineMapElement=super.implements().concat([F,T,u,e,r,...c,...m,...s,h])),O.ImplementsStiOnlineMapElement}clone(e){let t=super.clone(e);return t.latitude=null!=this.latitude?this.latitude.clone():null,t.longitude=null!=this.longitude?this.longitude.clone():null,t.location=null!=this.location?this.location.clone():null,t.locationColorMeter=null!=this.locationColorMeter?this.locationColorMeter.clone():null,t.locationValue=null!=this.locationValue?this.locationValue.clone():null,t.locationArgument=null!=this.locationArgument?this.locationArgument.clone():null,t.transformActions=this.transformActions.select(e=>e.clone()).toList(),t.transformFilters=this.transformFilters.select(e=>e.clone()).toList(),t.transformSorts=this.transformSorts.select(e=>e.clone()).toList(),t.dataFilters=this.dataFilters.select(e=>e.clone()).toList(),t.title=null!=this.title?this.title.clone():null,t.layout=null!=this.layout?this.layout.clone():null,t.locationType=this.locationType,t.culture=this.culture,t.locationColorType=this.locationColorType,t.locationColor=this.locationColor,t.iconColor=this.iconColor,t.icon=this.icon,t.customIcon=null!=this.customIcon?a.fromBase64String(a.toBase64String(this.customIcon)):null,t.dashboardInteraction=this.dashboardInteraction.clone(),t}saveToJsonObject(e){let t=super.saveToJsonObject(e);t.addPropertyJObject("TransformActions",f.Serialize.objectArray(this.transformActions,e)),t.addPropertyJObject("TransformFilters",f.Serialize.objectArray(this.transformFilters,e)),t.addPropertyJObject("TransformSorts",f.Serialize.objectArray(this.transformSorts,e)),t.addPropertyJObject("DataFilters",f.Serialize.objectArray(this.dataFilters,e)),null!=this.title&&t.addPropertyJObject("Title",this.title.saveToJsonObject(e)),null!=this.layout&&t.addPropertyJObject("Layout",this.layout.saveToJsonObject(e)),null!=this.latitude&&t.addPropertyJObject("Latitude",this.latitude.saveToJsonObject(e)),null!=this.longitude&&t.addPropertyJObject("Longitude",this.longitude.saveToJsonObject(e)),null!=this.location&&t.addPropertyJObject("Location",this.location.saveToJsonObject(e)),null!=this.locationColorMeter&&t.addPropertyJObject("LocationColorMeter",this.locationColorMeter.saveToJsonObject(e)),null!=this.locationArgument&&t.addPropertyJObject("LocationArgument",this.locationArgument.saveToJsonObject(e)),null!=this.locationValue&&t.addPropertyJObject("LocationValue",this.locationValue.saveToJsonObject(e)),t.addPropertyStringNullOrEmpty("Group",this.group),t.addPropertyEnum("Culture",I,this.culture),t.addPropertyEnum("LocationType",M,this.locationType),t.addPropertyStringNullOrEmpty("LocationColor",f.Serialize.jColor(this.locationColor,A.limeGreen)),t.addPropertyEnum("LocationColorType",k,this.locationColorType),t.addPropertyEnum("ValueViewMode",R,this.valueViewMode),t.addPropertyEnum("Icon",B,this.icon),t.addPropertyStringNullOrEmpty("IconColor",f.Serialize.jColor(this.iconColor,A.limeGreen)),t.addPropertyBool("CrossFiltering",this.crossFiltering,!0),null!=this.customIcon&&t.addPropertyString("CustomIcon",a.toBase64String(this.customIcon));let r=this.dashboardInteraction.as(o);return null!=r&&t.addPropertyJObject("DashboardInteraction",r.saveToJsonObject(e)),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"TransformActions":this.transformActions.addRange(t.value.properties().select(e=>w.loadFromJson(e.value)));break;case"TransformFilters":this.transformFilters.addRange(t.value.properties().select(e=>v.loadFromJson(e.value)));break;case"TransformSorts":this.transformSorts.addRange(t.value.properties().select(e=>y.loadFromJson(e.value)));break;case"DataFilters":this.dataFilters.addRange(t.value.properties().select(e=>v.loadFromJson(e.value)));break;case"Title":this.title=E.StiTitle.createFromJsonObject(t.value);break;case"Layout":this.layout=l.createFromJsonObject(t.value);break;case"Latitude":var r=g.loadFromJson(t.value).as(i.StiLatitudeMapMeter);null!=r&&(this.latitude=r);break;case"Longitude":var r=g.loadFromJson(t.value).as(i.StiLongitudeMapMeter);null!=r&&(this.longitude=r);break;case"Location":this.location=g.loadFromJson(t.value).as(i.StiLocationMapMeter);break;case"LocationColorMeter":this.locationColorMeter=g.loadFromJson(t.value).as(i.StiLocationColorMapMeter);break;case"LocationArgument":this.locationArgument=g.loadFromJson(t.value).as(i.StiLocationArgumentMapMeter);break;case"LocationValue":this.locationValue=g.loadFromJson(t.value).as(i.StiLocationValueMapMeter);break;case"Group":this.group=t.value.toString();break;case"LocationType":this.locationType=b.parse(M,t.value);break;case"Culture":this.culture=b.parse(I,t.value,!1);break;case"LocationColor":this.locationColor=f.Deserialize.color(t.value);break;case"LocationColorType":this.locationColorType=b.parse(k,t.value);break;case"ValueViewMode":this.valueViewMode=b.parse(R,t.value);break;case"IconColor":this.iconColor=f.Deserialize.color(t.value);break;case"Icon":this.icon=b.parse(B,t.value);break;case"CustomIcon":this.customIcon=a.fromBase64String(t.value);break;case"DashboardInteraction":this.dashboardInteraction=n.loadInteractionFromJsonObject(t.value);break;case"CrossFiltering":this.crossFiltering=t.value.stimulsoft().toBoolean();break}}loadFromXml(r,o){super.loadFromXml(r,o);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"TransformActions":this.transformActions.addRange(e.childNodes.select(e=>w.loadFromXml(e)));break;case"TransformFilters":this.transformFilters.addRange(e.childNodes.select(e=>v.loadFromXml(e)));break;case"TransformSorts":this.transformSorts.addRange(e.childNodes.select(e=>y.loadFromXml(e)));break;case"DataFilters":this.dataFilters.addRange(e.childNodes.select(e=>v.loadFromXml(e)));break;case"Title":this.title=E.StiTitle.createFromXml(e);break;case"Layout":this.layout=l.createFromXml(e);break;case"Latitude":var s=g.loadFromXml(e,o).as(i.StiLatitudeMapMeter);null!=s&&(this.latitude=s);break;case"Longitude":var s=g.loadFromXml(e,o).as(i.StiLongitudeMapMeter);null!=s&&(this.longitude=s);break;case"Location":this.location=g.loadFromXml(e,o).as(i.StiLocationMapMeter);break;case"LocationColorMeter":this.locationColorMeter=g.loadFromXml(e,o).as(i.StiLocationColorMapMeter);break;case"LocationValue":this.locationValue=g.loadFromXml(e,o).as(i.StiLocationValueMapMeter);break;case"LocationArgument":this.locationArgument=g.loadFromXml(e,o).as(i.StiLocationArgumentMapMeter);break;case"Group":this.group=e.textContent;break;case"LocationType":this.locationType=b.parse(M,e.textContent);break;case"Culture":this.culture=b.parse(I,e.textContent,!1);break;case"LocationColor":this.locationColor=f.Deserialize.color(e.textContent);break;case"LocationColorType":this.locationColorType=b.parse(k,e.textContent);break;case"ValueViewMode":this.valueViewMode=b.parse(R,e.textContent);break;case"IconColor":this.iconColor=f.Deserialize.color(e.textContent);break;case"Icon":this.icon=b.parse(B,e.textContent);break;case"CustomIcon":this.customIcon=a.fromBase64String(e.textContent);break;case"DashboardInteraction":this.dashboardInteraction=n.loadInteractionFromXml(e,o);break;case"CrossFiltering":this.crossFiltering=e.textContent.stimulsoft().toBoolean();break}}}get componentId(){return x.StiOnlineMapElement}shouldSerializeLayout(){return null==this.layout||!this.layout.isDefault()}fetchAllMeters(){let e=new D;return null!=this.latitude&&e.add(this.latitude),null!=this.longitude&&e.add(this.longitude),null!=this.location&&e.add(this.location),null!=this.locationColorMeter&&e.add(this.locationColorMeter),null!=this.locationValue&&e.add(this.locationValue),null!=this.locationArgument&&e.add(this.locationArgument),e}getMeters(){let e=new D;return this.isDefined&&(null!=this.latitude&&e.add(this.latitude),null!=this.longitude&&e.add(this.longitude),null!=this.location&&e.add(this.location),null!=this.locationColorMeter&&e.add(this.locationColorMeter),null!=this.locationValue&&e.add(this.locationValue),null!=this.locationArgument&&e.add(this.locationArgument)),e}retrieveUsedDataNames(){let e=new D;return e.addRange(S.getMany(this.latitude)),e.addRange(S.getMany(this.longitude)),e.addRange(S.getMany(this.location)),e.addRange(S.getMany(this.locationColorMeter)),e.addRange(S.getMany(this.locationValue)),e.addRange(S.getMany(this.locationArgument)),e.distinct().toList()}get isDefined(){return null!=this.latitude||null!=this.longitude||null!=Location||null!=this.locationValue||null!=this.locationColorMeter||null!=this.locationArgument}createNextMeter(e){this.location=p.OnlineMap.getLocation2(e)}addLatitudeMeter2(e){this.latitude=null!=e?p.OnlineMap.getLatitude2(e):null}addLatitudeMeter(e){this.latitude=null!=e?p.OnlineMap.getLatitude(e.as(E.StiMeter)):null}getLatitudeMeter(){return this.latitude}removeLatitudeMeter(){this.latitude=null}createNewLatitudeMeter(){this.latitude=new i.StiLatitudeMapMeter}addLongitudeMeter2(e){this.longitude=null!=e?p.OnlineMap.getLongitude2(e):null}addLongitudeMeter(e){this.longitude=null!=e?p.OnlineMap.getLongitude(e.as(E.StiMeter)):null}getLongitudeMeter(){return this.longitude}removeLongitudeMeter(){this.longitude=null}createNewLongitudeMeter(){this.longitude=new i.StiLongitudeMapMeter}addLocationMeter2(e){this.location=null!=e?p.OnlineMap.getLocation2(e):null}addLocationMeter(e){this.location=null!=e?p.OnlineMap.getLocation(e):null}getLocationMeter(){return this.location}removeLocationMeter(){this.location=null}createNewLocationMeter(){this.location=new i.StiLocationMapMeter}addLocationColorMeter2(e){this.locationColorMeter=null!=e?p.OnlineMap.getLocationColor2(e):null}addLocationColorMeter(e){this.locationColorMeter=null!=e?p.OnlineMap.getLocationColor(e.as(E.StiMeter)):null}getLocationColorMeter(){return this.locationColorMeter}removeLocationColorMeter(){this.locationColor=null}createNewLocationColorMeter(){this.locationColorMeter=new i.StiLocationColorMapMeter}addLocationValueMeter2(e){this.locationValue=null!=e?p.OnlineMap.getLocationValue2(e):null}addLocationValueMeter(e){this.locationValue=null!=e?p.OnlineMap.getLocationValue(e.as(E.StiMeter)):null}getLocationValueMeter(){return this.locationValue}removeLocationValueMeter(){this.locationValue=null}createNewLocationValueMeter(){this.locationValue=new i.StiLocationValueMapMeter}addLocationArgumentMeter(e){this.locationArgument=null!=e?p.OnlineMap.getLocationArgument2(e):null}addLocationArgumentMeter2(e){this.locationArgument=null!=e?p.OnlineMap.getLocationArgument(e):null}getLocationArgumentMeter(){return this.locationArgument}removeLocationArgumentMeter(){this.locationArgument=null}createNewLocationArgumentMeter(){this.locationArgument=new i.StiLocationArgumentMapMeter}convertFrom(e){let t=e.as(P.Dashboard.Components.RegionMap.StiRegionMapElement);null==t||null==t.keyMeter||t.keyMeter.isDefault()||(this.location=new i.StiLocationMapMeter,this.location.label=t.keyMeter.label,this.location.expression=t.keyMeter.expression),null==this.dashboardInteraction&&(this.dashboardInteraction=new o)}setString(e,t){switch(e){case"Title.Text":this.title.text=t;break}}getString(e){switch(e){case"Title.Text":return this.title.text}throw new Error(`Property with name ${e}`)}getAllStrings(){return["Title.Text"]}get toolboxPosition(){return d.OnlineMapElement}get localizedName(){return C.get("Components","StiOnlineMap")}get shouldSerializeDashboardInteraction(){return null==this.dashboardInteraction||!this.dashboardInteraction.isDefault()}createNew(){return new O}}i.StiOnlineMapElement=O}(o=E.OnlineMap||(E.OnlineMap={}))}(Stimulsoft=Stimulsoft||{}),function(r){var e,t,o;t=e=r.Dashboard||(r.Dashboard={}),function(e){var o=r.System.Collections.Hashtable;class t{static getSelected(e){let t=this.hash.get(e.key);if(null==t)return null;return t.keys.toList()}static getSelectedObjects(e){let t=this.getSelected(e);return null!=t?t.toList():null}static isSelected(e,t){let r=this.hash.get(e.key);return null==r&&(r=new o,this.hash.set(e.key,r)),null!=r.get(t)}static select(e,t){let r=this.hash.get(e.key);null==r&&(r=new o,this.hash.set(e.key,r)),r.set(t,t)}static resetSelection(e){this.hash.containsKey(e.key)&&this.hash.remove(e.key)}}t.hash=new o,e.StiPivotTableElementSelection=t}(o=t.Helpers||(t.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r;t=e=s.Dashboard||(s.Dashboard={}),function(e){var t=s.Report.Dashboard.IStiInteractionLayout,a=s.Report.Dashboard.StiAvailableInteractionOnDataManipulation,n=s.Report.Dashboard.StiAvailableInteractionOnHover,r=s.Base.JsonReportObject.IStiJsonReportObject,l=s.Report.Dashboard.StiInteractionIdent,u=s.Report.Dashboard.StiAvailableInteractionOnClick;class o extends e.StiDashboardInteraction{constructor(e,t,r,o,s,i){super(),this.ident=l.PivotTable,this.availableOnClick=u.None,this.availableOnHover=n.None,this.availableOnDataManipulation=a.None,this.showFullScreenButton=!0,this.showSaveButton=!0,this.showViewDataButton=!0,this.fileName=null,this.headerText=null,this.footerText=null,null!=e&&(this.fileName=e),null!=t&&(this.headerText=t),null!=r&&(this.footerText=r),null!=o&&(this.showFullScreenButton=o),null!=s&&(this.showSaveButton=s),null!=i&&(this.showViewDataButton=i)}implements(){return o.ImplementsIStiPivotTableDashboardInteraction||(o.ImplementsIStiPivotTableDashboardInteraction=super.implements().concat([r,t])),o.ImplementsIStiPivotTableDashboardInteraction}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyBool("ShowFullScreenButton",this.showFullScreenButton,!0),t.addPropertyBool("ShowSaveButton",this.showSaveButton,!0),t.addPropertyBool("ShowViewDataButton",this.showViewDataButton,!0),t.addPropertyStringNullOrEmpty("FileName",this.fileName),t.addPropertyStringNullOrEmpty("HeaderText",this.headerText),t.addPropertyStringNullOrEmpty("FooterText",this.footerText),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"ShowFullScreenButton":this.showFullScreenButton=t.value.stimulsoft().toBoolean();break;case"ShowSaveButton":this.showSaveButton=t.value.stimulsoft().toBoolean();break;case"ShowViewDataButton":this.showViewDataButton=t.value.stimulsoft().toBoolean();break;case"FileName":this.fileName=t.value.toString();break;case"HeaderText":this.headerText=t.value.toString();break;case"FooterText":this.footerText=t.value.toString();break}}loadFromXml(r,e){super.loadFromXml(r,e);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"ShowFullScreenButton":this.showFullScreenButton=e.textContent.stimulsoft().toBoolean();break;case"ShowSaveButton":this.showSaveButton=e.textContent.stimulsoft().toBoolean();break;case"ShowViewDataButton":this.showViewDataButton=e.textContent.stimulsoft().toBoolean();break;case"FileName":this.fileName=e.textContent;break;case"HeaderText":this.headerText=e.textContent;break;case"FooterText":this.footerText=e.textContent;break}}}get isDefaultLayout(){return this.showFullScreenButton&&this.showSaveButton&&this.showViewDataButton&&null==this.fileName&&null==this.headerText&&null==this.footerText}isDefault(){return this.isDefaultLayout}}e.StiPivotTableDashboardInteraction=o}(r=t.Interactions||(t.Interactions={}))}(Stimulsoft=Stimulsoft||{}),function(L){var e,t,r,N,o;t=e=L.Dashboard||(L.Dashboard={}),N=r=t.Components||(t.Components={}),function(c){var o=L.Report.CrossTab.Core.StiSummaryDirection,i=L.Dashboard.Interactions.Design.StiDashboardInteractionLoader,s=L.Dashboard.Interactions.StiPivotTableDashboardInteraction,e=L.Report.Dashboard.IStiElementInteraction,a=L.Base.Meters.IStiDimensionMeter,n=L.Base.Meters.IStiMeasureMeter,t=L.System.Drawing.Rectangle,r=L.Report.IStiGlobalizationProvider,l=L.Report.Dashboard.StiElementLayout,u=L.Report.Dashboard.ImplementsIStiElementLayout,h=L.Report.Dashboard.IStiElementLayout,m=L.Base.JsonReportObject.IStiJsonReportObject,d=L.Report.Dashboard.ImplementsIStiTitleElement,p=L.Report.Dashboard.ImplementsIStiPivotTableElement,S=L.Dashboard.Helpers.StiMeterHelper,g=L.Data.Helpers.StiUsedDataHelper,b=L.Report.StiComponentId,f=L.Dashboard.Components.Helpers.StiMeterLoader,C=L.System.Enum,y=L.Base.StiJsonReportObjectHelper,v=L.Base.StiJsonSaveMode,w=L.Dashboard.Helpers.StiPivotTableElementSelection,D=L.Dashboard.Components.PivotTable.StiPivotSummary,x=L.Dashboard.Components.PivotTable.StiPivotColumn,T=L.Report.Dashboard.StiElementStyleIdent,F=L.Data.Engine.StiDataSortRule,M=L.Data.Engine.StiDataFilterRule,I=L.Data.Engine.StiDataActionRule,k=L.System.Collections.List,R=L.Report.Dashboard.IStiPivotTableElement,A=L.Base.Localization.StiLocalization,B=L.Report.Dashboard.IStiTitleElement,O=L.Report.Components.StiComponentToolboxPosition,P;L.Dashboard.Export.StiExportToolAttribute.add("StiPivotTableElement","Stimulsoft.Dashboard.Export.Tools.StiPivotTableElementExportTool");class E extends N.StiElement{constructor(e=t.empty){super(e),this.maxIconSize=50,this.group="",this.title=new N.StiTitle,this.layout=new l,this.transformActions=new k,this.transformFilters=new k,this.transformSorts=new k,this.dataTransformation={},this.dataFilters=new k,this.crossFiltering=!0,this._style=T.Auto,this.customStyleName="",this.summaryDirection=o.UpToDown,this.helpUrl="user-manual/dashboards_pivot_table.htm",this.columns=new k,this.rows=new k,this.summaries=new k,this.totalLabel="",this.pivotTableConditions=new k,this.title.text=this.localizedName,this.dashboardInteraction=new s}implements(){return E.ImplementsStiPivotTableElement||(E.ImplementsStiPivotTableElement=super.implements().concat([R,B,h,e,r,...p,...d,...u,m])),E.ImplementsStiPivotTableElement}clone(e){let t=super.clone(e);return t.columns=this.columns.select(e=>e.clone()).toList(),t.rows=this.rows.select(e=>e.clone()).toList(),t.summaries=this.summaries.select(e=>e.clone()).toList(),t.transformActions=this.transformActions.select(e=>e.clone()).toList(),t.transformFilters=this.transformFilters.select(e=>e.clone()).toList(),t.transformSorts=this.transformSorts.select(e=>e.clone()).toList(),t.dataFilters=this.dataFilters.select(e=>e.clone()).toList(),t.title=null!=this.title?this.title.clone():null,t.layout=null!=this.layout?this.layout.clone():null,t.dashboardInteraction=this.dashboardInteraction.clone(),t.pivotTableConditions=this.pivotTableConditions.select(e=>e.clone()).toList(),t}saveToJsonObject(e){let t=super.saveToJsonObject(e);t.addPropertyJObject("TransformActions",y.Serialize.objectArray(this.transformActions,e)),t.addPropertyJObject("TransformFilters",y.Serialize.objectArray(this.transformFilters,e)),t.addPropertyJObject("TransformSorts",y.Serialize.objectArray(this.transformSorts,e)),t.addPropertyJObject("DataFilters",y.Serialize.objectArray(this.dataFilters,e)),t.addPropertyJObject("Columns",y.Serialize.objectArray(this.columns,e)),t.addPropertyJObject("Rows",y.Serialize.objectArray(this.rows,e)),t.addPropertyJObject("Summaries",y.Serialize.objectArray(this.summaries,e)),t.addPropertyBool("CrossFiltering",this.crossFiltering,!0),null!=this.title&&t.addPropertyJObject("Title",this.title.saveToJsonObject(e)),null!=this.layout&&t.addPropertyJObject("Layout",this.layout.saveToJsonObject(e)),t.addPropertyEnum("Style",T,this.style,T.Auto),t.addPropertyStringNullOrEmpty("Group",this.group),t.addPropertyStringNullOrEmpty("CustomStyleName",this.customStyleName),t.addPropertyStringNullOrEmpty("TotalLabel",this.totalLabel),t.addPropertyJObject("PivotTableConditions",y.Serialize.objectArray(this.pivotTableConditions,e)),t.addPropertyEnum("SummaryDirection",o,this.summaryDirection,o.UpToDown);let r=this.dashboardInteraction.as(s);return null!=r&&t.addPropertyJObject("DashboardInteraction",r.saveToJsonObject(e)),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"TransformActions":this.transformActions.addRange(t.value.properties().select(e=>I.loadFromJson(e.value)));break;case"TransformFilters":this.transformFilters.addRange(t.value.properties().select(e=>M.loadFromJson(e.value)));break;case"TransformSorts":this.transformSorts.addRange(t.value.properties().select(e=>F.loadFromJson(e.value)));break;case"DataFilters":this.dataFilters.addRange(t.value.properties().select(e=>M.loadFromJson(e.value)));break;case"Title":this.title=N.StiTitle.createFromJsonObject(t.value);break;case"Layout":this.layout=l.createFromJsonObject(t.value);break;case"Columns":this.columns.addRange(t.value.properties().select(e=>f.loadFromJson(e.value).as(x)).where(e=>null!=e));break;case"Rows":this.rows.addRange(t.value.properties().select(e=>f.loadFromJson(e.value).as(c.StiPivotRow)).where(e=>null!=e));break;case"Summaries":this.summaries.addRange(t.value.properties().select(e=>f.loadFromJson(e.value).as(D)).where(e=>null!=e));break;case"Style":this.style=C.parse(T,t.value.toString());break;case"SummaryDirection":this.summaryDirection=C.parse(o,t.value.toString());break;case"Group":this.group=t.value.toString();break;case"CustomStyleName":this.customStyleName=t.value.toString();break;case"TotalLabel":this.totalLabel=t.value.toString();break;case"DashboardInteraction":this.dashboardInteraction=i.loadInteractionFromJsonObject(t.value);break;case"PivotTableConditions":this.pivotTableConditions.addRange(t.value.properties().select(e=>c.StiPivotTableElementCondition.loadFromJson(e.value).as(c.StiPivotTableElementCondition)).where(e=>null!=e));break;case"CrossFiltering":this.crossFiltering=t.value.stimulsoft().toBoolean();break}}loadFromXml(r,o){super.loadFromXml(r,o);let s=this.report;for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"TransformActions":this.transformActions.addRange(e.childNodes.select(e=>I.loadFromXml(e)));break;case"TransformFilters":this.transformFilters.addRange(e.childNodes.select(e=>M.loadFromXml(e)));break;case"TransformSorts":this.transformSorts.addRange(e.childNodes.select(e=>F.loadFromXml(e)));break;case"DataFilters":this.dataFilters.addRange(e.childNodes.select(e=>M.loadFromXml(e)));break;case"Title":this.title=N.StiTitle.createFromXml(e);break;case"Layout":this.layout=l.createFromXml(e);break;case"Columns":this.columns.addRange(e.childNodes.select(e=>f.loadFromXml(e,o,s)));break;case"Rows":this.rows.addRange(e.childNodes.select(e=>f.loadFromXml(e,o,s)));break;case"Summaries":this.summaries.addRange(e.childNodes.select(e=>f.loadFromXml(e,o,s)));break;case"Style":this.style=C.parse(T,e.textContent);break;case"Group":this.group=e.textContent;break;case"CustomStyleName":this.customStyleName=e.textContent;break;case"TotalLabel":this.totalLabel=e.textContent;break;case"DashboardInteraction":this.dashboardInteraction=i.loadInteractionFromXml(e,o);break;case"PivotTableConditions":this.pivotTableConditions.addRange(e.childNodes.select(e=>c.StiPivotTableElementCondition.loadFromXml(e)));break;case"CrossFiltering":this.crossFiltering=e.textContent.stimulsoft().toBoolean();break}}}get componentId(){return b.StiPivotTableElement}retrieveUsedDataNames(){let e=g.getMany2(this.columns);return e.addRange(g.getMany2(this.rows)),e.addRange(g.getMany2(this.summaries)),e}fetchAllMeters(){let e=this.columns.cast();return e.addRange(this.rows.cast()),e.addRange(this.summaries.cast()),e}getMeters(){let e=this.columns.cast();return e.addRange(this.rows.cast()),e.addRange(this.summaries.cast()),e}get isDefined(){return null!=this.columns&&0<this.columns.length||null!=this.rows&&0<this.rows.length||null!=this.summaries&&0<this.summaries.length}shouldSerializeLayout(){return null==this.layout||!this.layout.isDefault()}get style(){return this._style}set style(e){(this._style=e)!=T.Custom&&(this.customStyleName="")}createNextMeter(e){0==this.columns.length?this.columns.add(S.Pivot.getColumn2(e)):0==this.rows.length?this.rows.add(S.Pivot.getRow2(e)):0==this.summaries.length?this.summaries.add(S.Pivot.getSummary2(e)):this.columns.add(S.Pivot.getColumn2(e))}createNewColumn(){this.columns.add(new x)}getColumn2(e){return null!=e?S.Pivot.getColumn2(e):null}getColumn(e){return null!=e?S.Pivot.getColumn(e.as(N.StiMeter)):null}getColumnByIndex(e){return e<this.columns.length?this.columns[e]:null}insertColumn(e,t){var t=t.as(x);null!=t&&(0<=e&&e<this.columns.length?this.columns.insert(e,t):this.columns.add(t))}removeColumn(e){e<this.columns.length&&this.columns.removeAt(e)}removeAllColumns(){this.columns.clear()}createNewRow(){this.rows.add(new c.StiPivotRow)}getRow2(e){return null!=e?S.Pivot.getRow2(e):null}getRow(e){return null!=e?S.Pivot.getRow(e.as(N.StiMeter)):null}getRowByIndex(e){return e<this.rows.length?this.rows[e]:null}insertRow(e,t){var t=t.as(c.StiPivotRow);null!=t&&(0<=e&&e<this.rows.length?this.rows.insert(e,t):this.rows.add(t))}removeRow(e){e<this.rows.length&&this.rows.removeAt(e)}removeAllRows(){this.rows.clear()}createNewSummary(){let e=new D;e.expression="Sum()",this.summaries.add(e)}getSummary2(e){return null!=e?S.Pivot.getSummary2(e):null}getSummary(e){return null!=e?S.Pivot.getSummary(e.as(N.StiMeter)):null}getSummaryByIndex(e){return e<this.summaries.length?this.summaries[e]:null}insertSummary(e,t){var t=t.as(D);null!=t&&(0<=e&&e<this.summaries.length?this.summaries.insert(e,t):this.summaries.add(t))}removeSummary(e){e<this.summaries.length&&this.summaries.removeAt(e)}removeAllSummaries(){this.summaries.clear()}addPivotTableCondition(e,t,r,o,s,i,a,n,l,u,h,m){this.pivotTableConditions.add(new c.StiPivotTableElementCondition(e,t,r,o,s,i,a,n,l,u,h,m))}getAllMeters(){let e=new k;return e.addRange(this.columns),e.addRange(this.rows),e.addRange(this.summaries),e}fetchPivotTableConditions(){let e=new k;return null!=this.pivotTableConditions&&e.addRange(this.pivotTableConditions),e}clearPivotTableConditions(){this.pivotTableConditions.clear()}convertFrom(e){let t=e.fetchAllMeters();if(this.columns.clear(),this.rows.clear(),this.summaries.clear(),null==t)return;let r=0;t.cast().forEach(t=>{if(t.is2(a))if(0==(1&r)){let e=new x;e.loadFromJsonObject(t.saveToJsonObject(v.Report)),this.columns.add(e)}else{let e=new c.StiPivotRow;e.loadFromJsonObject(t.saveToJsonObject(v.Report)),this.rows.add(e)}else if(t.is2(n)){let e=new D;e.loadFromJsonObject(t.saveToJsonObject(v.Report)),this.summaries.add(e)}},this),null==this.dashboardInteraction&&(this.dashboardInteraction=new s)}setString(e,t){switch(e){case"Title.Text":this.title.text=t;break;case"TotalLabel":this.totalLabel=t;break}let r=0;for(var o of this.columns){var s;e==`Column${r++}.Label`&&(o.label=t)}r=0;for(var i of this.rows){var a;e==`Row${r++}.Label`&&(i.label=t)}}getString(e){switch(e){case"Title.Text":return this.title.text;case"TotalLabel":return this.totalLabel}let t=0;for(var r of this.columns){var o;if(e==`Column${t++}.Label`)return r.label}t=0;for(var s of this.rows){var i;if(e==`Row${t++}.Label`)return s.label}throw new Error(`Property with name ${e}`)}getAllStrings(){let t=["Title.Text","TotalLabel"],r=0;return this.columns.forEach(e=>t.push(`Column${r++}.Label`)),r=0,this.rows.forEach(e=>t.push(`Row${r++}.Label`)),t}get toolboxPosition(){return O.PivotTableElement}get localizedName(){return A.get("Components","StiPivotTable")}get shouldSerializeDashboardInteraction(){return null==this.dashboardInteraction||!this.dashboardInteraction.isDefault()}shouldSerializeColumns(){return null==this.columns||0<this.columns.length}shouldSerializeRows(){return null==this.rows||0<this.rows.length}shouldSerializeSummaries(){return null==this.summaries||0<this.summaries.length}shouldSerializeConditions(){return null==this.pivotTableConditions||0<this.pivotTableConditions.length}createNew(){return new E}getFormatObjects(){return w.getSelectedObjects(this)}}c.StiPivotTableElement=E}(o=N.PivotTable||(N.PivotTable={}))}(Stimulsoft=Stimulsoft||{}),function(C){var e,t,r,o;t=e=C.Dashboard||(C.Dashboard={}),t=r=t.Components||(t.Components={}),function(e){var t=C.Report.StiFontIconsHelper,o=C.System.Convert,c=C.Report.Helpers.StiFontIcons,d=C.Dashboard.StiFilterDataType,p=C.Dashboard.StiFilterCondition,S=C.System.Drawing.Color,g=C.System.Drawing.Font,r=C.System.Drawing.Size,b=C.Report.Dashboard.StiIconAlignment,f=C.Report.Components.StiConditionPermissions,s=C.Base.StiScale,i=C.Report.Dashboard.IStiPivotTableElementCondition,a=C.Base.JsonReportObject.IStiJsonReportObject,n=C.System.Enum,l=C.Base.StiJsonReportObjectHelper,u=C.Base.StiJson,h=C.System.Drawing.Image;class m{constructor(e,t,r,o,s,i,a,n,l,u,h,m){this.textColor=S.black,this.backColor=S.transparent,this.font=new g("Arial",8),this.permissions=f.All,this.icon=c.Adjust,this.iconAlignment=b.None,this.condition=p.EqualTo,this.dataType=d.Numeric,this.iconColor=S.maroon,null!=e&&(this.keyValueMeter=e),null!=t&&(this.dataType=t),null!=r&&(this.condition=r),null!=o&&(this.value=o),null!=s&&(this.font=s),null!=i&&(this.textColor=i),null!=a&&(this.backColor=a),null!=n&&(this.permissions=n),null!=l&&(this.icon=l),null!=u&&(this.iconAlignment=u),null!=h&&(this.customIcon=h),null!=m&&(this.iconColor=m)}implements(){return m.ImplementsStiPivotTableElementCondition||(m.ImplementsStiPivotTableElementCondition=[i,a]),m.ImplementsStiPivotTableElementCondition}is(e){if(e instanceof C.System.Interface)return-1!=this.implements().indexOf(e);if("function"==typeof e)return this instanceof e;if(null==e)throw new Error("Type for comparison is 'undefined'");return!1}is2(e){return this.is(e)}as(e){if(this.is(e))return this;return null}clone(){var e=this.saveToJsonObject(null);let t=new m;return t.loadFromJsonObject(e),t}saveToJsonObject(e){let t=new u;return t.addPropertyIdent("Ident","StiPivotTableElementCondition"),t.addPropertyStringNullOrEmpty("KeyValueMeter",this.keyValueMeter),t.addPropertyEnum("Condition",p,this.condition),t.addPropertyEnum("DataType",d,this.dataType),t.addPropertyStringNullOrEmpty("Value",this.value),t.addPropertyStringNullOrEmpty("TextColor",l.Serialize.jColor(this.textColor,S.black)),t.addPropertyStringNullOrEmpty("BackColor",l.Serialize.jColor(this.backColor,S.transparent)),t.addPropertyStringNullOrEmpty("Font",l.Serialize.font(this.font)),t.addPropertyEnum("Permissions",f,this.permissions),t.addPropertyEnum("IconAlignment",b,this.iconAlignment),t.addPropertyStringNullOrEmpty("IconColor",l.Serialize.jColor(this.iconColor,S.maroon)),t.addPropertyEnum("Icon",c,this.icon),null!=this.customIcon&&t.addPropertyString("CustomIcon",o.toBase64String(this.customIcon)),t}static loadFromJson(e){let t=new m;return t.loadFromJsonObject(e),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"Condition":this.condition=n.parse(p,t.value);break;case"DataType":this.dataType=n.parse(d,t.value);break;case"KeyValueMeter":this.keyValueMeter=t.value;break;case"Value":this.value=t.value;break;case"TextColor":this.textColor=l.Deserialize.color(t.value);break;case"BackColor":this.backColor=l.Deserialize.color(t.value);break;case"Font":this.font=l.Deserialize.font(t.value,new g("Arial",8));break;case"Permissions":this.permissions=n.parse(f,t.value);break;case"IconAlignment":this.iconAlignment=n.parse(b,t.value);break;case"Icon":this.icon=n.parse(c,t.value);break;case"CustomIcon":this.customIcon=o.fromBase64String(t.value);break;case"IconColor":this.iconColor=l.Deserialize.color(t.value);break}}static loadFromXml(e){let t=new m;return t.loadFromXml(e,!1),t}loadFromXml(t,e){for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];switch(r.nodeName){case"Condition":this.condition=n.parse(p,r.textContent);break;case"DataType":this.dataType=n.parse(d,r.textContent);break;case"KeyValueMeter":this.keyValueMeter=r.textContent;break;case"Value":this.value=r.textContent;break;case"TextColor":this.textColor=l.Deserialize.color(r.textContent);break;case"BackColor":this.backColor=l.Deserialize.color(r.textContent);break;case"Font":this.font=C.System.Convert.toFont(r.textContent);break;case"Permissions":this.permissions=n.parse(f,r.textContent);break;case"IconAlignment":this.iconAlignment=n.parse(b,r.textContent);break;case"Icon":this.icon=n.parse(c,r.textContent);break;case"CustomIcon":this.customIcon=o.fromBase64String(r.textContent);break;case"IconColor":this.iconColor=l.Deserialize.color(r.textContent);break}}}get iconFontSize(){return 18*s.factor}get customIcon(){return this._customIcon}set customIcon(e){this._customIcon=e,this._iconSize=null}isDefault(){return this.textColor.equals(S.black)&&this.condition==C.Report.Components.StiFilterCondition.EqualTo&&this.dataType==C.Report.Components.StiFilterDataType.Numeric&&""==this.value&&""==this.keyValueMeter}get iconSize(){try{if(null==this._iconSize&&null!=this.customIcon){let e=new h;e.bytes=this.customIcon,this._iconSize=new r(e.width,e.height)}else null==this._iconSize&&(this._iconSize=new r(this.iconFontSize,this.iconFontSize))}catch(e){}return this._iconSize}getIcon(){return __awaiter(this,void 0,void 0,function*(){if(null!=this.customIcon)return this.customIcon;var e;return(yield t.convertFontIconToImageAsync(this.icon,this.iconColor,this.iconFontSize,this.iconFontSize,"0.9em")).bytes})}getUniqueCode(){return 0}}e.StiPivotTableElementCondition=m}(o=t.PivotTable||(t.PivotTable={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),t=r=t.Components||(t.Components={}),t=s=t.PivotTable||(t.PivotTable={}),function(e){var t=o.Dashboard.Components.Design.StiMeterConverter;class r extends t{}e.StiPivotColumnConverter=r}(i=t.Design||(t.Design={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),t=r=t.Components||(t.Components={}),t=s=t.PivotTable||(t.PivotTable={}),function(e){var t=o.Dashboard.Components.Design.StiMeterConverter;class r extends t{}e.StiPivotRowConverter=r}(i=t.Design||(t.Design={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),t=r=t.Components||(t.Components={}),t=s=t.PivotTable||(t.PivotTable={}),function(e){var t=o.Dashboard.Components.Design.StiMeterConverter;class r extends t{}e.StiPivotSummaryConverter=r}(i=t.Design||(t.Design={}))}(Stimulsoft=Stimulsoft||{}),function(i){var e,t,r;t=e=i.Dashboard||(i.Dashboard={}),function(e){var t=i.Report.Dashboard.IStiInteractionLayout,n=i.Report.Dashboard.StiAvailableInteractionOnDataManipulation,l=i.Report.Dashboard.StiAvailableInteractionOnHover,r=i.Report.Dashboard.IStiAllowUserSortingDashboardInteraction,o=i.Base.JsonReportObject.IStiJsonReportObject,u=i.Report.Dashboard.StiInteractionIdent,h=i.Report.Dashboard.StiAvailableInteractionOnClick;class s extends e.StiDashboardInteraction{constructor(e,t,r,o,s,i,a){super(),this.ident=u.Progress,this.availableOnClick=h.None,this.availableOnHover=l.None,this.availableOnDataManipulation=n.AllowSorting,this.allowUserSorting=!0,this.showFullScreenButton=!0,this.showSaveButton=!0,this.showViewDataButton=!0,this.fileName=null,this.headerText=null,this.footerText=null,null!=e&&(this.fileName=e),null!=t&&(this.headerText=t),null!=r&&(this.footerText=r),null!=o&&(this.showFullScreenButton=o),null!=s&&(this.showSaveButton=s),null!=i&&(this.allowUserSorting=i),null!=a&&(this.showViewDataButton=a)}implements(){return s.ImplementsIStiProgressDashboardInteraction||(s.ImplementsIStiProgressDashboardInteraction=super.implements().concat([r,o,t])),s.ImplementsIStiProgressDashboardInteraction}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyBool("AllowUserSorting",this.allowUserSorting,!0),t.addPropertyBool("ShowFullScreenButton",this.showFullScreenButton,!0),t.addPropertyBool("ShowSaveButton",this.showSaveButton,!0),t.addPropertyBool("ShowViewDataButton",this.showViewDataButton,!0),t.addPropertyStringNullOrEmpty("FileName",this.fileName),t.addPropertyStringNullOrEmpty("HeaderText",this.headerText),t.addPropertyStringNullOrEmpty("FooterText",this.footerText),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"AllowUserSorting":this.allowUserSorting=t.value.stimulsoft().toBoolean();break;case"ShowFullScreenButton":this.showFullScreenButton=t.value.stimulsoft().toBoolean();break;case"ShowSaveButton":this.showSaveButton=t.value.stimulsoft().toBoolean();break;case"ShowViewDataButton":this.showViewDataButton=t.value.stimulsoft().toBoolean();break;case"FileName":this.fileName=t.value.toString();break;case"HeaderText":this.headerText=t.value.toString();break;case"FooterText":this.footerText=t.value.toString();break}}loadFromXml(r,e){super.loadFromXml(r,e);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"AllowUserSorting":this.allowUserSorting=e.textContent.stimulsoft().toBoolean();break;case"ShowFullScreenButton":this.showFullScreenButton=e.textContent.stimulsoft().toBoolean();break;case"ShowSaveButton":this.showSaveButton=e.textContent.stimulsoft().toBoolean();break;case"ShowViewDataButton":this.showViewDataButton=e.textContent.stimulsoft().toBoolean();break;case"FileName":this.fileName=e.textContent;break;case"HeaderText":this.headerText=e.textContent;break;case"FooterText":this.footerText=e.textContent;break}}}get isDefaultLayout(){return this.showFullScreenButton&&this.showSaveButton&&this.showViewDataButton&&null==this.fileName&&null==this.headerText&&null==this.footerText}isDefault(){return this.isDefaultLayout&&this.allowUserSorting}}e.StiProgressDashboardInteraction=s}(r=t.Interactions||(t.Interactions={}))}(Stimulsoft=Stimulsoft||{}),function($){var e,t,r,ee,o;t=e=$.Dashboard||($.Dashboard={}),ee=r=t.Components||(t.Components={}),function(l){var e=$.Data.Engine.IStiAllowSortByVariation,a=$.Dashboard.Interactions.Design.StiDashboardInteractionLoader,i=$.Dashboard.Interactions.StiProgressDashboardInteraction,t=$.Report.Dashboard.IStiElementInteraction,n=$.Base.Meters.IStiDimensionMeter,u=$.Base.Meters.IStiSeriesMeter,h=$.Base.Meters.IStiMeasureMeter,m=$.Base.Meters.IStiTargetMeter,c=$.Base.Meters.IStiValueMeter,r=$.System.Drawing.Rectangle,d=$.System.Text.StiReportObjectStringConverter,o=$.Report.Dashboard.ImplementsIStiSeriesColors,s=$.Report.Dashboard.IStiSeriesColors,p=$.Data.Engine.StiDataTopN,S=$.Report.Dashboard.ImplementsIStiElementLayout,g=$.Report.Dashboard.IStiElementLayout,b=$.Report.Dashboard.StiElementLayout,f=$.Base.JsonReportObject.IStiJsonReportObject,C=$.Report.Components.ImplementsIStiForeColor,y=$.Report.Components.ImplementsIStiFont,v=$.Report.Dashboard.ImplementsIStiTitleElement,w=$.Report.Dashboard.ImplementsIStiProgressElement,D=$.Report.Components.ImplementsIStiTextFormat,x=$.Data.Engine.ImplementsIStiAllowSortByVariation,T=$.Dashboard.Helpers.StiMeterHelper,F=$.Report.StiComponentId,M=$.Dashboard.Components.Helpers.StiMeterLoader,I=$.System.Enum,k=$.Report.Dashboard.StiProgressElementMode,R=$.Report.Components.TextFormats.StiGeneralFormatService,A=$.Base.StiJsonReportObjectHelper,B=$.Base.StiJsonSaveMode,O=$.Report.Components.TextFormats.StiFormatService,P=$.Base.Localization.StiLocalization,E=$.Report.Components.StiComponentToolboxPosition,L=$.Report.Dashboard.StiElementStyleIdent,N=$.Data.Engine.StiDataSortRule,V=$.Data.Engine.StiDataFilterRule,z=$.Data.Engine.StiDataActionRule,J=$.Data.Helpers.StiUsedDataHelper,j=$.System.Collections.List,H=$.System.Drawing.Color,G=$.System.Drawing.Font,X=$.System.Drawing.FontStyle,U=$.Dashboard.Components.Progress.StiTargetProgressMeter,K=$.Report.Components.IStiForeColor,W=$.Report.Components.IStiFont,q=$.Report.Dashboard.IStiTitleElement,Y=$.Report.Dashboard.IStiProgressElement,Q=$.Report.Components.IStiTextFormat,Z=$.Report.IStiGlobalizationProvider;class _ extends ee.StiElement{constructor(e=r.empty){super(e),this.group="",this.textFormat=new R,this.font=new G("Arial",13),this.foreColor=H.transparent,this.title=new ee.StiTitle,this.layout=new b,this.transformActions=new j,this.transformFilters=new j,this.transformSorts=new j,this.topN=new p,this.dataTransformation={},this.crossFiltering=!0,this.dataFilters=new j,this.userSorts=new j,this._style=L.Auto,this.customStyleName="",this.seriesColors=[],this.defaultClientRectangle=new r(0,0,160,160),this.helpUrl="user-manual/dashboards_progress.htm",this.colorEach=!0,this.mode=k.Circle,this.progressConditions=new j,this.isSampleForStyles=!1,this.title.text=this.localizedName,this.dashboardInteraction=new i}implements(){return _.ImplementsStiProgressElement||(_.ImplementsStiProgressElement=super.implements().concat([Q,Y,q,W,K,g,t,Z,s,e,...D,...w,...v,...y,...C,...S,...o,...x,f])),_.ImplementsStiProgressElement}clone(e){let t=super.clone(e);return t.value=null!=this.value?this.value.clone():null,t.target=null!=this.target?this.target.clone():null,t.series=null!=this.series?this.series.clone():null,t.userSorts=this.userSorts.select(e=>e.clone()).toList(),t.transformActions=this.transformActions.select(e=>e.clone()),t.transformFilters=this.transformFilters.select(e=>e.clone()),t.transformSorts=this.transformSorts.select(e=>e.clone()),t.dataFilters=this.dataFilters.select(e=>e.clone()),t.topN=this.topN.clone(),t.textFormat=this.textFormat.clone(),t.title=null!=this.title?this.title.clone():null,t.layout=null!=this.layout?this.layout.clone():null,t.seriesColors=null!=this.seriesColors?this.seriesColors.stimulsoft().clone():null,t.progressConditions=this.progressConditions.select(e=>e.clone()).toList(),t.dashboardInteraction=this.dashboardInteraction.clone(),t}saveToJsonObject(e){let t=super.saveToJsonObject(e);t.addPropertyJObject("UserSorts",A.Serialize.objectArray(this.userSorts,e)),t.addPropertyJObject("TransformActions",A.Serialize.objectArray(this.transformActions,e)),t.addPropertyJObject("TransformFilters",A.Serialize.objectArray(this.transformFilters,e)),t.addPropertyJObject("TransformSorts",A.Serialize.objectArray(this.transformSorts,e)),t.addPropertyJObject("DataFilters",A.Serialize.objectArray(this.dataFilters,e)),null!=this.topN&&t.addPropertyJObject("TopN",this.topN.saveToJsonObject(e)),this.textFormat.is(R)||null==this.textFormat||t.addPropertyJObject("TextFormat",this.textFormat.saveToJsonObject(e)),null!=this.value&&t.addPropertyJObject("Value",this.value.saveToJsonObject(e)),null!=this.target&&t.addPropertyJObject("Target",this.target.saveToJsonObject(e)),null!=this.series&&t.addPropertyJObject("Series",this.series.saveToJsonObject(e)),null!=this.title&&t.addPropertyJObject("Title",this.title.saveToJsonObject(e)),null!=this.layout&&t.addPropertyJObject("Layout",this.layout.saveToJsonObject(e)),t.addPropertyStringNullOrEmpty("ForeColor",A.Serialize.jColor(this.foreColor,H.transparent)),t.addPropertyStringNullOrEmpty("Font",A.Serialize.fontArial8(this.font)),t.addPropertyJObject("SeriesColors",A.Serialize.colorArray(this.seriesColors)),t.addPropertyEnum("Mode",k,this.mode,k.Circle),t.addPropertyEnum("Style",L,this.style,L.Auto),t.addPropertyStringNullOrEmpty("CustomStyleName",this.customStyleName),t.addPropertyStringNullOrEmpty("Group",this.group),t.addPropertyBool("ColorEach",this.colorEach,!0),t.addPropertyJObject("ProgressConditions",A.Serialize.objectArray(this.progressConditions,e)),t.addPropertyBool("CrossFiltering",this.crossFiltering,!0);let r=this.dashboardInteraction.as(i);return null!=r&&t.addPropertyJObject("DashboardInteraction",r.saveToJsonObject(e)),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"ColorEach":this.colorEach=t.value.stimulsoft().toBoolean();break;case"TopN":this.topN=p.createFromJsonObject(t.value);break;case"TransformActions":this.transformActions.addRange(t.value.properties().select(e=>z.loadFromJson(e.value)));break;case"TransformFilters":this.transformFilters.addRange(t.value.properties().select(e=>V.loadFromJson(e.value)));break;case"TransformSorts":this.transformSorts.addRange(t.value.properties().select(e=>N.loadFromJson(e.value)));break;case"DataFilters":this.dataFilters.addRange(t.value.properties().select(e=>V.loadFromJson(e.value)));break;case"Title":this.title=ee.StiTitle.createFromJsonObject(t.value);break;case"Layout":this.layout=b.createFromJsonObject(t.value);break;case"TextFormat":this.textFormat=O.createFromJsonObject(t.value);break;case"Value":var r=M.loadFromJson(t.value).as(l.StiValueProgressMeter);null!=r&&(this.value=r);break;case"Target":var o=M.loadFromJson(t.value).as(U);null!=o&&(this.target=o);break;case"Series":var o=M.loadFromJson(t.value).as(l.StiSeriesProgressMeter);null!=o&&(this.series=o);break;case"Mode":this.mode=I.parse(k,t.value.toString());break;case"Style":this.style=I.parse(L,t.value.toString());break;case"Group":this.group=t.value.toString();break;case"CustomStyleName":this.customStyleName=t.value.toString();break;case"ForeColor":this.foreColor=A.Deserialize.color(t.value.toString());break;case"Font":this.font=A.Deserialize.font(t.value.toString(),this.font);break;case"SeriesColors":this.seriesColors=A.Deserialize.colorArray(t);break;case"ProgressConditions":this.progressConditions.addRange(t.value.properties().select(e=>l.StiProgressElementCondition.createFromJson(e.value)));break;case"DashboardInteraction":this.dashboardInteraction=a.loadInteractionFromJsonObject(t.value);break;case"UserSorts":this.userSorts.addRange(t.value.properties().select(e=>N.loadFromJson(e.value)));break;case"CrossFiltering":this.crossFiltering=t.value.stimulsoft().toBoolean();break}}loadFromXml(r,o){super.loadFromXml(r,o);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"ColorEach":this.colorEach=e.textContent.stimulsoft().toBoolean();break;case"TopN":this.topN=p.createFromXml(e);break;case"TransformActions":this.transformActions.addRange(e.childNodes.select(e=>z.loadFromXml(e)));break;case"TransformFilters":this.transformFilters.addRange(e.childNodes.select(e=>V.loadFromXml(e)));break;case"TransformSorts":this.transformSorts.addRange(e.childNodes.select(e=>N.loadFromXml(e)));break;case"DataFilters":this.dataFilters.addRange(e.childNodes.select(e=>V.loadFromXml(e)));break;case"Title":this.title=this.title=ee.StiTitle.createFromXml(e);break;case"Layout":this.layout=b.createFromXml(e);break;case"TextFormat":this.textFormat=O.loadFormatFromXml(e,this.report);break;case"Value":var s=M.loadFromXml(e,o).as(l.StiValueProgressMeter);null!=s&&(this.value=s);break;case"Target":var i=M.loadFromXml(e,o).as(U);null!=i&&(this.target=i);break;case"Series":var i=M.loadFromXml(e,o).as(l.StiSeriesProgressMeter);null!=i&&(this.series=i);break;case"Mode":this.mode=I.parse(k,e.textContent);break;case"Style":this.style=I.parse(L,e.textContent);break;case"ForeColor":this.foreColor=$.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"Font":this.font=$.System.Convert.toFont(e.textContent);break;case"Group":this.group=e.textContent;break;case"CustomStyleName":this.customStyleName=e.textContent;break;case"SeriesColors":this.seriesColors=d.convertStringToColorArray(e.textContent);break;case"ProgressConditions":this.progressConditions.addRange(e.childNodes.select(e=>l.StiProgressElementCondition.createFromXml(e)));break;case"DashboardInteraction":this.dashboardInteraction=a.loadInteractionFromXml(e,o);break;case"UserSorts":this.userSorts.addRange(e.childNodes.select(e=>N.loadFromXml(e)));break;case"CrossFiltering":this.crossFiltering=e.textContent.stimulsoft().toBoolean();break}}}get componentId(){return F.StiProgressElement}addValue2(e){this.value=null!=e?T.Progress.getValue2(e):null}addValue(e){this.value=T.Progress.getValue(e.as(ee.StiMeter))}removeValue(){this.value=null}getValue(){return this.value}getValue2(e){return null!=e?T.Progress.getValue(e.as(ee.StiMeter)):null}createNewValue(){this.value=new l.StiValueProgressMeter,this.value.expression="Sum()"}addTarget2(e){this.target=null!=e?T.Progress.getTarget2(e):null}addTarget(e){this.target=T.Progress.getTarget(e.as(ee.StiMeter))}removeTarget(){this.target=null}getTarget(){return this.target}getTarget2(e){return null!=e?T.Progress.getTarget(e.as(ee.StiMeter)):null}createNewTarget(){this.target=new U,this.target.expression="Sum()"}addSeries2(e){this.series=null!=e?T.Progress.getSeries2(e):null}addSeries(e){this.series=T.Progress.getSeries(e.as(ee.StiMeter))}removeSeries(){this.series=null}getSeries(){return this.series}getSeries2(e){return null!=e?T.Progress.getSeries(e.as(ee.StiMeter)):null}createNewSeries(){this.series=new l.StiSeriesProgressMeter}convertFrom(e){let t=e.fetchAllMeters();if(null==t)return;let r=t.firstOrDefault(e=>e.is(c));r=null==r?t.firstOrDefault(e=>e.is(h)):r,null!=r&&(this.value=null==this.value?new l.StiValueProgressMeter:this.value,this.value.loadFromJsonObject(r.saveToJsonObject(B.Report)));let o=t.firstOrDefault(e=>e.is(m));null!=o&&(this.target=null==this.target?new U:this.target,this.target.loadFromJsonObject(o.saveToJsonObject(B.Report)));let s=t.firstOrDefault(e=>e.is(u));s=null==s?t.firstOrDefault(e=>e.is(n)):s,null!=s&&(this.series=null==this.series?new l.StiSeriesProgressMeter:this.series,this.series.loadFromJsonObject(s.saveToJsonObject(B.Report))),null==this.dashboardInteraction&&(this.dashboardInteraction=new i)}shouldSerializeTextFormat(){return null==this.textFormat||!this.textFormat.is(R)}shouldSerializeFont(){return!(null!=this.font&&"Arial"==this.font.name&&13==this.font.sizeInPoints&&this.font.style==X.Regular)}shouldSerializeForeColor(){return!H.transparent.equals(this.foreColor)}shouldSerializeLayout(){return null==this.layout||!this.layout.isDefault()}fetchAllMeters(){let e=new j;return null!=this.value&&e.add(this.value),null!=this.target&&e.add(this.target),null!=this.series&&e.add(this.series),e}getMeters(){let e=new j;return null!=this.value&&e.add(this.value),null!=this.target&&e.add(this.target),null!=this.series&&e.add(this.series),e}retrieveUsedDataNames(){return J.getMany(this.value,this.target,this.series)}get isDefined(){return null!=this.value||null!=this.target||null!=this.series}shouldSerializeDataTransformation(){return null==this.transformActions||this.transformActions.any()||null==this.transformFilters||this.transformFilters.any()||null==this.transformSorts||this.transformSorts.any()}isDefaultDataTransformation(){return!this.shouldSerializeDataTransformation()}get style(){return this._style}set style(e){(this._style=e)!=L.Custom&&(this.customStyleName="")}setString(e,t){switch(e){case"Title.Text":this.title.text=t;break}}getString(e){switch(e){case"Title.Text":return this.title.text}throw new Error(`Property with name ${e}`)}getAllStrings(){return["Title.Text"]}get toolboxPosition(){return E.ProgressElement}get localizedName(){return P.get("Components","StiProgress")}addProgressCondition(e,t,r,o,s,i,a,n){this.progressConditions.add(new l.StiProgressElementCondition(e,t,r,o,s,i,a,n))}fetchProgressConditions(){let e=new j;return null!=this.progressConditions&&e.addRange(this.progressConditions),e}clearProgressConditions(){this.progressConditions.clear()}get shouldSerializeDashboardInteraction(){return null==this.dashboardInteraction||!this.dashboardInteraction.isDefault()}shouldSerializeConditions(){return null==this.progressConditions||0<this.progressConditions.length}createNew(){return new _}}l.StiProgressElement=_}(o=ee.Progress||(ee.Progress={}))}(Stimulsoft=Stimulsoft||{}),function(d){var e,t,r,o;t=e=d.Dashboard||(d.Dashboard={}),t=r=t.Components||(t.Components={}),function(e){var l=d.System.Drawing.Font,t=d.System.ICloneable,r=d.Base.JsonReportObject.IStiJsonReportObject,o=d.Base.StiJson,s=d.Base.StiJsonReportObjectHelper,i=d.System.Enum,a=d.Report.Dashboard.IStiProgressElementCondition,u=d.Report.Components.StiFilterCondition,h=d.System.Drawing.Color,m=d.Report.Dashboard.StiProgressFieldCondition,c=d.Report.Dashboard.StiProgressConditionPermissions;class n{constructor(e,t,r,o,s,i,a,n){this.condition=u.EqualTo,this.field=m.Value,this.permissions=c.All,this.textColor=h.black,this.color=h.transparent,this.trackColor=h.transparent,this.font=new l("Arial",8),null!=e&&(this.field=e),null!=t&&(this.condition=t),null!=r&&(this.value=r),null!=o&&(this.permissions=o),null!=s&&(this.font=s),null!=i&&(this.textColor=i),null!=a&&(this.color=a),null!=n&&(this.trackColor=n)}implements(){return n.ImplementsStiProgressElementCondition||(n.ImplementsStiProgressElementCondition=[t,r,a]),n.ImplementsStiProgressElementCondition}saveToJsonObject(e){let t=new o;return t.addPropertyIdent("Ident",this.stimulsoft().getType().stimulsoft().getTypeName()),t.addPropertyEnum("Condition",u,this.condition,u.EqualTo),t.addPropertyEnum("Field",m,this.field,m.Value),t.addPropertyStringNullOrEmpty("Value",this.value),t.addPropertyStringNullOrEmpty("Color",s.Serialize.jColor(this.color,h.transparent)),t.addPropertyEnum("Permissions",c,this.permissions,c.All),t.addPropertyStringNullOrEmpty("Font",s.Serialize.fontArial8(this.font)),t.addPropertyStringNullOrEmpty("TextColor",s.Serialize.jColor(this.textColor,h.black)),t.addPropertyStringNullOrEmpty("TrackColor",s.Serialize.jColor(this.trackColor,h.transparent)),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"Condition":this.condition=i.parse(u,t.value.toString());break;case"Field":this.field=i.parse(m,t.value.toString());break;case"Value":this.value=t.value.toString();break;case"Color":this.color=s.Deserialize.color(t.value.toString());break;case"Permissions":this.permissions=i.parse(c,t.value.toString());break;case"TextColor":this.textColor=s.Deserialize.color(t.value.toString());break;case"TrackColor":this.trackColor=s.Deserialize.color(t.value.toString());break;case"Font":this.font=s.Deserialize.font(t.value,this.font);break}}loadFromXml(t){for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];switch(r.nodeName){case"Condition":this.condition=i.parse(u,r.textContent);break;case"Field":this.field=i.parse(m,r.textContent);break;case"Value":this.value=r.textContent;break;case"Color":this.color=d.System.Text.StiReportObjectStringConverter.convertStringToColor(r.textContent);break;case"Permissions":this.permissions=i.parse(c,r.textContent);break;case"TextColor":this.textColor=d.System.Text.StiReportObjectStringConverter.convertStringToColor(r.textContent);break;case"TrackColor":this.trackColor=d.System.Text.StiReportObjectStringConverter.convertStringToColor(r.textContent);break;case"Font":this.font=d.System.Convert.toFont(r.textContent);break}}}clone(){return this.stimulsoft().memberwiseClone()}static createFromJson(e){let t=new n;return t.loadFromJsonObject(e),t}static createFromXml(e){let t=new n;return t.loadFromXml(e),t}}e.StiProgressElementCondition=n}(o=t.Progress||(t.Progress={}))}(Stimulsoft=Stimulsoft||{}),function(l){var e,t,r;t=e=l.Dashboard||(l.Dashboard={}),function(e){var t=l.Report.Dashboard.IStiInteractionLayout,r=l.Base.JsonReportObject.IStiJsonReportObject,o=l.System.StiString,s=l.Report.Dashboard.StiInteractionOnHover,i=l.Report.Dashboard.StiInteractionOnClick,a=l.Report.Dashboard.StiInteractionOpenHyperlinkDestination,d=l.Report.Dashboard.StiInteractionIdent,p=l.Report.Dashboard.StiAvailableInteractionOnClick;class n extends e.StiDashboardInteraction{constructor(e,t,r,o,s,i,a,n,l,u,h,m,c){super(e,t,r,o,s,i,a),this.ident=d.RegionMap,this.availableOnClick=p.ApplyFilter|p.OpenHyperlink|p.ShowDashboard,this.showFullScreenButton=!0,this.showSaveButton=!0,this.showViewDataButton=!0,this.fileName=null,this.headerText=null,this.footerText=null,null!=n&&(this.fileName=n),null!=l&&(this.headerText=l),null!=u&&(this.footerText=u),null!=h&&(this.showFullScreenButton=h),null!=m&&(this.showSaveButton=m),null!=c&&(this.showViewDataButton=c)}implements(){return n.ImplementsIStiRegionMapDashboardInteraction||(n.ImplementsIStiRegionMapDashboardInteraction=super.implements().concat([r,t])),n.ImplementsIStiRegionMapDashboardInteraction}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyBool("ShowFullScreenButton",this.showFullScreenButton,!0),t.addPropertyBool("ShowSaveButton",this.showSaveButton,!0),t.addPropertyBool("ShowViewDataButton",this.showViewDataButton,!0),t.addPropertyStringNullOrEmpty("FileName",this.fileName),t.addPropertyStringNullOrEmpty("HeaderText",this.headerText),t.addPropertyStringNullOrEmpty("FooterText",this.footerText),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"ShowFullScreenButton":this.showFullScreenButton=t.value.stimulsoft().toBoolean();break;case"ShowSaveButton":this.showSaveButton=t.value.stimulsoft().toBoolean();break;case"ShowViewDataButton":this.showViewDataButton=t.value.stimulsoft().toBoolean();break;case"FileName":this.fileName=t.value.toString();break;case"HeaderText":this.headerText=t.value.toString();break;case"FooterText":this.footerText=t.value.toString();break}}loadFromXml(r,e){super.loadFromXml(r,e);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"ShowFullScreenButton":this.showFullScreenButton=e.textContent.stimulsoft().toBoolean();break;case"ShowSaveButton":this.showSaveButton=e.textContent.stimulsoft().toBoolean();break;case"ShowViewDataButton":this.showViewDataButton=e.textContent.stimulsoft().toBoolean();break;case"FileName":this.fileName=e.textContent;break;case"HeaderText":this.headerText=e.textContent;break;case"FooterText":this.footerText=e.textContent;break}}}get isDefaultLayout(){return this.showFullScreenButton&&this.showSaveButton&&this.showViewDataButton&&null==this.fileName&&null==this.headerText&&null==this.footerText}isDefault(){return this.onHover==s.ShowToolTip&&this.onClick==i.ApplyFilter&&this.hyperlinkDestination==a.NewTab&&o.isNullOrEmpty(this.hyperlink)&&o.isNullOrEmpty(this.drillDownPageKey)&&null!=this.drillDownParameters&&0==this.drillDownParameters.length&&o.isNullOrEmpty(this.toolTip)&&this.isDefaultLayout}}e.StiRegionMapDashboardInteraction=n}(r=t.Interactions||(t.Interactions={}))}(Stimulsoft=Stimulsoft||{}),function(z){var e,t,r,J,o;t=e=z.Dashboard||(z.Dashboard={}),J=r=t.Components||(t.Components={}),function(t){var r=z.Report.Dashboard.StiInteractionOnClick,o=z.Base.StiKeyHelper,e=z.Report.Dashboard.IStiElementInteraction,n=z.Dashboard.Interactions.Design.StiDashboardInteractionLoader,s=z.Dashboard.Interactions.StiRegionMapDashboardInteraction,i=z.System.Drawing.Rectangle,a=z.Dashboard.Components.RegionMap.StiKeyMapMeter,l=z.Data.Helpers.StiExpressionHelper,u=z.Report.IStiGlobalizationProvider,h=z.Report.Dashboard.ImplementsIStiElementLayout,m=z.Report.Dashboard.IStiElementLayout,c=z.Report.Dashboard.StiElementLayout,d=z.Base.JsonReportObject.IStiJsonReportObject,p=z.Report.Dashboard.ImplementsIStiTitleElement,S=z.Report.Dashboard.ImplementsIStiSkipOwnFilter,g=z.Report.Dashboard.ImplementsIStiRegionMapElement,b=z.Dashboard.Helpers.StiMeterHelper,f=z.Data.Helpers.StiUsedDataHelper,C=z.Dashboard.Components.Helpers.StiMeterLoader,y=z.System.Enum,v=z.Report.Dashboard.StiElementStyleIdent,w=z.Base.StiJsonReportObjectHelper,D=z.Report.Maps.StiMap,x=z.Report.Maps.StiDisplayNameType,T=z.Report.Maps.StiMapType,F=z.Base.Localization.StiLocalization,M=z.Report.Components.StiComponentToolboxPosition,I=z.Data.Engine.StiDataSortRule,k=z.Data.Engine.StiDataActionRule,R=z.Data.Engine.StiDataFilterRule,A=z.Report.Maps.StiMapSource,B=z.System.Collections.List,O=z.Report.StiComponentId,P=z.Report.Dashboard.IStiTitleElement,E=z.Report.Dashboard.IStiSkipOwnFilter,L=z.Report.Dashboard.IStiRegionMapElement,N;z.Dashboard.Export.StiExportToolAttribute.add("StiRegionMapElement","Stimulsoft.Dashboard.Export.Tools.StiRegionMapElementExportTool");class V extends J.StiElement{constructor(e=i.empty){super(e),this.group="",this.title=new J.StiTitle,this.layout=new c,this._style=v.Auto,this.customStyleName="",this.userFilters=new B,this.transformActions=new B,this.transformFilters=new B,this.transformSorts=new B,this.dataTransformation={},this.dataFilters=new B,this.helpUrl="user-manual/dashboards_maps_region_map.htm",this.mapIdent="USA",this.dataFrom=A.Manual,this.mapType=T.Individual,this.showValue=!0,this.shortValue=!0,this.colorEach=!1,this.showBubble=!1,this.showName=x.Full,this.crossFiltering=!0,this.title.text=this.localizedName,this.dashboardInteraction=new s}implements(){return V.ImplementsStiRegionMapElement||(V.ImplementsStiRegionMapElement=super.implements().concat([L,E,P,m,u,...g,...S,...p,...h,d,e])),V.ImplementsStiRegionMapElement}clone(e){let t=super.clone(e);return t.keyMeter=null!=this.keyMeter?this.keyMeter.clone():null,t.nameMeter=null!=this.nameMeter?this.nameMeter.clone():null,t.valueMeter=null!=this.valueMeter?this.valueMeter.clone():null,t.groupMeter=null!=this.groupMeter?this.groupMeter.clone():null,t.colorMeter=null!=this.colorMeter?this.colorMeter.clone():null,t.userFilters=this.userFilters.select(e=>e.clone()).toList(),t.transformActions=this.transformActions.select(e=>e.clone()).toList(),t.transformFilters=this.transformFilters.select(e=>e.clone()).toList(),t.transformSorts=this.transformSorts.select(e=>e.clone()).toList(),t.dataFilters=this.dataFilters.select(e=>e.clone()).toList(),t.title=null!=this.title?this.title.clone():null,t.layout=null!=this.layout?this.layout.clone():null,t.dashboardInteraction=this.dashboardInteraction.clone(),t}saveToJsonObject(e){let t=super.saveToJsonObject(e);t.addPropertyJObject("TransformActions",w.Serialize.objectArray(this.transformActions,e)),t.addPropertyJObject("TransformFilters",w.Serialize.objectArray(this.transformFilters,e)),t.addPropertyJObject("TransformSorts",w.Serialize.objectArray(this.transformSorts,e)),t.addPropertyJObject("DataFilters",w.Serialize.objectArray(this.dataFilters,e));let r=this.dashboardInteraction.as(s);return null!=r&&t.addPropertyJObject("DashboardInteraction",r.saveToJsonObject(e)),null!=this.title&&t.addPropertyJObject("Title",this.title.saveToJsonObject(e)),null!=this.layout&&t.addPropertyJObject("Layout",this.layout.saveToJsonObject(e)),null!=this.keyMeter&&t.addPropertyJObject("KeyMeter",this.keyMeter.saveToJsonObject(e)),null!=this.nameMeter&&t.addPropertyJObject("NameMeter",this.nameMeter.saveToJsonObject(e)),null!=this.valueMeter&&t.addPropertyJObject("ValueMeter",this.valueMeter.saveToJsonObject(e)),null!=this.groupMeter&&t.addPropertyJObject("GroupMeter",this.groupMeter.saveToJsonObject(e)),null!=this.colorMeter&&t.addPropertyJObject("ColorMeter",this.colorMeter.saveToJsonObject(e)),t.addPropertyEnum("DataFrom",A,this.dataFrom,A.Manual),t.addPropertyEnum("MapType",T,this.mapType,T.Individual),t.addPropertyStringNullOrEmpty("MapData",this.mapData),t.addPropertyBool("ShowValue",this.showValue,!0),t.addPropertyBool("ShortValue",this.shortValue,!0),t.addPropertyBool("ColorEach",this.colorEach),t.addPropertyBool("ShowBubble",this.showBubble,!1),t.addPropertyEnum("ShowName",x,this.showName,x.Full),t.addPropertyEnum("Style",v,this.style,v.Auto),t.addPropertyStringNullOrEmpty("Group",this.group),t.addPropertyStringNullOrEmpty("CustomStyleName",this.customStyleName),t.addPropertyStringNullOrEmpty("MapIdent",this.mapIdent),t.addPropertyBool("CrossFiltering",this.crossFiltering,!0),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"DashboardInteraction":var r=n.loadInteractionFromJsonObject(t.value);null!=r&&(this.dashboardInteraction=r);break;case"TransformActions":this.transformActions.addRange(t.value.properties().select(e=>k.loadFromJson(e.value)));break;case"TransformFilters":this.transformFilters.addRange(t.value.properties().select(e=>R.loadFromJson(e.value)));break;case"TransformSorts":this.transformSorts.addRange(t.value.properties().select(e=>I.loadFromJson(e.value)));break;case"DataFilters":this.dataFilters.addRange(t.value.properties().select(e=>R.loadFromJson(e.value)));break;case"Title":this.title=J.StiTitle.createFromJsonObject(t.value);break;case"Layout":this.layout=c.createFromJsonObject(t.value);break;case"KeyMeter":var r=C.loadFromJson(t.value);null!=r&&(this.keyMeter=r);break;case"NameMeter":var o=C.loadFromJson(t.value);null!=o&&(this.nameMeter=o);break;case"ValueMeter":var o=C.loadFromJson(t.value);null!=o&&(this.valueMeter=o);break;case"GroupMeter":var s=C.loadFromJson(t.value);null!=s&&(this.groupMeter=s);break;case"ColorMeter":var s=C.loadFromJson(t.value);null!=s&&(this.colorMeter=s);break;case"MapIdent":case"MapID":this.mapIdent=t.value.toString();break;case"MapType":this.mapType=y.parse(T,t.value.toString());break;case"DataFrom":this.dataFrom=y.parse(A,t.value.toString());break;case"MapData":this.mapData=t.value.toString();break;case"ShowValue":this.showValue=t.value.stimulsoft().toBoolean();break;case"ShortValue":this.shortValue=t.value.stimulsoft().toBoolean();break;case"ColorEach":this.colorEach=t.value.stimulsoft().toBoolean();break;case"ShowBubble":this.showBubble=t.value.stimulsoft().toBoolean();break;case"ShowName":this.showName=y.parse(x,t.value.toString());break;case"Style":this.style=y.parse(v,t.value.toString());break;case"Group":this.group=t.value.toString();break;case"CustomStyleName":this.customStyleName=t.value.toString();break;case"CrossFiltering":this.crossFiltering=t.value.stimulsoft().toBoolean();break}}loadFromXml(r,o){super.loadFromXml(r,o);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"DashboardInteraction":var s=n.loadInteractionFromXml(e,o);null!=s&&(this.dashboardInteraction=s);break;case"TransformActions":this.transformActions.addRange(e.childNodes.select(e=>k.loadFromXml(e)));break;case"TransformFilters":this.transformFilters.addRange(e.childNodes.select(e=>R.loadFromXml(e)));break;case"TransformSorts":this.transformSorts.addRange(e.childNodes.select(e=>I.loadFromXml(e)));break;case"DataFilters":this.dataFilters.addRange(e.childNodes.select(e=>R.loadFromXml(e)));break;case"Title":this.title=J.StiTitle.createFromXml(e);break;case"Layout":this.layout=c.createFromXml(e);break;case"KeyMeter":var s=C.loadFromXml(e,o);null!=s&&(this.keyMeter=s);break;case"NameMeter":var i=C.loadFromXml(e,o);null!=i&&(this.nameMeter=i);break;case"ValueMeter":var i=C.loadFromXml(e,o);null!=i&&(this.valueMeter=i);break;case"GroupMeter":var a=C.loadFromXml(e,o);null!=a&&(this.groupMeter=a);break;case"ColorMeter":var a=C.loadFromXml(e,o);null!=a&&(this.colorMeter=a);break;case"MapID":case"MapIdent":this.mapIdent=e.textContent;break;case"MapType":this.mapType=y.parse(T,e.textContent);break;case"DataFrom":this.dataFrom=y.parse(A,e.textContent);break;case"MapData":this.mapData=e.textContent;break;case"ShowValue":this.showValue=e.textContent.stimulsoft().toBoolean();break;case"ShortValue":this.shortValue=e.textContent.stimulsoft().toBoolean();break;case"ColorEach":this.colorEach=e.textContent.stimulsoft().toBoolean();break;case"ShowBubble":this.showBubble=e.textContent.stimulsoft().toBoolean();break;case"ShowName":this.showName=y.parse(x,e.textContent);break;case"Style":this.style=y.parse(v,e.textContent);break;case"Group":this.group=e.textContent;break;case"CustomStyleName":this.customStyleName=e.textContent;break;case"CrossFiltering":this.crossFiltering=e.textContent.stimulsoft().toBoolean();break}}}get componentId(){return O.StiRegionMapElement}get allowSkipOwnFilter(){return!0}fetchAllMeters(){let e=new B;return null!=this.keyMeter&&e.add(this.keyMeter),null!=this.nameMeter&&e.add(this.nameMeter),null!=this.valueMeter&&e.add(this.valueMeter),null!=this.groupMeter&&e.add(this.groupMeter),null!=this.colorMeter&&e.add(this.colorMeter),e}getMeters(){let e=new B;return this.isDefined&&this.dataFrom==A.DataColumns&&(null!=this.keyMeter&&(l.isFunctionPresent(this.keyMeter.expression)?e.add(this.keyMeter):e.add(new a(this.keyMeter.key,`Iso2(${this.keyMeter.expression}, \"${this.mapIdent}\")`))),null!=this.nameMeter&&e.add(this.nameMeter),null!=this.valueMeter&&(l.isAggregationFunctionPresent(this.valueMeter.expression)?e.add(this.valueMeter):e.add(new t.StiValueMapMeter(this.valueMeter.key,`First(${this.valueMeter.expression})`))),null!=this.groupMeter&&e.add(this.groupMeter),null!=this.colorMeter&&e.add(this.colorMeter)),e}retrieveUsedDataNames(){let e=new B;return this.dataFrom==A.DataColumns&&(e.addRange(f.getMany(this.keyMeter)),e.addRange(f.getMany(this.nameMeter)),e.addRange(f.getMany(this.valueMeter)),e.addRange(f.getMany(this.groupMeter)),e.addRange(f.getMany(this.colorMeter))),e.distinct()}get isDefined(){return this.dataFrom!=A.DataColumns||null!=this.keyMeter||null!=this.nameMeter||null!=this.valueMeter||null!=this.groupMeter||null!=this.colorMeter}get isQuerable(){return this.dataFrom==A.DataColumns}shouldSerializeLayout(){return null==this.layout||!this.layout.isDefault()}get style(){return this._style}set style(e){(this._style=e)!=v.Custom&&(this.customStyleName="")}createNextMeter(e){null==this.keyMeter?this.keyMeter=b.RegionMap.getKey2(e):null==this.nameMeter?this.nameMeter=b.RegionMap.getName2(e):null==this.valueMeter?this.valueMeter=b.RegionMap.getValue2(e):null==this.groupMeter?this.groupMeter=b.RegionMap.getGroup2(e):null==this.colorMeter?this.colorMeter=b.RegionMap.getColor2(e):this.keyMeter=b.RegionMap.getKey2(e)}addKeyMeter2(e){this.keyMeter=null!=e?b.RegionMap.getKey2(e):null}addKeyMeter(e){this.keyMeter=null!=e?b.RegionMap.getKey(e.as(J.StiMeter)):null}getKeyMeter(){return this.keyMeter}removeKeyMeter(){this.keyMeter=null}createNewKeyMeter(){this.keyMeter=new a}addNameMeter2(e){this.nameMeter=null!=e?b.RegionMap.getName2(e):null}addNameMeter(e){this.nameMeter=null!=e?b.RegionMap.getName(e.as(J.StiMeter)):null}getNameMeter(){return this.nameMeter}removeNameMeter(){this.nameMeter=null}createNewNameMeter(){this.nameMeter=new t.StiNameMapMeter}addValueMeter2(e){this.valueMeter=null!=e?b.RegionMap.getValue2(e):null}addValueMeter(e){this.valueMeter=null!=e?b.RegionMap.getValue(e.as(J.StiMeter),this.dashboard):null}getValueMeter(){return this.valueMeter}removeValueMeter(){this.valueMeter=null}createNewValueMeter(){this.valueMeter=new t.StiValueMapMeter}addGroupMeter2(e){this.groupMeter=null!=e?b.RegionMap.getGroup2(e):null}addGroupMeter(e){this.groupMeter=null!=e?b.RegionMap.getGroup(e.as(J.StiMeter)):null}getGroupMeter(){return this.groupMeter}removeGroupMeter(){this.groupMeter=null}createNewGroupMeter(){this.groupMeter=new t.StiGroupMapMeter}addColorMeter2(e){this.colorMeter=null!=e?b.RegionMap.getColor2(e):null}addColorMeter(e){this.colorMeter=null!=e?b.RegionMap.getColor(e.as(J.StiMeter)):null}getColorMeter(){return this.colorMeter}removeColorMeter(){this.colorMeter=null}createNewColorMeter(){this.colorMeter=new t.StiColorMapMeter}convertFrom(e){let t=e.as(z.Dashboard.Components.OnlineMap.StiOnlineMapElement);null==t||null==t.location||t.location.isDefault()||(this.keyMeter=new a,this.keyMeter.label=t.location.label,this.keyMeter.expression=t.location.expression),null==this.dashboardInteraction&&(this.dashboardInteraction=new s)}setString(e,t){switch(e){case"Title.Text":this.title.text=t;break}}getString(e){switch(e){case"Title.Text":return this.title.text}throw new Error(`Property with name ${e}`)}getAllStrings(){return["Title.Text"]}get toolboxPosition(){return M.RegionMapElement}get localizedName(){return F.get("Components","StiRegionMap")}get shouldSerializeDashboardInteraction(){return null==this.dashboardInteraction||!this.dashboardInteraction.isDefault()}getNestedPages(){if(null==this.dashboardInteraction||this.dashboardInteraction.onClick==r.None)return null;let t=this.dashboardInteraction.drillDownPageKey;if(o.isEmptyKey(t))return null;var e=this.report.pages.toList().firstOrDefault(e=>e.guid==t);if(null==e)return null;return new B([e])}getMapData(){let e=new D;return e.mapData=this.mapData,e.mapIdent=this.mapIdent,e.page=this.page,e.getMapData()}createNew(){return new V}}t.StiRegionMapElement=V}(o=J.RegionMap||(J.RegionMap={}))}(Stimulsoft=Stimulsoft||{}),function(v){var e,t,r,w,o;t=e=v.Dashboard||(v.Dashboard={}),w=r=t.Components||(t.Components={}),function(e){var t=v.System.Drawing.Rectangle,r=v.Report.IStiGlobalizationProvider,o=v.Base.JsonReportObject.IStiJsonReportObject,s=v.Report.Dashboard.ImplementsIStiTitleElement,i=v.Report.Dashboard.ImplementsIStiShapeElement,a=v.Base.Drawing.StiBrush,n=v.Report.Dashboard.StiPadding,l=v.Report.Components.StiShapeTypeService,u=v.Base.StiJsonReportObjectHelper,h=v.Report.StiComponentId,m=v.Dashboard.Components.StiTitle,c=v.Base.Localization.StiLocalization,d=v.System.Drawing.Color,p=v.Base.Drawing.StiSolidBrush,S=v.Report.Components.StiRectangleShapeType,g=v.Report.Components.StiComponentToolboxPosition,b=v.Report.Dashboard.IStiTitleElement,f=v.Report.Dashboard.IStiShapeElement,C;v.Dashboard.Export.StiExportToolAttribute.add("StiShapeElement","Stimulsoft.Dashboard.Export.Tools.StiShapeElementExportTool");class y extends w.StiElement{constructor(e=t.empty){super(e),this.helpUrl="user-manual/dashboards_shape.htm",this.title=new m,this.shapeType=new S,this._size=1,this.fill=new p,this.stroke=d.black,this.title.text=this.localizedName,this.title.visible=!1,this.padding=n.create(0)}implements(){return y.ImplementsStiShapeElement||(y.ImplementsStiShapeElement=super.implements().concat([f,b,r,...i,...s,o])),y.ImplementsStiShapeElement}clone(e){let t=super.clone(e);return t.title=null!=this.title?this.title.clone():null,t}get componentId(){return h.StiShapeElement}saveToJsonObject(e){let t=super.saveToJsonObject(e);return null!=this.title&&t.addPropertyJObject("Title",this.title.saveToJsonObject(e)),t.addPropertyStringNullOrEmpty("Fill",u.Serialize.jBrush(this.fill)),t.addPropertyStringNullOrEmpty("Stroke",u.Serialize.jColor(this.stroke,d.black)),t.addPropertyNumber("Size",this.size,1),t.addPropertyJObject("ShapeType",this.shapeType.saveToJsonObject(e)),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"Title":this.title=m.createFromJsonObject(t);break;case"Fill":this.fill=u.Deserialize.brush(t.value);break;case"Stroke":this.stroke=u.Deserialize.color(t.value.toString());break;case"Size":this.size=t.value.stimulsoft().toNumber();break;case"ShapeType":this.shapeType=l.createFromJsonObject(t.value);break}}loadFromXml(r,e){super.loadFromXml(r,e);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"Title":this.title=m.createFromXml(e);break;case"Fill":this.fill=a.loadFromXml(e.textContent);break;case"Stroke":this.stroke=v.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"Size":this.size=e.textContent.stimulsoft().toNumber();break;case"ShapeType":this.shapeType=l.convertFromXml(e),this.shapeType.loadFromXml(e);break}}}get toolboxPosition(){return g.ShapeElement}get localizedName(){return c.get("Components","StiShape")}get isDefined(){return!0}get isQuerable(){return!1}shouldSerializePadding(){return!this.padding.isEmpty}setString(e,t){switch(e){case"Title.Text":this.title.text=t;break}}getString(e){switch(e){case"Title.Text":return this.title.text}throw new Error(`Property with name ${e}`)}getAllStrings(){return["Title.Text"]}createNew(){return new y}get size(){return this._size}set size(e){e!=this._size&&(this._size=e<1?1:e)}}e.StiShapeElement=y}(o=w.Shape||(w.Shape={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,r,o,e,s,i,a,n;r=t=e.Dashboard||(e.Dashboard={}),e=o=r.Components||(r.Components={}),r=s=e.Table||(e.Table={}),(e=i=r.StiDataBarsDirection||(r.StiDataBarsDirection={}))[e["LeftToRight"]=0]="LeftToRight",e[e["RighToLeft"]=1]="RighToLeft",(e=a=r.StiDataBarsBrushType||(r.StiDataBarsBrushType={}))[e["Solid"]=0]="Solid",e[e["Gradient"]=1]="Gradient",(r=n=r.StiSparklinesType||(r.StiSparklinesType={}))[r["Line"]=0]="Line",r[r["Area"]=1]="Area",r[r["Column"]=2]="Column",r[r["WinLoss"]=3]="WinLoss"}(Stimulsoft=Stimulsoft||{}),function(a){var e,t,r,o;t=e=a.Dashboard||(a.Dashboard={}),t=r=t.Components||(t.Components={}),function(e){var r=a.Base.Helpers.StiValueHelper,o=a.Report.Dashboard.StiReportParser,s=a.System.StiString,i=a.Base.Drawing.StiTableColumnVisibility;class t{static getVisible(e,t){if(e.visibility==i.True)return!0;if(e.visibility==i.False)return!1;if(s.isNullOrWhiteSpace(e.visibilityExpression))return!1;var t=o.parse2(e.visibilityExpression,t);return r.tryToBool(t)}}e.StiTableColumnVisibilityHelper=t}(o=t.Table||(t.Table={}))}(Stimulsoft=Stimulsoft||{}),function(r){var e,t,o;t=e=r.Dashboard||(r.Dashboard={}),function(e){var o=r.System.Collections.Hashtable;class t{static getSelected(e){let t=this.hash.get(e.key);if(null==t)return null;return t.keys.toList().cast()}static getSelectedObjects(e){let t=this.getSelected(e);return null!=t?t.cast():null}static isSelected(e,t){let r=this.hash.get(e.key);return null==r&&(r=new o,this.hash.set(e.key,r)),null!=r.get(t)}static select(e,t){let r=this.hash.get(e.key);null==r&&(r=new o,this.hash.set(e.key,r)),r.set(t,t)}static resetSelection(e){this.hash.containsKey(e.key)&&this.hash.remove(e.key)}}t.hash=new o,e.StiTableElementSelection=t}(o=t.Helpers||(t.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(l){var e,t,r;t=e=l.Dashboard||(l.Dashboard={}),function(e){var t=l.Report.Dashboard.IStiAllowUserColumnSelectionDashboardInteraction,r=l.Report.Dashboard.IStiInteractionLayout,o=l.Base.JsonReportObject.IStiJsonReportObject,f=l.Report.Dashboard.StiInteractionIdent,C=l.Report.Dashboard.StiAvailableInteractionOnClick,s=l.Report.Dashboard.IStiTableDashboardInteraction,i=l.Report.Dashboard.IStiAllowUserSortingDashboardInteraction,a=l.Report.Dashboard.IStiAllowUserFilteringDashboardInteraction,y=l.Report.Dashboard.StiAvailableInteractionOnHover,v=l.Report.Dashboard.StiAvailableInteractionOnDataManipulation;class n extends e.StiDashboardInteraction{constructor(e,t,r,o,s,i,a,n,l,u,h,m,c,d,p,S,g,b){super(e,t,r,o,s,i,a),this.allowUserColumnSelection=!0,this.allowUserSorting=!0,this.allowUserFiltering=!0,this.drillDownFiltered=!0,this.fullRowSelect=!1,this.ident=f.Table,this.availableOnClick=C.None,this.availableOnHover=y.None,this.availableOnDataManipulation=v.AllowFiltering|v.AllowSorting,this.showFullScreenButton=!0,this.showSaveButton=!0,this.showViewDataButton=!0,this.fileName=null,this.headerText=null,this.footerText=null,null!=u&&(this.allowUserColumnSelection=u),null!=n&&(this.allowUserFiltering=n),null!=l&&(this.allowUserSorting=l),null!=h&&(this.drillDownFiltered=h),null!=m&&(this.fullRowSelect=m),null!=c&&(this.fileName=c),null!=d&&(this.headerText=d),null!=p&&(this.footerText=p),null!=S&&(this.showFullScreenButton=S),null!=g&&(this.showSaveButton=g),null!=b&&(this.showViewDataButton=b)}implements(){return n.ImplementsIStiTableDashboardInteraction||(n.ImplementsIStiTableDashboardInteraction=super.implements().concat([s,i,t,a,o,r])),n.ImplementsIStiTableDashboardInteraction}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyBool("AllowUserColumnSelection",this.allowUserColumnSelection,!0),t.addPropertyBool("AllowUserSorting",this.allowUserSorting,!0),t.addPropertyBool("AllowUserFiltering",this.allowUserFiltering,!0),t.addPropertyBool("DrillDownFiltered",this.drillDownFiltered,!0),t.addPropertyBool("FullRowSelect",this.fullRowSelect,!1),t.addPropertyBool("ShowFullScreenButton",this.showFullScreenButton,!0),t.addPropertyBool("ShowSaveButton",this.showSaveButton,!0),t.addPropertyBool("ShowViewDataButton",this.showViewDataButton,!0),t.addPropertyStringNullOrEmpty("FileName",this.fileName),t.addPropertyStringNullOrEmpty("HeaderText",this.headerText),t.addPropertyStringNullOrEmpty("FooterText",this.footerText),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"AllowUserColumnSelection":this.allowUserColumnSelection=t.value.stimulsoft().toBoolean();break;case"AllowUserSorting":this.allowUserSorting=t.value.stimulsoft().toBoolean();break;case"AllowUserFiltering":this.allowUserFiltering=t.value.stimulsoft().toBoolean();break;case"DrillDownFiltered":this.drillDownFiltered=t.value.stimulsoft().toBoolean();break;case"FullRowSelect":this.fullRowSelect=t.value.stimulsoft().toBoolean();break;case"ShowFullScreenButton":this.showFullScreenButton=t.value.stimulsoft().toBoolean();break;case"ShowSaveButton":this.showSaveButton=t.value.stimulsoft().toBoolean();break;case"ShowViewDataButton":this.showViewDataButton=t.value.stimulsoft().toBoolean();break;case"FileName":this.fileName=t.value.toString();break;case"HeaderText":this.headerText=t.value.toString();break;case"FooterText":this.footerText=t.value.toString();break}}loadFromXml(r,e){super.loadFromXml(r,e);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"AllowUserColumnSelection":this.allowUserColumnSelection=e.textContent.stimulsoft().toBoolean();break;case"AllowUserSorting":this.allowUserSorting=e.textContent.stimulsoft().toBoolean();break;case"AllowUserFiltering":this.allowUserFiltering=e.textContent.stimulsoft().toBoolean();break;case"DrillDownFiltered":this.drillDownFiltered=e.textContent.stimulsoft().toBoolean();break;case"FullRowSelect":this.fullRowSelect=e.textContent.stimulsoft().toBoolean();break;case"ShowFullScreenButton":this.showFullScreenButton=e.textContent.stimulsoft().toBoolean();break;case"ShowSaveButton":this.showSaveButton=e.textContent.stimulsoft().toBoolean();break;case"ShowViewDataButton":this.showViewDataButton=e.textContent.stimulsoft().toBoolean();break;case"FileName":this.fileName=e.textContent;break;case"HeaderText":this.headerText=e.textContent;break;case"FooterText":this.footerText=e.textContent;break}}}get isDefaultLayout(){return this.showFullScreenButton&&this.showSaveButton&&this.showViewDataButton&&null==this.fileName&&null==this.headerText&&null==this.footerText}isDefault(){return this.isDefaultLayout&&this.allowUserColumnSelection&&this.allowUserFiltering&&this.allowUserSorting&&this.drillDownFiltered&&!this.fullRowSelect&&super.isDefault()}}e.StiTableDashboardInteraction=n}(r=t.Interactions||(t.Interactions={}))}(Stimulsoft=Stimulsoft||{}),function(d){var e,u,t,r,o;u=e=d.Dashboard||(d.Dashboard={}),r=t=u.Components||(u.Components={}),function(e){var h=d.System.Drawing.Font,t=d.System.ICloneable,r=d.Base.JsonReportObject.IStiJsonReportObject,o=d.Base.StiJson,s=d.Base.StiJsonReportObjectHelper,i=d.System.Enum,a=d.Report.Dashboard.IStiIndicatorElementCondition,n=d.Report.Components.StiFilterCondition,m=d.System.Drawing.Color,c=d.Report.Dashboard.StiTableConditionPermissions;class l{constructor(e,t,r,o,s,i,a,n,l,u){this.keyDataFieldMeters=[],this.keyDestinationMeters=[],this.dataType=d.Report.Components.StiFilterDataType.Numeric,this.condition=d.Report.Components.StiFilterCondition.EqualTo,this.permissions=c.All,this.font=new h("Arial",8),this.foreColor=m.black,this.backColor=m.transparent,this.isExpression=!1,null!=e&&(this.keyDataFieldMeters=e),null!=t&&(this.keyDestinationMeters=t),null!=r&&(this.dataType=r),null!=o&&(this.condition=o),null!=s&&(this.value=s),null!=i&&(this.permissions=i),null!=a&&(this.font=a),null!=n&&(this.foreColor=n),null!=l&&(this.backColor=l),null!=u&&(this.isExpression=u)}implements(){return l.ImplementsStiTableElementCondition||(l.ImplementsStiTableElementCondition=[t,a,r]),l.ImplementsStiTableElementCondition}saveToJsonObject(e){let t=new o;return t.addPropertyIdent("Ident",this.stimulsoft().getType().stimulsoft().getTypeName()),t.addPropertyJObject("KeyDataFieldMeters",s.Serialize.stringArray(this.keyDataFieldMeters)),t.addPropertyJObject("KeyDestinationMeters",s.Serialize.stringArray(this.keyDestinationMeters)),t.addPropertyEnum("DataType",u.StiFilterDataType,this.dataType,u.StiFilterDataType.Numeric),t.addPropertyEnum("Condition",n,this.condition,n.EqualTo),t.addPropertyStringNullOrEmpty("Value",this.value),t.addPropertyBool("IsExpression",this.isExpression),t.addPropertyEnum("Permissions",c,this.permissions,c.All),t.addPropertyStringNullOrEmpty("Font",s.Serialize.fontArial8(this.font)),t.addPropertyStringNullOrEmpty("ForeColor",s.Serialize.jColor(this.foreColor,m.black)),t.addPropertyStringNullOrEmpty("BackColor",s.Serialize.jColor(this.backColor,m.transparent)),t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"KeyValueMeters":this.keyValueMeters=s.Deserialize.stringArray(t.value);break;case"KeyDataFieldMeters":this.keyDataFieldMeters=s.Deserialize.stringArray(t.value);break;case"KeyDestinationMeters":this.keyDestinationMeters=s.Deserialize.stringArray(t.value);break;case"DataType":this.dataType=i.parse(u.StiFilterDataType,t.value.toString());break;case"Condition":this.condition=i.parse(n,t.value.toString());break;case"Value":this.value=t.value.toString();break;case"Permissions":this.permissions=i.parse(c,t.value.toString());break;case"Font":this.font=s.Deserialize.font(t.value,this.font);break;case"ForeColor":this.foreColor=s.Deserialize.color(t.value.toString());break;case"BackColor":this.backColor=s.Deserialize.color(t.value.toString());break;case"IsExpression":this.isExpression=t.value.stimulsoft().toBoolean();break}}loadFromXml(r){for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"KeyValueMeters":this.keyValueMeters=this.parseStringArray(e);break;case"KeyDataFieldMeters":this.keyDataFieldMeters=this.parseStringArray(e);break;case"KeyDestinationMeters":this.keyDestinationMeters=this.parseStringArray(e);break;case"DataType":this.dataType=i.parse(u.StiFilterDataType,e.textContent);break;case"Condition":this.condition=i.parse(n,e.textContent);break;case"Value":this.value=e.textContent;break;case"Permissions":this.permissions=i.parse(c,e.textContent);break;case"Font":this.font=d.System.Convert.toFont(e.textContent);break;case"ForeColor":this.foreColor=d.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"BackColor":this.backColor=d.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"IsExpression":this.isExpression=e.textContent.stimulsoft().toBoolean();break}}}parseStringArray(t){let r=[];for(let e=0;e<t.childNodes.length;e++){var o=t.childNodes[e];"value"==o.nodeName&&(r[e]=o.textContent)}return r}clone(){return this.stimulsoft().memberwiseClone()}get keyValueMeters(){return this.keyValueMeters}set keyValueMeters(e){this.keyDataFieldMeters=e,this.keyDestinationMeters=e}static createFromJson(e){let t=new l;return t.loadFromJsonObject(e),t}static createFromXml(e){let t=new l;return t.loadFromXml(e),t}}e.StiTableElementCondition=l}(o=r.Table||(r.Table={}))}(Stimulsoft=Stimulsoft||{}),function(W){var e,t,r,q,o;t=e=W.Dashboard||(W.Dashboard={}),q=r=t.Components||(t.Components={}),function(r){var e=W.Report.Dashboard.IStiSkipOwnFilter,o=W.Dashboard.Components.Table.StiTableColumn,i=W.Base.StiKeyHelper,s=W.Base.Meters.IStiMeasureMeter,a=W.Base.Meters.IStiDimensionMeter,n=W.Dashboard.Interactions.Design.StiDashboardInteractionLoader,l=W.Dashboard.Interactions.StiTableDashboardInteraction,t=W.Report.Dashboard.IStiElementInteraction,u=W.System.Drawing.Rectangle,h=W.Report.IStiGlobalizationProvider,m=W.Report.Dashboard.ImplementsIStiElementLayout,c=W.Report.Dashboard.IStiElementLayout,d=W.Report.Dashboard.StiElementLayout,p=W.Base.JsonReportObject.IStiJsonReportObject,S=W.Report.Dashboard.StiTableSizeMode,g=W.Report.Dashboard.ImplementsIStiTableElement,b=W.Report.Dashboard.ImplementsIStiTitleElement,f=W.Base.Drawing.StiHorAlignment,C=W.Dashboard.Components.Helpers.StiMeterLoader,y=W.System.Enum,v=W.System.Type,w=W.Base.StiJsonReportObjectHelper,D=W.System.Drawing.Color,x=W.Base.Localization.StiLocalization,T=W.Report.Components.StiComponentToolboxPosition,F=W.Dashboard.Helpers.StiTableElementSelection,M=W.Data.Engine.StiDataActionRule,I=W.Data.Engine.StiDataSortRule,k=W.Data.Engine.StiDataFilterRule,R=W.Report.Dashboard.StiElementStyleIdent,A=W.System.Drawing.Font,B=W.System.Drawing.FontStyle,O=W.Data.Helpers.StiUsedDataHelper,P=W.System.Collections.List,E=W.Dashboard.Helpers.StiMeterHelper,L=W.Report.StiComponentId,N=W.Base.StiJsonSaveMode,V=W.Report.Dashboard.IStiTitleElement,z=W.Report.Dashboard.IStiTableElement,J=W.Dashboard.Export.StiExportToolAttribute,j=W.Report.Dictionary.StiDataColumn,H=W.Report.Dictionary.StiVariable,G=W.Base.StiSummaryColumnType,X=W.Dashboard.Components.Table.StiTableElementCondition,U=W.Report.Dashboard.StiInteractionOnClick;J.add("StiTableElement","Stimulsoft.Dashboard.Export.Tools.StiTableElementExportTool");class K extends q.StiElement{constructor(e=u.empty){super(e),this.title=new q.StiTitle,this.layout=new d,this.group="",this.foreColor=D.transparent,this.font=new A("Arial",10),this._style=R.Auto,this.customStyleName="",this.userFilters=new P,this.userSorts=new P,this.transformActions=new P,this.transformFilters=new P,this.transformSorts=new P,this.dataTransformation={},this.dataFilters=new P,this.tableConditions=new P,this.crossFiltering=!0,this.helpUrl="user-manual/dashboards_table.htm",this.columns=new P,this.sizeMode=S.AutoSize,this.headerForeColor=D.transparent,this.headerFont=new A("Arial",10),this.footerForeColor=D.transparent,this.footerFont=new A("Arial",10),this.title.text=this.localizedName,this.dashboardInteraction=new l}implements(){return K.ImplementsStiTableElement||(K.ImplementsStiTableElement=super.implements().concat([z,V,c,h,...g,...b,...m,p,t,e])),K.ImplementsStiTableElement}clone(e){let t=super.clone(e);return t.columns=this.columns.select(e=>e.clone()).toList(),t.userFilters=this.userFilters.select(e=>e.clone()).toList(),t.userSorts=this.userSorts.select(e=>e.clone()).toList(),t.transformActions=this.transformActions.select(e=>e.clone()).toList(),t.transformFilters=this.transformFilters.select(e=>e.clone()).toList(),t.transformSorts=this.transformSorts.select(e=>e.clone()).toList(),t.dataFilters=this.dataFilters.select(e=>e.clone()).toList(),t.title=null!=this.title?this.title.clone():null,t.layout=null!=this.layout?this.layout.clone():null,t.tableConditions=this.tableConditions.select(e=>e.clone()).toList(),t.dashboardInteraction=this.dashboardInteraction.clone(),t}saveToJsonObject(e){let t=super.saveToJsonObject(e);t.addPropertyJObject("Columns",w.Serialize.objectArray(this.columns,e)),t.addPropertyJObject("UserFilters",w.Serialize.objectArray(this.userFilters,e)),t.addPropertyJObject("UserSorts",w.Serialize.objectArray(this.userSorts,e)),t.addPropertyJObject("TransformActions",w.Serialize.objectArray(this.transformActions,e)),t.addPropertyJObject("TransformFilters",w.Serialize.objectArray(this.transformFilters,e)),t.addPropertyJObject("TransformSorts",w.Serialize.objectArray(this.transformSorts,e)),t.addPropertyJObject("DataFilters",w.Serialize.objectArray(this.dataFilters,e)),t.addPropertyStringNullOrEmpty("HeaderForeColor",w.Serialize.jColor(this.headerForeColor,D.transparent)),t.addPropertyStringNullOrEmpty("FooterForeColor",w.Serialize.jColor(this.footerForeColor,D.transparent)),t.addPropertyStringNullOrEmpty("ForeColor",w.Serialize.jColor(this.foreColor,D.transparent)),t.addPropertyStringNullOrEmpty("HeaderFont",w.Serialize.fontArial8(this.headerFont)),t.addPropertyStringNullOrEmpty("FooterFont",w.Serialize.fontArial8(this.footerFont)),t.addPropertyStringNullOrEmpty("Font",w.Serialize.font(this.font,"Arial",10)),t.addPropertyBool("CrossFiltering",this.crossFiltering,!0),t.addPropertyJObject("TableConditions",w.Serialize.objectArray(this.tableConditions.select(e=>e.stimulsoft().as(X)),e)),null!=this.title&&t.addPropertyJObject("Title",this.title.saveToJsonObject(e)),null!=this.layout&&t.addPropertyJObject("Layout",this.layout.saveToJsonObject(e));let r=this.dashboardInteraction.as(l);return null!=r&&t.addPropertyJObject("DashboardInteraction",r.saveToJsonObject(e)),t.addPropertyEnum("Style",R,this.style,R.Auto),t.addPropertyEnum("SizeMode",S,this.sizeMode,S.AutoSize),t.addPropertyStringNullOrEmpty("Group",this.group),t.addPropertyStringNullOrEmpty("CustomStyleName",this.customStyleName),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"DashboardInteraction":this.dashboardInteraction=n.loadInteractionFromJsonObject(t.value);break;case"Title":this.title=q.StiTitle.createFromJsonObject(t.value);break;case"Layout":this.layout=d.createFromJsonObject(t.value);break;case"HeaderForeColor":this.headerForeColor=w.Deserialize.color(t.value.toString());break;case"FooterForeColor":this.footerForeColor=w.Deserialize.color(t.value.toString());break;case"ForeColor":this.foreColor=w.Deserialize.color(t.value.toString());break;case"HeaderFont":this.headerFont=w.Deserialize.font(t.value,this.font);break;case"FooterFont":this.footerFont=w.Deserialize.font(t.value,this.font);break;case"Font":this.font=w.Deserialize.font(t.value,this.font);break;case"Columns":this.columns.addRange(t.value.properties().select(e=>C.loadFromJson(e.value).as(o)).where(e=>null!=e));break;case"UserSorts":this.userSorts.addRange(t.value.properties().select(e=>I.loadFromJson(e.value)));break;case"UserFilters":this.userFilters.addRange(t.value.properties().select(e=>k.loadFromJson(e.value)));break;case"TransformActions":this.transformActions.addRange(t.value.properties().select(e=>M.loadFromJson(e.value)));break;case"TransformFilters":this.transformFilters.addRange(t.value.properties().select(e=>k.loadFromJson(e.value)));break;case"TransformSorts":this.transformSorts.addRange(t.value.properties().select(e=>I.loadFromJson(e.value)));break;case"DataFilters":this.dataFilters.addRange(t.value.properties().select(e=>k.loadFromJson(e.value)));break;case"Style":this.style=y.parse(R,t.value.toString());break;case"SizeMode":this.sizeMode=y.parse(S,t.value.toString());break;case"Group":this.group=t.value.toString();break;case"CustomStyleName":this.customStyleName=t.value.toString();break;case"TableConditions":this.tableConditions.addRange(t.value.properties().select(e=>X.createFromJson(e.value)));break;case"CrossFiltering":this.crossFiltering=t.value.stimulsoft().toBoolean();break}}loadFromXml(r,o){super.loadFromXml(r,o);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"DashboardInteraction":this.dashboardInteraction=n.loadInteractionFromXml(e,o);break;case"Title":this.title=q.StiTitle.createFromXml(e);break;case"Layout":this.layout=d.createFromXml(e);break;case"HeaderForeColor":this.headerForeColor=W.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"FooterForeColor":this.footerForeColor=W.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"ForeColor":this.foreColor=W.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"HeaderFont":this.headerFont=W.System.Convert.toFont(e.textContent);break;case"FooterFont":this.footerFont=W.System.Convert.toFont(e.textContent);break;case"Font":this.font=W.System.Convert.toFont(e.textContent);break;case"Columns":{let t=this.report;this.columns.addRange(e.childNodes.select(e=>C.loadFromXml(e,o,t)).where(e=>null!=e));break}case"UserSorts":this.userSorts.addRange(e.childNodes.select(e=>I.loadFromXml(e)));break;case"UserFilters":this.userFilters.addRange(e.childNodes.select(e=>k.loadFromXml(e)));break;case"TransformActions":this.transformActions.addRange(e.childNodes.select(e=>M.loadFromXml(e)));break;case"TransformFilters":this.transformFilters.addRange(e.childNodes.select(e=>k.loadFromXml(e)));break;case"TransformSorts":this.transformSorts.addRange(e.childNodes.select(e=>I.loadFromXml(e)));break;case"DataFilters":this.dataFilters.addRange(e.childNodes.select(e=>k.loadFromXml(e)));break;case"Style":this.style=y.parse(R,e.textContent);break;case"SizeMode":this.sizeMode=y.parse(S,e.textContent);break;case"Group":this.group=e.textContent;break;case"CustomStyleName":this.customStyleName=e.textContent;break;case"TableConditions":this.tableConditions.addRange(e.childNodes.select(e=>X.createFromXml(e)));break;case"CrossFiltering":this.crossFiltering=e.textContent.stimulsoft().toBoolean();break}}}get componentId(){return L.StiTableElement}createMeters(e){var e=e.as(K),t;this.columns.clear();for(t of e.columns)this.columns.add(t)}createMeters2(e){this.columns.clear();for(var t of e.columns.list)null!=t&&null!=t.type&&v.isNumericType(t.type)?this.columns.add(E.Table.getMeasure2(t)):this.columns.add(E.Table.getDimension2(t))}createMeter3(e){var t=e.as(j),r=e.as(H),r=null!=t?t.type:null==r?void 0:r.type;if(null!=r&&v.isNumericType(r)){let e=E.Table.getMeasure2(t);e.showTotalSummary=!0,e.summaryType=G.Sum,this.columns.add(e)}else this.columns.add(E.Table.getDimension2(e))}removeMeter(e){e<this.columns.length&&this.columns.removeAt(e)}removeAllMeters(){this.columns.clear()}insertMeter(e,t){var t=t.as(o);if(null==t)return;0<=e&&e<this.columns.length?this.columns.insert(e,t):this.columns.add(t)}insertNewDimension(e){let t=new r.StiDimensionColumn;t.horAlignment=f.Left,this.insertMeter(e,t)}insertNewMeasure(e){let t=new r.StiMeasureColumn;t.expression="Sum()",t.horAlignment=f.Right,this.insertMeter(e,t)}getMeasure(e){return E.Table.getMeasure2(e)}getDimension(e){return E.Table.getDimension2(e)}convertFrom(e){let t=e.fetchAllMeters();if(this.columns.clear(),null==t)return;t.cast().forEach(e=>{let t=null;e.is2(a)?t=new r.StiDimensionColumn:e.is2(s)&&(t=new r.StiMeasureColumn,t.horAlignment=f.Right),null!=t&&(t.loadFromJsonObject(e.saveToJsonObject(N.Report)),this.columns.add(t))},this)}fetchAllMeters(){return this.columns.cast()}getMeters(){return this.columns.cast()}retrieveUsedDataNames(){return O.getMany2(this.columns)}get isDefined(){return null!=this.columns&&0<this.columns.length}shouldSerializeLayout(){return null==this.layout||!this.layout.isDefault()}get allowSkipOwnFilter(){return!this.dashboardInteraction.drillDownFiltered}shouldSerializeForeColor(){return!D.transparent.equals(this.foreColor)}shouldSerializeFont(){return!(null!=this.font&&"Arial"==this.font.name&&10==this.font.sizeInPoints&&this.font.style==B.Regular)}get style(){return this._style}set style(e){(this._style=e)!=R.Custom&&(this.customStyleName="")}setString(e,t){switch(e){case"Title.Text":this.title.text=t;break}let r=0;for(var o of this.columns){var s;e==`Column${r++}.Label`&&(o.label=t)}}getString(e){switch(e){case"Title.Text":return this.title.text}let t=0;for(var r of this.columns){var o;if(e==`Column${t++}.Label`)return r.label}throw new Error(`Property with name ${e}`)}getAllStrings(){let t=["Title.Text"],r=0;return this.columns.forEach(e=>t.push(`Column${r++}.Label`)),t}get shouldSerializeDashboardInteraction(){return null==this.dashboardInteraction||!this.dashboardInteraction.isDefault()}addTableCondition(e,t,r,o,s,i,a,n,l,u){null==this.tableConditions&&(this.tableConditions=new P),this.tableConditions.add(new X(e,t,r,o,s,i,a,n,l,u))}get toolboxPosition(){return T.TableElement}get localizedName(){return x.get("Components","StiTable")}shouldSerializeColumns(){return null==this.columns||0<this.columns.length}shouldSerializeHeaderForeColor(){return!D.transparent.equals(this.headerForeColor)}shouldSerializeHeaderFont(){return!(null!=this.headerFont&&"Arial"==this.headerFont.name&&10==this.headerFont.sizeInPoints&&this.headerFont.style==B.Regular)}shouldSerializeFooterForeColor(){return!D.transparent.equals(this.footerForeColor)}shouldSerializeFooterFont(){return!(null!=this.footerFont&&"Arial"==this.footerFont.name&&10==this.footerFont.sizeInPoints&&this.footerFont.style==B.Regular)}getNestedPages(){var e,t,e,r,t;let o=new P,s="";null!=this.dashboardInteraction&&this.dashboardInteraction.onClick!=U.None&&(s=null===(e=this.dashboardInteraction)||void 0===e?void 0:e.drillDownPageKey,!i.isKey(s)||null!=(e=this.report.pages.toList().firstOrDefault(e=>e.guid==s))&&o.add(e));for(r of this.columns){null!=(null===r||void 0===r?void 0:r.dashboardInteraction)&&r.dashboardInteraction.onClick!=U.None&&(s=null===(t=null===r||void 0===r?void 0:r.dashboardInteraction)||void 0===t?void 0:t.drillDownPageKey,!i.isKey(s)||null!=(t=this.report.pages.toList().firstOrDefault(e=>e.guid==s))&&o.add(t))}return 0==o.length?null:o.distinct()}getFormatObjects(){return F.getSelectedObjects(this)}createNew(){return new K}}r.StiTableElement=K}(o=q.Table||(q.Table={}))}(Stimulsoft=Stimulsoft||{}),function(m){var e,c,t,r,o;c=e=m.Dashboard||(m.Dashboard={}),r=t=c.Components||(c.Components={}),function(e){var u=m.System.Drawing.FontStyle,l=m.Report.Dashboard.StiTableConditionPermissions,h=m.System.DateTime,s=m.Report.Dashboard.StiReportParser;class t{static getConditionResult(r,o,s){var e=!1,i;if(null!=r){try{o.dataType==m.Report.Components.StiFilterDataType.Numeric?r=null==r?0:r.stimulsoft().toNumber():o.dataType==c.StiFilterDataType.DateTime&&(r=null!=(i=h.fromString(r.toString(),!1))?i:h.fromOADate(r.stimulsoft().toNumber()))}catch(e){}let t=this.getConditionValue(o,s),e=r;if(null!=e&&null!=t){r.stimulsoft().getType()!=t.stimulsoft().getType()&&(r=r.toString(),t=t.stimulsoft().toString(),e=r);try{switch(o.condition){case m.Report.Components.StiFilterCondition.EqualTo:return 0==e.stimulsoft().compareTo(t);case m.Report.Components.StiFilterCondition.NotEqualTo:return 0!=e.stimulsoft().compareTo(t);case m.Report.Components.StiFilterCondition.GreaterThan:return 1==e.stimulsoft().compareTo(t);case m.Report.Components.StiFilterCondition.GreaterThanOrEqualTo:return 0<=e.stimulsoft().compareTo(t);case m.Report.Components.StiFilterCondition.LessThan:return-1==e.stimulsoft().compareTo(t);case m.Report.Components.StiFilterCondition.LessThanOrEqualTo:return e.stimulsoft().compareTo(t)<=0;case m.Report.Components.StiFilterCondition.Containing:{let e=r.toString();var a=t.toString();return-1!=e.indexOf(a)}case m.Report.Components.StiFilterCondition.NotContaining:{let e=r.toString();var n=t.toString();return-1==e.indexOf(n)}case m.Report.Components.StiFilterCondition.BeginningWith:{let e=r.toString();var l=t.toString();return e.stimulsoft().startsWith(l)}case m.Report.Components.StiFilterCondition.EndingWith:{let e=r.toString();var u=t.toString();return e.stimulsoft().endsWith(u)}}}catch(e){}}}return e}static getConditionValue(t,r){try{let e=t.isExpression?s.parse(`{${t.value}}`,r):t.value;switch(t.dataType){case c.StiFilterDataType.String:return e;case c.StiFilterDataType.Numeric:return null!=e?e.stimulsoft().toNumber():0;case c.StiFilterDataType.DateTime:var o=h.fromString(e);if(null!=o)return o;break;case c.StiFilterDataType.Boolean:return"true"==e.toLowerCase()}}catch(e){m.System.StiError.showError("Problem when parsing Table Element "+t+" value\n",!1)}return null}static processBackColor(e,t,r,o,s){for(var i of r.tableConditions.where(e=>0<=e.keyDestinationMeters.indexOf(t)))for(let e=0;e<s.length;e++){var a=s[e],n=o[e];if(0<=i.keyDataFieldMeters.indexOf(a)&&0<(i.permissions&l.BackColor)&&this.getConditionResult(n,i,r))return i.backColor}return e}static processForeColor(e,t,r,o,s){for(var i of r.tableConditions.where(e=>0<=e.keyDestinationMeters.indexOf(t)))for(let e=0;e<s.length;e++){var a=s[e],n=o[e];if(0<=i.keyDataFieldMeters.indexOf(a)&&0<(i.permissions&l.ForeColor)&&this.getConditionResult(n,i,r))return i.foreColor}return e}static processFontStyle(e,t,r,o,s){var i=this.processFontBold(e.bold,t,r,o,s),a=this.processFontItalic(e.italic,t,r,o,s),n=this.processFontUnderline(e.underline,t,r,o,s),s=this.processFontStrikeout(e.strikeout,t,r,o,s);let l=u.Regular;return i&&(l^=u.Bold),a&&(l^=u.Italic),n&&(l^=u.Underline),s&&(l^=u.Strikeout),l}static processFontStrikeout(e,t,r,o,s){for(var i of r.tableConditions.where(e=>0<=e.keyDestinationMeters.indexOf(t)))for(let e=0;e<s.length;e++){var a=s[e],n=o[e];if(0<=i.keyDataFieldMeters.indexOf(a)&&0<(i.permissions&l.FontStyleStrikeout)&&this.getConditionResult(n,i,r))return i.font.strikeout}return e}static processFontUnderline(e,t,r,o,s){for(var i of r.tableConditions.where(e=>0<=e.keyDestinationMeters.indexOf(t)))for(let e=0;e<s.length;e++){var a=s[e],n=o[e];if(0<=i.keyDataFieldMeters.indexOf(a)&&0<(i.permissions&l.FontStyleUnderline)&&this.getConditionResult(n,i,r))return i.font.underline}return e}static processFontItalic(e,t,r,o,s){for(var i of r.tableConditions.where(e=>0<=e.keyDestinationMeters.indexOf(t)))for(let e=0;e<s.length;e++){var a=s[e],n=o[e];if(0<=i.keyDataFieldMeters.indexOf(a)&&0<(i.permissions&l.FontStyleItalic)&&this.getConditionResult(n,i,r))return i.font.italic}return e}static processFontBold(e,t,r,o,s){for(var i of r.tableConditions.where(e=>0<=e.keyDestinationMeters.indexOf(t)))for(let e=0;e<s.length;e++){var a=s[e],n=o[e];if(0<=i.keyDataFieldMeters.indexOf(a)&&0<(i.permissions&l.FontStyleBold)&&this.getConditionResult(n,i,r))return i.font.bold}return e}}e.StiTableElementConditionHelper=t}(o=r.Table||(r.Table={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),t=r=t.Components||(t.Components={}),t=s=t.Table||(t.Table={}),function(e){var t=o.Dashboard.Components.Design.StiMeterConverter;class r extends t{}e.StiDataBarsColumnConverter=r}(i=t.Design||(t.Design={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),t=r=t.Components||(t.Components={}),t=s=t.Table||(t.Table={}),function(e){var t=o.Dashboard.Components.Design.StiMeterConverter;class r extends t{}e.StiDimensionColumnConverter=r}(i=t.Design||(t.Design={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),t=r=t.Components||(t.Components={}),t=s=t.Table||(t.Table={}),function(e){var t=o.Dashboard.Components.Design.StiMeterConverter;class r extends t{}e.StiSparklinesColumnConverter=r}(i=t.Design||(t.Design={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),t=r=t.Components||(t.Components={}),t=s=t.Table||(t.Table={}),function(e){var t=o.Dashboard.Components.Design.StiMeterConverter;class r extends t{}e.StiTableColumnConverter=r}(i=t.Design||(t.Design={}))}(Stimulsoft=Stimulsoft||{}),function(i){var e,t,r;t=e=i.Dashboard||(i.Dashboard={}),function(e){var t=i.System.StiString,r=i.Report.Dashboard.StiInteractionOnHover,n=i.Report.Dashboard.StiInteractionOnClick,o=i.Report.Dashboard.StiInteractionOpenHyperlinkDestination,l=i.Report.Dashboard.StiInteractionIdent,u=i.Report.Dashboard.StiAvailableInteractionOnClick;class s extends e.StiDashboardInteraction{constructor(e,t,r,o,s,i,a){super(e,t,r,o,s,i,a),this.ident=l.Text,this.availableOnClick=u.OpenHyperlink|u.ShowDashboard,this.onClick=n.OpenHyperlink}isDefault(){return this.onHover==r.ShowToolTip&&this.onClick==n.OpenHyperlink&&this.hyperlinkDestination==o.NewTab&&t.isNullOrEmpty(this.hyperlink)&&t.isNullOrEmpty(this.drillDownPageKey)&&null!=this.drillDownParameters&&0==this.drillDownParameters.length&&t.isNullOrEmpty(this.toolTip)}}e.StiTextDashboardInteraction=s}(r=t.Interactions||(t.Interactions={}))}(Stimulsoft=Stimulsoft||{}),function(V){var e,t,r,z,o;t=e=V.Dashboard||(V.Dashboard={}),z=r=t.Components||(t.Components={}),function(t){var r=V.Report.Dashboard.StiInteractionOnClick,o=V.Report.StiParserType,e=V.Data.Helpers.StiUsedDataHelper,s=V.Data.Helpers.StiExpressionHelper,i=V.System.StiString,a=V.System.Collections.List,n=V.Base.StiKeyHelper,l=V.Dashboard.Interactions.StiTextDashboardInteraction,u=V.Dashboard.Interactions.Design.StiDashboardInteractionLoader,h=V.Report.Dashboard.IStiElementInteraction,m=V.Base.Drawing.StiVertAlignment,c=V.System.Drawing.Rectangle,d=V.Base.StiJsonReportObjectHelper,p=V.Base.JsonReportObject.IStiJsonReportObject,S=V.Report.Dashboard.StiDashboardDesignAssembly,g=V.Report.Components.ImplementsIStiTextHorAlignment,b=V.Report.Components.ImplementsIStiVertAlignment,f=V.Report.Components.ImplementsIStiTextFormat,C=V.Report.Components.ImplementsIStiForeColor,y=V.Report.Dashboard.ImplementsIStiTextElement,v=V.Report.Dashboard.ImplementsIStiTitleElement,w=V.System.Enum,D=V.Report.Dashboard.StiPadding,x=V.Report.Components.StiComponentToolboxPosition,T=V.Base.Localization.StiLocalization,F=V.Report.Dashboard.Styles.StiDashboardStyleHelper,M=V.System.Drawing.Color,I=V.Report.StiComponentId,k=V.Report.Dashboard.IStiTitleElement,R=V.Report.Dashboard.IStiTextElement,A=V.Report.Components.IStiVertAlignment,B=V.Report.Components.IStiTextHorAlignment,O=V.Report.Components.IStiForeColor,P=V.Report.Components.IStiTextFont,E=V.Dashboard.Export.StiExportToolAttribute,L=V.Report.IStiGlobalizationProvider;E.add("StiTextElement","Stimulsoft.Dashboard.Export.Tools.StiTextElementExportTool");class N extends z.StiElement{constructor(e=c.empty){super(e),this.title=new z.StiTitle,this.text="",this.group="",this.foreColor=M.transparent,this.crossFiltering=!0,this.vertAlignment=m.Center,this.defaultClientRectangle=new c(0,0,100,40),this.helpUrl="user-manual/dashboards_text.htm",this.title.text=this.localizedName,this.title.visible=!1,this.padding=D.create(0),this.dashboardInteraction=new l}implements(){return N.ImplementsStiTextElement||(N.ImplementsStiTextElement=super.implements().concat([P,O,B,A,R,k,L,...f,...C,...g,...b,...y,...v,p,h])),N.ImplementsStiTextElement}clone(e){let t=super.clone(e);return t.title=null!=this.title?this.title.clone():null,t}get componentId(){return I.StiTextElement}saveToJsonObject(e){let t=super.saveToJsonObject(e);t.removeProperty("HorAlignment"),t.addPropertyStringNullOrEmpty("Group",this.group);let r=this.dashboardInteraction.as(l);return null!=r&&t.addPropertyJObject("DashboardInteraction",r.saveToJsonObject(e)),t.addPropertyStringNullOrEmpty("ForeColor",d.Serialize.jColor(this.foreColor,M.transparent)),t.addPropertyStringNullOrEmpty("Text",this.text),t.addPropertyEnum("VertAlignment",m,this.vertAlignment,m.Center),t.addPropertyBool("CrossFiltering",this.crossFiltering,!0),null!=this.title&&t.addPropertyJObject("Title",this.title.saveToJsonObject(e)),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"DashboardInteraction":var r=u.loadInteractionFromJsonObject(t.value);null!=r&&(this.dashboardInteraction=r);break;case"Text":this.text=t.value.toString();break;case"VertAlignment":this.vertAlignment=w.parse(m,t.value.toString());break;case"Title":this.title=z.StiTitle.createFromJsonObject(t.value);break;case"Group":this.group=t.value.toString();break;case"ForeColor":this.foreColor=d.Deserialize.color(t.value);break;case"CrossFiltering":this.crossFiltering=t.value.stimulsoft().toBoolean();break}}loadFromXml(r,o){super.loadFromXml(r,o);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"DashboardInteraction":var s=u.loadInteractionFromXml(e,o);null!=s&&(this.dashboardInteraction=s);break;case"Text":this.text=e.textContent;break;case"VertAlignment":this.vertAlignment=w.parse(m,e.textContent);break;case"Title":this.title=z.StiTitle.createFromXml(e);break;case"Group":this.group=e.textContent;break;case"ForeColor":this.foreColor=d.Deserialize.color(e.textContent);break;case"CrossFiltering":this.crossFiltering=e.textContent.stimulsoft().toBoolean();break}}}get isDefined(){return!i.isNullOrWhiteSpace(this.text)}get isQuerable(){return StiOptions.Engine.dashboardTextElementExpressionParser==o.DataParser&&!i.isNullOrEmpty(this.text)&&this.text.stimulsoft().contains("{")}fetchAllMeters(){return this.getMeters()}getMeters(){var e;if(StiOptions.Engine.dashboardTextElementExpressionParser==o.ReportParser)return new a;if(i.isNullOrEmpty(this.text))return null;return null===(e=s.fetchBlocksFromExpression(this.text))||void 0===e?void 0:e.select(e=>new t.StiTextMeter(e,e,e)).cast().toList();return null}retrieveUsedDataNames(){return StiOptions.Engine.dashboardTextElementExpressionParser==o.ReportParser?super.retrieveUsedDataNames():e.getMany2(this.getMeters()).distinct().toList()}getSimpleText(){return this.getHtmlTextHelper().getSimpleText(this.text,F.getForeColor(this))}shouldSerializeForeColor(){return!M.transparent.equals(this.foreColor)}getFont(){let e=this.getHtmlTextHelper();if(null==e)return null;return e.getFont(this,this.text,F.getForeColor(this))}setFontName(e){let t=this.getHtmlTextHelper();null!=t&&(this.text=t.setFontName(this,this.text,e,F.getForeColor(this)))}setFontSize(e){let t=this.getHtmlTextHelper();null!=t&&(this.text=t.setFontSize(this,this.text,e,F.getForeColor(this)))}growFontSize(){let e=this.getHtmlTextHelper();null!=e&&(this.text=e.growFontSize(this,this.text,F.getForeColor(this)))}shrinkFontSize(){let e=this.getHtmlTextHelper();null!=e&&(this.text=e.shrinkFontSize(this,this.text,F.getForeColor(this)))}setFontBoldStyle(e){let t=this.getHtmlTextHelper();null!=t&&(this.text=t.setFontBoldStyle(this,this.text,e,F.getForeColor(this)))}setFontItalicStyle(e){let t=this.getHtmlTextHelper();null!=t&&(this.text=t.setFontItalicStyle(this,this.text,e,F.getForeColor(this)))}setFontUnderlineStyle(e){let t=this.getHtmlTextHelper();null!=t&&(this.text=t.setFontUnderlineStyle(this,this.text,e,F.getForeColor(this)))}get horAlignment(){let e=this.getHtmlTextHelper();return e.getHorAlign(this,this.text,F.getForeColor(this))}set horAlignment(e){this.text=this.getHtmlTextHelper().setHorAlignment(this,this.text,e,F.getForeColor(this))}shouldSerializePadding(){return!this.padding.isEmpty}setString(e,t){switch(e){case"Title.Text":this.title.text=t;break;case"Text":this.text=t;break}}get shouldSerializeDashboardInteraction(){return null==this.dashboardInteraction||!this.dashboardInteraction.isDefault()}getString(e){switch(e){case"Title.Text":return this.title.text;case"Text":return this.text}throw new Error(`Property with name ${e}`)}getAllStrings(){return["Title.Text","Text"]}get toolboxPosition(){return x.TextElement}get localizedName(){return T.get("Components","StiText")}getNestedPages(){if(null==this.dashboardInteraction||this.dashboardInteraction.onClick==r.None)return null;let t=this.dashboardInteraction.drillDownPageKey;if(n.isEmptyKey(t))return null;var e=this.report.pages.toList().firstOrDefault(e=>e.guid==t);if(null==e)return null;return new a([e])}createNew(){return new N}getHtmlTextHelper(){return S.getHtmlTextHelper()}}t.StiTextElement=N}(o=z.Text||(z.Text={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,i,o;t=e=s.Dashboard||(s.Dashboard={}),i=r=t.Components||(t.Components={}),function(e){var t=s.Base.Meters.IStiValueMeter,r=s.Base.Localization.StiLocalization;class o extends i.StiDimensionMeter{constructor(e,t,r){super(e,t,r),this.ident=i.StiMeterIdent.TextMeter}implements(){return o.ImplementsStiTextMeter||(o.ImplementsStiTextMeter=super.implements().concat([t])),o.ImplementsStiTextMeter}get localizedName(){return r.get("PropertyMain","Text")}}e.StiTextMeter=o}(o=i.Text||(i.Text={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o,s;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Components||(e.Components={}),e=o=e.Text||(e.Text={}),function(e){class t{}e.StiTextConverter=t}(s=e.Design||(e.Design={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Components||(e.Components={}),function(e){class t{constructor(e,t){this.key=e,this.meter=t}toString(){return null==this.key?"":this.key.toString()}}e.StiTreeItem=t}(o=e.TreeView||(e.TreeView={}))}(Stimulsoft=Stimulsoft||{}),function(B){var e,t,r,O,o;t=e=B.Dashboard||(B.Dashboard={}),O=r=t.Components||(t.Components={}),function(o){var s=B.Base.Meters.IStiMeasureMeter,i=B.Base.Meters.IStiValueMeter,t=B.System.Drawing.Rectangle,e=B.Report.IStiGlobalizationProvider,r=B.Base.JsonReportObject.IStiJsonReportObject,a=B.Report.Dashboard.ImplementsIStiTreeViewElement,n=B.Report.Dashboard.ImplementsIStiTitleElement,l=B.Dashboard.Components.Helpers.StiMeterLoader,u=B.Base.StiJsonReportObjectHelper,h=B.Report.Components.TextFormats.StiFormatService,m=B.Report.Components.StiComponentToolboxPosition,c=B.Base.Localization.StiLocalization,d=B.Report.Components.TextFormats.StiGeneralFormatService,p=B.Dashboard.Helpers.StiMeterHelper,S=B.Report.Dashboard.StiItemSelectionMode,g=B.System.Drawing.FontStyle,b=B.System.Drawing.Font,f=B.Data.Engine.StiDataSortRule,C=B.Data.Engine.StiDataActionRule,y=B.Data.Engine.StiDataFilterRule,v=B.Data.Helpers.StiUsedDataHelper,w=B.System.Collections.List,D=B.System.Enum,x=B.Report.Dashboard.StiElementStyleIdent,T=B.System.Drawing.Color,F=B.Base.StiJsonSaveMode,M=B.Report.StiComponentId,I=B.Report.Dashboard.IStiTitleElement,k=B.Report.Dashboard.IStiTreeViewElement,R;B.Dashboard.Export.StiExportToolAttribute.add("StiTreeViewElement","Stimulsoft.Dashboard.Export.Tools.StiTreeViewElementExportTool");class A extends O.StiElement{constructor(e=t.empty){super(e),this.group="",this.title=new O.StiTitle,this._style=x.Auto,this.customStyleName="",this.userFilters=new w,this.transformActions=new w,this.transformFilters=new w,this.transformSorts=new w,this.dataTransformation={},this.dataFilters=new w,this.font=new b("Arial",8),this.foreColor=T.transparent,this.showAllValue=!1,this.showBlanks=!1,this.selectionMode=S.Multi,this.textFormat=new d,this.defaultClientRectangle=new t(0,0,200,300),this.helpUrl="user-manual/dashboards_data_filtering_tree_view.htm",this.keyMeters=new w,this.title.text=this.localizedName,this.title.visible=!1}implements(){return A.ImplementsStiTreeViewElement||(A.ImplementsStiTreeViewElement=super.implements().concat([k,I,e,...a,...n,r])),A.ImplementsStiTreeViewElement}clone(e){let t=super.clone(e);return t.keyMeters=this.keyMeters.select(e=>e.clone()).toList(),t.userFilters=this.userFilters.select(e=>e.clone()).toList(),t.transformActions=this.transformActions.select(e=>e.clone()).toList(),t.transformFilters=this.transformFilters.select(e=>e.clone()).toList(),t.transformSorts=this.transformSorts.select(e=>e.clone()).toList(),t.dataFilters=this.dataFilters.select(e=>e.clone()).toList(),t.textFormat=this.textFormat.clone(),t.title=null!=this.title?this.title.clone():null,t}get componentId(){return M.StiTreeViewElement}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyStringNullOrEmpty("ParentKey",this.parentKey),t.addPropertyJObject("TransformActions",u.Serialize.objectArray(this.transformActions,e)),t.addPropertyJObject("TransformFilters",u.Serialize.objectArray(this.transformFilters,e)),t.addPropertyJObject("TransformSorts",u.Serialize.objectArray(this.transformSorts,e)),t.addPropertyJObject("DataFilters",u.Serialize.objectArray(this.dataFilters,e)),t.addPropertyStringNullOrEmpty("ForeColor",u.Serialize.jColor(this.foreColor,T.transparent)),t.addPropertyStringNullOrEmpty("Font",u.Serialize.fontArial8(this.font)),t.addPropertyBool("ShowAllValue",this.showAllValue),t.addPropertyBool("ShowBlanks",this.showBlanks),t.addPropertyJObject("KeyMeters",u.Serialize.objectArray(this.keyMeters,e)),null!=this.title&&t.addPropertyJObject("Title",this.title.saveToJsonObject(e)),t.addPropertyEnum("SelectionMode",S,this.selectionMode,S.Multi),t.addPropertyEnum("Style",x,this.style,x.Auto),t.addPropertyStringNullOrEmpty("Group",this.group),t.addPropertyStringNullOrEmpty("CustomStyleName",this.customStyleName),this.textFormat.is(d)||null==this.textFormat||t.addPropertyJObject("TextFormat",this.textFormat.saveToJsonObject(e)),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"ParentKey":this.parentKey=t.value.toString();break;case"TransformActions":this.transformActions.addRange(t.value.properties().select(e=>C.loadFromJson(e.value)));break;case"TransformFilters":this.transformFilters.addRange(t.value.properties().select(e=>y.loadFromJson(e.value)));break;case"TransformSorts":this.transformSorts.addRange(t.value.properties().select(e=>f.loadFromJson(e.value)));break;case"DataFilters":this.dataFilters.addRange(t.value.properties().select(e=>y.loadFromJson(e.value)));break;case"ForeColor":this.foreColor=u.Deserialize.color(t.value.toString());break;case"Font":this.font=u.Deserialize.font(t.value,this.font);break;case"ShowAllValue":this.showAllValue=t.value.stimulsoft().toBoolean();break;case"ShowBlanks":this.showBlanks=t.value.stimulsoft().toBoolean();break;case"Title":this.title=O.StiTitle.createFromJsonObject(t.value);break;case"KeyMeters":this.keyMeters.addRange(t.value.properties().select(e=>l.loadFromJson(e.value)));break;case"SelectionMode":this.selectionMode=D.parse(S,t.value);break;case"Style":this.style=D.parse(x,t.value.toString());break;case"Group":this.group=t.value.toString();break;case"CustomStyleName":this.customStyleName=t.value.toString();break;case"TextFormat":this.textFormat=h.createFromJsonObject(t.value);break}}loadFromXml(r,o){super.loadFromXml(r,o);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"ParentKey":this.parentKey=e.textContent;break;case"TransformActions":this.transformActions.addRange(e.childNodes.select(e=>C.loadFromXml(e)));break;case"TransformFilters":this.transformFilters.addRange(e.childNodes.select(e=>y.loadFromXml(e)));break;case"TransformSorts":this.transformSorts.addRange(e.childNodes.select(e=>f.loadFromXml(e)));break;case"DataFilters":this.dataFilters.addRange(e.childNodes.select(e=>y.loadFromXml(e)));break;case"ForeColor":this.foreColor=B.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"Font":this.font=B.System.Convert.toFont(e.textContent);break;case"ShowAllValue":this.showAllValue=e.textContent.stimulsoft().toBoolean();break;case"ShowBlanks":this.showBlanks=e.textContent.stimulsoft().toBoolean();break;case"Title":this.title=O.StiTitle.createFromXml(e);break;case"KeyMeters":this.keyMeters.addRange(e.childNodes.select(e=>l.loadFromXml(e,o)));break;case"SelectionMode":this.selectionMode=D.parse(S,e.textContent);break;case"Style":this.style=D.parse(x,e.textContent);break;case"Group":this.group=e.textContent;break;case"CustomStyleName":this.customStyleName=e.textContent;break;case"TextFormat":this.textFormat=h.loadFormatFromXml(e,this.report);break}}}getParentKey(){return this.parentKey}setParentKey(e){this.parentKey=e}applyDefaultFilters(){return __awaiter(this,void 0,void 0,function*(){var e=yield o.StiTreeViewHelper.fetchDefaultUserFilters2(this);null!=e&&(this.userFilters=e)})}get style(){return this._style}set style(e){(this._style=e)!=x.Custom&&(this.customStyleName="")}fetchAllMeters(){let e=new w;return e.addRange(this.keyMeters),e}getMeters(){let e=new w;return e.addRange(this.keyMeters),e}retrieveUsedDataNames(){return v.getMany2(this.keyMeters)}get isDefined(){return null!=this.keyMeters&&0<this.keyMeters.length}shouldSerializeFont(){return!(null!=this.font&&"Arial"==this.font.name&&8==this.font.sizeInPoints&&this.font.style==g.Regular)}shouldSerializeForeColor(){return!T.transparent.equals(this.foreColor)}getKeyMeter(e){return null!=e?p.TreeView.getKey2(e):null}getKeyMeterByIndex(e){return e<this.keyMeters.length?this.keyMeters[e]:null}insertKeyMeter(e,t){var t=t.as(o.StiKeyTreeViewMeter);null!=t&&(0<=e&&e<this.keyMeters.length?this.keyMeters.insert(e,t):this.keyMeters.add(t))}removeKeyMeter(e){e<this.keyMeters.length&&this.keyMeters.removeAt(e)}removeAllKeyMeters(){this.keyMeters.clear()}addNewKeyMeter(){var e=new o.StiKeyTreeViewMeter;return this.keyMeters.add(e),e}addKey(e){null==this.keyMeters&&(this.keyMeters=new w),this.keyMeters.add(p.TreeView.getKey2(e))}convertFrom(e){let t=e.fetchAllMeters();if(null==t)return;let r=t.firstOrDefault(e=>e.is(i));if(r=null==r?t.firstOrDefault(e=>e.is(s)):r,null!=r){let e=new o.StiKeyTreeViewMeter;e.loadFromJsonObject(r.saveToJsonObject(F.Report)),this.keyMeters.clear(),this.keyMeters.add(e)}}shouldSerializeTextFormat(){return!this.textFormat.is(d)}setString(e,t){switch(e){case"Title.Text":this.title.text=t;break}}getString(e){switch(e){case"Title.Text":return this.title.text}throw new Error(`Property with name ${e}`)}getAllStrings(){return["Title.Text"]}get toolboxPosition(){return m.TreeViewElement}get localizedName(){return c.get("Components","StiTreeView")}createNew(){return new A}}o.StiTreeViewElement=A}(o=O.TreeView||(O.TreeView={}))}(Stimulsoft=Stimulsoft||{}),function(r){var e,t,o,s;t=e=r.Dashboard||(r.Dashboard={}),t=o=t.Components||(t.Components={}),function(e){var o=r.Data.Functions.StiExtValueConverter,i=r.Report.Dashboard.StiDataFilterCreator,u=r.System.StiString,s=r.Report.Components.TextFormats.StiDateFormatService,a=r.System.DateTime,n=r.Report.Dashboard.StiElementDataCache,l=r.Report.Dashboard.StiItemSelectionMode,h=r.System.Collections.List,m=r.Dashboard.Components.TreeView.StiTreeItem;class t{static fetchItems(s,e){var t=new m,i;for(i of s.rows){let r=0,o=t;for(let t of i){var a=null==t,n=u.isNullOrEmpty(t),l;if(e||!(a||n)){let e=null!=o.items?o.items.firstOrDefault(e=>e.key==t):null;null==e&&(e=new m(t,s.meters[r]),null==o.items&&(o.items=new h),o.items.add(e)),o=e}r++}}return t.items}static fetchDefaultUserFilters(s){return __awaiter(this,void 0,void 0,function*(){if(s.showAllValue)return null;if(s.selectionMode==l.Multi)return null;var e=yield n.getOrCreate(s);let t=this.fetchItems(e,s.showBlanks);if(null==t)return null;var r=t.firstOrDefault();if(null==r)return null;var o,e=r.meter.expression;return i.createEqualBasedOnValue(r.key,e,s).toList()})}static fetchDefaultUserFilters2(s){return __awaiter(this,void 0,void 0,function*(){if(s.showAllValue)return null;if(s.selectionMode==l.Multi)return null;var e=yield n.getOrCreate(s);let t=this.fetchItems(e,s.showBlanks);if(null==t)return null;var r=t.firstOrDefault();if(null==r)return null;var o,e=r.meter.expression;return i.createEqualBasedOnValue(r.key,e,s).toList()})}static format(e,t){var r,r;return t instanceof a&&!e.textFormat.is(s)?t.toShortDateString():o.isEligable(t,null===(r=null==e?void 0:e.report)||void 0===r?void 0:r.culture)?o.convert(t,null===(r=null==e?void 0:e.report)||void 0===r?void 0:r.culture):e.textFormat.format(t)}static format2(e,t){var r,r;return t instanceof a&&!e.textFormat.is(s)?t.toShortDateString():o.isEligable(t,null===(r=null==e?void 0:e.report)||void 0===r?void 0:r.culture)?o.convert(t,null===(r=null==e?void 0:e.report)||void 0===r?void 0:r.culture):e.textFormat.format(t)}}e.StiTreeViewHelper=t}(s=t.TreeView||(t.TreeView={}))}(Stimulsoft=Stimulsoft||{}),function(P){var e,t,r,E,o;t=e=P.Dashboard||(P.Dashboard={}),E=r=t.Components||(t.Components={}),function(o){var s=P.Base.Meters.IStiValueMeter,i=P.Base.Meters.IStiMeasureMeter,e=P.Base.JsonReportObject.IStiJsonReportObject,t=P.Report.Dashboard.ImplementsIStiTreeViewBoxElement,r=P.Report.Dashboard.ImplementsIStiFixedHeightElement,a=P.Report.Components.StiComponentToolboxPosition,n=P.Base.StiAlignValue,l=P.Report.Components.TextFormats.StiGeneralFormatService,u=P.Report.Components.TextFormats.StiFormatService,h=P.Dashboard.Components.Helpers.StiMeterLoader,m=P.Data.Engine.StiDataSortRule,c=P.Data.Engine.StiDataActionRule,d=P.Base.StiJsonReportObjectHelper,p=P.System.Drawing.Size,S=P.System.Drawing.Rectangle,g=P.Base.Localization.StiLocalization,b=P.Dashboard.Helpers.StiMeterHelper,f=P.Report.Dashboard.StiItemSelectionMode,C=P.System.Drawing.Font,y=P.System.Drawing.FontStyle,v=P.Data.Engine.StiDataFilterRule,w=P.Data.Helpers.StiUsedDataHelper,D=P.System.Collections.List,x=P.Dashboard.Components.TreeView.StiTreeViewHelper,T=P.Report.Dashboard.StiElementStyleIdent,F=P.System.Enum,M=P.System.Drawing.Color,I=P.Base.StiJsonSaveMode,k=P.Report.StiComponentId,R=P.Report.Dashboard.IStiFixedHeightElement,A=P.Report.Dashboard.IStiTreeViewBoxElement,B;P.Dashboard.Export.StiExportToolAttribute.add("StiTreeViewBoxElement","Stimulsoft.Dashboard.Export.Tools.StiTreeViewBoxElementExportTool");class O extends E.StiElement{constructor(e=S.empty){super(e),this.group="",this._style=T.Auto,this.customStyleName="",this.userFilters=new D,this.transformActions=new D,this.transformFilters=new D,this.transformSorts=new D,this.dataTransformation={},this.dataFilters=new D,this.font=new C("Arial",8),this.foreColor=M.transparent,this.showAllValue=!1,this.showBlanks=!1,this.selectionMode=f.Multi,this.textFormat=new l,this.defaultClientRectangle=new S(0,0,200,40),this.helpUrl="user-manual/dashboards_data_filtering_tree_view_box.htm",this.keyMeters=new D}implements(){return O.ImplementsStiTreeViewBoxElement||(O.ImplementsStiTreeViewBoxElement=super.implements().concat([A,R,...t,...r,e])),O.ImplementsStiTreeViewBoxElement}get componentId(){return k.StiTreeViewBoxElement}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.addPropertyStringNullOrEmpty("ParentKey",this.parentKey),t.addPropertyJObject("TransformActions",d.Serialize.objectArray(this.transformActions,e)),t.addPropertyJObject("TransformFilters",d.Serialize.objectArray(this.transformFilters,e)),t.addPropertyJObject("TransformSorts",d.Serialize.objectArray(this.transformSorts,e)),t.addPropertyJObject("DataFilters",d.Serialize.objectArray(this.dataFilters,e)),t.addPropertyStringNullOrEmpty("ForeColor",d.Serialize.jColor(this.foreColor,M.transparent)),t.addPropertyStringNullOrEmpty("Font",d.Serialize.fontArial8(this.font)),t.addPropertyBool("ShowAllValue",this.showAllValue),t.addPropertyBool("ShowBlanks",this.showBlanks),t.addPropertyEnum("SelectionMode",f,this.selectionMode,f.Multi),t.addPropertyJObject("KeyMeters",d.Serialize.objectArray(this.keyMeters,e)),t.addPropertyEnum("Style",T,this.style,T.Auto),t.addPropertyStringNullOrEmpty("Group",this.group),t.addPropertyStringNullOrEmpty("CustomStyleName",this.customStyleName),this.textFormat.is(l)||null==this.textFormat||t.addPropertyJObject("TextFormat",this.textFormat.saveToJsonObject(e)),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"ParentKey":this.parentKey=t.value.toString();break;case"TransformActions":this.transformActions.addRange(t.value.properties().select(e=>c.loadFromJson(e.value)));break;case"TransformFilters":this.transformFilters.addRange(t.value.properties().select(e=>v.loadFromJson(e.value)));break;case"TransformSorts":this.transformSorts.addRange(t.value.properties().select(e=>m.loadFromJson(e.value)));break;case"DataFilters":this.dataFilters.addRange(t.value.properties().select(e=>v.loadFromJson(e.value)));break;case"ForeColor":this.foreColor=d.Deserialize.color(t.value.toString());break;case"Font":this.font=d.Deserialize.font(t.value,this.font);break;case"ShowAllValue":this.showAllValue=t.value.stimulsoft().toBoolean();break;case"ShowBlanks":this.showBlanks=t.value.stimulsoft().toBoolean();break;case"SelectionMode":var r=F.parse(f,t.value.toString());null!=r&&(this.selectionMode=r);break;case"KeyMeters":this.keyMeters.addRange(t.value.properties().select(e=>h.loadFromJson(e.value)));break;case"Style":this.style=F.parse(T,t.value.toString());break;case"Group":this.group=t.value.toString();break;case"CustomStyleName":this.customStyleName=t.value.toString();break;case"TextFormat":this.textFormat=u.createFromJsonObject(t.value);break}}loadFromXml(r,o){super.loadFromXml(r,o);for(let t=0;t<r.childNodes.length;t++){let e=r.childNodes[t];switch(e.nodeName){case"ParentKey":this.parentKey=e.textContent;break;case"TransformActions":this.transformActions.addRange(e.childNodes.select(e=>c.loadFromXml(e)));break;case"TransformFilters":this.transformFilters.addRange(e.childNodes.select(e=>v.loadFromXml(e)));break;case"TransformSorts":this.transformSorts.addRange(e.childNodes.select(e=>m.loadFromXml(e)));break;case"DataFilters":this.dataFilters.addRange(e.childNodes.select(e=>v.loadFromXml(e)));break;case"ForeColor":this.foreColor=P.System.Text.StiReportObjectStringConverter.convertStringToColor(e.textContent);break;case"Font":this.font=P.System.Convert.toFont(e.textContent);break;case"ShowAllValue":this.showAllValue=e.textContent.stimulsoft().toBoolean();break;case"ShowBlanks":this.showBlanks=e.textContent.stimulsoft().toBoolean();break;case"SelectionMode":this.selectionMode=F.parse(f,e.textContent);break;case"KeyMeters":this.keyMeters.addRange(e.childNodes.select(e=>h.loadFromXml(e,o)));break;case"Style":this.style=F.parse(T,e.textContent);break;case"Group":this.group=e.textContent;break;case"CustomStyleName":this.customStyleName=e.textContent;break;case"TextFormat":this.textFormat=u.loadFormatFromXml(e,this.report);break}}}clone(e){let t=super.clone(e);return t.keyMeters=this.keyMeters.select(e=>e.clone()).toList(),t.userFilters=this.userFilters.select(e=>e.clone()).toList(),t.transformActions=this.transformActions.select(e=>e.clone()).toList(),t.transformFilters=this.transformFilters.select(e=>e.clone()).toList(),t.transformSorts=this.transformSorts.select(e=>e.clone()).toList(),t.dataFilters=this.dataFilters.select(e=>e.clone()).toList(),t.textFormat=this.textFormat.clone(),t}getParentKey(){return this.parentKey}setParentKey(e){this.parentKey=e}applyDefaultFilters(){return __awaiter(this,void 0,void 0,function*(){var e=yield x.fetchDefaultUserFilters(this);null!=e&&(this.userFilters=e)})}get style(){return this._style}set style(e){(this._style=e)!=T.Custom&&(this.customStyleName="")}fetchAllMeters(){let e=new D;return e.addRange(this.keyMeters),e}getMeters(){let e=new D;return e.addRange(this.keyMeters),e}retrieveUsedDataNames(){return w.getMany2(this.keyMeters)}get isDefined(){return null!=this.keyMeters&&0<this.keyMeters.length}shouldSerializeFont(){return!(null!=this.font&&"Arial"==this.font.name&&8==this.font.sizeInPoints&&this.font.style==y.Regular)}shouldSerializeForeColor(){return!M.transparent.equals(this.foreColor)}getKeyMeter(e){return null!=e?b.TreeViewBox.getKey2(e):null}getKeyMeterByIndex(e){return e<this.keyMeters.length?this.keyMeters[e]:null}insertKeyMeter(e,t){var t=t.as(o.StiKeyTreeViewBoxMeter);null!=t&&(0<=e&&e<this.keyMeters.length?this.keyMeters.insert(e,t):this.keyMeters.add(t))}removeKeyMeter(e){e<this.keyMeters.length&&this.keyMeters.removeAt(e)}removeAllKeyMeters(){this.keyMeters.clear()}addNewKeyMeter(){var e=new o.StiKeyTreeViewBoxMeter;return this.keyMeters.add(e),e}addKey(e){null==this.keyMeters&&(this.keyMeters=new D),this.keyMeters.add(b.TreeViewBox.getKey2(e))}convertFrom(e){let t=e.fetchAllMeters();if(null==t)return;let r=t.firstOrDefault(e=>e.is(s));if(r=null==r?t.firstOrDefault(e=>e.is(i)):r,null!=r){let e=new o.StiKeyTreeViewBoxMeter;e.loadFromJsonObject(r.saveToJsonObject(I.Report)),this.keyMeters.clear(),this.keyMeters.add(e)}}shouldSerializeTextFormat(){return!this.textFormat.is(l)}get toolboxPosition(){return a.TreeViewBoxElement}get localizedName(){return g.get("Components","StiTreeViewBox")}get minSize(){var e=null!=this.report?this.report.getCurrentPage():null;if(null==e)return p.empty;var e=n.alignToMaxGrid(this.defaultClientRectangle.height,e.gridSize,!0);return new p(0,e)}set minSize(e){}get maxSize(){var e=null!=this.report?this.report.getCurrentPage():null;if(null==e)return p.empty;var e=n.alignToMaxGrid(this.defaultClientRectangle.height,e.gridSize,!0);return new p(0,e)}set maxSize(e){}createNew(){return new O}}o.StiTreeViewBoxElement=O}(o=E.TreeViewBox||(E.TreeViewBox={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r;e=t=e.Dashboard||(e.Dashboard={}),function(e){class t{}e.StiInplaceDesigner=t}(r=e.Design||(e.Design={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o,s;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Design||(e.Design={}),e=o=e.Helpers||(e.Helpers={}),(e=s=e.StiRichTextAlignment||(e.StiRichTextAlignment={}))[e["Left"]=1]="Left",e[e["Right"]=2]="Right",e[e["Center"]=3]="Center",e[e["Justify"]=4]="Justify"}(Stimulsoft=Stimulsoft||{}),function(a){var e,t,r,o;t=e=a.Dashboard||(a.Dashboard={}),t=r=t.Design||(t.Design={}),function(e){var r=a.System.StiString,t=a.System.Drawing.Color,o=a.System.Drawing.Font,s=a.Base.Drawing.StiFontUtils;class i{constructor(){this.selectionFont=new o("Arial",12),this.selectionColor=t.black,this.font=new o("Arial",12),this.text="",this.selectedText=""}selectAll(){this.selectedText=this.text}select(e,t){!r.isNullOrEmpty(this.text)&&e<this.text.length&&(this.selectedText=this.text.substr(e,t))}beginUpdate(){}endUpdate(){}setSelectionFont(e){return this.selectionFont=s.changeFontName(this.selectionFont,e),!0}setSelectionSize(e){return this.selectionFont=s.changeFontSize(this.selectionFont,e),!0}setSelectionBold(e){return this.selectionFont=s.changeFontStyleBold(this.selectionFont,e),!0}setSelectionItalic(e){return this.selectionFont=s.changeFontStyleItalic(this.selectionFont,e),!0}setSelectionUnderlined(e){return this.selectionFont=s.changeFontStyleUnderline(this.selectionFont,e),!0}}e.StiRichBoxControl=i}(o=t.Helpers||(t.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(r){var e,t,o,s;t=e=r.Dashboard||(r.Dashboard={}),t=o=t.Design||(t.Design={}),function(e){var m=r.Base.Drawing.StiTextHorAlignment,c=r.Base.Drawing.StiTextRenderer,d=r.Base.Drawing.StiFontUtils,p=r.Dashboard.Design.Helpers.StiRichTextAlignment,S=r.System.Drawing.ColorTranslator,g=r.System.Drawing.FontStyle,b=r.Base.Drawing.StiHtmlState,f=r.Base.Drawing.StiHtmlTagsState,C=r.System.Drawing.Font,i=r.Dashboard.Design.Helpers.StiRichBoxControl,y=r.System.Drawing.Color,v=r.System.Enum,w=r.System.StiString;class t{setFontName(e,t,r,o){let s=new i;return this.setHtmlText(t,e,s,o),s.selectAll(),s.setSelectionFont(r),this.getHtmlText(s,o)}setFontSize(e,t,r,o){let s=new i;return this.setHtmlText(t,e,s,o),s.selectAll(),s.setSelectionSize(Math.round(r)),this.getHtmlText(s,o)}growFontSize(e,t,r){let o=new i;return this.setHtmlText(t,e,o,r),o.selectAll(),o.setSelectionSize(Math.round(o.selectionFont.size+1)),this.getHtmlText(o,r)}shrinkFontSize(e,t,r){let o=new i;return this.setHtmlText(t,e,o,r),o.selectAll(),0<o.selectionFont.size-1&&o.setSelectionSize(Math.round(o.selectionFont.size-1)),this.getHtmlText(o,r)}setFontBoldStyle(e,t,r,o){let s=new i;return this.setHtmlText(t,e,s,o),s.selectAll(),s.setSelectionBold(r),this.getHtmlText(s,o)}setFontItalicStyle(e,t,r,o){let s=new i;return this.setHtmlText(t,e,s,o),s.selectAll(),s.setSelectionItalic(r),this.getHtmlText(s,o)}setFontUnderlineStyle(e,t,r,o){let s=new i;return this.setHtmlText(t,e,s,o),s.selectAll(),s.setSelectionUnderlined(r),this.getHtmlText(s,o)}setColor(e,t,r,o){let s=new i;return this.setHtmlText(t,e,s,o),s.selectAll(),s.selectionColor=r,this.getHtmlText(s,o)}setHorAlignment(e,t,r,o){let s=new i;return this.setHtmlText(t,e,s,o),s.selectAll(),s.selectionAlignment=this.getAlignment(r),this.getHtmlText(s,o)}getFont(e,t,r){let o=new i;return this.setHtmlText(t,e,o,r),o.selectAll(),o.selectionFont}getColor(e,t,r){let o=new i;return this.setHtmlText(t,e,o,r),o.selectAll(),o.selectionColor}getHorAlign(e,t,r){let o=new i;return this.setHtmlText(t,e,o,r),o.selectAll(),this.getAlignment2(o.selectionAlignment)}setHtmlText(e,t,r,o){var s="Arial",i=12;r.selectAll(),r.setSelectionFont(s),r.setSelectionSize(i);var o=new f(!1,!1,!1,!1,i,s,o,y.white,!1,!1,0,0,0,m.Center);let a=null;var o=new b(o,0),n,l;for(l of c.parseHtmlToStates(e,o,!1)){var u=r.text.length;r.select(u,0);let e=null;e=w.isNullOrEmpty(l.ts.href)?l.text.toString():`<a href=\"${l.ts.href}\">${l.text.toString()}</a>`,r.text+=e,r.select(u,l.text.length);let t=g.Regular;l.ts.bold&&(t|=g.Bold),l.ts.italic&&(t|=g.Italic),l.ts.underline&&(t|=g.Underline);var h=l.ts.fontName,u=l.ts.fontSize;null==a&&(a=r.font=new C(h,u)),r.selectionFont=d.changeFontStyle2(h,u,t),r.selectionColor=l.ts.fontColor,r.selectionAlignment=this.getAlignment(l.ts.textAlign)}r.select(0,0)}getHtmlText(r,o){let s=!1,i=!1,a=!1,n=o,l="";r.selectAll();var e=null!=r.selectionFont?r.selectionFont.name:"Arial",t=null!=r.selectionFont?r.selectionFont.sizeInPoints:12,u=v.getName(p,r.selectionAlignment);l+=`<font face=\"${e}\" size=\"${t}\">`,l+=`<text-align=\"${u}\">`;for(let t=0;t<r.text.length;t++){r.select(t,1);var h=r.selectionFont,m=null!=h&&h.style&g.Bold,c=null!=h&&h.style&g.Italic,h=null!=h&&h.style&g.Underline,d;let e=r.selectionColor;"\n"==r.text[t]&&(l+="<br />"),m&&!s&&(s=!0,l+="<b>"),!m&&s&&(s=!1,l+="</b>"),c&&!i&&(i=!0,l+="<i>"),!c&&i&&(i=!1,l+="</i>"),h&&!a&&(a=!0,l+="<u>"),!h&&a&&(a=!1,l+="</u>"),n.equals(e)||(n=(n.equals(o)?l+=`<font-color=\"${S.toHtml(e)}\">`:e.equals(o)?l+="</font-color>":(l+="</font-color>",l+=`<font-color=\"${S.toHtml(e)}\">`),e)),l+=r.text[t]}return n.equals(o)||(l+="</font-color>"),a&&(l+="</u>"),i&&(l+="</i>"),s&&(l+="</b>"),l+="</text-align>",l+="</font>",l.toString()}getAlignment(e){switch(e){case m.Left:return p.Left;case m.Center:return p.Center;case m.Right:return p.Right;case m.Width:return p.Justify;default:throw new Error("NotSupportedException")}}getAlignment2(e){switch(e){case p.Left:return m.Left;case p.Center:return m.Center;case p.Right:return m.Right;case p.Justify:return m.Width;default:throw new Error("NotSupportedException")}}getSimpleText(e,t){var r=new i;return this.setHtmlText(e,null,r,t),r.text}}e.StiHtmlTextHelper=t}(s=t.Helpers||(t.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(l){var e,t,r;t=e=l.Dashboard||(l.Dashboard={}),function(e){var t=l.System.Drawing.StringTrimming,r=l.System.Drawing.Text.HotkeyPrefix,o=l.Report.Dashboard.IStiElement,s=l.Base.Drawing.StiTextOptions,a=l.Base.Drawing.StiTextRenderer,n=l.System.Drawing.Font;class i{static measure(e,t,r,o,s=null){var i=this.getDefaultTextOptions(),s=this.getTextScale(s,o);t.height=1e3;var o=new n("Arial",12);return a.measureText(e,r,o,t.clone(),1,i.wordWrap,i.rightToLeft,s,i.angle,i.trimming,i.lineLimit,!0,i)}static getDefaultTextOptions(){return new s(!1,!1,!1,0,r.None,t.None)}static getTextScale(e,t){if(null!=e)return e;var e=t.stimulsoft().as(o);return null!=e&&e.isDesigning?t.zoom:1}}e.StiAutoSizeHtmlTextHelper=i}(r=t.Helpers||(t.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(n){var e,t,r;t=e=n.Dashboard||(n.Dashboard={}),function(e){var t=n.Base.Drawing.StiHorAlignment,r=n.Data.Exceptions.StiTypeNotRecognizedException,o=n.System.Drawing.Size,s=n.Base.Drawing.StiTextDrawing,i=n.Base.Drawing.StiTextHorAlignment;class a{static toAlignment(e){switch(e){case t.Left:return i.Left;case t.Center:return i.Center;case t.Right:return i.Right;default:throw new r(e)}}static measure(e,t,r){var r=s.measureString(e,t,r);return new o(r.width,r.height)}static measureFontSize(e,t,r,o){var e=this.measure(e,t,o),t=e.width>r.width?r.width/e.width:1,e=e.height>r.height?r.height/e.height:1,e=Math.min(Math.abs(t),Math.abs(e));return o.size*e}}e.StiAutoSizeTextHelper=a}(r=t.Helpers||(t.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r;t=e=s.Dashboard||(s.Dashboard={}),function(e){var c=s.System.Drawing.Rectangle,r=s.Report.Dashboard.Helpers.StiElementScale,d=s.System.Collections.List,t=s.System.Collections.Hashtable;class o{static getSumRectangle(e){let t=new c(0,0,0,0);for(var r of e)r.right>t.right&&(t=new c(t.x,t.y,r.right-t.x,t.height)),r.bottom>t.bottom&&(t=new c(t.x,t.y,t.width,r.bottom-t.y));return t}static getLocationRectangles(t,r,e){if(1==r)return new d([this.checkMinRect(t.clone(),e)]);var o=t.toString()+" "+r.toString();if(this.hashLocations.contains(o))return this.hashLocations.get(o);let s=this.getSimpleRect(t.clone(),r,e);var e=this.getSimpleRect(new c(t.x,t.y,t.height,t.width),r,e),i,a;s.width*s.height<e.width*e.height&&(s=new c(e.x,e.y,e.height,e.width));let n=new d,l=s.x,u=s.y;for(let e=0;e<r;e++){var h=new c(l,u,s.width,s.height);n.add(h),l=Math.floor(h.right+h.width)<=t.right?h.right:(u=h.bottom,t.x)}this.hashLocations.add(o,n);let m=this.getSumRectangle(n);var o=m.toString()+" "+r.toString();return this.hashLocations.contains(o)||this.hashLocations.add(o,n),n}static getMinRectangle(e,t){var r=e.width*e.height/t;let o=e;while(o.width*o.height>r||o.isEmpty)o=o.width>o.height?new c(o.x,o.y,o.width/2,o.height):new c(o.x,o.y,o.width,o.height/2);return o}static prepareColumnRow(t,r,o,s,i){t.ref=1,r.ref=1;let a=s.x,n=s.y;for(let e=0;e<i-1;e++){var l=new c(a,n,s.width,s.height);a=l.right+l.width<=o.right?(1==r.ref&&t.ref++,l.right):(r.ref++,n=l.bottom,o.x)}}static getUsingRect(t,r,o){let s=r,i=r.x,a=r.y,n=r.width,l=r.height;for(let e=0;e<o;e++){var u=new c(i,a,r.width,r.height);n<u.right-t.x&&(n=u.right-t.x),l<u.bottom-t.y&&(l=u.bottom-t.y),s=new c(t.x,t.y,n,l),i=u.right+u.width<=t.right?u.right:(a=u.bottom,t.x)}return s}static checkMinRect(e,t){var t=r.factor(t);return e.width<80*t&&(e.width=80*t),e.height<50*t&&(e.height=50*t),e}static getSimpleRect(e,t,r){let o=this.getMinRectangle(e.clone(),t);o=this.checkMinRect(o,r);var s={ref:0},r={ref:0};this.prepareColumnRow(s,r,e.clone(),o,t);var t=this.getUsingRect(e.clone(),o,t);return t.width<e.width&&(o=new c(e.x,e.y,o.width+(e.width-t.width)/s.ref,o.height)),t.height<e.height&&(o=new c(e.x,e.y,o.width,o.height+(e.height-t.height)/r.ref)),o}}o.hashLocations=new t,e.StiElementLocationHelper=o}(r=t.Helpers||(t.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(x){var e,t,r;t=e=x.Dashboard||(x.Dashboard={}),function(f){var l=x.Report.Dashboard.Helpers.StiDashboardExpressionHelper,u=x.System.StiString,a=x.System.Drawing.Font,h=x.Base.Drawing.StiFontUtils,m=x.Report.Dashboard.Styles.StiDashboardStyleHelper,c=x.System.Drawing.Color,C=x.Report.Export.StiGaugeSvgHelper,d=x.Base.Drawing.StiSolidBrush,y=x.Report.Dashboard.StiElementDataCache,v=x.System.Drawing.Size,p=x.System.Drawing.Point,w=x.System.Drawing.Rectangle,S=x.System.Drawing.Graphics,D=x.Report.Export.StiSvgData,e=x.Report.Dashboard.Visuals.IStiGaugeVisualSvgHelper;class t{implements(){return t.ImplementsStiGaugeVisualSvgHelper||(t.ImplementsStiGaugeVisualSvgHelper=[e]),t.ImplementsStiGaugeVisualSvgHelper}writeGauge(d,p,S,g,b){return __awaiter(this,void 0,void 0,function*(){let e=new w(p.x,p.y,p.width,p.height);var t=p.component,r=yield y.tryToGetOrCreate(t);if(null==r)return;var o=new v(p.width,p.height);let s=(new x.Dashboard.Render.StiGaugeElementBuilder).render2(t,o,r),i=f.StiElementLocationHelper.getLocationRectangles(e.clone(),s().count2(),t);if(s=(new x.Dashboard.Render.StiGaugeElementBuilder).render2(t,new v(i[0].width,i[0].height),r),null==s||!s().any())return;let a=this.getTitleHeight(null,s,e.clone(),t,null),n=null!=a?a:0;var o=i[0],l=this.getTitleMinFontSize(null,s,t.font,o.width,o.height),o,u;l<t.font.size&&(a=this.getTitleHeight(null,s,e.clone(),t,l),n=null!=a?a:0);let h=0;g&&g.ref&&(o=f.StiElementLocationHelper.getSumRectangle(i),g.ref=o.height>e.height+e.top+5,g.ref&&(e.width-=15,i=f.StiElementLocationHelper.getLocationRectangles(e.clone(),s().count2(),t),s=(new x.Dashboard.Render.StiGaugeElementBuilder).render2(t,new v(i[0].width,i[0].height),r),e=f.StiElementLocationHelper.getSumRectangle(i),b.ref=x.System.Convert.toInt32(e.height),n=0));for(u of s()){var m=i[h].clone(),c;null!=a&&(c=new w(m.x,m.y,m.width,n),this.paintTitle(t,null,d,c,u.series,l));let e=new D;e.x=m.x/2,e.y=(m.y+n)/2,e.width=m.width,e.height=m.height-n,e.component=u.gauge,C.writeGauge(d,e,1,S,t["isSampleForStyles"]),h++}})}paintTitle(e,t,r,o,s,i){if(u.isNullOrEmpty(s))return;var a=h.changeFontSize(e.font,i),n=f.StiTitleMeasureHelper.measureTitle4(t,o.clone(),e.font,s),t=new w(o.x,o.y,o.width,n.height),n,e,n,n;u.isNullOrWhiteSpace(s)||(n=l.getForeColor(e,e.foreColor),e=c.transparent.equals(n)?m.getForeColor(e):n,n=S.measureString(s,a),n=new p(t.x+o.width/2-.39*n.width,t.y+n.height/2),C.writeText(r,s,a,new d(e),n,i)),o.y+=t.height,o.height-=t.height}getTitleMinFontSize(e,t,r,o,s){let i=null;var a=new w(0,0,o,s),n;for(n of t()){var l=f.StiAutoSizeTextHelper.measureFontSize(e,n.series,a,r);i=null==i?l:Math.min(i,l)}return i}getTitleHeight(e,t,r,o,s){var t=t().firstOrDefault(e=>!u.isNullOrEmpty(e.series));if(null==t)return null;let i=o.font;null!=s&&(i=new a(i.name,s,i.style));var t=f.StiTitleMeasureHelper.measureTitle4(e,r.clone(),i,t.series).height;if(t>r.height/2)return null;return t}}f.StiGaugeVisualSvgHelper=t}(r=t.Helpers||(t.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Visuals||(e.Visuals={}),function(e){class t{constructor(e,t,r){this.series=e,this.value=t,this.target=r}}e.StiIndicatorIteration=t}(o=e.Indicator||(e.Indicator={}))}(Stimulsoft=Stimulsoft||{}),function(p){var e,t,r;t=e=p.Dashboard||(p.Dashboard={}),function(e){var o=p.Data.Engine.StiDataSortDirection,s=p.Data.Engine.StiDataSortVariation,t=p.Dashboard.Helpers.StiCultureHelper,i=p.System.StiString,a=p.Base.Localization.StiLocalization,n=p.Report.Dashboard.StiReportParser,l=p.Base.Helpers.StiValueHelper,u=p.Data.Engine.StiDataTopNMode,h=p.Dashboard.Visuals.Indicator.StiIndicatorIteration,r=p.Dashboard.Components.Indicator.StiSeriesIndicatorMeter,m=p.Dashboard.Components.Indicator.StiValueIndicatorMeter,c=p.Dashboard.Components.Indicator.StiTargetIndicatorMeter;class d extends e.StiElementBuilder{render(i,a){let e=t.set(i.report);try{let t=this.getValueMeterIndex(a),r=this.getTargetMeterIndex(a),o=this.getSeriesMeterIndex(a),e=this.getSeriesKeys(a,o,this.getSeriesKeysLimitCount(i)),s=e.count2();var n=e.select(e=>new h(this.getSeries(a,o,e,i.report),this.getValue(a,t,o,s,e),this.getNullableValue(a,r,o,s,e))),n=d.processVariationSort(i,n);return d.processTopNElements(i,n)}finally{t.restore(e)}null!==e&&void 0!==e&&e.fix()}static processVariationSort(e,t){let r=e.userSorts;return t=null!=r&&r.any(e=>e.key==s.ident)?r.firstOrDefault().direction==o.Ascending?t.orderBy(e=>0!=e.target?e.value/e.target:0):t.orderByDescending(e=>0!=e.target?e.value/e.target:0):t}static processTopNElements(t,r){if(t.topN.mode==u.None)return r;let o=(r=t.topN.mode==u.Bottom?r.orderBy(e=>e.value):r.orderByDescending(e=>e.value)).take(t.topN.count);if(r.count2()>t.topN.count&&t.topN.showOthers){var s=r.skip(t.topN.count).sum(e=>l.tryToNumber(e.value));let e=r.skip(t.topN.count);var r=e.all(e=>null!=e?null==e.target:null)?null:e.sum(e=>l.tryToNullableNumber(e.target)),t=i.isNullOrEmpty(t.topN.othersText)?a.get("FormDesigner","Others"):n.parse(t.topN.othersText,t);o.add(new h(t,s,r))}return o}getValueMeterIndex(e){if(null==e)return-1;var t=e.meters.firstOrDefault(e=>e.is(m));return null!=t?e.meters.indexOf(t):-1}getTargetMeterIndex(e){if(null==e)return-1;var t=e.meters.firstOrDefault(e=>e.is(c));return null!=t?e.meters.indexOf(t):-1}getSeriesMeterIndex(e){if(null==e)return-1;var t=e.meters.firstOrDefault(e=>e.is(r));return null!=t?e.meters.indexOf(t):-1}}e.StiIndicatorElementBuilder=d}(r=t.Render||(t.Render={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r;e=t=e.Dashboard||(e.Dashboard={}),function(e){class t{draw(e,t){}}e.StiVisual=t}(r=e.Visuals||(e.Visuals={}))}(Stimulsoft=Stimulsoft||{}),function(l){var e,t,r;t=e=l.Dashboard||(l.Dashboard={}),function(e){var r=l.System.Drawing.StringAlignment,i=l.Base.Context.StiFontGeom,s=l.Base.Drawing.StiRotationMode,a=l.System.Drawing.Font,n=l.Base.Drawing.StiHorAlignment,o=l.System.Drawing.StringTrimming;class t{static getStringFormatGeom(e){let t=e.getGenericStringFormat();return t.trimming=o.None,t.alignment=r.Center,t.lineAlignment=r.Center,t}static measureAlignmentParameters(e,t,r,o){switch(e){case n.Left:r.ref=s.LeftCenter,o.ref.x=t.x,o.ref.y=t.y+t.height/2;break;case n.Center:r.ref=s.CenterCenter,o.ref.x=t.x+t.width/2,o.ref.y=t.y+t.height/2;break;case n.Right:r.ref=s.RightCenter,o.ref.x=t.x+t.width,o.ref.y=t.y+t.height/2;break}}static getFontSize(e,t,r,o){var o=new a(o.fontFamily.name,25/.72,o.style,o.unit),r=e.measureString(r,i.create(o));if(0==r.width||0==r.height)return 0;var o=t.width/r.width,r=t.height/r.height,s;return 25*(r<o?r:o)}static getFontSize2(e,t,r,o){var t=new a(t.fontFamily.name,25/.72),o=e.measureString(o,i.create(t));if(0==o.width||0==o.height)return 0;var t=r.width/o.width,o=r.height/o.height,s;return 25*(o<t?o:t)}}e.StiStringFormatHelper=t}(r=t.Helpers||(t.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(Z){var e,t,r,l,o;t=e=Z.Dashboard||(Z.Dashboard={}),l=r=t.Visuals||(t.Visuals={}),function(A){var B=Z.System.Drawing.Point,d=Z.System.StiString,O=Z.Report.Dashboard.StiIconAlignment,P=Z.Report.Components.TextFormats.StiNegativeColorChecker,g=Z.System.Drawing.Size,b=Z.System.Drawing.GraphicsUnit,a=Z.System.Drawing.FontStyle,E=Z.System.Drawing.Font,L=Z.Base.Context.StiFontGeom,N=Z.Report.Helpers.StiFontIcons,V=Z.Dashboard.Helpers.StiTextFormatHelper,z=Z.System.Drawing.Color,J=Z.System.Collections.List,j=Z.System.Drawing.Rectangle,H=Z.Report.Dashboard.Styles.StiDashboardStyleHelper,G=Z.Report.StiFontIconsHelper,X=Z.Dashboard.Helpers.StiStringFormatHelper,U=Z.Base.Drawing.StiRotationMode,o=Z.Report.Dashboard.StiIndicatorConditionPermissions,h=Z.Report.Dashboard.StiIndicatorFieldCondition,K=Z.Report.Components.TextFormats.StiPercentageFormatService,s=Z.Report.Dashboard.StiTargetMode,p=Z.Report.Dashboard.StiFontSizeMode,i=Z.Base.Context.StiInteractionDataGeom,n=Z.Base.Context.StiIndicatorInteractionData,W=Z.Report.Dashboard.StiIndicatorIconMode,q=Z.Base.Helpers.StiValueHelper,Y=Z.Report.Dashboard.StiReportParser,Q=Z.Report.Dashboard.StiIndicatorIconRangeMode;class e extends l.StiVisual{constructor(e,t){super(),this.minSide=20,this.element=e,this.iterations=t}draw(e,t){let r=.06*t.width;r<4&&(r=4),12<r&&(r=12);var o=new j(t.x+r/2,t.y+r/2,t.width-r,t.height-r);try{e.pushClip(t),1==this.iterations.length?this.drawSingleMode(e,t,o):1<this.iterations.length&&this.drawMultiMode(e,o),e.popClip()}finally{}}getContentRectangle(t){if(1<this.iterations.length){let e=t.height/this.iterations.length;return e<this.minSide&&(e=this.minSide),new j(t.x,t.y,t.width,e*this.iterations.length)}return t}drawSingleMode(t,e,r){if(0==this.iterations.length)return;var o=null!=this.iterations[0].target,s,i,a,n={ref:s=null},l={ref:i=null},u={ref:a=null},h=V.format(this.element.report,this.element.textFormat,this.iterations[0].value);this.getRectanglesSingleMode(t,h,r,n,l,u);var s=n.ref,i=l.ref,a=u.ref,m=this.processFontName(this.element.font.fontFamily.name,this.iterations[0]),c=this.processFontStyle(this.element.font,this.iterations[0]),d=new E(m,8,c);let p=this.processBackColor(this.iterations[0]);var S=this.processForeColor(this.iterations[0]),g=this.processGlyphColor(this.iterations[0]),r=this.processIcon(this.element.icon,this.iterations[0]),n=this.processIconAlignment(this.iterations[0]),l=this.processCustomIcon(this.iterations[0]),u;null!=p&&t.fillRectangle(p,e,null),this.element.report.isDesigning||(u=H.getHotBackColor(this.element),null==p&&(p=z.transparent),t.fillRectangle3(p,u,e,this.getInteractionDataGeom(this.iterations[0])));let b=S;if(this.iterations[0].value<0&&P.isNegativeInRed(this.element.textFormat)&&(b=StiOptions.Engine.negativeColor),this.drawTextIcon(t,h,d,G.getContent(r),b,g,s,n,l),o){var f=this.getVariation(this.iterations[0]),n=H.getIndicatorStyle(this.element),l=0<=f?n.positiveColor:n.negativeColor,l=this.processTargetIconColor(l,this.iterations[0]),o=0<=f?N.ArrowUp:N.ArrowDown,o=this.processTargetIcon(o,this.iterations[0]);let e=new K;e.decimalDigits=3;var n=V.formatAsPercentage2(this.element.report,e,f),f=0==f?O.None:O.Right,f=this.processTargetIconAlignment(f,this.iterations[0]);this.drawTextIcon(t,n,d,G.getContent(o),l,l,i,f,null)}var i=null,f={ref:i},c,c;this.measureFontSize(t,a,this.iterations[0].series,f),null!=(i=.88*f.ref)&&0<i&&(c=new E(m,i,c),c=L.create(c),t.drawRotatedString5(this.iterations[0].series,c,S,a,X.getStringFormatGeom(t),U.CenterCenter,0,!0))}getVariation(e){var t=e.value,r=e.target;let o=0;if(0!=r)switch(this.element.targetMode){case s.Variation:o=t/r-1,r<0&&(o=-o);break;case s.Percentage:o=t/r;break}return o}getFactorByFontSize(e,t,r,o){switch(r.fontSizeMode){case p.Auto:return.7;case p.Value:case p.Target:var s;return e.measureString(t,L.create(r.font)).height/o.height}return 0}getRectanglesSingleMode(e,t,r,o,s,i){var a,n=null!=this.iterations[0].target,l=!d.isNullOrEmpty(this.iterations[0].series);let u=.7,h=(1-u)/2,m=1-h-u,c=r.y;!l&&n?(this.element.fontSizeMode==p.Value?(u=this.getFactorByFontSize(e,t,this.element,r),h=1-u):this.element.fontSizeMode==p.Target&&(h=this.getFactorByFontSize(e,t,this.element,r),u=1-h),m=0):l&&!n?(h=0,m=1-u):l||n||(this.element.fontSizeMode!=p.Value?u=1:(u=this.getFactorByFontSize(e,t,this.element,r),c=r.y+(r.height-r.height*u)/2),h=0,m=0),o.ref=new j(r.x,c,r.width,r.height*u),s.ref=new j(o.ref.x,o.ref.bottom,r.width,r.height*h),i.ref=new j(o.ref.x,s.ref.bottom,r.width,r.height*m)}processFontStyle(e,t){var r=this.processFontBold(e.bold,t),o=this.processFontItalic(e.italic,t),s=this.processFontUnderline(e.underline,t),t=this.processFontStrikeout(e.strikeout,t);let i=a.Regular;return r&&(i^=a.Bold),o&&(i^=a.Italic),s&&(i^=a.Underline),t&&(i^=a.Strikeout),i}processFontStrikeout(e,t){for(var r of this.element.indicatorConditions)if(0<(r.permissions&o.FontStyleStrikeout)&&this.getConditionResult(t,r))return r.font.strikeout;return e}processFontUnderline(e,t){for(var r of this.element.indicatorConditions)if(0<(r.permissions&o.FontStyleUnderline)&&this.getConditionResult(t,r))return r.font.underline;return e}processFontItalic(e,t){for(var r of this.element.indicatorConditions)if(0<(r.permissions&o.FontStyleItalic)&&this.getConditionResult(t,r))return r.font.italic;return e}processFontBold(e,t){for(var r of this.element.indicatorConditions)if(0<(r.permissions&o.FontStyleBold)&&this.getConditionResult(t,r))return r.font.bold;return e}processFontName(e,t){for(var r of this.element.indicatorConditions)if(0<(r.permissions&o.Font)&&this.getConditionResult(t,r))return r.font.name;return e}processIcon(e,t){for(var r of this.element.indicatorConditions)if(0<(r.permissions&o.Icon)&&this.getConditionResult(t,r))return r.icon;return e}processTargetIcon(e,t){for(var r of this.element.indicatorConditions)if(0<(r.permissions&o.TargetIcon)&&this.getConditionResult(t,r))return r.targetIcon;return e}processCustomIcon(e){for(var t of this.element.indicatorConditions)if(0<(t.permissions&o.Icon)&&this.getConditionResult(e,t))return t.customIcon;return this.element.customIcon}processIconAlignment(e){for(var t of this.element.indicatorConditions)if(0<(t.permissions&o.Icon)&&this.getConditionResult(e,t))return t.iconAlignment;return this.element.iconAlignment}processTargetIconAlignment(e,t){for(var r of this.element.indicatorConditions)if(0<(r.permissions&o.TargetIcon)&&this.getConditionResult(t,r))return r.targetIconAlignment;return e}processBackColor(e){for(var t of this.element.indicatorConditions)if(0<(t.permissions&o.BackColor)&&this.getConditionResult(e,t))return t.backColor;return null}processForeColor(e){for(var t of this.element.indicatorConditions)if(0<(t.permissions&o.TextColor)&&this.getConditionResult(e,t))return t.textColor;return H.getForeColor(this.element)}processGlyphColor(e){for(var t of this.element.indicatorConditions)if(0<(t.permissions&o.Icon)&&this.getConditionResult(e,t))return t.iconColor;return H.getGlyphColor(this.element)}processTargetIconColor(e,t){for(var r of this.element.indicatorConditions)if(0<(r.permissions&o.TargetIcon)&&this.getConditionResult(t,r))return r.targetIconColor;return e}getConditionResult(r,t){let o=null;switch(t.field){case h.Value:o=r.value;break;case h.Series:o=r.series;break;case h.Target:o=r.target;break;case h.Variation:{var s=this.getVariation(r);let e=new K;e.decimalDigits=3;let t=V.formatAsPercentage2(this.element.report,e,s);o=t.replace("%","").stimulsoft().toNumber();break}}var e=!1;let i=this.getConditionValue(t);if(null!=o){t.field!=h.Value&&t.field!=h.Target&&t.field!=h.Variation||(o=null==o?0:o.stimulsoft().toNumber());let e=o;if(null!=e&&null!=i){o.stimulsoft().getType()!=i.stimulsoft().getType()&&(o=o.toString(),i=i.stimulsoft().toString(),e=o);try{switch(t.condition){case Z.Report.Components.StiFilterCondition.EqualTo:return 0==e.stimulsoft().compareTo(i);case Z.Report.Components.StiFilterCondition.NotEqualTo:return 0!=e.stimulsoft().compareTo(i);case Z.Report.Components.StiFilterCondition.GreaterThan:return 1==e.stimulsoft().compareTo(i);case Z.Report.Components.StiFilterCondition.GreaterThanOrEqualTo:return 0<=e.stimulsoft().compareTo(i);case Z.Report.Components.StiFilterCondition.LessThan:return-1==e.stimulsoft().compareTo(i);case Z.Report.Components.StiFilterCondition.LessThanOrEqualTo:return e.stimulsoft().compareTo(i)<=0;case Z.Report.Components.StiFilterCondition.Containing:{let e=o.toString();var a=i.toString();return-1!=e.indexOf(a)}case Z.Report.Components.StiFilterCondition.NotContaining:{let e=o.toString();var n=i.toString();return-1==e.indexOf(n)}case Z.Report.Components.StiFilterCondition.BeginningWith:{let e=o.toString();var l=i.toString();return e.stimulsoft().startsWith(l)}case Z.Report.Components.StiFilterCondition.EndingWith:{let e=o.toString();var u=i.toString();return e.stimulsoft().endsWith(u)}}}catch(e){}}}return e}getConditionValue(e){if(d.isNullOrEmpty(e.value))return null;switch(e.field){case h.Value:case h.Target:case h.Variation:return e.value.stimulsoft().toNumber();default:return e.value.toString()}}drawMultiMode(e,t){if(0==this.iterations.length)return;let r=this.getTargetValues();r.any(e=>null!=e)?this.drawMultiModeWithTarget(e,t.clone(),r):this.drawMultiModePresent(e,t.clone())}drawMultiModePresent(o,s){var r=this.getMaxValue();let i=s.height/this.iterations.length;i<this.minSide&&(i=this.minSide);let a=new J,n=new J,l=new J;var t=G.getFontIcons(this.element.iconSet);let u=new J;if(this.element.iconMode==W.Auto){var h=1/t.length;for(let e=0;e<t.length;e++){var m=e*h*r,c=(1+e)*h*r;u.add(new A.StiIndicatorIconRangeValue(m,c,t[e]))}}else for(var d of this.element.iconRanges){let e=q.tryToNumber(Y.parse(d.startExpression,this.element)),t=q.tryToNumber(Y.parse(d.endExpression,this.element));this.element.iconRangeMode==Q.Percentage&&(e=e/100*r,t=t/100*r),u.add(new A.StiIndicatorIconRangeValue(e,t,d.icon))}for(let t of this.iterations){a.add(t.series),n.add(V.format(this.element.report,this.element.textFormat,t.value));var e=u.where(e=>e.isBetween(t.value)).firstOrDefault();null!=e?l.add(e.icon):l.add(null)}var p=this.element.font;let S=null;var g=new E(p.fontFamily.name,1,p.style,p.unit);for(let e=0;e<this.iterations.length;e++){var b=a[e]+n[e]+"Icon",f=new j(s.x,s.y,s.width,i),b=X.getFontSize(o,f,b,g);(null==S||S>b)&&(S=b)}var C=X.getStringFormatGeom(o);let y=this.element.font.size/13*S;if(y>S&&(y=S),y<1)return;let v=new J,w=null;var D=new L("Stimulsoft",.6*y,Z.System.Drawing.FontStyle.Regular,Z.System.Drawing.GraphicsUnit.Point);for(let t=0;t<this.iterations.length;t++){var x=this.processFontName(p.fontFamily.name,this.iterations[t]),T=this.processFontStyle(p,this.iterations[t]),x=new E(x,y,T),T=L.create(x);let e=new J;var x=s.y+i*t,x=new j(s.x,x,s.width,i);e.add(x);var T=o.measureString(a[t],T),T=new j(x.x,x.y,T.width,i);e.add(T);var T=o.measureString(G.getContent(l[t]),D);(null==w||w>s.right-T.width)&&(w=s.right-T.width);var T=new j(w,x.y,T.width,i);e.add(T),v.add(e)}for(let r=0;r<this.iterations.length;r++){var F=this.processFontName(p.fontFamily.name,this.iterations[r]),M=this.processFontStyle(p,this.iterations[r]),I=new E(F,y,M),k=L.create(I),F=v[r],R;let e=F[0];if(!e.intersectsWith(s))return;let t=this.processBackColor(this.iterations[r]);null!=t&&o.fillRectangle(t,e,null),this.element.report.isDesigning||(R=H.getHotBackColor(this.element),null==t&&(t=z.transparent),o.fillRectangle3(t,R,e,this.getInteractionDataGeom(this.iterations[r])));var M=F[1],I=this.processForeColor(this.iterations[r]);o.drawRotatedString5(a[r],k,I,M,C,U.CenterCenter,0,!0);var R=F[2],M=this.processGlyphColor(this.iterations[r]),F=l[r],F;null!=F&&(F=this.processIcon(F,this.iterations[r]),o.drawRotatedString5(G.getContent(F),D,M,R,X.getStringFormatGeom(o),U.CenterCenter,0,!0)),o.drawRotatedString4(n[r],k,I,new B(w-4,R.y+R.height/2),C,U.RightCenter,0,!0)}}drawMultiModeWithTarget(s,i,e){let a=i.height/this.iterations.length;a<this.minSide&&(a=this.minSide);let n=new J,l=new J,u=new J,h=new J,m=new J;for(let t=0;t<this.iterations.length;t++){var r=this.iterations[t];n.add(r.series),l.add(V.format(this.element.report,this.element.textFormat,r.value));var o=this.getVariation(this.iterations[t]);let e=new K;e.decimalDigits=3;var c=V.formatAsPercentage2(this.element.report,e,o),r=0<=o?N.ArrowUp:N.ArrowDown;u.add(c),h.add(r),m.add(0==o?O.None:O.Right)}let t=null;var d=this.element.font,p=new E(d.fontFamily.name,1,d.style,d.unit);for(let e=0;e<this.iterations.length;e++){var S=n[e]+l[e]+u[e]+"DeltaIcon",g=new j(i.x,i.y,i.width,a),S=X.getFontSize(s,g,S,p);(null==t||t>S)&&(t=S)}var b=X.getStringFormatGeom(s);let f=this.element.font.size/13*t;if(f>t&&(f=t),f<1)return;let C=new L(d.fontFamily.name,f,d.style,d.unit);var y=new L("Stimulsoft",.99*f,Z.System.Drawing.FontStyle.Regular,Z.System.Drawing.GraphicsUnit.Point);let v=null;for(let e=0;e<this.iterations.length;e++){var w=h[e],w;null!=w&&(w=s.measureString(G.getContent(w),y),(null==v||v>i.right-w.width)&&(v=i.right-w.width))}let D=null;for(let e=0;e<this.iterations.length;e++){var x=s.measureString(u[e],C);(null==D||D>v-x.width)&&(D=v-x.width)}var T=H.getIndicatorStyle(this.element);for(let o=0;o<this.iterations.length;o++){let e=this.processForeColor(this.iterations[o]);var F=this.processFontName(d.fontFamily.name,this.iterations[o]),M=this.processFontStyle(d,this.iterations[o]),I=new E(F,f,M);C=L.create(I);var k=i.y+a*o,R;let t=new j(i.x,k,i.width,a);if(!t.intersectsWith(i))return;let r=this.processBackColor(this.iterations[o]);null!=r&&s.fillRectangle(r,t,null),this.element.report.isDesigning||(R=H.getHotBackColor(this.element),null==r&&(r=z.transparent),s.fillRectangle3(r,R,t,this.getInteractionDataGeom(this.iterations[o])));var F=s.measureString(n[o],C),M=new j(t.x,t.y,F.width,a);s.drawString(n[o],C,e,M,b);var I=h[o]==N.ArrowUp?T.positiveColor:T.negativeColor,I=this.processTargetIconColor(I,this.iterations[o]),R=s.measureString(G.getContent(h[o]),y),F=new j(v,t.y,R.width,a),M=s.measureString(u[o],C),R=new j(v-M.width,t.y,M.width,a),M=h[o],M=this.processTargetIcon(M,this.iterations[o]),A;s.drawRotatedString5(u[o],C,I,R,b,U.CenterCenter,0,!0),this.processTargetIconAlignment(m[o],this.iterations[o])!=O.None&&s.drawRotatedString5(G.getContent(M),y,I,F,X.getStringFormatGeom(s),U.CenterCenter,0,!0),this.iterations[o].value<0&&P.isNegativeInRed(this.element.textFormat)&&(e=StiOptions.Engine.negativeColor);var F=s.measureString(l[o],C),F=new j(D-F.width,k,F.width,a);s.drawRotatedString4(l[o],C,e,new B(F.right,F.y+F.height/2),b,U.RightCenter,0,!0)}}getInteractionDataGeom(e){var e,e;let t=new n;t.value=e.value,t.seriesText=e.series,t.target=e.target;let r=new i;return r.interactionToolTip=null===(e=this.element.interaction)||void 0===e?void 0:e.toolTip,r.interactionHyperlink=null===(e=this.element.interaction)||void 0===e?void 0:e.hyperlink,r.interactionData=t,r}getMaxValue(){let e=0;for(var t of this.iterations)e<t.value&&(e=t.value);return e}getTargetValues(){let e=new J;for(var t of this.iterations)e.add(t.target);return e}drawTextIcon(e,t,r,o,s,i,a,n,l){let u,h,m=null;if(n==O.None){u=j.empty,h=new j(a.x,a.y,a.width,a.height);var c={ref:m};this.measureFontSize(e,h.clone(),t,c),m=c.ref}else if(n==O.Right||n==O.Left){var d={ref:m};if(this.measureFontSize(e,a.clone(),t,d),m=d.ref,null==m&&m<=0)return;var p=new L("Stimulsoft",m,Z.System.Drawing.FontStyle.Regular,Z.System.Drawing.GraphicsUnit.Point),S=new L(r.fontFamily.name,m,r.style,Z.System.Drawing.GraphicsUnit.Point),c=e.measureString(t,S),d=e.measureString(o,p),S=c.width+d.width>a.width?a.width/(c.width+d.width):1;m*=S;var p=new g(c.width*S,c.height*S),c=new g(d.width*S,d.height*S),d=n==O.Right?a.x+(a.width-p.width-c.width)/2:a.x+(a.width-p.width-c.width)/2+c.width,S=a.y+(a.height-p.height)/2;h=new j(d,S,p.width,p.height);var S=n==O.Right?h.right:h.x-c.width,p=a.y+(a.height-c.height)/2;u=new j(S,p,c.width,c.height)}else{h=n==O.Bottom?new j(a.x,a.y,a.width,a.height/2):new j(a.x,a.y+a.height/2,a.width,a.height/2),u=n==O.Bottom?new j(a.x,a.y+a.height/2,a.width,a.height/2):new j(a.x,a.y,a.width,a.height/2);var a={ref:m};this.measureFontSize(e,h,t,a),m=a.ref}var r,n;null!=m&&0<m&&(r=new L(r.fontFamily.name,m,r.style,b.Pixel),e.drawRotatedString5(t,r,s,h,X.getStringFormatGeom(e),U.CenterCenter,0,!0)),null!=m&&0<m&&n!=O.None&&(null==l||0==l.length?(n=new L("Stimulsoft",.6*m,Z.System.Drawing.FontStyle.Regular,Z.System.Drawing.GraphicsUnit.Point),e.drawRotatedString5(o,n,i,u,X.getStringFormatGeom(e),U.CenterCenter,0,!0)):e.drawImage(l,u))}getFontGeom(e){return new L("Arial",e,a.Bold,b.Point)}measureFontSize(e,t,r,o){var e=e.measureString(r,this.getFontGeom(1e3));if(0==e.width||0==e.height)return void(o.ref=0);var r=t.width/e.width*1e3,e=t.height/e.height*1e3,r=e<r?e:r;(null==o.ref||o.ref>r)&&(o.ref=r)}getElementSide(e,t){var r=e?t.height:t.width,t=e?t.width:t.height;let o=r/this.iterations.length;return o>t&&(o=t),o}}A.StiIndicatorVisual=e}(o=l.Indicator||(l.Indicator={}))}(Stimulsoft=Stimulsoft||{}),function(y){var e,t,r;t=e=y.Dashboard||(y.Dashboard={}),function(e){var h=y.System.StiString,m=y.System.Drawing.Rectangle,c=y.Dashboard.Visuals.Indicator.StiIndicatorIteration,d=y.System.Collections.List,t=y.Report.Dashboard.Visuals.IStiIndicatorVisualSvgHelper,p=y.Report.Dashboard.StiElementDataCache,S=y.Dashboard.Render.StiIndicatorElementBuilder,g=y.Dashboard.Visuals.Indicator.StiIndicatorVisual,b=y.Base.Context.StiContextPainter,f=y.Base.Context.StiContext,C=y.Report.Export.Services.Helpers.StiContextSvgHelper;class r{implements(){return r.ImplementsStiIndicatorVisualSvgHelper||(r.ImplementsStiIndicatorVisualSvgHelper=[t]),r.ImplementsStiIndicatorVisualSvgHelper}writeIndicator(a,n,l,u){return __awaiter(this,void 0,void 0,function*(){let e=new m(0,0,n.width,n.height);var t=n.component.as(y.Dashboard.Components.Indicator.StiIndicatorElement),r=yield p.tryToGetOrCreate(t);if(null==r)return;let o=(new S).render(t,r);if(null==o||!o.any())return;var r=new b,r=new f(r,!0,!1,!1,1),s;if(t["isSampleForStyles"]){o=new d;let e=new c;e.value=100,o.add(e)}let i=new g(t,o.toList());l&&l.ref&&(s=i.getContentRectangle(e),l.ref=s.height>e.height+5,l.ref&&(e.width-=15,s=i.getContentRectangle(e),e=s,e.height+=10,u.ref=y.System.Convert.toInt32(e.height))),i.draw(r,e.clone()),a.writeStartElement("g");var t=l&&l.ref?0:n.x+.5,s=l&&l.ref?0:n.y+.5;a.writeAttributeString("transform",h.format("translate({0},{1})",t,s)),C.writeGeoms(a,r,!1),a.writeEndElement()})}}e.StiIndicatorVisualSvgHelper=r}(r=t.Helpers||(t.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(p){var e,t,r;t=e=p.Dashboard||(p.Dashboard={}),function(e){var w=p.System.StiArray,r=p.Dashboard.Components.OnlineMap.StiLocationArgumentMapMeter,n=p.Base.Drawing.StiImageConverter,l=p.Report.Components.StiImageHelper,T=p.Data.Comparers.StiArrayEqualityComparer,D=p.Report.StiFontIconsHelper,x=p.System.StiString,o=p.System.StiPromise,s=p.Dashboard.Components.OnlineMap.StiLongitudeMapMeter,i=p.Dashboard.Components.OnlineMap.StiLatitudeMapMeter,a=p.Dashboard.Components.OnlineMap.StiLocationMapMeter,u=p.Dashboard.Components.OnlineMap.StiLocationColorMapMeter,h=p.Dashboard.Components.OnlineMap.StiLocationValueMapMeter,F=p.System.Convert,M=p.System.Text.Encoding,I=p.System.Collections.Hashtable,m=p.Report.Dashboard.StiElementDataCache,k=p.System.Drawing.ColorTranslator,R=p.Report.Dashboard.Styles.StiDashboardStyleHelper,A=p.System.Drawing.Color,c=p.Base.Helpers.StiBingMapHelper,B=p.Base.Helpers.StiValueHelper,O=p.Report.Dashboard.StiOnlineMapLocationColorType,P=p.Report.Dashboard.StiOnlineMapValueViewMode,E=p.Base.Drawing.StiColorUtils,d=p.Report.Maps.StiMapHelper,L=p.System.Collections.List,N=p.Report.Dashboard.StiOnlineMapCulture,V=p.System.Enum,z=p.Report.Dashboard.StiOnlineMapLocationType;class t{static get ICON(){return null==this._ICON&&(this._ICON=F.toBase64String(M.UTF8.getBytes('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" fill="#af6682" stroke="#663a4c"/><circle cx="12" cy="9" r="3" fill="#f7f4f2"/></svg>'))),this._ICON}static get EMPTY_ICON(){return null==this._EMPTY_ICON&&(this._EMPTY_ICON=F.toBase64String(M.UTF8.getBytes('<svg xmlns="http://www.w3.org/2000/svg" width="1" height="1" ></svg>'))),this._EMPTY_ICON}static getBingMapScriptAsync(a,e){let t=new o;return setTimeout(()=>__awaiter(this,void 0,void 0,function*(){var r=yield m.tryToGetOrCreate(a);let o=this.calculateMapData(r,a);if(e){var s=a.padding,i;o["outerStyle"]="display: table;\r\n"+`padding:${s.top}px ${s.right}px ${s.bottom}px ${s.left}px;`;let t=a.title;if(t.visible){let e="";t.font.bold&&(e+="font-weight: bold;"),t.font.italic&&(e+="font-style: italic;"),(t.font.strikeout||t.font.underline)&&(i=t.font.underline?t.font.strikeout?"underline line-through":"underline":t.font.strikeout?"line-through":"none",e+=`text-decoration: ${i};`);var r=k.toHtml(A.transparent.equals(t.foreColor)?R.getTitleForeColor(a):t.foreColor),s=k.toHtml(A.transparent.equals(t.backColor)?R.getBackColor(a):t.backColor),i=t.horAlignment.toString().toLowerCase();o["title"]=`font-family: ${t.font.name}; font-size: ${t.font.size}pt; color: ${r};`+`${e}background-color:${s};text-align:${i}'>${t.text}</div>`}}t.callTry(c.getScript(o))}),0),t}static calculateMapData(n,l){let u={};var r=this.getLongitudeMeterIndex(n),o=this.getLatitudeMeterIndex(n),h=this.getLocationMeterIndex(n),m=this.getLocationColorMeterIndex(n),c=this.getLocationArgumentMeterIndex(n),d=this.getLocationValueMeterIndex(n),e=R.isDarkStyle(l.dashboard);if(null!=n)if(-1!=o&&-1!=r){let e=[],t=0;for(var s of n.rows){t++;var i=s[o],s=s[r];if(null==i||null==s)continue;var i=B.tryToNumber(i).toString().replace(",","."),s=B.tryToNumber(s).toString().replace(",",".");if(null==l.customIcon?e.push({lat:i,lon:s,fontIcon:D.getContent(l.icon).charCodeAt(0),fontIconColor:`rgb(${l.iconColor.r}, ${l.iconColor.g}, ${l.iconColor.b})`}):e.push({lat:i,lon:s,anchorX:this.MAX_RADIUS,anchorY:2*this.MAX_RADIUS}),t>this.MAX_LOCATIONS)break}u["pushpins"]=e}else if(-1!=h){let r=null,o=null;if(l.locationColorType==O.ColorEach)r=this.getColors(Math.min(n.rows.length,this.MAX_LOCATIONS));else if(l.locationColorType==O.Group&&-1!=m){let t=[];for(let e=0;e<n.rows.length;e++){var p=null!=n.rows[e][m]?n.rows[e][m].toString():"";t.stimulsoft().contains(p)||t.push(p)}var S=this.getColors(t.length);o=new I;for(let e=0;e<t.length;e++)o.set(t[e],S[e])}let t=new L;if(0<=d)for(let e=0;e<Math.min(n.rows.length,this.MAX_LOCATIONS);e++)t.add(B.tryToNumber(n.rows[e][d]));w.sort(t);let s=t,i=new Object,a=0;while(a<n.rows.length&&a<this.MAX_LOCATIONS){var g=n.rows[a][h],b,f,C,y,v,b,f,f;if(null==g){a++;continue}let e=A.limeGreen,t=null;l.locationColorType==O.Single?(e=l.locationColor,t=A.transparent.equals(l.locationColor)?"Transparent":null):l.locationColorType==O.ColorEach?e=r[a]:(l.locationColorType==O.Group||l.locationColorType==O.Value)&&0<=m&&(b=null!=n.rows[a][m]?n.rows[a][m].toString():"",l.locationColorType==O.Group&&o.containsKey(b)&&(e=o.get(b)),l.locationColorType!=O.Value||x.isNullOrEmpty(b)||(t=b)),i[g]={fillStyle:null!=t?t:`rgba(${e.r}, ${e.g}, ${e.b}, 0.5)`,strokeStyle:"Transparent"==t?t:"#d3d3d3"},(0<=d||l.valueViewMode==P.Icon)&&(l.valueViewMode==P.Bubble?(f=s.indexOf(B.tryToNumber(n.rows[a][d]))/s.length,C=2*this.MAX_RADIUS+2,y=this.MIN_RADIUS+Math.ceil(f*this.DELTA_RADIUS),v=this.MAX_RADIUS+1,b=E.dark(null!=t?this.parseColor(t):e,70),f=null!=t?t:`rgba(${e.r}, ${e.g}, ${e.b}, 0.5)`,f=`<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${C}\" height=\"${C}\">`+`<circle cx=\"${v}\" cy=\"${v}\" r=\"${y}\" stroke=\"rgba(${b.r}, ${b.g}, ${b.b}, ${b.a})\" `+`stroke-width=\"1\" fill=\"${f}\"/>`+"</svg>",i[g]["icon"]=F.toBase64String(M.UTF8.getBytes(f)),i[g]["anchorX"]=v,i[g]["anchorY"]=v):l.valueViewMode==P.Value?(i[g]["icon"]=this.EMPTY_ICON,i[g]["title"]=null!=n.rows[a][d]?n.rows[a][d].toString():"",i[g]["anchorX"]=1,i[g]["anchorY"]=7):l.valueViewMode==P.Icon?(null==l.customIcon&&(i[g]["fontIcon"]=D.getContent(l.icon).charCodeAt(0),i[g]["fontIconColor"]=`rgb(${l.iconColor.r}, ${l.iconColor.g}, ${l.iconColor.b})`),0<d&&(i[g]["title"]=null!=n.rows[a][d]?n.rows[a][d].toString():"")):l.valueViewMode==P.Chart&&(i[g]["chart"]=this.getChartData(n,h,d,c,n.rows[a][h]),i[g]["icon"]=this.EMPTY_ICON)),a++}u["locations"]=i,u["locationType"]=V.getName(z,l.locationType)}(l.valueViewMode==P.Icon||-1!=o&&-1!=r)&&null!=l.customIcon&&this.getCustomIcon(l.customIcon,u),u["theme"]=e?"canvasDark":"canvasLight",u["culture"]=N[l.culture].toString().replace("_","-");let t=R.getBackColor(l);return A.transparent.equals(t)&&null!=l.report&&l.report.info.fillComponent&&l.isDesigning&&(t=A.fromArgb(153,A.white)),u["backgroundColor"]=k.toHtml(t),u}static getChartData(t,i,a,n,l){let u=new I;try{if(0<=i&&0<=a&&0<=n){var h=this.CHART_RADIUS,m=t.meters[n],c=t.meters[a],d=t.meters[i];let e=t.rows.where(e=>e[i]==l);var p=e.groupBy(e=>[e[n]],new T).select(e=>e.key.stimulsoft().toArray()[0]).toList();let r=new L;for(let t of p)r.add(e.where(e=>e[n]==t).select(e=>e[a]).sum(e=>B.tryToNumber(e)));var S=r.sum(),g=this.getColors(Math.min(p.countItems,this.MAX_CHART_SECTORS));let o=0,s=[];for(let t=0;t<Math.min(p.countItems,this.MAX_CHART_SECTORS);t++){let e=p[t];var b=r[t],f=b/S*6.28318530716,C=h+1+h*Math.cos(o),y=h+1+h*Math.sin(o),v=h+1+h*Math.cos(o+f),w=h+1+h*Math.sin(o+f),D=.5<b/S?1:0,x=E.dark(g[t],100);s.push({stroke:`rgb(${x.r}, ${x.g}, ${x.b})`,fill:`rgb(${g[t].r}, ${g[t].g}, ${g[t].b})`,_color:k.toHtml(g[t]),d:`M ${h+1} ${h+1} L ${this.toUnits(C)} ${this.toUnits(y)} A ${h} ${h} 0 ${D} 1 ${this.toUnits(v)} ${this.toUnits(w)}z`,_text0:d.label,_text1:null!=l?l.toString():null,_text2:m.label,_text3:null!=e?e.toString():null,_text4:c.label,_text5:b.toString}),o+=f}u["paths"]=s,u["anchor"]=h}}catch(e){}return u}static toUnits(e){var t,r;return Math.round2(e,2).toString().replace(",",".")}static getCustomIcon(r,o){try{var s,s,i;let e=0,t=0;l.isSvg(r)||(s=n.bytesToImage(r),i=Math.min(1,2*this.MAX_RADIUS/Math.max(s.width,s.height)),e=Math.round(s.width*i),t=Math.round(s.height*i)),o["customIconAnchorX"]=e/2,o["customIconAnchorY"]=t;var a=`<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${e}\" height=\"${t}\"><image width=\"${e}\" height=\"${t}\" href=\"${this.imageBytesToBase64String(r)}\"></image></svg>`;o["customIcon"]=F.toBase64String(M.UTF8.getBytes(a))}catch(e){}}static imageBytesToBase64String(e){let t="data:image/png;base64,";return l.isBmp(e)?t="data:image/bmp;base64,":l.isJpeg(e)?t="data:image/jpeg;base64,":l.isGif(e)?t="data:image/gif;base64,":l.isSvg(e)&&(t="data:image/svg+xml;base64,"),t+F.toBase64String(e)}static getColors(e){let t=new L,r=10,o=!0,s=d.getColors();t.addRange(s.stimulsoft().toList());while(t.length<e){if(o)for(var i of s)t.add(E.dark(i,r));else{for(var a of s)t.add(E.light(a,r));r+=10}o=!o}return t}static getLongitudeMeterIndex(e){if(null==e)return-1;var t=e.meters.firstOrDefault(e=>e.is(s));return null!=t?e.meters.indexOf(t):-1}static getLatitudeMeterIndex(e){if(null==e)return-1;var t=e.meters.firstOrDefault(e=>e.is(i));return null!=t?e.meters.indexOf(t):-1}static getLocationMeterIndex(e){if(null==e)return-1;var t=e.meters.firstOrDefault(e=>e.is(a));return null!=t?e.meters.indexOf(t):-1}static getLocationColorMeterIndex(e){if(null==e)return-1;var t=e.meters.firstOrDefault(e=>e.is(u));return null!=t?e.meters.indexOf(t):-1}static getLocationArgumentMeterIndex(e){if(null==e)return-1;var t=e.meters.firstOrDefault(e=>e.is(r));return null!=t?e.meters.indexOf(t):-1}static getLocationValueMeterIndex(e){if(null==e)return-1;var t=e.meters.firstOrDefault(e=>e.is(h));return null!=t?e.meters.indexOf(t):-1}static parseColor(e){let o=A.black;try{if(1<e.length){if("#"==e[0]){let t=e.substring(1).toLowerCase(),r="";for(let e=0;e<t.length;e++){var s=t.charAt(e);"0"!=s&&"1"!=s&&"2"!=s&&"3"!=s&&"4"!=s&&"5"!=s&&"6"!=s&&"7"!=s&&"8"!=s&&"9"!=s&&"a"!=s&&"b"!=s&&"c"!=s&&"d"!=s&&"e"!=s&&"f"!=s||(r+=s)}var i;t=3==r.length?x.format("{0}{0}{1}{1}{2}{2}",r[0],r[1],r[2]):r,6==t.length&&(i=F.toInt32(t,16),o=A.fromArgb(255,i>>16&255,i>>8&255,255&i))}else if(e.stimulsoft().startsWith("rgb")){let r=e.trim().substring(4,e.length-1).split(",");if(3==r.length){let e=[0,0,0];r[0].stimulsoft().endsWith("%")?e[0]=Math.round(2.55*B.tryToNumber(r[0].substring(0,r[0].length-1))):e[0]=B.tryToNumber(r[0]),r[1].stimulsoft().endsWith("%")?e[1]=Math.round(2.55*B.tryToNumber(r[1].substring(0,r[1].length-1))):e[1]=B.tryToNumber(r[1]),r[2].stimulsoft().endsWith("%")?e[2]=Math.round(2.55*B.tryToNumber(r[2].substring(0,r[2].length-1))):e[2]=B.tryToNumber(r[2]),o=A.fromArgb(255,e[0],e[1],e[2])}else if(4==r.length){let e=[0,0,0],t=1;r[0]=r[0].replace("(",""),r[0].stimulsoft().endsWith("%")?e[0]=Math.round(2.55*B.tryToNumber(r[0].substring(0,r[0].length-1))):e[0]=B.tryToNumber(r[0]),r[1].stimulsoft().endsWith("%")?e[1]=Math.round(2.55*B.tryToNumber(r[1].substring(0,r[1].length-1))):e[1]=B.tryToNumber(r[1]),r[2].stimulsoft().endsWith("%")?e[2]=Math.round(2.55*B.tryToNumber(r[2].substring(0,r[2].length-1))):e[2]=B.tryToNumber(r[2]),t=r[3].stimulsoft().endsWith("%")?2.55*B.tryToNumber(r[3].substring(0,r[3].length-1)):B.tryToNumber(r[3]),o=A.fromArgb(Math.round(255*t),e[0],e[1],e[2])}}else if(null==this.htmlNameToColor){let t=[["AliceBlue","#F0F8FF"],["AntiqueWhite","#FAEBD7"],["Aqua","#00FFFF"],["Aquamarine","#7FFFD4"],["Azure","#F0FFFF"],["Beige","#F5F5DC"],["Bisque","#FFE4C4"],["Black","#000000"],["BlanchedAlmond","#FFEBCD"],["Blue","#0000FF"],["BlueViolet","#8A2BE2"],["Brown","#A52A2A"],["BurlyWood","#DEB887"],["CadetBlue","#5F9EA0"],["Chartreuse","#7FFF00"],["Chocolate","#D2691E"],["Coral","#FF7F50"],["CornflowerBlue","#6495ED"],["Cornsilk","#FFF8DC"],["Crimson","#DC143C"],["Cyan","#00FFFF"],["DarkBlue","#00008B"],["DarkCyan","#008B8B"],["DarkGoldenRod","#B8860B"],["DarkGray","#A9A9A9"],["DarkGrey","#A9A9A9"],["DarkGreen","#006400"],["DarkKhaki","#BDB76B"],["DarkMagenta","#8B008B"],["DarkOliveGreen","#556B2F"],["Darkorange","#FF8C00"],["DarkOrchid","#9932CC"],["DarkRed","#8B0000"],["DarkSalmon","#E9967A"],["DarkSeaGreen","#8FBC8F"],["DarkSlateBlue","#483D8B"],["DarkSlateGray","#2F4F4F"],["DarkSlateGrey","#2F4F4F"],["DarkTurquoise","#00CED1"],["DarkViolet","#9400D3"],["DeepPink","#FF1493"],["DeepSkyBlue","#00BFFF"],["DimGray","#696969"],["DimGrey","#696969"],["DodgerBlue","#1E90FF"],["FireBrick","#B22222"],["FloralWhite","#FFFAF0"],["ForestGreen","#228B22"],["Fuchsia","#FF00FF"],["Gainsboro","#DCDCDC"],["GhostWhite","#F8F8FF"],["Gold","#FFD700"],["GoldenRod","#DAA520"],["Gray","#808080"],["Grey","#808080"],["Green","#008000"],["GreenYellow","#ADFF2F"],["HoneyDew","#F0FFF0"],["HotPink","#FF69B4"],["IndianRed","#CD5C5C"],["Indigo","#4B0082"],["Ivory","#FFFFF0"],["Khaki","#F0E68C"],["Lavender","#E6E6FA"],["LavenderBlush","#FFF0F5"],["LawnGreen","#7CFC00"],["LemonChiffon","#FFFACD"],["LightBlue","#ADD8E6"],["LightCoral","#F08080"],["LightCyan","#E0FFFF"],["LightGoldenRodYellow","#FAFAD2"],["LightGray","#D3D3D3"],["LightGrey","#D3D3D3"],["LightGreen","#90EE90"],["LightPink","#FFB6C1"],["LightSalmon","#FFA07A"],["LightSeaGreen","#20B2AA"],["LightSkyBlue","#87CEFA"],["LightSlateGray","#778899"],["LightSlateGrey","#778899"],["LightSteelBlue","#B0C4DE"],["LightYellow","#FFFFE0"],["Lime","#00FF00"],["LimeGreen","#32CD32"],["Linen","#FAF0E6"],["Magenta","#FF00FF"],["Maroon","#800000"],["MediumAquaMarine","#66CDAA"],["MediumBlue","#0000CD"],["MediumOrchid","#BA55D3"],["MediumPurple","#9370D8"],["MediumSeaGreen","#3CB371"],["MediumSlateBlue","#7B68EE"],["MediumSpringGreen","#00FA9A"],["MediumTurquoise","#48D1CC"],["MediumVioletRed","#C71585"],["MidnightBlue","#191970"],["MintCream","#F5FFFA"],["MistyRose","#FFE4E1"],["Moccasin","#FFE4B5"],["NavajoWhite","#FFDEAD"],["Navy","#000080"],["OldLace","#FDF5E6"],["Olive","#808000"],["OliveDrab","#6B8E23"],["Orange","#FFA500"],["OrangeRed","#FF4500"],["Orchid","#DA70D6"],["PaleGoldenRod","#EEE8AA"],["PaleGreen","#98FB98"],["PaleTurquoise","#AFEEEE"],["PaleVioletRed","#D87093"],["PapayaWhip","#FFEFD5"],["PeachPuff","#FFDAB9"],["Peru","#CD853F"],["Pink","#FFC0CB"],["Plum","#DDA0DD"],["PowderBlue","#B0E0E6"],["Purple","#800080"],["Red","#FF0000"],["RosyBrown","#BC8F8F"],["RoyalBlue","#4169E1"],["SaddleBrown","#8B4513"],["Salmon","#FA8072"],["SandyBrown","#F4A460"],["SeaGreen","#2E8B57"],["SeaShell","#FFF5EE"],["Sienna","#A0522D"],["Silver","#C0C0C0"],["SkyBlue","#87CEEB"],["SlateBlue","#6A5ACD"],["SlateGray","#708090"],["SlateGrey","#708090"],["Snow","#FFFAFA"],["SpringGreen","#00FF7F"],["SteelBlue","#4682B4"],["Tan","#D2B48C"],["Teal","#008080"],["Thistle","#D8BFD8"],["Tomato","#FF6347"],["Turquoise","#40E0D0"],["Violet","#EE82EE"],["Wheat","#F5DEB3"],["White","#FFFFFF"],["WhiteSmoke","#F5F5F5"],["Yellow","#FFFF00"],["YellowGreen","#9ACD32"]];this.htmlNameToColor=new I;for(let e=0;e<2;e++){var r=t[e][0].toLowerCase(),a=F.toInt32(t[e][1].substring(1),16),n=A.fromArgb(255,a>>16&255,a>>8&255,255&a);this.htmlNameToColor.set(r,n)}}var t=e.toLowerCase();this.htmlNameToColor.containsKey(t)&&(o=this.htmlNameToColor.get(t))}}catch(e){}return o}}t.MAX_LOCATIONS=1e3,t.MAX_CHART_SECTORS=100,t.MIN_RADIUS=3,t.MAX_RADIUS=15,t.CHART_RADIUS=26,t.DELTA_RADIUS=12,t.lockHtmlNameToColor=new Object,e.StiOnlineMapHelper=t}(r=t.Helpers||(t.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(Ae){var e,t,r;t=e=Ae.Dashboard||(Ae.Dashboard={}),function(e){var l=Ae.Report.CrossTab.Core.StiCellType,h=Ae.System.Convert,n=Ae.System.Collections.DictionaryEntry,u=Ae.Report.Dashboard.StiIconAlignment,m=Ae.Report.Components.StiConditionPermissions,c=Ae.Report.Components.StiDataHelper,d=Ae.Report.Components.StiFilter,p=Ae.Report.Components.StiCondition,S=Ae.Data.Helpers.StiLabelHelper,a=Ae.Report.Engine.StiEngine,g=Ae.System.Drawing.ContentAlignment,ue=Ae.System.Enum,b=Ae.Report.Components.StiIconSetIndicator,he=Ae.System.StiString,s=Ae.Report.Dashboard.StiReportParser,i=Ae.Data.Engine.StiDataTopNMode,t=Ae.System.StiPromise,f=Ae.Base.Localization.StiLocalization,C=Ae.System.Drawing.FontStyle,y=Ae.System.Drawing.Color,v=Ae.System.Drawing.Font,o=Ae.Report.Dashboard.StiPivotToConvertedStateCache,me=Ae.Base.Drawing.StiHorAlignment,w=Ae.Report.Dashboard.StiElementDataCache,D=Ae.Report.Dashboard.StiPivotTableToCrossTabCache,x=Ae.Report.CrossTab.StiCrossTotal,ce=Ae.Report.CrossTab.StiCrossRowTotal,de=Ae.Base.Dashboard.StiElementConsts,pe=Ae.Base.Drawing.StiBorder,T=Ae.Report.CrossTab.StiCrossTab,F=Ae.System.Data.DataTable,Se=Ae.Report.CrossTab.StiCrossTitle,M=Ae.Report.Components.StiComponentsCollection,I=Ae.Base.Drawing.StiSolidBrush,ge=Ae.Report.CrossTab.StiCrossColumnTotal,be=Ae.Report.CrossTab.StiCrossSummary,fe=Ae.Report.Dashboard.Styles.StiDashboardStyleHelper,k=Ae.Dashboard.Components.PivotTable.StiPivotTableElement,R=Ae.Report.CrossTab.Core.StiCell,Ce=Ae.Report.CrossTab.StiCrossColumn,ye=Ae.System.Collections.List,ve=Ae.System.Collections.Hashtable,A=Ae.Report.StiReportUnitType,B=Ae.Report.Components.StiPage,O=Ae.Report.StiReport,we=Ae.Report.CrossTab.StiCrossRow,De=Ae.Report.CrossTab.StiCrossSummaryHeader,xe=Ae.System.Guid,Te=Ae.Base.Drawing.StiBorderSides,Fe=Ae.Base.Drawing.StiPenStyle,Me=Ae.System.Drawing.Rectangle,P=Ae.System.Drawing.Rectangle,Ie=Ae.Report.CrossTab.StiCrossHeader,ke=Ae.Report.CrossTab.Core.StiSummaryDirection,E=Ae.Report.CrossTab.Core.StiSummaryType,L=Ae.Report.CrossTab.StiCrossCell,N=Ae.System.Data.DataColumn,V=Ae.Report.CrossTab.Core.StiCross,z=Ae.Report.Dictionary.StiVirtualSource,J=Ae.Report.CrossTab.StiCrossTabHelper,Re=Ae.Base.Drawing.StiTextHorAlignment;class j{static getHeadersBounds(r){let o=-1,s=-1,i=-1,a=-1;for(let t=0;t<r.length;t++)for(let e=0;e<r[t].length;e++){var n=r[t][e];n.cellType!=l.HeaderColMain&&n.cellType!=l.HeaderColSummaryTotal||(o=-1==o?e:o,s=Math.max(e,s)),n.cellType!=l.HeaderRowMain&&n.cellType!=l.HeaderRowSummaryTotal||(i=-1==i?t:i,a=Math.max(t,a))}return new P(i,o,a-i,s-o)}static getViewerDataAsync(r){let c=new t;return setTimeout(()=>__awaiter(this,void 0,void 0,function*(){let s={},i=r.as(k);var e=()=>{var e=0==i.rows.length&&0==i.columns.length&&0<i.summaries.length,a=m.crossTabInfo.cross.cells,t=this.getHeadersBounds(a),n=t.bottom+1,l=t.right+1;s["headerHeight"]=n,s["headerWidth"]=l,s["onlySummaries"]=e,s["pivotColumnsCount"]=i.columns.length,s["pivotRowsCount"]=i.rows.length,s["pivotSummariesCount"]=i.summaries.length,s["pivotSummaryDirection"]=i.summaryDirection;let r=[];if(0<a.length){let i=new ve;for(let t=0;t<a.length;t++)for(let e=0;e<a[t].length;e++){var o=a[t][e];he.isNullOrEmpty(o.parentGuid)||o.parentCell!=o||(i.containsKey(o.parentGuid)||i.set(o.parentGuid,new ye),i.get(o.parentGuid).add(o))}for(let s=0;s<a.length;s++){let o=[];for(let r=0;r<a[0].length;r++){var u=a[s][r];let e=new ye,t=null;if(u.parentCell==u&&!he.isNullOrEmpty(u.guid)&&i.containsKey(u.guid))for(var h of i.get(u.guid))h.field.is(x)&&h.parentCell==h?t=h.guid:e.add(h.guid);o.push(this.cellItem(a[s][r],s,r,e,t,s<l||r<n))}r.push(o)}s["cells"]=r}c.callTry(s)},t;let m=D.get(i);null==m&&(t=yield w.getOrCreate(i),m=yield j.convertToCrossTab(i,t),D.put(i,m),o.putFalse(i)),e()}),0),c}static cellItem(t,e,r,o,s,i){let a={};if(a["rowSpan"]=t.height,a["colSpan"]=t.width,a["row"]=r,a["column"]=e,a["text"]=t.text,a["isColumn"]=null!=t.field&&(t.field.is(Ce)||t.field.is(De)),i&&(he.isNullOrEmpty(t.guid)&&(t.guid=xe.newGuid().toString()),he.isNullOrEmpty(t.parentGuid)||(a["parentGuid"]=t.parentGuid),null!=t.parentCell&&t.parentCell==t&&(a["parentCellGuid"]=t.parentCell.guid),null!=t.field&&(a["isTotal"]=t.field.is(x)&&t.parentCell==t),a["guid"]=t.guid,0<o.length&&(a["dependedCellGuis"]=o),null!=s&&(a["totalCellGuid"]=s)),null!=t.field&&null!=t.field.indicator&&t.field.indicator.stimulsoft().is(b)){var n=t.field.indicator.as(b);let e=ue.getName(g,n.alignment);var l=0==e.indexOf("Top")?"top":0==e.indexOf("Bottom")?"bottom":"middle",n=`<img src='data:image/png;base64,${h.toBase64String(n.customIcon)}' style='vertical-align: ${l};'>`;delete a["text"],0<e.indexOf("Left")?a["text"]=n+t.text:a["text"]=t.text+n}var l=null!=t.field?t.field.conditionPermissions:null,n,l;let u={};if(l!=m.None){0<(l&m.BackColor)&&(n=t.field.conditionBrush.color,u["backgroundColor"]=`rgba(${n.r}, ${n.g}, ${n.b}, ${n.a})`),0<(l&m.Font)&&(u["fontFamily"]=t.field.font.name),0<(l&m.FontSize)&&(u["fontSize"]=`${t.field.font.sizeInPoints}pt`),0<(l&m.FontStyleBold)&&(u["fontWeight"]=0<(t.field.font.style&C.Bold)?"bold":"normal"),0<(l&m.FontStyleItalic)&&(u["fontStyle"]=0<(t.field.font.style&C.Italic)?"italic ":"normal");let e="";0<(l&m.FontStyleStrikeout)&&0<(t.field.font.style&C.Strikeout)&&(e+="line-through "),0<(l&m.FontStyleUnderline)&&0<(t.field.font.style&C.Underline)&&(e+="underline"),he.isNullOrEmpty(e)||(u["textDecoration"]=e),0<(l&m.TextColor)&&(l=t.field.conditionTextBrush.color,u["color"]=`rgba(${l.r}, ${l.g}, ${l.b}, ${l.a})`)}if(null!=t.field)switch(t.field.horAlignment){case Re.Left:u["text-align"]="left";break;case Re.Right:u["text-align"]="right";break;case Re.Width:u["text-align"]="justify";break}return a["style"]=u,a}static applyStyle(e,t,o){var s=fe.getPivotTableStyle(e),i=t.crossTabInfo.cross.cells,a=e.columns.length+(0<e.rows.length?1:0)+(1<e.summaries.length&&e.summaryDirection==ke.LeftToRight?1:0),n=(0==e.rows.length?1:e.rows.length)+(1<e.summaries.length&&e.summaryDirection==ke.UpToDown?1:0);for(let r=0;r<i.length;r++)for(let t=0;t<i[r].length;t++)if(null!=i[r][t].field){let e=i[r][t];var l=!(e.isCrossSummary||e.field.is2(be)||(e.field.is2(ce)||e.field.is2(ge))&&null==e.guid);o?(e.field.font=new v("Arial",10,l?C.Bold:C.Regular),e.field.brush=new I(y.transparent),e.field.textBrush=new I(y.black)):l?(r<n&&t>=a?e.field.brush=null!=e.field.conditionBrush?e.field.conditionBrush:new I(s.rowHeaderBackColor):e.field.brush=null!=e.field.conditionBrush?e.field.conditionBrush:new I(s.columnHeaderBackColor),e.field.textBrush=null!=e.field.conditionTextBrush?e.field.conditionTextBrush:new I(s.columnHeaderForeColor)):(e.field.brush=null!=e.field.conditionBrush?e.field.conditionBrush:new I(t%2!=0?s.alternatingCellBackColor:s.cellBackColor),e.field.textBrush=null!=e.field.conditionTextBrush?e.field.conditionTextBrush:new I(t%2!=0?s.alternatingCellForeColor:s.cellForeColor)),e.field.border.color=s.lineColor}}static buildCross(s,i,a){var e,o,n;let l=new ve;for(let e=0;e<i.meters.length;e++)l.set(i.meters[e].expression,e);s.crossTabInfo.startRow=0,s.crossTabInfo.startCol=0;let u=new M(null),h=new M(null),m=new M(null),c=new M(null),d=new M(null),p=new M(null),S=null,g=null,b=null,f=new F;for(o of s.components.list)if(o.is(L)||o.is(Se)||o.is(De)){let e=o.as(we),t=o.as(Ce);var C=o.as(be),y=o.as(De);let r=o.as(Se);if(null!=r){r.typeOfComponent.stimulsoft().startsWith("Row:")&&d.add(r),r.typeOfComponent.stimulsoft().startsWith("Col:")&&p.add(r),r.typeOfComponent.stimulsoft().startsWith("LeftTitle")&&(S=r),r.typeOfComponent.stimulsoft().startsWith("RightTitle")&&(g=r),r.typeOfComponent.stimulsoft().startsWith("SummaryTitle")&&(b=r);continue}null!=e&&(h.add(e),e.isTotalVisible||(e.total.height=0)),null!=t&&(u.add(t),t.isTotalVisible||(t.total.width=0)),null!=C&&m.add(C),null!=y&&c.add(y);var y=new N(o.name,Object);f.columns.add(y),o.is(Ie)&&(y=new N("Display__"+o.name,Object),f.columns.add(y))}for(n of i.rows){let r=f.newRow();for(var v of s.components.list){if(v.is(De))continue;let t=v.as(L);if(null!=t){let e=l.contains(v.alias)?n[l.get(v.alias)]:null;"number"==typeof e&&(e=e.stimulsoft().toNumber()),r.sett(t.name,e),t.is(Ie)&&r.sett("Display__"+v.name,n[l.get(v.alias)])}else if(v.is(Se)&&!he.isNullOrEmpty(v.alias)){let e=n[l.get(v.alias)];v.setTextInternal(e.toString())}}f.rows.add(r),s.next()}let w=new V;s.crossTabInfo.cross=w,s.crossTabInfo.cross.designTime=!1,s.crossTabInfo.cross.colFields=u,s.crossTabInfo.cross.rowFields=h,s.crossTabInfo.cross.sumFields=m,s.crossTabInfo.cross.sumHeaderFields=c,s.crossTabInfo.cross.colTitleFields=p,s.crossTabInfo.cross.rowTitleFields=d,s.crossTabInfo.cross.leftCrossTitle=S,s.crossTabInfo.cross.rightCrossTitle=g,s.crossTabInfo.cross.summaryCrossTitle=b,(s.crossTabInfo.cross.crossTab=s).dataSourceName="pivot",s.report.dictionary.dataSources.add(new z("pivot","pivot")),s.summaryDirection=1<(null===(e=a.summaries)||void 0===e?void 0:e.length)?a.summaryDirection:ke.UpToDown,s.crossTabInfo.cross.create(f,s.report,s.summaryDirection,s.emptyValue),s.crossTabInfo.cross.crossTab=null;var D=fe.getPivotTableStyle(a),e=0==a.rows.length&&0==a.columns.length&&0<a.summaries.length;if(e){w.init(2,a.summaries.length);for(let o=0;o<a.summaries.length;o++){let e=a.summaries[o],t=new Ce;t.alias=e.expression,t.name="CrossTab_Sum"+o.toString(),t.page=s.page,t.horAlignment=Re.Center,t.textFormat=e.textFormat.clone(),t.guid=xe.newGuidString(),t.font=de.Table.Font.getCachedGdiFont(),t.brush=new I(D.cellBackColor),t.border=new pe(o==a.summaries.length-1?Te.Right|Te.Top:0==o?Te.Right|Te.Bottom:Te.Right|Te.Bottom|Te.Top,D.lineColor,1,Fe.Solid),t.height=de.Table.getHeight(t.font),w.cells[0][o]=new R,w.cells[0][o].text=this.getLabel(e),w.cells[0][o].field=t,w.cells[0][o].parentCell=w.cells[0][o];let r=new be;r.name="CrossTab_Sum"+o.toString(),r.value=0<i.rows.length?i.rows[0][o].toString():"",r.page=s.page,r.horAlignment=Re.Right,r.textFormat=e.textFormat.clone(),r.guid=xe.newGuidString(),r.font=de.Table.Font.getCachedGdiFont(),r.border=new pe(Te.None,D.lineColor,1,Fe.Solid),r.height=de.Table.getHeight(r.font),w.cells[1][o]=new R,w.cells[1][o].field=r,w.cells[1][o].text=0<i.rows.length?i.rows[0][o].toString():"",w.cells[1][o].parentCell=w.cells[1][o]}}if(s.rightToLeft&&J.makeRightToLeft(s),s.crossTabInfo.cross.doAutoSize(),!e){for(let t=0;t<w.cells.length;t++)for(let e=0;e<w.cells[t].length;e++)null!=w.cells[t][e].field&&(w.cells[t][e].field.margins=w.cells[t][e].field.margins.clone(),0==t&&(w.cells[t][e].field.border.side=w.cells[t][e].field.border.side&~Te.Left),0==e&&(w.cells[t][e].field.border.side=w.cells[t][e].field.border.side&~Te.Top),t==w.cells.length-1&&(w.cells[t][e].field.border.side=w.cells[t][e].field.border.side&~Te.Right),e==w.cells[t].length-1&&(w.cells[t][e].field.border.side=w.cells[t][e].field.border.side&~Te.Bottom));var e=a.columns.length+(0<a.rows.length?1:0),r=(0==a.rows.length?1:a.rows.length)+(1<a.summaries.length?1:0);for(let t=e;t<w.cells[0].length;t++)for(let e=r;e<w.cells.length;e++)null!=w.cells[e][t].field&&(w.cells[e][t].field.border.side=Te.Left|Te.Right);if(1<w.sumFields.count)for(let e=0;e<w.cells[0].length;e++)null!=w.cells[r-1][e].field&&(w.cells[r-1][e].field.border=new pe(Te.All,D.lineColor,1,Fe.Solid));null!=w.cells[0][0].field&&(w.cells[0][0].field.border.side=Te.Right|Te.Bottom)}}static convertToCrossTab(s,i){return __awaiter(this,void 0,void 0,function*(){let e=new O;e.info.zoom=1,e.reportUnit=null!=s&&null!=s.report?s.report.reportUnit:A.HundredthsOfInch;var t=new a(e);e.engine=t;let r=new B;e.pages.add(r);let o=new T;return o.name="CrossTab",o.crossTabStyle=null,o.crossTabStyleIndex=9,r.components.add(o),yield this.updateCrossTab(o,s,i),r.components.remove(o),new Promise(e=>{e(o)})})}static updateCrossTab(ie,ae,ne,le=!0){return __awaiter(this,void 0,void 0,function*(){var r=new ve;let o=new ye,s=new ye,t=new ye,i="",a=new ve,n=new ve;o.clear(),s.clear();let l=new ye,u=new ye,h=new ve;var m=fe.getPivotTableStyle(ae),c,d,p,e,S,g;let b=0;for(c of ae.rows){let e=new we;e.alias=c.expression,e.displayValue="{"+c.expression+"}",e.value=e.displayValue,he.isNullOrEmpty(i)&&0<c.expression.length&&0<=c.expression.indexOf(".")&&(i=c.expression.substring(0,c.expression.indexOf("."))),e.page=null,e.name=ie.name+"_Row"+(b+1).toString(),e.page=ie.page,e.horAlignment=ue.parse(Re,ue.getName(me,c.horAlignment)),e.textFormat=c.textFormat.clone(),e.guid=xe.newGuidString(),yield this.getCondition(ae,c,e),this.setTopN(e,c.topN,ae),this.setupTitle(e,m),a.add(c,e),ie.components.contains(e)&&ie.components.remove(e),ie.components.add(e),h.set(e,e),l.add(e);let t=e.total;null==t&&(t=this.createRowTotal(ae,e.guid,r,m),e.totalGuid=t.guid,ie.components.add(t)),h.set(t,t),o.add(t),b++}let f=0;for(d of ae.columns){let e=new Ce;e.alias=d.expression,e.displayValue="{"+d.expression+"}",e.value=e.displayValue,e.page=null,e.name=ie.name+"_Column"+(f+1).toString(),e.page=ie.page,e.horAlignment=ue.parse(Re,ue.getName(me,d.horAlignment)),e.guid=xe.newGuidString(),yield this.getCondition(ae,d,e),this.setTopN(e,d.topN,ae),he.isNullOrEmpty(i)&&0<d.expression.length&&0<=d.expression.indexOf(".")&&(i=d.expression.substring(0,d.expression.indexOf("."))),e.textFormat=d.textFormat.clone(),this.setupTitle(e,m),n.add(d,e),ie.components.contains(e)&&ie.components.remove(e),ie.components.add(e),h.set(e,e),u.add(e);let t=e.total;null==t&&(t=this.createColTotal(ae,e.guid,r,s,m),e.totalGuid=t.guid,ie.components.add(t)),h.set(t,t),s.add(t),f++}let C=1;for(p of ae.summaries){let e=new be;e.alias=p.expression,this.setSummaryType(e,p.expression),e.page=null,e.name=ie.name+"_Sum"+C.toString(),e.page=ie.page,e.horAlignment=ue.parse(Re,ue.getName(me,p.horAlignment)),e.textFormat=p.textFormat.clone(),e.guid=xe.newGuidString(),yield this.getCondition(ae,p,e),e.font=de.Table.Font.getCachedGdiFont(),e.border=new pe(Te.All,m.lineColor,1,Fe.Solid),e.height=de.Table.getHeight(e.font),h.set(e,e),ie.components.contains(e)&&ie.components.remove(e),ie.components.add(e),C++}if(ae.summaries.length<2){for(var y of t)ie.components.contains(y)&&ie.components.remove(y);t.clear()}else if(t.length>ae.summaries.length)while(t.length>ae.summaries.length){var v=t[t.length-1];ie.components.contains(v)&&ie.components.remove(v),t.removeAt(t.length-1)}else if(t.length<ae.summaries.length)while(t.length<ae.summaries.length){let e=new De;e.text=he.isNullOrEmpty(ae.summaries.getByIndex(t.length).label)?(t.length+1).toString():ae.summaries.getByIndex(t.length).label,e.page=null,e.name=ie.name+"_SumHeader"+(t.length+1).toString(),e.page=ie.page,ie.applyFieldStyle(e),ie.components.add(e),t.add(e)}for(e of t)h.set(e,e);let w=1;for(S of o)S.page=null,S.name=ie.name+"_RowTotal"+(w++).toString(),S.page=ie.page;let D=1;for(g of s)g.page=null,g.name=ie.name+"_ColTotal"+(D++).toString(),g.page=ie.page;var x=0<ae.columns.length&&0<ae.rows.length,T,F;let M=[],I=[],k=null,R=null,A=null;for(T of ie.components.list)if(T.is(Se)){let e=T;e.typeOfComponent.stimulsoft().startsWith("Col:")&&M.push(e),e.typeOfComponent.stimulsoft().startsWith("Row:")&&I.push(e),e.typeOfComponent.stimulsoft().startsWith("LeftTitle")&&(k=e),e.typeOfComponent.stimulsoft().startsWith("RightTitle")&&(R=e),e.typeOfComponent.stimulsoft().startsWith("SummaryTitle")&&(A=e)}if(0==ae.rows.length)for(var B of u){var O="Col:"+B.name,P;let e=!1;for(P of M)if(P.typeOfComponent==O){M.stimulsoft().remove(P),e=!0,h.set(P,P);break}if(!e){let e="",t=new Se;t.name=B.name+"_Title",t.typeOfComponent="Col:"+B.name;for(var E of ae.columns)n.get(E)==B&&(e=this.getLabel(E),t.horAlignment=Re.Center,t.textFormat=E.textFormat.clone());t.text=e,this.setupField(t),this.setupTitle(t,m),ie.components.add(t),h.set(t,t)}}for(F of l){var L="Row:"+F.name,N;let e=!1;for(N of I){if(N.typeOfComponent!=L)continue;I.stimulsoft().remove(N),e=!0,h.set(N,N);break}if(!e){let e="",t=new Se;for(var V of ae.rows)a.get(V)==F&&(e=this.getLabel(V),t.horAlignment=Re.Center,t.textFormat=V.textFormat.clone());this.setupField(t),t.name=F.name+"_Title",t.text=e,t.typeOfComponent="Row:"+F.name,this.setupTitle(t,m),ie.components.add(t),h.set(t,t)}}if(null==k?x&&(k=new Se,k.name=ie.name+"_LeftTitle",this.setupField(k),null!=ae.title&&(k.text=ae.title.text),k.typeOfComponent="LeftTitle",this.setupTitle(k,m),ie.components.add(k),h.set(k,k)):x&&h.set(k,k),null==R){if(x){let e="",t=!0;for(var z of ae.columns)t||(e+=", "),e+=this.getLabel(z),t=!1;R=new Se,R.name=ie.name+"_RightTitle",R.text=e,R.typeOfComponent="RightTitle",this.setupField(R),this.setupTitle(R,m),ie.components.add(R),h.set(R,R)}}else x&&h.set(R,R);var x=(0==ae.columns.length||0==ae.rows.length)&&0<ae.summaries.length,J,j,H;let G=he.join(", ",ae.summaries.select(e=>e.label).stimulsoft().toArray());null==A?x&&(A=new Se,A.name=ie.name+"_SummaryTitle",A.text=G,A.typeOfComponent="SummaryTitle",this.setupField(A),this.setupTitle(A,m),ie.components.add(A),h.set(A,A)):x&&((he.isNullOrEmpty(A.text)||A.text.stimulsoft().startsWith(G)||G.stimulsoft().startsWith(A.text))&&(A.text=G),h.set(A,A));let X=0;while(X<ie.components.count){var U=ie.components.getByIndex(X);null==h.get(U)?ie.components.removeAt(X):X++}let K=Me.empty;if(ie.dataSourceName=i,!le)return;this.buildCross(ie,ne,ae);for(J of ie.components.toCast()){ie.crossTabInfo.cross.fields.contains(J)&&(j=ie.crossTabInfo.cross.fields.get(J),ie.crossTabInfo.cross.setTextOfCell(j.x,j.y,J.cellText))}ie.crossTabInfo.cross.maxWidth=ie.page.width,ie.crossTabInfo.cross.maxHeight=ie.page.height,ie.crossTabInfo.cross.doAutoSize();let W=new ve;for(H of ie.components.toCast()){var q=H.as(Ie);null==q||q.isTotalVisible||W.set(q.total,q.total)}var Y=ie.report.unit.convertFromHInches(2),Q=ie.report.unit.convertFromHInches(2),Z;for(Z of ie.components.toCast())if(ie.crossTabInfo.cross.fields.contains(Z)){var _=ie.crossTabInfo.cross.fields.get(Z),$,ee,te,re,oe,se;let e=ie.report.unit.convertRectangleToHInches(Ae.Report.CrossTab.StiCrossTabHelper.getCellRect(ie,_.x,_.y));K.width=Math.max(K.width,e.right),K.height=Math.max(K.height,e.bottom),e=ie.report.unit.convertRectangleFromHInches(e),null!=W.get(Z)&&(e.width=0,e.height=0);let t=0,r=0,o=Z.as(Se);null!=o&&(o.typeOfComponent.stimulsoft().startsWith("LeftTitle")&&(t=0,r=0),o.typeOfComponent.stimulsoft().startsWith("RightTitle")&&(t=Y,r=0),o.typeOfComponent.stimulsoft().startsWith("SummaryTitle")&&(0==ae.rows.length&&(t=0,r=2*Q),0==ae.columns.length&&(t=Y,r=Q)),o.typeOfComponent.stimulsoft().startsWith("Row:")&&(t=0,r=Q),o.typeOfComponent.stimulsoft().startsWith("Col:")&&(t=0,r=Q)),null!=Z.as(we)&&(t=0,r=2*Q),null!=Z.as(ce)&&(t=0,r=2*Q),null!=Z.as(Ce)&&(t=Y,r=Q),null!=Z.as(ge)&&(t=Y,r=Q),null!=Z.as(be)&&(t=Y,r=2*Q),null!=Z.as(De)&&(r=ie.summaryDirection==ke.LeftToRight?(t=Y,Q):(t=0,2*Q)),e.x+=t,e.y+=r,Z.clientRectangle=e.clone()}})}static getCondition(r,o,a){return __awaiter(this,void 0,void 0,function*(){let e=new ye;for(var t of r.pivotTableConditions)t.keyValueMeter!=S.getLabel(o)&&t.keyValueMeter!=o.key||e.add(t);if(null!=e&&0<e.length)for(var s of e){let e=new p,t=new d;t.condition=s.condition,t.dataType=s.dataType,t.value1=s.value;let r=c.getFilterExpression(t,"value2",a.report);s.dataType!=Ae.Report.Components.StiFilterDataType.String&&(r=`value2 == null ? False : (value2.ToString().Length > 0 ? ${r} : False)`),e.expression=r,e.permissions=s.permissions,e.permissions&=~m.Borders,e.backColor=s.backColor,e.font=s.font,e.textColor=s.textColor,s.iconAlignment!=u.None&&(e.icon=yield s.getIcon(),e.iconSize=s.iconSize,e.iconAlignment=s.iconAlignment==u.Right?g.MiddleRight:g.MiddleLeft);let o=new n;var i;o.key=e,o.value=`{${r}}`,null==a.report.engine.parserConversionStore.get("*StiConditionExpression*"+a.name)&&a.report.engine.parserConversionStore.set("*StiConditionExpression*"+a.name,[]),a.report.engine.parserConversionStore.get("*StiConditionExpression*"+a.name).push(o),a.conditions.add(e)}})}static setupTitle(e,t){e.border=new pe(Te.All,t.lineColor,1,Fe.Solid),e.font=de.Table.Font.getCachedGdiFont(),e.height=de.Table.getHeight(e.font)}static setupField(e){e.margins.left=0,e.margins.right=0,e.guid=xe.newGuidString()}static createRowTotal(e,t,r,o){let s=r.get(t);return null==s&&(s=new ce,s.text=he.isNullOrEmpty(e.totalLabel)?f.get("Main","Total"):e.totalLabel,this.setupField(s),this.setupTitle(s,o)),r.set(t,s),s}static createColTotal(e,t,r,o,s){let i=r.get(t);return null==i&&(i=new ge,i.text=he.isNullOrEmpty(e.totalLabel)?f.get("Main"," Total"):e.totalLabel,this.setupField(i),this.setupTitle(i,s)),r.set(t,i),o.add(i),i}static getLabel(e){return he.isNullOrEmpty(e.label)?e.expression.substring(e.expression.lastIndexOf(".")+1).stimulsoft().replaceAll("]","").stimulsoft().replaceAll(")",""):e.label}static getSummaryTypes(){return 0==this.summaryTypes.count&&(this.summaryTypes.add("None","None"),this.summaryTypes.add("Sum","Sum"),this.summaryTypes.add("Avg","Average"),this.summaryTypes.add("Min","Min"),this.summaryTypes.add("Max","Max"),this.summaryTypes.add("DistinctCount","CountDistinct"),this.summaryTypes.add("Count","Count"),this.summaryTypes.add("Median","Median")),this.summaryTypes}static setTopN(e,t,r){if(e.topN=t.clone(),e.topN.mode!=i.None){e.topN.showOthers&&(e.topN.othersText=he.isNullOrEmpty(e.topN.othersText)?f.get("FormDesigner","Others"):s.parse(e.topN.othersText,r));for(var o of r.summaries)o.label==e.topN.measureField&&(he.isNullOrEmpty(o.expression)||-1==o.expression.indexOf("(")||-1==o.expression.indexOf(")")||(e.topN.measureField=o.expression.substr(o.expression.indexOf("(")+1).stimulsoft().replaceAll(")","")))}}static setSummaryType(e,t){if(he.isNullOrEmpty(t))return;let r=this.getSummaryTypes();for(var o of r.keys)t.stimulsoft().startsWith(o)&&(e.summary=E[r.get(o)],t=t.stimulsoft().replaceAll(o.toString()+"(",""));e.value="{"+t.stimulsoft().replaceAll(")","")+"}"}}j.summaryTypes=new ve,e.StiPivotTableHelper=j}(r=t.Helpers||(t.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Visuals||(e.Visuals={}),function(e){class t{constructor(e="",t,r){this.series=e,this.value=t,this.target=r}}e.StiProgressIteration=t}(o=e.Progress||(e.Progress={}))}(Stimulsoft=Stimulsoft||{}),function(p){var e,t,r;t=e=p.Dashboard||(p.Dashboard={}),function(e){var o=p.Data.Engine.StiDataSortDirection,s=p.Data.Engine.StiDataSortVariation,t=p.Dashboard.Helpers.StiCultureHelper,i=p.System.StiString,a=p.Data.Engine.StiDataTopNMode,n=p.Base.Localization.StiLocalization,l=p.Report.Dashboard.StiReportParser,u=p.Base.Helpers.StiValueHelper,h=p.Dashboard.Visuals.Progress.StiProgressIteration,r=p.Dashboard.Components.Progress.StiSeriesProgressMeter,m=p.Dashboard.Components.Progress.StiTargetProgressMeter,c=p.Dashboard.Components.Progress.StiValueProgressMeter;class d extends e.StiElementBuilder{render(i,a){let e=t.set(i.report);try{let t=this.getValueMeterIndex(a),r=this.getTargetMeterIndex(a),o=this.getSeriesMeterIndex(a),e=this.getSeriesKeys(a,o),s=e.count2();var n=e.select(e=>new h(this.getSeries(a,o,e,i.report),this.getValue(a,t,o,s,e),this.getNullableValue(a,r,o,s,e))),n=d.processVariationSort(i,n);return d.processTopNElements(i,n)}finally{t.restore(e)}null!==e&&void 0!==e&&e.fix()}static processVariationSort(e,t){let r=e.userSorts;return t=null!=r&&r.any(e=>e.key==s.ident)?r.firstOrDefault().direction==o.Ascending?t.orderBy(e=>0!=e.target?e.value/e.target:0):t.orderByDescending(e=>0!=e.target?e.value/e.target:0):t}static processTopNElements(t,r){if(t.topN.mode==a.None)return r;let o=(r=(t.topN.mode==a.Bottom?r.orderBy(e=>e.value):r.orderByDescending(e=>e.value)).toList()).take(t.topN.count).toList();if(r.count2()>t.topN.count&&t.topN.showOthers){var s=r.skip(t.topN.count).sum(e=>u.tryToNumber(e.value));let e=r.skip(t.topN.count);var r=e.all(e=>null==e.target)?null:e.sum(e=>u.tryToNullableNumber(e.target)),t=i.isNullOrEmpty(t.topN.othersText)?n.get("FormDesigner","Others"):l.parse(t.topN.othersText,t);o.add(new h(t,s,r))}return o}getValueMeterIndex(e){if(null==e)return-1;var t=e.meters.firstOrDefault(e=>e.is(c));return null!=t?e.meters.indexOf(t):-1}getTargetMeterIndex(e){if(null==e)return-1;var t=e.meters.firstOrDefault(e=>e.is(m));return null!=t?e.meters.indexOf(t):-1}getSeriesMeterIndex(e){if(null==e)return-1;var t=e.meters.firstOrDefault(e=>e.is(r));return null!=t?e.meters.indexOf(t):-1}}e.StiProgressElementBuilder=d}(r=t.Render||(t.Render={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r,o,i,a;t=e=s.Dashboard||(s.Dashboard={}),t=r=t.Visuals||(t.Visuals={}),i=o=t.Progress||(t.Progress={}),function(e){var r=s.Data.Exceptions.StiTypeNotRecognizedException,o=s.Report.Dashboard.StiProgressElementMode;class t{static createProgressVisual(e,t){switch(e.mode){case o.DataBars:return new i.StiDataBarsProgressVisual(e,t);case o.Circle:return new i.StiCircleProgressVisual(e,t);case o.Pie:return new i.StiPieProgressVisual(e,t);default:throw new r(e.mode)}}}e.StiProgressVisualCreator=t}(a=i.Helpers||(i.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(y){var e,t,r;t=e=y.Dashboard||(y.Dashboard={}),function(e){var h=y.System.StiString,m=y.System.Drawing.Rectangle,c=y.System.Collections.List,d=y.Dashboard.Visuals.Progress.StiProgressIteration,p=y.Dashboard.Render.StiProgressElementBuilder,S=y.Report.Dashboard.StiElementDataCache,t=y.Report.Dashboard.Visuals.IStiProgressVisualSvgHelper,g=y.Base.Context.StiContextPainter,b=y.Base.Context.StiContext,f=y.Report.Export.Services.Helpers.StiContextSvgHelper,C=y.Dashboard.Visuals.Progress.Helpers.StiProgressVisualCreator;class r{implements(){return r.ImplementsStiProgressVisualSvgHelper||(r.ImplementsStiProgressVisualSvgHelper=[t]),r.ImplementsStiProgressVisualSvgHelper}writeProgress(a,n,l,u){return __awaiter(this,void 0,void 0,function*(){let e=new m(0,0,n.width,n.height);var t=n.component,r=yield S.tryToGetOrCreate(t);if(null==r)return;let o=(new p).render(t,r);if(null==o||!o.any())return;var r=new g,r=new b(r,!0,!1,!1,1),s;if(t["isSampleForStyles"]){o=new c;let e=new d;e.value=75,e.target=100,o.add(e)}let i=C.createProgressVisual(t,o.toList());l&&l.ref&&(s=i.getContentRectangle(e.clone()),l.ref=s.height>e.height+5,l.ref&&(e.width-=15,s=i.getContentRectangle(e.clone()),e=s,u.ref=y.System.Convert.toInt32(e.height))),i.draw(r,e.clone()),a.writeStartElement("g");var t=l&&l.ref?0:n.x+.5,s=l&&l.ref?0:n.y+.5;a.writeAttributeString("transform",h.format("translate({0},{1})",t,s)),f.writeGeoms(a,r,!1),a.writeEndElement()})}}e.StiProgressVisualSvgHelper=r}(r=t.Helpers||(t.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(s){var e,t,r;t=e=s.Dashboard||(s.Dashboard={}),function(t){var r=s.System.Type,o=s.Base.Drawing.StiHorAlignment;class e{static getHorAlign(e){var e=t.StiMeterHelper.toDataType(e);if(r.isNumericType(e))return o.Right;if(r.isDateType(e))return o.Center;return o.Left}}t.StiTableAlignmentHelper=e}(r=t.Helpers||(t.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(r){var e,t,o;t=e=r.Dashboard||(r.Dashboard={}),function(e){var i=r.Data.Helpers.StiExpressionHelper,a=r.Base.StiSummaryColumnType,o=r.Dashboard.Components.Table.StiBubbleColumn,n=r.Base.Helpers.StiValueHelper,s=r.Dashboard.Components.Table.StiDataBarsColumn,l=r.Dashboard.Components.Table.StiColorScaleColumn;class t{static minDataColumnValue(e,t,r){if(!(e.is2(s)||e.is2(l)||e.is2(o)))return 0;return t.rows.any()?t.rows.min(e=>n.tryToNumber(e[r])):0}static maxDataColumnValue(e,t,r){if(!(e.is2(s)||e.is2(l)||e.is2(o)))return 0;return t.rows.any()?t.rows.max(e=>n.tryToNumber(e[r])):0}static calculateTotal(e,t,r){switch(e.summaryType){case a.Sum:if(i.isPercentOfGrandTotal(e.expression))return 1;return r.rows.any()?r.rows.sum(e=>t<e.length?n.tryToNumber(e[t]):0):0;case a.Count:return r.rows.any()?r.rows.count2(e=>t<e.length&&null!=e[t]):0;case a.Min:return r.rows.any()?r.rows.min(e=>t<e.length?n.tryToNumber(e[t]):0):0;case a.Max:return r.rows.any()?r.rows.max(e=>t<e.length?n.tryToNumber(e[t]):0):0;case a.Average:var o=r.rows.any()?r.rows.sum(e=>t<e.length?n.tryToNumber(e[t]):0):0,s=r.rows.any()?r.rows.count2(e=>t<e.length&&null!=e[t]&&null!=e[t]):0;return 0==s?0:o/s}return 0}}e.StiTableElementHelper=t}(o=t.Helpers||(t.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(t){var e,r,o;r=e=t.Dashboard||(t.Dashboard={}),function(i){var a=t.System.StiString,n=t.Base.StiScale,l=t.System.Drawing.Size;class e{static measureTitle(e){return this.measureTitle2(e,e.text)}static measureTitle2(e,t){return this.measureTitle3(null,null,e,t)}static measureTitle3(e,t,r,o){if(null==r||!r.visible)return l.empty;let s=n.yy(30);if(a.isNullOrWhiteSpace(o))return new l(t.width,s);var r=i.StiAutoSizeTextHelper.measure(e,o,r.font);return s=Math.max(s,r.height),null!=t&&(s=Math.min(s,t.height)),new l(r.width,s)}static measureTitle4(e,t,r,o){let s=n.yy(30);if(a.isNullOrWhiteSpace(o))return new l(t.width,s);var r=i.StiAutoSizeTextHelper.measure(e,o,r);return s=Math.max(s,r.height),null!=t&&(s=Math.min(s,t.height)),new l(r.width,s)}}i.StiTitleMeasureHelper=e}(o=r.Helpers||(r.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r;e=t=e.Designer||(e.Designer={}),function(e){class t{static loadReport(e,t){switch(t){case"Financial":e.loadPacked(this.financial);break;case"Orders":e.loadPacked(this.orders);break;case"SalesOverview":e.loadPacked(this.salesOverview);break;case"TicketsStatistics":e.loadPacked(this.ticketsStatistics);break;case"TrafficAnalytics":e.loadPacked(this.trafficAnalytics);break;case"VehicleProduction":e.loadPacked(this.vehicleProduction);break;case"WebsiteAnalytics":e.loadPacked(this.websiteAnalytics);break}}}t.financial="H4sIAAAAAAAEAO1bWW/buBZ+v8D8ByPz0kHbmJIoSmo7AzjO7myNEycp+sLlyFYjS44kbxn0v19SXmXLsp309g4wNTCpzXNI8Rx+Z6Xm79/+UyrtXEMnjJIGRLEXBjsfSjs60rVdYxfvop13cxxHXU8oMhVgm4K7BGyMqebaDmOWa1Pk6NRmrpGZdEHboCYdegENuEf9DLXiezQuIHeTVhgpej3x2l0/Dt0kw1CNgCaQ7qq8L7+9QW+RgdAf5SxXiwbNAq6DoOkFMKeA8YA+plepz7s+TST1PBSpOCdBAlEngiQdzTztNvASxXLcDUQEImnFl+5JwFtjpqsIeh7065AkXtBUwuvExoaJTXPEsE/jFgtpJBqSDaJ5RhOPN9T1k26UbgSC97f18dJ1Hnmd9NndWE4p1YdxAu2PX6OvwfzA7n5E+/LnMuHOC0TYj3cPw6gd58yjCZ0fnZ7JbjUMkij043zqHo0h76EzjpHmimi7+xIcYXPFE8Y81bDdCQMIkhGb+i+Q+Is7lENpxBOrwb/Vn5L8dLrM93iJ+zSOxwylDzkLy5HRt8nE6Qpzq4w43vwxGc7wqE/S8uLdEwkPKYr3DNPdvvnj4zzr98neJwO/R9CUKCtNd1Hah9hrBhCVmiD/KhMocYnM0vuSCEtBmJTaofDcYbpQ8jX5HRQUX77GdFfpnynaXYgg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WthT+hfuGl0gWy0zbD0cZqPXRnlWPE/74WIzvSyo9NCMgqx5UoyIn0qCUFMKr/gsP2y5bSpU0IuZVpwkWkgHJFWzl7aT/cC/K3I5t2rxRcQb/Fc4FqQN793Zgx5CnBGNdVYSB9bjSWyWDJIEPAUUP4Km/kyyHvj6SvCfgLepMvP9GxCPN7FJaF2uZlFgBPsakSW/TVASmiARvylufPZ9KzkXHTZbHreqxLZSdVXcb3yufG15td/jO1fhF3LkKl8S/trkWl+v+EYmSCTxuNAWUYspj4RkGoPZQeJXU5uVjk79xekYj+RaarLfw4y/Wsm1pm2hjjDRVJRTKzHoMWQMC0lgYC8cmJ9/KaCF2a08pcZrIFAq/B411TJ5W3OGpdOYi2efv+hA7zLNju5UhAKQ6TnMY6x8Jk1nGmCRPYyHUFX3GoAPvLRMd63SI4YHh2tQQtna/49DvwqqjzGfOuw12AtrOCA+D6yFupseWnhmM0Ldv9WB37zM3ezNH/ZiV+rlQeJwBYogqH0hBYMZAdFMGUUCPhKFbz1id9VVFG8P/oHDj9rizNTcG6gsWWIO1vwnXUAF9J9Pb/j/kVVLL77qFQnE/LKslclraScEiwcn9z9AY8ad11FjUBDqImPAJEaK+3qb8iFUMipVFGNXnaq8tNrlbLza/91B8LXCI/vetB7N3+FdFhyBrAA2v9LDlOXydmuPQRF/rZk8MoHqNy6r97vVj8Pha/P9l96KDyvwmaYTOWs44/fGc9kfyhLAP8YvbZm08kydR4gTwRdxu2euBYGnV534saxSdVNe5ayGTyNFk1ZVvWy8Uu2Ru/5+fvfvv0fhezG9M1iAAA=",e.StiWizardDashboardsHelper=t}(r=e.Dashboards||(e.Dashboards={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r;e=t=e.Dashboard||(e.Dashboard={}),function(e){class t{}e.StiDashboardImages=t}(r=e.Images||(e.Images={}))}(Stimulsoft=Stimulsoft||{}),function(a){var e,t,r;t=e=a.Dashboard||(a.Dashboard={}),function(e){var t=a.System.StiString,r=a.Base.Localization.StiLocalization,o=a.Base.StiJsonSaveMode,s=a.Base.StiJson;class i{constructor(){this.name="",this.expression=""}clone(){return this.stimulsoft().memberwiseClone()}saveToJsonObject(e){let t=new s;if(t.addPropertyStringNullOrEmpty("Name",this.name),t.addPropertyStringNullOrEmpty("Expression",this.expression),0==t.count)return null;return t}loadFromJsonObject(e){for(var t of e.properties())switch(t.name){case"Name":this.name=t.value.toString();break;case"Expression":this.expression=t.value.toString();break}}loadFromXml(t,e){for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];switch(r.nodeName){case"Name":this.name=r.textContent;break;case"Expression":this.expression=r.textContent;break}}}static loadFromJson(e){let t=new i;return t.loadFromJsonObject(e),t}static loadFromXml(e){let t=new i;return t.loadFromXml(e,!1),t}saveToString(){return this.saveToJsonObject(o.Report).serialize()}getStringRepresentation(){if(t.isNullOrWhiteSpace(this.name))return r.get("FormStyleDesigner","NotSpecified");return t.isNullOrWhiteSpace(this.expression)?this.name:`${this.name} - ${this.expression}`}isDefault(){return t.isNullOrEmpty(this.name)&&t.isNullOrEmpty(this.expression)}}e.StiDashboardDrillDownParameter=i}(r=t.Interactions||(t.Interactions={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Interactions||(e.Interactions={}),function(e){class t{}e.StiDashboardDrillDownParameterConverter=t}(o=e.Design||(e.Design={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Interactions||(e.Interactions={}),function(e){class t{}e.StiDashboardInteractionConverter=t}(o=e.Design||(e.Design={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s,i;t=e=o.Dashboard||(o.Dashboard={}),s=r=t.Interactions||(t.Interactions={}),function(e){var t=o.Data.Exceptions.StiTypeNotRecognizedException;class r{static new2(e){switch(e){case"Chart":return new s.StiChartDashboardInteraction;case"Table":return new s.StiTableDashboardInteraction;case"TableColumn":return new s.StiTableColumnDashboardInteraction;case"RegionMap":return new s.StiRegionMapDashboardInteraction;case"Text":return new s.StiTextDashboardInteraction;case"Image":return new s.StiImageDashboardInteraction;case"Gauge":return new s.StiGaugeDashboardInteraction;case"Indicator":return new s.StiIndicatorDashboardInteraction;case"Progress":return new s.StiProgressDashboardInteraction;case"OnlineMap":return new s.StiOnlineMapDashboardInteraction;case"PivotTable":return new s.StiPivotTableDashboardInteraction;default:throw new t(e)}}}e.StiDashboardInteractionCreator=r}(i=s.Design||(s.Design={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Interactions||(e.Interactions={}),function(e){class t{}e.StiDashboardInteractionJsonConverter=t}(o=e.Design||(e.Design={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Interactions||(e.Interactions={}),function(e){class t extends e.StiDashboardInteractionConverter{}e.StiTableDashboardInteractionConverter=t}(o=e.Design||(e.Design={}))}(Stimulsoft=Stimulsoft||{}),function(v){var e,t,r;t=e=v.Dashboard||(v.Dashboard={}),function(e){var t=v.Dashboard.Components.Shape.StiShapeElement,r=v.Dashboard.Components.ComboBox.StiComboBoxElement,o=v.Dashboard.Components.ListBox.StiListBoxElement,s=v.Dashboard.Components.TreeViewBox.StiTreeViewBoxElement,i=v.Dashboard.Components.TreeView.StiTreeViewElement,a=v.Dashboard.Components.DatePicker.StiDatePickerElement,n=v.Dashboard.Components.Text.StiTextElement,l=v.Dashboard.Components.Table.StiTableElement,u=v.Dashboard.Components.Progress.StiProgressElement,h=v.Dashboard.Components.PivotTable.StiPivotTableElement,m=v.Dashboard.Components.Panel.StiPanelElement,c=v.Dashboard.Components.OnlineMap.StiOnlineMapElement,d=v.Dashboard.Components.RegionMap.StiRegionMapElement,p=v.Dashboard.Components.Indicator.StiIndicatorElement,S=v.Dashboard.Components.Image.StiImageElement,g=v.Dashboard.Components.Gauge.StiGaugeElement,b=v.Dashboard.Components.Chart.StiChartElement,f=v.Dashboard.Components.StiDashboard;class C{}e.StiDashboardOptions=C;class y{static get elements(){return null==this._elements&&(this._elements=[f,g,S,p,d,c,m,h,u,l,n,t,r,o,s,i,a],v.Report.Chart.StiChartAssembly.isAssemblyLoaded&&this._elements.push(b)),this._elements}}e.Services=y}(r=t.Options||(t.Options={}))}(Stimulsoft=Stimulsoft||{}),function(r){var e,t,o;t=e=r.Dashboard||(r.Dashboard={}),function(e){class t{static fetchAll(){return r.Dashboard.Options.Services.elements}static load(){r["StiOptions"].Services.components.addRange(this.fetchAll())}}(e.StiDashboardElementsLoader=t).load()}(o=t.Options||(t.Options={}))}(Stimulsoft=Stimulsoft||{}),function(ve){var e,t,r;t=e=ve.Dashboard||(ve.Dashboard={}),function(t){var i=ve.Report.Chart.StiConstantLines_StiOrientation,r=ve.Dashboard.Components.Chart.StiLegendVisibility,o=ve.Report.Chart.StiPieSeries,s=ve.Report.Dashboard.Helpers.StiDashboardExpressionHelper,a=ve.Data.Functions.StiExtValueConverter,n=ve.Report.Chart.StiRadarArea,y=ve.System.StiArray,l=ve.Dashboard.Helpers.StiCultureHelper,h=ve.System.StiString,u=ve.Report.Chart.StiMarker,m=ve.Report.Chart.IStiGanttArea,c=ve.Dashboard.Interactions.StiDrillDownHelper,d=ve.Report.Dashboard.StiInteractionOnHover,p=ve.Dashboard.Components.Chart.StiChartLabelsStyle,S=ve.Report.Dashboard.StiChartLabelsPosition,g=ve.Report.Chart.IStiPieSeriesLabels,b=ve.Report.Chart.IStiOutsidePieLabels,f=ve.Report.Chart.IStiCenterPieLabels,C=ve.Report.Chart.IStiYRightAxis,v=ve.Dashboard.Components.Chart.StiYChartAxisTitle,w=ve.Dashboard.Components.Chart.StiXChartAxisTitle,D=ve.Report.Chart.IStiClusteredBarArea,x=ve.Base.Localization.StiLocalization,T=ve.Data.Engine.StiDataTopNMode,F=ve.Report.Chart.IStiAllowApplyBrushNegative,M=ve.Report.Chart.IStiAllowApplyColorNegative,I=ve.Report.Chart.IStiSeriesLabels,k=ve.Report.Chart.IStiDoughnutSeries,R=ve.Report.Chart.IStiPictorialSeries,A=ve.Base.Helpers.StiValueHelper,B=ve.Report.Chart.IStiParetoSeries,O=ve.Base.Helpers.StiValueComparer,P=ve.System.Drawing.Point,E=ve.Report.Components.TextFormats.StiTimeFormatService,L=ve.Dashboard.Components.Chart.StiArgumentChartMeter,N=ve.Dashboard.Components.Chart.StiValueChartMeter,V=ve.Data.Comparers.StiArrayEqualityComparer,z=ve.Dashboard.Components.Chart.StiSeriesChartMeter,J=ve.Report.Components.TextFormats.StiDateFormatService,j=ve.System.DateTime,H=ve.Data.Helpers.StiLabelHelper,G=ve.Report.Chart.IStiPieSeries,X=ve.Report.Chart.StiSeriesLabelsValueType,U=ve.Dashboard.Components.Chart.StiYChartAxis,K=ve.Dashboard.Components.Chart.StiXChartAxis,W=ve.Report.Chart.StiLabelsPlacement,q=ve.Base.Drawing.StiHorAlignment,Y=ve.Report.Chart.IStiAxisArea,Q=ve.Base.Drawing.StiPenStyle,Z=ve.Report.Chart.IStiStackedBaseLineSeries,_=ve.Report.Chart.IStiBaseLineSeries,$=ve.System.Collections.List,ee=ve.Report.Dashboard.StiElementStyleIdent,te=ve.Report.Dashboard.Styles.StiDashboardStyleHelper,re=ve.Report.Chart.IStiFunnelSeries,oe=ve.Base.Drawing.StiSolidBrush,se=ve.System.Drawing.Color,ie=ve.Report.Dashboard.StiReportParser,ae=ve.Report.Chart.StiChartConditionalField,ne=ve.Report.Components.TextFormats.StiNumberFormatService,le=ve.Report.Chart.StiBoxAndWhiskerHelper,ue=ve.Report.Chart.StiShowSeriesLabels,e=ve.Report.Dashboard.StiChartTrendLineType,he=ve.Base.StiAutoBool,me=ve.Report.Chart.IStiShowZerosSeries,ce=ve.Report.Chart.IStiShowNullsSeries,de=ve.Report.Dashboard.StiEmptyCellsAs,pe=ve.Report.Chart.StiShowEmptyCellsAs,Se=ve.Report.Chart.StiChartHelper,ge=ve.Report.Chart.IStiFontIconsSeries,be=ve.Report.Chart.IStiRoundValuesArea,fe=ve.Report.Chart.StiScatterSeries,Ce=ve.Report.Chart.IStiScatterArea;class ye extends t.StiElementBuilder{render(t,r){let e=l.set(t.report);try{let e=new ve.Report.Components["StiChart"];if(e.horSpacing=0,e.vertSpacing=0,e.isDashboard=!0,e.page=t.page,ye.setStyle(t,e),e.series.clear(),null==r)return e;this.renderElements(t,e,r),this.renderArea(t,e),this.renderLegend(t,e),this.renderSeriesLabels(t,e),ye.renderConstantLines(t,e),this.simplifyValues(e),e.applyStyle(),e.allowApplyStyle=!1;var o=s.getBackColor(t,t.backColor);return se.transparent.equals(o)||(e.brush=new oe(o)),e}finally{l.restore(e)}null!==e&&void 0!==e&&e.fix()}renderElements(s,i,a){var n=null==i?void 0:i.report,l=this.getSeriesMeterIndex(a);let e=this.getSeriesKeyValues(a,l);var u=this.getArgumentMeterIndexes(a);let h=this.getArgumentKeys(s,a).toList();var t=this.getValueMeters(a),m=e.count2(),c;for(c of e){let r=0;for(var d of t){var p=this.getValueMeterIndexes(a)[r];let o=this.renderSeries(s,d,this.toReadableString(c,n),i);if(null==o)continue;ye.renderConditions(this.toString(c),o,s,d),ye.renderTrendLines(o,s,d);var S=-1!=l&&1<m?a.rows.whereArrayItemStringEqualsTo(l,this.toString(c)):a.rows,g;o.values=$.create(Number,h.length);let t=0;for(g of h){let e=ye.getDetailRows(S,g,u);t<o.values.length&&(o.values[t]=e.getArrayItem(p).firstOrDefaultAsNullableNumber()),t++}o.originalArguments=h.stimulsoft().toArray(),o.arguments=this.proccessSelectArguments(h,s,o,n);let e=o.as(re);if(null!=e){var b=o.values,f=o.arguments;y.sort3(b,f),y.reverse(b),y.reverse(f),e.values=b,e.arguments=f}else if(o.is(B)){let t=new $,r=new $;for(let e=0;e<o.values.length;e++){var C=o.values[e];if(!(0<C))continue;t.add(C),null!=o.arguments&&e<o.arguments.length?r.add(o.arguments[e]):r.add(e+1)}var b=t.stimulsoft().toArray(),f=r.stimulsoft().toArray();y.sort3(b,f),y.reverse(b),y.reverse(f),o.values=b,o.arguments=f}r++,ye.processTopNElements(s,o),ve.Report.Chart["StiHistogramHelper"].checkValuesAndArguments(o,s.argumentFormat),this.renderSeriesInteraction(o,s,h.length,this.toString(c))}}le.checkArgument(i),Se.checkWaterfallTotals(i)}proccessSelectArguments(e,t,r,o){var s;if(null!=r.as(fe)){let t=[];for(let e=0;e<r.originalArguments.length;e++){var i=r.originalArguments[e],i=null!=i&&0<i.length?i[0]:i;t.push(i)}return t}return e.select(e=>this.getString(t.argumentFormat,e,o)).stimulsoft().toArray()}static processTopNElements(e,t){if(e.topN.mode==T.None)return;let r=new $;var o=(t.values.length>t.arguments.length?t.values:t.arguments).length,s,i;for(let e=0;e<o;e++){var a=e<t.values.length?t.values[e]:null,n=e<t.arguments.length?t.arguments[e]:null,l=e<t.originalArguments.length?t.originalArguments[e]:null;r.add({key:n,key1:l,value:a})}r=e.topN.mode==T.Bottom?r.orderBy(e=>e.value):r.orderByDescending(e=>e.value);let u=r.take(e.topN.count);r.length>e.topN.count&&e.topN.showOthers&&(s=r.skip(e.topN.count).sum(e=>A.tryToNumber(e.value)),i=h.isNullOrEmpty(e.topN.othersText)?x.get("FormDesigner","Others"):ie.parse(e.topN.othersText,e),u.add({key:i,key1:i,value:s})),e.isBarChart&&u.reverse(),t.originalArguments=u.select(e=>e.key1).stimulsoft().toArray(),t.arguments=u.select(e=>e.key).stimulsoft().toArray(),t.values=u.select(e=>A.tryToNullableNumber(e.value)).stimulsoft().toArray()}static setStyle(e,t){if(e.style!=ee.Custom)return void(t.style=te.getChartStyle(e));var r=e.report.styles.getCustomChartStyle(e.customStyleName);if(null!=r)return t.style=r,void(t.customStyleName=e.customStyleName);t.style=te.getChartStyle2(ee.Blue)}static getDetailRows(e,r,o){if(!o.any())return e;return e.where(t=>{var e=o.select(e=>t[e]).stimulsoft().toArray();return O.equalValues(e,r)})}renderSeries(e,t,r,o){var s=t;let i=ve.Dashboard.Components.Chart.Helpers.StiChartSeriesCreator.neww2(t.seriesType);return ye.renderSeriesYAxis(e,s,i),ye.renderSeriesLine(s,i),ye.renderSeriesShowZeros(s,i),ye.renderSeriesShowNulls(s,i),i.coreTitle=this.getSeriesTitle(e,r,t),i.core.seriesColors=null!=e.seriesColors&&0<e.seriesColors.length?e.seriesColors:null,i.isDashboard=!0,this.renderSeriesNegativeColor(e,i,o.series.count),this.renderSeriesParetoColor(e,i,o.series.count),this.renderMarker(e,i),ye.renderSeriesLighting(i),ye.renderSeriesIcon(e,i),o.series.add(i),i}static renderSeriesYAxis(e,t,r){t.is(N)&&1<e.values.length&&(r.yAxis=t.yAxis)}static renderSeriesLine(e,t){let r=t.as(_);null!=e&&null!=r&&(r.lineStyle=e.lineStyle,r.lineWidth=e.lineWidth)}static renderSeriesShowZeros(e,t){let r=t.as(me);if(null==r)return;r.showZeros=e.showZeros==de.Zero;let o=t.as(_);if(null==o)return;e.showZeros==de.Gap&&(o.showZerosAs=pe.Gap),e.showZeros==de.ConnectPointsWithLine&&(o.showZerosAs=pe.ConnectPointsWithLine)}static renderSeriesShowNulls(e,t){let r=t.as(ce);if(null==r)return;r.showNulls=e.showNulls==de.Zero;let o=t.as(_);if(null==o)return;e.showNulls==de.Gap&&(o.showNullsAs=pe.Gap),e.showNulls==de.ConnectPointsWithLine&&(o.showNullsAs=pe.ConnectPointsWithLine)}static renderSeriesLighting(e){e.is(G)&&(e.lighting=!1),e.is(k)&&(e.lighting=!1)}static renderSeriesIcon(e,t){let r=t.as(ge);null!=r&&(t.is(R)&&null==e.icon?r.icon=ve.Report.Helpers.StiFontIcons.QuarterFull:r.icon=e.icon)}renderMarker(e,t){let r=null!=t?t.as(_):null;if(null==r)return;r.marker.size=e.marker.size,r.marker.angle=e.marker.angle,r.marker.type=e.marker.type;let o=null!=r.marker?r.marker.as(u):null;null!=o&&(o.extendedVisible=e.marker.visible)}renderSeriesNegativeColor(e,t,r){if(null==e.negativeSeriesColors||e.negativeSeriesColors.length<=0)return;while(r>=e.negativeSeriesColors.length)r-=e.negativeSeriesColors.length;let o=t.as(F);null!=o&&(o.allowApplyBrushNegative=!0,o.brushNegative=new oe(e.negativeSeriesColors[r]));let s=t.as(M);null!=s&&(s.allowApplyColorNegative=!0,s.lineColorNegative=e.negativeSeriesColors[r])}renderSeriesParetoColor(e,t,r){if(null==e.paretoSeriesColors||e.paretoSeriesColors.length<=0)return;while(r>=e.paretoSeriesColors.length)r-=e.paretoSeriesColors.length;let o=t.as(B);null!=o&&(o.allowApplyLineColor=!0,o.lineColor=e.paretoSeriesColors[r])}renderArea(e,t){var r=s.getBackColor(e,e.backColor);t.area.colorEach=e.colorEach,se.transparent.equals(r)||(t.area.brush=new oe(r)),(e.isPieChart||e.isDoughnutChart||e.isFunnelChart||e.isSunburstChart)&&(t.area.allowApplyStyle=!1,t.area.borderColor=se.transparent),t.area.colorEach=ye.getColorEach(e),t.area.is(be)&&(t.area.as(be).roundValues=e.roundValues),this.renderAxisAxes(e,t),ye.renderRadarAxis(e,t)}static getColorEach(e){return!(!e.isPieChart&&!e.isDoughnutChart)||null!=e.area&&e.area.colorEach}renderAxisAxes(e,t){if(t.series.count<=0)return;let r=t.area.as(Y);if(null==r)return;r.allowApplyStyle=!1,r.borderColor=se.transparent,ye.renderInterlacingHor(e,r),ye.renderInterlacingVert(e,r),ye.renderGridLinesHor(e,r),ye.renderGridLinesVert(e,r),r.reverseHor=e.area.reverseHor,r.reverseVert=e.area.reverseVert,this.renderXAxis(e,t,!1),this.renderYAxis(e,t,!1),e.xTopAxis.visible&&this.renderXAxis(e,t,!0),e.yRightAxis.visible?this.renderYAxis(e,t,!0):ye.renderYRightAxis(e,t)}static renderInterlacingHor(e,t){e.area.interlacingHor.visible&&!se.transparent.equals(e.area.interlacingHor.color)&&(t.interlacingHor.interlacedBrush=new oe(e.area.interlacingHor.color)),t.interlacingHor.visible=e.area.interlacingHor.visible}static renderInterlacingVert(e,t){e.area.interlacingVert.visible&&!se.transparent.equals(e.area.interlacingVert.color)&&(t.interlacingVert.interlacedBrush=new oe(e.area.interlacingVert.color)),t.interlacingVert.visible=e.area.interlacingVert.visible}static renderGridLinesHor(e,t){e.area.gridLinesHor.visible&&!se.transparent.equals(e.area.gridLinesHor.color)&&(t.gridLinesHor.color=e.area.gridLinesHor.color),t.gridLinesHor.visible=e.area.gridLinesHor.visible,t.gridLinesHor.style=Q.Solid}static renderGridLinesVert(e,t){e.area.gridLinesVert.visible&&!se.transparent.equals(e.area.gridLinesVert.color)&&(t.gridLinesVert.color=e.area.gridLinesVert.color),t.gridLinesVert.visible=e.area.gridLinesVert.visible,t.gridLinesVert.style=Q.Solid}renderXAxis(e,t,r){let o=t.area.as(Y);if(null==o)return;let s=r?o.xTopAxis:o.xAxis;var i=r?e.xTopAxis:e.xAxis,r=t.area.is(D);let a=c.isDrillAvailable(e)&&e.drillDownCurrentLevel<e.drillDownLevelCount?e.arguments.getRange(e.drillDownCurrentLevel,1):e.arguments,n=(r?e.values:a).select(this.getTitle).distinct();ye.renderAxis(e,s,i),s.ticks.visible=n.any(),s.visible=i.visible,ye.renderXAxisTitleText(e,s,i,n);var r=t.series.toList().cast().all(e=>e.is(_)||e.is(Z));i.startFromZero==he.Auto&&(s.startFromZero=!r),i.showEdgeValues==he.Auto&&(s.showEdgeValues=r),s.labels.placement==W.AutoRotation&&(s.labels.textAlignment=q.Left),null!=e.valueFormat&&o.is(D)&&(s.labels.formatService=ye.checkValueFormat(e.valueFormat,t)),null!=e.argumentFormat&&o.is(Ce)&&(s.labels.formatService=e.argumentFormat),ye.renderAxisLineColor(e,s)}renderYAxis(e,t,r){let o=t.area.as(Y);if(null==o)return;let s=r?o.yRightAxis:o.yAxis;var r=r?e.yRightAxis:e.yAxis,i;let a=(t.area.is(m)||t.area.is(D)?e.arguments:e.values).select(this.getTitle).distinct();ye.renderAxis(e,s,r),s.visible=a.any()&&r.visible,ye.renderYAxisTitleText(e,s,r,a),null==e.valueFormat||o.is(D)||(s.labels.formatService=ye.checkValueFormat(e.valueFormat,t)),ye.renderAxisLineColor(e,s)}static renderXRadarAxis(e,t){let r=t.area.as(n);if(null==r)return;this.renderXRadarAxisLabels(e.area.xAxis.labels,r.xAxis.labels),this.renderAxisRange(r.xAxis.range,e.xAxis),null!=e.valueFormat&&(r.yAxis.labels.formatService=ye.checkValueFormat(e.valueFormat,t));var t=te.getForeColor(e);this.renderRadarXAxisLabelsColor(e,r.xAxis.labels,e.xAxis,t),r.xAxis.visible=e.xAxis.visible}static renderXRadarAxisLabels(e,t){t.color=e.color,t.font=e.font,t.textBefore=e.textBefore,t.textAfter=e.textAfter,t.allowApplyStyle=!1}static renderYRadarAxis(e,t){let r=t.area.as(n);if(null==r)return;this.renderYRadarAxisLabels(e.area.yAxis.labels,r.yAxis.labels),this.renderAxisRange(r.xAxis.range,e.xAxis);var t=te.getForeColor(e);this.renderRadarYAxisLabelsColor(e,r.yAxis.labels,e.yAxis,t),r.yAxis.visible=e.yAxis.visible}static renderYRadarAxisLabels(e,t){t.font=e.font,t.textBefore=e.textBefore,t.textAfter=e.textAfter,t.color=e.color,t.step=e.step,t.angle=e.angle,t.textAlignment=e.textAlignment,t.allowApplyStyle=!1}static renderRadarXAxisLabelsColor(e,t,r,o){if(!se.transparent.equals(r.labels.color))return void(t.color=r.labels.color);e.style==ee.Custom&&t.color!=se.transparent||(t.color=o)}static renderRadarYAxisLabelsColor(e,t,r,o){if(!se.transparent.equals(r.labels.color))return void(t.color=r.labels.color);e.style==ee.Custom&&t.color!=se.transparent||(t.color=o)}static checkValueFormat(e,o){let s=e.as(ne);if(null!=s&&0<(s.state&ve.Report.Components.StiTextFormatState.Abbreviation)){let t=s.clone(),r=null;for(let e=0;e<o.series.count;e++){var i,a;for(a of o.series.getByIndex(e).values)(null==r||r>a)&&(r=a)}if(null!=r&&0!=r){r=Math.abs(r);let e=0;if(r<4){while(Math.round(r)%10==0)r*=10,e++;e+=2}t.useLocalSetting=!1,t.decimalDigits=e}return t}return e}static renderYRightAxis(e,t){var t=t.area.as(Y);if(null==t)return;this.renderAxis(e,t.yRightAxis,e.yRightAxis),this.renderAxisLineColor(e,t.yRightAxis)}static renderXAxisTitleText(e,t,r,o){if(!r.title.visible)return;t.title.text=h.isNullOrEmpty(r.title.text)?h.join(" / ",o):ie.parse(r.title.text,e)}static renderYAxisTitleText(e,t,r,o){if(!r.title.visible)return;t.title.text=h.isNullOrEmpty(r.title.text)?h.join(" / ",o):ie.parse(r.title.text,e)}static renderAxisLineColor(e,t){if(e.style==ee.Custom&&!se.transparent.equals(t.lineColor))return t.allowApplyStyle=!1,void(t.allowApplyStyle=!1);te.isDarkStyle(e.dashboard)&&(t.allowApplyStyle=!1,t.lineColor=te.getForeColor(e))}static renderRadarAxis(e,t){if(t.series.count<=0)return;var r;if(null==t.area.as(n))return;this.renderXRadarAxis(e,t),this.renderYRadarAxis(e,t)}static renderAxis(e,t,r){var o=te.getForeColor(e);let s=this.getTitleAxisChart(r),i=t.title;i.alignment=s.alignment,i.position=s.position,i.font=s.font,this.renderAxisLabelsTitleColor(e,i,s,o),s.is(w)&&(i.direction=s.direction),s.is(v)&&(i.direction=s.direction),t.labels.angle=r.labels.angle,t.is(C)&&e.isParetoChart||(t.labels.textAfter=ie.parse(t.labels.textAfter,e)),t.labels.textAlignment=r.labels.textAlignment,t.labels.textBefore=ie.parse(r.labels.textBefore,e),t.labels.font=r.labels.font,t.labels.placement=r.labels.placement,t.labels.step=r.labels.step,this.renderAxisStartFromZero(t,r),this.renderAxisShowEdgeValues(t,r),this.renderAxisRange(t.range,r),this.renderAxisLabelsColor(e,t,r,o)}static renderAxisStartFromZero(e,t){var r,o;t.is(K)&&null!=t&&t.startFromZero!=he.Auto&&(e.startFromZero=t.startFromZero!=he.False),t.is(U)&&null!=t&&(e.startFromZero=t.startFromZero)}static renderAxisShowEdgeValues(e,t){var r;t.is(K)&&null!=t&&t.showEdgeValues!=he.Auto&&(e.showEdgeValues=t.showEdgeValues!=he.False)}static renderAxisRange(e,t){t.stimulsoft().getType()!=K&&t.stimulsoft().getType()!=U||(e.auto=t.range.auto,e.maximum=t.range.maximum,e.minimum=t.range.minimum)}static renderAxisLabelsTitleColor(e,t,r,o){if(!se.transparent.equals(r.color))return void(t.color=r.color);e.style==ee.Custom&&!se.transparent.equals(t.color)||(t.color=o)}static renderAxisLabelsColor(e,t,r,o){if(!se.transparent.equals(r.labels.color))return void(t.labels.color=r.labels.color);e.style==ee.Custom&&!se.transparent.equals(t.labels.color)||(t.labels.color=o)}static getTitleAxisChart(e){if(e.is(K))return e.title;if(e.is(U))return e.title;return null}renderLegend(e,t){t.legend.horAlignment=e.legend.horAlignment,t.legend.vertAlignment=e.legend.vertAlignment,t.legend.title=ie.parse(e.legend.title.text,e),t.legend.titleFont=e.legend.title.font,t.legend.allowApplyStyle=!1,t.legend.font=e.legend.labels.font,t.legend.visible=ye.getChartLegendVisible(e,t),t.legend.columns=e.legend.columns,t.legend.direction=e.legend.direction;var r=te.getForeColor(e);ye.renderLegendTitleColor(e,t,r),ye.renderLegendLabelsColor(e,t,r)}static getChartLegendVisible(e,t){if(1==t.series.count&&!t.series.getByIndex(0).is(o))return e.legend.visibility==r.Always;return e.legend.visibility!=r.False}static renderLegendTitleColor(e,t,r){if(!se.transparent.equals(e.legend.title.color))return void(t.legend.titleColor=e.legend.title.color);e.style==ee.Custom&&!se.transparent.equals(t.legend.titleColor)||(t.legend.titleColor=r)}static renderSeriesLabelsLegendValueType(e,t){let r=0;t.series.toList().cast().where(e=>null!=e.arguments).toList().forEach(e=>{r+=e.arguments.stimulsoft().toList().count2(e=>null!=e)}),null==e.legend.labels.valueType?0<r&&1<t.series.count?t.seriesLabels.legendValueType=X.SeriesTitleArgument:1==r&&1==t.series.count&&(e.isPieChart||e.isDoughnutChart)?t.seriesLabels.legendValueType=X.SeriesTitle:0<r&&1==t.series.count?t.seriesLabels.legendValueType=X.Argument:0==r&&1<t.series.count?t.seriesLabels.legendValueType=X.SeriesTitle:t.seriesLabels.legendValueType=e.isBubbleChart?X.Weight:X.Value:t.seriesLabels.legendValueType=e.legend.labels.valueType}static renderLegendLabelsColor(e,t,r){if(!se.transparent.equals(e.legend.labels.color))return void(t.legend.labelsColor=e.legend.labels.color);e.style==ee.Custom&&!se.transparent.equals(t.legend.labelsColor)||(t.legend.labelsColor=r)}static renderConditions(e,t,r,o){var s=null!=r.chartConditions?r.chartConditions.where(e=>e.keyValueMeter==o.key):null;null!=s&&this.renderValueConditions(r,t,s);var s=null!=r.chartConditions?r.chartConditions.where(e=>e.field==ae.Argument):null;null!=s&&this.renderArgumentConditions(r,t,s);var s=null!=r.chartConditions?r.chartConditions.where(e=>e.field==ae.Series):null;null!=s&&this.renderSeriesConditions(r,t,s,e)}static renderValueConditions(e,t,r){for(var o of r){var s=o.isExpression?ie.parse(`{${o.value}}`,e):o.value;t.conditions.add(new ve.Report.Chart["StiChartCondition"](o.color,ve.Report.Components.StiFilterItem.Value,o.dataType,o.condition,s,o.markerType,o.markerAngle))}}static renderArgumentConditions(e,t,r){for(var o of r){var s=o.isExpression?ie.parse(`{${o.value}}`,e):o.value;t.conditions.add(new ve.Report.Chart["StiChartCondition"](o.color,ve.Report.Components.StiFilterItem.Argument,o.dataType,o.condition,s,o.markerType,o.markerAngle))}}static renderSeriesConditions(t,r,e,o){for(var s of e){let e=s.isExpression?ie.parse(`{${s.value}}`,t):s.value;this.getConditionResult(null===e||void 0===e?void 0:e.toString(),o,s.condition)&&(r.legendColor=s.color,r.conditions.add(new ve.Report.Chart["StiChartCondition"](s.color,ve.Report.Components.StiFilterItem.Argument,ve.Report.Components.StiFilterDataType.String,ve.Report.Components.StiFilterCondition.BeginningWith,"",s.markerType,s.markerAngle)))}}static getConditionResult(t,r,o){var e=!1;if(null!=r){let e=r;if(null!=e&&null!=t){r.stimulsoft().getType()!=t.stimulsoft().getType()&&(r=r.toString(),t=t.stimulsoft().toString(),e=r);try{switch(o){case ve.Report.Components.StiFilterCondition.EqualTo:return 0==e.stimulsoft().compareTo(t);case ve.Report.Components.StiFilterCondition.NotEqualTo:return 0!=e.stimulsoft().compareTo(t);case ve.Report.Components.StiFilterCondition.GreaterThan:return 1==e.stimulsoft().compareTo(t);case ve.Report.Components.StiFilterCondition.GreaterThanOrEqualTo:return 0<=e.stimulsoft().compareTo(t);case ve.Report.Components.StiFilterCondition.LessThan:return-1==e.stimulsoft().compareTo(t);case ve.Report.Components.StiFilterCondition.LessThanOrEqualTo:return e.stimulsoft().compareTo(t)<=0;case ve.Report.Components.StiFilterCondition.Containing:{let e=r.toString();var s=t.toString();return-1!=e.indexOf(s)}case ve.Report.Components.StiFilterCondition.NotContaining:{let e=r.toString();var i=t.toString();return-1==e.indexOf(i)}case ve.Report.Components.StiFilterCondition.BeginningWith:{let e=r.toString();var a=t.toString();return e.stimulsoft().startsWith(a)}case ve.Report.Components.StiFilterCondition.EndingWith:{let e=r.toString();var n=t.toString();return e.stimulsoft().endsWith(n)}}}catch(e){}}}return e}static renderConstantLines(t,r){for(var o of t.constantLines){var s=!h.isNullOrEmpty(o.text);let e=new ve.Report.Chart["StiConstantLines"];e.allowApplyStyle=!1,e.text=o.text,e.axisValue=ie.parse(o.axisValue,t),e.lineColor=o.lineColor,e.lineStyle=o.lineStyle,e.lineWidth=o.lineWidth,e.titleVisible=s,e.orientation=t.isBarChart?i.Vertical:i.Horizontal,e.position=o.position,r.constantLines.add(e)}}static renderTrendLines(e,t,r){var t,t=null===(t=t.trendLines)||void 0===t?void 0:t.where(e=>e.keyValueMeter==r.key).toList(),o;e.trendLines.clear();for(o of t)e.trendLines.add(this.getTrendLine(o,e.chart))}static getTrendLine(t,r){switch(t.type){case e.None:return new ve.Report.Chart["StiTrendLineNone"];case e.Exponential:{let e=new ve.Report.Chart["StiTrendLineExponential"];return e.allowApplyStyle=!1,e.lineColor=se.transparent.equals(t.lineColor)?r.style.core.trendLineColor:t.lineColor,e.lineStyle=t.lineStyle,e.lineWidth=t.lineWidth,e.showShadow=!1,e}case e.Linear:{let e=new ve.Report.Chart["StiTrendLineLinear"];return e.allowApplyStyle=!1,e.lineColor=se.transparent.equals(t.lineColor)?r.style.core.trendLineColor:t.lineColor,e.lineStyle=t.lineStyle,e.lineWidth=t.lineWidth,e.showShadow=!1,e}case e.Logarithmic:{let e=new ve.Report.Chart["StiTrendLineLogarithmic"];return e.allowApplyStyle=!1,e.lineColor=se.transparent.equals(t.lineColor)?r.style.core.trendLineColor:t.lineColor,e.lineStyle=t.lineStyle,e.lineWidth=t.lineWidth,e.showShadow=!1,e}}}renderSeriesLabels(t,e){if(!(t.isPieChart||t.isFunnelChart||t.isDoughnutChart||t.isTreemapChart||t.isAxisAreaChart||t.isSunburstChart||t.isRadarChart||t.isWaterfallChart))return void(e.seriesLabels.visible=!1);e.allowApplyStyle=!1,t.isPieChart?ye.renderPieLabelsPosition(t,e):t.isDoughnutChart||t.isSunburstChart?ye.renderDoughnutLabelsPosition(t,e):t.isFunnelChart?ye.renderFunnelLabelsPosition(t,e):t.isTreemapChart?ye.renderTreemapLabelsPosition(t,e):t.isWaterfallChart?ye.renderWaterfallLabelsPosition(t,e):t.isStackedChart?ye.renderStackedLabelsPosition(t,e):t.isRadarChart?ye.renderRadarLabelsPosition(t,e):t.isAxisAreaChart&&ye.renderAxisLabelsPosition(t,e),e.seriesLabels.core.applyStyle(e.style),ye.applyPropertiesToSeriesLabels(t,e.seriesLabels.as(I)),t.isStackedChart&&e.series.toList().forEach(e=>ye.applyPropertiesToSeriesLabels(t,e.seriesLabels.as(I))),t.isPieChart||t.isDoughnutChart?(ye.renderPieLabelsStyle(t,e),ye.renderPieLabelsAutoRotate(t,e),ye.renderSeriesLabelsLegendValueType(t,e)):t.isSunburstChart?ye.renderPieLabelsAutoRotate(t,e):t.isFullStackedChart?(ye.renderLabelsStyle(t,e),e.seriesLabels.showInPercent=!0):ye.renderLabelsStyle(t,e),ye.renderLabelsColor(t,e),ye.renderLabelsTextFormat(t,e)}static applyPropertiesToSeriesLabels(e,t){t.preventIntersection=!0,t.textAfter=ie.parse(e.labels.textAfter,e),t.textBefore=ie.parse(e.labels.textBefore,e),t.font=e.labels.font,t.showZeros=!1}static renderPieLabelsAutoRotate(e,t){let r=t.seriesLabels.as(f);null!=r&&(r.autoRotate=e.labels.autoRotate)}static renderLabelsColor(e,t){var r,r;let o=t.seriesLabels.as(I),s=t.seriesLabels.as(b);se.transparent.equals(e.labels.foreColor)?(o.labelColor=se.gray,o.labelColor=te.isDarkStyle2(e.style)?se.fromArgb(50,50,50):null!=(null===(r=null==t?void 0:t.style)||void 0===r?void 0:r.core)?t.style.core.seriesLabelsColor:se.gray,null!=s&&(s.lineColor=null!=(null===(r=null==t?void 0:t.style)||void 0===r?void 0:r.core)?t.style.core.seriesLabelsLineColor:se.gray)):(o.labelColor=e.labels.foreColor,null!=s&&(s.lineColor=e.labels.foreColor))}static renderLabelsTextFormat(e,t){t.seriesLabels.formatService=e.valueFormat}static renderFunnelLabelsPosition(e,t){switch(e.labels.funnelPosition){case S.None:t.seriesLabels.visible=!1;break;case S.Left:t.seriesLabels=new ve.Report.Chart["StiOutsideLeftFunnelLabels"];break;case S.Center:t.seriesLabels=new ve.Report.Chart["StiCenterFunnelLabels"];break;case S.Right:t.seriesLabels=new ve.Report.Chart["StiOutsideRightFunnelLabels"];break;default:t.seriesLabels.visible=!1;break}}static renderTreemapLabelsPosition(e,t){switch(e.labels.treemapPosition){case S.None:t.seriesLabels.visible=!1;break;case S.Center:t.seriesLabels=new ve.Report.Chart["StiCenterTreemapLabels"];break;default:t.seriesLabels.visible=!1;break}}static renderPieLabelsPosition(e,t){switch(e.labels.piePosition){case S.None:t.seriesLabels.visible=!1;break;case S.Center:t.seriesLabels=new ve.Report.Chart["StiCenterPieLabels"];break;case S.InsideEnd:t.seriesLabels=new ve.Report.Chart["StiInsideEndPieLabels"];break;case S.Outside:t.seriesLabels=new ve.Report.Chart["StiOutsidePieLabels"];break;case S.TwoColumns:t.seriesLabels=new ve.Report.Chart["StiTwoColumnsPieLabels"];break;default:t.seriesLabels.visible=!1;break}}static renderStackedLabelsPosition(e,r){switch(e.labels.axisPosition){case S.Total:{let t=r.series.toList().lastOrDefault();r.series.toList().where(e=>e!=t).toList().forEach(e=>{e.showSeriesLabels=ue.FromSeries,e.seriesLabels.visible=!1}),t.showSeriesLabels=ue.FromSeries,t.seriesLabels=new ve.Report.Chart["StiValueAxisLabels"],t.isTotalLabel=!0,t.seriesLabels.formatService=e.valueFormat;break}default:ye.renderAxisLabelsPosition(e,r);break}}static renderRadarLabelsPosition(e,t){switch(e.labels.radarPosition){case S.None:t.seriesLabels.visible=!1;break;case S.Center:t.seriesLabels=new ve.Report.Chart["StiCenterAxisLabels"];break;default:t.seriesLabels.visible=!1;break}}static renderWaterfallLabelsPosition(e,t){switch(e.labels.axisPosition){case S.None:t.seriesLabels.visible=!1;break;case S.Center:t.seriesLabels=new ve.Report.Chart["StiCenterAxisLabels"];break;case S.InsideBase:t.seriesLabels=new ve.Report.Chart["StiInsideBaseAxisLabels"];break;case S.InsideEnd:t.seriesLabels=new ve.Report.Chart["StiInsideEndAxisLabels"];break;case S.Outside:t.seriesLabels=new ve.Report.Chart["StiOutsideAxisLabels"];break;case S.OutsideBase:t.seriesLabels=new ve.Report.Chart["StiOutsideBaseAxisLabels"];break;case S.OutsideEnd:t.seriesLabels=new ve.Report.Chart["StiOutsideEndAxisLabels"];break;case S.Value:t.seriesLabels=new ve.Report.Chart["StiValueAxisLabels"];break;default:t.seriesLabels.visible=!1;break}}static renderAxisLabelsPosition(e,t){switch(e.labels.axisPosition){case S.None:t.seriesLabels.visible=!1;break;case S.Center:t.seriesLabels=new ve.Report.Chart["StiCenterAxisLabels"];break;case S.InsideBase:t.seriesLabels=new ve.Report.Chart["StiInsideBaseAxisLabels"];break;case S.InsideEnd:t.seriesLabels=new ve.Report.Chart["StiInsideEndAxisLabels"];break;case S.Left:t.seriesLabels=new ve.Report.Chart["StiLeftAxisLabels"];break;case S.Outside:t.seriesLabels=new ve.Report.Chart["StiOutsideAxisLabels"];break;case S.OutsideBase:t.seriesLabels=new ve.Report.Chart["StiOutsideBaseAxisLabels"];break;case S.OutsideEnd:t.seriesLabels=new ve.Report.Chart["StiOutsideEndAxisLabels"];break;case S.Right:t.seriesLabels=new ve.Report.Chart["StiRightAxisLabels"];break;case S.Value:t.seriesLabels=new ve.Report.Chart["StiValueAxisLabels"];break;default:t.seriesLabels.visible=!1;break}}static renderDoughnutLabelsPosition(e,t){switch(e.labels.doughnutPosition){case S.None:t.seriesLabels.visible=!1;break;case S.Center:t.seriesLabels=new ve.Report.Chart["StiCenterPieLabels"];break;default:t.seriesLabels.visible=!1;break}}static renderPieLabelsStyle(e,t){let r=t.seriesLabels.as(g);switch(e.labels.style){case p.PercentOfTotal:r.showInPercent=!0,r.valueType=X.Value;break;case p.Category:r.showInPercent=!1,r.valueType=e.arguments.any()?X.Argument:X.SeriesTitle;break;case p.CategoryPercentOfTotal:r.showInPercent=!0,r.valueType=e.arguments.any()?X.ArgumentValue:X.SeriesTitleValue;break;case p.CategoryValue:r.showInPercent=!1,r.valueType=e.arguments.any()?X.ArgumentValue:X.SeriesTitleValue;break;case p.Value:r.showInPercent=!1,r.valueType=X.Value;break}}static renderLabelsStyle(e,t){let r=t.seriesLabels;switch(e.labels.style){case p.PercentOfTotal:r.valueType=X.Value;break;case p.Category:r.valueType=e.arguments.any()?X.Argument:X.SeriesTitle;break;case p.CategoryPercentOfTotal:r.valueType=e.arguments.any()?X.ArgumentValue:X.SeriesTitleValue;break;case p.CategoryValue:r.valueType=e.arguments.any()?X.ArgumentValue:X.SeriesTitleValue;break;case p.Value:r.valueType=X.Value;break}}renderSeriesInteraction(t,r,e,o){var s=null==r?void 0:r.report,i,a;let n=0;if(r.dashboardInteraction.onHover==d.ShowToolTip){t.toolTips=y.create(String,e);for(var l of t.arguments){let e="";n<t.values.length&&null!=t.values[n]&&(e=t.values[n].toString()),t.toolTips[n]=this.getToolTip(r,r.dashboardInteraction.toolTip,this.getString(r.argumentFormat,l,s),this.getString(r.valueFormat,e,s),o),n++}}n=0,t.hyperlinks=y.create(String,e);for(a of t.arguments){let e="";n<t.values.length&&null!=t.values[n]&&(e=t.values[n].toString()),t.hyperlinks[n]=this.getHyperlink(r,r.dashboardInteraction.hyperlink,a.toString(),e,t.titleValue),n++}t.drillDownEnabled=!0}getToolTip(e,t,r,o,s){var i;if(null==r&&(r=""),null==s&&(s=""),h.isNullOrWhiteSpace(t))return null==r||h.isNullOrEmpty(r)||(r=r.split('"').join('\\"')),"{"+h.format('"StiColor":"{0}","StiValue":"{1}","StiArgument":"{2}"',"#ffffff",o,r)+"}";return this.getHyperlink(e,t,r,o,s)}getHyperlink(e,t,r,o,s){return null==r&&(r=""),null==s&&(s=""),ie.parse(t,e,!1)}getTitle(e){return H.getLabel(e)}getSeriesTitle(e,t,r){if(e.values.length<2)return t;var r=H.getLabel(r),r=h.isNullOrWhiteSpace(r)?null:r;if(null==r)return t;return h.isNullOrWhiteSpace(t)?r:`${t} - ${r}`}getArgumentIndex(e,t){let r=this.getArgumentMeterIndexes(e).toList();if(null==r||!r.any())return-1;if(1==r.length)return r.firstOrDefault();if(r.length>t)return Math.trunc(r[t]);return-1}simplifyValues(e){let r=0;while(r<e.series.count){let t=e.series.getByIndex(r);if(800<t.values.length){var o=this.getShorterListPoints(t);t.values=y.create(Number,o.length),t.arguments=y.create(Object,o.length);for(let e=0;e<o.length;e++)t.values[e]=o[e].x,t.arguments[e]=o[e].y}r++}}getShorterListPoints(t){let r=y.create(P,t.values.length);for(let e=0;e<t.values.length;e++)r[e]=new P(t.values[e],e);var o=[.3,.6,1,5,9,15,20,25,30,40];let s=null,i=null;for(let e=0;e<o.length;e++){if(s=ve.Report.Chart["StiSimplifyHelper"].simplify(r,e,!0).stimulsoft().toList(),s.length/r.length<.02&&s.length<900&&null!=i){s=i;break}i=s}return s}getString(t,r,o){if(null==r)return"";if(y.isArray(r)){let e=new $;for(var s of r)e.add(this.getFormatValue(t,s,o));return h.join(" - ",e)}return this.getFormatValue(t,r,o)}getFormatValue(e,t,r){return null==t?"":t instanceof j?e.is(J)||e.is(E)?e.format(t):t.toShortDateString():a.isEligable(t,null==r?void 0:r.culture)?a.convert(t,null==r?void 0:r.culture):null!=e?e.format(t):t.toString()}static create(e){if(e.isSunburstChart)return new t.StiSunburstChartElementBuilder;if(e.isBubbleChart)return new t.StiBubbleChartElementBuilder;if(e.isRange)return new t.StiRangeChartElementBuilder;if(e.isFinancial)return new t.StiFinancialChartElementBuilder;if(e.isFullStackedChart||e.isStackedChart)return new t.StiStackedChartElementBuilder;return new ye}getValueMeterIndexes(t){if(null==t)return null;return this.getValueMeters(t).select(e=>t.meters.indexOf(e)).stimulsoft().toArray()}getArgumentMeterIndexes(t){if(null==t)return null;return this.getArgumentMeters(t).select(e=>t.meters.indexOf(e)).toList()}getSeriesMeterIndex(e){if(null==e)return-1;var t=e.meters.firstOrDefault(e=>e.is(z));return null!=t?e.meters.indexOf(t):-1}getArgumentKeys(e,t){if(null==t)return null;let r=this.getArgumentMeters(t),o=r.select(e=>t.meters.indexOf(e)).toList(),s=t.rows.groupBy(t=>o.select(e=>t[e]).stimulsoft().toArray(),new V);return s.select(e=>e.key.stimulsoft().toArray())}getValueMeters(e){if(null==e)return null;return e.meters.where(e=>e.is(N)).cast()}getArgumentMeters(e){if(null==e)return null;return e.meters.where(e=>e.is(L)).cast()}}t.StiChartElementBuilder=ye}(r=t.Render||(t.Render={}))}(Stimulsoft=Stimulsoft||{}),function(i){var e,t,r;t=e=i.Dashboard||(i.Dashboard={}),function(e){var n=i.System.StiArray,l=i.System.StiString,u=i.Report.Dashboard.StiInteractionOnHover,t=i.Dashboard.Components.Chart.StiXChartMeter,r=i.Dashboard.Components.Chart.StiYChartMeter,o=i.Dashboard.Components.Chart.StiWeightChartMeter,h=i.Report.Chart.IStiBubbleSeries;class s extends e.StiChartElementBuilder{renderElements(o,s,i){let a=s.report;var n=this.getSeriesMeterIndex(i);let e=this.getSeriesKeys(i,n);var t=this.getValueMeters(i),l=e.count2(),u;for(u of e){let r=0;for(var h of t){var m=this.getValueMeterIndexes(i)[r];let t=this.renderSeries(o,h,u,s);if(null==t)continue;let e=-1!=n&&1<l?i.rows.whereArrayItemStringEqualsTo(n,u):i.rows;t.values=e.getArrayItem(m).tryCastToNullableNumber().stimulsoft().toArray();var h=this.getArgumentIndex(i,m);-1!=h&&(t.arguments=e.getArrayItem(h).select(e=>this.getString(o.argumentFormat,e,a)).stimulsoft().toArray()),t.weights=null;var m=this.getWeightIndex(i,m);if(-1!=m&&(t.weights=e.getArrayItem(m).tryCastToNumber().stimulsoft().toArray()),null==t.weights){t.weights=[];for(let e=0;e<t.argument.length;e++)t.weights[e]=10}r++;var m=Math.min(t.values.length,t.arguments.length);this.renderSeriesInteraction(t,o,m,u)}}}renderSeries(e,t,r,o){let s=new i.Report.Chart["StiBubbleSeries"];return s.coreTitle=this.getSeriesTitle(e,r,t),s.isDashboard=!0,o.series.add(s),s}renderSeriesInteraction(s,e,t,r){let i=s.as(h);if(null==i)return;var o,a;if(e.dashboardInteraction.onHover==u.ShowToolTip){s.toolTips=n.create(String,t);for(let o=0;o<t;o++){let e="",t="",r="";o<s.values.length&&null!=s.values[o]&&(e=s.values[o].toString()),o<s.arguments.length&&null!=s.arguments[o]&&(t=`${s.arguments[o]}`),o<i.weights.length&&(r=i.weights[o].toString()),s.toolTips[o]="{"+l.format('"StiColor":"{0}","StiValue":"{1}","StiArgument":"{2}","StiWeight":"{3}"',"#ffffff",e,t,r)+"}"}}s.drillDownEnabled=!0}getWeightIndex(e,t){if(null==e)return-1;let r=this.getWeightMeterIndexes(e);if(null==r)return-1;if(!r.any())return-1;if(1==r.length)return r.toList().firstOrDefault();if(r.length>t)return Math.trunc(r[t]);return-1}getWeightMeterIndexes(t){if(null==t)return null;return this.getWeightMeters(t).select(e=>t.meters.indexOf(e)).toList()}getWeightMeters(e){if(null==e)return null;return e.meters.where(e=>e.is(o)).cast()}getValueMeters(e){if(null==e)return null;return e.meters.where(e=>e.is(r)).cast()}getArgumentMeters(e){if(null==e)return null;return e.meters.where(e=>e.is(t)).cast()}}e.StiBubbleChartElementBuilder=s}(r=t.Render||(t.Render={}))}(Stimulsoft=Stimulsoft||{}),function(h){var e,t,r;t=e=h.Dashboard||(h.Dashboard={}),function(e){var i=h.System.StiArray,l=h.System.StiString,u=h.Report.Dashboard.StiInteractionOnHover,d=h.Report.Chart.IStiFinancialSeries,a=h.Dashboard.Components.Chart.Helpers.StiChartSeriesCreator,n=h.Dashboard.Components.Chart.StiOpenValueChartMeter,t=h.Dashboard.Components.Chart.StiCloseValueChartMeter,r=h.Dashboard.Components.Chart.StiLowValueChartMeter,o=h.Dashboard.Components.Chart.StiHighValueChartMeter,p=h.System.Collections.List,S=h.Report.Chart.IStiAxisArea;class s extends e.StiChartElementBuilder{renderElements(s,i,a){let n=null==i?void 0:i.report;var l=this.getSeriesMeterIndex(a);let e=this.getSeriesKeys(a,l);var t=this.getValueMeters(a),u=e.count2(),h;for(h of e){let o=0;for(var m of t){var c=this.getValueMeterIndexes(a)[o];let t=this.renderSeries(s,m,h,i),r=t.as(d);if(null==t||null==r)continue;let e=-1!=l&&1<u?a.rows.whereArrayItemStringEqualsTo(l,h):a.rows;r.valuesOpen=e.getArrayItem(c).tryCastToNullableNumber().stimulsoft().toArray(),r.valuesClose=null;var m=this.getCloseValueIndex(a,c);if(-1!=m&&(r.valuesClose=e.getArrayItem(m).tryCastToNullableNumber().stimulsoft().toArray()),null==r.valuesClose){r.valuesClose=[];for(let e=0;e<t.argument.length;e++)r.valuesClose[e]=10}r.valuesLow=null;var m=this.getLowValueIndex(a,c);if(-1!=m&&(r.valuesLow=e.getArrayItem(m).tryCastToNullableNumber().stimulsoft().toArray()),null==r.valuesLow){r.valuesLow=[];for(let e=0;e<t.argument.length;e++)r.valuesLow[e]=10}r.valuesHigh=null;var m=this.getHighValueIndex(a,c);if(-1!=m&&(r.valuesHigh=e.getArrayItem(m).tryCastToNullableNumber().stimulsoft().toArray()),null==r.valuesHigh){r.valuesHigh=[];for(let e=0;e<t.argument.length;e++)r.valuesHigh[e]=10}var c=this.getArgumentIndex(a,c);-1!=c&&(t.arguments=e.getArrayItem(c).select(e=>this.getString(s.argumentFormat,e,n)).stimulsoft().toArray()),o++;var c=Math.min(t.values.length,t.arguments.length);this.renderSeriesInteraction(t,s,c,h)}}}renderSeries(e,t,r,o){let s=a.neww2(t.as(n).seriesType);return s.coreTitle=this.getSeriesTitle(e,r,t),s.isDashboard=!0,o.series.add(s),s}renderSeriesInteraction(a,e,t,r){let n=a.as(d);if(null==n)return;var o,s;if(e.dashboardInteraction.onHover==u.ShowToolTip){a.toolTips=i.create(String,t);for(let i=0;i<t;i++){let e="",t="",r="",o="",s="";i<n.valuesOpen.length&&null!=n.valuesOpen[i]&&(e=n.valuesOpen[i].toString()),i<n.valuesClose.length&&(t=n.valuesClose[i].toString()),i<n.valuesLow.length&&(r=n.valuesLow[i].toString()),i<n.valuesHigh.length&&(o=n.valuesHigh[i].toString()),i<a.arguments.length&&null!=a.arguments[i]&&(s=`${a.arguments[i]}`),a.toolTips[i]="{"+l.format('"StiColor":"{0}","StiOpenValue":"{1}","StiCloseValue":"{2}","StiLowValue":"{3}","StiHighValue":"{4}","StiArgument":"{5}"',"#ffffff",e,t,r,o,s)+"}"}}a.drillDownEnabled=!0}renderArea(e,r){super.renderArea(e,r);let o=null,s=null;for(let t=0;t<r.series.count;t++){let e=r.series.getByIndex(t).as(d);if(null==e)continue;var i=e.valuesOpen.stimulsoft().toList().min(),a=e.valuesClose.stimulsoft().toList().min(),n=e.valuesLow.stimulsoft().toList().min(),l=e.valuesHigh.stimulsoft().toList().min(),u=e.valuesOpen.stimulsoft().toList().max(),h=e.valuesClose.stimulsoft().toList().max(),m=e.valuesLow.stimulsoft().toList().max(),c=e.valuesHigh.stimulsoft().toList().max(),l=new p([i,a,n,l]).min(),c=new p([u,h,m,c]).max();null==o&&(o=l),null==s&&(s=c),o=Math.min(o,l),s=Math.max(s,c)}let t=r.area.as(S);t.yAxis.range.auto=!1,t.yAxis.range.minimum=o,t.yAxis.range.maximum=s;var e=t.yAxis.range.maximum-t.yAxis.range.minimum;t.yAxis.labels.step=2<e?Math.round(e/10):Math.round2(e/10,4)}getValueMeters(e){if(null==e)return null;return e.meters.where(e=>e.is(n)).cast()}getCloseValueIndex(e,t){if(null==e)return-1;let r=this.getCloseMeterIndexes(e);if(null==r||!r.any())return-1;if(1==r.length)return r.toList().firstOrDefault();if(r.length>t)return r[t];return-1}getCloseMeterIndexes(t){if(null==t)return null;return this.getCloseMeters(t).select(e=>t.meters.indexOf(e)).toList()}getCloseMeters(e){if(null==e)return null;return e.meters.where(e=>e.is(t)).cast()}getLowValueIndex(e,t){if(null==e)return-1;let r=this.getLowMeterIndexes(e);if(null==r||!r.any())return-1;if(1==r.length)return r.toList().firstOrDefault();if(r.length>t)return r[t];return-1}getLowMeterIndexes(t){if(null==t)return null;return this.getLowMeters(t).select(e=>t.meters.indexOf(e)).toList()}getLowMeters(e){if(null==e)return null;return e.meters.where(e=>e.is(r)).cast()}getHighValueIndex(e,t){if(null==e)return-1;let r=this.getHighMeterIndexes(e);if(null==r)return-1;if(!r.any())return-1;if(1==r.length)return r.toList().firstOrDefault();if(r.length>t)return r[t];return-1}getHighMeterIndexes(t){if(null==t)return null;return this.getHighMeters(t).select(e=>t.meters.indexOf(e)).toList()}getHighMeters(e){if(null==e)return null;return e.meters.where(e=>e.is(o)).cast()}}e.StiFinancialChartElementBuilder=s}(r=t.Render||(t.Render={}))}(Stimulsoft=Stimulsoft||{}),function(l){var e,t,r;t=e=l.Dashboard||(l.Dashboard={}),function(C){var r=l.System.StiArray,n=l.System.StiString,o=l.Report.Dashboard.StiInteractionOnHover,h=l.Dashboard.Interactions.StiChartDashboardInteraction,y=l.Report.Chart.IStiRangeSeries,i=l.Dashboard.Components.Chart.Helpers.StiChartSeriesCreator,t=l.Dashboard.Components.Chart.StiEndValueChartMeter,v=l.System.Collections.List,w=l.System.DateTime,a=l.Report.Dashboard.StiReportParser,s=l.Dashboard.Components.Chart.StiStartValueChartMeter;class e extends C.StiChartElementBuilder{renderElements(i,a,n){let l=null==a?void 0:a.report;var u=this.getSeriesMeterIndex(n);let e=this.getSeriesKeys(n,u);var h=e.count2(),t=this.getValueMeters(n),m=this.getArgumentMeterIndexes(n),c;let d=this.getArgumentKeys(i,n).toList();for(c of e){let e=0;for(var p of t){var S=this.getValueMeterIndexes(n)[e],g;let t=this.renderSeries(i,p,c,a);if(null==t)continue;C.StiChartElementBuilder.renderConditions(c,t,i,p);let r=-1!=u&&1<h?n.rows.whereArrayItemStringEqualsTo(u,this.toString(c)):n.rows;t.values=v.create(Number,d.length);let o=0;for(g of d){let e=C.StiChartElementBuilder.getDetailRows(r,g,m);o<t.values.length&&(t.values[o]=e.getArrayItem(S).firstOrDefaultAsNullableNumber()),o++}t.core.isDateTimeValues=v.getValueOrFirstOrDefault(r.getArrayItem(S).toList().firstOrDefault())instanceof w;let s=t.as(y);if(null!=s){s.valuesEnd=v.create(Number,d.length);var b=this.getEndValueIndex(n,S);if(null==s.valuesEnd&&(s.valuesEnd=v.repeat(10,d.length)),-1!=b){o=0;for(var f of d){let e=C.StiChartElementBuilder.getDetailRows(r,f,m);o<s.valuesEnd.length&&(s.valuesEnd[o]=e.getArrayItem(b).firstOrDefaultAsNullableNumber()),o++}}}t.originalArguments=d.stimulsoft().toArray(),t.arguments=d.select(e=>this.getString(i.argumentFormat,e,l)).stimulsoft().toArray(),e++;var p=Math.min(t.values.length,t.arguments.length);this.renderSeriesInteraction(t,i,p,c)}}}renderSeries(e,t,r,o){let s=i.neww2(t.seriesType);return s.coreTitle=this.getSeriesTitle(e,r,t),s.isDashboard=!0,o.series.add(s),s}renderSeriesInteraction(s,i,e,a){var n,n,l=null==i?void 0:i.report,u=s.as(y),t;if(null==u)return;if(i.dashboardInteraction.as(h).onHover==o.ShowToolTip){s.toolTips=r.create(String,e);for(let o=0;o<e;o++){let e="",t="",r="";o<s.values.length&&null!=s.values[o]&&(e=(s.core.isDateTimeValues?w.fromOADate(s.values[o]):s.values[o]).toString()),null!=u.valuesEnd&&o<u.valuesEnd.length&&(t=s.core.isDateTimeValues?null===(n=w.fromOADate(u.valuesEnd[o]))||void 0===n?void 0:n.toString():null===(n=u.valuesEnd[o])||void 0===n?void 0:n.toString()),o<s.arguments.length&&null!=s.arguments[o]&&(r=`${s.arguments[o]}`),s.toolTips[o]=this.getToolTip2(i,i.dashboardInteraction.toolTip,this.getString(i.argumentFormat,r,l),this.getString(i.valueFormat,e,l),this.getString(i.valueFormat,t,l),a)}}s.drillDownEnabled=!0}getToolTip2(e,t,r,o,s,i){var a;if(null==r&&(r=""),null==i&&(i=""),n.isNullOrWhiteSpace(t))return null==r||n.isNullOrEmpty(r)||(r=r.split('"').join('\\"')),"{"+n.format('"StiColor":"{0}","StiValue":"{1} - {3}","StiArgument":"{2}"',"#ffffff",o,r,s)+"}";return this.getHyperlink2(e,t,r,o,s,i)}getHyperlink2(e,t,r,o,s,i){return null==r&&(r=""),null==i&&(i=""),a.parse(t,e,!1)}getValueMeters(e){if(null==e)return null;return e.meters.where(e=>e.is(s)).cast()}getEndValueIndex(e,t){if(null==e)return-1;let r=this.getEndValueMeterIndexes(e);if(null==r||!r.any())return-1;if(1==r.length)return r.toList().firstOrDefault();if(r.length>t)return Math.trunc(r[t]);return-1}getEndValueMeterIndexes(t){if(null==t)return null;return this.getEndValueMeters(t).select(e=>t.meters.indexOf(e)).toList()}getEndValueMeters(e){if(null==e)return null;return e.meters.where(e=>e.is(t)).cast()}}C.StiRangeChartElementBuilder=e}(r=t.Render||(t.Render={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r;t=e=o.Dashboard||(o.Dashboard={}),function(e){var r=o.Report.Components.StiShape;class t{render(e){let t=new r;return t.shapeType=e.shapeType,t.brush=e.fill,t.borderColor=e.stroke,t.size=e.size,t}}e.StiShapeElementBuilder=t}(r=t.Render||(t.Render={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,r,o;r=t=e.Dashboard||(e.Dashboard={}),function(b){var o=e.System.StiString,s=e.Base.Localization.StiLocalization,l=e.Data.Engine.StiDataTopNMode,u=e.Report.Chart.IStiStackedBaseLineSeries,f=e.System.Collections.List,i=e.Report.Dashboard.StiReportParser,a=e.System.Data.DataTable,n=e.System.Data.DataColumn,h=e.Report.Chart.IStiStackedColumnSeries;class C extends b.StiChartElementBuilder{renderElements(o,s,i){let a=null==s?void 0:s.report;var n=this.getSeriesMeterIndex(i);let e=this.getSeriesKeys(i,n);var l=this.getArgumentMeterIndexes(i);let u=this.getArgumentKeys(o,i).toList();var t=this.getValueMeters(i),h=e.count2(),m;let c=new f;for(m of e){let e=0;for(var d of t){c.add(m);var p=this.getValueMeterIndexes(i)[e];let t=this.renderSeries(o,d,m,s);if(null==t)continue;b.StiChartElementBuilder.renderConditions(m,t,o,d),b.StiChartElementBuilder.renderTrendLines(t,o,d);var S=-1!=n&&1<h?i.rows.whereArrayItemStringEqualsTo(n,m):i.rows,g;t.values=f.create(Number,u.length);let r=0;for(g of u){let e=b.StiChartElementBuilder.getDetailRows(S,g,l);r<t.values.length&&(t.values[r]=e.getArrayItem(p).firstOrDefaultAsNullableNumber()),r++}t.originalArguments=u.stimulsoft().toArray(),t.arguments=u.select(e=>this.getString(o.argumentFormat,e,a)).stimulsoft().toArray(),e++}}C.processTopNStackedChart(o,s);for(let e=0;e<c.length;e++){if(s.series.count<e)break;var r=s.series.getByIndex(e);if(null==r)return;this.renderSeriesInteraction(r,o,u.length,c[e])}}static getDataTable(t){let r=new a;var e=new n("Id",Number);r.columns.add(e);var e=new n("Argument",Object);r.columns.add(e);for(let e=0;e<t.length;e++){var o=new n("Value-"+e.toString(),Number);r.columns.add(o)}var e=new n("OriginalArguments",Object);r.columns.add(e);var e=new n("ValueSum",Number);r.columns.add(e);var s=this.getCountRow(t.toList());for(let e=0;e<s;e++){var i=r.newRow();r.rows.add(i)}return r}static getCountRow(e){let t=0;for(var r of e)t=Math.max(t,r.arguments.length);return t}static getArguments(e,t){if(e.length<=t.topN.count)return e;let r=e.take(t.topN.count).toList();var t;return t.topN.showOthers&&(t=o.isNullOrEmpty(t.topN.othersText)?s.get("FormDesigner","Others"):i.parse(t.topN.othersText,t),r.add(t)),r}static getValues(e,t){if(e.length<=t.topN.count)return e;let r=e.take(t.topN.count).toList();var t;return t.topN.showOthers&&(t=e.skip(t.topN.count).sum(),r.add(t)),r}static processTopNStackedChart(e,t){if(e.topN.mode==l.None)return;let o=t.series.toList();if(!o.any(e=>e.is(u)||e.is(h)))return;let s=C.getDataTable(o.toList());if(s.rows.count<1)return;for(let r=0;r<s.rows.count;r++){0<o.length&&o[0].arguments.length>r?s.rows.getByIndex(r).setValue(1,o[0].arguments[r]):s.rows.getByIndex(r).setValue(1,null),0<o.length&&o[0].originalArguments.length>r?s.rows.getByIndex(r).setValue(s.columns.count-2,o[0].originalArguments[r]):s.rows.getByIndex(r).setValue(s.columns.count-2,null);let t=0;for(let e=0;e<o.length;e++){var i;0<o.length&&o[e].values.length>r?(i=o[e].values[r],s.rows.getByIndex(r).setValue(e+2,i),t+=i):s.rows.getByIndex(r).setValue(e+2,null)}s.rows.getByIndex(r).setValue(s.columns.count-1,t)}s.defaultView.sort=e.topN.mode==l.Top?"ValueSum desc":"ValueSum asc",s=s.defaultView.toTable();let r=0;for(var a of o){a.originalArguments=C.getListByColumnName(s,"OriginalArguments");var n=C.getListByColumnName(s,"Argument");a.arguments=C.getArguments(n,e);var n=C.getListByColumnName(s,"Value-"+r.toString());a.values=C.getValues(n,e),r++}}static getListByColumnName(e,t){let r=new f;for(var o of e.rows.toList()){var o=o.gett(t);r.add(o)}return r}}b.StiStackedChartElementBuilder=C}(o=r.Render||(r.Render={}))}(Stimulsoft=Stimulsoft||{}),function(i){var e,t,r;t=e=i.Dashboard||(i.Dashboard={}),function(e){var l=i.System.StiArray,u=i.Base.Helpers.StiValueHelper;class t extends e.StiChartElementBuilder{renderElements(r,o,s){var t=this.getArgumentMeters(s),i=this.getValueMeters(s).firstOrDefault(),a=this.getValueMeterIndexes(s).stimulsoft().toList().firstOrDefault();for(let e=0;e<t.length;e++){var n=this.getArgumentMeterIndexes(s)[e];let t=this.renderSeries(r,i,"",o);if(null==t)continue;t.values=l.create(Number,s.rows.length),t.arguments=l.create(Object,s.rows.length);for(let e=0;e<s.rows.length;e++)t.values[e]=u.tryToNullableNumber(s.rows[e][a]),t.arguments[e]=s.rows[e][n]}}renderSeries(e,t,r,o){let s=i.Dashboard.Components.Chart.Helpers.StiChartSeriesCreator.neww2(t.seriesType);return s.core.seriesColors=null!=e.seriesColors&&0<e.seriesColors.length?e.seriesColors:null,s.isDashboard=!0,o.series.add(s),s}}e.StiSunburstChartElementBuilder=t}(r=t.Render||(t.Render={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r;t=e=o.Dashboard||(o.Dashboard={}),function(e){var t=o.System.Collections.Hashtable;class r{static getVisualizer(e){return null}}r.typeToGdiVisualizer=new t,r.typeToWpfVisualizer=new t,r.lockObject={},e.StiVisualizer=r}(r=t.Visualizers||(t.Visualizers={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r;e=t=e.Dashboard||(e.Dashboard={}),function(e){class t extends e.StiVisualizer{render(e){}}e.StiGdiVisualizer=t}(r=e.Visualizers||(e.Visualizers={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r;e=t=e.Dashboard||(e.Dashboard={}),function(e){class t{}e.StiGdiVisualizerAttribute=t}(r=e.Visualizers||(e.Visualizers={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,e,r,o;e=t=e.Dashboard||(e.Dashboard={}),e=r=e.Visuals||(e.Visuals={}),function(e){class t{constructor(e,t,r){this.start=e,this.end=t,this.icon=r}isBetween(e){return this.start<=e&&e<=this.end}}e.StiIndicatorIconRangeValue=t}(o=e.Indicator||(e.Indicator={}))}(Stimulsoft=Stimulsoft||{}),function(p){var e,t,r,l,o;t=e=p.Dashboard||(p.Dashboard={}),l=r=t.Visuals||(t.Visuals={}),function(e){var a=p.System.Drawing.FontStyle,t=p.System.StiString,h=p.Dashboard.Helpers.StiTextFormatHelper,o=p.Report.Dashboard.Styles.StiDashboardStyleHelper,m=p.System.Drawing.Color,s=p.System.Collections.List,r=p.Dashboard.Helpers.StiElementLocationHelper,c=p.Report.Dashboard.StiProgressFieldCondition,d=p.Report.Components.TextFormats.StiPercentageFormatService,i=p.Report.Dashboard.StiProgressConditionPermissions;class n extends l.StiVisual{constructor(e,t){super(),this.minElementSide=2,this.minFontSize=3,this.element=e,this.iterations=t,this.style=o.getProgressStyle(this.element)}getMaxValue(){return this.iterations.select(e=>e.value).concat(new s([0])).max()}getTargetValues(){var e=this.getMaxValue(),t;let r=new s;for(t of this.iterations)r.add(null!=t.target?t.target:e);return r}getTextValues(){let t=new s;var r=this.getTargetValues();for(let e=0;e<this.iterations.length;e++){var o=r[e],o=0!=o?Math.abs(this.iterations[e].value)/o:0;t.add(h.formatAsPercentage2(this.element.report,this.element.textFormat,o))}return t}getColor(e){return this.element.colorEach?this.getColors(this.iterations.length)[e]:this.style.bandColor}getColors(t){let r=[];var o=(null!=this.element.seriesColors&&0<this.element.seriesColors.length?this.element:this.style).seriesColors;let s=0,i=0;for(let e=0;e<t;e++){var a=null==o||0==o.length?m.fromArgb(255,52,152,219):o[s],n,l,u,h;0!=i?(n=Math.min(a.a+i,255),l=Math.min(a.r+i,255),u=Math.min(a.g+i,255),h=Math.min(a.b+i,255),r[e]=m.fromArgb(n,l,u,h)):r[e]=a,s++,s==o.length&&(s=0,i=50)}return r}getContentRectangle(e){var t;return 1<this.iterations.length&&(t=r.getLocationRectangles(e,this.iterations.length,this.element),e=r.getSumRectangle(t)),e}getConditionResult(r,t){let o=null;switch(t.field){case c.Value:o=r.value;break;case c.Series:o=r.series;break;case c.Target:o=r.target;break;case c.Percentage:{var s=this.getVariation(r);let e=new d;e.decimalDigits=3;let t=h.formatAsPercentage2(this.element.report,e,s);o=t.replace("%","").stimulsoft().toNumber();break}}var e=!1;let i=this.getConditionValue(t);if(null!=o){t.field!=c.Value&&t.field!=c.Target&&t.field!=c.Percentage||(o=null==o?0:o.stimulsoft().toNumber());let e=o;if(null!=e&&null!=i){o.stimulsoft().getType()!=i.stimulsoft().getType()&&(o=o.toString(),i=i.stimulsoft().toString(),e=o);try{switch(t.condition){case p.Report.Components.StiFilterCondition.EqualTo:return 0==e.stimulsoft().compareTo(i);case p.Report.Components.StiFilterCondition.NotEqualTo:return 0!=e.stimulsoft().compareTo(i);case p.Report.Components.StiFilterCondition.GreaterThan:return 1==e.stimulsoft().compareTo(i);case p.Report.Components.StiFilterCondition.GreaterThanOrEqualTo:return 0<=e.stimulsoft().compareTo(i);case p.Report.Components.StiFilterCondition.LessThan:return-1==e.stimulsoft().compareTo(i);case p.Report.Components.StiFilterCondition.LessThanOrEqualTo:return e.stimulsoft().compareTo(i)<=0;case p.Report.Components.StiFilterCondition.Containing:{let e=o.toString();var a=i.toString();return-1!=e.indexOf(a)}case p.Report.Components.StiFilterCondition.NotContaining:{let e=o.toString();var n=i.toString();return-1==e.indexOf(n)}case p.Report.Components.StiFilterCondition.BeginningWith:{let e=o.toString();var l=i.toString();return e.stimulsoft().startsWith(l)}case p.Report.Components.StiFilterCondition.EndingWith:{let e=o.toString();var u=i.toString();return e.stimulsoft().endsWith(u)}}}catch(e){}}}return e}processColor(e,t){for(var r of this.element.progressConditions)if(0<(r.permissions&i.Color)&&this.getConditionResult(t,r))return r.color;return e}getVariation(e){var t,r;return e.value/e.target}getConditionValue(e){if(t.isNullOrEmpty(e.value))return null;switch(e.field){case c.Value:case c.Target:case c.Percentage:return e.value.stimulsoft().toNumber();default:return e.value.toString()}}processForeColor(e,t=null){for(var r of this.element.progressConditions)if(0<(r.permissions&i.TextColor)&&this.getConditionResult(e,r))return r.textColor;return o.getForeColor(this.element,t)}processTrackColor(e,t){for(var r of this.element.progressConditions)if(0<(r.permissions&i.TrackColor)&&this.getConditionResult(t,r))return r.trackColor;return e}processFontStyle(e,t){var r=this.processFontBold(e.bold,t),o=this.processFontItalic(e.italic,t),s=this.processFontUnderline(e.underline,t),t=this.processFontStrikeout(e.strikeout,t);let i=a.Regular;return r&&(i^=a.Bold),o&&(i^=a.Italic),s&&(i^=a.Underline),t&&(i^=a.Strikeout),i}processFontStrikeout(e,t){for(var r of this.element.progressConditions)if(0<(r.permissions&i.FontStyleStrikeout)&&this.getConditionResult(t,r))return r.font.strikeout;return e}processFontUnderline(e,t){for(var r of this.element.progressConditions)if(0<(r.permissions&i.FontStyleUnderline)&&this.getConditionResult(t,r))return r.font.underline;return e}processFontItalic(e,t){for(var r of this.element.progressConditions)if(0<(r.permissions&i.FontStyleItalic)&&this.getConditionResult(t,r))return r.font.italic;return e}processFontBold(e,t){for(var r of this.element.progressConditions)if(0<(r.permissions&i.FontStyleBold)&&this.getConditionResult(t,r))return r.font.bold;return e}processFontName(e,t){for(var r of this.element.progressConditions)if(0<(r.permissions&i.Font)&&this.getConditionResult(t,r))return r.font.name;return e}}e.StiProgressVisual=n}(o=l.Progress||(l.Progress={}))}(Stimulsoft=Stimulsoft||{}),function(r){var e,t,o,s;t=e=r.Dashboard||(r.Dashboard={}),t=o=t.Visuals||(t.Visuals={}),function(e){var v=r.System.StiString,u=r.System.Collections.List,s=r.System.Drawing.Color,w=r.System.Drawing.Point,D=r.Dashboard.Helpers.StiStringFormatHelper,x=r.System.Drawing.Font,T=r.Dashboard.Helpers.StiElementLocationHelper,F=r.System.Drawing.Rectangle,h=r.Base.Context.StiFontGeom,m=r.Base.Context.StiPieSegmentGeom,c=r.Base.Drawing.StiRotationMode,d=r.Base.Drawing.StiHorAlignment,i=r.Report.Dashboard.Helpers.StiElementScale,a=r.Base.Context.StiLinesSegmentGeom;class t extends e.StiProgressVisual{draw(t,r){if(0==this.iterations.length)return;var o=T.getLocationRectangles(r,this.iterations.length,this.element);if(o.length<1)return;var s=o[0],e=s.width<s.height?s.width:s.height,i=this.element.font;let a=this.getTitleHeight(e,i.size);var n=s.width;let l=null;var u=new x(i.fontFamily.name,1,i.style,i.unit),h;for(h of this.iterations){if(v.isNullOrEmpty(h.series))continue;var m=D.getFontSize(t,new F(0,0,n,a),h.series,u);(null==l||l>m)&&(l=m)}null!=l&&l<i.size&&(a=this.getTitleHeight(e,l));let c=(e-a)/2*.8;l<this.minFontSize&&(l=0,a=0,c=e/2*.8);var d=2*c,p=this.getTargetValues();let S=!1;t.pushClip(r);for(let e=0;e<this.iterations.length;e++){var g=p[e],b=this.iterations[e],f=o[e];!S&&(1<f.right-r.right||1<f.bottom-r.bottom)&&(S=!0);var C=f.x+f.width/2,y=f.y+a+(s.height-a)/2,f=new w(C,y),C=new F(f.x-c,f.y-c,d,d),y=new F(C.x+C.width/2-n/2,C.top-a,n,a),f=this.processColor(this.getColor(e),this.iterations[e]);this.drawPieProgress(t,C,y,g,b,l,f)}S&&this.drawArrowMore(t,r),t.popClip()}drawPieProgress(e,t,r,o,s,i,a){var n=this.processTrackColor(this.style.trackColor,s);e.fillEllipse2(n,t,null);let l=0!=o?360/o*Math.abs(s.value):o;360<l&&(l=360);var n=new u([new m(t,-90,l,null)]),o,a,n,t,o,a,i,n,o,a,n;e.fillPath(a,n,t,null),i>=this.minFontSize&&(o=this.processFontName(this.element.font.fontFamily.name,s),a=this.processFontStyle(this.element.font,s),n=new x(o,i,a),t=new h(n.fontFamily.name,i,n.style,n.unit),o=c.CenterCenter,a=new w,i={ref:c.CenterCenter},n={ref:new w},D.measureAlignmentParameters(d.Center,r,i,n),o=i.ref,a=n.ref,n=this.processForeColor(s),e.drawRotatedString4(s.series,t,n,a,D.getStringFormatGeom(e),o,0,!0))}drawArrowMore(e,t){var r=i.factor(this.element);let o=[];o[0]=new w(t.right-5*r,t.bottom-5*r),o[1]=new w(t.right-5*r,t.bottom-15*r),o[2]=new w(t.right-15*r,t.bottom-5*r);var r=new u([new a(o)]);e.fillPath(s.fromArgb(140,140,140),r,t.clone(),null)}getTitleHeight(e,t){let r=t/13;return 4<r&&(r=4),e/4*r}constructor(e,t){super(e,t)}}e.StiPieProgressVisual=t}(s=t.Progress||(t.Progress={}))}(Stimulsoft=Stimulsoft||{}),function(r){var e,t,o,s;t=e=r.Dashboard||(r.Dashboard={}),t=o=t.Visuals||(t.Visuals={}),function(e){var O=r.System.Collections.List,P=r.System.Drawing.Point,E=r.System.Drawing.Rectangle,L=r.Dashboard.Helpers.StiElementLocationHelper,N=r.System.Drawing.Font,V=r.System.Drawing.FontStyle,z=r.System.Drawing.GraphicsUnit,J=r.Dashboard.Helpers.StiStringFormatHelper,j=r.Base.Context.StiPenGeom,H=r.Base.Context.StiArcSegmentGeom,G=r.Base.Context.StiLineSegmentGeom,X=r.Base.Context.StiFontGeom,U=r.Base.Drawing.StiRotationMode,K=r.Base.Drawing.StiHorAlignment;class t extends e.StiPieProgressVisual{draw(o,s){if(0==this.iterations.length)return;var i=L.getLocationRectangles(s,this.iterations.length,this.element);if(i.length<1)return;var a=.87,n=i[0],e=n.width<n.height?n.width:n.height,l=this.element.font;let u=this.getTitleHeight(e,l.size);var h=n.width,m=this.getTargetValues(),c=this.getTextValues();let d=null;var t=new N(l.fontFamily.name,1,l.style,l.unit),r;for(r of this.iterations){var p=J.getFontSize(o,new E(0,0,h,u),r.series,t);(null==d||d>p)&&(d=p)}null!=d&&d<l.size&&(u=this.getTitleHeight(e,d));let S=(e-u)/2*.8,g=null;var b=new E(n.x-S*a,n.y-.82*S,2*S*a,2*S*a),f=new N(this.element.font.name,1,V.Bold,z.Point);for(let e=0;e<this.iterations.length;e++){var C=J.getFontSize(o,b,c[e],f);(null==g||g>C)&&(g=C)}d<this.minFontSize&&(u=0,d=0,S=e/2*.8);var y=2*S,v=S/5,w=S-v,D=2*w;let x=!1;o.pushClip(s);for(let r=0;r<this.iterations.length;r++){var T=i[r];!x&&(1<T.right-s.right||1<T.bottom-s.bottom)&&(x=!0);var F=T.x+T.width/2,M=T.y+u+(n.height-u)/2,I=new P(F,M),T=new E(I.x-S,I.y-S,y,y),F=new E(I.x-w,I.y-w,D,D),M=this.processTrackColor(this.style.trackColor,this.iterations[r]),M=new j(M,v);o.drawEllipse(M,T.x+v/2,T.y+v/2,T.width-v,T.height-v);var M=m[r];let e=0!=M?360/M*Math.abs(this.iterations[r].value):0;var M=-90;360<e&&(e=360);let t=new O;t.add(new H(T,M,e)),t.add(new G(this.getPoint(I,S,M+e),this.getPoint(I,w,M+e))),t.add(new H(F,M+e,-e)),t.add(new G(this.getPoint(I,w,M),this.getPoint(I,S,M)));var M=this.processColor(this.getColor(r),this.iterations[r]),k,R,A,B,A,B,R,A,B,k,I,T,B,A,k,I,B,A,I;o.fillPath(M,t,T,null),g>=this.minFontSize&&(k=new E(I.x-S*a,I.y-.82*S,2*S*a,2*S*a),R=c[r],A=new N(this.element.font.name,g,V.Bold,z.Point),B=this.processFontStyle(A,this.iterations[r]),A=new X(A.name,A.size,B,z.Point),B=this.processForeColor(this.iterations[r]),o.drawRotatedString5(R,A,B,k,J.getStringFormatGeom(o),U.CenterCenter,0,!0)),d>=this.minFontSize&&(R=new E(I.x-h/2,T.top-u,h,u),A=new N(l.fontFamily.name,d,l.style,l.unit),B=this.processFontName(A.fontFamily.name,this.iterations[r]),k=this.processFontStyle(A,this.iterations[r]),I=new N(B,A.size,k),T=new X(I.fontFamily.name,d,I.style,I.unit),B=U.CenterCenter,A=new P,k={ref:U.CenterCenter},I={ref:new P},J.measureAlignmentParameters(K.Center,R,k,I),B=k.ref,A=I.ref,I=this.processForeColor(this.iterations[r]),o.drawRotatedString4(this.iterations[r].series,T,I,A,J.getStringFormatGeom(o),B,0,!0))}x&&this.drawArrowMore(o,s),o.popClip()}getPoint(e,t,r){var r=Math.PI*r/180;return new P(e.x+Math.cos(r)*t,e.y+Math.sin(r)*t)}constructor(e,t){super(e,t)}}e.StiCircleProgressVisual=t}(s=t.Progress||(t.Progress={}))}(Stimulsoft=Stimulsoft||{}),function(o){var e,t,r,s;t=e=o.Dashboard||(o.Dashboard={}),t=r=t.Visuals||(t.Visuals={}),function(e){var F=o.System.Drawing.Rectangle,M=o.System.Drawing.Font,r=o.System.Drawing.FontStyle,I=o.Dashboard.Helpers.StiStringFormatHelper,k=o.Base.Context.StiFontGeom,R=o.Report.Dashboard.Styles.StiDashboardStyleHelper,A=o.Base.Drawing.StiRotationMode,B=o.Dashboard.Helpers.StiTextFormatHelper,O=o.System.Drawing.Color;class t extends e.StiProgressVisual{draw(o,e){if(0==this.iterations.length)return;let t=.06*e.width;t<4&&(t=4);var s=new F(e.x+t/2,e.y+t/2,e.width-t,e.height-t);let i=s.height/this.iterations.length;i<this.minElementSide&&(i=this.minElementSide);var a=1<this.iterations.length?.95*i:i,n=s.width,r=this.getTextValues(),l=this.getTargetValues(),u=this.element.font;let h=null;var m=new M(u.fontFamily.name,1,u.style,u.unit);for(let e=0;e<this.iterations.length;e++){var c=`${this.iterations[e].series}${r[e]}`,d=new F(s.x,s.y+i*e+.07*a,n,.86*a),c=I.getFontSize(o,d,c,m);(null==h||h>c)&&(h=c)}let p=this.element.font.size/18*h;p>h&&(p=h);var S=new M(u.fontFamily.name,p,u.style,u.unit);o.pushClip(s);var g=1<this.iterations.length?.05*i/(this.iterations.length-1):0;for(let r=0;r<this.iterations.length;r++){var b=this.processFontName(S.fontFamily.name,this.iterations[r]),f=this.processFontStyle(S,this.iterations[r]),C=new M(b,S.size,f),y=l[r],v=s.y+(i+g)*r,b=new F(s.x,v,n,a),f=this.processTrackColor(this.style.trackColor,this.iterations[r]);o.fillRectangle(f,b,null);var f=0!=y?Math.abs(this.iterations[r].value)/y:0,f=B.formatAsPercentage2(this.element.report,this.element.textFormat,f),w,D,D;let e=R.getForeColor(this.element);h>=this.minFontSize&&(w=new k(u.fontFamily.name,p,C.style,C.unit),D=o.measureString(f,w),D=new F(b.right-D.width,b.top+.05*b.height,D.width,b.height),e=this.processForeColor(this.iterations[r]),o.drawRotatedString5(f,w,e,D,I.getStringFormatGeom(o),A.CenterCenter,0,!0));var w=this.iterations[r].series,D,x,x;h>=this.minFontSize&&(D=new k(u.fontFamily.name,p,C.style,C.unit),x=o.measureString(w,D),x=new F(b.left,b.top+.05*b.height,x.width,b.height),e=this.processForeColor(this.iterations[r]),o.drawRotatedString5(w,D,e,x,I.getStringFormatGeom(o),A.CenterCenter,0,!0));let t=0!=y?n/y*this.iterations[r].value:0;t>b.width&&(t=b.width);var x=new F(s.x,v,t,a);o.pushClip(x);var y=this.processColor(this.getColor(r),this.iterations[r]),v,x,T,x,x,T,C,b,y,y;o.fillRectangle(y,x,null),h>=this.minFontSize&&(v=new k(C.name,C.size,C.style,C.unit),x=o.measureString(f,v),T=new F(b.right-x.width,b.top+.05*b.height,x.width,b.height),x=this.isColorLight(y)?O.white:e,x=this.processForeColor(this.iterations[r],x),o.drawRotatedString5(f,v,x,T,I.getStringFormatGeom(o),A.CenterCenter,0,!0)),h>=this.minFontSize&&(T=new k(C.name,C.size,C.style,C.unit),C=o.measureString(w,T),b=new F(b.left,b.top+.05*b.height,C.width,b.height),y=this.isColorLight(y)?O.white:e,y=this.processForeColor(this.iterations[r],y),o.drawRotatedString5(w,T,y,b,I.getStringFormatGeom(o),A.CenterCenter,0,!0)),o.popClip()}o.popClip()}isColorLight(e){return 0<600-e.r-e.g-e.b}constructor(e,t){super(e,t),this.element.font=new M(this.element.font.name,this.element.font.size,r.Bold)}}e.StiDataBarsProgressVisual=t}(s=t.Progress||(t.Progress={}))}(Stimulsoft=Stimulsoft||{});;var __awaiter=this&&this.__awaiter||function(t,n,r,l){function s(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r=r||Promise)(function(e,r){function o(t){try{i(l.next(t))}catch(t){r(t)}}function a(t){try{i(l["throw"](t))}catch(t){r(t)}}function i(t){t.done?e(t.value):s(t.value).then(o,a)}i((l=l.apply(t,n||[])).next())})},Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft,Stimulsoft;!function(t){var e,t,r,o;t=e=t.Dashboard||(t.Dashboard={}),t=r=t.Export||(t.Export={}),(t=o=t.StiDashboardExportFormat||(t.StiDashboardExportFormat={}))[t["Pdf"]=0]="Pdf",t[t["Excel"]=1]="Excel",t[t["Data"]=2]="Data",t[t["Image"]=3]="Image",t[t["Html"]=4]="Html",t[t["Document"]=5]="Document"}(Stimulsoft=Stimulsoft||{}),function(i){var t,e,r,o;e=t=i.Dashboard||(i.Dashboard={}),e=r=e.Export||(e.Export={}),function(t){var e=i.Report.Components.StiPageOrientation,r=i.System.Drawing.Printing.PaperKind,o=i.Report.Dashboard.Export.IStiDashboardExportSettings;class a{constructor(){this.renderBorders=!0,this.orientation=e.Landscape,this.paperSize=r.A4,this.openAfterExport=!0}is(t){if(t instanceof i.System.Interface)return-1!=this.implements().indexOf(t);if("function"==typeof t)return this instanceof t;if(null==t)throw new Error("Type for comparison is 'undefined'");return!1}is2(t){return this.is(t)}as(t){if(this.is(t))return this;return null}implements(){return a.ImplementsStiDashboardExportSettings||(a.ImplementsStiDashboardExportSettings=[o]),a.ImplementsStiDashboardExportSettings}}t.StiDashboardExportSettings=a}(o=e.Settings||(e.Settings={}))}(Stimulsoft=Stimulsoft||{}),function(i){var t,e,r,n,o;e=t=i.Dashboard||(i.Dashboard={}),n=r=e.Export||(e.Export={}),function(t){var e=i.System.Drawing.Printing.PaperKind,r=i.Report.Export.StiImageType,o=i.Report.Dashboard.Export.IStiImageDashboardExportSettings;class a extends t.StiDashboardExportSettings{constructor(t){super(),this.format=n.StiDashboardExportFormat.Image,this.imageType=r.Svg,this.scale=100,null!=t?this.imageType=t:this.renderSinglePage=!0}implements(){return a.ImplementsStiImageDashboardExportSettings||(a.ImplementsStiImageDashboardExportSettings=super.implements().concat([t.IStiSizeExportSettings,o])),a.ImplementsStiImageDashboardExportSettings}get width(){return this._width}set width(t){this._width=t,this.paperSize=e.Custom}get height(){return this._height}set height(t){this._height=t,this.paperSize=e.Custom}}t.StiImageDashboardExportSettings=a}(o=n.Settings||(n.Settings={}))}(Stimulsoft=Stimulsoft||{}),function(o){var t,e,r,a;e=t=o.Dashboard||(o.Dashboard={}),e=r=e.Export||(e.Export={}),function(t){var e=o.Report.Export.StiImageType;class r extends t.StiImageDashboardExportSettings{constructor(){super(...arguments),this.imageType=e.Svg,this.renderEmptyContent=!0}}t.StiSvgDashboardExportSettings=r}(a=e.Settings||(e.Settings={}))}(Stimulsoft=Stimulsoft||{}),function(y){var t,e,r,E,o;e=t=y.Dashboard||(y.Dashboard={}),E=r=e.Export||(e.Export={}),function(t){var d=y.Report.Dashboard.IStiChartElement,m=y.System.StiString,u=y.Report.Dashboard.StiReportParser,g=y.Base.Drawing.StiVertAlignment,e=y.Base.Drawing.StiTextHorAlignment,p=y.Report.Dashboard.Styles.StiDashboardStyleHelper,c=y.Base.Drawing.StiFontUtils,r=y.Data.Exceptions.StiTypeNotRecognizedException,o=y.Base.Drawing.StiHorAlignment,S=y.Base.Drawing.StiSolidBrush,f=y.Report.Components.StiText,w=y.System.Drawing.Color,b=y.Dashboard.Helpers.StiTitleMeasureHelper,x=y.Report.Dashboard.IStiTitleElement,D=y.System.Drawing.Rectangle,C=y.Dashboard.Export.Settings.StiSvgDashboardExportSettings;class a{static render(t,e,r){var o=t.as(x);let a=y.Dashboard.Drawing.Helpers.StiElementControlPainter.getBorderContentRect(new D(0,0,e.width,e.height),e.border);var i=null!=o?o.title:null;if(null==i||!i.visible||m.isNullOrEmpty(i.text))return a;var n=b.measureTitle(o.title),l=n.width>a.width?a.width/n.width:1,s=n.height>a.height?a.height/n.height:1,o=Math.min(Math.abs(l),Math.abs(s)),l=w.transparent.equals(i.foreColor)?p.getTitleForeColor(t):i.foreColor,s=w.transparent.equals(i.backColor)?p.getBackColor(t,null,r.is(C)):i.backColor;r.format==E.StiDashboardExportFormat.Html&&t.is(d)&&(a.x+=3,a.y+=3);let h=new f;return h.name=`${t.name}_Title`,h.clientRectangle=new D(a.x,a.y,a.width,n.height),h.text=u.parse(i.text,t),h.font=c.changeFontSize(i.font,i.font.size*o),h.horAlignment=this.convert(i.horAlignment),h.vertAlignment=g.Center,h.textBrush=new S(l),h.brush=new S(s),a.height-=h.height,a.y+=h.height,e.components.add(h),a}static convert(t){switch(t){case o.Left:return e.Left;case o.Center:return e.Center;case o.Right:return e.Right;default:throw new r(t)}}}t.StiTitleExportHelper=a}(o=E.Helpers||(E.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(i){var t,e,r,o;e=t=i.Dashboard||(i.Dashboard={}),e=r=e.Export||(e.Export={}),function(t){var r=i.Report.Dashboard.IStiPadding,o=i.Report.Dashboard.IStiMargin,a=i.System.Drawing.Rectangle;class e{static excludeMargin(t,e){if(t.is(o)){var t=t.margin;if(!t.isEmpty)return new a(e.x+t.left,e.y+t.top,Math.max(1,e.width-t.left-t.right),Math.max(1,e.height-t.top-t.bottom))}return e}static excludePadding(t,e){if(t.is(r)){var t=t.padding;if(!t.isEmpty)return new a(e.x+t.left,e.y+t.top,Math.max(1,e.width-t.left-t.right),Math.max(1,e.height-t.top-t.bottom))}return e}}t.StiLayoutExportHelper=e}(o=e.Helpers||(e.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(r){var t,e,o,a;e=t=r.Dashboard||(r.Dashboard={}),e=o=e.Export||(e.Export={}),function(t){var o=r.Report.Components.IStiBorder,a=r.Report.Components.IStiSimpleBorder;class e{static render(t,e,r){t.is(a)&&e.is(o)&&r.renderBorders&&(e.border=t.border2.getBorder(),e.border.topmost=!0)}}t.StiBorderExportHelper=e}(a=e.Helpers||(e.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(a){var t,e,r,o;e=t=a.Dashboard||(a.Dashboard={}),e=r=e.Export||(e.Export={}),function(t){var r=a.Report.Dashboard.Styles.StiDashboardStyleHelper,o=a.Report.Components.IStiBackColor;class e{static render(t,e){e.is(o)&&(e.backColor=r.getBackColor(t))}}t.StiBackColorExportHelper=e}(o=e.Helpers||(e.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(a){var t,e,r,i,o;e=t=a.Dashboard||(a.Dashboard={}),i=r=e.Export||(e.Export={}),function(t){var e=a.Data.Exceptions.StiTypeNotRecognizedException,r=a.Report.StiExportFormat;class o{static convert(t){switch(t){case i.StiDashboardExportFormat.Pdf:return r.Pdf;case i.StiDashboardExportFormat.Excel:return r.Excel2007;case i.StiDashboardExportFormat.Html:return r.Html;case i.StiDashboardExportFormat.Data:return r.Data;case i.StiDashboardExportFormat.Image:return r.Image;case i.StiDashboardExportFormat.Document:return r.Document;default:throw new e(t)}}}t.StiExportFormatHelper=o}(o=i.Helpers||(i.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(a){var t,e,r,i,o;e=t=a.Dashboard||(a.Dashboard={}),i=r=e.Export||(e.Export={}),function(t){var e=a.System.Drawing.Printing.PaperKind,r=a.Report.Dashboard.Export.IStiExcelDashboardExportSettings;class o extends t.StiDashboardExportSettings{constructor(){super(...arguments),this.format=i.StiDashboardExportFormat.Excel,this.imageQuality=200}implements(){return o.ImplementsStiExcelDashboardExportSettings||(o.ImplementsStiExcelDashboardExportSettings=super.implements().concat([t.IStiSizeExportSettings,r])),o.ImplementsStiExcelDashboardExportSettings}get width(){return this._width}set width(t){this._width=t,this.paperSize=e.Custom}get height(){return this._height}set height(t){this._height=t,this.paperSize=e.Custom}}t.StiExcelDashboardExportSettings=o}(o=i.Settings||(i.Settings={}))}(Stimulsoft=Stimulsoft||{}),function(o){var t,e,r,a,i;e=t=o.Dashboard||(o.Dashboard={}),a=r=e.Export||(e.Export={}),function(t){var e=o.Report.Dashboard.Export.IStiPdfDashboardExportSettings;class r extends t.StiDashboardExportSettings{constructor(){super(...arguments),this.format=a.StiDashboardExportFormat.Pdf,this.imageQuality=200}implements(){return r.ImplementsStiPdfDashboardExportSettings||(r.ImplementsStiPdfDashboardExportSettings=super.implements().concat([e])),r.ImplementsStiPdfDashboardExportSettings}}t.StiPdfDashboardExportSettings=r}(i=a.Settings||(a.Settings={}))}(Stimulsoft=Stimulsoft||{}),function(a){var t,e,r,i,o;e=t=a.Dashboard||(a.Dashboard={}),i=r=e.Export||(e.Export={}),function(t){var e=a.Report.Export.StiDataType,r=a.Report.Dashboard.Export.IStiDataDashboardExportSettings;class o extends t.StiDashboardExportSettings{constructor(t){super(),this.format=i.StiDashboardExportFormat.Data,this.dataType=e.Csv,null!=t&&(this.dataType=t)}implements(){return o.ImplementsStiDataDashboardExportSettings||(o.ImplementsStiDataDashboardExportSettings=super.implements().concat([r])),o.ImplementsStiDataDashboardExportSettings}}t.StiDataDashboardExportSettings=o}(o=i.Settings||(i.Settings={}))}(Stimulsoft=Stimulsoft||{}),function(t){var e,t,r,o,a;t=e=t.Dashboard||(t.Dashboard={}),o=r=t.Export||(t.Export={}),function(t){class e extends t.StiDashboardExportSettings{constructor(){super(...arguments),this.format=o.StiDashboardExportFormat.Html,this.imageQuality=200,this.scale=100,this.enableAnimation=!0}}t.StiHtmlDashboardExportSettings=e}(a=o.Settings||(o.Settings={}))}(Stimulsoft=Stimulsoft||{}),function(x){var t,e,r,D,o;e=t=x.Dashboard||(x.Dashboard={}),D=r=e.Export||(e.Export={}),function(t){var o=x.Report.Export.StiHtmlChartType,a=x.Report.Export.StiHtmlExportSettings,i=x.Report.Export.StiDataExportSettings,n=x.Report.Export.StiImageExportSettings,l=x.Report.Export.StiSvgExportSettings,e=x.Report.Export.StiDataType,r=x.Dashboard.Export.Settings.StiDataDashboardExportSettings,s=x.Report.Export.StiImageType,h=x.Dashboard.Export.Settings.StiImageDashboardExportSettings,d=x.Dashboard.Export.Settings.StiHtmlDashboardExportSettings,m=x.Dashboard.Export.Settings.StiSvgDashboardExportSettings,u=x.Dashboard.Export.Settings.StiExcelDashboardExportSettings,g=x.Dashboard.Export.Settings.StiPdfDashboardExportSettings,p=x.Report.StiExportFormat,c=x.Data.Exceptions.StiTypeNotRecognizedException,S=x.Report.Export.StiDataExportMode,f=x.Report.Export.StiPdfExportSettings,w=x.Report.Export.StiExcel2007ExportSettings;class b{static getExportSettings(e){switch(e.format){case D.StiDashboardExportFormat.Pdf:{let t=new f;return t.imageQuality=1,t.imageResolution=e.imageQuality,t}case D.StiDashboardExportFormat.Excel:{let t=new w;return t.imageQuality=1,t.imageResolution=e.imageQuality,t}case D.StiDashboardExportFormat.Data:{let t=new i;return t.dataType=e.dataType,t.dataExportMode=S.DataAndHeadersFooters,t.skipColumnHeaders=!0,t}case D.StiDashboardExportFormat.Image:var r=e.imageType;switch(r){case s.Svg:return new l;default:{let t=new n;return t.imageType=r,t.imageZoom=e.scale/100,t.imageResolution=100,t}}case D.StiDashboardExportFormat.Html:{let t=new a;return t.imageResolution=e.imageQuality,t.useEmbeddedImages=!0,t.zoom=e.scale/100,t.addPageBreaks=!1,t.chartType=e.enableAnimation?o.AnimatedVector:o.Vector,t}case D.StiDashboardExportFormat.Document:return null;default:throw new c(e.format)}}static getDashboardExportSettings(t){return this.getDashboardExportSettings2(t.getExportFormat())}static getDashboardExportSettings2(t){switch(t){case p.Pdf:return new g;case p.Excel2007:return new u;case p.Data:return new r;case p.Csv:return new r(e.Csv);case p.Dbf:return new r(e.Dbf);case p.Xml:return new r(e.Xml);case p.Json:return new r(e.Json);case p.Dif:return new r(e.Dif);case p.Sylk:return new r(e.Sylk);case p.Image:return new h;case p.ImageBmp:return new h(s.Bmp);case p.ImageGif:return new h(s.Gif);case p.ImagePng:return new h(s.Png);case p.ImageTiff:return new h(s.Tiff);case p.ImageJpeg:return new h(s.Jpeg);case p.ImageEmf:return new h(s.Emf);case p.ImagePcx:return new h(s.Pcx);case p.ImageSvgz:return new h(s.Svgz);case p.ImageSvg:return new m;case p.Html:return new d;case p.Document:return null;default:throw new c(t)}}static isDataExport(t){return t.is(r)||t.is(u)&&t.exportDataOnly}}t.StiExportSettingsHelper=b}(o=D.Helpers||(D.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(i){var t,e,r,o;e=t=i.Dashboard||(i.Dashboard={}),e=r=e.Export||(e.Export={}),function(t){var o=i.Dashboard.Export.StiExportToolAttribute,e=i.System.Collections.Hashtable,a=i.Base.StiActivator;class r{render(t,e,r,o){return __awaiter(this,void 0,void 0,function*(){})}static getTool(t){let e=this.typeToTool.get(t);if(null!=e)return e;var r=o.attributes.get(t.stimulsoft().getTypeName()),r=null!=r?r.exportToolTypeName:null;if(null==r)return null;return e=a.createObject2(r),this.typeToTool.set(t,e),e}}r.typeToTool=new e,t.StiExportTool=r}(o=e.Tools||(e.Tools={}))}(Stimulsoft=Stimulsoft||{}),function(L){var t,e,r,o;e=t=L.Dashboard||(L.Dashboard={}),e=r=e.Export||(e.Export={}),function(t){var o=L.Data.Functions.StiExtValueConverter,s=L.Report.Dashboard.IStiImageElement,a=L.System.DateTime,i=L.Report.Components.TextFormats.StiDateFormatService,h=L.Base.Drawing.StiVertAlignment,d=L.Base.Drawing.StiTextHorAlignment,l=L.System.Xml.XmlTextWriter,m=L.System.Text.Encoding,u=L.Report.Export.StiSvgData,g=L.Report.Components.StiComponent,n=L.Dashboard.Components.Image.StiImageElement,p=L.Report.Dashboard.StiElementDataCache,c=L.System.Drawing.Image,S=L.Report.Dashboard.Styles.StiDashboardStyleHelper,f=L.Report.Components.IStiBackColor,w=L.System.Drawing.Graphics,b=L.Base.Localization.StiLocalization,x=L.Base.Drawing.StiSolidBrush,D=L.System.Drawing.Color,C=L.Report.Components.StiText,y=L.Base.Drawing.StiHorAlignment,E=L.Report.Components.StiImage,v=L.System.Drawing.Font,T=L.Report.Maps.StiMapSource,R=L.Report.Dashboard.IStiRegionMapElement,B=L.Dashboard.Export.Settings.StiSvgDashboardExportSettings,H=L.System.Drawing.Rectangle,F=L.Dashboard.Components.Progress.StiProgressElement,I=L.Report.Export.Services.Helpers.StiContextSvgHelper,A=L.System.Drawing.Rectangle,k=L.Dashboard.Components.Indicator.StiIndicatorElement,P=L.Dashboard.Components.Gauge.StiGaugeElement,M=L.System.StiString;class e extends t.StiExportTool{render(t,e,r,o){return __awaiter(this,void 0,void 0,function*(){if(this.renderEmptyDataMessage(t,e,r.clone(),o))return;yield this.renderContent(t,e,r.clone())})}renderContent(r,o,a){return __awaiter(this,void 0,void 0,function*(){let t=new E(a);t.name=`${r.name}_Content`,t.stretch=!0,t.aspectRatio=!1;var e=yield this.draw(r,a.clone());t.imageToDraw=e,o.components.add(t)})}drawElement(i,n){return __awaiter(this,void 0,void 0,function*(){let t=new c,e=new l(m.UTF8),r=new u;if(r.x=0,r.y=0,r.width=n.width,r.height=n.height,r.component=i.as(g),i.is(f)){let t=S.getBackColor(i);t.a<255&&(t=D.white),e.writeStartElement("rect"),e.writeAttributeString("x","0"),e.writeAttributeString("y","0"),e.writeAttributeString("height",r.height.toString().stimulsoft().replaceAll(",",".")),e.writeAttributeString("width",r.width.toString().stimulsoft().replaceAll(",",".")),e.writeAttributeString("style",I.writeFillBrush(e,t,new A(0,0,r.width,r.height))),e.writeEndElement()}if(i.is(F)){let t=L.Report.Dashboards.StiDashboardHelperCreator.createProgressVisualSvgHelper();null!=t&&(yield t.writeProgress(e,r))}else if(i.is(k)){let t=L.Report.Dashboards.StiDashboardHelperCreator.createIndicatorVisualSvgHelper();null!=t&&(yield t.writeIndicator(e,r))}else if(i.is(P)){let t=L.Report.Dashboards.StiDashboardHelperCreator.createGaugeVisualSvgHelper();null!=t&&(yield t.writeGauge(e,r,!1))}var o,a="<style>@font-face {font-family: 'Stimulsoft';src: url(data:font/ttf;base64,"+L.Report.Resources.StimulsoftFont.getBase64Content()+") format('truetype');font-weight: normal;font-style: normal;}</style>",a=M.format('<svg xmlns="http://www.w3.org/2000/svg" style="width: {0}; height: {1}"><defs>{3}</defs><rect x="0" y="0" width="{0}" height="{1}" style="fill: white;"/>{2}</svg>',r.width,r.height,e.textWriter.getStringBuilder().toString(),a);return t.bytes=m.UTF8.getBytes(a),yield t.convertAsync(L.System.Drawing.Imaging.ImageFormat.Jpeg),t})}draw(o,a){return __awaiter(this,void 0,void 0,function*(){if(o.is(n)){let t=yield o.imageToDraw;return null!=t&&(t.url=o.imageHyperlink),t}if(o.is(k)||o.is(F)||o.is(P))return yield this.drawElement(o,a);var t=new H(0,0,a.width,a.height),e=new c,r;try{o.is(f)&&(r=S.getBackColor(o)).a<255&&(r=D.white),yield this.paintContent(null,t,o)}catch(t){}return e})}paintContent(t,e,r){return __awaiter(this,void 0,void 0,function*(){try{yield this.paintAtom(t,e.clone(),r)}catch(t){}finally{}})}paintAtom(t,e,r){return __awaiter(this,void 0,void 0,function*(){var t=null;if(r.isQuerable&&null==(t=yield p.tryToGetOrCreate(r)))return})}renderEmptyDataMessage(e,r,o,a){if(!a.is(B)||a.renderEmptyContent)return!1;if(e.is(R)&&e.dataFrom==T.Manual)return!1;if(e.is(s)&&(null!=e.image||null!=e.icon||!M.isNullOrEmpty(e.imageHyperlink)))return!1;if(0<e.getMeters().length)return!1;var i=o.size,n=new v("Arial",9),l=e.is(s)?b.get("Dashboard","ImageNotSpecified"):b.get("Dashboard","DragDropDataFromDictionary"),a=w.measureString(l,n);if(o.y+=o.height/2-48,o.height=Math.min(32,o.height),48<=i.width&&64<=i.height){o.y+=i.width>a.width+16?16:32;let t=new E(o);t.name=`${e.name}_EmptyImage`,t.horAlignment=y.Center,r.components.add(t)}if(i.width>a.width+16&&32<=i.height){o.y+=32;let t=new C(o);t.name=`${e.name}_EmptyText`,t.horAlignment=d.Center,t.vertAlignment=h.Center,t.font=n,t.text=l,t.textBrush=new x(D.darkGray),r.components.add(t)}return!0}format(t,e){var r,r;if(null!=e&&null!=t){if(e instanceof a&&!t.textFormat.is(i))return e.toShortDateString();return o.isEligable(e,null===(r=null==t?void 0:t.report)||void 0===r?void 0:r.culture)?o.convert(e,null===(r=null==t?void 0:t.report)||void 0===r?void 0:r.culture):t.textFormat.format(e)}return""}}t.StiElementExportTool=e}(o=e.Tools||(e.Tools={}))}(Stimulsoft=Stimulsoft||{}),function(o){var t,e,r,a;e=t=o.Dashboard||(o.Dashboard={}),e=r=e.Export||(e.Export={}),function(t){var l=o.Dashboard.Render.StiChartElementBuilder,s=o.Report.Dashboard.StiElementDataCache,e=o.Dashboard.Components.Chart.StiChartElement;class r extends t.StiElementExportTool{render(o,a,i,t,n){return __awaiter(this,void 0,void 0,function*(){if(this.renderEmptyDataMessage(o,a,i.clone(),t))return;var r=o.as(e);if(0<r.values.length){let t=yield s.tryToGetOrCreate(o);if(null==t||null==t.rows||0==t.rows.count2())return;let e=l.create(r).render(r,t);for(let t=0;t<e.series.count;t++){if(null==n||t>=n.length)break;e.series.getByIndex(t).valuesStart=n[t]}e.name=`${o.name}_Content`,e.clientRectangle=i.clone(),a.components.add(e)}})}}t.StiChartElementExportTool=r}(a=e.Tools||(e.Tools={}))}(Stimulsoft=Stimulsoft||{}),function(G){var t,e,r;e=t=G.Dashboard||(G.Dashboard={}),function(t){var l=G.Report.Dashboard.IStiRegionMapElement,s=G.System.StiPromise,f=G.System.Drawing.Rectangle,w=G.Dashboard.Export.Settings.StiSvgDashboardExportSettings,b=G.Report.Dashboard.IStiGaugeElement,x=G.Report.Dashboard.IStiIndicatorElement,D=G.Report.Dashboard.IStiProgressElement,h=G.Report.StiExportFormat,d=G.Report.Components.StiMargins,m=G.Dashboard.Export.Settings.StiImageDashboardExportSettings,u=G.Dashboard.Export.Settings.StiDataDashboardExportSettings,C=G.Dashboard.Export.Settings.StiHtmlDashboardExportSettings,y=G.Dashboard.Export.Tools.StiChartElementExportTool,E=G.System.Type,v=G.Dashboard.Export.Helpers.StiExportSettingsHelper,g=G.Dashboard.Export.Helpers.StiExportFormatHelper,p=G.Dashboard.Export.Settings.StiExcelDashboardExportSettings,c=G.Report.StiReportUnitType,S=G.Report.StiReport,T=G.Dashboard.Export.Tools.StiElementExportTool,R=G.Dashboard.Export.Tools.StiExportTool,B=G.Dashboard.Export.Helpers.StiTitleExportHelper,H=G.Dashboard.Export.Helpers.StiBackColorExportHelper,F=G.Dashboard.Export.Helpers.StiBorderExportHelper,I=G.Report.Components.StiPanel,A=G.Dashboard.Export.Helpers.StiLayoutExportHelper,k=G.Dashboard.Components.Panel.StiPanelElement,P=G.Report.Components.StiContainer,M=G.Report.Components.StiComponent,L=G.Report.Dashboard.Styles.StiDashboardStyleHelper,N=G.Base.Drawing.StiSolidBrush,_=G.Dashboard.Components.StiDashboard,V=G.Report.Dashboard.IStiDashboard,O=G.Report.Dashboard.IStiElement,z=G.Base.IStiReport;class e{static exportToStreamAsync(t,o){let a=new s,i=new S;i.isDocument=!0,i.reportUnit=c.HundredthsOfInch;let r=i.renderedPages.getByIndex(0);r.orientation=o.orientation,r.paperSize=o.paperSize,(o.is(p)||o.is(u)||o.is(m))&&(r.margins=new d(0));var e=o;"width"in o&&null!=e&&0<e.width&&0<e.height&&(r.width=e.width,r.height=e.height);let n=()=>{for(let o of i.renderedPages.list)o.components.toList().where(t=>t.is(P)).cast().forEach(t=>{var e=o.components.indexOf(t)+1;let r=t.getComponentsList();for(let t=0;t<r.length;t++)r[t].page=o,r[t].setDirectDisplayRectangle(r[t].componentToPage(r[t].displayRectangle)),o.components.insert(e+t,r[t]);t.components.clear()});let t;var e=null==o?h.Document:g.convert(o.format);if(e!=h.Document){var r=v.getExportSettings(o);return void i.exportDocumentAsync(t=>{a.callTry(t)},e,null,r)}t=G.System.Text.Encoding.UTF8.getBytes(i.saveDocumentToJsonString()),a.callTry(t)};return t.is(z)?setTimeout(()=>__awaiter(this,void 0,void 0,function*(){var e=t.fetchPages().where(t=>t.is(V)).cast();for(let t=0;t<e.length;t++)0<t&&(r=r.clone(!0,!1),i.renderedPages.add(r)),yield this.renderDashboardAsync(r,e[t],o);n()}),0):t.is(V)?setTimeout(()=>__awaiter(this,void 0,void 0,function*(){t.report&&i.dictionary.resources.addRange(t.report.dictionary.resources),yield this.renderDashboardAsync(r,t,o),n()}),0):t.is(O)?setTimeout(()=>__awaiter(this,void 0,void 0,function*(){i.reportAlias=t.name,t.is(l)&&i.dictionary.resources.addRange(t.report.dictionary.resources),yield this.renderSingleElementAsync(r,t,o),n()}),0):n(),a}static renderDashboardAsync(a,i,n){return __awaiter(this,void 0,void 0,function*(){if(null==i)return;null!=n&&(n.renderSinglePage=!0,n.renderSingleElement=!1);let t=i.as(_);var e=t.getElements(!1).where(t=>t.isEnabled),r=a.width/t.width,o=a.height/t.height;n.renderSingleElement=!1,a.brush=new N(L.getDashboardBackColor(i,!1)),yield this.renderElementsAsync(a,e,r,o,n)})}static renderSingleElementAsync(o,a,i){return __awaiter(this,void 0,void 0,function*(){if(null==a||!a.isEnabled)return;i.renderSingleElement=!0,o.brush=new N(L.getBackColor(a));var t=a.as(M),e=o.width/t.width,t=o.height/t.height;let r=yield this.renderElementAsync(o,a,e,t,i);var e=v.isDataExport(i),t=a.margin;r.left=e?0:t.left,r.top=e?0:t.top})}static renderElementsAsync(o,t,a,i,n){return __awaiter(this,void 0,void 0,function*(){n.renderSingleElement=!1;for(var e of t){var r=yield this.renderElementAsync(o,e,a,i,n),e;let t=e.as(k);null!=t&&(e=t.getComponents().toList().where(t=>t.is(O)).cast(),yield this.renderElementsAsync(r,e,a,i,n))}})}static renderElementAsync(d,m,u,g,p,c,S={ref:new G.System.Drawing.Rectangle}){return __awaiter(this,void 0,void 0,function*(){let t=m.as(M);var e=v.isDataExport(p),r=Math.round(t.left*u),o=Math.round(t.top*g),a=Math.round(t.right*u),i=Math.round(t.bottom*g),n,n;let l=new f(r,o,a-r,i-o);e||(l=A.excludeMargin(m,l)),t.parent.is(k)&&(n=t.parent,l.x-=n.margin.left,l.y-=n.margin.top);let s=new I(l);s.name=m.name,e||(n=L.getBackColor(m,null,p.is(w)),s.brush=new N(n)),d.components.add(s),null!=s.report&&null!=m.report&&(s.report.styles.clear(),s.report.styles.addRange(m.report.styles)),l=B.render(m,s,p),e||(F.render(m,s,p),H.render(m,s),l=A.excludePadding(m,l),S.ref=l);let h=R.getTool(E.getType(m));if(null==h&&(h=new T),(m.is(D)||m.is(x)||m.is(b))&&p.is(w))return s;return h.stimulsoft().is(y)&&p.is(C)?yield h.render(m,s,l.clone(),p,c):yield h.render(m,s,l.clone(),p),s})}}t.StiDashboardExportTools=e}(r=e.Export||(e.Export={}))}(Stimulsoft=Stimulsoft||{}),function(a){var t,e,r,o;e=t=a.Dashboard||(a.Dashboard={}),e=r=e.Drawing||(e.Drawing={}),function(t){var r=a.Base.StiScale,o=a.Report.Dashboard.Helpers.StiBorderElementHelper;class e{static getBorderContentRect(t,e){return o.getBorderContentRect3(t.clone(),e,r.factor,!1)}}t.StiElementControlPainter=e}(o=e.Helpers||(e.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(o){var t,e,r,a;e=t=o.Dashboard||(o.Dashboard={}),e=r=e.Drawing||(e.Drawing={}),function(t){var e=o.Base.Localization.StiLocalization;class r{static get locAll(){return`(${e.get("Report","RangeAll").stimulsoft().replaceAll("& ","")})`}}t.StiLocHelper=r}(a=e.Helpers||(e.Helpers={}))}(Stimulsoft=Stimulsoft||{}),function(l){var t,e,r,o,a;e=t=l.Dashboard||(l.Dashboard={}),e=r=e.Export||(e.Export={}),e=o=e.Painters||(e.Painters={}),function(t){var s=l.System.StiString,h=l.System.Drawing.Rectangle,e=l.Report.Components.IStiHorAlignment,d=l.System.Drawing.Color,o=l.Dashboard.Helpers.StiTextFormatHelper,n=l.Base.Drawing.StiHorAlignment,a=l.Base.Drawing.StiTextDrawing,m=l.Base.Dashboard.StiElementConsts,r=l.System.Drawing.Rectangle,u=l.System.Drawing.Point,g=l.System.Drawing.StringFormat,p=l.System.Drawing.StringAlignment,c=l.System.Drawing.StringTrimming,S=l.System.Drawing.StringFormatFlags;class i{static draw(t,e,r,o,a,i,n,l=!0){var s=this.getCellText(r,o,i);this.draw2(t,e.clone(),r,o,a,i,n,s,l)}static draw2(t,e,r,o,a,i,n,l,s=!0){var h=this.measureText(a,l,r.font),h=this.calculateIndicatorRect(e.clone(),o,a,h),e,n;this.drawIndicator(t,h,i,n),s&&(e=this.calculateTextRect(e.clone(),o),n=this.getColor(o,i,n),this.drawText(t,e,o,a,l,r.font,n))}static drawIndicator(o,a,i,t){var n=Math.min(a.width,a.height);if(null==i||0==i)o.fillRectangle(new r(a.x+(a.width-n)/2,a.y+(a.height-4)/2,n,5),d.lightGray);else{var l=.75*n,l=(a=new h(a.x+(a.width-n)/2,a.y+(a.height-l)/2,n,l)).width/2;let t,e,r;r=0<i?(t=new u(a.left+l,a.top),e=new u(a.left,a.bottom),new u(a.right,a.bottom)):(t=new u(a.left+l,a.bottom),e=new u(a.left,a.top),new u(a.right,a.top)),o.fillPolygon([t,e,r],0<i?d.green:d.red)}}static drawText(t,e,r,o,a,i,n){if(s.isNullOrWhiteSpace(a))return;e.width-=2;let l=new g;var i=m.Table.Font.getGdiFont(o,null,i);l.lineAlignment=p.Center,l.alignment=this.toAlignment(r),l.trimming=c.None,l.formatFlags|=S.NoWrap,t.drawString(a,i,n,e.clone(),l)}static measureText(t,e,r){if(s.isNullOrWhiteSpace(e))return 0;var r=m.Table.Font.getGdiFont(t,null,r);return a.measureString(null,e,r).width}static calculateIndicatorRect(t,e,r,o){var a=16*r,i;switch(this.getHorAlignment(e)){case n.Left:t=new h(t.x,t.y,a,t.height);break;case n.Right:t=new h(t.right-a,t.y,a,t.height);break;case n.Center:t=new h(t.right-(t.width-(o+a))/2-a,t.y,a,t.height);break}return t.inflate(-4*r,-4*r),t}static getCellText(t,e,r){if(null==r)return"";return o.formatAsPercentage2(t.report,e.textFormat,r)}static calculateTextRect(t,e){var r=t.width/4;switch(this.getHorAlignment(e)){case n.Left:return new h(t.x+r,t.y,t.width-r,t.height);case n.Right:return new h(t.x,t.y,t.width-r,t.height);case n.Center:return new h(t.x,t.y,t.width,t.height)}return t}static getColor(t,e,r){if(!d.transparent.equals(t.foreColor))return t.foreColor;if(0<e)return r.cellIndicatorPositive;if(e<0)return r.cellIndicatorNegative;return r.cellIndicatorNeutral}static toAlignment2(t){if(t.stimulsoft().is(p))return t;var t=t.stimulsoft().as(e);if(null==t)return p.Center;return this.toAlignment(t.horAlignment)}static toAlignment(t){switch(t){case n.Left:return p.Near;case n.Center:return p.Center;case n.Right:return p.Far}return p.Center}static getHorAlignment(t){var e;return null!=t?t.horAlignment:n.Right}}t.StiIndicatorCellPainter=i}(a=e.Table||(e.Table={}))}(Stimulsoft=Stimulsoft||{}),function(o){var t,e,r,a;e=t=o.Dashboard||(o.Dashboard={}),e=r=e.Drawing||(e.Drawing={}),function(t){var n=o.System.StiString,a=o.System.Drawing.Rectangle,l=o.Dashboard.Export.Painters.Table.StiIndicatorCellPainter,s=o.Report.Components.StiImageHelper,h=o.Dashboard.Helpers.StiTextFormatHelper,e=o.System.Collections.Hashtable,i=o.Data.Engine.StiDataSortDirection,d=o.Data.Engine.StiDataSortRuleHelper,m=o.System.Drawing.Size,u=o.Base.Drawing.StiHorAlignment,g=o.Base.Helpers.StiValueHelper,p=o.Dashboard.Components.Table.StiDataBarsColumn,c=o.Dashboard.Components.Table.StiIndicatorColumn,S=o.Dashboard.Components.Table.StiSparklinesColumn,f=o.Data.Helpers.StiLabelHelper,w=o.Base.Dashboard.StiElementConsts,b=o.System.Drawing.Graphics;class r{static getBackgroundColor(t,e){return e?t.alternatingCellBackColor:t.cellBackColor}static measureColumn(t,e,r,o,a){let i;var n=w.Table.getHeight(r.font,r.zoom);if(o.is2(S))i=this.measureSparklinesCell(r,0,r.zoom);else if(o.is2(c))i=this.measureIndicatorCell(t,r,o,a,r.zoom);else if(o.is2(p))i=this.measureDataBarsCell(t,r,o,a,r.zoom);else if(s.isImage(a))return new m(0,w.Table.getHeight(r.font,r.zoom));return new m(i.width,Math.max(i.height,n))}static getArrowSize(t,e){var r=w.Table.getHeight(t.headerFont,t.zoom),o;if(d.getSortDirection(t.userSorts,e.key)!=i.None)return new m(1.5*r,r);return m.empty}static getRightImageRect(t,e,r){var o=r.width*t.zoom,t=r.height*t.zoom;return new a(e.right-3-o,e.y+(e.height-t)/2,o,t)}static measureSparklinesCell(t,e,r){return new m(Math.max(e,80*r),0)}static measureIndicatorCell(t,e,r,o,a){var i,o=l.getCellText(e,r,g.tryToNullableNumber(o));let n=this.measureCell2(t,o,e.font);return n.width=(n.width+4)*a*1.25,n}static measureDataBarsCell(t,e,r,o,a){var o=h.formatBasedOnColumnType(e,r,o);let i=this.measureCell2(t,o,e.font);return i.width*=a,r.horAlignment!=u.Center&&(i.width*=2),i}static measureCommonCell(t,e,r,o,a,i){var o=h.formatBasedOnColumnType(e,r,o);let n=new m(a,0);return s.isImage(o)||(n=this.measureCell2(t,o,e.font),n.width*=i,n.height*=i),n}static measureHeader(t,e){return this.measureHeader2(null,t,e)}static measureHeader2(t,e,r){var r=f.getLabel(r);let o=this.measureCell2(t,r,e.headerFont);return o.width+=36,o}static measureCell(t,e){return this.measureCell2(null,t,e)}static measureCell2(t,e,r){let o=new m(8,w.Table.getHeight(r));if(n.isNullOrEmpty(e))return o;var a=r.stimulsoft().getHashCode().toString()+e;if(this.captionSizeCache.contains(a)){var i=this.captionSizeCache.get(a);return o.width=i.width,o.height=i.height,o}var r=w.Table.Font.getGdiFont(1,null,r),r=b.measureString(e,r,1e6);return o.width=r.width,o.height=r.height,this.captionSizeCache.set(a,r),o}static measureHeaders(t,e){var r=w.Table.Font.getGdiFont(1,null,e),o;let a=new m(8,w.Table.getHeight(r));for(o of t){let t=new m(8,0);var i=f.getLabel(o),i;n.isNullOrEmpty(i)||(i=b.measureString(i,r,1e6),t.width+=i.width),a.width+=t.width}return a.width}}r.captionSizeCache=new e,t.StiTableElementGdiPainter=r}(a=e.Painters||(e.Painters={}))}(Stimulsoft=Stimulsoft||{}),function(r){var t,e,o,a,i;e=t=r.Dashboard||(r.Dashboard={}),e=o=e.Export||(e.Export={}),e=a=e.Painters||(e.Painters={}),function(t){var p=r.System.Drawing.SolidBrush,c=r.Dashboard.Components.Table.StiBubbleColumn,i=r.System.Drawing.Color,S=r.Dashboard.Helpers.StiTextFormatHelper,f=r.Base.Drawing.StiHorAlignment,s=r.Base.Dashboard.StiElementConsts,h=r.System.Drawing.Rectangle,w=r.Report.Dashboard.Styles.StiDashboardStyleHelper;class e{static draw(t,e,r,o,a,i,n,l,s,h,d=!0){if(0==i)return;var m=S.formatBasedOnColumnType(r,o,i);0<n&&(n=0),l<0&&(l=0);var u=o.horAlignment;let g=e;g.inflate(-2,-2);var e=this.calculateTextRect(r,g,o);g=this.calculateBubbleRect(r,g,o,Math.abs(i),n,l);var l=w.getTableStyle(r),h=this.getForeColor(r,o,l,s,h),e,o,l,o;d&&u!=f.Center&&t.drawString(m,r.font,h,e,null),0<g.width&&0<g.height&&(o=(e=o.as(c)).allowCustomColors?e.positiveColor:l.cellDataBarsPositive,l=e.allowCustomColors?e.negativeColor:l.cellDataBarsNegative,o=new p(i<0?l:o),t.fillEllipse(g,o))}static getForeColor(t,e,r,o,a){if(!i.transparent.equals(e.foreColor))return e.foreColor;if(!i.transparent.equals(t.foreColor))return t.foreColor;if(o)return r.alternatingCellForeColor;return a?null!=r?r.selectedCellForeColor:s.Table.Font.Color:null!=r?r.cellForeColor:s.Table.Font.Color}static calculateBubbleRect(t,e,r,o,a,i){var r=r;if(null==r)return e;var n=s.Table.getHeight(t.font,t.zoom);n-=2;var i=Math.max(Math.abs(a),Math.abs(i)),l=Math.abs(n*o/i);switch(r.horAlignment){case f.Left:return new h(e.right-n+(n-l)/2,e.y+(e.height-l)/2,l,l);case f.Center:return new h(e.x+(e.width-l)/2,e.y+(e.height-l)/2,l,l);case f.Right:return new h(e.x+(n-l)/2,e.y+(e.height-l)/2,l,l)}return e}static calculateTextRect(t,e,r){var r=r;if(null!=r){var o=s.Table.getHeight(t.font,t.zoom);switch(r.horAlignment){case f.Left:e=new h(e.x,e.y,e.width-o,e.height);break;case f.Right:e=new h(e.x+o,e.y,e.width-o,e.height);break}}return e.inflate(-2,-2),e}static getCellText(t,e,r){return S.formatBasedOnColumnType(t,e,r)}}t.StiBubbleCellPainter=e}(i=e.Table||(e.Table={}))}(Stimulsoft=Stimulsoft||{}),function(r){var t,e,o,a,i;e=t=r.Dashboard||(r.Dashboard={}),e=o=e.Export||(e.Export={}),e=a=e.Painters||(e.Painters={}),function(t){var m=r.System.Drawing.Color;class e{static getScaleColor(t,e,r,o,a,i){var n=(r-e)/2;t=Math.min(t,r),t=Math.max(t,e);let l=0,s,h;var o=o.cellBackColor,r,d;h=n<t?0!=(r=r-n)?(l=(t-n)/r,s=m.fromArgb(255,o),m.fromArgb(255,i)):(s=m.lightGray,m.lightGray):0!=(d=n-e)?(l=t/d,s=m.fromArgb(255,a),m.fromArgb(255,o)):(s=m.lightGray,m.lightGray);var t=(h.a-s.a)*l+s.a,d=(h.r-s.r)*l+s.r,a=(h.g-s.g)*l+s.g,o=(h.b-s.b)*l+s.b,t=Math.min(t,255),d=Math.min(d,255),a=Math.min(a,255),o=Math.min(o,255);return t=Math.max(t,0),d=Math.max(d,0),a=Math.max(a,0),o=Math.max(o,0),m.fromArgb(Math.round(t),Math.round(d),Math.round(a),Math.round(o))}}t.StiColorScaleCellPainter=e}(i=e.Table||(e.Table={}))}(Stimulsoft=Stimulsoft||{}),function(r){var t,e,o,a,i;e=t=r.Dashboard||(r.Dashboard={}),e=o=e.Export||(e.Export={}),e=a=e.Painters||(e.Painters={}),function(t){var x=r.System.Drawing.Color,p=r.Dashboard.Helpers.StiTextFormatHelper,D=r.Base.Drawing.StiHorAlignment,i=r.Base.Dashboard.StiElementConsts,C=r.System.Drawing.Rectangle,y=r.Dashboard.Components.Table.StiDataBarsDirection,E=r.Dashboard.Components.Table.StiDataBarsBrushType,v=r.Report.Dashboard.Styles.StiDashboardStyleHelper,T=r.Base.Drawing.StiColorUtils,R=r.Base.Drawing.StiGradientBrush;class e{static draw(t,e,r,o,a,i,n,l,s,h,d=!0,m=y.LeftToRight,u=E.Solid){var g=p.formatBasedOnColumnType(r,o,i);this.draw2(t,e,i,n,l,a,g,r,o,s,h,d,m,u)}static draw2(e,r,o,a,i,t,n,l,s,h,d,m=!0,u=y.LeftToRight,g=E.Solid){if(null==o||0==o)return;0<a&&(a=0),i<0&&(i=0);var p=s.horAlignment;let c=r;c.inflate(-2,-2);var S=this.calculateTextRect(c,s);c=this.calculateDataBarsRect(c,s);var f=v.getTableStyle(l),d=this.getForeColor(l,s,f,h,d);m&&e.drawString(n,l.font,d,S,null),p!=D.Center&&e.fillRectangle(c,x.fromArgb(40,f.cellDataBarsPositive));var d=i+Math.abs(a),a=c.width*Math.abs(a)/d,i=c.width*i/d;let w=c.width*Math.abs(o)/d;var d=w>i,i,r,r,f,t;d&&(w=i);let b=0;if(u==y.LeftToRight?c.x+=o<0?a-w:a:(b=180,c.x=o<0?c.right-a:c.right-a-w),c.width=w,o<0&&(b+=180),0<c.width&&0<c.height){if(g==E.Gradient){let t;t=u==y.LeftToRight?0<o?new C(r.left+a,r.top,i,r.height):new C(r.left,r.top,a,r.height):o<0?new C(r.left+i,r.top,a,r.height):new C(r.left,r.top,i,r.height),0<c.width&&c.width<1&&(c.width=1),0<t.width&&t.width<1&&(t.width=1),0<t.width&&0<c.width&&(i=o<0?f.cellDataBarsNegative:f.cellDataBarsPositive,r=T.light(i,200),t.x-=.1*t.width,t.width+=.2*t.width,r=new R(i,r,b),e.fillRectangle(c,r))}else{var o=o<0?f.cellDataBarsNegative:f.cellDataBarsPositive;e.fillRectangle(c,o)}d&&(f=f.cellDataBarsOverlapped,t=new C(c.right-6*t,c.y,6*t,c.height),e.fillRectangle(t,f)),p==D.Center&&e.drawString(n,l.font,x.white,S,null)}}static getForeColor(t,e,r,o,a){if(!x.transparent.equals(e.foreColor))return e.foreColor;if(!x.transparent.equals(t.foreColor))return t.foreColor;if(o)return r.alternatingCellForeColor;return a?null!=r?r.selectedCellForeColor:i.Table.Font.Color:null!=r?r.cellForeColor:i.Table.Font.Color}static calculateDataBarsRect(t,e){var r;if(null==e)return t;switch(e.horAlignment){case D.Left:return new C(t.right-t.width/2,t.y,t.width/2,t.height);case D.Right:return new C(t.x,t.y,t.width/2,t.height)}return t}static calculateTextRect(t,e){var r;if(null!=e)switch(e.horAlignment){case D.Left:t=new C(t.x,t.y,t.width/2,t.height);break;case D.Right:t=new C(t.right-t.width/2,t.y,t.width/2,t.height);break}return t.inflate(-2,-2),t}}t.StiDataBarsCellPainter=e}(i=e.Table||(e.Table={}))}(Stimulsoft=Stimulsoft||{}),function(o){var t,e,r,a,i;e=t=o.Dashboard||(o.Dashboard={}),e=r=e.Export||(e.Export={}),e=a=e.Painters||(e.Painters={}),function(t){var e=o.System.StiArray;class r{static draw(t,e,r,o,a){}static castToArray(t){return e.isArray(t)?t:null}}t.StiSparklinesCellPainter=r}(i=e.Table||(e.Table={}))}(Stimulsoft=Stimulsoft||{}),function(t){var e,r,o,a,i;r=e=t.Dashboard||(t.Dashboard={}),r=o=r.Export||(r.Export={}),(i=a=r.Settings||(r.Settings={})).IStiSizeExportSettings=new t.System.Interface("IStiSizeExportSettings")}(Stimulsoft=Stimulsoft||{}),function(a){var t,e,r,o;e=t=a.Dashboard||(a.Dashboard={}),e=r=e.Export||(e.Export={}),function(t){var p=a.System.Collections.Hashtable,r=a.Dashboard.Components.ComboBox.StiComboBoxElement,c=a.System.StiString,l=a.Base.Drawing.StiVertAlignment,s=a.Base.Drawing.StiTextHorAlignment,h=a.Report.Dashboard.IStiControlElement,d=a.Report.Dashboard.Styles.StiDashboardStyleHelper,n=a.System.Drawing.Graphics,S=a.Base.Localization.StiLocalization,f=a.Dashboard.Drawing.Helpers.StiLocHelper,m=a.Report.Components.StiText,u=a.Base.Drawing.StiSolidBrush,w=a.Report.Dashboard.StiItemSelectionMode,b=a.Report.Dashboard.StiElementDataCache,g=a.System.Drawing.Rectangle,o=a.Dashboard.Components.ComboBox.StiComboBoxHelper;class e extends t.StiElementExportTool{render(s,h,d,t){var m,u,g;return __awaiter(this,void 0,void 0,function*(){if(0==s.getMeters().length)return;let e=yield b.tryToGetOrCreate(s);if(null==e)return;let r=new p;if(1<e.meters.countItems)for(var t of e.rows){var o=null===(m=t[1])||void 0===m?void 0:m.stimulsoft().toString();c.isNullOrWhiteSpace(o)||r.set(o,t[0])}var a=s,a;let i=s,n="";if(a.selectionMode==w.One)if(i.userFilters.any())n=i.userFilters[0].value,n=null!==(u=r.get(n))&&void 0!==u?u:n;else if(a.showAllValue)n=f.locAll;else{let t=e.rows.firstOrDefault();null!=t&&0<t.length&&null!=t[0]&&(n=t[0].toString())}if(this.renderElement(h,s,d,n),a.selectionMode==w.Multi){let t=d;if(i.userFilters.any())for(var l of i.userFilters){if(!(t.x+t.width<=d.x+d.width)){while(1<h.components.count)h.components.removeAt(1);this.renderItem(h,s,d,c.format(S.get("Dashboard","NSelected"),i.userFilters.length));break}t=this.renderItem(h,s,t,null!==(g=r.get(l.value))&&void 0!==g?g:l.value),t.x+=t.width+4}else a.showAllValue?this.renderItem(h,s,d,f.locAll):(a=this.getValuesCount(s,e),this.renderItem(h,s,d,c.format(S.get("Dashboard","NSelected"),a)))}})}getValuesCount(t,e){var t=t.as(r),t=o.fetchItems(t,e,t.showBlanks);return null!=t?t.length:0}renderElement(t,e,r,o){var a=d.getForeColor(e),i=d.getBackColor(e);let n=new m(r);n.name=`${e.name}_ComboBox`,n.allowHtmlTags=!0,n.vertAlignment=l.Center,n.horAlignment=s.Left,n.textBrush=new u(a),n.brush=new u(i),n.text=this.format(e.as(h),o),t.components.add(n)}renderItem(t,e,r,o){var a=d.getControlStyle(e);let i=new m;i.name=`${e.name}_ComboBoxItem`,i.allowHtmlTags=!0,i.vertAlignment=l.Center,i.horAlignment=s.Center,i.textBrush=new u(a.selectedForeColor),i.brush=new u(a.selectedBackColor),i.text=this.format(e.as(h),o),t.components.add(i);var o=n.measureString(o,i.font);return i.clientRectangle=new g(r.x,r.y,o.width+4,r.height)}}t.StiComboBoxElementExportTool=e}(o=e.Tools||(e.Tools={}))}(Stimulsoft=Stimulsoft||{}),function(r){var t,e,o,a;e=t=r.Dashboard||(r.Dashboard={}),e=o=e.Export||(e.Export={}),function(t){var h=r.Base.Drawing.StiVertAlignment,d=r.Base.Drawing.StiSolidBrush,m=r.Report.Dashboard.Styles.StiDashboardStyleHelper,i=r.Dashboard.Components.DatePicker.StiDatePickerHelper,u=r.Report.Components.StiText,n=r.Report.Dashboard.StiDateSelectionMode,a=r.System.DateTime,g=r.Report.Dashboard.StiElementDataCache,l=r.Report.StiVariableExpressionHelper,s=r.Report.Dictionary.StiVariable,p=r.Report.Dashboard.StiInitialDateRangeSelectionSource,c=r.Report.DateTimeRange,S=r.Report.Range,f=r.System.StiString,w=r.System.Globalization.CultureInfo;class e extends t.StiElementExportTool{render(n,l,s,t){return __awaiter(this,void 0,void 0,function*(){let e=n;if(null==e.getValueMeter())return;var r=yield g.tryToGetOrCreate(n),o=m.getForeColor(n),a=m.getBackColor(n);let i=null;try{null==n.report||f.isNullOrWhiteSpace(n.report.culture)||(i=w.currentCulture,w.currentCulture=new w(n.report.culture))}finally{let t=new u(s);t.name=`${n.name}_Content`,t.allowHtmlTags=!0,t.vertAlignment=h.Center,t.textBrush=new d(o),t.brush=new d(a),t.text=this.getDateTimeString(e,r),l.components.add(t),null!=i&&(w.currentCulture=i)}null!==i&&void 0!==i&&i.fix()})}getDateTimeString(t,e){var r,o;let a=i.getDefaultValue(t);if(l.isVariableSpecifiedAsExpression(t,null===(r=null==t?void 0:t.valueMeter)||void 0===r?void 0:r.expression)){var r=null===(o=i.getVariableSpecifiedAsValue(t))||void 0===o?void 0:o.as(s);if(S.isRangeType(null==r?void 0:r.type)&&t.initialRangeSelectionSource==p.Selection){var o={ref:null},r={ref:null};return i.calculateRangeFromInitial(t.initialRangeSelection,o,r),this.getRangeVariableString(t,new c(o.ref,r.ref))}return null!=a&&a.stimulsoft().is(c)?this.getRangeVariableString(t,a):this.format(t,a)}return t.selectionMode==n.AutoRange?this.getAutoRangeColumnString(t,e):t.selectionMode==n.Range?this.getRangeColumnString(t):this.format(t,a)}getRangeVariableString(t,e){var e=null==e?void 0:e.stimulsoft().as(c);return`${this.format(t,null==e?void 0:e.fromObject)} - ${this.format(t,null==e?void 0:e.toObject)}`}getAutoRangeColumnString(t,e){if(null==e)return"";let r=e.rows.select(t=>t[0]).where(t=>null!=t&&t instanceof a);if(r.any()){var o=r.where(t=>t instanceof a).cast().min(),e=r.where(t=>t instanceof a).cast().max();return`${this.format(t,o)} - ${this.format(t,e)}`}return""}getRangeColumnString(t){var e={ref:null},r={ref:null};return i.calculateRangeFromInitial(t.initialRangeSelection,e,r),`${this.format(t,e.ref)} - ${this.format(t,r.ref)}`}}t.StiDatePickerElementExportTool=e}(a=e.Tools||(e.Tools={}))}(Stimulsoft=Stimulsoft||{}),function(r){var t,e,o,a;e=t=r.Dashboard||(r.Dashboard={}),e=o=e.Export||(e.Export={}),function(t){var l=r.Base.Drawing.StiSolidBrush,s=r.Report.Dashboard.Styles.StiDashboardStyleHelper,h=r.Dashboard.Render.StiGaugeElementBuilder,d=r.Report.Dashboard.StiElementDataCache,m=r.Dashboard.Components.Gauge.StiGaugeElement,u=r.Dashboard.Export.Settings.StiPdfDashboardExportSettings,g=r.Dashboard.Export.Settings.StiExcelDashboardExportSettings;class e extends t.StiElementExportTool{render(a,i,n,t){return __awaiter(this,void 0,void 0,function*(){if(this.renderEmptyDataMessage(a,i,n.clone(),t))return;var e=a.as(m),r=yield d.tryToGetOrCreate(a);let o=(new h).render2(e,n.size,r);if(1!=o().count2()||t.is(g)||t.is(u))yield this.renderContent(a,i,n.clone());else{var r=s.getBackColor(a);let t=o().firstOrDefault().gauge;t.name=`${a.name}_Content`,t.clientRectangle=n,t.style=s.getGaugeStyle(e),t.customStyleName=e.customStyleName,t.brush=new l(r),i.components.add(t)}})}}t.StiGaugeElementExportTool=e}(a=e.Tools||(e.Tools={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,r,o,a;r=t=e.Dashboard||(e.Dashboard={}),r=o=r.Export||(r.Export={}),function(t){var i=e.System.Drawing.Graphics,S=e.System.Drawing.Font,f=e.Report.Components.IStiFont,w=e.Report.Dashboard.IStiListBoxElement,b=e.Report.Dashboard.StiItemOrientation,l=e.Dashboard.Components.ListBox.StiListBoxHelper,h=e.Report.Dashboard.IStiControlElement,d=e.Base.Drawing.StiVertAlignment,m=e.Base.Drawing.StiTextHorAlignment,s=e.System.DateTime,x=e.Dashboard.Drawing.Helpers.StiLocHelper,u=e.Report.Components.StiCheckBox,g=e.Base.Drawing.StiSolidBrush,p=e.Base.Drawing.StiPenStyle,c=e.System.Drawing.Color,D=e.Base.Drawing.StiBorderSides,C=e.Base.Drawing.StiBorder,y=e.Report.Components.StiMargins,E=e.Report.Components.StiText,v=e.Report.Dashboard.Styles.StiDashboardStyleHelper,T=e.Data.Engine.StiDataFilterCondition,R=e.Report.Dashboard.StiItemSelectionMode,B=e.Report.Components.StiCheckStyle,H=e.Report.Dashboard.StiElementDataCache,F=e.Base.Dashboard.StiElementConsts,I=e.Report.Components.IStiShape,A=e.Dashboard.Components.ListBox.StiListBoxElement,k=e.System.Drawing.Rectangle;class P extends t.StiElementExportTool{render(d,m,u,g){return __awaiter(this,void 0,void 0,function*(){if(this.renderEmptyDataMessage(d,m,u.clone(),g))return;let r=m.report,o=m.page;var a=d.as(A),t,i,e;let n=m.clone(!0,!1);g.renderSinglePage||(u.height=Number.MAX_VALUE),yield this.renderItems(n,u.clone(),d);let l=0,s=m.top;0<n.components.count&&(s+=n.getComponentsList().stimulsoft().toList().min(t=>t.top));while(1){for(i of n.getComponentsList()){let t=i.bottom;var h=i.left;i.is(I)&&(t+=F.ListBox.ItemHeight/3),null!=a?(a.orientation==b.Vertical&&t<=m.height||a.orientation==b.Horizontal&&h<=m.width)&&(n.components.remove(i),m.components.add(i)):t<=m.height&&(n.components.remove(i),m.components.add(i))}if(g.renderSinglePage||0==n.components.count)break;let e=n.getComponentsList().stimulsoft().toList().min(t=>t.top);n.getComponentsList().forEach(t=>t.top=t.top-e+1),r.renderedPages.count<=++l&&r.renderedPages.add(o.clone(!0,!1)),o=r.renderedPages.getByIndex(l),m=m.clone(!0,!1),g.renderSingleElement?(m.top=0,m.left=0):m.top=s,o.components.add(m)}for(e of m.report.renderedPages.list)e.getComponentsList().forEach(t=>{t.report=r,t.page=o})})}static getCheckStyle(t,e){let r=t;if(!r.userFilters.any())return B.CheckRectangle;if(r.userFilters.any(t=>t.condition==T.IsFalse))return B.NoneRectangle;if(r.userFilters.any(t=>t.condition==T.EqualTo&&t.value==(null==e?void 0:e.toString())))return B.CheckRectangle;return B.NoneRectangle}renderItems(a,i,n){return __awaiter(this,void 0,void 0,function*(){var t=yield H.tryToGetOrCreate(n),e,r,t;if(null==t)return;let o=l.fetchItems(n,t,n.showBlanks);null!=o&&(r=o.select(t=>null==t?"":null==t.label&&null!=t.value&&t.value instanceof s?t.value.toShortDateString():t.toString()),t=o.select(t=>P.getCheckStyle(n,t)),this.renderItems2(a,i.clone(),n,r,t))})}renderItems2(e,r,o,a,i){var n;let t=o;var l=t.selectionMode==R.Multi,s=o.is(w)&&o.orientation==b.Horizontal,h=(null===(n=t.stimulsoft().as(f))||void 0===n?void 0:n.font)||new S("Arial",8);let d=o,m=s?this.getHorizontalItemAutoWidth(t,h,a,r.width,l):r.width;var u=s?r.height:F.ListBox.ItemHeight;let g=r.x,p=r.y;if(t.showAllValue){s&&0==m&&(m=this.measureItemWidth(x.locAll,h,l));var n=new k(g,p,m,u);let t=B.CheckRectangle;d.userFilters.any()&&(t=d.userFilters.any(t=>t.condition==T.IsFalse)?B.NoneRectangle:B.DotRectangle),this.renderItem(e,n,o,x.locAll,t,s?D.Right:D.Bottom,l),s?g+=m+1:p+=u+1}if(null!=a)for(let t=0;t<a.count2();t++){s&&0==m&&(m=this.measureItemWidth(a[t],h,l));var c=new k(g,p,m,u);if(this.renderItem(e,c,o,a[t],i[t],D.None,l),s?g+=m+1:p+=u+1,s&&g>=r.right||!s&&p>=r.bottom)break}}getHorizontalItemAutoWidth(t,e,r,o,a){let i=0,n=0;while(i<o&&n<r.length)i+=this.measureItemWidth(r[n],e,a),n++;return t.showAllValue&&(this.measureItemWidth(x.locAll,e,a),n++),i<o&&0<n?o/n:0}measureItemWidth(t,e,r){var e=F.Table.Font.getGdiFont(1,null,e),o;let a=i.measureString(t,e,1e6).width;return r&&(a+=F.ListBox.CheckBoxWidth),a}renderItem(t,e,r,o,a,i,n){var l;n&&(l=r.is(w)&&r.orientation==b.Horizontal,P.renderCheckBox(t,e.clone(),r,a,l?D.None:i),e.x+=F.ListBox.CheckBoxWidth,e.width-=F.ListBox.CheckBoxWidth);var a=v.getForeColor(r),l=v.getBackColor(r);let s=new E(e);s.name=`${r.name}_Item`,s.allowHtmlTags=!0,s.margins=n?new y(1,0,0,0):y.empty,s.border=i!=D.None?new C(i,c.gray,1,p.Solid):new C(D.None,c.transparent,0,p.None),s.brush=new g(l),s.excelDataValue=this.format(r.as(h),o),s.horAlignment=m.Left,s.vertAlignment=d.Center,s.text=this.format(r.as(h),o),s.textBrush=new g(a),s.wordWrap=!1,t.components.add(s)}static renderCheckBox(t,e,r,o,a){var i=v.getForeColor(r);e=new k(e.x,e.y,F.ListBox.CheckBoxWidth,e.height);let n=new u(e);n.name=`${r.name}_ItemCheckBox`,n.border=a!=D.None?new C(a,c.gray,1,p.Solid):new C(D.None,c.transparent,0,p.None),n.contourColor=c.transparent,n.textBrush=new g(i),n.checkStyleForTrue=o,n.checkStyleForFalse=B.NoneRectangle,n.checkedValue=o!=B.NoneRectangle,t.components.add(n)}}t.StiListBoxElementExportTool=P}(a=r.Tools||(r.Tools={}))}(Stimulsoft=Stimulsoft||{}),function(r){var t,e,o,a;e=t=r.Dashboard||(r.Dashboard={}),e=o=e.Export||(e.Export={}),function(t){var i=r.Report.Components.StiImage,n=r.Base.Drawing.StiSolidBrush,l=r.Report.Dashboard.Styles.StiDashboardStyleHelper;class e extends t.StiElementExportTool{render(r,o,a,t){return __awaiter(this,void 0,void 0,function*(){var t=l.getBackColor(r);let e=new i(a);e.name=`${r.name}_Content`,e.brush=new n(t),o.components.add(e)})}}t.StiPanelElementExportTool=e}(a=e.Tools||(e.Tools={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,r,o,a;r=t=e.Dashboard||(e.Dashboard={}),r=o=r.Export||(r.Export={}),function(t){var b=e.Report.CrossTab.Core.StiCellType,x=e.Report.CrossTab.Core.StiSummaryDirection,D=e.System.StiArray,c=e.Dashboard.Export.Helpers.StiExportSettingsHelper,C=e.Base.Drawing.StiSolidBrush,y=e.Base.Drawing.StiBorderSides,E=e.Report.Dashboard.Styles.StiDashboardStyleHelper,v=e.Report.CrossTab.Core.StiCell,T=e.System.Collections.List,S=e.Dashboard.Export.Settings.StiSvgDashboardExportSettings,f=e.Dashboard.Export.Settings.StiExcelDashboardExportSettings,w=e.Report.Dashboard.StiPivotToConvertedStateCache,R=e.Report.Dashboard.StiPivotTableToCrossTabCache,l=e.Report.Components.StiDockStyle,s=e.Report.Engine.StiCrossTabBuilder,h=e.Report.CrossTab.StiCrossTabParams,B=e.Report.Components.StiPage,H=e.Dashboard.Export.Helpers.StiLayoutExportHelper,F=e.Dashboard.Export.Helpers.StiTitleExportHelper,I=e.Dashboard.Export.Helpers.StiBackColorExportHelper,A=e.Dashboard.Export.Helpers.StiBorderExportHelper,k=e.Dashboard.Helpers.StiPivotTableHelper,P=e.Report.Dashboard.StiElementDataCache,M=e.Dashboard.Components.PivotTable.StiPivotTableElement,L=e.System.Drawing.Rectangle,N=e.Report.Components.StiPanel;class _ extends t.StiElementExportTool{render(m,u,g,p){return __awaiter(this,void 0,void 0,function*(){if(this.renderEmptyDataMessage(m,u,g.clone(),p))return;let e=u.report;var r=m.as(M);let a=u.page;var o=p.is(S)&&p.designMode,i=c.isDataExport(p),t;let n=R.get(r);null==n&&(t=yield P.tryToGetOrCreate(r),n=yield k.convertToCrossTab(r,t),R.put(r,n),w.putFalse(r)),k.applyStyle(r,n,i),o&&(_.renderForWebDesigner(n,r),R.remove(r)),_.convertSizes(r,n);let l=n.crossTabInfo.cross;var i=l.widths.stimulsoft().toList().sum(),r=l.heights.stimulsoft().toList().sum(),s;if(i<=g.width&&r<=g.height||o||p.renderSinglePage){A.render(m,u,p),I.render(m,u);var h=F.render(m,u,p);_.renderCells(u,h,h,null,n)}else if(p.is(f)){!p.renderSingleElement&&0!=e.renderedPages.getByIndex(0).components.count||e.renderedPages.removeAt(0),a=new B;let t=new N;t.name=m.name,t.clientRectangle=new L(0,0,i,r),a.components.add(t),e.renderedPages.add(a),A.render(m,t,p),I.render(m,t);var d=F.render(m,t,p);e.renderedPages.remove(a);var o=2*i-d.width+d.left+1,h=2*r-d.height+d.top+1;a=new B,a.width=o,a.height=h,t=new N,t.name=m.name,t.clientRectangle=new L(0,0,o,h),a.components.add(t),e.renderedPages.add(a),A.render(m,t,p),I.render(m,t),d=F.render(m,t,p),a.unlimitedHeight=!0,_.renderCells(t,d,d,null,n)}else{let o=a.clone(!0,!1);e.renderedPages.add(o);let t=u.clone(!0,!1);t.left=0,t.top=0,t.width=o.width,t.height=o.height,g=new L(0,0,o.width,o.height),o.components.add(t),u=t,!p.renderSingleElement&&0!=e.renderedPages.getByIndex(0).components.count||e.renderedPages.removeAt(0),A.render(m,u,p),I.render(m,u);var d=F.render(m,u,p),d=H.excludePadding(m,d),r=new L(d.left,d.top,d.width+i,d.height+r);a.unlimitedHeight=!0,_.renderCells(u,r,d,null,n);for(let r=0;r<o.segmentPerWidth;r++)for(let e=0;e<o.segmentPerHeight;e++)if(0!=r||0!=e){let t=u.clone(!0,!1);t.left=r*a.width,t.top=e*a.height,t.width=a.width,t.height=a.height,o.components.insert(0,t),A.render(m,t,p),I.render(m,t),F.render(m,t,p)}}for(s of u.report.renderedPages.list)s.getComponentsList().forEach(t=>{t.report=e,t.page=a})})}static renderForWebDesigner(t,e){if(!(1<e.columns.length||1<e.rows.length))return;let i=t.crossTabInfo.cross.cells,a=0,n=new T,l=new T,o=null,s=null;var h=e.summaryDirection==x.LeftToRight?e.summaries.length:1,d=e.summaryDirection==x.UpToDown?e.summaries.length:1,m=k.getHeadersBounds(i);for(let r=0;r<i.length;r++){let e=i[r][0];for(e.cellType==b.LeftTopLineMain&&(o=new V,o.cell=e,o.x=r,o.width=e.width),e.cellType==b.RightTopLineMain&&(s=new V,s.cell=e,s.x=r),a=0;a<i[r].length;a++)if(e=i[r][a],e.cellType==b.CornerColMain||e.cellType==b.CornerRowMain){let t=new V;t.cell=e,t.x=r,t.y=a,t.width=e.width,t.height=e.height,n.add(t)}}if(-1<m.top){let a=-1;for(let o=0;o<i.length;o++){let r=i[o][m.top];if(r.cellType==b.HeaderColMain||r.cellType==b.HeaderColTotalMain){a=-1==a?o:a;var u=m.bottom-m.top+(1<h?0:1);let t=new V;if(t.cell=r,t.x=a,t.y=m.top,t.height=u,t.width=h,n.add(t),r.text=(1<u&&r.cellType!=b.HeaderColTotalMain?"> ":"")+r.text,l.add(o+r.width-1),1<h)for(let e=o+r.width-h;e<o+r.width;e++){let t=new V;t.cell=i[e][m.bottom],t.x=a,t.y=m.bottom,n.add(t),l.add(e),a++}else a++}}}if(-1<m.left){let o=-1;for(a=0;a<i[0].length;a++){let r=i[0][a];if(r.cellType==b.HeaderRowMain||r.cellType==b.HeaderRowTotalMain){o=-1==o?a:o;var g=m.right+(1<d?0:1);let t=new V;if(t.cell=r,t.x=0,t.y=o,t.height=d,t.width=g,t.cellRow=1==d?a+r.height-1:-1,n.add(t),r.text=(1<g&&r.cellType!=b.HeaderRowTotalMain?"> ":"")+r.text,1<d)for(let e=a+r.height-d;e<a+r.height;e++){let t=new V;t.cell=i[m.right][e],t.x=m.right,t.y=o,t.cellRow=e,n.add(t),o++}else o++}}}null!=o&&(o.width=m.right-m.left+1,n.add(o)),null!=s&&(s.width=n.max(t=>t.x)-m.right,n.add(s));var p=E.getPivotTableStyle(e),r=n.max(t=>t.y)+1,c=n.max(t=>t.x)+1,S;let f=D.create2(v,c,r);for(S of n)if(f[S.x][S.y]=S.cell,S.cell.width=S.width,S.cell.height=S.height,0<=S.cellRow)for(a=S.y;a<S.y+S.height;a++){let r=m.right+1;for(let t=S.width;t<i.length;t++)if(0<=l.indexOf(t)){f[r++][a]=i[t][S.cellRow+a-S.y],f[r-1][a].field.border.side=t==i.length-1?y.None:y.Right;let e=f[r-1][a];if(null!=e&&null!=e.field&&e.field.brush.is(C)){let t=e.field.brush.color;(t.equals(p.alternatingCellBackColor)||t.equals(p.cellBackColor))&&(e.field.brush=new C(a%2!=0?p.alternatingCellBackColor:p.cellBackColor),e.field.textBrush=new C(a%2!=0?p.alternatingCellForeColor:p.cellForeColor))}null!=e&&null!=e.field&&(e.field.brush=null!=e.field.conditionBrush?e.field.conditionBrush:e.field.brush,e.field.textBrush=null!=e.field.conditionTextBrush?e.field.conditionTextBrush:e.field.textBrush)}}i=D.create2(v,c,0);for(let e=0;e<c;e++){i[e]=D.create(v,r);for(let t=0;t<r;t++)i[e][t]=null!=f[e][t]?f[e][t]:new v,null!=i[e][t].field&&e==c-1&&(i[e][t].field.border.side|=y.Top),0<t&&(i[e][t].parentCell=i[e][t])}var w=D.create(Number,r),e=D.create(Number,c);D.copy(t.crossTabInfo.cross.heights,0,w,r),D.copy(t.crossTabInfo.cross.widths,0,e,c),t.crossTabInfo.cross.cells=i,t.crossTabInfo.cross.widths=e,t.crossTabInfo.cross.heights=w,t.crossTabInfo.cross.doAutoSize()}static renderCells(t,e,r,o,a){a.page.unlimitedHeight=!0,t.canBreak=!0,t.dockStyle=l.None;let i=new h;i.startColumn=0,i.startRow=0,i.destinationContainer=t,i.destinationRectangle=r;let n=new s;n.renderCrossTabUnlimitedBreakable(i,a,t,e.clone())}static convertSizes(t,e){var r=e.crossTabInfo.cross,e=t.report.unit;w.isConverted(t)||(this.convert(r.heights,e),this.convert(r.widths,e),this.convert(r.coordX,e),this.convert(r.coordY,e),w.putTrue(t))}static convert(e,r){for(let t=0;t<e.length;t++)e[t]=r.convertToHInches(e[t])}}t.StiPivotTableElementExportTool=_;class V{constructor(){this.x=0,this.y=0,this.width=1,this.height=1,this.cellRow=-1}}}(a=r.Tools||(r.Tools={}))}(Stimulsoft=Stimulsoft||{}),function(r){var t,e,o,a;e=t=r.Dashboard||(r.Dashboard={}),e=o=e.Export||(e.Export={}),function(t){var l=r.Report.Dashboard.StiElementDataCache,s=r.Report.Maps.StiMapSource,h=r.Base.Drawing.StiSolidBrush,d=r.Report.Dashboard.Styles.StiDashboardStyleHelper,m=r.Report.Maps.StiMapMode,u=r.Report.Maps.StiMap;class e extends t.StiElementExportTool{render(o,a,i,n){return __awaiter(this,void 0,void 0,function*(){if(this.renderEmptyDataMessage(o,a,i.clone(),n))return;var t=o,e;let r=new u;r.stretch=!0,r.page=t.page,r.mapType=t.mapType,r.dataFrom=t.dataFrom,r.mapStyle=d.getMapStyleIdent(t),r.componentStyle=t.customStyleName,r.mapIdent=t.mapIdent,r.mapMode=m.Choropleth,r.showValue=t.showValue,r.shortValue=t.shortValue,r.showBubble=t.showBubble,r.colorEach=t.colorEach,r.displayNameType=t.showName,r.colorDataColumn=null==t.colorMeter?"":t.colorMeter.expression,r.groupDataColumn=null==t.groupMeter?"":t.groupMeter.expression,r.valueDataColumn=null==t.valueMeter?"":t.valueMeter.expression,r.nameDataColumn=null==t.nameMeter?"":t.nameMeter.expression,r.keyDataColumn=null==t.keyMeter?"":t.keyMeter.expression,r.mapData=t.mapData,r.brush=new h(d.getBackColor(o)),r.left=i.left,r.top=i.top,r.width=i.width,r.height=i.height,t.dataFrom==s.DataColumns&&(e=yield l.tryToGetOrCreate(t),r.dataTable=e,a.report.dictionary=t.report.dictionary),a.components.add(r)})}}t.StiRegionMapElementExportTool=e}(a=e.Tools||(e.Tools={}))}(Stimulsoft=Stimulsoft||{}),function(r){var t,e,o,a;e=t=r.Dashboard||(r.Dashboard={}),e=o=e.Export||(e.Export={}),function(t){var i=r.Report.Components.StiShape,n=r.Dashboard.Components.Shape.StiShapeElement;class e extends t.StiElementExportTool{render(r,o,a,t){return __awaiter(this,void 0,void 0,function*(){var t=r.as(n);let e=new i;e.shapeType=t.shapeType,e.size=t.size,e.borderColor=t.stroke,e.brush=t.fill,e.page=t.page,e.left=a.left,e.top=a.top,e.width=a.width,e.height=a.height,o.components.add(e)})}}t.StiShapeElementExportTool=e}(a=e.Tools||(e.Tools={}))}(Stimulsoft=Stimulsoft||{}),function(Dt){var t,e,r,Ct,o;e=t=Dt.Dashboard||(Dt.Dashboard={}),Ct=r=e.Export||(e.Export={}),function(t){var A=Dt.Dashboard.Components.Table.StiTableColumnVisibilityHelper,D=Dt.Report.Components.IStiTextBrush,C=Dt.Report.Components.IStiBrush,y=Dt.Report.Components.IStiFont,a=Dt.Report.Dashboard.Helpers.StiDashboardExpressionHelper,E=Dt.Dashboard.Export.Painters.Table.StiBubbleCellPainter,v=Dt.Report.Components.IStiHorAlignment,T=Dt.Dashboard.Components.Table.StiBubbleColumn,R=Dt.Dashboard.Export.Painters.Table.StiSparklinesCellPainter,n=Dt.System.Drawing.Size,B=Dt.Report.Components.StiSparkline,k=Dt.Data.Functions.Funcs,P=Dt.Data.Functions.StiSystemVariableObject,H=Dt.Base.StiSummaryColumnType,F=Dt.System.StiString,M=Dt.System.Drawing.Rectangle,b=Dt.Base.Drawing.StiVertAlignment,x=Dt.Base.Drawing.StiTextHorAlignment,e=Dt.System.StiPromise,I=Dt.Dashboard.Components.Table.StiDimensionColumn,i=Dt.Base.Drawing.StiColor,m=Dt.Report.Components.StiCheckBox,u=Dt.Report.Components.StiCheckStyle,L=Dt.Report.Components.TextFormats.StiNegativeColorChecker,N=Dt.System.Drawing.FontStyle,_=Dt.System.Drawing.Font,p=Dt.Report.StiNameValidator,c=Dt.Dashboard.Export.Helpers.StiExportSettingsHelper,V=Dt.System.Drawing.ColorTranslator,O=Dt.Base.Drawing.StiBrush,z=Dt.Dashboard.Export.Painters.Table.StiIndicatorCellPainter,S=Dt.Report.Dashboard.StiTableSizeMode,f=Dt.Data.Helpers.StiLabelHelper,w=Dt.Dashboard.Drawing.Painters.StiTableElementGdiPainter,G=Dt.Report.Components.StiImage,W=Dt.Dashboard.Export.Helpers.StiTitleExportHelper,$=Dt.Dashboard.Components.Table.StiColorScaleColumn,U=Dt.Report.Components.StiImageHelper,q=Dt.Report.Components.TextFormats.StiGeneralFormatService,Q=Dt.Base.Drawing.StiPenStyle,X=Dt.Base.Drawing.StiSolidBrush,j=Dt.Report.Components.StiText,J=Dt.Base.Drawing.StiBorderSides,K=Dt.Base.Drawing.StiHorAlignment,Y=Dt.Dashboard.Helpers.StiTextFormatHelper,Z=Dt.Base.Helpers.StiValueHelper,tt=Dt.Dashboard.Helpers.StiTableElementHelper,et=Dt.Dashboard.Components.Table.StiDataBarsColumn,rt=Dt.Dashboard.Components.Table.StiIndicatorColumn,ot=Dt.Dashboard.Components.Table.StiSparklinesColumn,at=Dt.Report.Dashboard.StiElementDataCache,it=Dt.Base.Drawing.StiBorder,nt=Dt.Base.Dashboard.StiElementConsts,lt=Dt.System.Drawing.Color,st=Dt.Dashboard.Components.Table.StiTableColumn,ht=Dt.Dashboard.Components.Table.StiTableElement,dt=Dt.Report.Components.StiPanel,mt=Dt.Report.Dashboard.Styles.StiDashboardStyleHelper,ut=Dt.System.Xml.XmlTextWriter,gt=Dt.System.Text.Encoding,pt=Dt.Dashboard.Export.Painters.Table.StiDataBarsCellPainter,ct=Dt.Base.Drawing.StiImageConverter,St=Dt.Report.Export.StiSvgHelper,ft=Dt.Report.Export.StiSvgGeomWriter,wt=Dt.Dashboard.Export.Painters.Table.StiColorScaleCellPainter,bt=Dt.Dashboard.Components.Table.StiTableElementConditionHelper;class xt extends t.StiElementExportTool{render(d,m,u,g){return __awaiter(this,void 0,void 0,function*(){if(this.renderEmptyDataMessage(d,m,u.clone(),g))return;let r=m.report,o=m.page;var t=d.as(ht);let a=null==g?Ct.StiDashboardExportFormat.Document:g.format;var e=g.renderSingleElement&&a==Ct.StiDashboardExportFormat.Excel,i=c.isDataExport(g),n;let l=m.clone(!0,!1);g.renderSinglePage||(u.height=Number.MAX_VALUE),yield xt.renderCells(l,u,t,1,a,i),e&&(u.width=l.components.toList().max(t=>t.right),u.height=l.components.toList().max(t=>t.bottom),m.width=m.page.width=u.width,m.height=m.page.height=u.height),t.sizeMode!=S.Fit||e||xt.fitByWidth(l,u.clone());let s=0,h=m.top;0<l.components.count&&(h+=l.getComponentsList().stimulsoft().toList().min(t=>t.top));while(1){if(l.getComponentsList().stimulsoft().toList().where(t=>t.bottom<=m.height).toList().forEach(t=>{l.components.remove(t),(t.left<m.width||a==Ct.StiDashboardExportFormat.Data)&&(m.components.add(t),t.right>m.width&&a!=Ct.StiDashboardExportFormat.Data&&(t.width=Math.max(0,m.width-t.left)))}),g.renderSinglePage||0==l.components.count)break;let e=l.getComponentsList().stimulsoft().toList().min(t=>t.top);l.getComponentsList().stimulsoft().toList().forEach(t=>t.top=t.top-e+1),r.renderedPages.count<=++s&&r.renderedPages.add(o.clone(!0,!1)),o=r.renderedPages.getByIndex(s),m=m.clone(!0,!1),g.renderSingleElement?(m.top=0,m.left=0):m.top=h,o.components.add(m)}for(n of m.report.renderedPages.list)n.getComponentsList().stimulsoft().toList().forEach(t=>{t.report=r,t.page=o})})}static renderCellsForViewerAsync(o){let a=new e;return setTimeout(()=>__awaiter(this,void 0,void 0,function*(){var i;let n=o.as(ht);if(null==n)return a.callTry(null);let l=yield at.getOrCreate(n);if(null==l)return a.callTry(null);var s=1;let h=[];var d=nt.Table.getHeight(n.font,s);let m=l.meters.where(t=>t.is(st)).cast();var t=null!=m.firstOrDefault(t=>t.showTotalSummary),u,e,r,r;let g=0;for(u of m){if(!A.getVisible(u,n.report)){g++;continue}let o=xt.measureHeader(n,u,s);if(u.is(ot))o=xt.measureSparklinesCell(s,o);else{for(var p of l.rows){var p=p[g];let t;t=u.is2(rt)?xt.measureIndicatorCell(n,u,s,p):u.is2(et)?xt.measureDataBarsCell(n,u,s,p):xt.measureCommonCell(n,u,s,p,o).width,o=Math.max(o,t)}u.showTotalSummary&&(r=tt.calculateTotal(u,g,l),r=this.measureFooter(n,u,s,r),o=Math.max(o,r))}var c=tt.minDataColumnValue(u,l,g),S=tt.maxDataColumnValue(u,l,g),f,r;let a=0;for(f of l.rows){h.length<l.rows.length&&h.push([]);let t=f[g];null!==t&&void 0!==t&&t.stimulsoft().is(P)&&(t=t==P.Line?u.textFormat.format(a+1):k.getSystemVariable(null===t||void 0===t?void 0:t.stimulsoft().as(P),a+1));var w=new M(0,0,o,d);let e=new dt;xt.renderCell(e,w,n,f,m.select(t=>t.key),u,s,t,c,S,1==(1&a),Ct.StiDashboardExportFormat.Html,!1);let r={};if(0<n.tableConditions.length&&0<e.components.length){let t=e.components.getByIndex(0);t.is(j)||(t.is(C)&&(r["backColor"]=V.toHtml(O.toColor(t.as(C).brush))),t.is(D)&&(r["textColor"]=V.toHtml(O.toColor(t.as(D).textBrush))))}if("boolean"==typeof t)r["boolValue"]=t;else for(var b of e.components.list)if(b.is(j)){if(r["text"]=b.text,r["textColor"]=V.toHtml(O.toColor(b.textBrush)),r["backColor"]=V.toHtml(O.toColor(b.brush)),r["textWidth"]=b.width,r["textHeight"]=b.height,0<n.tableConditions.length){var x=null===(i=n.as(y))||void 0===i?void 0:i.font,i=bt.processFontStyle(x,u.key,n,f,m.select(t=>t.key)),x=new _(x.fontFamily.name,x.size,i);let t={};t["bold"]=x.bold,t["italic"]=x.italic,t["underline"]=x.underline,t["strikeout"]=x.strikeout,r["textFontStyle"]=t}null!=t&&t.toString()!=r["text"]&&(r["value"]=t.toString())}else b.is(G)?(r["image"]=null!=b.imageToDraw?Dt.Base.Drawing.StiImageConverter.imageToString(b.imageToDraw):null,r["imageWidth"]=b.width,r["imageHeight"]=b.height):b.is(B)&&(r["sparkline"]=Dt.Report.Export.StiHtmlExportService.getSparklineData(null,b,b.width,b.height),r["sparklineWidth"]=b.width,r["sparklineHeight"]=b.height);null==r["boolValue"]&&null==r["text"]&&null==r["image"]&&(r["text"]=t),h[a].push(r),a++}if(t){h.length<l.rows.length+1&&h.push([]);let t={};t["text"]="",u.showTotalSummary&&(r=tt.calculateTotal(u,g,l),t["text"]=u.summaryType==H.Count?Math.trunc(r).toString():Y.formatBasedOnColumnType(n,u,r)),h[h.length-1].push(t)}g++}return a.callTry(h)}),0),a}static renderCells(T,R,B,H,F,I){return __awaiter(this,void 0,void 0,function*(){let o=yield at.tryToGetOrCreate(B);if(null==o)return;var t=nt.Table.getHeight(B.headerFont,H),e=nt.Table.getHeight(B.font,H);let a=o.meters.where(t=>t.is(st)).cast();var i=null!=a.firstOrDefault(t=>t.showTotalSummary),n=i?nt.Table.getHeight(B.footerFont,H):0,r,l,s,s,h,d,m,u,u;let g=[],p=[],c=0;for(r of a){let t=0;A.getVisible(r,B.report)&&(t=this.measureHeader(B,r,H),r.showTotalSummary&&(s=tt.calculateTotal(r,c,o),s=this.measureFooter(B,r,H,s),t=Math.max(t,s))),g.push(t),c++}let S=R.y+t;if(S<R.bottom-n){for(var f of o.rows){let r=e;c=-1;for(var w of a){if(c++,!A.getVisible(w,B.report))continue;let e=g[c];if(w.is(ot))e=this.measureSparklinesCell(H,e);else{var b=f[c],b;let t;w.is2(rt)?t=this.measureIndicatorCell(B,w,H,b):w.is2(et)?t=this.measureDataBarsCell(B,w,H,b):(b=this.measureCommonCell(B,w,H,b,e),t=b.width,r=Math.max(b.height,r)),e=Math.max(e,t)}g[c]=e}if(S+r>R.bottom-n&&(r=R.bottom-n-S,r<1.2&&(r=1.2)),p.push(r),S+=r,S>=R.bottom-n)break}p.push(e)}let x=R.x;c=0;for(d of a){if(!A.getVisible(d,B.report)){c++;continue}let r=g[c];if(F==Ct.StiDashboardExportFormat.Excel&&(r*=1.1),S=R.y,F!=Ct.StiDashboardExportFormat.Data&&(u=new M(x,S,r,t),this.renderHeader(T,u,B,d,H,F,I),S+=u.height),S<=R.bottom-n){var D=tt.minDataColumnValue(d,o,c),C=tt.maxDataColumnValue(d,o,c),y;let e=0;for(y of o.rows){var E=Math.ceil(p[e]);let t=y[c];null!==t&&void 0!==t&&t.stimulsoft().is(P)&&(t=t==P.Line?d.textFormat.format(e+1):k.getSystemVariable(null===t||void 0===t?void 0:t.stimulsoft().as(P),e+1));var v=new M(x,S,r,E);if(this.renderCell(T,v,B,y,a.select(t=>t.key),d,H,t,D,C,1==(1&e),F,I),S+=E,e++,S>=R.bottom-n)break}}F!=Ct.StiDashboardExportFormat.Data&&!I&&i&&(u=new M(x,S,r,n),this.renderFooter(T,u,B,d,c,H,o)),x+=r,c++}})}static measureSparklinesCell(t,e){return Math.max(e,80*t)}static measureHeader(t,e,r){return w.measureHeader(t,e).width*r}static measureFooter(t,e,r,o){var o=Y.formatBasedOnColumnType(t,e,o);return w.measureCell(o,t.footerFont).width*r}static measureIndicatorCell(t,e,r,o){var e=e.as(rt),o=z.getCellText(t,e,Z.tryToNullableNumber(o)),r=w.measureCell(o,t.font).width*r;return r*=1.25}static measureDataBarsCell(t,e,r,o){var o=Y.formatBasedOnColumnType(t,e,o);let a=w.measureCell(o,t.font).width*r;return e.horAlignment!=K.Center&&(a*=2),a}static measureCommonCell(t,e,r,o,a){var o=Y.formatBasedOnColumnType(t,e,o);if(U.isImage(o))return new n(a,0);let i=w.measureCell(o,t.font);return i.width*=r,i.height*=r,i}static renderHeader(t,e,r,o,a,i,n){var l=null!=o?f.getLabel(o):"",s=F.isNullOrWhiteSpace(l)?`${r.name}_Column`:p.correctName(l),h=mt.getTableStyle(r),d=0!=r.columns.indexOf(o)&&e.left<t.width&&!n,m=r.columns.indexOf(o)!=r.columns.length-1&&e.right<=t.width&&!n,u=(d?J.Left:J.None)|(m?J.Right:J.None),d=n?lt.black:this.getHeaderForeColor(r),m=n?lt.transparent:h.headerBackColor,n=n?new _("Arial",10,N.Bold):r.headerFont;let g=new j(e);g.name=s,g.allowHtmlTags=!0,g.autoWidth=!1,g.horAlignment=x.Center,g.vertAlignment=b.Center,g.wordWrap=!1,g.border=new it(u,h.lineColor,1,Q.Solid),g.brush=new X(m),g.font=nt.Table.Font.getGdiFont(a,null,n),g.text=l,g.textFormat=null!=o.textFormat?o.textFormat.clone():null,g.textBrush=new X(d),g.componentPlacement=`h.${r.name}`,t.components.add(g)}static renderFooter(t,e,r,o,a,i,n){var l=mt.getTableStyle(r),s=this.getFooterForeColor(r),h=l.footerColor,l=r.footerFont,n;let d="";o.showTotalSummary&&(n=tt.calculateTotal(o,a,n),d=o.summaryType==H.Count?Math.trunc(n).toString():Y.formatBasedOnColumnType(r,o,n));let m=x.Right;o.summaryAlignment==K.Left?m=x.Left:o.summaryAlignment==K.Center&&(m=x.Center);let u=new j(e);u.name=`${r.name}_FooterCell`,u.border=this.getBorderSides(t,e,r,o,J.All),u.brush=new X(h),u.excelDataValue=d,u.font=nt.Table.Font.getGdiFont(i,null,l),u.horAlignment=m,u.vertAlignment=b.Center,u.text=d,u.textBrush=new X(s),u.textFormat=null!=o.textFormat?o.textFormat.clone():null,u.wordWrap=!1,u.componentPlacement=`f.${r.name}`,t.components.add(u)}static renderCell(t,e,r,o,a,i,n,l,s,h,d,m,u){var g=mt.getTableStyle(r),p=this.getForeColor(r,i,g,d),c=w.getBackgroundColor(g,null!=d&&d),c=bt.processBackColor(c,i.key,r,o,a);u?this.renderTextCell(t,e,r,o,a,i,n,l,J.None,lt.black,lt.transparent,m,!0):i.is2(et)||i.is2(ot)||i.is2(rt)||i.is2(T)?this.renderGraphicCell(t,e.clone(),r,o,a,i,n,l,s,h,c,g,null!=d&&d,m):i.is2($)?this.drawColorScaleColumn(t,e.clone(),r,o,a,i,n,l,s,h,g,m):U.isImage(l)?this.renderImageCell(t,e.clone(),r,i,l,c,m):"boolean"==typeof l?this.renderBoolCell2(t,e.clone(),r,o,a,i,n,l,p,c,m):this.renderTextCell(t,e.clone(),r,o,a,i,n,l,J.All,p,c,m,!1)}static renderGraphicCell(r,o,a,t,e,i,n,l,s,h,d,m,u,g){let p="",c=o,S=this.getForeColor(a,i,m,u),f=new ut(gt.UTF8);if(f.indentation=-1,f.writeStartElement("svg"),f.writeAttributeString("version","1.1"),f.writeAttributeString("baseProfile","full"),f.writeAttributeString("xmlns","http://www.w3.org/2000/svg"),f.writeAttributeString("xmlns:xlink","http://www.w3.org/1999/xlink"),f.writeAttributeString("xmlns:ev","http://www.w3.org/2001/xml-events"),f.writeAttributeString("height",St.toUnits(o.height)),f.writeAttributeString("width",St.toUnits(o.width)),f.writeStartElement("rect"),f.writeAttributeString("x","0"),f.writeAttributeString("y","0"),f.writeAttributeString("width",St.toUnits(o.width)),f.writeAttributeString("height",St.toUnits(o.height)),f.writeAttributeString("style",St.writeFillBrush(f,d,o)),f.writeEndElement(),i.is2(ot)){let t=R.castToArray(l);var w=null===t||void 0===t?void 0:t.stimulsoft().toList().select(t=>null==t?void 0:t.stimulsoft().toNumber()),b=i.as(ot);let e=new B(o.clone());return e.values=w,e.positiveColor=b.allowCustomColors?b.positiveColor:m.cellSparkline,e.negativeColor=b.allowCustomColors?b.negativeColor:m.cellWinLossNegative,e.showFirstLastPoints=b.showFirstLastPoints,e.showHighLowPoints=b.showHighLowPoints,e.type=b.type,e.brush=new X(d),e.componentPlacement=`d.${a.name}`,g==Ct.StiDashboardExportFormat.Html&&r.components.clear(),void r.components.add(e)}var w=new ft(f);let x=J.None,D="GraphicCell";var b=new M(0,0,o.width,o.height),C,u;let y=i.horAlignment;if(i.is2(et)?(pt.draw(w,b,a,i,n,Z.tryToNumber(l),s,h,u,!1,!1),g!=Ct.StiDashboardExportFormat.Data&&(c=pt.calculateTextRect(o.clone(),i),c.inflate(2,2)),p=Y.formatBasedOnColumnType(a,i,l),S=pt.getForeColor(a,i,m,u,!1),Z.tryToNumber(l)<0&&L.isNegativeInRed(i.textFormat)&&(S=StiOptions.Engine.negativeColor),S=bt.processForeColor(S,i.key,a,t,e),x=J.Right,D="DataBarsCell"):i.is2(rt)?(z.draw(w,b,a,i,n,Z.tryToNullableNumber(l),m,!1),c=z.calculateTextRect(o.clone(),i),p=z.getCellText(a,i,Z.tryToNullableNumber(l)),S=z.getColor(i,Z.tryToNullableNumber(l),m),S=bt.processForeColor(S,i.key,a,t,e),x=J.None,D="IndicatorCell"):i.is2(T)&&(E.draw(w,b,a,i,n,Z.tryToNullableNumber(l),s,h,u,!1,!1),g!=Ct.StiDashboardExportFormat.Data&&(c=E.calculateTextRect(a,o.clone(),i),c.inflate(2,2)),p=E.getCellText(a,i,Z.tryToNullableNumber(l)),S=pt.getForeColor(a,i,m,u,!1),S=bt.processForeColor(S,i.key,a,t,e),x=J.None,D="BubbleCell",null!=(u=i.stimulsoft().as(v))&&(u.horAlignment==K.Center&&g!=Ct.StiDashboardExportFormat.Data&&(p=null),u.horAlignment==K.Left&&(y=K.Right),u.horAlignment==K.Right&&(y=K.Left))),f.writeFullEndElement(),f.flush(),g!=Ct.StiDashboardExportFormat.Data&&!i.is2(ot)){let t=new G(o);t.name=`${a.name}_${D}`,t.border=this.getBorderSides(r,o.clone(),a,i,J.All),t.stretch=!0,t.aspectRatio=i.is2(rt)||i.is2(T);var o=f.textWriter.getStringBuilder().toString();t.image=ct.stringToImage(Dt.System.Convert.toBase64String(o)),t.brush=new X(d),t.horAlignment=y,r.components.add(t)}g!=Ct.StiDashboardExportFormat.Data&&F.isNullOrEmpty(p)||this.renderTextCell(r,c,a,t,e,i,n,l,x,S,d,g,!1,!1)}static drawColorScaleColumn(t,e,r,o,a,i,n,l,s,h,d,m){var u=i.as($),g=this.getForeColor(r,i,d,!1),g=bt.processForeColor(g,i.key,r,o,a),u=wt.getScaleColor(Z.tryToNumber(l),s,h,d,u.minimumColor,u.maximumColor),u=bt.processBackColor(u,i.key,r,o,a);this.renderTextCell(t,e.clone(),r,o,a,i,n,l,J.All,g,u,m,!1)}static renderBoolCell2(e,r,o,a,i,n,t,l,s,h,d){if(d==Ct.StiDashboardExportFormat.Data)this.renderTextCell(e,r.clone(),o,a,i,n,t,l,J.None,s,h,d,!1);else{s=bt.processForeColor(s,n.key,o,a,i),h=bt.processBackColor(h,n.key,o,a,i);var i=l?u.CheckRectangle:u.NoneRectangle;let t=new m(r);t.name=`${o.name}_Cell`,t.border=this.getBorderSides(e,r,o,n,J.All),t.contourColor=lt.transparent,t.textBrush=new X(s),t.brush=new X(h),t.checkStyleForTrue=i,t.checkStyleForFalse=u.NoneRectangle,t.checkedValue=i!=u.NoneRectangle,t.excelDataValue=l.toString(),t.componentPlacement=`d.${o.name}`,e.components.add(t)}}static renderTextCell(t,e,r,o,a,i,n,l,s,h,d,m,u,g=!0){let p=Y.formatBasedOnColumnType(r,i,l),c=u?new _("Arial",10):r.font;i.is(I)&&i.showHyperlink&&(c=new _(c.fontFamily.name,c.size,c.style|N.Underline));var u=bt.processFontStyle(c,i.key,r,o,a),S;if(c=new _(c.fontFamily.name,c.size,u),Z.tryToNumber(l)<0&&L.isNegativeInRed(i.textFormat)&&(h=StiOptions.Engine.negativeColor),i.is(ot)){let t=R.castToArray(l);var l=null===t||void 0===t?void 0:t.stimulsoft().toList().select(t=>t.toString());p=F.join(" ",l)}h=bt.processForeColor(h,i.key,r,o,a),d=bt.processBackColor(d,i.key,r,o,a);let f=W.convert(i.horAlignment);i.is(T)&&(f=x.Right);let w=new j(e);w.name=`${r.name}_Cell`,w.border=this.getBorderSides(t,e.clone(),r,i,s),w.brush=new X(d),w.excelDataValue=null!=i.textFormat&&i.textFormat.is(q)?null:p,w.font=nt.Table.Font.getGdiFont(n,null,c),w.horAlignment=f,w.vertAlignment=b.Center,w.text=p,w.textBrush=new X(h),w.textFormat=null!=i.textFormat?i.textFormat.clone():null,w.wordWrap=g,w.componentPlacement=`d.${r.name}`,t.components.add(w)}static renderImageCell(t,e,r,o,a,i,n){if(n==Ct.StiDashboardExportFormat.Data)return;var a=U.getImageFromObject(a);if(null==a)return;let l=new G(e);l.name=`${r.name}_Cell`,l.border=this.getBorderSides(t,e.clone(),r,o,J.All),l.brush=new X(i),l.stretch=!0,l.aspectRatio=!1,l.imageToDraw=a,t.components.add(l)}static renderBoolCell(t,e,r,o,a,i,n,l,s,h,d){if(d==Ct.StiDashboardExportFormat.Data)return void this.renderTextCell(t,e.clone(),r,o,a,i,n,l,s,null,h,d,!1);var d=0!=r.columns.indexOf(i),i=r.columns.indexOf(i)!=r.columns.length-1,d=(d?J.Left:J.None)|(i?J.Right:J.None),i=mt.getTableStyle(r);let m=new G(e);m.name=`${r.name}_Cell`,m.border=s?new it(d,i.lineColor,1,Q.Solid):new it(J.None,lt.transparent,0,Q.None),m.brush=new X(h),m.horAlignment=K.Center,m.vertAlignment=b.Center,t.components.add(m)}static getForeColor(t,e,r,o){if(!lt.transparent.equals(e.foreColor))return e.foreColor;if(e.is(I)&&e.showHyperlink)return i.get("165dc8");var t=a.getForeColor(t,t.foreColor);if(!lt.transparent.equals(t))return t;return null!=r?o?r.alternatingCellForeColor:r.cellForeColor:nt.Table.Font.Color}static getHeaderForeColor(t){if(!lt.transparent.equals(t.headerForeColor))return t.headerForeColor;var e;return mt.getTableStyle(t).headerForeColor}static getFooterForeColor(t){if(!lt.transparent.equals(t.footerForeColor))return t.footerForeColor;var e;return mt.getTableStyle(t).footerForeground}static getBorderSides(t,e,r,o,a){var i=mt.getTableStyle(r),n=0!=(a&J.Left)&&0!=r.columns.indexOf(o)&&e.left<t.width,t=0!=(a&J.Right)&&r.columns.indexOf(o)!=r.columns.length-1&&e.right<=t.width,n=(n?J.Left:J.None)|(t?J.Right:J.None),t=n!=J.None?1:0,i=n!=J.None?i.lineColor:lt.transparent;return new it(n,i,t,Q.Solid)}static fitByWidth(t,e){let r=0,o=t.getComponentsList().stimulsoft().toList();0<o.length&&(r=o.max(t=>t.right));let a=e.width/r;t.getComponentsList().forEach(t=>{t.left*=a,t.width*=a})}}t.StiTableElementExportTool=xt}(o=Ct.Tools||(Ct.Tools={}))}(Stimulsoft=Stimulsoft||{}),function(r){var t,e,o,a;e=t=r.Dashboard||(r.Dashboard={}),e=o=e.Export||(e.Export={}),function(t){var h=r.System.Collections.List,d=r.Data.Helpers.StiExpressionHelper,m=r.Base.Helpers.StiValueHelper,u=r.Report.Dashboard.StiElementDataCache,g=r.Report.StiParserType,p=r.Report.Dashboard.Styles.StiDashboardStyleHelper,c=r.Base.Drawing.StiSolidBrush,S=r.Report.Components.StiText,f=r.Dashboard.Helpers.StiAutoSizeHtmlTextHelper,w=r.Dashboard.Components.Text.StiTextElement,b=r.Report.Dashboard.StiReportParser;class e extends t.StiElementExportTool{render(i,n,l,s){return __awaiter(this,void 0,void 0,function*(){if(this.renderEmptyDataMessage(i,n,l.clone(),s))return;let e=i.as(w),r="";if(StiOptions.Engine.dashboardTextElementExpressionParser==g.ReportParser||d.isTimeExpression(e.text))r=yield b.parseAsync(e.text,e,!1);else if(e.isQuerable){let t=yield u.tryToGetOrCreate(e);var o=new h(null===t||void 0===t?void 0:t.rows.firstOrDefault()).select(t=>m.tryToString(t)).toList();null!=o&&(r=d.replaceExpressionBlocksByValues(e.text,o))}else r=e.text;var t=f.measure(null,l.clone(),r,e),o=t.width>l.width?l.width/t.width:1,t=t.height>l.height?l.height/t.height:1,t=Math.min(Math.abs(o),Math.abs(t));let a=new S(l);a.name=`${i.name}_Content`,a.allowHtmlTags=!0,a.vertAlignment=e.vertAlignment,a.horAlignment=e.horAlignment,a.text=this.changeFontSize(r,t),a.font=e.getFont(),a.textBrush=new c(p.getForeColor(e)),n.components.add(a)})}changeFontSize(t,e){if(null==t||!t.stimulsoft().startsWith("<font ")||t.indexOf(' size="')<0)return t;var r=t.indexOf(' size="')+7;let o=t.substring(r);o=o.substring(0,o.indexOf('"'));let a=o.stimulsoft().toNumber();return null==a&&(a=12),a=Math.ceil(a*e*10)/10,t.substring(0,r)+a.toString().replace(",",".")+t.substring(r+o.length)}}t.StiTextElementExportTool=e}(a=e.Tools||(e.Tools={}))}(Stimulsoft=Stimulsoft||{}),function(a){var t,e,r,o;e=t=a.Dashboard||(a.Dashboard={}),e=r=e.Export||(e.Export={}),function(t){var r=a.Report.Dashboard.IStiTreeViewBoxElement,o=a.Dashboard.Components.TreeView.StiTreeViewHelper;class e extends t.StiComboBoxElementExportTool{render(t,e,r,o){const a=Object.create(null,{render:{get:()=>super.render}});return __awaiter(this,void 0,void 0,function*(){return yield a.render.call(this,t,e,r,o)})}getValuesCount(t,e){var t=t.as(r),t=o.fetchItems(e,t.showBlanks);return null!=t?t.length:0}}t.StiTreeViewBoxElementExportTool=e}(o=e.Tools||(e.Tools={}))}(Stimulsoft=Stimulsoft||{}),function(e){var t,r,o,a;r=t=e.Dashboard||(e.Dashboard={}),r=o=r.Export||(r.Export={}),function(t){var n=e.System.DateTime,l=e.Dashboard.Drawing.Helpers.StiLocHelper,a=e.Base.Drawing.StiPenStyle,i=e.Base.Drawing.StiSolidBrush,s=e.System.Drawing.Color,h=e.Report.Components.StiShapeDirection,d=e.Report.Components.StiTriangleShapeType,m=e.Report.Components.StiShape,u=e.Base.Dashboard.StiElementConsts,g=e.Dashboard.Components.TreeView.StiTreeViewHelper,p=e.Report.Dashboard.StiElementDataCache,o=e.Data.Engine.StiDataFilterCondition,c=e.Report.Components.StiCheckStyle,S=e.System.Drawing.Rectangle,f=e.Report.Dashboard.IStiTreeViewElement;class w extends t.StiListBoxElementExportTool{render(t,e,r,o){const a=Object.create(null,{render:{get:()=>super.render}});return __awaiter(this,void 0,void 0,function*(){return yield a.render.call(this,t,e,r,o)})}getCheckStyle(e,r){let t=e;if(!t.userFilters.any())return c.CheckRectangle;if(t.userFilters.any(t=>t.condition==o.IsFalse))return c.NoneRectangle;if(null!=r.items){let t=r.items.select(t=>this.getCheckStyle(e,t));if(t.all(t=>t==c.CheckRectangle))return c.CheckRectangle;if(t.all(t=>t==c.NoneRectangle))return c.NoneRectangle;return c.DotRectangle}if(t.userFilters.any(t=>t.condition==o.EqualTo&&t.value==r.toString()))return c.CheckRectangle;return c.NoneRectangle}renderItems(o,a,i){return __awaiter(this,void 0,void 0,function*(){var t=yield p.tryToGetOrCreate(i);if(null==t)return;var e=i.as(f);let r=g.fetchItems(t,e.showBlanks);var t=null===r||void 0===r?void 0:r.select(t=>null==t?"":null!=t.key&&t.key instanceof n?t.key.toShortDateString():t.toString()),e=null===r||void 0===r?void 0:r.select(t=>this.getCheckStyle(i,t));this.renderItems2(o,a.clone(),i,t,e)})}renderItem(t,e,r,o,a,i,n){o!=l.locAll&&(w.renderExpander(t,e.clone(),r),e.x+=u.ListBox.CheckBoxWidth/2,e.width-=u.ListBox.CheckBoxWidth/2),super.renderItem(t,e.clone(),r,o,a,i,n)}static renderExpander(t,e,r){e=new S(e.x,e.y+e.height/3,u.ListBox.CheckBoxWidth/3,e.height/3);let o=new m(e);o.name=`${r.name}_ItemExpander`,o.shapeType=new d(h.Right),o.brush=new i(s.dimGray),o.style=a.None,t.components.add(o)}}t.StiTreeViewElementExportTool=w}(a=r.Tools||(r.Tools={}))}(Stimulsoft=Stimulsoft||{});;var Stimulsoft;
  (function (Stimulsoft) {
      var Reflection;
      (function (Reflection) {
          class StiTypesHelper {
              static run(type, namespace) {
                  if (type === undefined) {
                      StiTypesHelper.run(Stimulsoft, "Stimulsoft");
                      return;
                  }
                  namespace = namespace.stimulsoft().replaceAll("Stimulsoft.System", "System");
                  for (let name in type) {
                      if (typeof type[name] == "function") {
                          type[name].ssTypeName = name;
                          type[name].ssNamespace = namespace;
                      }
                      else if (typeof type[name] == "object") {
                          StiTypesHelper.run(type[name], namespace + "." + name);
                      }
                  }
              }
          }
          Reflection.StiTypesHelper = StiTypesHelper;
      })(Reflection = Stimulsoft.Reflection || (Stimulsoft.Reflection = {}));
  })(Stimulsoft || (Stimulsoft = {}));
  Stimulsoft.Reflection.StiTypesHelper.run();
  ;return{Stimulsoft,StiOptions};});