text: /*! 
  * DevExtreme (Charts)
  * Version: 15.1.6
  * Build date: Aug 14, 2015
  *
  * Copyright (c) 2012 - 2015 Developer Express Inc. ALL RIGHTS RESERVED
  * EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml
  */
  "use strict";if(!DevExpress.MOD_VIZ_CHARTS){if(!DevExpress.MOD_VIZ_CORE)throw Error("Required module is not referenced: viz-core");(function(n,t){function s(n){n.margin=u(n.margin)?n.margin:{},typeof n.margin=="number"?(n.margin=n.margin>=0?n.margin:r,n.margin={top:n.margin,bottom:n.margin,left:n.margin,right:n.margin}):(n.margin.top=n.margin.top>=0?n.margin.top:r,n.margin.bottom=n.margin.bottom>=0?n.margin.bottom:r,n.margin.left=n.margin.left>=0?n.margin.left:r,n.margin.right=n.margin.right>=0?n.margin.right:r)}function h(n){n.verticalAlignment=(n.verticalAlignment||"").toLowerCase(),n.horizontalAlignment=(n.horizontalAlignment||"").toLowerCase(),n.verticalAlignment!=="top"&&n.verticalAlignment!=="bottom"&&(n.verticalAlignment="top"),n.horizontalAlignment!=="left"&&n.horizontalAlignment!=="center"&&n.horizontalAlignment!=="right"&&(n.horizontalAlignment="center")}function o(n,t,i){var r=this;r.update(t),r.renderer=n,r.titleGroup=i}var f=t.viz,e=f.core.utils,u=t.utils.isDefined,r=10;f.charts.ChartTitle=o,o.prototype={dispose:function(){var n=this;n.renderer=null,n.clipRect=null,n.title=null,n.innerTitleGroup=null,n.titleGroup=null,n.options=null},update:function(n){var t=this;n&&(h(n),t.horizontalAlignment=n.horizontalAlignment,t.verticalAlignment=n.verticalAlignment,s(n),t.margin=n.margin,t.options=n)},_setBoundingRect:function(){var t=this,r=t.options,i=t.changedMargin||t.margin,n;t.innerTitleGroup&&(n=t.innerTitleGroup.getBBox(),n.height+=i.top+i.bottom,n.width+=i.left+i.right,n.x-=i.left,n.y-=i.top,u(r.placeholderSize)&&(n.height=r.placeholderSize),t.boundingRect=n)},draw:function(n){var t=this,i=t.options,r=t.renderer;return i.text?(n&&t.setSize(n),t.changedMargin=null,t.innerTitleGroup?t.innerTitleGroup.clear():(t.innerTitleGroup=r.g(),t.clipRect=t.createClipRect(),t.titleGroup&&t.clipRect&&t.titleGroup.attr({clipId:t.clipRect.id})),t.innerTitleGroup.append(t.titleGroup),t.title=r.text(i.text,0,0).css(e.patchFontOptions(i.font)).attr({align:t.horizontalAlignment}).append(t.innerTitleGroup),t.title.text=i.text,t._correctTitleLength(),t._setClipRectSettings(),t):t},_correctTitleLength:function(){var n=this,t=n.title.text,i=n.changedMargin||n.options.margin,r;n.title.attr({text:t}),n._setBoundingRect(),r=n.title.applyEllipsis(n._width-i.left-i.right),r&&n.title.setTitle(t),n._setBoundingRect()},changeSize:function(t){var i=this,r=n.extend(!0,{},i.margin);return r.top+r.bottom<t.height?(i.innerTitleGroup&&(i.options._incidentOccured("W2103"),i.innerTitleGroup.dispose(),i.innerTitleGroup=null),i.clipRect&&(i.clipRect.dispose(),i.clipRect=null)):t.height>0&&(e.decreaseGaps(r,["top","bottom"],t.height),t.height&&(i.changedMargin=r)),i._correctTitleLength(),i._setBoundingRect(),i._setClipRectSettings(),i},getLayoutOptions:function(){var t=this.options,n=this.innerTitleGroup?this.boundingRect:{width:0,height:0,x:0,y:0};return n.verticalAlignment=t.verticalAlignment,n.horizontalAlignment=t.horizontalAlignment,n.cutLayoutSide=t.verticalAlignment,n},getBBox:function(){var t=n.extend({},this.getLayoutOptions());return t.x=this._x,t.y=this._y,t},setSize:function(n){return this._width=n.width||this._width,this},shift:function(n,t){var i=this,r=i.getLayoutOptions();return i._x=n,i._y=t,n-=r.x,t-=r.y,i.innerTitleGroup&&i.innerTitleGroup.move(n,t),i.clipRect&&i.clipRect.attr({translateX:n,translateY:t}),i},createClipRect:function(){if(u(this.options.placeholderSize))return this.renderer.clipRect(0,0,0,0)},_setClipRectSettings:function(){var n=this.getLayoutOptions(),t=this.clipRect;t&&t.attr({x:n.x,y:n.y,width:n.width,height:n.height})}}})(jQuery,DevExpress),function(n,t,i){function u(n,i,r){var u={value:n,valueText:t.formatHelper.format(n,i.format,i.precision)||""};return r&&(u.min=r.min,u.max=r.max),u}var r=t.viz.core.utils.map;t.viz.charts.axes={},t.viz.charts.axes.constants={logarithmic:"logarithmic",discrete:"discrete",numeric:"numeric",left:"left",right:"right",top:"top",bottom:"bottom",center:"center",canvasPositionPrefix:"canvas_position_",canvasPositionTop:"canvas_position_top",canvasPositionBottom:"canvas_position_bottom",canvasPositionLeft:"canvas_position_left",canvasPositionRight:"canvas_position_right",canvasPositionStart:"canvas_position_start",canvasPositionEnd:"canvas_position_end",horizontal:"horizontal",vertical:"vertical",halfTickLength:4,convertTicksToValues:function(n){return r(n||[],function(n){return n.value})},convertValuesToTicks:function(n){return r(n||[],function(n){return{value:n}})},validateOverlappingMode:function(n){return n!=="ignore"?"enlargeTickInterval":"ignore"},formatLabel:function(t,i,r){var f=u(t,i,r);return n.isFunction(i.customizeText)?i.customizeText.call(f,f):f.valueText},formatHint:function(t,r,f){var e=u(t,r,f);return n.isFunction(r.customizeHint)?r.customizeHint.call(e,e):i}}}(jQuery,DevExpress),function(n,t,i){var l=t.viz,a=l.core,c=l.charts.axes,o=c.constants,v=Math.abs,y=n.extend,h=o.canvasPositionPrefix,s=o.top,f=o.bottom,u=o.left,e=o.right,r=o.center;c.xyAxes={},c.xyAxes.linear={_getSharpParam:function(n){return this._isHorizontal^n?"h":"v"},_createAxisElement:function(){var n=this._axisPosition,t=this._getCanvasStartEnd(),i=this._isHorizontal?[t.start,n,t.end,n]:[n,t.start,n,t.end];return this._renderer.path(i,"line")},_getTranslatedCoord:function(n,t){return this._translator.translate(n,t)},_getCanvasStartEnd:function(){return{start:this._translator.translateSpecialCase(o.canvasPositionStart),end:this._translator.translateSpecialCase(o.canvasPositionEnd)}},_getScreenDelta:function(){return v(this._translator.translateSpecialCase(o.canvasPositionStart)-this._translator.translateSpecialCase(o.canvasPositionEnd))},_initAxisPositions:function(){var n=this,t=n._options.position,i=0;n.delta&&(i=n.delta[t]||0),n._axisPosition=n._additionalTranslator.translateSpecialCase(h+t)+i},_drawTitle:function(){var n=this,i=n._options,t=i.title,u={opacity:t.opacity,align:r};t.text&&n._axisTitleGroup&&(n._title=n._renderer.text(t.text,0,0).css(a.utils.patchFontOptions(t.font)).attr(u).append(n._axisTitleGroup))},_adjustConstantLineLabels:function(){var t=this,st=t._options,ft=t._isHorizontal,et=t._constantLines,rt=t._constantLineLabels,k,ot,o,d,g,n,y,a,b,p=ft?{top:0,bottom:0}:{left:0,right:0},c,l,nt,tt,ut,v,w,it=0;if(rt!==i||et!==i){for(b=0;b<rt.length;b++)if(y=a=0,d=st.constantLines[b],c=d.paddingTopBottom,l=d.paddingLeftRight,g=d.label,nt=g.verticalAlignment,tt=g.horizontalAlignment,ut=g.position==="inside",k=rt[b],k!==null){if(ot=et[b],n=k.getBBox(),o=ot.getBBox(),v=n.height,w=n.width,ft)if(ut){tt===u?y-=l:y+=l;switch(nt){case r:a+=o.y+o.height/2-n.y-v/2;break;case f:a+=o.y+o.height-n.y-v-c;break;default:a+=o.y-n.y+c}}else nt===f?(it=t.delta&&t.delta[f]||0,a+=c-n.y+t._additionalTranslator.translateSpecialCase(h+f)+it,p[f]<v+c&&(p[f]=v+c)):(it=t.delta&&t.delta[s]||0,a-=c+n.y+v-t._additionalTranslator.translateSpecialCase(h+s)-it,p[s]<c+v&&(p[s]=c+v));else if(ut){switch(tt){case r:y+=o.x+w/2-n.x-w/2;break;case e:y-=l;break;default:y+=l}a+=nt===f?o.y-n.y+c:o.y-n.y-v-c}else a+=o.y+o.height/2-n.y-v/2,tt===e?(y+=l,p[e]<l+w&&(p[e]=l+w)):(y-=l,p[u]<l+w&&(p[u]=l+w));k.move(y,a)}t.padding=p}},_checkAlignmentConstantLineLabels:function(n){var o=n.position,t=(n.verticalAlignment||"").toLowerCase(),i=(n.horizontalAlignment||"").toLowerCase();this._isHorizontal?o==="outside"?(t=t===f?f:s,i=r):(t=t===r?r:t===f?f:s,i=i===u?u:e):o==="outside"?(t=r,i=i===u?u:e):(t=t===f?f:s,i=i===e?e:i===r?r:u),n.verticalAlignment=t,n.horizontalAlignment=i},_getConstantLineLabelsCoords:function(n,t){var i=this,o=i._additionalTranslator,f=r,s=n,c=n;i._isHorizontal?c=o.translateSpecialCase(h+t.verticalAlignment):s=o.translateSpecialCase(h+t.horizontalAlignment);switch(t.horizontalAlignment){case u:f=!i._isHorizontal&&t.position==="inside"?u:e;break;case r:f=r;break;case e:f=!i._isHorizontal&&t.position==="inside"?e:u}return{x:s,y:c,align:f}},_getAdjustedStripLabelCoords:function(n,t,i){var h=0,o=0,v=n.label.horizontalAlignment,c=n.label.verticalAlignment,l=t.getBBox(),a=i.getBBox();return v===u?h+=n.paddingLeftRight:v===e&&(h-=n.paddingLeftRight),c===s?o+=a.y-l.y+n.paddingTopBottom:c===r?o+=a.y+a.height/2-l.y-l.height/2:c===f&&(o-=n.paddingTopBottom),{x:h,y:o}},_adjustTitle:function(){var t=this,v=t._options,p=v.position,y=t._title,s=v.title.margin,n,i,e,c=t._translator.translateSpecialCase(h+r),w=t._axisElementsGroup,l,a=t._axisPosition,o;y&&w&&(i=y.getBBox(),n=w.getBBox(),o=n.isEmpty,l=i.height,t._isHorizontal?e=p===f?{y:(o?a:n.y+n.height)-i.y+s,x:c}:{y:(o?a:n.y)-l-i.y-s,x:c}:(e=p===u?{x:(o?a:n.x)-l-i.y-s,y:c}:{x:(o?a:n.x+n.width)+l+i.y+s,y:c},e.rotate=v.position===u?270:90),y.attr(e))},coordsIn:function(n,t){var i=this.getBoundingRect();return n>=i.x&&n<=i.x+i.width&&t>=i.y&&t<=i.y+i.height},_getTicksOptions:function(){var n=this._options;return{base:n.type===o.logarithmic?n.logarithmBase:i,tickInterval:this._translator.getBusinessRange().stubData?null:n.tickInterval,gridSpacingFactor:n.axisDivisionFactor,incidentOccured:n.incidentOccured,setTicksAtUnitBeginning:n.setTicksAtUnitBeginning,showMinorTicks:n.minorTick.visible||n.minorGrid.visible,minorTickInterval:n.minorTickInterval,minorTickCount:n.minorTickCount}},_getOverlappingBehaviorOptions:function(){var n=this,t=n._options,r=function(){return""},i=t.label.overlappingBehavior?y({},t.label.overlappingBehavior):null;return i&&(n._isHorizontal||(i.mode=o.validateOverlappingMode(i.mode)),i.mode!=="rotate"&&(i.rotationAngle=0)),n._translator.getBusinessRange().stubData||(r=function(n,i){return o.formatLabel(n,i,{min:t.min,max:t.max})}),{hasLabelFormat:n._hasLabelFormat,labelOptions:t.label,overlappingBehavior:i,isHorizontal:n._isHorizontal,textOptions:n._textOptions,textFontStyles:n._textFontStyles,textSpacing:t.label.minSpacing,getText:r,renderText:function(t,i,r,u){return n._renderer.text(t,i,r,u).append(n._renderer.root)},translate:function(t,i){return i?n._additionalTranslator.translate(t):n._translator.translate(t)},isInverted:n._translator.getBusinessRange().invert}},_getSpiderCategoryOption:n.noop,_getMinMax:function(){return{min:this._options.min,max:this._options.max}},_getStick:function(){return!this._options.valueMarginsEnabled},_getStripLabelCoords:function(n,t,i){var a=this,v=a._additionalTranslator,y=a._isHorizontal,o=y?r:u,c,l;return y?(n.horizontalAlignment===r?(c=t+(i-t)/2,o=r):n.horizontalAlignment===u?(c=t,o=u):n.horizontalAlignment===e&&(c=i,o=e),l=v.translateSpecialCase(h+n.verticalAlignment)):(c=v.translateSpecialCase(h+n.horizontalAlignment),o=n.horizontalAlignment,n.verticalAlignment===s?l=t:n.verticalAlignment===r?l=i+(t-i)/2:n.verticalAlignment===f&&(l=i)),{x:c,y:l,align:o}},_getTranslatedValue:function(n,t,i){return{x:this._translator.translate(n,i),y:t}},_getSkippedCategory:function(){var n=this,i=n._options,t=n._translator.getVisibleCategories()||n._translator.getBusinessRange().categories,r;return!t||!n._tickOffset||i.valueMarginsEnabled||(r=i.inverted?t[0]:t[t.length-1]),r}}}(jQuery,DevExpress),function(n,t,i){function y(n){var t;return n=f.normalizeAngle(n),n>=315&&n<=360||n<45&&n>=0?t=1:n>=45&&n<135?t=2:n>=135&&n<225?t=3:n>=225&&n<315&&(t=4),t}var u=t.viz,s=u.core,f=t.utils,r=u.charts.axes.constants,c=s.utils.map,l=Math,h=l.abs,e=l.round,a=n.extend,v=n.noop,o=90;u.charts.axes.polarAxes={},u.charts.axes.polarAxes.circular={_overlappingBehaviorType:"circular",_createAxisElement:function(){var n=this._additionalTranslator;return this._renderer.circle(n.getCenter().x,n.getCenter().y,n.getRadius())},_setBoundingRect:function(){this.boundingRect={width:0,height:0}},_getTicksOptions:u.charts.axes.xyAxes.linear._getTicksOptions,_getOverlappingBehaviorOptions:function(){var t=this,i=t._additionalTranslator,f=i.getStartAngle(),n=u.charts.axes.xyAxes.linear._getOverlappingBehaviorOptions.call(t),e=t._translator,o=t._options.label.indentFromAxis||0;return n.overlappingBehavior&&(n.overlappingBehavior={mode:r.validateOverlappingMode(n.overlappingBehavior.mode)}),n.translate=function(n){return s.utils.convertPolarToXY(i.getCenter(),f,e.translate(n),i.translate(r.canvasPositionBottom))},n.addMinMax={min:!0},n.isInverted=e.getBusinessRange().invert,n.circularRadius=i.getRadius()+o,n.circularStartAngle=n.circularEndAngle=f,n.isHorizontal=!1,n},_getSpiderCategoryOption:function(){return this._options.firstPointOnStartAngle},_getMinMax:function(){var n=this._options;return{min:i,max:f.isNumber(n.period)&&n.argumentType===r.numeric?n.period:i}},_getStick:function(){return this._options.firstPointOnStartAngle||this._options.type!==r.discrete},measureLabels:function(){var n=this,t=n._options,u=t.label.indentFromAxis||0,f=t.visible?t.width:0,i;return!n._axisElementsGroup||!n._options.label.visible?{height:f,width:f}:(n._updateTickManager(),i=n._tickManager.getMaxLabelParams(),{height:i.height+u+r.halfTickLength,width:i.width+u+r.halfTickLength})},_getTranslatedCoord:function(n,t){return this._translator.translate(n,t)-o},_getCanvasStartEnd:function(){return{start:0-o,end:360-o}},_createStrip:function(n,t,i){var r=this._additionalTranslator.getCenter(),u=this._additionalTranslator.getRadius();return this._renderer.arc(r.x,r.y,0,u,-t,-n).attr(i)},_getStripLabelCoords:function(n,t,i){var u=this,c=t+(i-t)/2,o=f.getCosAndSin(-c),s=u._additionalTranslator.getRadius()/2,h=u._additionalTranslator.getCenter(),l=e(h.x+s*o.cos),a=e(h.y-s*o.sin);return{x:l,y:a,align:r.center}},_createConstantLine:function(n,t){var i=this._additionalTranslator.getCenter(),r=this._additionalTranslator.getRadius();return this._createPathElement([i.x,i.y,i.x+r,i.y],t).rotate(n,i.x,i.y)},_getConstantLineLabelsCoords:function(n){var t=this,i=f.getCosAndSin(-n),u=t._additionalTranslator.getRadius()/2,o=t._additionalTranslator.getCenter(),s=e(o.x+u*i.cos),h=e(o.y-u*i.sin);return{x:s,y:h,align:r.center}},_checkAlignmentConstantLineLabels:v,_getScreenDelta:function(){return 2*Math.PI*this._additionalTranslator.getRadius()},_getTickCoord:function(n){var t=this._additionalTranslator.getCenter(),i=this._additionalTranslator.getRadius();return{x1:t.x+i-r.halfTickLength,y1:t.y,x2:t.x+i+r.halfTickLength,y2:t.y,angle:n.angle}},_getLabelAdjustedCoord:function(n){var a=this,t=n.labelPos,c=f.getCosAndSin(t.angle),o=c.cos,s=c.sin,h=n.label.getBBox(),e=h.width/2,i=h.height/2,l=a._options.label.indentFromAxis||0,r=t.x+l*o,u=t.y+(t.y-h.y-i)+l*s;switch(y(t.angle)){case 1:r+=e,u+=i*s;break;case 2:r+=e*o,u+=i;break;case 3:r+=-e,u+=i*s;break;case 4:r+=e*o,u+=-i}return{x:r,y:u}},_getGridLineDrawer:function(){var t=this,i=t._additionalTranslator.getRadius(),n=t._additionalTranslator.getCenter();return function(r){return t._createPathElement([n.x,n.y,n.x+i,n.y],r.gridStyle).rotate(r.angle,n.x,n.y)}},_getTranslatedValue:function(n,t,i){var u=this._additionalTranslator,f=u.getStartAngle(),e=this._translator.translate(n,-i),h=s.utils.convertPolarToXY(u.getCenter(),f,e,u.translate(r.canvasPositionBottom));return{x:h.x,y:h.y,angle:e+f-o}},_getAdjustedStripLabelCoords:function(n,t){var i,r=t.getBBox();return i=t.attr("y")-r.y-r.height/2,{x:0,y:i}},coordsIn:function(n,t){return s.utils.convertXYToPolar(this._additionalTranslator.getCenter(),n,t).r>this._additionalTranslator.getRadius()},_rotateTick:function(n,t){var i=this._additionalTranslator.getCenter();n.graphic.rotate(t,i.x,i.y)}},u.charts.axes.polarAxes.circularSpider=a({},u.charts.axes.polarAxes.circular,{_createAxisElement:function(){var n=c(this.getSpiderTicks(),function(n){return{x:n.posX,y:n.posY}});return this._renderer.path(n,"area")},_getStick:function(){return!0},_getSpiderCategoryOption:function(){return!0},getSpiderTicks:function(){var n=this;return n._spiderTicks=r.convertValuesToTicks(n._tickManager.getFullTicks()),n._initTicks(n._spiderTicks,{},{}),n._spiderTicks},_createStrip:function(n,t,i){for(var c=this._additionalTranslator.getCenter(),u=this.getSpiderTicks(),o,s,h,r,f=[],e=0,l=u.length;e<l;)r=u[e],r.angle>=n&&r.angle<=t&&(o||(o=u[e-1]||u[u.length-1],f.push((r.posX+o.posX)/2,(r.posY+o.posY)/2)),f.push(r.posX,r.posY),h=u[e+1]||u[0],s={x:(r.posX+h.posX)/2,y:(r.posY+h.posY)/2}),e++;return f.push(s.x,s.y),f.push(c.x,c.y),this._renderer.path(f,"area").attr(i)},_getTranslatedCoord:function(n,t){return this._translator.translate(n,t)-o},_setTickOffset:function(){this._tickOffset=!1}}),u.charts.axes.polarAxes.linear={_overlappingBehaviorType:"linear",_getMinMax:u.charts.axes.polarAxes.circular._getMinMax,_getStick:u.charts.axes.xyAxes.linear._getStick,_getTicksOptions:u.charts.axes.xyAxes.linear._getTicksOptions,_getSpiderCategoryOption:n.noop,_createAxisElement:function(){var t=this._additionalTranslator,n=t.getCenter(),i=[n.x,n.y,n.x+t.getRadius(),n.y];return this._renderer.path(i,"line").rotate(t.getStartAngle()-o,n.x,n.y)},_setBoundingRect:u.charts.axes.polarAxes.circular._setBoundingRect,_getScreenDelta:function(){return this._additionalTranslator.getRadius()},_getTickCoord:function(n){return{x1:n.posX-r.halfTickLength,y1:n.posY,x2:n.posX+r.halfTickLength,y2:n.posY,angle:n.angle+o}},_getOverlappingBehaviorOptions:function(){var t=this,e=t._translator,o=t._additionalTranslator,n=u.charts.axes.xyAxes.linear._getOverlappingBehaviorOptions.call(this),i=f.normalizeAngle(t._additionalTranslator.getStartAngle());return n.overlappingBehavior&&(n.overlappingBehavior={mode:r.validateOverlappingMode(n.overlappingBehavior.mode)}),n.isHorizontal=i>45&&i<135||i>225&&i<315?!0:!1,n.isInverted=e.getBusinessRange().invert,n.translate=function(n){return s.utils.convertPolarToXY(o.getCenter(),t._options.startAngle,o.translate(r.canvasPositionTop),e.translate(n)).x},n},_getLabelAdjustedCoord:function(n){var s=this,t=n.labelPos,i=f.getCosAndSin(t.angle),u=s._options.label.indentFromAxis||0,r=n.label.getBBox(),e,o;return e=t.x-h(u*i.sin)+h(r.width/2*i.cos),o=t.y+(t.y-r.y)-h(r.height/2*i.sin)+h(u*i.cos),{x:e,y:o}},_getGridLineDrawer:function(){var t=this,n=t._additionalTranslator.getCenter();return function(i){return t._renderer.circle(n.x,n.y,f.getDistance(n.x,n.y,i.posX,i.posY)).attr(i.gridStyle).sharp()}},_getTranslatedValue:function(n,t,i){var u=this._additionalTranslator,f=u.getStartAngle(),e=u.translate(r.canvasPositionStart),h=s.utils.convertPolarToXY(u.getCenter(),f,e,this._translator.translate(n,i));return{x:h.x,y:h.y,angle:e+f-o}},_getTranslatedCoord:function(n,t){return this._translator.translate(n,t)},_getCanvasStartEnd:function(){return{start:0,end:this._additionalTranslator.getRadius()}},_createStrip:function(n,t,i){var r=this._additionalTranslator.getCenter();return this._renderer.arc(r.x,r.y,n,t,0,360).attr(i)},_getAdjustedStripLabelCoords:u.charts.axes.polarAxes.circular._getAdjustedStripLabelCoords,_getStripLabelCoords:function(n,t,i){var f=this,o=t+(i-t)/2,u=f._additionalTranslator.getCenter(),s=e(u.y-o);return{x:u.x,y:s,align:r.center}},_createConstantLine:function(n,t){var i=this._additionalTranslator.getCenter();return this._renderer.circle(i.x,i.y,n).attr(t).sharp()},_getConstantLineLabelsCoords:function(n){var i=this,t=i._additionalTranslator.getCenter(),u=e(t.y-n);return{x:t.x,y:u,align:r.center}},_checkAlignmentConstantLineLabels:v,_rotateTick:function(n,t){n.graphic.rotate(t,n.posX,n.posY)}},u.charts.axes.polarAxes.linearSpider=a({},u.charts.axes.polarAxes.linear,{_createPathElement:function(n,t){return this._renderer.path(n,"area").attr(t).sharp()},setSpiderTicks:function(n){this._spiderTicks=n},_getGridLineDrawer:function(){var n=this,t=n._additionalTranslator.getCenter();return function(i){var r=f.getDistance(t.x,t.y,i.posX,i.posY);return n._createPathElement(n._getGridPoints(t,r),i.gridStyle)}},_getGridPoints:function(n,t){return c(this._spiderTicks,function(i){var r=f.getCosAndSin(i.angle);return{x:e(n.x+t*r.cos),y:e(n.y+t*r.sin)}})},_createStrip:function(n,t,i){var r=this._additionalTranslator.getCenter(),u=this._getGridPoints(r,t),f=this._getGridPoints(r,n);return this._renderer.path([f,u.reverse()],"area").attr(i)},_createConstantLine:function(n,t){var i=this._additionalTranslator.getCenter(),r=this._getGridPoints(i,n);return this._createPathElement(r,t)}})}(jQuery,DevExpress),function(n,t,i){function rt(n,t){var i=n.label,f=n.position,e=t?r.bottom:r.left,o=t?r.top:r.right;f!==e&&f!==o&&(f=e),f!==r.right||i.userAlignment||(i.alignment=r.left),n.position=f,n.hoverMode=n.hoverMode?n.hoverMode.toLowerCase():"none",i.minSpacing=u(i.minSpacing)?i.minSpacing:nt}var v=t.viz,c=v.core,o=t.utils,r=v.charts.axes.constants,u=o.isDefined,y=o.isNumber,d=o.isString,p=o.getSignificantDigitPosition,w=o.roundValue,s=Math,h=s.abs,g=s.round,l=n.extend,e=n.each,f=n.noop,b="dxc",nt=5,k=4,tt=8,it=4,a;a=t.viz.charts.axes.Axis=function(n){var t=this;t._renderer=n.renderer,t._isHorizontal=n.isHorizontal,t._incidentOccured=n.incidentOccured,t._stripsGroup=n.stripsGroup,t._labelAxesGroup=n.labelAxesGroup,t._constantLinesGroup=n.constantLinesGroup,t._axesContainerGroup=n.axesContainerGroup,t._gridContainerGroup=n.gridGroup,t._axisClass=n.axisClass,t._setType(n.axesType,n.drawingType),t._createAxisGroups(),t._tickManager=t._createTickManager()},a.prototype={constructor:a,dispose:function(){var n=this;n._axisElementsGroup&&n._axisElementsGroup.dispose(),n._stripLabels=n._strips=null,n._title=null,n._axisStripGroup=n._axisConstantLineGroup=n._axisLabelGroup=null,n._axisLineGroup=n._axisElementsGroup=n._axisGridGroup=null,n._axisGroup=n._axisTitleGroup=null,n._axesContainerGroup=n._stripsGroup=n._constantLinesGroup=null,n._renderer=n._options=n._textOptions=n._textFontStyles=null,n._translator=n._additionalTranslator=null,n._majorTicks=n._minorTicks=null,n._tickManager=null},getOptions:function(){return this._options},setPane:function(n){this.pane=n,this._options.pane=n},setTypes:function(n,t,i){this._options.type=n||this._options.type,this._options[i]=t||this._options[i]},resetTypes:function(n){this._options.type=this._initTypes.type,this._options[n]=this._initTypes[n]},getTranslator:function(){return this._translator},updateOptions:function(n){var t=this,i=n.label;t._options=n,t._initTypes={type:n.type,argumentType:n.argumentType,valueType:n.valueType},rt(n,t._isHorizontal),t._setTickOffset(),t.pane=n.pane,t.name=n.name,t.priority=n.priority,t._virtual=n.virtual,t._hasLabelFormat=i.format!==""&&u(i.format),t._textOptions={align:i.alignment,opacity:i.opacity},t._textFontStyles=c.utils.patchFontOptions(i.font),n.type===r.logarithmic&&(n.logarithmBaseError&&(t._incidentOccured("E2104"),delete n.logarithmBaseError),t.calcInterval=function(t,i){return o.getLog(t/i,n.logarithmBase)})},updateSize:function(n){var t=this,i=t._options,r=t._isHorizontal?"horizontal":"vertical";i.title.text&&t._axisTitleGroup&&(t._incidentOccured("W2105",[r]),t._axisTitleGroup.dispose(),t._axisTitleGroup=null),n&&t._axisElementsGroup&&i.label.visible&&!t._translator.getBusinessRange().stubData&&(t._incidentOccured("W2106",[r]),t._axisElementsGroup.dispose(),t._axisElementsGroup=null),t._setBoundingRect()},_updateTranslatorInterval:function(){var n=this,i,r,u,f=n._translator,t=f.getBusinessRange();if(t.categories||t.isSynchronized||(n.getMajorTicks(!0),t.addRange(n._tickManager.getTickBounds()),f.reinit()),n._majorTicks=r=n.getMajorTicks(),!t.categories)for(u=r.length,i=0;i<u-1;i++)t.addRange({interval:h(r[i].value-r[i+1].value)});n._decimatedTicks=t.categories?n.getDecimatedTicks():[],n._minorTicks=n.getMinorTicks()},setTranslator:function(n,t){var i=this,r=n.getBusinessRange();this._minBound=r.minVisible,this._maxBound=r.maxVisible,i._translator=n,i._additionalTranslator=t,i.resetTicks(),i._updateTranslatorInterval()},resetTicks:function(){this._deleteLabels(),this._majorTicks=this._minorTicks=null},getCurrentLabelPos:function(){var n=this,t=n._options,i=t.position,u=t.label.indentFromAxis,f=n._axisPosition;return i===r.top||i===r.left?f-u:f+u},getFormattedValue:function(n){return u(n)?r.formatLabel(y(n)&&!d(n)?w(n,p(this._translator.getBusinessRange().interval)):n,this._options.label):null},_drawAxis:function(){var n=this,t=n._options,i=n._createAxis({"stroke-width":t.width,stroke:t.color,"stroke-opacity":t.opacity});i.append(n._axisLineGroup)},_correctMinForTicks:function(n,t,i){var f=p(h(t-n)/i),r=w(Number(n),f),u;return r<n&&(u=s.pow(10,-f),r=o.applyPrecisionByMinDelta(r,u,r+u)),r>t&&(r=n),r},_getTickManagerData:function(){var t=this,o=t._options,u=t._getScreenDelta(),i=t._minBound,f=t._maxBound,e=t._translator.getVisibleCategories()||t._translator.getBusinessRange().categories,s=n.isArray(e)?e:t._majorTicks&&r.convertTicksToValues(t._majorTicks),h=t._minorTicks&&r.convertTicksToValues(t._minorTicks);return y(i)&&o.type!==r.logarithmic&&(i=t._correctMinForTicks(i,f,u)),{min:i,max:f,customTicks:s,customMinorTicks:h,screenDelta:u}},_getTickManagerTypes:function(){return{axisType:this._options.type,dataType:this._options.dataType}},_createTickManager:function(){return t.viz.core.CoreFactory.createTickManager({},{},{overlappingBehaviorType:this._overlappingBehaviorType})},_getMarginsOptions:function(){var n=this._translator.getBusinessRange();return{stick:n.stick,minStickValue:n.minStickValue,maxStickValue:n.maxStickValue,percentStick:n.percentStick,minValueMargin:this._options.minValueMargin,maxValueMargin:this._options.maxValueMargin,minSpaceCorrection:n.minSpaceCorrection,maxSpaceCorrection:n.maxSpaceCorrection}},_updateTickManager:function(){var t=this._getOverlappingBehaviorOptions(),n;n=l(!0,{},this._getMarginsOptions(),t,this._getTicksOptions()),this._tickManager.update(this._getTickManagerTypes(),this._getTickManagerData(),n)},_correctLabelAlignment:function(){var n=this,t=n._options.label,i=n._tickManager.getOverlappingBehavior();i&&i.mode==="rotate"?(n._textOptions.rotate=i.rotationAngle,t.userAlignment||(n._textOptions.align=r.left)):t.userAlignment||(n._textOptions.align=t.alignment)},_correctLabelFormat:function(){this._options.label=this._tickManager.getOptions().labelOptions},getTicksValues:function(){return{majorTicksValues:r.convertTicksToValues(this._majorTicks||this.getMajorTicks()),minorTicksValues:r.convertTicksToValues(this._minorTicks||this.getMinorTicks())}},getMajorTicks:function(n){var t=this,i;return t._updateTickManager(),t._textOptions.rotate=0,i=r.convertValuesToTicks(t._tickManager.getTicks(n)),t._correctLabelAlignment(),t._correctLabelFormat(),i},getMinorTicks:function(){return r.convertValuesToTicks(this._tickManager.getMinorTicks())},getDecimatedTicks:function(){return r.convertValuesToTicks(this._tickManager.getDecimatedTicks())},setTicks:function(n){this.resetTicks(),this._majorTicks=r.convertValuesToTicks(n.majorTicks),this._minorTicks=r.convertValuesToTicks(n.minorTicks)},_deleteLabels:function(){this._axisElementsGroup&&this._axisElementsGroup.clear()},_drawTicks:function(n){var t=this,i=t._axisLineGroup;e(n||[],function(n,r){var u=t._getTickCoord(r),f;u&&(f=t._isHorizontal?[u.x1,u.y1,u.x2,u.y2]:[u.y1,u.x1,u.y2,u.x2],r.graphic=t._createPathElement(f,r.tickStyle).append(i),u.angle&&t._rotateTick(r,u.angle))})},_createPathElement:function(n,t,i){return this._renderer.path(n,"line").attr(t).sharp(this._getSharpParam(i))},_createAxis:function(n){return this._createAxisElement().attr(n).sharp(this._getSharpParam(!0))},_getTickCoord:function(n){var t;return t=u(n.posX)&&u(n.posY)?{x1:n.posX,y1:n.posY-r.halfTickLength,x2:n.posX,y2:n.posY+r.halfTickLength}:null},setPercentLabelFormat:function(){this._hasLabelFormat||(this._options.label.format="percent")},resetAutoLabelFormat:function(){this._hasLabelFormat||delete this._options.label.format},_drawLabels:function(){var n=this,t=n._renderer,i=n._axisElementsGroup,r=/^\s+$/;e(n._majorTicks,function(f,e){var o=e.labelText,s,h;u(o)&&o!==""&&!r.test(o)&&(s=n._isHorizontal?e.labelPos.x:e.labelPos.y,h=n._isHorizontal?e.labelPos.y:e.labelPos.x,e.label?e.label.css(e.labelFontStyle).attr(e.labelStyle).attr({text:o,x:s,y:h}):e.label=t.text(o,s,h).css(e.labelFontStyle).attr(e.labelStyle).append(i),e.label.data({argument:e.value}))})},getMultipleAxesSpacing:function(){return this._options.multipleAxesSpacing||0},_drawTitle:f,_getGridLineDrawer:function(n){var t=this,f=t._translator,e=t._additionalTranslator,u=t._isHorizontal,o=u?r.left:r.top,s=u?r.right:r.bottom,c=e.translateSpecialCase(r.canvasPositionStart),l=e.translateSpecialCase(r.canvasPositionEnd),a=n.visible&&n[o]?f.translateSpecialCase(r.canvasPositionPrefix+o):i,v=n.visible&&n[s]?f.translateSpecialCase(r.canvasPositionPrefix+s):i,y=u?function(n){return n.posX!==null?[n.posX,c,n.posX,l]:null}:function(n){return n.posX!==null?[c,n.posX,l,n.posX]:null};return function(n){var i;if(!(h(n.posX-a)<k)&&!(h(n.posX-v)<k))return i=y(n),i&&t._createPathElement(i,n.gridStyle)}},_drawGrids:function(n,t){var i=this,r=i._axisGridGroup,u=i._getGridLineDrawer(t||{visible:!1});e(n||[],function(n,t){t.grid=u(t),t.grid&&t.grid.append(r)})},_getConstantLinePos:function(n,t,i){var f=this._validateUnit(n,"E2105","constantLine"),r=this._getTranslatedCoord(f);return!u(r)||r<s.min(t,i)||r>s.max(t,i)?{}:{value:r,parsedValue:f}},_createConstantLine:function(n,t){var e=this,i=this._additionalTranslator,u=i.translateSpecialCase(r.canvasPositionStart),f=i.translateSpecialCase(r.canvasPositionEnd),o=this._isHorizontal?[n,f,n,u]:[u,n,f,n];return e._createPathElement(o,t)},_drawConstantLinesAndLabels:function(n,t,i){if(u(n.value)){var r=this,o=r._getConstantLinePos(n.value,t,i),f=n.label||{},e=o.value,s={stroke:n.color,"stroke-width":n.width,dashStyle:n.dashStyle};if(!u(e)){r._constantLines.push(null),f.visible&&r._constantLineLabels.push(null);return}r._constantLines.push(r._createConstantLine(e,s).append(r._axisConstantLineGroup)),r._constantLineLabels.push(f.visible?r._drawConstantLineLabels(o.parsedValue,f,e):null)}},_drawConstantLine:function(){var n=this,i=n._options,r=i.constantLines,t=n._getCanvasStartEnd();n._translator.getBusinessRange().stubData||(n._constantLines=[],n._constantLineLabels=[],e(r,function(i,r){n._drawConstantLinesAndLabels(r,t.start,t.end)}))},_drawConstantLineLabels:function(n,t,i){var f=this,e=t.text,h=f._options,s=h.label,o;return f._checkAlignmentConstantLineLabels(t),e=u(e)?e:r.formatLabel(n,s),o=f._getConstantLineLabelsCoords(i,t),f._renderer.text(e,o.x,o.y).css(c.utils.patchFontOptions(l({},s.font,t.font))).attr({align:o.align}).append(f._axisConstantLineGroup)},_adjustConstantLineLabels:f,_getStripPos:function(t,i,r,f,e){var h=!!(e.minVisible||e.maxVisible),a=e.categories||[],o,s,v=t,y=i,c,l,p=e.minVisible;if(!h){if(c=n.inArray(t,a),l=n.inArray(i,a),c===-1||l===-1)return{stripFrom:0,stripTo:0};c>l&&(v=i,y=t)}return o=this._getTranslatedCoord(this._validateUnit(v,"E2105","strip"),-1),s=this._getTranslatedCoord(this._validateUnit(y,"E2105","strip"),1),!u(o)&&h&&(o=t<p?r:f),!u(s)&&h&&(s=i<p?r:f),o<s?{stripFrom:o,stripTo:s}:{stripFrom:s,stripTo:o}},_createStrip:function(n,t,i){var e,o,c,l,a=this._additionalTranslator,u=a.translateSpecialCase(r.canvasPositionStart),f=a.translateSpecialCase(r.canvasPositionEnd);return this._isHorizontal?(e=n,o=s.min(u,f),c=t-n,l=h(u-f)):(e=s.min(u,f),o=n,c=h(u-f),l=h(n-t)),this._renderer.rect(e,o,c,l).attr(i)},_drawStrip:function(){var n=this,c=n._options,e=c.strips,o=this._getCanvasStartEnd(),r,i,t,f,s,h=n._translator.getBusinessRange();if(!h.stubData)for(n._strips=[],n._stripLabels=[],r=0;r<e.length;r++)if(i=e[r],f=i.label||{},s={fill:i.color},u(i.startValue)&&u(i.endValue)&&u(i.color)){if(t=n._getStripPos(i.startValue,i.endValue,o.start,o.end,h),t.stripTo-t.stripFrom==0||!u(t.stripTo)||!u(t.stripFrom)){n._strips.push(null),f.text&&n._stripLabels.push(null);continue}n._strips.push(n._createStrip(t.stripFrom,t.stripTo,s).append(n._axisStripGroup)),n._stripLabels.push(f.text?n._drawStripLabel(f,t.stripFrom,t.stripTo):null)}},_drawStripLabel:function(n,t,i){var r=this,f=r._options,u=r._getStripLabelCoords(n,t,i);return r._renderer.text(n.text,u.x,u.y).css(c.utils.patchFontOptions(l({},f.label.font,n.font))).attr({align:u.align}).append(r._axisLabelGroup)},_adjustStripLabels:function(){var r=this,t=r._stripLabels,f=r._strips,n,u;if(t!==i||f!==i)for(n=0;n<t.length;n++)t[n]!==null&&(u=r._getAdjustedStripLabelCoords(r._options.strips[n],t[n],f[n]),t[n].move(u.x,u.y))},_initAxisPositions:f,_adjustLabels:function(){var t=this,c=t._options,f=t._majorTicks,o=f.length,p=t._isHorizontal,s=t._tickManager?t._tickManager.getOverlappingBehavior():c.label.overlappingBehavior,l=c.position,i,u,a,v,n,h,y=!1,w=t._axisElementsGroup&&t._axisElementsGroup.getBBox()||{};if(e(f,function(n,i){i.label&&(i.label.attr(t._getLabelAdjustedCoord(i,w)),y=!0)}),a=y&&p&&s&&s.mode==="stagger",a){for(u=0,n=0;n<o;n=n+2)i=f[n].label,h=i&&i.getBBox()||{},h.height>u&&(u=h.height);for(v=s.staggeringSpacing,u=g(u)+v,n=1;n<o;n=n+2)i=f[n].label,i&&(l===r.bottom?i.move(0,u):l===r.top&&i.move(0,-u));for(n=0;n<o;n++)f[n].label&&f[n].label.rotate(0)}},_getLabelAdjustedCoord:function(n,t){var e=this,a=e._options,i=n.label.getBBox(),f,o,l=e._isHorizontal,s=a.position,u=e.padding&&e.padding[s]||0,h=e._textOptions,c=n.label.attr("y");return l&&s===r.bottom?o=2*c-i.y+u:l?l&&s===r.top&&(o=2*c-i.y-i.height-u):(f=s===r.left?h.align===r.right?i.x+i.width-u:h.align===r.center?i.x+i.width/2-u-(t.width/2||0):i.x-u-(t.width||0):h.align===r.center?i.x+i.width/2+(t.width/2||0)+u:h.align===r.right?i.x+i.width+(t.width||0)+u:i.x+u,o=c+~~(c-i.y-i.height/2)),{x:f,y:o}},_adjustTitle:f,_createAxisGroups:function(){var n=this,t=n._renderer,i=b+"-"+n._axisClass+"-";n._axisGroup=t.g().attr({"class":i+"axis"}),n._axisStripGroup=t.g().attr({"class":i+"strips"}),n._axisGridGroup=t.g().attr({"class":i+"grid"}),n._axisElementsGroup=t.g().attr({"class":i+"elements"}).append(n._axisGroup),n._axisLineGroup=t.g().attr({"class":i+"line"}).append(n._axisGroup),n._axisTitleGroup=t.g().attr({"class":i+"title"}).append(n._axisGroup),n._axisConstantLineGroup=t.g().attr({"class":i+"constant-lines"}),n._axisLabelGroup=t.g().attr({"class":i+"axis-labels"})},_clearAxisGroups:function(n){var t=this,i=b+"-"+t._axisClass+"-";t._axisGroup.remove(),t._axisStripGroup.remove(),t._axisLabelGroup.remove(),t._axisConstantLineGroup.remove(),t._axisGridGroup.remove(),t._axisTitleGroup?t._axisTitleGroup.clear():n||(t._axisTitleGroup=t._renderer.g().attr({"class":i+"title"}).append(t._axisGroup)),t._axisElementsGroup?t._axisElementsGroup.clear():n||(t._axisElementsGroup=t._renderer.g().attr({"class":i+"elements"}).append(t._axisGroup)),t._axisLineGroup.clear(),t._axisStripGroup.clear(),t._axisGridGroup.clear(),t._axisConstantLineGroup.clear(),t._axisLabelGroup.clear()},_initTicks:function(n,t,i,u){var f=this,o=f._options,h={stroke:t.color,"stroke-width":1,"stroke-opacity":t.opacity},c={stroke:i.color,"stroke-width":i.width,"stroke-opacity":i.opacity},l=f.getCurrentLabelPos(),s=f._getSkippedCategory();e(n||[],function(n,t){var i;s&&s===t.value||(i=f._getTranslatedValue(t.value,f._axisPosition,f._tickOffset),t.posX=i.x,t.posY=i.y,t.angle=i.angle),t.tickStyle=h,t.gridStyle=c,u&&(t.labelText=r.formatLabel(t.value,o.label,{min:f._minBound,max:f._maxBound}),t.labelPos=f._getTranslatedValue(t.value,l),t.labelStyle=f._textOptions,t.labelFontStyle=f._textFontStyles,t.labelHint=r.formatHint(t.value,o.label,{min:f._minBound,max:f._maxBound}))})},_setTickOffset:function(){var t=this._options,n=t.discreteAxisDivisionMode;this._tickOffset=+(n!=="crossLabels"||!n)},drawGrids:function(n){var t=this,i=t._options;n=n||{},t._axisGridGroup.append(t._gridContainerGroup),i.grid.visible&&t._drawGrids(t._majorTicks.concat(t._decimatedTicks),n),i.minorGrid.visible&&t._drawGrids(t._minorTicks,n)},draw:function(n){var t=this,i=t._options,r;t._axisGroup&&t._clearAxisGroups(n),r=i.label.visible&&t._axisElementsGroup&&!t._translator.getBusinessRange().stubData,t._updateTranslatorInterval(),t._initAxisPositions(),t._initTicks(t._majorTicks,i.tick,i.grid,r),t._initTicks(t._decimatedTicks,i.tick,i.grid,!1),t._initTicks(t._minorTicks,i.minorTick,i.minorGrid),t._virtual||(i.visible&&t._drawAxis(),i.tick.visible&&(t._drawTicks(t._majorTicks),t._drawTicks(t._decimatedTicks)),i.minorTick.visible&&t._drawTicks(t._minorTicks),r&&t._drawLabels(),t._drawTitle()),i.strips&&t._drawStrip(),i.constantLines&&t._drawConstantLine(),t._axisStripGroup.append(t._stripsGroup),t._axisConstantLineGroup.append(t._constantLinesGroup),t._axisGroup.append(t._axesContainerGroup),t._axisLabelGroup.append(t._labelAxesGroup),t._adjustConstantLineLabels(),r&&t._adjustLabels(),t._createHints(),t._adjustStripLabels(),t._adjustTitle(),t._setBoundingRect()},_createHints:function(){var n=this;e(n._majorTicks||[],function(n,t){var i=t.labelHint;u(i)&&i!==""&&t.label.setTitle(i)})},_setBoundingRect:function(){var n=this,s=n._options,t=n._axisElementsGroup?n._axisElementsGroup.getBBox():{x:0,y:0,width:0,height:0,isEmpty:!0},l=n._axisLineGroup.getBBox(),h=s.placeholderSize,f,e=n._isHorizontal,i=e?"y":"x",o=e?"height":"width",c=s.crosshairEnabled?e?it:tt:0,u=n._title&&n._axisTitleGroup?n._axisTitleGroup.getBBox():t;if(t.isEmpty&&u.isEmpty&&!h){n.boundingRect=t;return}f=l[i]||n._axisPosition,s.position===(e&&r.bottom||r.right)?(t[o]=h||u[i]+u[o]-f+c,t[i]=f):(t[o]=h||l[o]+f-u[i]+c,t[i]=u.isEmpty?f:u[i]-c),n.boundingRect=t},getBoundingRect:function(){return this._axisElementsGroup?this.boundingRect:{x:0,y:0,width:0,height:0}},shift:function(n,t){var i={};n&&(i.translateX=n),t&&(i.translateY=t),this._axisGroup.attr(i)},applyClipRects:function(n,t){this._axisGroup.attr({clipId:t}),this._axisStripGroup.attr({clipId:n})},validate:function(n){var t=this,r=t._options,f=new c.ParseUtils,u=n?r.argumentType:r.valueType,e=u?f.getParser(u,"axis"):function(n){return n};t.parser=e,r.dataType=u,r.min!==i&&(r.min=t._validateUnit(r.min,"E2106")),r.max!==i&&(r.max=t._validateUnit(r.max,"E2106")),t._minBound!==i&&(t._minBound=t._validateUnit(t._minBound)),t._maxBound!==i&&(t._maxBound=t._validateUnit(t._maxBound))},_validateUnit:function(n,t,r){var u=this;return n=u.parser(n),n===i&&t&&u._incidentOccured(t,[r]),n},zoom:function(n,t,u){var f=this,e=f._options.min,o=f._options.max;return u=u||f._options.type===r.discrete,n=f._validateUnit(n),t=f._validateUnit(t),u||(e!==i&&(n=e>n?e:n,t=e>t?e:t),o!==i&&(t=o<t?o:t,n=o<n?o:n)),f._zoomArgs={min:n,max:t}},resetZoom:function(){this._zoomArgs=null},getRangeData:function(){var e=this,o=e._options,v=e._getMinMax(),n=v.min,t=v.max,f=e._zoomArgs||{},c=o.type,s,h,l,a;return c===r.logarithmic&&(n=n<=0?i:n,t=t<=0?i:t),c!==r.discrete?(s=n,h=t,u(n)&&u(t)&&(s=n<t?n:t,h=t>n?t:n),l=u(f.min)?f.min:s,a=u(f.max)?f.max:h):(l=u(f.min)?f.min:n,a=u(f.max)?f.max:t),{min:s,max:h,stick:e._getStick(),categories:o.categories,dataType:o.dataType,axisType:c,base:o.logarithmBase,invert:o.inverted,addSpiderCategory:e._getSpiderCategoryOption(),minVisible:l,maxVisible:a}},_setType:function(n,i){var r=this;e(t.viz.charts.axes[n][i],function(n,t){r[n]=t})},_getSharpParam:function(){return!0},getSpiderTicks:f,setSpiderTicks:f,measureLabels:f,coordsIn:f,_getSkippedCategory:f}}(jQuery,DevExpress),function(n,t,i){function o(n,t,i,r){var u=0;return t==="right"?u=n.width-n.right+i:t==="left"&&(u=n.left-i-r),u}function s(n,t,i,r){var u=0;return t==="top"?u=n.top-i:t==="bottom"&&(u=n.height-n.bottom+r+i),u}var f=2,e=t.utils.isDefined,r=i.min,u=i.max;t.viz.charts.ScrollBar=function(n,i){this._translator=t.viz.core.CoreFactory.createTranslator2D({},{},{}),this._scroll=n.rect().append(i),this._addEvents()},t.viz.charts.ScrollBar.prototype={_addEvents:function(){var r=this,u=n(r._scroll.element),t=0,i=0,f=function(f){var e=(t-f.pageX)*r._scale,o=(i-f.pageY)*r._scale;u.trigger(new n.Event("dxc-scroll-move",n.extend(f,{type:"dxc-scroll-move",pointers:[{pageX:t+e,pageY:i+o}]})))};u.on("dxpointerdown",function(r){t=r.pageX,i=r.pageY,u.trigger(new n.Event("dxc-scroll-start",{pointers:[{pageX:t,pageY:i}]}));n(document).on("dxpointermove",f)});n(document).on("dxpointerup",function(){n(document).off("dxpointermove",f)})},update:function(n){var i=this,t=n.position,r=n.rotated,u=r?"right":"top",f=r?"left":"bottom";return t!==u&&t!==f&&(t=u),i._scroll.attr({rotate:n.rotated?0:-90,rotateX:0,rotateY:0,fill:n.color,width:n.width,opacity:n.opacity}),i._layoutOptions={width:n.width,offset:n.offset,vertical:r,position:t},i},init:function(t,i){var r=this;return r._translateWithOffset=t.axisType==="discrete"&&!t.stick&&1||0,r._translator.update(n.extend({},t,{minVisible:null,maxVisible:null,visibleCategories:null}),n.extend({},i),{direction:r._layoutOptions.vertical?"vertical":"horizontal"}),r},getOptions:function(){return this._layoutOptions},shift:function(n,t){this._scroll.attr({translateX:n,translateY:t})},setPane:function(n){var i=this._layoutOptions.position,t;return t=i==="left"||i==="top"?n[0]:n[n.length-1],this.pane=t.name,this._canvas=t.canvas,this},getMultipleAxesSpacing:function(){return 0},getBoundingRect:function(){var t=this._layoutOptions,e=t.vertical,i=t.offset,r=t.width,u=t.position,f=r+i,n=this._canvas;return e?{x:o(n,u,i,r),y:n.top,width:f,height:n.height-n.top-n.bottom}:{x:n.left,y:s(n,u,i,r),width:n.width-n.left-n.right,height:f}},applyLayout:function(){var t=this._canvas,n=this._layoutOptions,i=n.position,r=n.offset,u=n.width;this.shift(o(t,i,r,u),s(t,i,r,u))},setPosition:function(n,t){var i=this,f=i._translator,o=e(n)?f.translate(n,-i._translateWithOffset):f.translate("canvas_position_start"),s=e(t)?f.translate(t,i._translateWithOffset):f.translate("canvas_position_end");i._offset=r(o,s),i._scale=f.getScale(n,t),i._applyPosition(r(o,s),u(o,s))},transform:function(n,t){var i=this._translator.getCanvasVisibleArea().min,u=i-(i*t-n),r=this._offset+u/(this._scale*t);this._applyPosition(r,r+this._translator.canvasLength/(this._scale*t))},dispose:function(){this._scroll.dispose(),this._scroll=this._translator=null},_applyPosition:function(n,t){var s=this,e=s._translator.getCanvasVisibleArea(),o;n=u(n,e.min),n=r(n,e.max),t=r(t,e.max),t=u(t,e.min),o=i.abs(t-n),s._scroll.attr({y:n,height:o<f?f:o})}}}(jQuery,DevExpress,Math),function(n,t,i){function r(n,t){return{name:n,deprecated:n,deprecatedContext:function(n){return n.target},deprecatedArgs:t||function(n){return[n.target,n.jQueryEvent]}}}function it(n,t,i){for(var u=0,o=t.end-t.start,f,e,r=0;r<n.length;r++)f=n[r].getLabel(),f.isVisible()?(e=f.getBoundingRect(),u+=i?e.width:e.height):n[r]=null;if(o>0)while(u>o)u-=rt(n,i)}function rt(n,t){var f={originalValue:Infinity},r,u,i;return(b(n,function(n,t){t&&f.originalValue>=t.originalValue&&(f=t,i=n)}),i!==null)?(r=n[i].getLabel(),u=r.getBoundingRect(),r.hide(),n[i]=null,t?u.width:u.height):0}function ut(n,t,i,r){var u,f={start:i?t.left:t.top,end:i?t.width-t.right:t.height-t.bottom};(it(n,f,i),u=w(n,function(n){return n?new d(n,i,r):null}),u.sort(function(n,t){return n.getPointPosition()-t.getPointPosition()}),et(u))&&(u.reverse(),ot(u,f))}function ft(n,t){if(n&&t)return n.getBoundingRect().end>t.getBoundingRect().start}function et(n){for(var t,r,u,f,i=0;i<n.length;i++)for(r=n[i],t=i+1;t<n.length;t++)u=n[t],ft(r,u)&&(r.toChain(u),f=!0,n[t]=null);return f}function ot(n,t){for(var u,i,f,e,o,r=0;r<n.length;r++){if(i=n[r],st(i,t))for(e=i.getBoundingRect(),u=r+1;u<n.length;u++)if((f=n[u],f)&&(o=f.getBoundingRect(),o.end>e.start-(e.end-t.end))){f.toChain(i),n[r]=i=null;break}i&&i.setRollingStockInCanvas(t)}}function st(n,t){return n&&n.getBoundingRect().end>t.end}function d(n,t,i){var u=n.getLabel(),r=u.getBoundingRect();return this.labels=[u],this.points=[n],this.shiftFunction=i,this._bbox={start:t?r.x:r.y,width:t?r.width:r.height,end:t?r.x+r.width:r.y+r.height},this._pointPositionInitialize=t?n.getBoundaryCoords().x:n.getBoundaryCoords().y,this}function ht(n){return{nameField:n+"Name",colorField:n+"Color",indexField:n+"Index"}}function ct(n){var t=ht(n);return{getFormatObject:function(n){var i={};return i[t.indexField]=n.id,i[t.colorField]=n.states.normal.fill,i[t.nameField]=n.text,i},textField:t.nameField}}function lt(n,t){return(n.x<=t.x&&t.x<=n.x+n.width||n.x>=t.x&&n.x<=t.x+t.width)&&(n.y<=t.y&&t.y<=n.y+n.height||n.y>=t.y&&n.y<=t.y+t.height)}var c=t.ui,u=t.viz.charts,g=t.utils,e="_reinit",a="_reinitDataSource",o="_dataInit",s="_forceRender",v="_resize",y=[e,a,o,s,v],h=t.viz.core,p=h.utils,f=n.noop,w=p.map,b=n.each,nt=n.extend,tt={asyncSeriesRendering:!0},k=g.isDefined,l=.3;d.prototype={toChain:function(n){var t=n.getBoundingRect();n.shift(t.start-this._bbox.end),this._changeBoxWidth(t.width),this.labels=this.labels.concat(n.labels),this.points=this.points.concat(n.points)},getBoundingRect:function(){return this._bbox},shift:function(n){var t=this.shiftFunction;b(this.labels,function(i,r){var f=r.getBoundingRect(),u=t(f,n,r);r.shift(u.x,u.y)}),this._bbox.end-=n,this._bbox.start-=n},setRollingStockInCanvas:function(n){this._bbox.end>n.end&&this.shift(this._bbox.end-n.end)},getPointPosition:function(){return this._pointPositionInitialize},_changeBoxWidth:function(n){this._bbox.end+=n,this._bbox.width+=n}},u.overlapping={resolveLabelOverlappingInOneDirection:ut},u.BaseChart=h.BaseWidget.inherit({_eventsMap:n.extend({},h.BaseWidget.prototype._eventsMap,{onSeriesClick:r("seriesClick"),onPointClick:r("pointClick"),onArgumentAxisClick:r("argumentAxisClick",function(n){return[n.target,n.argument,n.jQueryEvent]}),onLegendClick:r("legendClick"),onSeriesSelectionChanged:r("seriesSelectionChanged"),onPointSelectionChanged:r("pointSelectionChanged"),onSeriesHoverChanged:r("seriesHoverChanged"),onPointHoverChanged:r("pointHoverChanged"),onTooltipShown:r("tooltipShown"),onTooltipHidden:r("tooltipHidden"),onDone:r("done"),seriesClick:{newName:"onSeriesClick"},pointClick:{newName:"onPointClick"},argumentAxisClick:{newName:"onArgumentAxisClick"},legendClick:{newName:"onLegendClick"},pointHoverChanged:{newName:"onPointHoverChanged"},seriesSelectionChanged:{newName:"onSeriesSelectionChanged"},pointSelectionChanged:{newName:"onPointSelectionChanged"},seriesHoverChanged:{newName:"onSeriesHoverChanged"},tooltipShown:{newName:"onTooltipShown"},tooltipHidden:{newName:"onTooltipHidden"},done:{newName:"onDone"}}),_setDeprecatedOptions:function(){this.callBase(),n.extend(this._deprecatedOptions,{seriesClick:{since:"14.2",message:"Use the 'onSeriesClick' option instead"},pointClick:{since:"14.2",message:"Use the 'onPointClick' option instead"},argumentAxisClick:{since:"14.2",message:"Use the 'onArgumentAxisClick' option instead"},legendClick:{since:"14.2",message:"Use the 'onLegendClick' option instead"},seriesSelectionChanged:{since:"14.2",message:"Use the 'onSeriesSelectionChanged' option instead"},pointSelectionChanged:{since:"14.2",message:"Use the 'onPointSelectionChanged' option instead"},seriesHoverChanged:{since:"14.2",message:"Use the 'onSeriesHoverChanged' option instead"},pointHoverChanged:{since:"14.2",message:"Use the 'onPointHoverChanged' option instead"},tooltipShown:{since:"14.2",message:"Use the 'onTooltipShown' option instead"},tooltipHidden:{since:"14.2",message:"Use the 'onTooltipHidden' option instead"},done:{since:"14.2",message:"Use the 'onDone' option instead"}})},_rootClassPrefix:"dxc",_rootClass:"dxc-chart",_init:function(){var n=this;n.callBase.apply(n,arguments),n._reinit(!0)},_createThemeManager:function(){var n=this.option(),t=u.factory.createThemeManager(n,this._chartType);return t.setTheme(n.theme,n.rtlEnabled),t},_initCore:function(){var n=this;n._canvasClipRect=n._renderer.clipRect(),n._createHtmlStructure(),n._createLegend(),n._needHandleRenderComplete=!0,n.layoutManager=u.factory.createChartLayoutManager(n._layoutManagerOptions()),n._createScrollBar();n._$element.on("contextmenu",function(n){(c.events.isTouchEvent(n)||c.events.isPointerEvent(n))&&n.preventDefault()}).on("MSHoldVisual",function(n){n.preventDefault()})},_layoutManagerOptions:function(){return this._themeManager.getOptions("adaptiveLayout")},_reinit:function(n){var t=this;u._setCanvasValues(t._canvas),t._createTracker(),t._reinitAxes(),n||(t._initialized=!1),t._reinitDataSource(),t.series||t._dataSpecificInit(!1),n||(t._initialized=!0),t._correctAxes(),n||t._forceRender()},_correctAxes:f,_createHtmlStructure:function(){var n=this,t=n._renderer,i=t.root;n._backgroundRect=t.rect().attr({fill:"gray",opacity:.0001}).append(i),n._panesBackgroundGroup=t.g().attr({"class":"dxc-background"}).append(i),n._stripsGroup=t.g().attr({"class":"dxc-strips-group"}).linkOn(i,"strips"),n._gridGroup=t.g().attr({"class":"dxc-grids-group"}).linkOn(i,"grids"),n._axesGroup=t.g().attr({"class":"dxc-axes-group"}).linkOn(i,"axes"),n._constantLinesGroup=t.g().attr({"class":"dxc-constant-lines-group"}).linkOn(i,"constant-lines"),n._labelAxesGroup=t.g().attr({"class":"dxc-strips-labels-group"}).linkOn(i,"strips-labels"),n._panesBorderGroup=t.g().attr({"class":"dxc-border"}).linkOn(i,"border"),n._seriesGroup=t.g().attr({"class":"dxc-series-group"}).linkOn(i,"series"),n._labelsGroup=t.g().attr({"class":"dxc-labels-group"}).linkOn(i,"labels"),n._crosshairCursorGroup=t.g().attr({"class":"dxc-crosshair-cursor"}).linkOn(i,"crosshair"),n._titleGroup=t.g().attr({"class":"dxc-title"}).linkOn(i,"title"),n._legendGroup=t.g().attr({"class":"dxc-legend",clipId:n._getCanvasClipRectID()}).linkOn(i,"legend"),n._scrollBarGroup=t.g().attr({"class":"dxc-scroll-bar"}).linkOn(i,"scroll-bar")},_disposeObjectsInArray:function(t,i){n.each(this[t]||[],function(t,r){i&&r?n.each(i,function(n,t){r[t]&&r[t].dispose()}):r&&r.dispose()}),this[t]=null},_disposeCore:function(){var t=this,n=function(n){t[n]&&(t[n].dispose(),t[n]=null)},i=function(n){t[n].linkOff()},r=this._disposeObjectsInArray;clearTimeout(t._delayedRedraw),t._renderer.stopAllAnimations(),r.call(t,"businessRanges",["arg","val"]),t.translators=null,r.call(t,"series"),n("layoutManager"),n("tracker"),n("chartTitle"),n("_crosshair"),t.paneAxis=null,t._userOptions=null,t._canvas=null,i("_stripsGroup"),i("_gridGroup"),i("_axesGroup"),i("_constantLinesGroup"),i("_labelAxesGroup"),i("_panesBorderGroup"),i("_seriesGroup"),i("_labelsGroup"),i("_crosshairCursorGroup"),i("_titleGroup"),i("_legendGroup"),i("_scrollBarGroup"),n("_canvasClipRect"),n("_panesBackgroundGroup"),n("_stripsGroup"),n("_gridGroup"),n("_axesGroup"),n("_constantLinesGroup"),n("_labelAxesGroup"),n("_panesBorderGroup"),n("_seriesGroup"),n("_labelsGroup"),n("_crosshairCursorGroup"),n("_titleGroup"),n("_legendGroup"),n("_scrollBarGroup")},_getAnimationOptions:function(){return n.extend({},tt,this._themeManager.getOptions("animation"))},_getDefaultSize:function(){return{width:400,height:400}},_getOption:function(n){return this._themeManager.getOptions(n)},_reinitDataSource:function(){this._refreshDataSource()},_applySize:f,_resize:function(){this._updateLockCount?this._processRefreshData(v):this._render(this.__renderOptions||{animate:!1,isResize:!0,updateTracker:!1})},_createTracker:function(){var n=this,t=n._themeManager;n.tracker&&n.tracker.dispose(),n.tracker=u.factory.createTracker({seriesSelectionMode:t.getOptions("seriesSelectionMode"),pointSelectionMode:t.getOptions("pointSelectionMode"),seriesGroup:n._seriesGroup,renderer:n._renderer,tooltip:n._tooltip,eventTrigger:n._eventTrigger},n.NAME)},_getTrackerSettings:function(){var t=this;return{series:t.series,legend:t.legend,legendCallback:n.proxy(t.legend.getActionCallback,t.legend)}},_updateTracker:function(){this.tracker.update(this._getTrackerSettings())},_render:function(t){var i=this,r,e,f;i._initialized&&i._canvas&&(i._resetIsReady(),r=i._prepareDrawOptions(t),f=r.recreateCanvas,clearTimeout(i._delayedRedraw),e=i._canvas,i._canvas=n.extend({},i._canvas),f?i.__currentCanvas=i._canvas:i._canvas=i.__currentCanvas,f&&i._updateCanvasClipRect(),i._renderer.stopAllAnimations(!0),u._setCanvasValues(i._canvas),i._cleanGroups(r),i._renderElements(r),i._checkLoadingIndicatorHiding(i._dataSource&&i._dataSource.isLoaded()),i._canvas=e)},_renderElements:function(t){function y(){r._renderSeries(t,u,o)}var r=this,e=r._prepareToRender(t),u=r._isRotated(),o=r._isLegendInside(),l=[],a=r._getLayoutTargets(),v=n.extend({},r._canvas),f,s,h,c;t.isResize||r._scheduleLoadingIndicatorHiding(),r._renderTitleAndLegend(t,o),r._renderAxes(t,e,u),t.drawTitle&&t.drawLegend&&t.adjustAxes&&r.layoutManager.needMoreSpaceForPanesCanvas(r._getLayoutTargets(),u)&&(r.layoutManager.updateDrawnElements(r._getAxesForTransform(u),r._canvas,v,r._getLayoutTargets(),u),r.chartTitle&&r.layoutManager.correctSizeElement(r.chartTitle,r._canvas),r._updateCanvasClipRect(v),r._updateAxesLayout(t,e,u)),t.drawTitle&&t.drawLegend&&t.adjustAxes&&r.layoutManager.placeDrawnElements(r._canvas),r._applyClipRects(e),r._appendSeriesGroups(),r._createCrosshairCursor(),n.each(a,function(){var n=this.canvas;l.push({left:n.left,right:n.width-n.right,top:n.top,bottom:n.height-n.bottom})}),r._scrollBar&&(f=r.businessRanges[0].arg,f.categories&&f.categories.length<=1?s=h=i:(s=f.minVisible,h=f.maxVisible),r._scrollBar.init(f,a[0].canvas).setPosition(s,h)),t.updateTracker&&r._updateTracker(),r.tracker.setCanvases({left:0,right:r._canvas.width,top:0,bottom:r._canvas.height},l),r._updateLegendPosition(t,o),c=r._getSeriesRenderTimeout(t),c>=0?r._delayedRedraw=setTimeout(y,c):y()},_createCrosshairCursor:f,_appendSeriesGroups:function(){this._seriesGroup.linkAppend(),this._labelsGroup.linkAppend(),this._appendAdditionalSeriesGroups()},_renderSeries:function(n,t,i){var r=this,u=r._themeManager,f=u.getOptions("resolveLabelOverlapping");n.hideLayoutLabels=r.layoutManager.needMoreSpaceForPanesCanvas(r._getLayoutTargets(),r._isRotated())&&!u.getOptions("adaptiveLayout").keepLabels,r._drawSeries(n,t),f!=="none"&&r._resolveLabelOverlapping(f),r._adjustSeries(),r._renderTrackers(i),r.tracker.repairTooltip(),r._drawn(),r._renderCompleteHandler()},_getAnimateOption:function(n,t){return t.animate&&n.getPoints().length<=t.animationPointsLimit&&this._renderer.animationEnabled()},_resolveLabelOverlapping:function(t){var i;switch(t){case"stack":i=this._resolveLabelOverlappingStack;break;case"hide":i=this._resolveLabelOverlappingHide;break;case"shift":i=this._resolveLabelOverlappingShift}n.isFunction(i)&&i.call(this)},_getVisibleSeries:function(){return n.grep(this.getAllSeries(),function(n){return n.isVisible()})},_resolveLabelOverlappingHide:function(){for(var i=[],r,u,e,o,t,f,s=this._getVisibleSeries(),n=0;n<s.length;n++)for(f=s[n].getVisiblePoints(),t=0;t<f.length;t++)i.push(f[t].getLabel());for(i=[].concat.apply([],i),n=0;n<i.length;n++)if(r=i[n],e=r.getBoundingRect(),r.isVisible())for(t=n+1;t<i.length;t++)u=i[t],o=u.getBoundingRect(),lt(e,o)&&u.hide()},_cleanGroups:function(n){var t=this;t._stripsGroup.linkRemove().clear(),t._gridGroup.linkRemove().clear(),t._axesGroup.linkRemove().clear(),t._constantLinesGroup.linkRemove().clear(),t._labelAxesGroup.linkRemove().clear(),t._labelsGroup.linkRemove().clear(),t._crosshairCursorGroup.linkRemove().clear(),(!n||n.drawLegend)&&t._legendGroup.linkRemove().clear(),(!n||n.drawTitle)&&t._titleGroup.linkRemove().clear()},_drawTitle:function(){var n=this,t=n._themeManager.getOptions("title"),i=n._canvas.width-n._canvas.left-n._canvas.right;t._incidentOccured=n._incidentOccured,n.chartTitle?n.chartTitle.update(t,i):n.chartTitle=u.factory.createTitle(n._renderer,t,n._titleGroup)},_createLegend:function(){var n=ct(this._legendDataField);this.legend=h.CoreFactory.createLegend({renderer:this._renderer,group:this._legendGroup,backgroundClass:"dxc-border",itemGroupClass:"dxc-item",textField:n.textField,getFormatObject:n.getFormatObject})},_updateLegend:function(){var n=this,i=n._themeManager,t=i.getOptions("legend"),r=n._getLegendData();t.containerBackgroundColor=i.getOptions("containerBackgroundColor"),t._incidentOccured=n._incidentOccured,n.legend.update(r,t)},_prepareDrawOptions:function(t){var r=this._getAnimationOptions(),i;return i=n.extend({},{force:!1,adjustAxes:!0,drawLegend:!0,drawTitle:!0,adjustSeriesLabels:!0,animate:r.enabled,animationPointsLimit:r.maxPointCountSupported,asyncSeriesRendering:r.asyncSeriesRendering,updateTracker:!0},t,this.__renderOptions),k(i.recreateCanvas)||(i.recreateCanvas=i.adjustAxes&&i.drawLegend&&i.drawTitle),i},_processRefreshData:function(t){var i=n.inArray(this._currentRefreshData,y),r=n.inArray(t,y);(!this._currentRefreshData||i>=0&&r<i)&&(this._currentRefreshData=t)},_getLegendData:function(){var n=this;return w(this._getLegendTargets(),function(t){var i=t.getLegendStyles(),u,r=i.normal.opacity;return t.isVisible()||((!k(r)||r>l)&&(r=l),u=l),{text:t[n._legendItemTextField],id:t.index,textOpacity:u,states:{hover:i.hover,selection:i.selection,normal:nt({},i.normal,{opacity:r})}}})},_seriesVisibilityChanged:function(){this._specialProcessSeries(),this._populateBusinessRange(),this._renderer.stopAllAnimations(!0),this._updateLegend(),this._render({force:!0,asyncSeriesRendering:!1,updateTracker:!1})},_disposeSeries:function(){var t=this;n.each(t.series||[],function(n,t){t.dispose()}),t.series=null,n.each(t.seriesFamilies||[],function(n,t){t.dispose()}),t.seriesFamilies=null,t._needHandleRenderComplete=!0},_optionChanged:function(n){var t=this,r=t._themeManager,i=n.name;if(r.resetOptions(i),r.update(t._options),t._scheduleLoadingIndicatorHiding(),i==="animation"){t._renderer.updateAnimationOptions(t._getAnimationOptions());return}switch(i){case"size":case"margin":t._invalidate();break;case"dataSource":t._needHandleRenderComplete=!0,t._processRefreshData(a);break;case"palette":r.updatePalette(t.option(i)),t._refreshSeries(o);break;case"series":case"commonSeriesSettings":case"containerBackgroundColor":case"dataPrepareSettings":t._refreshSeries(o);break;case"legend":case"seriesTemplate":t._processRefreshData(o);break;case"title":t._processRefreshData(s);break;case"valueAxis":case"argumentAxis":case"commonAxisSettings":case"panes":case"defaultPane":t._refreshSeries(e),t.paneAxis={};break;case"rotated":t._createScrollBar(),t._refreshSeries(e);break;case"customizePoint":case"customizeLabel":t._refreshSeries(e);break;case"scrollBar":t._createScrollBar(),t._processRefreshData(s);break;case"tooltip":t._organizeStackPoints();break;default:t._processRefreshData(e)}t.callBase.apply(t,arguments)},_handleThemeOptionsCore:function(){var n=this;n._initialized&&(n._scheduleLoadingIndicatorHiding(),n._refreshSeries("_reinit"),n.beginUpdate(),n._invalidate(),n.endUpdate())},_refreshSeries:function(n){this._disposeSeries(),this._processRefreshData(n)},_refresh:function(){var n=this._currentRefreshData||s;this._currentRefreshData=null,this._renderer.stopAllAnimations(!0),this[n]()},_dataSourceOptions:function(){return{paginate:!1}},_updateCanvasClipRect:function(n){var t=this,i,r;n=n||t._canvas,i=Math.max(n.width-n.left-n.right,0),r=Math.max(n.height-n.top-n.bottom,0),t._canvasClipRect.attr({x:n.left,y:n.top,width:i,height:r}),t._backgroundRect.attr({x:n.left,y:n.top,width:i,height:r})},_getCanvasClipRectID:function(){return this._canvasClipRect.id},_dataSourceChangedHandler:function(){this._resetZoom(),this._scheduleLoadingIndicatorHiding(),this._dataInit()},_dataInit:function(){clearTimeout(this._delayedRedraw),this._dataSpecificInit(!0)},_dataSpecificInit:function(n){var t=this;t.series=t.series||t._populateSeries(),t._repopulateSeries(),t._seriesPopulatedHandlerCore(),t._populateBusinessRange(),t._updateLegend(),n&&t._forceRender()},_forceRender:function(){var n=this;n._endLoading(function(){n._render({force:!0})})},_repopulateSeries:function(){var i=this,f,r=i._themeManager,u=i._dataSource&&i._dataSource.items(),o=r.getOptions("dataPrepareSettings"),e=r.getOptions("seriesTemplate");i._dataSource&&e&&(i._templatedSeries=p.processSeriesTemplate(e,i._dataSource.items()),i._populateSeries(),delete i._templatedSeries,u=i.teamplateData||u),i._groupSeries(),i._dataValidator=t.viz.core.CoreFactory.createDataValidator(u,i._groupedSeries,i._incidentOccured,o),f=i._dataValidator.validate(),r.resetPalette(),n.each(i.series,function(n,t){t.updateData(f),i._processSingleSeries(t)}),i._organizeStackPoints()},_organizeStackPoints:function(){var t=this,i=t._themeManager,r=i.getOptions("tooltip").shared,u={};n.each(t.series||[],function(n,i){t._resetStackPoints(i),r&&t._prepareStackPoints(i,u,!0)})},_renderCompleteHandler:function(){var t=this,i=!0;t._needHandleRenderComplete&&(n.each(t.series,function(n,t){i=i&&t.canRenderCompleteHandle()}),i&&(t._needHandleRenderComplete=!1,t._eventTrigger("done",{target:t})))},_renderTitleAndLegend:function(n,t){var i=this,f=i._themeManager.getOptions("title"),u=f.text&&n.drawTitle,e=n.drawLegend&&i.legend,r=[];u&&(i._titleGroup.linkAppend(),i._drawTitle(),r.push(i.chartTitle)),e&&(i._legendGroup.linkAppend(),t||r.push(i.legend)),r.length&&i.layoutManager.drawElements(r,i._canvas),u&&i.layoutManager.correctSizeElement(i.chartTitle,i._canvas)},_prepareStackPoints:f,_resetStackPoints:f,_resetZoom:f,_dataIsReady:function(){return this._isDataSourceReady()},getAllSeries:function(){return this.series.slice()},getSeriesByName:function(t){var i=null;return n.each(this.series,function(n,r){if(r.name===t)return i=r,!1}),i},getSeriesByPos:function(n){return this.series[n]},clearSelection:function(){this.tracker.clearSelection()},hideTooltip:function(){this.tracker._hideTooltip()},render:function(n){var t=this;return t.__renderOptions=n,t.__forceRender=n&&n.force,t.callBase.apply(t,arguments),t.__renderOptions=t.__forceRender=null,t},getSize:function(){var n=this._canvas||{};return{width:n.width,height:n.height}}}).include(c.DataHelperMixin)}(jQuery,DevExpress),function(n,t,i){function v(n){return c(n)?n.length===0?[{}]:n:[n]}function p(n,t,r,u){n.minVal=t.min,n.maxVal=t.max,r&&(n.minArg=n.minArg===i?u.arg.min:n.minArg,n.maxArg=n.maxArg===i?u.arg.max:n.maxArg)}function w(n,t,i){r(n,function(n,u){r(i.getTeamplatedFields(),function(n,t){u[t.teamplateField]=u[t.originalField]}),t.push(u)}),i.updateTeamplateFieldNames()}var h=t.viz.charts,e=t.utils,o=t.viz.core,y="defaultAxisName",c=e.isArray,l=e.isDefined,r=n.each,s=n.extend,a=o.utils.map,u="min",f="max";h.AdvancedChart=h.BaseChart.inherit({_dispose:function(){var n=this,t=this._disposeObjectsInArray;n.callBase(),n.panes=null,n.legend&&(n.legend.dispose(),n.legend=null),t.call(n,"panesBackground"),t.call(n,"seriesFamilies"),n._disposeAxes()},_reinitAxes:function(){this.translators={},this.panes=this._createPanes(),this._populateAxes()},_populateSeries:function(){var t=this,r=t._themeManager,l=!!r.getOptions("seriesTemplate"),e=l?t._templatedSeries:t.option("series"),a=c(e)?e:e?[e]:[],v,y=t._getExtraOptions(),i,u,p=t._isRotated(),f,h;for(t.teamplateData=[],t._disposeSeries(),t.series=[],r.resetPalette(),f=0;f<a.length;f++)(i=s(!0,{},a[f],y),v=i.data,i.data=null,i.rotated=p,i.customizePoint=r.getOptions("customizePoint"),i.customizeLabel=r.getOptions("customizeLabel"),i.visibilityChanged=n.proxy(t._seriesVisibilityChanged,t),i.resolveLabelsOverlapping=r.getOptions("resolveLabelsOverlapping"),i.incidentOccured=t._incidentOccured,i.name||(i.name="Series "+(f+1).toString()),h=r.getOptions("series",i),t._checkPaneName(h))&&(u=o.CoreFactory.createSeries({renderer:t._renderer,seriesGroup:t._seriesGroup,labelsGroup:t._labelsGroup},h),u.isUpdated?(u.index=t.series.length,t.series.push(u),l&&w(v,t.teamplateData,u)):t._incidentOccured("E2101",[h.type]));return t.series},_populateAxes:function(){function it(){return y+tt++}var t=this,c=[],l,u=t.panes,f=t._isRotated(),d=t.option("valueAxis")||{},g=t.option("argumentAxis")||{},e=v(g)[0],nt=v(d),p=[],tt=0,s,h=t._getCrosshairOptions()||{},w=h.enabled,b=w&&h.horizontalLine.visible,k=w&&h.verticalLine.visible;t._disposeAxes(),s=f?e.position==="right"?u[u.length-1].name:u[0].name:e.position==="top"?u[0].name:u[u.length-1].name,l=a(u,function(n){return t._createAxis("argumentAxis",e,{virtual:n.name!==s,pane:n.name,crosshairEnabled:f?b:k},f)}),r(nt,function(u,e){var s=[],h=e.name;if(h&&n.inArray(h,p)!==-1){t._incidentOccured("E2102");return}h&&p.push(h),e.pane&&s.push(e.pane),e.panes&&e.panes.length&&(s=s.concat(e.panes.slice(0))),s=o.utils.unique(s),s.length||s.push(i),r(s,function(n,i){c.push(t._createAxis("valueAxis",e,{name:h||it(),pane:i,priority:u,crosshairEnabled:f?k:b},f))})}),t._valueAxes=c,t._argumentAxes=l},_prepareStackPoints:function(n,t,i){var f=n.getPoints(),u=n.getStackName();r(f,function(n,f){var e=f.argument;t[e]||(t[e]={},t[e][null]=[]),u&&!c(t[e][u])&&(t[e][u]=[],r(t[e][null],function(n,i){i.stackName||t[e][u].push(i)})),u?(t[e][u].push(f),t[e][null].push(f)):r(t[e],function(n,t){t.push(f)}),i&&(f.stackPoints=t[e][u],f.stackName=u)})},_resetStackPoints:function(n){r(n.getPoints(),function(n,t){t.stackPoints=null,t.stackName=null})},_disposeAxes:function(){var n=this._disposeObjectsInArray;n.call(this,"_argumentAxes"),n.call(this,"_valueAxes")},_drawAxes:function(n,t,i){var u=this,f=function(n){r(n,function(n,t){t.draw(i)})},e=function(t){r(t,function(t,i){i.drawGrids(n[i.pane])})};u._reinitTranslators(),u._prepareAxesAndDraw(f,e,t)},_appendAdditionalSeriesGroups:function(){this._crosshairCursorGroup.linkAppend(),this._scrollBar&&this._scrollBarGroup.linkAppend()},_getLegendTargets:function(){return a(this.series,function(n){return n.getOptions().showInLegend?n:null})},_legendItemTextField:"name",_seriesPopulatedHandlerCore:function(){this._processSeriesFamilies(),this._processValueAxisFormat()},_renderTrackers:function(){for(var t=this,n=0;n<t.series.length;++n)t.series[n].drawTrackers()},_specialProcessSeries:function(){this._processSeriesFamilies()},_processSeriesFamilies:function(){var t=this,u=[],f=[],e,s=t._themeManager,i={equalBarWidth:t._getEqualBarWidth(),minBubbleSize:s.getOptions("minBubbleSize"),maxBubbleSize:s.getOptions("maxBubbleSize")};if(t.seriesFamilies&&t.seriesFamilies.length){r(t.seriesFamilies,function(n,t){t.updateOptions(i),t.adjustSeriesValues()});return}r(t.series,function(t,i){n.inArray(i.type,u)===-1&&u.push(i.type)}),r(t._getLayoutTargets(),function(n,s){e=t._getSeriesForPane(s.name),r(u,function(n,r){var u=o.CoreFactory.createSeriesFamily({type:r,pane:s.name,equalBarWidth:i.equalBarWidth,minBubbleSize:i.minBubbleSize,maxBubbleSize:i.maxBubbleSize,rotated:t._isRotated(),sortSeriesPointsByAxis:t._getOption("sortSeriesPointsByAxis")});u.add(e),u.adjustSeriesValues(),f.push(u)})}),t.seriesFamilies=f},_appendAxesGroups:function(){var n=this;n._stripsGroup.linkAppend(),n._gridGroup.linkAppend(),n._axesGroup.linkAppend(),n._constantLinesGroup.linkAppend(),n._labelAxesGroup.linkAppend()},_updateAxesLayout:function(n,t,i){this.layoutManager.updatePanesCanvases(this._getLayoutTargets(),this._canvas,i),this._drawAxes(t,n,!0)},_populateBusinessRange:function(n){var u=this,s=[],l=u._themeManager,h=u._isRotated(),a=l.getOptions("useAggregation"),f=u._argumentAxes,c=f[f.length-1],v=c.calcInterval,t=new o.Range({rotated:!!h}),e;u._disposeObjectsInArray("businessRanges",["arg","val"]),r(f,function(n,i){t.addRange(i.getRangeData())}),r(u._groupedSeries,function(u,f){var e=new o.Range({rotated:!!h,isValueRange:!0,pane:f.valueAxis.pane,axis:f.valueAxis.name}),c=f.valueAxis.getRangeData();e.addRange(c),r(f,function(i,r){n&&p(n,c,a,r.getRangeData());var u=r.getRangeData(n,v);e.addRange(u.val),t.addRange(u.arg)}),e.isDefined()||e.setStubData(f.valueAxis.getOptions().valueType==="datetime"?"datetime":i),f.valueAxis.getOptions().showZero&&e.correctValueZeroLevel(),e.checkZeroStick(),s.push({val:e,arg:t})}),t.isDefined()||t.setStubData(f[0].getOptions().argumentType),n&&n.notApplyMargins&&t.axisType!=="discrete"&&(e=f[0].getTranslator().getBusinessRange(),t.addRange({min:e.min,max:e.max,stick:!0})),u._correctBusinessRange(t,c),u.businessRanges=s},_correctBusinessRange:function(t,i){var h=i.getOptions().setTicksAtUnitBeginning,o={},r=i.getOptions().tickInterval,s=r;r=n.isNumeric(r)?r:e.dateToMilliseconds(r),r&&l(t[u])&&l(t[f])&&r>=Math.abs(t[f]-t[u])&&(e.isDate(t[u])?(n.isNumeric(s)?(o[u]=new Date(t[u].valueOf()-r),o[f]=new Date(t[f].valueOf()+r)):(o[u]=e.addInterval(t[u],s,!0),o[f]=e.addInterval(t[f],s,!1)),h&&(e.correctDateWithUnitBeginning(o[f],s),e.correctDateWithUnitBeginning(o[u],s))):(o[u]=t[u]-r,o[f]=t[f]+r),t.addRange(o))},_getArgumentAxes:function(){return this._argumentAxes},_getValueAxes:function(){return this._valueAxes},_processValueAxisFormat:function(){var i=this,u=i._valueAxes,t=[];r(i.series,function(){this.isFullStackedSeries()&&n.inArray(this.axis,t)===-1&&t.push(this.axis)}),r(u,function(){n.inArray(this.name,t)!==-1?this.setPercentLabelFormat():this.resetAutoLabelFormat()})},_createAxis:function(n,t,i,r){var u=this,e=s({renderer:u._renderer,incidentOccured:u._incidentOccured,axisClass:n==="argumentAxis"?"arg":"val",stripsGroup:u._stripsGroup,labelAxesGroup:u._labelAxesGroup,constantLinesGroup:u._constantLinesGroup,axesContainerGroup:u._axesGroup,gridGroup:u._gridGroup},u._getAxisRenderingOptions(n,t,r)),f;return t=u._prepareStripsAndConstantLines(n,t,r),f=new h.axes.Axis(e),f.updateOptions(s(!0,{},t,i,u._prepareAxisOptions(n,t))),f},_getTrackerSettings:function(){return s(this.callBase(),{argumentAxis:this._argumentAxes})},_prepareStripsAndConstantLines:function(n,t,i){return t=this._themeManager.getOptions(n,t,i),t.strips&&r(t.strips,function(n){t.strips[n]=s(!0,{},t.stripStyle,t.strips[n])}),t.constantLines&&r(t.constantLines,function(n,i){t.constantLines[n]=s(!0,{},t.constantLineStyle,i)}),t},_legendDataField:"series",_adjustSeries:n.noop})}(jQuery,DevExpress),function(n,t,i){function d(n,t){for(var r,i=0;i<n.length;i++)if(n[i].pane===t){r=n[i].name;break}return r||(r=n[0].name),r}function g(n,t,i){var f=[],u;r(n,function(n,i){i.pane===t&&f.push(i)}),f.length>1&&i&&r(f,function(n,t){var i=t.getOptions().grid,r=t.getOptions().minorGrid;u&&i&&i.visible?(i.visible=!1,r&&(r.visible=!1)):u=u?u:i&&i.visible})}function nt(n,t){var i;return r(n,function(n,u){r(u,function(r){if(t===r)return i=n,!1})}),i}function tt(n,t,i){for(var u,r=0;r<t.length;r++)if(t[r].name===i){u=t[r],u.priority=r;break}if(!u)for(r=0;r<n.length;r++)if(n[r].name===i){u=n[r].getOptions(),u.priority=n[r].priority;break}return u}function y(n,t,i){for(var r,u=0;u<i.length;u++)if(r=i[u],r.name===t&&r.pane===n)return r}function it(n,t,i,u,f){var y=~~((i<u?i:u)/2),p=f.width||0,s=p<y?p:y;n=n+s/2,t=t+s/2,i=i-s,u=u-s;var h=n+i,c=t+u,o=[],e=[],l,a=0,v=0,w={top:[[n,t],[h,t]],right:[[h,t],[h,c]],bottom:[[h,c],[n,c]],left:[[n,c],[n,t]]};r(w,function(n){var t=!!f[n];a=a*2+~~t});switch(a){case 13:case 9:l=["left","top","right","bottom"];break;case 11:l=["bottom","left","top","right"];break;default:l=["top","right","bottom","left"]}return r(l,function(n,t){var i=!!f[t];!v&&e.length&&(o.push(e),e=[]),i&&r(w[t].slice(v),function(n,t){e=e.concat(t)}),v=~~i}),e.length&&o.push(e),o.length===1&&(o=o[0]),{points:o,pathType:a===15?"area":"line"}}function s(n,t){r(n||[],function(n,i){i&&i.attr(t)})}function p(n){r(n,function(n,t){r(t,function(n,t){t.arg.reinit(),t.val.reinit()})})}function rt(n,t){return n.priority-t.priority}var h=t.viz,u=h.core,f=h.charts,a=t.utils,w=5,c="default",b=25,k=[{name:c,border:{}}],v=u.utils.map,r=n.each,e=n.extend,l=a.isArray,o=a.isDefined;t.registerComponent("dxChart",h.charts,f.AdvancedChart.inherit({_chartType:"chart",_setDefaultOptions:function(){this.callBase(),this.option({defaultPane:c})},_initCore:function(){this.paneAxis={},this._panesClipRects={},this.callBase()},_disposeCore:function(){var n=this,t=this._disposeObjectsInArray,i=n._panesClipRects;n.callBase(),t.call(i,"fixed"),t.call(i,"base"),t.call(i,"wide"),n._panesClipRects=null},_correctAxes:function(){this._correctValueAxes()},_getExtraOptions:n.noop,_processSingleSeries:n.noop,_groupSeries:function(){var t=this,o=t.panes,u=t._valueAxes,s=v(o,function(n){return n.name}),e=t.series,i=t.paneAxis,h=t._themeManager.getOptions("synchronizeMultiAxes"),f=t._groupedSeries=[];r(e,function(n,t){t.axis=t.axis||d(u,t.pane),t.axis&&(i[t.pane]=i[t.pane]||{},i[t.pane][t.axis]=!0)}),r(u,function(t,r){r.name&&r.pane&&n.inArray(r.pane,s)!==-1&&(i[r.pane]=i[r.pane]||{},i[r.pane][r.name]=!0)}),t._correctValueAxes(),r(i,function(n,t){g(u,n,h),r(t,function(t){var i=[];r(e,function(r,u){u.pane===n&&u.axis===t&&i.push(u)}),f.push(i),i.valueAxis=y(n,t,u),i.valueOptions=i.valueAxis.getOptions()})}),f.argumentAxes=t._argumentAxes,f.argumentOptions=f.argumentAxes[0].getOptions()},_cleanPanesClipRects:function(n){var t=this,i=t._panesClipRects[n];r(i||[],function(n,t){t&&t.dispose()}),t._panesClipRects[n]=[]},_createPanes:function(){var i=this,t=i.option("panes"),f=0,u;return(t&&l(t)&&!t.length||n.isEmptyObject(t))&&(t=k),i._cleanPanesClipRects("fixed"),i._cleanPanesClipRects("base"),i._cleanPanesClipRects("wide"),i.defaultPane=i.option("defaultPane"),t=e(!0,[],l(t)?t:t?[t]:[]),r(t,function(n,t){t.name=o(t.name)?t.name:c+f++}),!i._doesPaneExists(t,i.defaultPane)&&t.length>0&&(u=t[t.length-1].name,i._incidentOccured("W2101",[i.defaultPane,u]),i.defaultPane=u),t=i._isRotated()?t.reverse():t},_doesPaneExists:function(n,t){var i=!1;return r(n,function(n,r){if(r.name===t)return i=!0,!1}),i},_getAxisRenderingOptions:function(n,t,i){return{axesType:"xyAxes",drawingType:"linear",isHorizontal:n==="argumentAxis"?!i:i}},_prepareAxisOptions:n.noop,_checkPaneName:function(t){var i=v(this.panes,function(n){return n.name});return t.pane=t.pane||this.defaultPane,n.inArray(t.pane,i)!==-1},_correctValueAxes:function(){var t=this,o=t._isRotated(),f=t.option("valueAxis")||{},s=l(f)?f:[f],i=t._valueAxes||[],h=i[0].name,u=t.paneAxis,e={};r(i,function(n,i){var r;i.pane||(r=nt(u,i.name),r||(r=t.defaultPane,(u[r]=u[r]||{})[i.name]=!0),i.setPane(r))}),r(t.panes,function(n,t){var i=t.name;u[i]||(u[i]={},u[i][h]=!0)}),r(u,function(n,u){r(u,function(r){var u;e[r+"-"+n]=!0,y(n,r,i)||(u=tt(i,s,r),u||(t._incidentOccured("W2102",[r]),u={name:r,priority:i.length}),i.push(t._createAxis("valueAxis",u,{pane:n,name:r},o)))})}),t._valueAxes=n.grep(i,function(n){return!!e[n.name+"-"+n.pane]}).sort(rt)},_getSeriesForPane:function(n){var t=[];return r(this.series,function(i,r){r.pane===n&&t.push(r)}),t},_createTranslator:function(n,t,i){return u.CoreFactory.createTranslator2D(n,t,i)},_createPanesBorderOptions:function(){var t=this._themeManager.getOptions("commonPaneSettings").border,n={};return r(this.panes,function(i,r){n[r.name]=e(!0,{},t,r.border)}),n},_createScrollBar:function(){var n=this,t=n._themeManager.getOptions("scrollBar")||{},i=n._scrollBarGroup;t.visible?(t.rotated=n._isRotated(),n._scrollBar=(n._scrollBar||f.factory.createScrollBar(n._renderer,i)).update(t)):(i.linkRemove(),n._scrollBar&&n._scrollBar.dispose(),n._scrollBar=null)},_prepareToRender:function(n){var t=this,i=t._createPanesBorderOptions();return t._createPanesBackground(),t._appendAxesGroups(),t._transformed&&t._resetTransform(),t._createTranslators(n),t._options.useAggregation&&r(t.series,function(n,i){i.resamplePoints(t._getTranslator(i.pane,i.axis).arg,t._zoomMinArg,t._zoomMaxArg)}),(t._options.useAggregation||o(t._zoomMinArg)||o(t._zoomMaxArg))&&(t._populateBusinessRange({adjustOnZoom:t._themeManager.getOptions("adjustOnZoom"),minArg:t._zoomMinArg,maxArg:t._zoomMaxArg,notApplyMargins:t._notApplyMargins}),t._updateTranslators()),i},_isLegendInside:function(){return this.legend&&this.legend.getPosition()==="inside"},_renderAxes:function(n,t,i){n&&n.recreateCanvas&&this.layoutManager.updatePanesCanvases(this.panes,this._canvas,i),this._drawAxes(t,n)},_isRotated:function(){return this._themeManager.getOptions("rotated")},_getLayoutTargets:function(){return this.panes},_applyClipRects:function(n){var t=this,r=t._getCanvasClipRectID(),i;for(t._drawPanesBorders(n),t._createClipRectsForPanes(),i=0;i<t._argumentAxes.length;i++)t._argumentAxes[i].applyClipRects(t._getElementsClipRectID(t._argumentAxes[i].pane),r);for(i=0;i<t._valueAxes.length;i++)t._valueAxes[i].applyClipRects(t._getElementsClipRectID(t._valueAxes[i].pane),r);t._fillPanesBackground()},_getSeriesRenderTimeout:function(n){return n.asyncSeriesRendering?b:i},_updateLegendPosition:function(n,t){var u=this;if(n.drawLegend&&u.legend&&t){var i=u.panes,r=e({},i[0].canvas),o=f.factory.createChartLayoutManager();r.right=i[i.length-1].canvas.right,r.bottom=i[i.length-1].canvas.bottom,o.drawElements([u.legend],r),o.placeDrawnElements(r)}},_drawSeries:function(n,t){var i=this;r(i.seriesFamilies||[],function(n,t){var r=i._getTranslator(t.pane)||{};t.updateSeriesValues(r),t.adjustSeriesDimensions(r)}),r(i.series,function(r,u){i._applyPaneClipRect(u),u.setAdjustSeriesLabels(n.adjustSeriesLabels);var e=i._getTranslator(u.pane,u.axis),f={};f[t?"x":"y"]=e.val,f[t?"y":"x"]=e.arg,u.draw(f,i._getAnimateOption(u,n),n.hideLayoutLabels,i.legend&&i.legend.getActionCallback(u))})},_applyPaneClipRect:function(n){var t=this,i=t._getPaneIndex(n.pane),r=t._panesClipRects,u=r.wide[i];n.setClippingParams(r.base[i].id,u&&u.id,t._getPaneBorderVisibility(i))},_createTranslators:function(n){var t=this,f=t._isRotated(),i;n.recreateCanvas&&(t.translators=i={},t.layoutManager.updatePanesCanvases(t.panes,t._canvas,f),r(t.paneAxis,function(n,e){i[n]=i[n]||{},r(e,function(r){var e=t._createTranslator(new u.Range(t._getBusinessRange(n,r).val),t._getCanvasForPane(n),f?{direction:"horizontal"}:{});e.pane=n,e.axis=r,i[n][r]={val:e}})}),r(t._argumentAxes,function(n,e){var o=t._createTranslator(new u.Range(t._getBusinessRange(e.pane).arg),t._getCanvasForPane(e.pane),f?{}:{direction:"horizontal"});r(i[e.pane],function(n,t){t.arg=o})}))},_updateTranslators:function(){var n=this;r(n.translators,function(t,i){r(i,function(i,r){r.arg.updateBusinessRange(new u.Range(n._getBusinessRange(t).arg)),delete r.arg._originalBusinessRange,r.val.updateBusinessRange(new u.Range(n._getBusinessRange(t,i).val)),delete r.val._originalBusinessRange})})},_getAxesForTransform:function(n){return{verticalAxes:n?this._getArgumentAxes():this._getValueAxes(),horizontalAxes:n?this._getValueAxes():this._getArgumentAxes()}},_reinitTranslators:function(){var n=this;r(n._argumentAxes,function(t,i){var r=n._getTranslator(i.pane);r&&(r.arg.reinit(),i.setTranslator(r.arg,r.val))}),r(n._valueAxes,function(t,i){var r=n._getTranslator(i.pane,i.name);r&&(r.val.reinit(),i.setTranslator(r.val,r.arg))})},_prepareAxesAndDraw:function(n,t,i){var r=this,u=0,e=r.layoutManager,o=r._isRotated(),s=0,y=r._themeManager.getOptions("synchronizeMultiAxes"),h=r._getLayoutTargets(),c=o?r._argumentAxes:r._valueAxes,l=o?r._valueAxes:r._argumentAxes,a=l,v=c;r._scrollBar&&(r._scrollBar.setPane(h),o?v=[r._scrollBar].concat(v):a=a.concat([r._scrollBar]));do{for(u=0;u<r._argumentAxes.length;u++)r._argumentAxes[u].resetTicks();for(u=0;u<r._valueAxes.length;u++)r._valueAxes[u].resetTicks();y&&f.multiAxesSynchronizer.synchronize(r._valueAxes),n(l),e.requireAxesRedraw=!1,i.adjustAxes&&(e.applyHorizontalAxesLayout(a,h,o),e.stopDrawAxes||p(r.translators)),n(c),i.adjustAxes&&!e.stopDrawAxes&&(e.applyVerticalAxesLayout(v,h,o),e.stopDrawAxes||p(r.translators)),s=s+1}while(!e.stopDrawAxes&&e.requireAxesRedraw&&s<w);t(c),t(l),r._scrollBar&&r._scrollBar.applyLayout()},_getPanesParameters:function(){for(var t=this,i=t.panes,r=[],n=0;n<i.length;n++)t._getPaneBorderVisibility(n)&&r.push({coords:i[n].borderCoords,clipRect:t._panesClipRects.fixed[n]});return r},_createCrosshairCursor:function(){var n=this,t=n._themeManager.getOptions("crosshair")||{},r=n._isRotated()?[n._valueAxes,n._argumentAxes]:[n._argumentAxes,n._valueAxes],i={canvas:n._getCommonCanvas(),panes:n._getPanesParameters(),axes:r};t&&t.enabled&&(n._crosshair?n._crosshair.update(t,i):n._crosshair=f.factory.createCrosshair(n._renderer,t,i,n._crosshairCursorGroup),n._crosshair.render())},_getCommonCanvas:function(){for(var t,n,r=this.panes,i=0;i<r.length;i++)t=r[i].canvas,n?(n.right=t.right,n.bottom=t.bottom):n=e({},t);return n},_createPanesBackground:function(){var n=this,f=n._themeManager.getOptions("commonPaneSettings").backgroundColor,t,e=n._renderer,u,i,r=[];for(n._panesBackgroundGroup.clear(),i=0;i<n.panes.length;i++){if(t=n.panes[i].backgroundColor||f,!t||t==="none"){r.push(null);continue}u=e.rect(0,0,0,0).attr({fill:t,"stroke-width":0}).append(n._panesBackgroundGroup),r.push(u)}n.panesBackground=r},_fillPanesBackground:function(){var t=this,n;r(t.panes,function(i,r){n=r.borderCoords,t.panesBackground[i]!==null&&t.panesBackground[i].attr({x:n.left,y:n.top,width:n.width,height:n.height})})},_calcPaneBorderCoords:function(n){var i=n.canvas,t=n.borderCoords=n.borderCoords||{};t.left=i.left,t.top=i.top,t.right=i.width-i.right,t.bottom=i.height-i.bottom,t.width=Math.max(t.right-t.left,0),t.height=Math.max(t.bottom-t.top,0)},_drawPanesBorders:function(n){var t=this,i=t._isRotated();t._panesBorderGroup.linkRemove().clear(),r(t.panes,function(r,u){var e,f=n[u.name],o,s={fill:"none",stroke:f.color,"stroke-opacity":f.opacity,"stroke-width":f.width,dashStyle:f.dashStyle,"stroke-linecap":"square"};(t._calcPaneBorderCoords(u,i),f.visible)&&(e=u.borderCoords,o=it(e.left,e.top,e.width,e.height,f),t._renderer.path(o.points,o.pathType).attr(s).append(t._panesBorderGroup))}),t._panesBorderGroup.linkAppend()},_createClipRect:function(n,t,i,r,u,f){var o=this,e=n[t];e?e.attr({x:i,y:r,width:u,height:f}):(e=o._renderer.clipRect(i,r,u,f),n[t]=e)},_createClipRectsForPanes:function(){var n=this,t=n._canvas;r(n.panes,function(i,u){var l=!1,f=u.borderCoords,e=f.left,o=f.top,s=f.width,h=f.height,c=n._panesClipRects;n._createClipRect(c.fixed,i,e,o,s,h),n._createClipRect(c.base,i,e,o,s,h),r(n.series,function(n,t){t.pane===u.name&&(t.isFinancialSeries()||t.areErrorBarsVisible())&&(l=!0)}),l?(n._isRotated()?(o=0,h=t.height):(e=0,s=t.width),n._createClipRect(c.wide,i,e,o,s,h)):c.wide.push(null)})},_getPaneIndex:function(n){var t;return r(this.panes,function(i,r){if(r.name===n)return t=i,!1}),t},_getPaneBorderVisibility:function(n){var i=this._themeManager.getOptions("commonPaneSettings").border.visible,r=this.panes[n]||{},t=r.border||{};return"visible"in t?t.visible:i},_getElementsClipRectID:function(n){return this._panesClipRects.fixed[this._getPaneIndex(n)].id},_getTranslator:function(n,t){var u=this.translators[n],i=null;return u?(i=u[t],i||r(u,function(n,t){return i=t,!1}),i):i},_getCanvasForPane:function(n){for(var i=this.panes,r=i.length,t=0;t<r;t++)if(i[t].name===n)return i[t].canvas},_getBusinessRange:function(n,t){for(var r=this.businessRanges||[],f=r.length,u,i=0;i<f;i++)if(r[i].val.pane===n&&r[i].val.axis===t){u=r[i];break}if(!u)for(i=0;i<f;i++)if(r[i].val.pane===n){u=r[i];break}return u},_transformArgument:function(n,t){var i=this,o=i._isRotated(),f,u,e=i._panesClipRects;i._transformed||(i._transformed=!0,i._labelsGroup.remove(),i._resetIsReady(),r(i.series||[],function(n,t){t.applyClip()})),o?(f={translateY:n,scaleY:t},u={translateY:-n/t,scaleY:1/t}):(f={translateX:n,scaleX:t},u={translateX:-n/t,scaleX:1/t}),s(e.base,u),s(e.wide,u),i._seriesGroup.attr(f),i._scrollBar&&i._scrollBar.transform(-n,t)},_resetTransform:function(){var n=this,t={translateX:0,translateY:0,scaleX:null,scaleY:null},i=n._panesClipRects;s(i.base,t),s(i.wide,t),n._seriesGroup.attr(t),r(n.series||[],function(n,t){t.resetClip()}),n._transformed=!1},_getTrackerSettings:function(){var n=this,t=n._themeManager;return e(this.callBase(),{chart:n,zoomingMode:t.getOptions("zoomingMode"),scrollingMode:t.getOptions("scrollingMode"),rotated:n._isRotated(),crosshair:n._crosshair})},_resolveLabelOverlappingStack:function(){var n=this,t={},i=n._isRotated(),u=i?function(n,t){return{x:n.x-t,y:n.y}}:function(n,t){return{x:n.x,y:n.y-t}};r(this._getVisibleSeries(),function(i,r){n._prepareStackPoints(r,t)}),r(t,function(t,e){r(e,function(t,r){f.overlapping.resolveLabelOverlappingInOneDirection(r,n._getCommonCanvas(),i,u)})})},_getEqualBarWidth:function(){return this._themeManager.getOptions("equalBarWidth")},_getCrosshairOptions:function(){return this._getOption("crosshair")},zoomArgument:function(n,t,i){var r=this,u;(o(n)||o(t))&&(u=r._argumentAxes[0].zoom(n,t,i),r._zoomMinArg=u.min,r._zoomMaxArg=u.max,r._notApplyMargins=i,r._render({force:!0,drawTitle:!1,drawLegend:!1,adjustAxes:!1,animate:!1,adjustSeriesLabels:!1,asyncSeriesRendering:!1,updateTracker:!1}))},_resetZoom:function(){var n=this;n._zoomMinArg=n._zoomMaxArg=i,n._argumentAxes[0]&&n._argumentAxes[0].resetZoom()},getVisibleArgumentBounds:function(){var n=this._argumentAxes[0].getTranslator().getBusinessRange(),i=n.axisType==="discrete",t=n.categories;return{minVisible:i?n.minVisible||t[0]:n.minVisible,maxVisible:i?n.maxVisible||t[t.length-1]:n.maxVisible}}}))}(jQuery,DevExpress),function(n,t,i){var u=t.viz,f=u.core,e=u.charts,o=t.utils,s=n.extend,r=n.noop,h=t.viz.core.utils.getVerticallyShiftedAngularCoords;t.registerComponent("dxPieChart",u.charts,e.BaseChart.inherit({_chartType:"pie",_reinitAxes:r,_layoutManagerOptions:function(){var n=this._themeManager.getOptions("diameter");return o.isNumber(n)?n>1?n=1:n<0&&(n=0):n=i,s(!0,{},this.callBase(),{piePercentage:n})},_groupSeries:function(){this.series.valueOptions={valueType:"numeric"},this._groupedSeries=[this.series],this._groupedSeries.argumentOptions=this.series[0]&&this.series[0].getOptions()},_populateBusinessRange:function(){var t=[],u=this.series,i=u[0],n=new f.Range,r;this._disposeObjectsInArray("businessRanges"),i&&(r=i.getRangeData(),n.addRange(r.val),n.isDefined()||n.setStubData(),t.push(n)),this.businessRanges=t},_specialProcessSeries:function(){this.series[0].arrangePoints()},_createTranslator:function(n){return f.CoreFactory.createTranslator1D(n.min,n.max,360,0)},_populateSeries:function(){var t=this,u=t._themeManager,a=!!u.getOptions("seriesTemplate"),e=a?t._templatedSeries:t.option("series"),c=n.isArray(e)?e:e?[e]:[],l,i,h,r;return t._disposeSeries(),t.series=[],u.resetPalette(),c.length&&(i=s(!0,{},c[0]),i.type&&!o.isString(i.type)&&(i.type=""),l=i.data,i.data=null,i.incidentOccured=t._incidentOccured,r=u.getOptions("series",i,!0),r.visibilityChanged=n.proxy(t._seriesVisibilityChanged,t),r.customizePoint=u.getOptions("customizePoint"),r.customizeLabel=u.getOptions("customizeLabel"),h=f.CoreFactory.createSeries({renderer:t._renderer,seriesGroup:t._seriesGroup,labelsGroup:t._labelsGroup},r),h.isUpdated?(t._processSingleSeries(h),t.series.push(h)):t._incidentOccured("E2101",[r.type]),i.data=l),t.series},_processSingleSeries:function(n){n.arrangePoints()},_seriesPopulatedHandlerCore:r,_getLegendTargets:function(){return this.series[0]?this.series[0].getPoints():[]},_legendItemTextField:"argument",_prepareToRender:r,_isLegendInside:r,_renderAxes:r,_isRotated:r,_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getAxesForTransform:function(){return{verticalAxes:[],horizontalAxes:[]}},_updateAxesLayout:r,_applyClipRects:r,_appendAdditionalSeriesGroups:r,_getSeriesRenderTimeout:r,_drawSeries:function(t){var i=this,r=i.getSeries(),u=i.legend,f=n.proxy(u.getActionCallback,u);r&&(i.layoutManager.applyPieChartSeriesLayout(i._canvas,r,!0),r.canvas=i._canvas,r.resetLabelSetups(),r.drawLabelsWOPoints(i._createTranslator(i.businessRanges[0],i._canvas))&&i.layoutManager.applyPieChartSeriesLayout(i._canvas,r,t.hideLayoutLabels),r.draw(i._createTranslator(i.businessRanges[0],i._canvas),i._getAnimateOption(r,t),t.hideLayoutLabels,f))},_adjustSeries:function(){var n=this.getSeries();n&&n.adjustLabels()},_updateLegendPosition:r,_renderTrackers:r,_createScrollBar:r,_resolveLabelOverlappingShift:function(){function u(n,t){return h(n,-t,f)}var t=this.series[0],f=t.getCenter(),i=[],r=[];n.each(t.getVisiblePoints(),function(n,t){var u=o.normalizeAngle(t.middleAngle);(u<=90||u>=270?r:i).push(t)}),e.overlapping.resolveLabelOverlappingInOneDirection(i,this._canvas,!1,u),e.overlapping.resolveLabelOverlappingInOneDirection(r,this._canvas,!1,u)},getSeries:function(){return this.series&&this.series[0]},_legendDataField:"point"}))}(jQuery,DevExpress),function(n,t){var f=t.viz.charts,u=t.viz.core,r=n.noop,e="default",o=f.AdvancedChart.inherit({_chartType:"polar",_createPanes:function(){return[{name:e}]},_checkPaneName:function(){return!0},_getAxisRenderingOptions:function(n){var i=n==="argumentAxis",t=i?"circular":"linear",r=this.option("useSpiderWeb");return r&&(t+="Spider"),{axesType:"polarAxes",drawingType:t,isHorizontal:!0}},_prepareAxisOptions:function(n,t){return{type:this.option("useSpiderWeb")&&n==="argumentAxis"?"discrete":t.type}},_getExtraOptions:function(){return{spiderWidget:this.option("useSpiderWeb")}},_groupSeries:function(){this._groupedSeries=[this.series],this._groupedSeries[0].valueAxis=this._valueAxes[0],this._groupedSeries[0].valueOptions=this._valueAxes[0].getOptions(),this._groupedSeries.argumentAxes=this._argumentAxes,this._groupedSeries.argumentOptions=this._argumentAxes[0].getOptions()},_prepareToRender:function(){return this._appendAxesGroups(),{}},_renderAxes:function(n){this._drawAxes({},n)},_reinitTranslators:function(){var n=this,r=n._valueAxes,o=n._argumentAxes,i=n._createTranslator({arg:new u.Range(n.businessRanges[0].arg),val:new u.Range(n.businessRanges[0].val)}),f=i.getComponent("arg"),e=i.getComponent("val"),t=0;for(n.translator=i,o[0].setTranslator(f,e),t;t<r.length;t++)r[t].setTranslator(e,f)},_prepareAxesAndDraw:function(t,i){var r=this,u=r._valueAxes,f=r._argumentAxes,e=f[0];r._calcCanvas(e.measureLabels()),r.translator.reinit(),t(f),n.each(u,function(n,t){t.setSpiderTicks(e.getSpiderTicks())}),t(u),i(f),i(u)},_calcCanvas:function(n){var t=this.translator.canvas;t.left+=n.width,t.right+=n.width,t.top+=n.height,t.bottom+=n.height},_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getAxesForTransform:function(){var n=this._getArgumentAxes();return{verticalAxes:n,horizontalAxes:n}},_drawSeries:function(n){var i=this,t,f=i.seriesFamilies||[],r=i.series,u;if(r.length){for(t=0;t<f.length;t++)u={},u.val=i.translator,u.arg=i.translator,f[t].updateSeriesValues(u),f[t].adjustSeriesDimensions(u);for(t=0;t<r.length;t++)r[t].draw(i.translator,i._getAnimateOption(r[t],n),n.hideLayoutLabels,i.legend&&i.legend.getActionCallback(r[t]))}},_createTranslator:function(t){var i=this._themeManager,r=this.option("argumentAxis"),f=i.getOptions("argumentAxis",r)||{};return new u.PolarTranslator(t,n.extend(!0,{},this._canvas),{startAngle:f.startAngle})},_getSeriesForPane:function(){return this.series},_getEqualBarWidth:function(){return!!this._themeManager.getOptions("equalBarWidth")},_updateLegendPosition:r,_createScrollBar:r,_applyClipRects:r,_getSeriesRenderTimeout:r,_isRotated:r,_getCrosshairOptions:r,_isLegendInside:r,_processSingleSeries:r});t.registerComponent("dxPolarChart",f,o)}(jQuery,DevExpress),function(n,t,i){function v(n,t,i){r(n,function(n,r){var u=r.getLayoutOptions(),f=u.cutLayoutSide;i[f]-=u[t]})}function y(n,t){r(n,function(n,i){var u,f,r=i.getLayoutOptions(),e=p(r.cutLayoutSide);if(r.width){switch(r.horizontalAlignment){case"left":u=t.left;break;case"center":u=(t.width-t.left-t.right-r.width)/2+t.left;break;case"right":u=t.width-t.right-r.width}switch(r.verticalAlignment){case"top":f=t.top;break;case"bottom":f=t.height-t.bottom-r.height}i.shift(h(u),h(f)),t[r.cutLayoutSide]+=r[e],s(t)}})}function p(n){return n==="left"||n==="right"?"width":"height"}function s(n){n&&(n.originalTop=n.top,n.originalBottom=n.bottom,n.originalLeft=n.left,n.originalRight=n.right)}function w(n,t,i,u,f,e){r(n,function(n,r){var o=r.getLayoutOptions(),h=o.cutLayoutSide,c=u.width-u.left-u.right,l=u.height-u.top-u.bottom,s={};r.setSize({width:c,height:l}),s[i]=0,s[t]=e[t],r.changeSize(s),f[h]-=o[t]-r.getLayoutOptions()[t],e[t]-=o[t]-r.getLayoutOptions()[t]})}function b(n,t,i){n&&i[t]>0&&(r(n,function(n,r){var u=r.getBoundingRect();r.updateSize(),i[t]-=u[t]-r.getBoundingRect()[t]}),i[t]>0&&r(n,function(n,t){t.updateSize(!0)}))}function k(n,t,i){var r;return r=i<n?n:t<i?t:i}function g(n,t,i,r){return d((n-i)*(n-i)+(t-r)*(t-r))}function nt(n){var t;return n.type==="pie"?t=0:(t=f(n.innerRadius)?Number(n.innerRadius):.5,t=t<.2?.2:t,t=t>.8?.8:t),t}function tt(n){return!!(n.x||n.y||n.width||n.height)}function it(n,t){var i,f,e=!1;return r(n,function(n,o){i=o.canvas,r(t,function(n,t){f="delta"+t,i[f]=u(i[f]-(i[t.toLowerCase()]-i["original"+t]),0),i[f]>0&&(e=!0)})}),e}function rt(n,t){var i=t[0];return r(t,function(t,r){n===r.name&&(i=r)}),i}function ut(n,t){var i=!1,f=0,e=0,o=0,s=0;return r(n,function(n,t){f=u(f,t.canvas.deltaLeft),e=u(e,t.canvas.deltaRight),o=u(o,t.canvas.deltaTop),s=u(s,t.canvas.deltaBottom)}),t?r(n,function(n,t){t.canvas.top+=o,t.canvas.bottom+=s,t.canvas.right+=t.canvas.deltaRight,t.canvas.left+=t.canvas.deltaLeft}):r(n,function(n,t){t.canvas.top+=t.canvas.deltaTop,t.canvas.bottom+=t.canvas.deltaBottom,t.canvas.right+=e,t.canvas.left+=f}),r(n,function(n,t){t.canvas.top+t.canvas.bottom>t.canvas.height&&(i=!0),t.canvas.left+t.canvas.right>t.canvas.width&&(i=!0)}),i}function l(n){this._verticalElements=[],this._horizontalElements=[],this._options=n}var f=t.utils.isNumber,a=t.viz.core.utils.decreaseGaps,h=Math.round,e=Math.min,u=Math.max,o=Math.floor,d=Math.sqrt,r=n.each,c=n.extend;l.prototype={constructor:l,dispose:function(){this._verticalElements=this._horizontalElements=this._options=null},drawElements:function(n,t){var i=[],u=[];return r(n,function(n,r){var f,e;r.setSize({width:t.width-t.left-t.right,height:t.height-t.top-t.bottom}),r.draw(),f=r.getLayoutOptions(),f&&(e=p(f.cutLayoutSide),(e==="width"?i:u).push(r),t[f.cutLayoutSide]+=f[e],s(t))}),this._horizontalElements=i,this._verticalElements=u,this},placeDrawnElements:function(n){return v(this._horizontalElements,"width",n),y(this._horizontalElements,n),v(this._verticalElements,"height",n),y(this._verticalElements,n),this},updatePanesCanvases:function(n,t,i){var f=0;r(n,function(n,t){t.weight=t.weight||1,f+=t.weight});var u=0,e=n.padding||10,o=i?t.width-t.left-t.right:t.height-t.top-t.bottom,v=(o-e*(n.length-1))/f,l=i?"left":"top",a=i?"right":"bottom";r(n,function(n,i){var r=h(i.weight*v);i.canvas=i.canvas||{},c(i.canvas,{deltaLeft:0,deltaRight:0,deltaTop:0,deltaBottom:0},t),i.canvas[l]=t[l]+u,i.canvas[a]=t[a]+(o-r-u),u=u+r+e,s(i.canvas)})},applyVerticalAxesLayout:function(n,t,i){this._applyAxesLayout(n,t,i)},applyHorizontalAxesLayout:function(n,t,i){n.reverse(),this._applyAxesLayout(n,t,i),n.reverse()},_applyAxesLayout:function(n,t,i){var h=this,u,s,e,o,f,y,l,a,p=[],w,v;for(r(t,function(n,t){c(t.canvas,{deltaLeft:0,deltaRight:0,deltaTop:0,deltaBottom:0})}),v=0;v<n.length;v++)if(f=n[v],s=f.getOptions().position||"left",f.delta={},e=f.getBoundingRect(),w=rt(f.pane,t),u=w.canvas,tt(e)){l="delta"+s.slice(0,1).toUpperCase()+s.slice(1);switch(s){case"right":a=1,u.deltaLeft+=f.padding?f.padding.left:0;break;case"left":a=-1,u.deltaRight+=f.padding?f.padding.right:0;break;case"top":a=-1,u.deltaBottom+=f.padding?f.padding.bottom:0;break;case"bottom":a=1,u.deltaTop+=f.padding?f.padding.top:0}switch(s){case"right":case"left":e.isEmpty||(o=e.y+e.height-(u.height-u.originalBottom),o>0&&(h.requireAxesRedraw=!0,u.deltaBottom+=o),o=u.originalTop-e.y,o>0&&(h.requireAxesRedraw=!0,u.deltaTop+=o)),y=e.width,p=["Left","Right"];break;case"top":case"bottom":e.isEmpty||(o=e.x+e.width-(u.width-u.originalRight),o>0&&(h.requireAxesRedraw=!0,u.deltaRight+=o),o=u.originalLeft-e.x,o>0&&(h.requireAxesRedraw=!0,u.deltaLeft+=o)),p=["Bottom","Top"],y=e.height}!f.delta[s]&&u[l]>0&&(u[l]+=f.getMultipleAxesSpacing()),f.delta[s]=f.delta[s]||0,f.delta[s]+=u[l]*a,u[l]+=y}h.requireAxesRedraw=it(t,p)||h.requireAxesRedraw,h.stopDrawAxes=ut(t,i)},applyPieChartSeriesLayout:function(n,i,s){var v=n.height-n.top-n.bottom,y=n.width-n.left-n.right,c=y/2+n.left,l=v/2+n.top,a=this._options.piePercentage,h=f(a)?a*e(n.height,n.width)/2:e(y,v)/2,p=.7*h,w=nt(i);s||f(a)||r(i.getPoints(),function(n,i){if(i._label.isVisible()&&i.isVisible()){var r=i._label.getBoundingRect(),f=k(r.x,r.x+r.width,c),o=k(r.y,r.y+r.height,l),s=u(g(f,o,c,l)-t.viz.core.series.helpers.consts.pieLabelIndent,p);h=e(h,s)}}),i.correctPosition({centerX:o(c),centerY:o(l),radiusInner:o(h*w),radiusOuter:o(h)})},updateDrawnElements:function(n,t,i,r,u){var f,e=c({},i);(f=this.needMoreSpaceForPanesCanvas(r,u),f)&&(f.height=a(i,["top","bottom"],f.height),f.width=a(i,["left","right"],f.width),t.top-=e.top-i.top,t.bottom-=e.bottom-i.bottom,t.left-=e.left-i.left,t.right-=e.right-i.right,w(this._horizontalElements,"width","height",i,t,f),w(this._verticalElements,"height","width",i,t,f),b(n.verticalAxes,"width",f),b(n.horizontalAxes,"height",f))},needMoreSpaceForPanesCanvas:function(n,t){var h=this._options,a=h.width,v=h.height,l=h.piePercentage,c=f(l),o=0,s=0;return r(n,function(n,r){var f=r.canvas,p=c?e(f.width,f.height)*l:i,h=(c?p:a)-(f.width-f.left-f.right),y=(c?p:v)-(f.height-f.top-f.bottom);t?(o+=h>0?h:0,s=u(y>0?y:0,s)):(o=u(h>0?h:0,o),s+=y>0?y:0)}),o>0||s>0?{width:o,height:s}:!1},correctSizeElement:function(n,t){n.setSize({width:t.width-t.right-t.left,height:t.width-t.right-t.left}),n.changeSize({width:0,height:0})}},t.viz.charts._setCanvasValues=s,t.viz.charts.LayoutManager=l}(jQuery,DevExpress),function(n,t){var a=t.viz.core,v=a.Range,e=t.utils,h=e.adjustValue,l=e.applyPrecisionByMinDelta,u=e.isDefined,o=Math,s=o.floor,c=o.max,y=o.abs,r=n.each,b=.1,k=function(n){var t={};return r(n,function(n,i){var r=i.pane;t[r]||(t[r]=[]),t[r].push(i)}),t},d=function(n){var i,t=n.getTranslator();t._originalBusinessRange?(i=new v(t._originalBusinessRange),t.updateBusinessRange(i)):t._originalBusinessRange=new v(t.getBusinessRange())},g={transform:function(n,t){return e.getLog(n,t)},addInterval:function(n,t){return n+t},getInterval:function(n,t){return t},adjustValue:s},nt={transform:function(n,t){return e.raiseTo(n,t)},addInterval:function(n,t){return n*t},getInterval:function(n,t){return o.pow(n,t)},adjustValue:h},p=function(n,t){if(n.isLogarithmic){var i=n.logarithmicBase,e=n.tickValues,r,u=[],s,f;for(n.minValue=t.transform(n.minValue,i),n.oldMinValue=t.transform(n.oldMinValue,i),n.maxValue=t.transform(n.maxValue,i),n.oldMaxValue=t.transform(n.oldMaxValue,i),n.tickInterval=o.round(n.tickInterval),n.tickInterval<1&&(n.tickInterval=1),s=t.getInterval(i,n.tickInterval),r=t.transform(e[0],i),f=0;f<e.length;f++)u.push(t.adjustValue(r)),r=t.addInterval(r,s);u.tickInterval=n.tickInterval,n.tickValues=u}},tt=function(n){return a.utils.map(n,function(n){d(n);var l=n.getTicksValues(),t=l.majorTicksValues,h=n.getOptions(),f,o,i=null,r,s,c;return t&&t.length>0&&e.isNumber(t[0])&&h.type!=="discrete"&&(r=n.getTranslator().getBusinessRange(),s=n._tickManager.getTickInterval(),f=r.minVisible,o=r.maxVisible,c=h.synchronizedValue,f===o&&u(c)&&(s=y(t[0]-c)||1,f=t[0]-s,o=t[0]+s),i={axis:n,isLogarithmic:h.type==="logarithmic",logarithmicBase:r.base,tickValues:t,minorValues:l.minorTicksValues,minValue:f,oldMinValue:f,maxValue:o,oldMaxValue:o,inverted:r.invert,tickInterval:s,synchronizedValue:c},r.stubData&&(i.stubData=!0,i.tickInterval=i.tickInterval||h.tickInterval,i.isLogarithmic=!1),p(i,g)),i})},it=function(n){var t=0;r(n,function(n,i){t=c(t,i.tickValues.length)}),r(n,function(n,i){var e,o,h=0,c=i.synchronizedValue,r=i.tickValues,f=i.tickInterval;if(u(c))i.baseTickValue=i.invertedBaseTickValue=c,i.tickValues=[i.baseTickValue];else{if(r.length>1&&f){for(e=s((t+1)/r.length),o=e>1?s((t+1)/e):t,h=s((o-r.length)/2);h>0&&r[0]!==0;)r.unshift(l(r[0],f,r[0]-f)),h--;while(r.length<o)r.push(l(r[0],f,r[r.length-1]+f));i.tickInterval=f/e}i.baseTickValue=r[0],i.invertedBaseTickValue=r[r.length-1]}})},f=function(n){return n.maxValue-n.minValue||1},w=function(n){for(var t=0;t<n.length;t++)if(!n[t].stubData)return n[t];return null},rt=function(n){var t=w(n),i=t.tickInterval;r(n,function(n,r){var h,e,o,s;r!==t&&(i&&r.tickInterval&&(r.stubData&&u(r.synchronizedValue)&&(r.oldMinValue=r.minValue=r.baseTickValue-(t.baseTickValue-t.minValue)/i*r.tickInterval,r.oldMaxValue=r.maxValue=r.baseTickValue-(t.baseTickValue-t.maxValue)/i*r.tickInterval),h=i/f(t)/r.tickInterval*f(r),r.maxValue=r.minValue+f(r)/h),o=t.inverted&&!r.inverted||!t.inverted&&r.inverted?t.maxValue-t.invertedBaseTickValue:t.baseTickValue-t.minValue,s=f(r),e=(o/f(t)-(r.baseTickValue-r.minValue)/s)*s,r.minValue-=e,r.maxValue-=e)})},ut=function(n){var t,i,u=0,e=0;return r(n,function(n,r){var o=r.inverted;t=r.minValue>r.oldMinValue?(r.minValue-r.oldMinValue)/f(r):0,i=r.maxValue<r.oldMaxValue?(r.oldMaxValue-r.maxValue)/f(r):0,u=c(u,o?i:t),e=c(e,o?t:i)}),{start:u,end:e}},ft=function(n,t){r(n,function(n,i){var r=f(i),u=i.inverted;i.minValue-=t[u?"end":"start"]*r,i.maxValue+=t[u?"start":"end"]*r,r>b&&(i.minValue=o.min(i.minValue,h(i.minValue)),i.maxValue=c(i.maxValue,h(i.maxValue)))})},et=function(n){var t=!1;r(n,function(n,i){t=t||u(i.synchronizedValue)}),r(n,function(n,i){var u,f=i.tickInterval,r=i.tickValues,s=i.maxValue,o=i.minValue;if(t&&f){while(r[0]-f>=o)r.unshift(h(r[0]-f));for(u=r[r.length-1];(u=u+f)<=s;)r.push(e.isExponential(u)?h(u):l(o,f,u))}while(r[0]<o)r.shift();while(r[r.length-1]>s)r.pop()})},ot=function(n){r(n,function(n,t){var r=t.axis,i=r.getTranslator().getBusinessRange();i.min===i.minVisible&&(i.min=t.minValue),i.max===i.maxVisible&&(i.max=t.maxValue),i.minVisible=t.minValue,i.maxVisible=t.maxValue,u(t.stubData)&&(i.stubData=t.stubData),i.min>i.minVisible&&(i.min=i.minVisible),i.max<i.maxVisible&&(i.max=i.maxVisible),i.isSynchronized=!0,r.getTranslator().updateBusinessRange(i),r.setTicks({majorTicks:t.tickValues,minorTicks:t.minorValues})})},st=function(n){var f=[],t,i;(r(n,function(n,r){r.oldMaxValue-r.oldMinValue==0?f.push(r):u(t)||u(r.synchronizedValue)||(t=y((r.maxValue-r.minValue)/(r.tickValues[s(r.tickValues.length/2)]||r.maxValue)),i=r)}),u(t))&&r(f,function(n,r){var u=r.tickValues[0],f=u*t,e=i.tickValues,o=e[s(e.length/2)];u>0?(r.maxValue=f,r.minValue=0):u<0?(r.minValue=f,r.maxValue=0):u===0&&(r.maxValue=i.maxValue-o,r.minValue=i.minValue-o)})};t.viz.charts.multiAxesSynchronizer={synchronize:function(n){r(k(n),function(n,t){var i,u;if(t.length>1){if(i=tt(t),i.length===0||!w(i))return;it(i),rt(i),u=ut(i),ft(i,u),st(i),et(i),r(i,function(){p(this,nt)}),ot(i)}})}}}(jQuery,DevExpress),function(n,t,i,r){function f(n){return(n+"").toLowerCase()}function ht(n){var t;return e(n,function(n,i){if(!i._virtual)return t=i,!1}),t}function d(n,t){return n.cancel||!t.getOptions()}function et(n,t,i){return t>=n.left&&t<=n.right&&i>=n.top&&i<=n.bottom}function g(n,t,i,r,u){e(n,function(n,f){var e=f.series;f===t?(e[i]({point:f,setState:!0}),r&&u(r,{target:f})):e[i]({point:f})})}var h=t.viz.charts,s=t.viz.core.series.helpers.consts.events,ot=t.utils,c=ot.isDefined,u=i.floor,e=n.each,nt="multiple",y="allargumentpoints",tt="allseriespoints",p="none",l="dxpointerdown dxpointermove",a="pointSelectionChanged",it="legendClick",w="seriesClick",b="pointClick",rt="releasePointSelectedState",ut="setPointSelectedState",ft="seriesHoverChanged",v="pointHoverChanged",k="releasePointHoverState",st=100,o={ctor:function(t){var i=this,r={tracker:i};f(t.pointSelectionMode)===nt?(i._setSelectedPoint=i._selectPointMultipleMode,i._releaseSelectedPoint=i._releaseSelectedPointMultipleMode):(i._setSelectedPoint=i._selectPointSingleMode,i._releaseSelectedPoint=i._releaseSelectedPointSingleMode),f(t.seriesSelectionMode)===nt?(i._releaseSelectedSeries=i._releaseSelectedSeriesMultipleMode,i._setSelectedSeries=i._setSelectedSeriesMultipleMode):(i._releaseSelectedSeries=i._releaseSelectedSeriesSingleMode,i._setSelectedSeries=i._setSelectedSeriesSingleMode),i._renderer=t.renderer,i._tooltip=t.tooltip,i._eventTrigger=t.eventTrigger;t.seriesGroup.off().on(s.selectSeries,r,i._selectSeries).on(s.deselectSeries,r,i._deselectSeries).on(s.selectPoint,r,i._selectPoint).on(s.deselectPoint,r,i._deselectPoint).on(s.showPointTooltip,r,i._showPointTooltip).on(s.hidePointTooltip,r,i._hidePointTooltip);i._renderer.root.off(l).off("dxclick dxhold").on(l,r,i._pointerHandler).on("dxclick",r,i._clickHandler).on("dxhold",{timeout:300},n.noop)},update:function(n){var t=this;t._storedSeries!==n.series?(t._storedSeries=n.series||[],t._clean()):(t._hideTooltip(t.pointAtShownTooltip),t._clearHover(),t.clearSelection()),t._legend=n.legend,t.legendCallback=n.legendCallback,t._prepare(t._renderer.root)},setCanvases:function(n,t){this._mainCanvas=n,this._canvases=t},repairTooltip:function(){var n=this.pointAtShownTooltip;n&&!n.isVisible()?this._hideTooltip(n,!0):this._showTooltip(n)},_prepare:function(n){n.off("dxmousewheel").on("dxmousewheel",{tracker:this},function(n){n.data.tracker._pointerOut()})},_selectPointMultipleMode:function(t){var i=this;i._selectedPoint=i._selectedPoint||[],n.inArray(t,i._selectedPoint)<0&&(i._selectedPoint.push(t),i._setPointState(t,ut,f(t.getOptions().selectionMode),a,i.legendCallback(t)))},_releaseSelectedPointMultipleMode:function(t){var i=this,r=i._selectedPoint||[],u=n.inArray(t,r);u>=0?(i._setPointState(t,rt,f(t.getOptions().selectionMode),a,i.legendCallback(t)),r.splice(u,1)):t||e(r,function(n,t){i._releaseSelectedPoint(t)})},_selectPointSingleMode:function(n){var t=this;t._selectedPoint!==n&&(t._releaseSelectedPoint(),t._selectedPoint=n,t._setPointState(n,ut,f(n.getOptions().selectionMode),a,t.legendCallback(n)))},_releaseSelectedPointSingleMode:function(){var n=this,t=n._selectedPoint;t&&(n._setPointState(t,rt,f(t.getOptions().selectionMode),a,n.legendCallback(t)),n._selectedPoint=null)},_setPointState:function(n,t,i,r,u){var f=this,e=f._eventTrigger;switch(i){case y:f._toAllArgumentPoints(n.argument,t,r,n);break;case tt:g(n.series.getPoints(),n,t,r,e);break;case p:break;default:n.series[t]({point:n,legendCallback:u,setState:!0}),e(r,{target:n})}},_toAllArgumentPoints:function(n,t,i,r){var u=this;e(u._storedSeries,function(f,e){g(e.getPointsByArg(n),r,t,i,u._eventTrigger)})},_setHoveredPoint:function(n,t){var i=this;i.hoveredPoint!==n&&n.series&&(i._releaseHoveredPoint(),n&&n.getOptions()&&t!==p&&(i.hoveredPoint=n,i._setPointState(n,"setPointHoverState",t||f(n.getOptions().hoverMode),v,i.legendCallback(n))))},_releaseHoveredPoint:function(){var t=this,n=t.hoveredPoint,i,r=t._eventTrigger;n&&n.getOptions()&&(i=f(n.getOptions().hoverMode),i===tt?g(n.series.getPoints(),n,k,v,r):i===y?t._toAllArgumentPoints(n.argument,k,v,n):i!=="none"&&(n.releaseHoverState(t.legendCallback(n)),r(v,{target:n})),t._tooltip.isEnabled()&&t._hideTooltip(n),t.hoveredPoint=null)},_setSelectedSeriesMultipleMode:function(t,i){var r=this;r._selectedSeries=r._selectedSeries||[],n.inArray(t,r._selectedSeries)<0&&(r._selectedSeries.push(t),t.setSelectedState(!0,i,r.legendCallback(t)),r._eventTrigger("seriesSelectionChanged",{target:t}))},_setSelectedSeriesSingleMode:function(n,t){var i=this;(n!==i._selectedSeries||n.lastSelectionMode!==t)&&(this._releaseSelectedSeries(),i._selectedSeries=n,n.setSelectedState(!0,t,i.legendCallback(n)),i._eventTrigger("seriesSelectionChanged",{target:n}))},_releaseSelectedSeriesMultipleMode:function(t){var i=this,u=i._selectedSeries||[],f=n.inArray(t,u);f>=0?(t.setSelectedState(!1,r,i.legendCallback(t)),i._eventTrigger("seriesSelectionChanged",{target:t}),u.splice(f,1)):t||e(u,function(n,t){i._releaseSelectedSeries(t)})},_releaseSelectedSeriesSingleMode:function(){var n=this,t=n._selectedSeries;t&&(t.setSelectedState(!1,r,n.legendCallback(t)),n._eventTrigger("seriesSelectionChanged",{target:t}),n._selectedSeries=null)},_setHoveredSeries:function(n,t){var i=this;(t!==p&&i.hoveredSeries!==n||n.lastHoverMode!==t)&&(i._clearHover(),n.setHoverState(!0,t,i.legendCallback(n)),i._eventTrigger(ft,{target:n})),i.hoveredSeries=n},_releaseHoveredSeries:function(n){var t=this,i=t.hoveredSeries,u=t._seriesWithHoverView;i?(i.setHoverState(!1,r,t.legendCallback(i)),n&&(t._seriesWithHoverView=i.setHoverView()),t._eventTrigger(ft,{target:i}),t.hoveredSeries=null):u&&!n&&(u.releaseHoverView(),t._seriesWithHoverView=null)},_selectSeries:function(n,t){n.data.tracker._setSelectedSeries(n.target,t)},_deselectSeries:function(n,t){n.data.tracker._releaseSelectedSeries(n.target,t)},_selectPoint:function(n,t){n.data.tracker._setSelectedPoint(t)},_deselectPoint:function(n,t){n.data.tracker._releaseSelectedPoint(t)},clearSelection:function(){this._releaseSelectedPoint(),this._releaseSelectedSeries()},_clean:function(){var n=this;n._selectedPoint=n._selectedSeries=n.hoveredPoint=n.hoveredSeries=null,n._hideTooltip(n.pointAtShownTooltip)},_clearHover:function(){this._releaseHoveredSeries(!1),this._releaseHoveredPoint()},_hideTooltip:function(n,t){var i=this;i._tooltip&&(!n||i.pointAtShownTooltip===n)&&(!t&&i.pointAtShownTooltip&&(i.pointAtShownTooltip=null),i._tooltip.hide())},_showTooltip:function(n){var t=this,i,f,r,u;if(n&&n.getOptions()){if(i=n.getTooltipFormatObject(t._tooltip),!c(i.valueText)&&!i.points||!n.isVisible())return;if(t.pointAtShownTooltip&&t.pointAtShownTooltip===n||(f={target:n}),r=n.getTooltipParams(t._tooltip.getLocation()),u=t._renderer.getRootOffset(),r.x+=u.left,r.y+=u.top,!t._tooltip.show(i,r,f))return;t.pointAtShownTooltip=n}},_showPointTooltip:function(n,t){var i=n.data.tracker,r=i.pointAtShownTooltip;r&&r!==t&&i._hideTooltip(r),i._showTooltip(t)},_hidePointTooltip:function(n,t){n.data.tracker._hideTooltip(t)},_enableOutHandler:function(){if(!this._outHandler){var t=this,i=function(n){var i=t._renderer.getRootOffset(),r=u(n.pageX-i.left),f=u(n.pageY-i.top);et(t._mainCanvas,r,f)||(t._pointerOut(),t._disableOutHandler())};n(document).on(l,i);this._outHandler=i}},_disableOutHandler:function(){this._outHandler&&n(document).off(l,this._outHandler),this._outHandler=null},_pointerOut:function(){this._clearHover(),this._tooltip.isEnabled()&&this._hideTooltip(this.pointAtShownTooltip)},dispose:function(){var n=this;n._disableOutHandler(),e(n,function(t){n[t]=null})}};h.ChartTracker=function(n){this.ctor(n)},n.extend(h.ChartTracker.prototype,o,{ctor:function(n){var t=this;o.ctor.call(t,n)},_pointClick:function(n,t){var u=this,i=u._eventTrigger,r=n.series;i(b,{target:n,jQueryEvent:t},function(){d(t,r)||i(w,{target:r,jQueryEvent:t})})},_legendClick:function(n,t){var u=this,i={target:n,jQueryEvent:t},r=u._eventTrigger;r(it,i,function(){d(t,n)||r(w,i)})},update:function(n){var t=this;t._zoomingMode=(n.zoomingMode+"").toLowerCase(),t._scrollingMode=(n.scrollingMode+"").toLowerCase(),o.update.call(this,n),t._argumentAxis=ht(n.argumentAxis||[]),t._axisHoverEnabled=t._argumentAxis&&f(t._argumentAxis.getOptions().hoverMode)===y,t._chart=n.chart,t._rotated=n.rotated,t._crosshair=n.crosshair},_getAxisArgument:function(t){var i=n(t.target);return t.target.tagName==="tspan"?i.parent().data("argument"):i.data("argument")},_getCanvas:function(n,t){for(var f=this,u=f._canvases||[],r,i=0;i<u.length;i++)if(r=u[i],et(r,n,t))return r;return null},_focusOnCanvas:function(n){!n&&this._stickedSeries&&this._pointerOut()},_resetHoveredArgument:function(){c(this.hoveredArgument)&&(this._toAllArgumentPoints(this.hoveredArgument,k),this.hoveredArgument=null)},_hideCrosshair:function(){this._crosshair&&this._crosshair.hide()},_moveCrosshair:function(n,t,i){n&&this._crosshair&&n.isVisible()&&this._crosshair.show(n.getCrosshairData(t,i),n.getPointRadius())},_prepare:function(t){var i=this,u=i._scrollingMode==="all"||i._scrollingMode==="touch",f=i._zoomingMode==="all"||i._zoomingMode==="touch",r=(u?"":"pan-x pan-y ")+(f?"":"pinch-zoom")||"none",e={"touch-action":r,"-ms-touch-action":r},s=i._zoomingMode==="all"||i._zoomingMode==="mouse";if(t.off("dxmousewheel dxc-scroll-start dxc-scroll-move"),o._prepare.call(i,t),!i._gestureEndHandler){i._gestureEndHandler=function(){i._gestureEnd&&i._gestureEnd()};n(document).on("dxpointerup",i._gestureEndHandler)}s&&t.on("dxmousewheel",function(n){var t=i._renderer.getRootOffset(),r=i._rotated?n.pageY-t.top:n.pageX-t.left,u=i._argumentAxis.getTranslator().getMinScale(n.delta>0),e=r-r*u,f=i._argumentAxis.getTranslator().zoom(-e,u);i._pointerOut(),i._chart.zoomArgument(f.min,f.max,!0),n.preventDefault(),n.stopPropagation()});t.on("dxc-scroll-start",function(n){i._gestureStart(i._getGestureParams(n,{left:0,top:0}))}).on("dxc-scroll-move",function(n){i._gestureChange(i._getGestureParams(n,{left:0,top:0}))&&n.preventDefault()});t.css(e)},_getGestureParams:function(n,t){var h=this,r,u,e=n.pointers.length,f,o,s=h._rotated?"pageY":"pageX";return t=h._rotated?t.top:t.left,e===2?(r=n.pointers[0][s]-t,u=n.pointers[1][s]-t):e===1&&(r=u=n.pointers[0][s]-t),f=i.min(r,u),o=i.max(r,u),{center:f+(o-f)/2,distance:o-f,touches:e,scale:1,pointerType:n.pointerType}},_gestureStart:function(n){var t=this;t._startGesture=t._startGesture||n,t._startGesture.touches!==n.touches&&(t._startGesture=n)},_gestureChange:function(n){var r=this,t=r._startGesture,u=!1,f=r._scrollingMode==="all"||r._scrollingMode!=="none"&&r._scrollingMode===n.pointerType,e=r._zoomingMode==="all"||r._zoomingMode==="touch";return t?t.touches===1&&i.abs(t.center-n.center)<3?(r._gestureStart(n),u):(t.touches===2&&e?(u=!0,t.scale=n.distance/t.distance,t.scroll=n.center-t.center+(t.center-t.center*t.scale)):t.touches===1&&f&&(u=!0,t.scroll=n.center-t.center),u&&(t.changed=u,r._chart._transformArgument(t.scroll,t.scale)),u):u},_gestureEnd:function(){function u(){i._chart.zoomArgument(t.min,t.max,!0)}var i=this,n=i._startGesture,t,r=i._renderer,f,e;i._startGesture=null,n&&n.changed&&(t=i._argumentAxis._translator.zoom(-n.scroll,n.scale),r.animationEnabled()&&(-n.scroll!==t.translate||n.scale!==t.scale)?(f=-(n.scroll+t.translate),e=n.scale-t.scale,r.root.animate({_:0},{step:function(t){var r=-n.scroll-f*t,u=n.scale-e*t;i._chart._transformArgument(-r,u)},complete:u,duration:250})):u())},_clean:function(){var n=this;o._clean.call(n),n._resetTimer(),n._stickedSeries=null},_getSeriesForShared:function(n,t){var r=this,f=[],u=null,o=Infinity;return r._tooltip.isShared()&&!r.hoveredSeries&&(e(r._storedSeries,function(i,r){var u=r.getNeighborPoint(n,t);u&&f.push(u)}),e(f,function(r,f){var e=f.getCrosshairData(n,t),s=i.sqrt((n-e.x)*(n-e.x)+(t-e.y)*(t-e.y));s<o&&(u=f,o=s)})),u&&u.series},_setTimeout:function(n,t){var i=this;i._timeoutKeeper!==t&&(i._resetTimer(),i._hoverTimeout=setTimeout(function(){n(),i._timeoutKeeper=null},st),i._timeoutKeeper=t)},_resetTimer:function(){clearTimeout(this._hoverTimeout),this._timeoutKeeper=this._hoverTimeout=null},_pointerHandler:function(t){var i=t.data.tracker,h=i._renderer.getRootOffset(),e=u(t.pageX-h.left),o=u(t.pageY-h.top),l=i._getCanvas(e,o),y=n(t.target),r=y.data("series"),f=y.data("point")||r&&r.getPointByCoord(e,o),a,s,v;if(i._enableOutHandler(),i._x=e,i._y=o,t.type==="dxpointerdown")l&&i._gestureStart(i._getGestureParams(t,h));else if(i._startGesture&&l&&i._gestureChange(i._getGestureParams(t,h))){i._pointerOut(),t.preventDefault();return}if(i._legend.coordsIn(e,o)){a=i._legend.getItemByCoord(e,o),a?(r=i._storedSeries[a.id],i._setHoveredSeries(r,i._legend._options.hoverMode),i._stickedSeries=r):i._clearHover(),i._hideCrosshair();return}if(i._axisHoverEnabled&&i._argumentAxis.coordsIn(e,o)){s=i._getAxisArgument(t),v=c(s),v&&i.hoveredArgument!==s?(i._clearHover(),i._resetHoveredArgument(),i._toAllArgumentPoints(s,"setPointHoverState"),i.hoveredArgument=s):v||i._resetHoveredArgument();return}if(i._resetHoveredArgument(),i._focusOnCanvas(l),l||f){if(r||f||(i._stickedSeries=i._stickedSeries||i._getSeriesForShared(e,o)),r&&!f){if(f=r.getNeighborPoint(e,o),r!==i.hoveredSeries){i._setTimeout(function(){i._setHoveredSeries(r,r.getOptions().hoverMode),i._stickedSeries=r,i._pointerComplete(f)},r);return}}else{if(f){i.hoveredSeries?i._setTimeout(function(){i._pointerOnPoint(f)},f):(i._pointerOnPoint(f),i._seriesWithHoverView=f.series.setHoverView());return}i._stickedSeries&&(r=i._stickedSeries,f=r.getNeighborPoint(e,o),i._releaseHoveredSeries(!1),f&&i._setHoveredPoint(f))}i._pointerComplete(f)}},_pointerOnPoint:function(n){var t=this,i=t._seriesWithHoverView,r=n.series;t._stickedSeries=r,t._setHoveredPoint(n),t._releaseHoveredSeries(i?i===r:!0),t._pointerComplete(n)},_pointerComplete:function(n){var t=this;t.hoveredSeries&&t.hoveredSeries.updateHover(t._x,t._y),t._resetTimer(),t._moveCrosshair(n,t._x,t._y),t.pointAtShownTooltip!==n&&t._tooltip.isEnabled()&&t._showTooltip(n)},_pointerOut:function(){var n=this;n._stickedSeries=null,n._hideCrosshair(),n._resetHoveredArgument(),n._resetTimer(),o._pointerOut.call(n)},_clickHandler:function(t){var i=t.data.tracker,l=i._renderer.getRootOffset(),e=u(t.pageX-l.left),o=u(t.pageY-l.top),r=n(t.target).data("point"),f=i._stickedSeries||n(t.target).data("series")||r&&r.series,a=i._argumentAxis,s,h;if(i._legend.coordsIn(e,o)){s=i._legend.getItemByCoord(e,o),s&&(f=i._storedSeries[s.id],i._legendClick(f,t));return}if(a&&a.coordsIn(e,o)&&(h=i._getAxisArgument(t),c(h))){i._eventTrigger("argumentAxisClick",{argument:h,jQueryEvent:t});return}f&&(r=r||f.getPointByCoord(e,o),r?i._pointClick(r,t):n(t.target).data("series")&&i._eventTrigger(w,{target:f,jQueryEvent:t}))},dispose:function(){this._gestureEndHandler&&n(document).off("dxpointerup",this._gestureEndHandler),this._resetTimer(),o.dispose.call(this)}}),h.PieTracker=function(n){this.ctor(n)},n.extend(h.PieTracker.prototype,o,{_legendClick:function(n,t){var u=this,i={target:n,jQueryEvent:t},r=u._eventTrigger;r(it,i,function(){d(t,n)||r(b,i)})},_pointerHandler:function(t){var i=t.data.tracker,h=i._renderer.getRootOffset(),f=u(t.pageX-h.left),e=u(t.pageY-h.top),o=i._storedSeries[0],r=n(t.target).data("point")||o&&o.getPointByCoord(f,e),s,c;i._enableOutHandler(),i._legend.coordsIn(f,e)&&(s=i._legend.getItemByCoord(f,e),s&&(r=o.getPoints()[s.id],c=i._legend._options.hoverMode)),r&&r!==i.hoveredPoint?(i._tooltip.isEnabled()&&i._showTooltip(r),i._setHoveredPoint(r,c)):r||i._pointerOut()},_clickHandler:function(t){var i=t.data.tracker,h=i._renderer.getRootOffset(),f=u(t.pageX-h.left),e=u(t.pageY-h.top),o=i._storedSeries[0],r,s;i._legend.coordsIn(f,e)?(s=i._legend.getItemByCoord(f,e),s&&(r=o.getPoints()[s.id],i._legendClick(r,t))):(r=n(t.target).data("point")||o&&o.getPointByCoord(f,e),r&&i._eventTrigger(b,{target:r,jQueryEvent:t}))}})}(jQuery,DevExpress,Math),function(n,t){function u(n,t,i,r){var u=this;u._renderer=n,u._crosshairGroup=r,u._options={},u.update(t,i)}var r=Math,f=r.abs,e=r.min,o=r.max,s=r.floor,v="horizontal",y="vertical",h=8,c=4,p="center",l="right",w="left",b="top",a="bottom";t.viz.charts.Crosshair=u,u.prototype={constructor:u,update:function(n,t){var r=this,i=t.canvas;r._canvas={top:i.top,bottom:i.height-i.bottom,left:i.left,right:i.width-i.right,width:i.width,height:i.height},r._axes=t.axes,r._panes=t.panes,r._prepareOptions(n,v),r._prepareOptions(n,y)},dispose:function(){var n=this;n._renderer=null,n._crosshairGroup=null,n._options=null,n._axes=null,n._canvas=null,n._horizontalGroup=null,n._verticalGroup=null,n._horizontal=null,n._vertical=null,n._circle=null,n._panes=null},_prepareOptions:function(t,i){this._options[i]={visible:t[i+"Line"].visible,line:{stroke:t[i+"Line"].color||t.color,"stroke-width":t[i+"Line"].width||t.width,dashStyle:t[i+"Line"].dashStyle||t.dashStyle,opacity:t[i+"Line"].opacity||t.opacity,"stroke-linecap":"butt"},label:n.extend(!0,{},t.label,t[i+"Line"].label)}},_createLines:function(n,t,i){for(var f=[],r=this._canvas,e=[r.left,r.top,r.left,r.top],u=0;u<2;u++)f.push(this._renderer.path(e,"line").attr(n).sharp(t).append(i));return f},render:function(){var n=this,u=n._renderer,f=n._options,i=f.vertical,t=f.horizontal,r=t.visible?t.line:i.line,o={stroke:r.stroke,"stroke-width":r["stroke-width"],dashStyle:r.dashStyle,opacity:r.opacity},e=n._canvas;n._horizontal={},n._vertical={},n._horizontalGroup=u.g().append(n._crosshairGroup),n._verticalGroup=u.g().append(n._crosshairGroup),i.visible&&(n._vertical.lines=n._createLines(i.line,"h",n._verticalGroup),n._vertical.labels=n._createLabels(n._axes[0],i,!1,n._verticalGroup)),t.visible&&(n._horizontal.lines=n._createLines(t.line,"v",n._horizontalGroup),n._horizontal.labels=n._createLabels(n._axes[1],t,!0,n._horizontalGroup)),n._circle=u.circle(e.left,e.top,0).attr(o).append(n._crosshairGroup)},_createLabels:function(i,r,u,f){var v=this,y=v._canvas,k=v._renderer,c,e,s,d=[],g,h,o;if(r.label&&r.label.visible)return n.each(i,function(n,i){var nt=i.getOptions(),v=nt.position;i._virtual||nt.stubData||(h=i.getCurrentLabelPos(),u?(e=y.top,c=h):(c=y.left,e=h),s=k.text("0",c,e).css(t.viz.core.utils.patchFontOptions(r.label.font)).attr({align:v===b||v===a?p:v===l?w:l}).append(f),o=s.getBBox(),s.attr({y:u?2*e-o.y-o.height/2:v===a?2*e-o.y:2*e-(o.y+o.height)}),g=k.rect(0,0,0,0).attr({fill:r.label.backgroundColor||r.line.stroke}).append(f).toBackground(),d.push({text:s,background:g,axis:i,pos:{coord:h,side:v}}))}),d},_updateText:function(t,i,r){var s=this,u,e,f,o;i&&n.each(i,function(n,i){(e="",f=i.text,o=i.background,f)&&(i.axis.name&&i.axis.name!==r||(e=i.axis.getFormattedValue(t)),e?(f.attr({text:e}),u=f.getBBox(),s._updateLinesCanvas(i.pos.side,i.pos.coord),o.attr({x:u.x-h,y:u.y-c,width:u.width+h*2,height:u.height+c*2})):(f.attr({text:""}),o.attr({x:0,y:0,width:0,height:0})))})},hide:function(){this._crosshairGroup.attr({visibility:"hidden"})},_updateLinesCanvas:function(n,t){var i=this._linesCanvas,r=this._canvas;i[n]=i[n]!==r[n]&&f(i[n]-r[n])<f(t-r[n])?i[n]:t},_updateLines:function(n,t,i,r,u){for(var h=this._linesCanvas,f=this._canvas,c=u?[[e(t-r,h.left),f.top,t-r,f.top],[t+r,f.top,o(h.right,t+r),f.top]]:[[f.left,e(h.top,i-r),f.left,i-r],[f.left,i+r,f.left,o(h.bottom,i+r)]],s=0;s<2;s++)n[s].attr({points:c[s]})},_resetLinesCanvas:function(){var n=this._canvas;this._linesCanvas={left:n.left,right:n.right,top:n.top,bottom:n.bottom}},_getClipRectForPane:function(n,t){for(var u=this._panes,i,r=0;r<u.length;r++)if(i=u[r].coords,i.left<=n&&i.right>=n&&i.top<=t&&i.bottom>=t)return u[r].clipRect;return{id:null}},show:function(n,t){var i=this,e=i._horizontal,o=i._vertical,c,h=t?t+3:0,f=i._canvas,r=s(n.x),u=s(n.y);r>=f.left&&r<=f.right&&u>=f.top&&u<=f.bottom?(i._crosshairGroup.attr({visibility:"visible"}),i._resetLinesCanvas(),c=i._getClipRectForPane(r,u),i._circle.attr({cx:r,cy:u,r:h,clipId:c.id}),e.lines&&(i._updateText(n.yValue,e.labels,n.axis),i._updateLines(e.lines,r,u,h,!0),i._horizontalGroup.attr({translateY:u-f.top})),o.lines&&(i._updateText(n.xValue,o.labels,n.axis),i._updateLines(o.lines,r,u,h,!1),i._verticalGroup.attr({translateX:r-f.left}))):i.hide()}}}(jQuery,DevExpress),DevExpress.MOD_VIZ_CHARTS=!0}