/*! * DevExtreme Web * Version: 14.1.9-pre * Build date: Nov 7, 2014 * * Copyright (c) 2012 - 2014 Developer Express Inc. ALL RIGHTS RESERVED * EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml */ "use strict";window.DevExpress||(function(n,t,i){function u(t){function f(){while(r.length){u=!0;var e=r.shift(),t=e();if(t!==i&&t.then){n.when(t).always(f);return}}u=!1}function e(n,i){t?(r[0]&&i&&i(r[0]),r=[n]):r.push(n),u||f()}function o(){return u}var r=[],u=!1;return{add:e,busy:o}}var r,f;(function(n){if(n=n.split("."),n[0]<1||n[0]==1&&n[1]<10)throw Error("Your version of jQuery is too old. Please upgrade jQuery to 1.10.0 or later.");})(n.fn.jquery),r=function(){var r=function(n,t,i){return function(){var r=this.callBase;this.callBase=n[t];try{return i.apply(this,arguments)}finally{this.callBase=r}}},u=function(n){var t=function(){};return t.prototype=n.prototype,new t},i=function(){},f=function(t){var i=this,u;return t?(u=n.map(t,function(n,t){return t}),n.each(["toString","toLocaleString","valueOf"],function(){t[this]&&u.push(this)}),n.each(u,function(){var u=n.isFunction(i.prototype[this])&&n.isFunction(t[this]);i.prototype[this]=u?r(i.parent.prototype,this,t[this]):t[this]}),i):i},e=function(){var t=this;return n.each(arguments,function(){this.ctor&&t._includedCtors.push(this.ctor);for(var n in this)if(n!=="ctor"){if(n in t.prototype)throw Error("Member name collision: "+n);t.prototype[n]=this[n]}}),t},o=function(n){return this.parent===n?!0:!this.parent||!this.parent.subclassOf?!1:this.parent.subclassOf(n)};return i.inherit=function(i){var r=function(){if(!this||this===t||typeof this.constructor!="function")throw Error("A class must be instantiated using the 'new' keyword");var i=this,r=i.ctor;r&&r.apply(i,arguments),n.each(i.constructor._includedCtors,function(){this.call(i)})};return r.prototype=u(this),r.inherit=this.inherit,r.redefine=f,r.include=e,r.subclassOf=o,r.parent=this,r._includedCtors=this._includedCtors?this._includedCtors.slice(0):[],r.prototype.constructor=r,r.redefine(i),r},i}(),f=function(){var t=document.createElement("a"),i=["protocol","hostname","port","pathname","search","hash"],r=function(n){return n.charAt(0)!=="/"&&(n="/"+n),n};return function(u){t.href=u;var f={};return n.each(i,function(){f[this]=t[this]}),f.pathname=r(f.pathname),f}}(),t.DevExpress=t.DevExpress||{};var e=function(t){var i=n.Deferred();return setTimeout(function(){i.resolve(t())},60),i},o=function(){var t=[];return{add:function(i){var r=n.inArray(i,t);r===-1&&t.push(i)},remove:function(i){var r=n.inArray(i,t);r!==-1&&t.splice(r,1)},fire:function(){var n=t.pop(),i=!!n;return i&&n(),i},hasCallback:function(){return t.length>0}}}(),s=function(){var n="body";return function(t){return arguments.length&&(n=t),n}}();n.extend(t.DevExpress,{VERSION:"14.1.8",abstract:function(){throw Error("Not implemented");},Class:r,createQueue:u,enqueue:u().add,enqueueAsync:e,parseUrl:f,hideTopOverlayCallback:o,hardwareBackButton:n.Callbacks(),overlayTargetContainer:s,rtlEnabled:!1})}(jQuery,this),function(n,t,i){var e=function(n){return n===i||n===null?"":String(n)},r=function(n){return e(n).charAt(0).toUpperCase()+n.substr(1)},u=function(n){return e(n).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},f=function(t){return n.map(u(t),function(n){return n.toLowerCase()}).join("-")},o=function(n){return f(n).replace(/-/g,"_")},s=function(t,i){return n.map(u(t),function(n,t){return n=n.toLowerCase(),(i||t>0)&&(n=r(n)),n}).join("")},h=function(n){return r(f(n).replace(/-/g," "))},c=function(t){return n.map(u(t),function(n){return r(n.toLowerCase())}).join(" ")};t.inflector={dasherize:f,camelize:s,humanize:h,titleize:c,underscore:o}}(jQuery,DevExpress),function(n,t,i){function nt(t,i){var r=!1;return n.each(n(t).contents(),function(n,t){if(t.nodeType===3&&(t.textContent||t.nodeValue||"").toLowerCase().indexOf((i||"").toLowerCase())>-1)return r=!0,!1}),r}function f(t,r){var o,u,e;for(e in r)(o=t[e],u=r[e],t!==u)&&(!n.isPlainObject(u)||u instanceof n.Event?u!==i&&(t[e]=u):t[e]=f(n.isPlainObject(o)?o:{},u));return t}function tt(n){return t.support.hasKo?ko.utils.unwrapObservable(n):n}var e=function(n){return n!==null&&n!==i},o=function(t){return n.type(t)==="string"},r=function(t){return typeof t=="number"&&isFinite(t)||n.isNumeric(t)},s=function(t){return n.type(t)==="object"},h=function(t){return n.type(t)==="array"},c=function(t){return n.type(t)==="date"},l=function(t){return n.type(t)==="function"},a=function(n){return r(n)&&n.toString().indexOf("e")!==-1},v=function(n,t,i){var r,u;n=n||{};for(r in t)t.hasOwnProperty(r)&&(u=t[r],r in n&&!i||(n[r]=u));return n},y=function(){function n(){}return function(t){return n.prototype=t,new n}}(),p=function(t,i){var r=n.Deferred(),u=i||this;return setTimeout(function(){var i=t.call(u);i&&i.done&&n.isFunction(i.done)?i.done(function(){r.resolveWith(u)}):r.resolveWith(u)},0),r.promise()},w=function(){for(var t=arguments[0],i,n=0;ne&&(f.length=0,e=s),f.push(o))}),f},k=function(n){return(n+"").replace(/([\+\*\?\\\.\[\^\]\$\(\)\{\}\>\<\|\=\!\:])/g,"\\$1")},d=function(n,t,i){return n.replace(new RegExp("("+k(t)+")","gi"),i)},u=function(n){switch(typeof n){case"string":return n.split(/\s+/,2);case"object":return[n.x||n.h,n.y||n.v];case"number":return[n];default:return n}},g=function(n){var t=u(n),i=parseInt(t&&t[0],10),r=parseInt(t&&t[1],10);return isFinite(i)||(i=0),isFinite(r)||(r=i),{x:i,y:r}};n.expr[":"].dxicontains=n.expr.createPseudo(function(n){return function(t){return nt(t,n)}}),t.utils={isDefined:e,isString:o,isNumber:r,isObject:s,isArray:h,isDate:c,isFunction:l,isExponential:a,extendFromObject:v,clone:y,executeAsync:p,stringFormat:w,findBestMatches:b,replaceAll:d,deepExtendArraySafe:f,splitPair:u,stringPairToObject:g,unwrapObservable:tt}}(jQuery,DevExpress),function(n,t,i){var r=function(){function i(i){t&&n.isFunction(t.info)&&t.info(i)}function r(i){t&&n.isFunction(t.warn)&&t.warn(i)}function u(i){t&&n.isFunction(t.error)&&t.error(i)}var t=window.console;return{info:i,warn:r,error:u}}(),u=function(){function n(n,t){if(!n)throw new Error(t);}function t(t,r){n(t!==null&&t!==i,r)}return{assert:n,assertParam:t}}();n.extend(t.utils,{logger:r,debug:u})}(jQuery,DevExpress),function(n,t){var v=Math.PI,y=Math.LN10,p=Math.cos,w=Math.sin,u=Math.abs,b=Math.log,k=Math.floor,d=Math.ceil,g=Math.max,at=Math.min,f=window.isNaN,h=window.Number,nt=window.NaN,c=t.utils.isNumber,e=t.utils.isExponential,l=function(n){var u,f=n.toString(),o=f.indexOf("."),t,i;return e(n)?(i=r(n),i<0?Math.abs(i):0):o!==-1?(t=o+1,u=f.substring(t,t+20),u.length):0},tt=function(n,t){return n?Math.log(n)/Math.log(t):0},it=function(n,t){return Math.pow(t,n)},rt=function(n){return n===0?0:n/u(n)},ut=function(n){return(n%360+360)%360},ft=function(n){return 90-n},a=function(n){return v*n/180},et=function(n){var t=a(n);return{cos:p(t),sin:w(t)}},ot=1e-14,r=function(n){var t=u(n),i;return f(t)?nt:t>0?(t=b(t)/y,i=d(t),i-t4&&(e=4)):(s="exponential",e+=o-1,e>3&&(e=3)),{format:s,precision:e}):null},o=function(n){var t,i;return c(n)&&(t=n.toString(),i=t.indexOf("."),i>=0)?e(n)?t.substr(i+1,t.indexOf("e")-i-1):(t=n.toFixed(20),t.substr(i+1,t.length-i+1)):""},ht=function(n){var i=o(n),t;if(i)for(t=0;t20&&(t=20),c(n)?e(n)?h(n.toExponential(t)):h(n.toFixed(t)):void 0},lt=function(n,t,i){var r=l(n),u=l(t);return s(i,r=0;r--)i=f[r],t=Math.floor(n/u(i)),t>0&&(o[i+"s"]=t,n-=e(i,t));return o},b=function(t){var i=0;return s(t)&&n.each(t,function(n,t){i+=e(n.substr(0,n.length-1),t)}),o(t)&&(i=e(t,1)),i},e=function(n,t){return u(n)*t},c=function(t){var r=-1,i;return o(t)?t:s(t)?(n.each(t,function(n,t){for(i=0;ii&&(r=i),r},rt=function(n){return n.toExponential().split("e")[1]};n.extend(t.utils,{dateUnitIntervals:f,parseIso8601Date:y,formatIso8601Date:p,convertMillisecondsToDateUnits:w,convertDateTickIntervalToMilliseconds:b,convertDateUnitToMilliseconds:e,getDateUnitInterval:c,getDatesDifferences:d,correctDateWithUnitBeginning:k,addInterval:g,getDateIntervalByString:l,sameMonthAndYear:nt,getFirstMonthDate:tt,dateInRange:it,normalizeDate:a,getPower:rt})}(jQuery,DevExpress),function(n,t){var f="20px",e=100,o=function(t){var i=n(window),r,u=function(){var n=i.width(),u=i.height();clearTimeout(r),r=setTimeout(function(){i.width()===n&&i.height()===u&&t()},e)};return u.stop=function(){return clearTimeout(r),this},u},r=function(){var u,t=n.Callbacks(),i=n(window),r=!1,o=t.add,s=t.remove,f=function(){return[i.width(),i.height()].join()},e=function(){var n=f();n!==u&&(u=n,setTimeout(t.fire))};return u=f(),t.add=function(){var n=o.apply(t,arguments);if(!r&&t.has()){i.on("resize",e);r=!0}return n},t.remove=function(){var n=s.apply(t,arguments);return!t.has()&&r&&(i.off("resize",e),r=!1),n},t}(),s=function(){var n=document.activeElement;n&&n!==document.body&&n.blur&&n.blur()},h=function(t){var i=n("
");return window.WinJS?WinJS.Utilities.setInnerHTMLUnsafe(i.get(0),t):i.append(t),i.contents()},c=function(i){var e,o,s,a,l;i=n.extend({},i);var v=t.devices.current(),u=t.devices.real(),h=i.allowZoom,c=i.allowPan,y="allowSelection"in i?i.allowSelection:v.platform=="desktop";if(t.overlayTargetContainer(".dx-viewport"),e="meta[name=viewport]",n(e).length||n("").attr("name","viewport").appendTo("head"),o=["width=device-width"],s=[],h?s.push("pinch-zoom"):o.push("initial-scale=1.0","maximum-scale=1.0, user-scalable=no"),c&&s.push("pan-x","pan-y"),c||h?n("html").css("-ms-overflow-style","-ms-autohiding-scrollbar"):n("html, body").css({"-ms-content-zooming":"none","-ms-user-select":"none",overflow:"hidden"}),!y){if(u.ios)n(document).on("selectstart",function(){return!1});n(".dx-viewport").css("user-select","none")}if(n(e).attr("content",o.join()),n("html").css("-ms-touch-action",s.join(" ")||"none"),t.support.touch)n(document).off(".dxInitMobileViewport").on("touchmove.dxInitMobileViewport",function(n){var t=n.originalEvent.touches.length,i=!h&&t>1,r=!c&&t===1&&!n.isScrollingEvent;(i||r)&&n.preventDefault()});if(u=t.devices.real(),u.ios)if(a=document.location.protocol==="file:",a){if(u.version[0]>6&&(n(".dx-viewport").css("position","relative"),n("body").css({"box-sizing":"border-box"}),n("body").css("padding-top",f),u.version[0]===7&&u.version[1]<1)){l=function(){var t="height=device-"+(Math.abs(window.orientation)===90?"width":"height");n(e).attr("content",o.join()+","+t)};n(window).on("orientationchange",l);l()}}else r.add(function(){var t=n(window).width();n("body").width(t)})},u=function(t){return function(i){n(i||"body").find(".dx-visibility-change-handler").each(function(){n(this).triggerHandler(t)})}};n.extend(t.utils,{createResizeHandler:o,windowResizeCallbacks:r,resetActiveElement:s,createMarkupFromString:h,triggerShownEvent:u("dxshown"),triggerHidingEvent:u("dxhiding"),initMobileViewport:c})}(jQuery,DevExpress),function(n,t){var r=t.utils.isFunction,u=/iphone|ipad/.test(navigator.userAgent.toLowerCase()),f=function(t,i){for(var l=r(t.customizeSeries)?t.customizeSeries:n.noop,e=t.nameField||"series",s={},h=[],f,u,o=0,c=i.length;oi.width()?"portrait":"landscape";this._currentOrientation!==t&&(this._currentOrientation=t,this.orientationChanged.fire({orientation:t}))},_recalculateOrientation:function(){var t=n(this._window).width();this._currentWidth!==t&&(this._currentWidth=t,this._changeOrientation())}}),t.devices=new t.Devices}(jQuery,DevExpress),function(n,t){var f=/(webkit)[ \/]([\w.]+)/,e=/(opera)(?:.*version)?[ \/]([\w.]+)/,o=/(msie) (\d{1,2}\.\d)/,s=/(trident).*rv:(\d{1,2}\.\d)/,h=/(mozilla)(?:.*? rv:([\w.]+))?/,u=navigator.userAgent.toLowerCase(),c=function(){var t={},i=f.exec(u)||e.exec(u)||o.exec(u)||s.exec(u)||u.indexOf("compatible")<0&&h.exec(u)||[],n=i[1],r=i[2];return n==="trident"&&(n="msie"),n&&(t[n]=!0,t.version=r),t}();t.browser=c}(jQuery,DevExpress,this),function(n,t,i){var f=["","Webkit","Moz","O","ms"],e=document.createElement("dx").style,o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MsTransitionEnd",transition:"transitionend"},u=function(n){var i,u,r;for(n=t.inflector.camelize(n,!0),i=0,u=f.length;i-1};t.support={touch:"ontouchstart"in i||!!i.navigator.msMaxTouchPoints,pointer:i.navigator.pointerEnabled||i.navigator.msPointerEnabled,transform3d:r("transform"),transition:r("transition"),transitionEndEventName:o[u("transition")],animation:r("animation"),nativeScrolling:s(),winJS:"WinJS"in i,styleProp:u,supportProp:r,hasKo:!!i.ko,hasNg:!i.ko&&!!i.angular,inputType:function(n){if(n==="text")return!0;var t=document.createElement("input");try{return t.setAttribute("type",n),t.value="wrongValue",!t.value}catch(i){return!1}}}}(jQuery,DevExpress,this),function(n,t,i){var y=/left|right/,p=/top|bottom/,s=/fit|flip|none/,h=function(i){var r={h:"center",v:"center"},u=t.utils.splitPair(i);return u&&n.each(u,function(){var n=String(this).toLowerCase();y.test(n)?r.h=n:p.test(n)&&(r.v=n)}),r},c=function(n){var i=t.utils.stringPairToObject(n);return{h:i.x,v:i.y}},w=function(n){var i=t.utils.splitPair(n),r=String(i&&i[0]).toLowerCase(),u=String(i&&i[1]).toLowerCase();return s.test(r)||(r="none"),s.test(u)||(u=r),{h:r,v:u}},l=function(n){switch(n){case"center":return.5;case"right":case"bottom":return 1;default:return 0}},f=function(n){switch(n){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return n}},e=function(n,t){var i=0;return n.myLocationt.max&&(i+=n.myLocation-t.max),i},o=function(n){n.myLocation=n.atLocation+l(n.atAlign)*n.atSize-l(n.myAlign)*n.mySize+n.offset},r={fit:function(n,t){var i=!1;return n.myLocation>t.max&&(n.myLocation=t.max,i=!0),n.myLocationi.max){var r=n.extend({},t,{myAlign:f(t.myAlign),atAlign:f(t.atAlign),offset:-t.offset});if(o(r),r.oversize=e(r,i),r.myLocation>=i.min&&r.myLocation<=i.max||r.myLocation>t.myLocation||r.oversizedocument.documentElement.clientWidth,c=document.height>document.documentElement.clientHeight,y=t.support.touch?document.documentElement.clientWidth/(c?f-u:f):1,p=t.support.touch?document.documentElement.clientHeight/(h?e-u:e):1;return u===i&&(u=v()),{h:{min:o+l.boundaryOffset,max:o+f/y-l.mySize-l.boundaryOffset},v:{min:s+a.boundaryOffset,max:s+e/p-a.mySize-a.boundaryOffset}}}(),l.oversize=e(l,k.h),a.oversize=e(a,k.v),r[l.collision]&&(p.h[l.collision]=r[l.collision](l,k.h)),r[a.collision]&&(p.v[a.collision]=r[a.collision](a,k.v)),n.extend(!0,p,{h:{location:Math.round(l.myLocation),oversize:Math.round(l.oversize)},v:{location:Math.round(a.myLocation),oversize:Math.round(a.oversize)}}),p},k=function(i,r){var u=n(i),e,f;return r?(t.translator.resetPosition(u),e=u.offset(),f=r.h&&r.v?r:a(u,r),t.translator.move(u,{left:Math.round(f.h.location-e.left),top:Math.round(f.v.location-e.top)}),f):u.offset()},v;n.extend(t,{calculatePosition:a,position:k,inverseAlign:f}),v=function(){var t=n("
").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo(n("body")),i=t.get(0).offsetWidth-t.get(0).clientWidth;return t.remove(),i}}(jQuery,DevExpress),function(n,t){var r={},u=function(t,i){if(n.isPlainObject(t)){n.each(t,u);return}r[t]=i},e=function(){var i=n.makeArray(arguments);n.each(i,function(){delete r[this]})},f;u({func:{execute:function(t){n.isFunction(t.action)&&(t.result=t.action.apply(t.context,t.args),t.handled=!0)}},url:{execute:function(n){typeof n.action=="string"&&n.action.charAt(0)!=="#"&&(document.location=n.action)}},hash:{execute:function(n){typeof n.action=="string"&&n.action.charAt(0)==="#"&&(document.location.hash=n.action)}}}),f=t.Class.inherit({ctor:function(t,i){i=i||{},this._action=t||n.noop,this._context=i.context||window,this._beforeExecute=i.beforeExecute||n.noop,this._afterExecute=i.afterExecute||n.noop,this._component=i.component,this._excludeValidators=i.excludeValidators,this._validatingTargetName=i.validatingTargetName},execute:function(){var n={action:this._action,args:Array.prototype.slice.call(arguments),context:this._context,component:this._component,validatingTargetName:this._validatingTargetName,cancel:!1,handled:!1},t;if(this._validateAction(n))return(this._beforeExecute.call(this._context,n),n.cancel)?void 0:(t=this._executeAction(n),this._afterExecute.call(this._context,n),t)},_validateAction:function(t){var i=this._excludeValidators;return n.each(r,function(r,u){if(!i||!(n.inArray(r,i)>-1))return u.validate&&u.validate(t),t.cancel?!1:void 0}),!t.cancel},_executeAction:function(t){var i;return n.each(r,function(n,r){return r.execute&&r.execute(t),t.handled?(i=t.result,!1):void 0}),i}}),n.extend(t,{registerActionExecutor:u,unregisterActionExecutor:e,Action:f})}(jQuery,DevExpress),function(n,t,i){var s=t.support,f="dxTranslator",h=/matrix(3d)?\((.+?)\)/,c=/translate(?:3d)?\((.+?)\)/,l=function(n){var t,i,r,f,o,h;return s.transform3d?(f=e(n),t={left:f.x,top:f.y}):(o=n.css("top"),h=n.css("left"),i=n.position(),n.css({transform:"none",top:0,left:0}),u(n),r=n.position(),t={left:i.left-r.left||parseInt(h)||0,top:i.top-r.top||parseInt(o)||0},n.css({top:o,left:h})),t},a=function(n,t){if(!s.transform3d){n.css(t);return}var f=e(n),h=t.left,c=t.top;h!==i&&(f.x=h||0),c!==i&&(f.y=c||0),n.css({transform:o(f)}),(r(h)||r(c))&&u(n)},r=function(t){return n.type(t)==="string"&&t[t.length-1]==="%"},e=function(n){var i=n.data(f);if(!i){var r=n.css("transform")||o({x:0,y:0}),t=r.match(h),u=t&&t[1];t?(t=t[2].split(","),u==="3d"?t=t.slice(12,15):(t.push(0),t=t.slice(4,7))):t=[0,0,0],i={x:parseFloat(t[0]),y:parseFloat(t[1]),z:parseFloat(t[2])},v(n,i)}return i},v=function(n,t){n.data(f,t)},u=function(n){n.removeData(f)},y=function(n){n.css({left:0,top:0,transform:"none"}),u(n)},p=function(n){var t=n.match(c);if(t&&t[1])return t=t[1].split(","),t={x:parseFloat(t[0]),y:parseFloat(t[1]),z:parseFloat(t[2])}},o=function(n){n.x=n.x||0,n.y=n.y||0;var t=r(n.x)?n.x:n.x+"px",i=r(n.y)?n.y:n.y+"px";return"translate("+t+", "+i+")"};t.translator={move:a,locate:l,clearCache:u,parseTranslate:p,getTranslate:e,getTranslateCss:o,resetPosition:y}}(jQuery,DevExpress),function(n,t){var s=1e3/60,r=function(n){return this.setTimeout(n,s)},u=function(n){return this.clearTimeout(n)},f=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame,o=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame,e;f&&o&&(r=f,u=o),f&&!o&&(e={},r=function(n){var t=f.call(window,function(){try{if(t in e)return;n.apply(this,arguments)}finally{delete e[t]}});return t},u=function(n){e[n]=!0}),r=n.proxy(r,window),u=n.proxy(u,window),n.extend(t,{requestAnimationFrame:r,cancelAnimationFrame:u})}(jQuery,DevExpress),function(n,t){t.Animator=t.Class.inherit({ctor:function(){this._finished=!0,this._stopped=!1},start:function(){this._stopped=!1,this._finished=!1,this._stepCore()},stop:function(){this._stopped=!0},_stepCore:function(){if(this._isStopped()){this._stop();return}if(this._isFinished()){this._finished=!0,this._complete();return}this._step(),t.requestAnimationFrame.call(window,n.proxy(this._stepCore,this))},_step:t.abstract,_isFinished:n.noop,_stop:n.noop,_complete:n.noop,_isStopped:function(){return this._stopped},inProgress:function(){return!(this._stopped||this._finished)}})}(jQuery,DevExpress),function(n,t,i){var u=t.translator,e=t.support,h=e.transitionEndEventName+".dxFX",g=/cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,nt=/^([+-])=(.*)/i,f="dxAnimData",o="dxAnimQueue",r="transform",tt={animate:function(t,i){var u=this,r=n.Deferred();return i.transitionAnimation={finish:function(){u._cleanup(t,i),r.resolveWith(t,[i,t])}},this._startAnimation(t,i),this._completeAnimationCallback(t,i).done(function(){i.transitionAnimation.finish()}),i.duration||i.transitionAnimation.finish(),r.promise()},_completeAnimationCallback:function(t,i){var e=n.now()+i.delay,r=n.Deferred(),u=n.Deferred(),f=n.Deferred();t.one(h,function(){n.now()-e>=i.duration&&u.reject()});return i.transitionAnimation.simulatedEndEventTimer=setTimeout(function(){f.reject()},i.duration+i.delay),n.when(u,f).fail(n.proxy(function(){r.resolve()},this)),r.promise()},_startAnimation:function(n,t){n.css("transform"),n.css({transitionProperty:"all",transitionDelay:t.delay+"ms",transitionDuration:t.duration+"ms",transitionTimingFunction:t.easing}),d(n,t.to)},_cleanup:function(n,t){n.css("transition","none").off(h),clearTimeout(t.transitionAnimation.simulatedEndEventTimer)},stop:function(t,i,r){i&&(r?i.transitionAnimation.finish():(n.each(i.to,function(n){t.css(n,t.css(n))}),this._cleanup(t,i)))}},c={animate:function(t,f){var o=n.Deferred(),e=this;return f?(n.each(f.to,function(n){f.from[n]===i&&(f.from[n]=e._normalizeValue(t.css(n)))}),f.to[r]&&(f.from[r]=e._parseTransform(f.from[r]),f.to[r]=e._parseTransform(f.to[r])),f.frameAnimation={to:f.to,from:f.from,currentValue:f.from,easing:ut(f.easing),duration:f.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),o.resolve()},draw:function(){var i=n.extend({},this.currentValue);i[r]&&(i[r]=n.map(i[r],function(n,t){return t==="translate"?u.getTranslateCss(n):t==="scale"?"scale("+n+")":t.substr(0,t.length-1)==="rotate"?t+"("+n+"deg)":void 0}).join(" ")),t.css(i)}},f.delay?(f.frameAnimation.startTime+=f.delay,f.frameAnimation.delayTimeout=setTimeout(function(){e._animationStep(t,f)},f.delay)):e._animationStep(t,f),o.promise()):o.reject().promise()},_parseTransform:function(t){var i={};return n.each(t.match(/(\w|\d)+\([^\)]*\)\s*/g),function(n,t){var e=u.parseTranslate(t),f=t.match(/scale\((.+?)\)/),r=t.match(/(rotate.)\((.+)deg\)/);e&&(i.translate=e),f&&f[1]&&(i.scale=parseFloat(f[1])),r&&r[1]&&(i[r[1]]=parseFloat(r[2]))}),i},stop:function(n,t,i){var r=t&&t.frameAnimation;r&&(clearTimeout(r.delayTimeout),i&&r.finish(),delete t.frameAnimation)},_animationStep:function(i,r){var u=r&&r.frameAnimation,f;if(u){if(f=(new Date).valueOf(),f>=u.startTime+u.duration){u.finish();return}u.currentValue=this._calcStepValue(u,f-u.startTime),u.draw(),t.requestAnimationFrame(n.proxy(function(){this._animationStep(i,r)},this))}},_calcStepValue:function(t,i){var r=function(u,f){var e=n.isArray(f)?[]:{},o=function(r){var e=i/t.duration,o=i,s=1*u[r],h=f[r]-u[r],c=t.duration;return n.easing[t.easing](e,o,s,h,c)};return n.each(f,function(n,t){if(typeof t=="string"&&parseFloat(t,10)===!1)return!0;e[n]=typeof t=="object"?r(u[n],t):o(n)}),e};return r(t.from,t.to)},_normalizeValue:function(n){var t=parseFloat(n,10);return t===!1?n:t}},it={transition:e.transition?tt:c,frame:c},l=function(n){return it[n&&n.strategy||"transition"]},rt={linear:"cubic-bezier(0, 0, 1, 1)",ease:"cubic-bezier(0.25, 0.1, 0.25, 1)","ease-in":"cubic-bezier(0.42, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.58, 1)","ease-in-out":"cubic-bezier(0.42, 0, 0.58, 1)"},ut=function(t){var i,r,u;return(t=rt[t]||t,i=t.match(g),!i)?"linear":(i=i.slice(1,5),n.each(i,function(n,t){i[n]=parseFloat(t)}),r="cubicbezier_"+i.join("_").replace(/\./g,"p"),n.isFunction(n.easing[r])||(u=function(n,t,i,r){var u=3*n,f=3*(i-n)-u,o=1-u-f,e=3*t,s=3*(r-t)-e,h=1-e-s,c=function(n){return n*(u+n*(f+n*o))},l=function(n){return n*(e+n*(s+n*h))},a=function(n){for(var t=n,r=0,i;r<14;){if(i=c(t)-n,Math.abs(i)<.001)break;t=t-i/v(t),r++}return t},v=function(n){return u+n*(2*f+n*3*o)};return function(n){return l(a(n))}},n.easing[r]=function(n,t,r,f,e){return f*u(i[0],i[1],i[2],i[3])(t/e)+r}),r)},a=function(t,i){n.each(["from","to"],function(){if(!n.isPlainObject(t[this]))throw Error("Animation with the '"+i+"' type requires '"+this+"' configuration as an plain object.");})},ft={setup:function(){}},et={validateConfig:function(n){a(n,"slide")},setup:function(n,t){var i=u.locate(n);this._setUpConfig(i,t.from),this._setUpConfig(i,t.to),u.clearCache(n),e.transform3d||n.css("position")!=="static"||n.css("position","relative")},_setUpConfig:function(n,t){t.left="left"in t?t.left:"+=0",t.top="top"in t?t.top:"+=0",this._initNewPosition(n,t)},_initNewPosition:function(n,t){var f={left:t.left,top:t.top},o,s;delete t.left,delete t.top,o=this._getRelativeValue(f.left),o!==i?f.left=o+n.left:t.left=0,o=this._getRelativeValue(f.top),o!==i?f.top=o+n.top:t.top=0,s={x:0,y:0},e.transform3d?s={x:f.left,y:f.top}:(t.left=f.left,t.top=f.top),t[r]=u.getTranslateCss(s)},_getRelativeValue:function(n){var t;if(typeof n=="string"&&(t=nt.exec(n)))return parseInt(t[1]+"1")*t[2]}},ot={setup:function(t,i){var r=i.from,u=n.isPlainObject(r)?t.css("opacity"):String(r),f=String(i.to);i.from={opacity:u},i.to={opacity:f}}},st={validateConfig:function(n){a(n,"pop")},setup:function(n,t){var i=t.from,f=t.to,o="opacity"in i?i.opacity:n.css("opacity"),s="opacity"in f?f.opacity:1,h="scale"in i?i.scale:0,c="scale"in f?f.scale:1,e;t.from={opacity:o},e=u.getTranslate(n),t.from[r]=this._getCssTransform(e,h),t.to={opacity:s},t.to[r]=this._getCssTransform(e,c)},_getCssTransform:function(n,t){return u.getTranslateCss(n)+"scale("+t+")"}},v={custom:ft,slide:et,fade:ot,pop:st},y=function(n){var t=v[n];if(!t)throw Error('Unknown animation type "'+n+'"');return t},ht={type:"custom",from:{},to:{},duration:400,start:n.noop,complete:n.noop,easing:"ease",delay:0},ct=function(t,i){var u=n(t),r;return(i=n.extend(!0,{},ht,i),!u.length)?n.Deferred().resolve().promise():(r=y(i.type),n.isFunction(r.validateConfig)&&r.validateConfig(i),lt(u,i))},lt=function(t,i){i.deferred=i.deferred||n.Deferred();var r=s(t);return at(t,r),r.push(i),w(t)||b(t,r),i.deferred.promise()},s=function(n){return n.data(o)||[]},at=function(n,t){n.data(o,t)},p=function(n){n.removeData(o)},w=function(n){return!!n.data(f)},b=function(n,t){var t=s(n),i;t.length&&(i=t.shift(),t.length===0&&p(n),vt(n,i).done(function(){b(n)}))},vt=function(n,i){k(n,i.from),k(n,i.to);var r=y(i.type);return r.setup(n,i),n.data(f,i),t.fx.off&&(i.duration=0),d(n,i.from),i.start.apply(this,[n,i]),l(i).animate(n,i).done(function(){n.removeData(f),i.complete.apply(this,[n,i]),i.deferred.resolveWith(this,[n,i])})},k=function(i,r){if(r.position){var u=t.calculatePosition(i,r.position),f=i.offset(),e=i.position();n.extend(r,{left:u.h.location-f.left+e.left,top:u.v.location-f.top+e.top}),delete r.position}},d=function(t,i){n.each(i,function(n,i){t.css(n,i)})},yt=function(t,i){var r=n(t),e=s(r),u;n.each(e,function(n,t){t.duration=0}),u=r.data(f),l(u).stop(r,u,i),r.removeData(f),p(r)};t.fx={off:!1,animationTypes:v,animate:ct,isAnimating:w,stop:yt}}(jQuery,DevExpress),function(n,t){function e(n){return/^(localhost$|127\.)/i.test(n)}var r=window.location,u="dxproxy.devexpress.com:8000",f=r.protocol==="ms-appx:",o=r.host===u,s=e(r.hostname),h=function(){return r.pathname.split("/")[1]},c=function(n){var i=t.parseUrl(n);return e(i.hostname)?"http://"+u+"/"+h()+"_"+i.port+i.pathname+i.search:n},l=t.EndpointSelector=function(n){this.config=n};l.prototype={urlFor:function(n){var t=this.config[n];if(!t)throw Error("Unknown endpoint key");return o?c(t.local):t.production&&(f&&!Debug.debuggerEnabled||!f&&!s)?t.production:t.local}}}(jQuery,DevExpress),function(n,t,i){var r=t.utils,f,u;t.NumericFormat={currency:"C",fixedpoint:"N",exponential:"",percent:"P",decimal:"D"},t.LargeNumberFormatPostfixes={1:"K",2:"M",3:"B",4:"T"},f=4,u=10,t.LargeNumberFormatPowers={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},t.DateTimeFormat={longdate:"D",longtime:"T",monthandday:"M",monthandyear:"Y",quarterandyear:"qq",shortdate:"d",shorttime:"t",millisecond:"fff",second:"T",minute:"t",hour:"t",day:"dd",week:"dd",month:"MMMM",quarter:"qq",year:"yyyy",longdatelongtime:"D",shortdateshorttime:"d"},t.formatHelper={defaultQuarterFormat:"Q{0}",romanDigits:["I","II","III","IV"],_addFormatSeparator:function(n,t){var i=" ";return t?n+i+t:n},_getDateTimeFormatPattern:function(n){return Globalize.findClosestCulture().calendar.patterns[t.DateTimeFormat[n.toLowerCase()]]},_isDateFormatContains:function(i){var r=!1;return n.each(t.DateTimeFormat,function(n){return r=n===i.toLowerCase(),!r}),r},getQuarter:function(n){return Math.floor(n/3)},getFirstQuarterMonth:function(n){return this.getQuarter(n)*3},_getQuarterString:function(n,t){var i=this.getQuarter(n.getMonth());switch(t){case"q":return this.romanDigits[i];case"qq":return r.stringFormat(this.defaultQuarterFormat,this.romanDigits[i]);case"Q":return(i+1).toString();case"QQ":return r.stringFormat(this.defaultQuarterFormat,(i+1).toString())}return""},_formatCustomString:function(n,t){var f=/qq|q|QQ|Q/g,i,u="",r=0;for(f.lastIndex=0;rr)&&(u+=Globalize.format(n,t.substring(r,i?i.index:t.length))),i?(u+=this._getQuarterString(n,i[0]),r=i.index+i[0].length):r=t.length;return u},_parseNumberFormatString:function(i){var u,r={};if(i&&typeof i=="string")return u=i.toLowerCase().split(" "),n.each(u,function(n,i){i in t.NumericFormat?r.formatType=i:i in t.LargeNumberFormatPowers&&(r.power=t.LargeNumberFormatPowers[i])}),r.power&&!r.formatType&&(r.formatType="fixedpoint"),r.formatType?r:void 0},_calculateNumberPower:function(n,t,r,u){var f=Math.abs(n),e=0;if(f>1)while(f&&f>=t&&(u===i||e0&&f<1)while(f<1&&(r===i||e>r))e--,f=f*t;return e},_getNumberByPower:function(n,t,i){for(var r=n;t>0;)r=r/i,t--;while(t<0)r=r*i,t++;return r},_formatNumber:function(n,i,r){var u;return i.power==="auto"&&(i.power=this._calculateNumberPower(n,1e3,0,f)),i.power&&(n=this._getNumberByPower(n,i.power,1e3)),u=t.LargeNumberFormatPostfixes[i.power]||"",this._formatNumberCore(n,i.formatType,r)+u},_formatNumberExponential:function(n,t){var r=this._calculateNumberPower(n,u),f=this._getNumberByPower(n,r,u),e;return t=t===i?1:t,f.toFixed(t||0)>=u&&(r++,f=f/u),e=(r>=0?"+":"")+r.toString(),this._formatNumberCore(f,"fixedpoint",t)+"E"+e},_formatNumberCore:function(n,i,u){return i==="exponential"?this._formatNumberExponential(n,u):Globalize.format(n,t.NumericFormat[i]+(r.isNumber(u)?u:0))},_formatDate:function(n,i){var u=t.DateTimeFormat[i.toLowerCase()];return(i=i.toLowerCase(),i==="quarterandyear"&&(u=this._getQuarterString(n,u)+" yyyy"),i==="quarter")?this._getQuarterString(n,u):i==="longdatelongtime"?this._formatDate(n,"longdate")+" "+this._formatDate(n,"longtime"):i==="shortdateshorttime"?this._formatDate(n,"shortDate")+" "+this._formatDate(n,"shortTime"):Globalize.format(n,u)},format:function(n,t,i){if(t&&t.format){if(t.dateType)return this._formatDateEx(n,t);if(r.isNumber(n)&&isFinite(n))return this._formatNumberEx(n,t)}return this._format(n,t,i)},_format:function(n,t,i){var u;return!r.isString(t)||t===""||!r.isNumber(n)&&!r.isDate(n)?r.isDefined(n)?n.toString():"":(u=this._parseNumberFormatString(t),r.isNumber(n)&&u)?this._formatNumber(n,u,i):r.isDate(n)&&this._isDateFormatContains(t)?this._formatDate(n,t):!u&&!this._isDateFormatContains(t)?this._formatCustomString(n,t):void 0},_formatNumberEx:function(n,i){var l=this,p=t.NumericFormat[i.format.toLowerCase()],e=Globalize.culture().numberFormat,b=i.currencyCulture&&Globalize.cultures[i.currencyCulture]?Globalize.cultures[i.currencyCulture].numberFormat.currency:e.currency,k=e.percent,a=l._getUnitFormatSettings(n,i),d=a.unit,v=a.precision,tt=a.showTrailingZeros,it=a.includeGroupSeparator,rt=e[","],ut=e["."],u,y,s,f,g=/n|\$|-|%/g,o="",h,w,nt,c;if(!r.isDefined(n))return"";n=l._applyUnitToValue(n,d),u=Math.abs(n),y=n<0;switch(p){case t.NumericFormat.decimal:if(s="n",u=Math[y?"ceil":"floor"](u),v>0){for(h=""+u,w=h.length;w0?"+":"")+o},_excludeTrailingZeros:function(n,t){var u=n.indexOf(t),r,i;if(u<0)return n;for(r=n.length,i=r-1;i>=u&&(n[i]==="0"||i===u);i--)r--;return n.substring(0,r)},_getUnitFormatSettings:function(n,t){var e=t.unit||"",u=t.precision||0,h=t.includeGroupSeparator||!1,s=t.showTrailingZeros===i?!0:t.showTrailingZeros,f=t.significantDigits||1,r,o;if(e.toLowerCase()==="auto")if(s=!1,r=Math.abs(n),f<1&&(f=1),r>=1e9?(e="B",r/=1e9):r>=1e6?(e="M",r/=1e6):r>=1e3?(e="K",r/=1e3):e="",r==0)u=0;else if(r<1)for(u=f,o=Math.pow(10,-f);r=100?f-3:r>=10?f-2:f-1;return u<0&&(u=0),{unit:e,precision:u,showTrailingZeros:s,includeGroupSeparator:h}},_applyUnitToValue:function(n,t){return t=="B"?n.toFixed(1)/1e9:t=="M"?n/1e6:t=="K"?n/1e3:n},_formatDateEx:function(t,u){var e=this,l=u.format,f=u.dateType,c=Globalize.culture().calendars.standard,s=i,h,o;if(l=l.toLowerCase(),!r.isDefined(t))return"";if(f!=="num"||l==="dayofweek")switch(l){case"monthyear":return e._formatDate(t,"monthandyear");case"quarteryear":return e._getQuarterString(t,"QQ")+" "+t.getFullYear();case"daymonthyear":return e._formatDate(t,f+"Date");case"datehour":return s=new Date(t.getTime()),s.setMinutes(0),o=f==="timeOnly"?"":e._formatDate(t,f+"Date"),f==="timeOnly"?e._formatDate(s,"shorttime"):o+" "+e._formatDate(s,"shorttime");case"datehourminute":return o=f==="timeOnly"?"":e._formatDate(t,f+"Date"),f==="timeOnly"?e._formatDate(t,"shorttime"):o+" "+e._formatDate(t,"shorttime");case"datehourminutesecond":return o=f==="timeOnly"?"":e._formatDate(t,f+"Date"),f==="timeOnly"?e._formatDate(t,"longtime"):o+" "+e._formatDate(t,"longtime");case"year":return o=t.toString(),f==="abbr"?o.slice(2,4):o;case"quarter":return r.stringFormat(e.defaultQuarterFormat,t.toString());case"month":return h=t-1,f==="abbr"?c.months.namesAbbr[h]:c.months.names[h];case"hour":return f==="long"?(s=new Date,s.setHours(t),s.setMinutes(0),e._formatDate(s,"shorttime")):t.toString();case"dayofweek":return h=r.isString(t)?n.inArray(t,["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]):t,f!=="num"?f==="abbr"?c.days.namesAbbr[h]:c.days.names[h]:((h-c.firstDay+1+7)%8).toString();default:return t.toString()}else return t.toString()},getTimeFormat:function(n){return n?this._getDateTimeFormatPattern("longtime"):this._getDateTimeFormatPattern("shorttime")},getDateFormatByDifferences:function(n){var i="";return(n.millisecond&&(i=t.DateTimeFormat.millisecond),(n.hour||n.minute||n.second)&&(i=this._addFormatSeparator(this.getTimeFormat(n.second),i)),n.year&&n.month&&n.day)?this._addFormatSeparator(this._getDateTimeFormatPattern("shortdate"),i):n.year&&n.month?t.DateTimeFormat.monthandyear:n.year?t.DateTimeFormat.year:n.month&&n.day?this._addFormatSeparator(this._getDateTimeFormatPattern("monthandday"),i):n.month?t.DateTimeFormat.month:n.day?this._addFormatSeparator("dddd, dd",i):i},getDateFormatByTicks:function(n){var f,t,u,i,e;if(n.length>1)for(t=r.getDatesDifferences(n[0],n[1]),i=1;i0,minute:n[0].getMinutes()>0,second:n[0].getSeconds()>0};return f=this.getDateFormatByDifferences(t)},getDateFormatByTickInterval:function(n,t,i){var e,u,f,s={quarter:"month",week:"day"},o=function(n,t,i){switch(t){case"year":n.month=i;case"quarter":case"month":n.day=i;case"week":case"day":n.hour=i;case"hour":n.minute=i;case"minute":n.second=i;case"second":n.millisecond=i}},h=function(n,t,i){!i.getMilliseconds()&&i.getSeconds()?i.getSeconds()-t.getSeconds()==1&&(n.millisecond=!0,n.second=!1):!i.getSeconds()&&i.getMinutes()?i.getMinutes()-t.getMinutes()==1&&(n.second=!0,n.minute=!1):!i.getMinutes()&&i.getHours()?i.getHours()-t.getHours()==1&&(n.minute=!0,n.hour=!1):!i.getHours()&&i.getDate()>1?i.getDate()-t.getDate()==1&&(n.hour=!0,n.day=!1):i.getDate()===1&&i.getMonth()?i.getMonth()-t.getMonth()==1&&(n.day=!0,n.month=!1):!i.getMonth()&&i.getFullYear()&&i.getFullYear()-t.getFullYear()==1&&(n.month=!0,n.year=!1)};return i=r.isString(i)?i.toLowerCase():i,u=r.getDatesDifferences(n,t),n!==t&&h(u,n>t?t:n,n>t?n:t),f=r.getDateUnitInterval(u),o(u,f,!0),f=r.getDateUnitInterval(i||"second"),o(u,f,!1),u[s[f]||f]=!0,e=this.getDateFormatByDifferences(u)}}}(jQuery,DevExpress),function(n){function u(n){this.baseColor=n;var t;n&&(t=String(n).toLowerCase().replace(/ /g,""),t=c[t]?"#"+c[t]:t,t=a(t)),t||(this.colorIsInvalid=!0),t=t||{},this.r=i(t[0]),this.g=i(t[1]),this.b=i(t[2]),this.a=i(t[3],1,1),this.hsv=t[4]?{h:t[4][0],s:t[4][1],v:t[4][2]}:y(this.r,this.g,this.b),this.hsl=t[5]?{h:t[5][0],s:t[5][1],l:t[5][2]}:w(this.r,this.g,this.b)}function a(n){if(n==="transparent")return[0,0,0,0];for(var u,t=0,r=e.length,i;ti?i:n}function v(n,t,i){return"#"+(16777216|n<<16|t<<8|i).toString(16).slice(1)}function y(n,t,i){var u=Math.max(n,t,i),f=Math.min(n,t,i),e=u-f,r,o,s;if(s=u,o=u===0?0:1-f/u,u===f)r=0;else switch(u){case n:r=60*((t-i)/e),t.5?o/(2-c):o/c,u=p(n,t,i,o),u/=6),{h:r(u*360),s:r(e*100),l:r(l*100)}}function o(n,t){var i=t;return n==="r"&&(i=t+1/3),n==="b"&&(i=t-1/3),i}function b(n){return n<0&&(n+=1),n>1&&(n-=1),n}function s(n,t,i){return(i=b(i),i<1/6)?n+(t-n)*6*i:i<1/2?t:i<2/3?n+(t-n)*(2/3-i)*6:n}function k(n,t,i){var h,c,l,n=f(n,360),t=f(t,100),i=f(i,100),u,e;return t===0?h=c=l=i:(u=i<.5?i*(1+t):i+t-i*t,e=2*i-u,h=s(e,u,o("r",n)),c=s(e,u,o("g",n)),l=s(e,u,o("b",n))),[r(h*255),r(c*255),r(l*255)]}function f(n,t){return(n=Math.min(t,Math.max(0,parseFloat(n))),Math.abs(n-t)<1e-6)?1:n%t/parseFloat(t)}function h(n,t,i){return(t=t||0,i=i||255,n%1!=0||ni||typeof n!="number"||isNaN(n))?!1:!0}var c={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(n){return[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)]}},{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*\.*\d+)\)$/,process:function(n){return[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),parseFloat(n[4])]}},{re:/^#(\w{2})(\w{2})(\w{2})$/,process:function(n){return[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]}},{re:/^#(\w{1})(\w{1})(\w{1})$/,process:function(n){return[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16)]}},{re:/^hsv\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(n){var i=parseInt(n[1],10),r=parseInt(n[2],10),u=parseInt(n[3],10),t=l(i,r,u);return[t[0],t[1],t[2],1,[i,r,u]]}},{re:/^hsl\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(n){var i=parseInt(n[1],10),r=parseInt(n[2],10),u=parseInt(n[3],10),t=k(i,r,u);return[t[0],t[1],t[2],1,null,[i,r,u]]}}],r=Math.round;u.prototype={constructor:u,highlight:function(n){return n=n||10,this.alter(n).toHex()},darken:function(n){return n=n||10,this.alter(-n).toHex()},alter:function(n){var t=new u;return t.r=i(this.r+n),t.g=i(this.g+n),t.b=i(this.b+n),t},blend:function(n,t){var e=n instanceof u?n:new u(n),f=new u;return f.r=i(r(this.r*(1-t)+e.r*t)),f.g=i(r(this.g*(1-t)+e.g*t)),f.b=i(r(this.b*(1-t)+e.b*t)),f},toHex:function(){return v(this.r,this.g,this.b)},getPureColor:function(){var n=l(this.hsv.h,100,100);return new u("rgb("+n.join(",")+")")},isValidHex:function(n){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(n)},isValidRGB:function(n,t,i){return!h(n)||!h(t)||!h(i)?!1:!0},isValidAlpha:function(n){return isNaN(n)||n<0||n>1||typeof n!="number"?!1:!0},colorIsInvalid:!1},n.Color=u}(DevExpress),function(n,t){Globalize.localize=function(n,t){var i=(t||this.cultureSelector||"").substring(0,2);return this.findClosestCulture(t).messages[n]||this.findClosestCulture(i).messages[n]||this.cultures["default"].messages[n]};var r=function(){var i={};return{setup:function(n){this.localizeString=function(r){var u=new RegExp("(^|[^a-zA-Z_0-9"+n+"-]+)("+n+"{1,2})([a-zA-Z_0-9-]+)","g"),f=n+n;return r.replace(u,function(r,u,e,o){var s=u+n+o;return e!==f&&(Globalize.cultures["default"].messages[o]?s=u+Globalize.localize(o):i[o]=t.inflector.humanize(o)),s})}},localizeNode:function(t){var i=this;n(t).each(function(t,r){r.nodeType&&(r.nodeType===3?r.nodeValue=i.localizeString(r.nodeValue):(n.each(r.attributes||[],function(n,t){if(typeof t.value=="string"){var r=i.localizeString(t.value);t.value!==r&&(t.value=r)}}),n(r).contents().each(function(n,t){i.localizeNode(t)})))})},getDictionary:function(t){return t?i:n.extend({},i,Globalize.cultures["default"].messages)}}}();r.setup("@"),t.localization=r}(jQuery,DevExpress),Globalize.addCultureInfo("default",{messages:{Yes:"Yes",No:"No",Cancel:"Cancel",Clear:"Clear",Done:"Done",Loading:"Loading...",Select:"Select...",Search:"Search",Back:"Back",OK:"OK","dxLookup-searchPlaceholder":"Minimum character number: {0}","dxCollectionContainerWidget-noDataText":"No data to display","dxList-pullingDownText":"Pull down to refresh...","dxList-pulledDownText":"Release to refresh...","dxList-refreshingText":"Refreshing...","dxList-pageLoadingText":"Loading...","dxList-nextButtonText":"More","dxListEditDecorator-delete":"Delete","dxListEditDecorator-more":"More","dxScrollView-pullingDownText":"Pull down to refresh...","dxScrollView-pulledDownText":"Release to refresh...","dxScrollView-refreshingText":"Refreshing...","dxScrollView-reachBottomText":"Loading...","dxSwitch-onText":"ON","dxSwitch-offText":"OFF","dxDateBox-simulatedDataPickerTitleTime":"Select time","dxDateBox-simulatedDataPickerTitleDate":"Select date","dxDateBox-simulatedDataPickerTitleDateTime":"Select date and time","dxDataGrid-columnChooserTitle":"Column Chooser","dxDataGrid-columnChooserEmptyText":"Drag a column here to hide it","dxDataGrid-groupContinuesMessage":"Continues on the next page","dxDataGrid-groupContinuedMessage":"Continued from the previous page","dxDataGrid-editingEditRow":"Edit","dxDataGrid-editingSaveRowChanges":"Save","dxDataGrid-editingCancelRowChanges":"Cancel","dxDataGrid-editingDeleteRow":"Delete","dxDataGrid-editingUndeleteRow":"Undelete","dxDataGrid-editingConfirmDeleteMessage":"Are you sure you want to delete this record?","dxDataGrid-editingConfirmDeleteTitle":"","dxDataGrid-groupPanelEmptyText":"Drag a column header here to group by that column","dxDataGrid-noDataText":"No data","dxDataGrid-searchPanelPlaceholder":"Search...","dxDataGrid-filterRowShowAllText":"(All)","dxDataGrid-filterRowResetOperationText":"Reset","dxDataGrid-filterRowOperationEquals":"Equals","dxDataGrid-filterRowOperationNotEquals":"Does not equal","dxDataGrid-filterRowOperationLess":"Less than","dxDataGrid-filterRowOperationLessOrEquals":"Less than or equal to","dxDataGrid-filterRowOperationGreater":"Greater than","dxDataGrid-filterRowOperationGreaterOrEquals":"Greater than or equal to","dxDataGrid-filterRowOperationStartsWith":"Starts with","dxDataGrid-filterRowOperationContains":"Contains","dxDataGrid-filterRowOperationNotContains":"Does not contain","dxDataGrid-filterRowOperationEndsWith":"Ends with","dxDataGrid-trueText":"true","dxDataGrid-falseText":"false","dxDataGrid-sortingAscendingText":"Sort Ascending","dxDataGrid-sortingDescendingText":"Sort Descending","dxDataGrid-sortingClearText":"Clear Sorting"}}),function(n,t,i){var o=function(n){return n.replace(/\[/g,".").replace(/\]/g,"")},u=t.utils.unwrapObservable,s=function(n){return t.support.hasKo&&ko.isObservable(n)},h=function(n,t){return t==="this"?n:n[t]},c=function(n,t,i){if(t==="this")throw Error("Cannot assign to self");var r=n[t];s(r)?r(i):n[t]=i},f=function(t){if(arguments.length>1&&(t=n.makeArray(arguments)),!t||t==="this")return function(n){return n};if(n.isFunction(t))return t;if(n.isArray(t))return a(t);t=o(t);var i=t.split(".");return function(t,r){r=r||{};var f=u(t);return n.each(i,function(){if(!f)return!1;var t=u(f[this]);n.isFunction(t)&&!r.functionsAsIs&&(t=t.call(f)),f=t}),f}},a=function(t){var r={};return n.each(t,function(){r[this]=f(this)}),function(t,u){var f={};return n.each(r,function(n){var s=this(t,u),e,o,h,r;if(s!==i){for(e=f,o=n.split("."),h=o.length-1,r=0;r>2,(e&3)<<4|u>>4,isNaN(u)?64:(u&15)<<2|f>>6,isNaN(f)?64:f&63],function(n){return b.charAt(n)}).join("")}return r},d=function(n){for(var i=[],t,r=0;r>6),128+(t&63)):t<65536?i.push(224+(t>>12),128+(t>>6&63),128+(t&63)):t<2097152&&i.push(240+(t>>18),128+(t>>12&63),128+(t>>6&63),128+(t&63));return i},g=function(){var n={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"},t=function(t){var i=n[t];return i?i:t};return function(n,i){return n.status<400?t(i):n.statusText}}(),e=t.data={utils:{compileGetter:f,compileSetter:v,normalizeBinaryCriterion:y,normalizeSortingInfo:p,toComparable:r,keysEqual:w,errorMessageFromXhr:g},Guid:l,base64_encode:k,queryImpl:{},queryAdapters:{},query:function(){var t=n.isArray(arguments[0])?"array":"remote";return e.queryImpl[t].apply(this,arguments)},errorHandler:null,_handleError:function(n){e.errorHandler&&e.errorHandler(n)}}}(jQuery,DevExpress),function(n,t,i){var v=t.Class,u=t.data,l=u.queryImpl,f=u.utils.compileGetter,r=u.utils.toComparable,e=v.inherit({toArray:function(){var n=[];for(this.reset();this.next();)n.push(this.current());return n},countable:function(){return!1}}),s=e.inherit({ctor:function(n){this.array=n,this.index=-1},next:function(){return this.index+1o)return f;if(u!==o)return u?f:-f}return s-h}}),a=function(){function o(n,t,i){return function(u){u=r(n(u));var f=c(t)?u===t:u==t;return i&&(f=!f),f}}function c(n){return n===""||n===0||n===null||n===!1||n===i}var s=function(t){var u=[],i=["return function(d) { return "],f=0,r=!1;return n.each(t,function(){n.isArray(this)||n.isFunction(this)?(r&&i.push(" && "),u.push(a(this)),i.push("op[",f,"](d)"),f++,r=!0):(i.push(/and|&/i.test(this)?" && ":" || "),r=!1)}),i.push(" }"),new Function("op",i.join(""))(u)},e=function(n){return t.utils.isDefined(n)?n.toString():""},h=function(n){n=u.utils.normalizeBinaryCriterion(n);var i=f(n[0]),s=n[1],t=n[2];t=r(t);switch(s.toLowerCase()){case"=":return o(i,t);case"<>":return o(i,t,!0);case">":return function(n){return r(i(n))>t};case"<":return function(n){return r(i(n))=":return function(n){return r(i(n))>=t};case"<=":return function(n){return r(i(n))<=t};case"startswith":return function(n){return r(e(i(n))).indexOf(t)===0};case"endswith":return function(n){var u=r(e(i(n)));return u.lastIndexOf(t)===u.length-e(t).length};case"contains":return function(n){return r(e(i(n))).indexOf(t)>-1};case"notcontains":return function(n){return r(e(i(n))).indexOf(t)===-1}}throw Error("Unknown filter operation: "+s);};return function(t){return n.isFunction(t)?t:n.isArray(t[0])?s(t):h(t)}}(),y=o.inherit({ctor:function(n,t){this.callBase(n),this.criteria=a(t)},next:function(){while(this.iter.next())if(this.criteria(this.current()))return!0;return!1}}),p=e.inherit({ctor:function(n,t){this.iter=n,this.getter=t},next:function(){return this._ensureGrouped(),this.groupedIter.next()},current:function(){return this._ensureGrouped(),this.groupedIter.current()},reset:function(){delete this.groupedIter},countable:function(){return!!this.groupedIter},count:function(){return this.groupedIter.count()},_ensureGrouped:function(){var r,t;if(!this.groupedIter){var i={},e=[],u=this.iter,o=f(this.getter);for(u.reset();u.next();)r=u.current(),t=o(r),t in i?i[t].push(r):(i[t]=[r],e.push(t));this.groupedIter=new s(n.map(e,function(n){return{key:n,items:i[n]}}))}}}),w=o.inherit({ctor:function(n,t){this.callBase(n),this.getter=f(t)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),b=o.inherit({ctor:function(n,t,i){this.callBase(n),this.skip=Math.max(0,t),this.take=Math.max(0,i),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;while(this.posn?t:n})},avg:function(n){if(n)return a(n).avg();var t=0;return o(0,function(n,i){return t++,n+i},function(n){return t?n/t:i})}}}}(jQuery,DevExpress),function(n,t){var r=t.data,u=r.queryImpl;u.remote=function(t,i,f){f=f||[],i=i||{};var o=function(n,t){return{name:n,args:t}},s=function(e){var o=n.Deferred(),h,c,s,l,a=function(n){var t=i.errorHandler;t&&t(n),r._handleError(n),o.reject(n)};try{for(h=i.adapter||"odata",n.isFunction(h)||(h=r.queryAdapters[h]),c=h(i),s=[].concat(f).concat(e);s.length;){if(l=s[0],String(l.name)!=="enumerate"&&(!c[l.name]||c[l.name].apply(c,l.args)===!1))break;s.shift()}c.exec(t).done(function(t,r){if(s.length){var f=u.array(t,{errorHandler:i.errorHandler});n.each(s,function(){f=f[this.name].apply(f,this.args)}),f.done(n.proxy(o.resolve,o)).fail(n.proxy(o.reject,o))}else o.resolve(t,r)}).fail(a)}catch(v){a(v)}return o.promise()},e={};return n.each(["sortBy","thenBy","filter","slice","select","groupBy"],function(){var n=this;e[n]=function(){return u.remote(t,i,f.concat(o(n,arguments)))}}),n.each(["count","min","max","sum","avg","aggregate","enumerate"],function(){var n=this;e[n]=function(){return s.call(this,o(n,arguments))}}),e}}(jQuery,DevExpress),function(n,t,i){function b(n){function t(n,t){return this[n]instanceof Date?f.formatIso8601Date(this[n]):t}return JSON.stringify(n,t)}var e=t.data,f=t.utils,o=e.Guid,v=/^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$/,y=/^\/Date\((-?\d+)((\+|-)?(\d+)?)\)\/$/,p=/^(\d{4})(?:-?W(\d+)(?:-?(\d+)D?)?|(?:-(\d+))?-(\d+))(?:[T ](\d+):(\d+)(?::(\d+)(?:\.(\d+))?)?)?(?:Z(-?\d*))?$/,w=(new Date).getTimezoneOffset()*6e4,c="application/json;odata=verbose",k=function(t,i){var u;t=n.extend({method:"get",url:"",params:{},payload:null,headers:{}},t),i=i||{},u=i.beforeSend,u&&u(t);var o=(t.method||"get").toLowerCase(),r=o==="get",f=r&&i.jsonp,s=n.extend({},t.params),h=r?s:b(t.payload),l=!r&&n.param(s),e=t.url,a=!r&&c;return l&&(e+=(e.indexOf("?")>-1?"&":"?")+l),f&&(h.$format="json"),{url:e,data:h,dataType:f?"jsonp":"json",jsonp:f&&"$callback",type:o,timeout:3e4,headers:t.headers,contentType:a,accepts:{json:[c,"text/plain"].join()},xhrFields:{withCredentials:i.withCredentials}}},h=function(t,i){var r=n.Deferred();return n.ajax(k(t,i)).always(function(t,u){var f=nt(t,u),e=f.error,o=f.data,s=f.nextUrl,c;e?r.reject(e):i.countOnly?r.resolve(f.count):s?h({url:s},i).fail(n.proxy(r.reject,r)).done(function(n){r.resolve(o.concat(n))}):(isFinite(f.count)&&(c={totalCount:f.count}),r.resolve(o,c))}),r.promise()},d=function(n){var t,i=n;for(("message"in n)&&(t=n.message.value?n.message.value:n.message);i=i.innererror||i.internalexception;)if(t=i.message,i.internalexception&&t.indexOf("inner exception")===-1)break;return t},g=function(t,i){var u;if(i==="nocontent")return null;var r=200,f="Unknown error",o=t;if(i!=="success"){r=t.status,f=e.utils.errorMessageFromXhr(t,i);try{o=n.parseJSON(t.responseText)}catch(s){}}return(u=o&&(o.error||o["@odata.error"]),u)?(f=d(u)||f,r===200&&(r=500),u.code&&(r=Number(u.code)),n.extend(Error(f),{httpStatus:r,errorDetails:u})):r!==200?n.extend(Error(f),{httpStatus:r}):void 0},nt=function(t,i){var u=g(t,i),r;return u?{error:u}:n.isPlainObject(t)?(r="d"in t&&(f.isArray(t.d)||f.isObject(t.d))?tt(t,i):it(t,i),l(r),r):{data:t}},tt=function(n){var i=n.d;return i?(i=i.results||i,{data:i,nextUrl:n.d.__next,count:parseInt(n.d.__count,10)}):{error:Error("Malformed or unsupported JSON response received")}},it=function(n){var i=n.value||n;return i?{data:i,nextUrl:n["@odata.nextLink"],count:parseInt(n["@odata.count"],10)}:{error:Error("Malformed or unsupported JSON response received")}},r=t.Class.inherit({ctor:function(n){this._value=n},valueOf:function(){return this._value}}),l=function(t){n.each(t,function(n,i){i!==null&&typeof i=="object"?l(i):typeof i=="string"&&(v.test(i)?t[n]=new o(i):i.match(y)?t[n]=new Date(w+Number(RegExp.$1)+RegExp.$2*6e4):p.test(i)&&(t[n]=new Date(f.parseIso8601Date(t[n]).valueOf())))})},rt=function(){var n=function(n){return n=String(n),n.length<2&&(n="0"+n),n};return function(t){var i=["datetime'",t.getFullYear(),"-",n(t.getMonth()+1),"-",n(t.getDate())];return(t.getHours()||t.getMinutes()||t.getSeconds()||t.getMilliseconds())&&(i.push("T",n(t.getHours()),":",n(t.getMinutes()),":",n(t.getSeconds())),t.getMilliseconds()&&i.push(".",t.getMilliseconds())),i.push("'"),i.join("")}}(),ut=function(n){return"'"+n.replace(/":t("ne"),">":t("gt"),">=":t("ge"),"<":t("lt"),"<=":t("le"),startswith:i("startswith"),endswith:i("endswith")},o=n.extend({},r,{contains:i("substringof",!0),notcontains:i("not substringof",!0)}),h=n.extend({},r,{contains:i("contains"),notcontains:i("not contains")}),c=function(n,t,i){n=e.utils.normalizeBinaryCriterion(n);var r=n[1],c=i===4?h:o,f=c[r.toLowerCase()];if(!f)throw Error("Unknown filter operation: "+r);f(u(n[0]),s(n[2],i),t)},l=function(t,i,r){var u=!1;n.each(t,function(){n.isArray(this)?(u&&i.push(" and "),i.push("("),f(this,i,r),i.push(")"),u=!0):(i.push(/and|&/i.test(this)?" and ":" or "),u=!1)})},f=function(t,i,r){n.isArray(t[0])?l(t,i,r):c(t,i,r)};return function(n,t){var i=[];return f(n,i,t),i.join("")}}(),ct=function(t){var o=[],r=[],f,s,c,e,l=function(){return s||c!==i},a=function(n,t,i){if(l()||typeof n!="string")return!1;i&&(o=[]);var r=u(n);t&&(r+=" desc"),o.push(r)},v=function(){var r={};return t.expand&&n.each(n.makeArray(t.expand),function(){r[u(this)]=1}),f&&n.each(f,function(){var n=this.split(".");n.length<2||(n.pop(),r[u(n.join("."))]=1)}),n.map(r,function(n,t){return t}).join()||i},y=function(){var n={};return e||(o.length&&(n.$orderby=o.join(",")),s&&(n.$skip=s),c!==i&&(n.$top=c),f&&(n.$select=u(f.join())),n.$expand=v()),r.length&&(n.$filter=ht(r.length<2?r[0]:r,t.version)),e&&(n.$top=0),(t.requireTotalCount||e)&&(t.version!==4?n.$inlinecount="allpages":n.$count="true"),n};return{exec:function(i){return h({url:i,params:n.extend(y(),t&&t.params)},{beforeSend:t.beforeSend,jsonp:t.jsonp,withCredentials:t.withCredentials,countOnly:e})},sortBy:function(n,t){return a(n,t,!0)},thenBy:function(n,t){return a(n,t,!1)},slice:function(n,t){if(l())return!1;s=n,c=t},filter:function(t){if(l()||n.isFunction(t))return!1;n.isArray(t)||(t=n.makeArray(arguments)),r.length&&r.push("and"),r.push(t)},select:function(t){if(f||n.isFunction(t))return!1;n.isArray(t)||(t=n.makeArray(arguments)),f=t},count:function(){e=!0}}};n.extend(!0,e,{EdmLiteral:r,utils:{odata:{sendRequest:h,serializePropName:u,serializeValue:s,serializeKey:ot,keyConverters:st}},queryAdapters:{odata:ct}})}(jQuery,DevExpress),function(n,t){function f(t,i){return t=t.groupBy(i[0].selector),i.length>1&&(t=t.select(function(t){return n.extend({},t,{items:f(r.query(t.items),i.slice(1)).toArray()})})),t}function h(t,i){var r=[];return n.each(t,function(t,u){var f=n.grep(i,function(n){return u.selector==n.selector});f.length<1&&r.push(u)}),r.concat(i)}var o=t.Class,u=t.abstract,r=t.data,e=r.utils.normalizeSortingInfo,s=["loading","loaded","modifying","modified","inserting","inserted","updating","updated","removing","removed"];r.utils.multiLevelGroup=f,r.Store=o.inherit({ctor:function(t){var i=this;t=t||{},n.each(s,function(){var r=i[this]=n.Callbacks();this in t&&r.add(t[this])}),this._key=t.key,this._errorHandler=t.errorHandler,this._useDefaultSearch=!0},_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(n){return this._keyGetter||(this._keyGetter=r.utils.compileGetter(this.key())),this._keyGetter(n)},_requireKey:function(){if(!this.key())throw Error("Key expression is required for this operation");},load:function(n){var t=this;return n=n||{},this.loading.fire(n),this._loadImpl(n).done(function(n,i){t.loaded.fire(n,i)})},_loadImpl:function(t){var o=t.filter,u=t.sort,s=t.select,r=t.group,c=t.skip,l=t.take,i=this.createQuery(t);return o&&(i=i.filter(o)),r&&(r=e(r)),(u||r)&&(u=e(u||[]),r&&(u=h(r,u)),n.each(u,function(n){i=i[n?"thenBy":"sortBy"](this.selector,this.desc)})),s&&(i=i.select(s)),r&&(i=f(i,r)),(l||c)&&(i=i.slice(c||0,l)),i.enumerate()},createQuery:u,totalCount:function(n){return this._addFailHandlers(this._totalCountImpl(n))},_totalCountImpl:function(n){n=n||{};var t=this.createQuery(),i=n.group,r=n.filter;return r&&(t=t.filter(r)),i&&(i=e(i),t=f(t,i)),t.count()},byKey:function(n,t){return this._addFailHandlers(this._byKeyImpl(n,t))},_byKeyImpl:u,insert:function(n){var t=this;return t.modifying.fire(),t.inserting.fire(n),t._addFailHandlers(t._insertImpl(n).done(function(n,i){t.inserted.fire(n,i),t.modified.fire()}))},_insertImpl:u,update:function(n,t){var i=this;return i.modifying.fire(),i.updating.fire(n,t),i._addFailHandlers(i._updateImpl(n,t).done(function(n,t){i.updated.fire(n,t),i.modified.fire()}))},_updateImpl:u,remove:function(n){var t=this;return t.modifying.fire(),t.removing.fire(n),t._addFailHandlers(t._removeImpl(n).done(function(n){t.removed.fire(n),t.modified.fire()}))},_removeImpl:u,_addFailHandlers:function(n){return n.fail(this._errorHandler,r._handleError)}})}(jQuery,DevExpress),function(n,t,i){var r=t.data,e=r.Guid,u=function(){var i=n.Deferred();return i.resolve.apply(i,arguments).promise()},f=function(){var i=n.Deferred();return i.reject.apply(i,arguments).promise()};r.ArrayStore=r.Store.inherit({ctor:function(t){t=n.isArray(t)?{data:t}:t||{},this.callBase(t);var i=t.data;if(i&&!n.isArray(i))throw Error("Invalid 'data' option value");this._array=i||[]},createQuery:function(){return r.query(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(n){return u(this._array[this._indexByKey(n)])},_insertImpl:function(t){var s=this.key(),r,o={};if(n.extend(o,t),s){if(r=this.keyOf(o),r===i||typeof r=="object"&&n.isEmptyObject(r)){if(n.isArray(s))throw Error("Compound keys cannot be auto-generated");r=o[s]=String(new e)}else if(this._array[this._indexByKey(r)]!==i)return f(Error("Attempt to insert an item with the duplicate key"))}else r=o;return this._array.push(o),u(t,r)},_updateImpl:function(n,i){var r,e;if(this.key()){if(e=this._indexByKey(n),e<0)return f(Error("Data item not found"));r=this._array[e]}else r=n;return t.utils.deepExtendArraySafe(r,i),u(n,i)},_removeImpl:function(n){var t=this._indexByKey(n);return t>-1&&this._array.splice(t,1),u(n)},_indexByKey:function(n){for(var t=0,i=this._array.length;t1&&(t=n.makeArray(arguments)),this.pageIndex(0),this._searchExpr=t),this._searchExpr},store:function(){return this._store},key:function(){return this._store&&this._store.key()},totalCount:function(){return this._totalCount},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._loadingCount>0},_createLoadQueue:function(){return t.createQueue()},_changeLoadingCount:function(n){var i=this.isLoading(),t;this._loadingCount+=n,t=this.isLoading(),i^t&&this.loadingChanged.fire(t)},_scheduleLoadCallbacks:function(n){var t=this;t._changeLoadingCount(1),n.always(function(){t._changeLoadingCount(-1)})},_scheduleChangedCallbacks:function(n){var t=this;n.done(function(){t.changed.fire()})},loadSingle:function(t,i){function s(n){f.resolve(h._transformLoadedData(n)[0])}var h=this,f=n.Deferred().fail(this.loadError.fire),o=this.key(),e=this._store,u=this._createStoreLoadOptions();return arguments.length<2&&(i=t,t=o),delete u.skip,delete u.group,delete u.refresh,delete u.pageIndex,delete u.searchString,t===o||e instanceof r.CustomStore?e.byKey(i,u).done(s).fail(f.reject):(u.take=1,u._preferSync=!0,u.filter=u.filter?[u.filter,[t,i]]:[t,i],e.load(u).done(s).fail(f.reject)),f.promise()},load:function(){function e(){return r._disposed?i:r._loadFromStore(f,t)}var r=this,t=n.Deferred(),u=this.loadError,f;return this._scheduleLoadCallbacks(t),this._scheduleChangedCallbacks(t),f=this._createStoreLoadOptions(),this._loadQueue.add(function(){return e(),t.promise()},function(){r._changeLoadingCount(-1)}),t.promise().fail(n.proxy(u.fire,u))},_addSearchOptions:function(n){this._disposed||(this.store()._useDefaultSearch?this._addSearchFilter(n):(n.searchValue=this._searchValue,n.searchExpr=this._searchExpr))},_createStoreLoadOptions:function(){var t=n.extend({},this._storeLoadOptions);return this._addSearchOptions(t),this._paginate&&(t.pageIndex=this._pageIndex,this._pageSize&&(t.skip=this._pageIndex*this._pageSize,t.take=this._pageSize)),t.userData=this._userData,l(this,t),t},_addSearchFilter:function(t){var u=this._searchValue,f=this._searchOperation,i=this._searchExpr,r=[];u&&(i||(i="this"),n.isArray(i)||(i=[i]),n.each(i,function(n,t){r.length&&r.push("or"),r.push([t,f,u])}),t.filter=t.filter?[r,t.filter]:r)},_loadFromStore:function(i,r){function f(n,f){function e(){u._processStoreLoadResult(n,f,i,r)}u._preferSync?e():t.utils.executeAsync(e)}var u=this;return this.store().load(i).done(f).fail(n.proxy(r.reject,r))},_processStoreLoadResult:function(t,i,r,u){function e(){return f._isLoaded=!0,f._totalCount=isFinite(i.totalCount)?i.totalCount:-1,u.resolve(t,i)}function o(){f.store().totalCount(r).done(function(n){i.totalCount=n,e()}).fail(function(){})}var f=this;f._disposed||(t=f._transformLoadedData(t),n.isPlainObject(i)||(i={}),f._items=t,(!t.length||!f._paginate||f._pageSize&&t.length0},n.each(i,function(t,i){var u=i.device||{},o;o=n.isFunction(u)?u(r):e(r,u),o&&n.extend(f,i.options)}),this.option(f)},_optionsByReference:function(){return{}},ctor:function(t){this._options={},this._updateLockCount=0,this.optionChanged=n.Callbacks(),this.beginUpdate();try{this._suppressDeprecatedWarnings(),this._setDefaultOptions(),this._setOptionsByDevice(),this._resumeDeprecatedWarnings(),this._initialOptions=n.extend({},this.option()),this._initOptions(t||{})}finally{this.endUpdate()}},_initOptions:function(n){this.option(n)},_optionValuesEqual:function(n,t,i){return(t=r.toComparable(t,!0),i=r.toComparable(i,!0),t&&i&&t.jquery&&i.jquery)?i.is(t):t===null||typeof t!="object"?t===i:!1},_init:n.noop,_optionChanged:n.noop,instance:function(){return this},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){if(this._updateLockCount--,!this._updateLockCount&&!this._initializing&&!this._initialized){this._initializing=!0;try{this._init()}finally{this._initializing=!1,this._initialized=!0}}},_logWarningIfDeprecated:function(){},_suppressDeprecatedWarnings:function(){},_resumeDeprecatedWarnings:function(){},_getOptionAliases:function(t){return n.map(this._optionAliases,function(n,r){return t===n?r:i})},_notifyOptionChanged:function(t,i,r){var u=this,f;this._initialized&&(f=this._getOptionAliases(t),f.push(t),n.each(f,function(n,t){var f=t.split(/[.\[]/)[0];u.optionChanged.fireWith(u,[f,i,r]),u._optionChanged(f,i,r)}))},initialOption:function(n){var t=this._initialOptions;return t[n]},option:function(t){var i=this,u=t,f=arguments[1];if(arguments.length<2&&n.type(u)!=="object")return u&&(this._logWarningIfDeprecated(u),this._optionAliases[u]&&(u=this._optionAliases[u])),n.each(this._optionAliases,function(n,t){i._options[n]=r.compileGetter(t)(i._options,{functionsAsIs:!0})}),r.compileGetter(u)(i._options,{functionsAsIs:!0});typeof u=="string"&&(t={},t[u]=f),i.beginUpdate();try{n.each(t,function(n,t){i._logWarningIfDeprecated(n),i._optionAliases[n]&&(n=i._optionAliases[n]);var u=r.compileGetter(n)(i._options,{functionsAsIs:!0});i._optionValuesEqual(n,u,t)||(r.compileSetter(n)(i._options,t,{functionsAsIs:!0,merge:!i._optionsByReference()[n]}),i._notifyOptionChanged(n,t,u))})}finally{i.endUpdate()}}});n.extend(t,{Component:f})}(jQuery,DevExpress),function(n,t,i){var f=t.utils.windowResizeCallbacks,o="dx-rtl",r="dxComponents",s="dx-visibility-change-handler",u="dxVisibilityChange",h=t.Component.inherit({NAME:"DOMComponent",NAMESPACE:t,_setDefaultOptions:function(){this.callBase(),this.option({rtlEnabled:t.rtlEnabled})},ctor:function(t,i){this._$element=n(t),this._element().data(this.NAME,this),this._attachInstanceToElement(this._$element),this.disposing=n.Callbacks(),this.callBase(i)},_attachInstanceToElement:n.noop,_visibilityChanged:t.abstract,_dimensionChanged:t.abstract,_init:function(){this.callBase(),this._attachWindowResizeCallback()},_attachWindowResizeCallback:function(){if(this._isDimensionChangeSupported()){var t=this._windowResizeCallBack=n.proxy(this._dimensionChanged,this);f.add(t)}},_isDimensionChangeSupported:function(){return this._dimensionChanged!==t.abstract},_render:function(){this._toggleRTLDirection(this.option("rtlEnabled")),this._renderVisiblityChange()},_renderVisiblityChange:function(){this._isVisibilityChangeSupported()&&(this._element().addClass(s),this._attachVisiblityChangeHandlers())},_attachVisiblityChangeHandlers:function(){var n=this;n._element().off("."+u).on("dxhiding."+u,function(){n._visibilityChanged(!1)}).on("dxshown."+u,function(){n._visibilityChanged(!0)})},_isVisibilityChangeSupported:function(){return this._visibilityChanged!==t.abstract},_clean:n.noop,_modelByElement:n.noop,_invalidate:function(){this._requireRefresh=!0},_refresh:function(){this._clean(),this._render()},_dispose:function(){this._clean(),this._detachWindowResizeCallback(),this.optionChanged.empty(),this.disposing.fireWith(this).empty()},_detachWindowResizeCallback:function(){this._isDimensionChangeSupported()&&f.remove(this._windowResizeCallBack)},_toggleRTLDirection:function(n){this._element().toggleClass(o,n)},_createAction:function(i,r){var u=this,f,e,o;return r=n.extend({},r),f=r.element||u._element(),e=u._modelByElement(f),r.context=e||u,r.component=u,o=new t.Action(i,r),function(t){return arguments.length||(t={}),n.isPlainObject(t)||(t={actionValue:t}),o.execute.call(o,n.extend(t,{component:u,element:f,model:e}))}},_createActionByOption:function(n,t){if(typeof n!="string")throw Error("Option name type is unexpected");this._suppressDeprecatedWarnings();var i=this._createAction(this.option(n),t);return this._resumeDeprecatedWarnings(),i},_optionChanged:function(n){n==="rtlEnabled"&&this._invalidate()},_element:function(){return this._$element},endUpdate:function(){var n=!this._initializing&&!this._initialized;this.callBase.apply(this,arguments),this._updateLockCount||(n?this._render():this._requireRefresh&&(this._requireRefresh=!1,this._refresh()))}}),e=function(u,f){f.redefine({_attachInstanceToElement:function(n){n.data(u,this),n.data(r)||n.data(r,[]),n.data(r).push(u)}}),f.prototype.NAMESPACE[u]=f,f.prototype.NAME=u,f.defaultOptions=function(n){f.prototype._customRules=f.prototype._customRules||[],f.prototype._customRules.push(n)},n.fn[u]=function(r){var h=typeof r=="string",e,o,s;return h?(o=r,s=n.makeArray(arguments).slice(1),this.each(function(){var r=n(this).data(u),f,h;if(!r)throw Error(t.utils.stringFormat("Component {0} has not been initialized on this element",u));f=r[o],h=f.apply(r,s),e===i&&(e=h)})):(this.each(function(){var t=n(this).data(u);t?t.option(r):new f(this,r)}),e=this),e}},c=function(t){t=n(t);var i=t.data(r);return i?n.map(i,function(n){return t.data(n)}):[]},l=function(){n.each(c(this),function(){this._dispose()})},a=n.cleanData;n.cleanData=function(t){return n.each(t,l),a.apply(this,arguments)},e("DOMComponent",h),t.registerComponent=e}(jQuery,DevExpress),DevExpress.social={},function(n,t,i){function o(){}var ft=t.social,r=window.location,et=window.navigator,w=window.encodeURIComponent,ot=window.decodeURIComponent,s=et.standalone,h=!1,p;if(window.cordova)n(document).on("deviceready",function(){h=!0});var b="dx-facebook-access-token",c="dx-facebook-step1",l="dx-facebook-step2",u=null,k=null,d=n.Callbacks(),f,g=function(){return!!u},st=function(){return{accessToken:u,expiresIn:u?k:0}},a=ft.Facebook={loginRedirectUrl:"FacebookLoginCallback.html",connectionChanged:d,isConnected:g,getAccessTokenObject:st,jsonp:!1},ht=function(n,t){o(),t=t||{},f=h?"https://www.facebook.com/connect/login_success.html":ct();var u=(t.permissions||[]).join(),i="https://www.facebook.com/dialog/oauth?display=popup&client_id="+n+"&redirect_uri="+w(f)+"&scope="+w(u)+"&response_type=token";s&&e(c,r.href),h?at(i):lt(i)},ct=function(){var n=r.pathname.split(/\//g);return n.pop(),n.push(a.loginRedirectUrl),r.protocol+"//"+r.host+n.join("/")},lt=function(n){var t=512,i=320,r=(screen.width-t)/2,u=(screen.height-i)/2;window.open(n,null,"width="+t+",height="+i+",toolbar=0,scrollbars=0,status=0,resizable=0,menuBar=0,left="+r+",top="+u)},at=function(n){var t=window.open(n,"_blank");t.addEventListener("exit",function(){f=null}),t.addEventListener("loadstop",function(n){var i=unescape(n.url);i.indexOf(f)===0&&(t.close(),v(i))})},vt=function(){var n=window.opener;s?(e(l,r.href),r.href=y(c)):n&&n.DevExpress&&(n.DevExpress.social.Facebook._processLoginRedirectUrl(r.href),window.close())},v=function(n){var t=yt(n);k=t.expires_in,nt(t.access_token),f=null},yt=function(t){var r=t.split("#")[1],u,i;return r?(u=r.split(/&/g),i={},n.each(u,function(){var t=this.split("=");i[t[0]]=ot(t[1])}),i):{}},pt=function(){o(),nt(null)},nt=function(n){n!==u&&(u=n,e(b,n),d.fire(!!n))},tt=function(t,r,f){if(o(),!g())throw Error("Not connected");typeof r!="string"&&(f=r,r=i),r=(r||"get").toLowerCase();var e=n.Deferred(),s=arguments;return n.ajax({url:"https://graph.facebook.com/"+t,type:r,data:n.extend({access_token:u},f),dataType:a.jsonp&&r==="get"?"jsonp":"json"}).done(function(n){n=n||it(),n.error?e.reject(n.error):e.resolve(n)}).fail(function(i){var u,o;try{if(u=n.parseJSON(i.responseText),o=s[3]||0,o++<3&&u.error.code==190&&u.error.error_subcode==466){setTimeout(function(){tt(t,r,f,o).done(function(n){e.resolve(n)}).fail(function(n){e.reject(n)})},500);return}}catch(h){u=it()}e.reject(u.error)}),e.promise()},it=function(){return{error:{message:"Unknown error"}}},rt=function(){if(!ut())throw Error("HTML5 sessionStorage or jQuery.cookie plugin is required");},ut=function(){return!!(n.cookie||window.sessionStorage)},e=function(t,i){rt(),i=JSON.stringify(i),window.sessionStorage?i===null?sess.removeItem(t):sessionStorage.setItem(t,i):n.cookie(t,i)},y=function(t){rt();try{return JSON.parse(window.sessionStorage?sessionStorage.getItem(t):n.cookie(t))}catch(i){return null}};ut()&&(u=y(b)),s&&(p=y(l),p&&(v(p),e(c,null),e(l,null))),n.extend(a,{login:ht,logout:pt,handleLoginRedirect:vt,_processLoginRedirectUrl:v,api:tt})}(jQuery,DevExpress),function(n,t){var u=t.ui={},f=t.Class.inherit({getTemplateClass:function(){return r},supportDefaultTemplate:function(){return!1},getDefaultTemplate:function(){return null}}),r=t.Class.inherit({ctor:function(t,i){this._template=this._element=n(t).detach(),this._owner=i},render:function(n){var t=this._template.clone();return n.append(t),t},dispose:function(){this._owner=null},owner:function(){return this._owner}}),e="dxGestureLock";t.registerActionExecutor({designMode:{validate:function(n){t.designMode&&(n.cancel=!0)}},gesture:{validate:function(n){if(n.args.length)for(var i=n.args[0],t=i[n.validatingTargetName]||i.element;t&&t.length;){if(t.data(e)){n.cancel=!0;break}t=t.parent()}}},disabled:{validate:function(n){if(n.args.length){var t=n.args[0],i=t[n.validatingTargetName]||t.element;i&&i.is(".dx-state-disabled, .dx-state-disabled *")&&(n.cancel=!0)}}}}),n.extend(u,{TemplateProvider:f,Template:r,initViewport:function(){t.utils.initMobileViewport()}})}(jQuery,DevExpress),function(n,t){var u,s,h,c;if(t.support.hasKo){var r=window.ko,f=t.ui,e="dxKoLocks",l="dxKoCreation",a=function(){var n={},t=function(t){return n[t]||0};return{obtain:function(i){n[i]=t(i)+1},release:function(i){var r=t(i);r===1?delete n[i]:n[i]=r-1},locked:function(n){return t(n)>0}}},v=function(t){r.bindingHandlers[t]={init:function(i,u){var o=n(i),s={},h={},c=function(n,i){var f=o.data(t),u=o.data(e),c=r.utils.unwrapObservable(i);if(r.isWriteableObservable(i)&&(h[n]=i),f){if(u.locked(n))return;u.obtain(n);try{f.option(n,c)}finally{u.release(n)}}else s[n]=c},v=function(n,t){if(n in h){var r=this._$element,i=r.data(e);if(!i.locked(n)){i.obtain(n);try{h[n](t)}finally{i.release(n)}}}},y=function(){o.data(l,!0),o[t](s),s=null,o.data(e,new a),o.data(t).optionChanged.add(v)};return r.computed(function(){var f=o.data(t);f&&f.beginUpdate(),n.each(r.unwrap(u()),function(n,t){r.computed(function(){c(n,t)},null,{disposeWhenNodeIsRemoved:i})}),f?f.endUpdate():y()},null,{disposeWhenNodeIsRemoved:i}),{controlsDescendantBindings:f[t]&&f[t].subclassOf(f.Widget)}}}},y=t.DOMComponent.inherit({_modelByElement:function(n){if(n.length)return r.dataFor(n.get(0))}}),p=t.registerComponent,o=function(n,t){p(n,t),v(n)};r.bindingHandlers.dxAction={update:function(i,u,f,e){var h=n(i),o=r.utils.unwrapObservable(u()),c=o,s={context:i},l;o.execute&&(c=o.execute,n.extend(s,o)),l=new t.Action(c,s);h.off(".dxActionBinding").on("dxclick.dxActionBinding",function(n){l.execute({element:h,model:e,evaluate:function(n){var u=e,f;return n.length>0&&n[0]==="$"&&(u=r.contextFor(i)),f=t.data.utils.compileGetter(n),f(u)},jQueryEvent:n}),s.bubbling||n.stopPropagation()})}},u=function(n,t){var i=function(){r.cleanNode(this)};t?n.each(i):n.find("*").each(i)},s=n.fn.empty,n.fn.empty=function(){return u(this,!1),s.apply(this,arguments)},h=n.fn.remove,n.fn.remove=function(n,t){if(!t){var i=this;n&&(i=i.filter(n)),u(i,!0)}return h.call(this,n,t)},c=n.fn.html,n.fn.html=function(n){return typeof n=="string"&&u(this,!1),c.apply(this,arguments)},t.registerComponent=o,o("DOMComponent",y)}}(jQuery,DevExpress),function(n,t,i){if(t.support.hasNg){var r=t.ui,u=t.data.utils.compileSetter,f=t.data.utils.compileGetter,h="dxNgCreation",e="dxTemplates",c="dxNgCompiler",l="dxDefaultCompilerGetter",a="template",v=t.ng.module,y=t.Class.inherit({ctor:function(t){this._componentName=t.componentName,this._$element=t.$element,this._$templates=t.$templates,this._scope=t.scope,this._compile=t.compile,this._ngOptions=t.ngOptions,this._componentDisposing=n.Callbacks(),this._$element.data(h,!0),t.ngOptions.data&&this._initDataScope(t.ngOptions.data)},initDefaultCompilerGetter:function(){var n=this;n._$element.data(l,function(t){return n._compilerByTemplate(t)})},initTemplateCompilers:function(){var t=this;this._$templates&&this._$templates.each(function(i,r){n(r).data(c,t._compilerByTemplate(r))})},initComponentWithBindings:function(){this._initComponent(this._scope),this._initComponentBindings()},_initDataScope:function(t){if(typeof t=="string"){var r=t,i=this._scope;t=i.$eval(t),this._scope=i.$new(),this._synchronizeDataScopes(i,this._scope,t,r)}n.extend(this._scope,t)},_synchronizeDataScopes:function(t,i,r,u){var f=this;n.each(r,function(n){f._synchronizeScopeField({parentScope:t,childScope:i,fieldPath:n,parentPrefix:u})})},_initComponent:function(n){this._component=this._$element[this._componentName](this._evalOptions(n)).data(this._componentName)},_initComponentBindings:function(){var t=this,i={};t._ngOptions.bindingOptions&&n.each(t._ngOptions.bindingOptions,function(r,u){var s=r.search(/\[|\./),e=s>-1?r.substring(0,s):r,h,f,c,o;i[e]||(i[e]={}),i[e][r]=u,c=function(n,i){n!==i&&(t._component.option(r,n),o())},o=function(){var i=n.isArray(t._scope.$eval(u))?"$watchCollection":"$watch";h!==i&&(f&&f(),f=t._scope[i](u,c,!0),h=i)},o(),t._component.disposing.add(function(){f(),t._componentDisposing.fire()})}),t._component.optionChanged.add(function(r,e){t._scope.$root.$$phase!=="$digest"&&i&&i[r]&&o(function(t){n.each(i[r],function(n,i){var s=u(i),h=f(n),o={};o[r]=e,s(t,h(o))})},t._scope)})},_compilerByTemplate:function(t){var r=this,u=this._getScopeItemsPath();return function(f,e){var h=n(t).clone(),c,s;if(f!==i){c=f.$id,s=c?f:r._createScopeWithData(f);h.on("$destroy",function(){var n=!s.$parent;n||s.$destroy()})}else s=r._scope;return u&&r._synchronizeScopes(s,u,e),o(r._compile(h),s),h}},_getScopeItemsPath:function(){if(r[this._componentName].subclassOf(r.CollectionContainerWidget)&&this._ngOptions.bindingOptions)return this._ngOptions.bindingOptions.items},_createScopeWithData:function(t){var i=this._scope.$new(!0);return typeof t=="object"?n.extend(i,t):i.scopeValue=t,i},_synchronizeScopes:function(t,i,r){var e=this,u=f(i+"["+r+"]")(this._scope);n.isPlainObject(u)||(u={scopeValue:u}),n.each(u,function(n){e._synchronizeScopeField({parentScope:e._scope,childScope:t,fieldPath:n,parentPrefix:i,itemIndex:r})})},_synchronizeScopeField:function(n){var r=n.parentScope,c=n.childScope,t=n.fieldPath,l=n.parentPrefix,e=n.itemIndex,y=t==="scopeValue"?"":"."+t,a=e!==i,o=[l],s,v,h;a&&o.push("[",e,"]"),o.push(y),s=o.join(""),v=r.$watch(s,function(n,i){n!==i&&u(t)(c,n)}),h=c.$watch(t,function(n,t){if(n!==t){if(a&&!f(l)(r)[e]){h();return}u(s)(r,n)}}),this._componentDisposing.add([v,h])},_evalOptions:function(t){var i=n.extend({},this._ngOptions);return delete i.data,delete i.bindingOptions,this._ngOptions.bindingOptions&&n.each(this._ngOptions.bindingOptions,function(n,r){i[n]=t.$eval(r)}),i}}),o=function(n,t){t.$root.$$phase?n(t):t.$apply(function(){n(t)})},p=function(t,i){var u,f;return t.data(e)?t.data(e):(r[i]&&r[i].subclassOf(r.Widget)&&n.trim(t.html())&&(f=!t.children().first().attr("data-options"),u=f?n("
").attr("data-options","dxTemplate: { name: '"+a+"' }").append(t.contents()):t.children().detach(),t.data(e,u)),u)},w=t.DOMComponent.inherit({_modelByElement:function(n){if(n.length)return n.scope()},_createAction:function(){var n=this.callBase.apply(this,arguments),t=this;return function(){var r=this,i=t._modelByElement(t._element()),u=arguments;return!i||i.$root.$$phase?n.apply(r,u):i.$apply(function(){return n.apply(r,u)})}}}),b=t.registerComponent,s=function(n,t){b(n,t),v.directive(n,["$compile",function(t){return{restrict:"A",compile:function(i){var r=p(i,n);return function(i,u,f){var e=new y({componentName:n,compile:t,$element:u,scope:i,ngOptions:f[n]?i.$eval(f[n]):{},$templates:r});e.initTemplateCompilers(),e.initDefaultCompilerGetter(),e.initComponentWithBindings()}}}}])};t.registerComponent=s,s("DOMComponent",w)}}(jQuery,DevExpress),function(n,t,i){if(t.support.hasKo){var f=window.ko,e=t.ui,c="dxKoCreation",o=e.Template.inherit({ctor:function(t){this.callBase.apply(this,arguments),this._template=n("
").append(t),this._registerKoTemplate()},_cleanTemplateElement:function(){this._element.each(function(){f.cleanNode(this)})},_registerKoTemplate:function(){var n=this._template.get(0);new f.templateSources.anonymousTemplate(n).nodes(n)},render:function(t,r){var e;r=r!==i?r:f.dataFor(t.get(0))||{};var o=f.contextFor(t[0]),s=o?o.createChildContext(r):r,u=n("
").appendTo(t);return f.renderTemplate(this._template.get(0),s,null,u.get(0)),e=u.contents(),t.append(e),u.remove(),e},dispose:function(){this.callBase(),this._template.remove()}}),l=e.TemplateProvider.inherit({getTemplateClass:function(n){return this._createdWithKo(n)?o:this.callBase(n)},supportDefaultTemplate:function(n){return this._createdWithKo(n)?!0:this.callBase(n)},getDefaultTemplate:function(n){if(this._createdWithKo(n))return s(n.NAME)},_createdWithKo:function(n){return!!n._element().data(c)}}),s=function(){var n={};return function(i){if(r[i]||(i="base"),!n[i]){var u=r[i](),f=t.utils.createMarkupFromString(u);n[i]=new o(f)}return n[i]}}(),u=function(t,r,u,f){u=u===i?!0:u;var e=n.map(r,function(n,t){return t+":"+n}).join(",");return f=f||"","<"+t+' data-bind="'+e+'" '+f+">"+(u?"<\/"+t+">":"")},h={css:"{ 'dx-state-disabled': $data.disabled, 'dx-state-invisible': !($data.visible === undefined || ko.unwrap($data.visible)) }"},r={base:function(){var n=[u("div",h,!1)],t=u("div",{html:"html"}),i=u("div",{text:"text"}),r=u("div",{text:"String($data)"});return n.push("",t,"","",i,"","",r,"","<\/div>"),n.join("")}};r.dxPivotTabs=function(){var n=r.base(),t=u("span",{text:"title"}),i=n.indexOf(">")+1,f=n.length-6;return n=[n.substring(0,i),t,n.substring(f,n.length)],n.join("")},r.dxPanorama=function(){var n=r.base(),i=u("div",{text:"header"},!0,'class="dx-panorama-item-header"'),t=n.indexOf(">")+1;return n=[n.substring(0,t),"",i,"",n.substring(t,n.length)],n.join("")},r.dxList=function(){var n=r.base(),t=u("div",{text:"key"});return n=[n.substring(0,n.length-6),""+t+"","<\/div>"],n.join("")},r.dxToolbar=function(){var i=r.base();return i=[i.substring(0,i.length-6),""],n.each(["button","tabs","dropDownMenu"],function(){var r=t.inflector.camelize(["dx","-",this].join("")),n={};n[r]="$data.options",i.push("",u("div",n),"")}),i.push(""),i.join("")},r.dxGallery=function(){var n=r.base(),t=u("div",{text:"String($data)"}),i=u("img",{attr:"{ src: String($data) }"},!1);return n=n.replace(t,i)},r.dxTabs=function(){var n=r.base(),t=u("div",{text:"text"}),i=u("span",{attr:"{ 'class': 'dx-icon-' + $data.icon }",css:"{ 'dx-icon': true }"}),f=u("img",{attr:"{ src: $data.iconSrc }",css:"{ 'dx-icon': true }"},!1),e=""+i+""+f+'<\/span>';return n=n.replace("","").replace(t,e)},r.dxActionSheet=function(){return u("div",{dxButton:"{ text: $data.text, clickAction: $data.clickAction, type: $data.type, disabled: !!ko.unwrap($data.disabled) }"})},r.dxNavBar=r.dxTabs,r.dxMenu=function(){var n=[u("div",h,!1)],t=u("span",{attr:"{ 'class': 'dx-icon-' + $data.icon }",css:"{ 'dx-icon': true }"}),i=u("img",{attr:"{ src: $data.iconSrc }",css:"{ 'dx-icon': true }"}),r=u("span",{text:"text",css:"{ 'dx-menu-item-text': true }"}),f=u("span",{text:"String($data)",css:"{ 'dx-menu-item-text': true }"}),e='
<\/div><\/span>';return n.push('
',"",t,"","",i,"","",r,"","",f,"","",e,"","<\/div>","<\/div>"),n.join("")},r.dxContextMenu=r.dxMenu,n.extend(e,{TemplateProvider:l,Template:o,defaultTemplate:s})}}(jQuery,DevExpress),function(n,t){if(t.support.hasNg){var f=t.ui,o="dxNgCreation",s="dxNgCompiler",h="dxDefaultCompilerGetter",e=f.Template.inherit({ctor:function(){this.callBase.apply(this,arguments),this._compiler=this._template.data(s)},render:function(t,i,r){var u=this._compiler,f=n.isFunction(u)?u(i,r):u;return t.append(f),f},setCompiler:function(n){this._compiler=n(this._element)}}),c=f.TemplateProvider.inherit({getTemplateClass:function(n){return this._createdWithNg(n)?e:this.callBase(n)},supportDefaultTemplate:function(n){return this._createdWithNg(n)?!0:this.callBase(n)},getDefaultTemplate:function(n){if(this._createdWithNg(n)){var i=n._element().data(h),t=l(n.NAME);return t.setCompiler(i),t}},_createdWithNg:function(n){return!!n._element().data(o)}}),l=function(){var n={};return function(t){return u[t]||(t="base"),n[t]||(n[t]=u[t]()),new e(n[t])}}(),r={container:function(){return n("
").attr("ng-class","{ 'dx-state-invisible': !visible && visible != undefined, 'dx-state-disabled': !!disabled }")},html:function(){return n("
").attr("ng-if","html").attr("ng-bind-html","html")},text:function(){return n("
").attr("ng-if","text").attr("ng-bind","text")},primitive:function(){return n("
").attr("ng-if","scopeValue").attr("ng-bind-html","'' + scopeValue")}},u={base:function(){return r.container().append(r.html()).append(r.text()).append(r.primitive())}};u.dxList=function(){return u.base().append(n("
").attr("ng-if","key").attr("ng-bind","key"))},u.dxToolbar=function(){var i=u.base();return n.each(["button","tabs","dropDownMenu"],function(r,u){var f="dx-"+t.inflector.dasherize(this);n("
").attr("ng-if","widget === '"+u+"'").attr(f,"options").appendTo(i)}),i},u.dxGallery=function(){return r.container().append(r.html()).append(r.text()).append(n("").attr("ng-if","scopeValue").attr("ng-src","{{'' + scopeValue}}"))},u.dxTabs=function(){var t=r.container(),i=n("").addClass("dx-tab-text").attr("ng-bind","text").attr("ng-if","text"),u=n("").attr("ng-if","icon").addClass("dx-icon").attr("ng-class","'dx-icon-' + icon"),f=n("").attr("ng-if","iconSrc").addClass("dx-icon").attr("ng-src","{{iconSrc}}");return t.append(r.html()).append(u).append(f).append(i).append(r.primitive())},u.dxMenu=function(){var t=r.container(),i=n("
").addClass("dx-menu-item-content"),u=n("").attr("ng-if","text").addClass("dx-menu-item-text").attr("ng-bind","text"),f=n("").attr("ng-if","icon").addClass("dx-icon").attr("ng-class","'dx-icon-' + icon"),e=n("").attr("ng-if","iconSrc").addClass("dx-icon").attr("ng-src","{{iconSrc}}"),o=n("").addClass("dx-menu-item-popout-container").attr("ng-if","items").append(n("
").addClass("dx-menu-item-popout"));return i.append(r.html()).append(f).append(e).append(u).append(o).append(r.primitive()).appendTo(t),t},u.dxActionSheet=function(){return n("
").attr("dx-button","{ bindingOptions: { text: 'text', clickAction: 'clickAction', type: 'type', disabled: 'disabled' } }")},u.dxNavBar=u.dxTabs,n.extend(f,{Template:e,TemplateProvider:c})}}(jQuery,DevExpress),function(n,t,i){function l(){var i=n("
<\/div>",u).addClass("dx-theme-marker").appendTo(u.documentElement),t;try{return(t=i.css("font-family"),!t)?null:(t=t.replace(/["']/g,""),t.substr(0,s.length)!==s)?null:t.substr(s.length)}finally{i.remove()}}function b(t,i){function f(){e=null,i()}var r,u;e=t,a()?f():(u=n.now(),r=setInterval(function(){var t=a(),i=!t&&n.now()-u>15e3;(t||i)&&(clearInterval(r),f())},10))}function a(){return!e||l()===e}function k(){var i=n(c,u);i.length&&(f={},o=n(t.utils.createMarkupFromString(""),u),i.each(function(){var t=n(this,u),i=t.attr(p),r=t.attr("href"),e=t.attr(w)==="true";f[i]={url:r,isActive:e}}),i.last().after(o),i.remove())}function d(t){var i=t.split("."),r=null;return f&&n.each(f,function(n,t){var u=n.split(".");if(u[0]===i[0])return i[1]&&i[1]!==u[1]?void 0:((!r||t.isActive)&&(r=n),t.isActive?!1:void 0)}),r}function g(n){try{n!==u&&(f=null)}catch(t){f=null}u=n}function v(n){n=n||{},g(n.context||document),k(),r=i,h(n)}function h(n){if(!arguments.length)return r||l();n=n||{},typeof n=="string"&&(n={theme:n});var u=n._autoInit,i=n.loadCallback,s;if(r=n.theme||r,u&&!r&&(r=nt(t.devices.current())),r=d(r),r&&(s=f[r]),s)o.removeAttr("href"),o.attr("href",f[r].url),i?b(r,i):e&&(e=r);else if(u)i&&i();else throw Error("Unknown theme: "+r);}function nt(n){var t=n.platform,i=n.version&&n.version[0];return t==="ios"&&(!i||i>6)&&(t+="7"),t}function y(n){n=n||h();var i=[],t=n&&n.split(".");return t&&(i.push("dx-theme-"+t[0],"dx-theme-"+t[0]+"-typography"),t.length>1&&i.push("dx-color-scheme-"+t[1])),i}function tt(t,i){n(t).addClass(y(i).join(" "))}function it(t,i){n(t).removeClass(y(i).join(" "))}var c="link[rel=dx-theme]",p="data-theme",w="data-active",u,o,f,r,e,s="dx.";n.holdReady(!0),v({_autoInit:!0,loadCallback:function(){n.holdReady(!1)}}),n(function(){if(n(c,u).length)throw Error("LINK[rel=dx-theme] tags must go before DevExpress included scripts");}),t.ui.themes={init:v,current:h,attachCssClasses:tt,detachCssClasses:it}}(jQuery,DevExpress),function(n,t){var l=t.ui,a=n.event,v=a.special,o={mouse:/(mouse|wheel|click)/i,wheel:/wheel/i,touch:/^touch/i,keyboard:/^key/i,pointer:/pointer/i},u=function(t){var i="other";return n.each(o,function(n){if(this.test(t.type))return i=n,!1}),i},f=function(n){return u(n)==="pointer"},e=function(n){return u(n)==="mouse"||f(n)&&n.pointerType==="mouse"},r=function(n){return u(n)==="touch"||f(n)&&n.pointerType==="touch"},s=function(n){return u(n)==="keyboard"},y=function(n){return o.wheel.test(n.type)},h=function(t,i){return typeof t=="string"?h(t.split(/\s+/g),i):(n.each(t,function(n,r){t[n]=r+"."+i}),t.join(" "))},p=function(n){var t;return f(n)&&r(n)?(t=(n.originalEvent.originalEvent||n.originalEvent).changedTouches[0],{x:t.pageX,y:t.pageY,time:n.timeStamp}):e(n)?{x:n.pageX,y:n.pageY,time:n.timeStamp}:r(n)?(t=(n.changedTouches||n.originalEvent.changedTouches)[0],{x:t.pageX,y:t.pageY,time:n.timeStamp}):void 0},w=function(n,t){return{x:t.x-n.x,y:t.y-n.y,time:t.time-n.time||1}},b=function(n){return r(n)?(n.originalEvent.touches||[]).length:0},k=function(t){var u=n(t.target),i=u.is("input, textarea, select");return y(t)&&i?!1:e(t)?i||t.which>1:r(t)?i&&u.is(":focus")||(t.originalEvent.changedTouches||t.originalEvent.originalEvent.changedTouches).length!==1:void 0},c=function(t,i){var u=n.Event(t),o=u.originalEvent,f=n.event.props.slice();return(e(t)||r(t))&&n.merge(f,n.event.mouseHooks.props),s(t)&&n.merge(f,n.event.keyHooks.props),o&&n.each(f,function(){u[this]=o[this]}),i&&n.extend(u,i),u},d=function(t){var i=c(t.originalEvent,t);return n.event.trigger(i,null,t.target||i.target),i},g=function(t,i){var r=n(t.target).data("dxGestureEvent");return!r||r===i?(n(t.target).data("dxGestureEvent",i),!0):!1},nt=function(t,i){var r={};"noBubble"in i&&(r.noBubble=i.noBubble),"bindType"in i&&(r.bindType=i.bindType),"delegateType"in i&&(r.delegateType=i.delegateType),n.each(["setup","teardown","add","remove","trigger","handle","_default","dispose"],function(t,u){i[u]&&(r[u]=function(){var t=n.makeArray(arguments);return t.unshift(this),i[u].apply(i,t)})}),v[t]=r};l.events={eventSource:u,isPointerEvent:f,isMouseEvent:e,isTouchEvent:r,isKeyboardEvent:s,addNamespace:h,hasTouches:b,eventData:p,eventDelta:w,needSkipEvent:k,createEvent:c,fireEvent:d,handleGestureEvent:g,registerEvent:nt}}(jQuery,DevExpress),function(n,t){if(t.support.hasKo){var u=window.ko,r=t.ui.events,f=r.registerEvent,e=function(t,i){f(t,i);var e=r.addNamespace(t,t+"Binding");u.bindingHandlers[t]={update:function(t,i,r,f){var s=n(t),o=u.utils.unwrapObservable(i()),h=o.execute?o.execute:o;s.off(e).on(e,n.isPlainObject(o)?o:{},function(n){h(f,n)})}}};n.extend(r,{registerEvent:e})}}(jQuery,DevExpress),function(n,t){if(t.support.hasNg){var r=t.ui.events,u=r.registerEvent,f=function(i,r){u(i,r);var f=i.slice(0,2)+i.charAt(2).toUpperCase()+i.slice(3);t.ng.module.directive(f,["$parse",function(t){return function(r,u,e){var h=n.trim(e[f]),o,s={};h.charAt(0)==="{"?(s=r.$eval(h),o=t(s.execute)):o=t(e[f]);u.on(i,s,function(n){r.$apply(function(){o(r,{$event:n})})})}}])};n.extend(r,{registerEvent:f})}}(jQuery,DevExpress),function(n,t,i){var r=t.ui,u=r.events;r.HierarchicalKeyDownProcessor=t.Class.inherit({_keydown:u.addNamespace("keydown","HierarchicalKeyDownProcessor"),codes:{"9":"tab","13":"enter","27":"escape","33":"pageUp","34":"pageDown","37":"leftArrow","38":"upArrow","39":"rightArrow","40":"downArrow","32":"space","70":"F","65":"A"},ctor:function(t){var i=this;if(t=t||{},t.element&&(this._element=n(t.element)),this._handler=t.handler,this._context=t.context,this._childProcessors=[],this._element)this._element.on(this._keydown,function(n){i.process(n)})},dispose:function(){this._element&&this._element.off(this._keydown),this._element=i,this._handler=i,this._context=i,this._childProcessors=i},attachChildProcessor:function(){var n=new r.HierarchicalKeyDownProcessor;return this._childProcessors.push(n),n},reinitialize:function(n,t){return this._context=t,this._handler=n,this},process:function(t){var i={key:this.codes[t.which],ctrl:t.ctrlKey,shift:t.shiftKey,originalEvent:t};this.codes[t.which]&&this._handler&&this._handler.call(this._context,i)&&n.each(this._childProcessors,function(n,i){i.process(t)})}})}(jQuery,DevExpress),function(n,t){var u=t.ui,e=t.utils,o={text:"OK",clickAction:function(){return!0}},r="dx-dialog",s=r+"-wrapper",h=r+"-root",c=r+"-content",l=r+"-message",a=r+"-buttons",v=r+"-button",y=t.Component.inherit({NAME:"dxDialog",ctor:function(n,t){this.callBase(t)},_defaultOptionsRules:function(){return this.callBase().slice(0).concat([{device:[{platform:"ios"},{platform:"ios7"}],options:{width:276}},{device:{platform:"android"},options:{lWidth:"60%",pWidth:"80%"}},{device:{platform:"win8",phone:!1},options:{width:function(){return n(window).width()}}},{device:{platform:"win8",phone:!0},options:{position:{my:"top center",at:"top center",of:window,offset:"0 0"}}}])}}),p=function(i){function rt(){return f.show(),e.resetActiveElement(),p.promise()}function d(n){f.hide().done(function(){f._element().remove()}),p.resolve(w||n)}var g=this,w,p,b;if(!u.dxPopup)throw new Error("DevExpress.ui.dxPopup required");p=n.Deferred(),b=(new y).option(),i=n.extend(b,i);var nt=n(t.overlayTargetContainer()),tt=n("
").addClass(r).appendTo(nt),it=n("
").addClass(l).html(String(i.message)),k=n("
").addClass(a),f=tt.dxPopup({title:i.title||g.title,height:"auto",width:function(){var u=n(window).height()>n(window).width(),r=(u?"p":"l")+"Width",t=i.hasOwnProperty(r)?i[r]:i.width;return n.isFunction(t)?t():t},contentReadyAction:function(){f.content().addClass(c).append(it).append(k)},animation:{show:{type:"pop",duration:400},hide:{type:"pop",duration:400,to:{opacity:0,scale:0},from:{opacity:1,scale:1}}},rtlEnabled:t.rtlEnabled}).data("dxPopup");return f._wrapper().addClass(s),i.position&&f.option("position",i.position),n.each(i.buttons||[o],function(){var i=n("
").addClass(v).appendTo(k),r=new t.Action(this.clickAction,{context:f});i.dxButton(n.extend(this,{clickAction:function(){w=r.execute(arguments),d()}}))}),f._wrapper().addClass(h),{show:rt,hide:d}},f=function(t,i){var r,f=n.isPlainObject(t)?t:{title:i,message:t};return r=u.dialog.custom(f),r.show()},w=function(t,i){var r,f=n.isPlainObject(t)?t:{title:i,message:t,buttons:[{text:Globalize.localize("Yes"),clickAction:function(){return!0}},{text:Globalize.localize("No"),clickAction:function(){return!1}}]};return r=u.dialog.custom(f),r.show()},b=function(i,r,e){var o=n.isPlainObject(i)?i:{message:i},s;if(!u.dxToast){f(o.message);return}s=o.hiddenAction,n.extend(o,{type:r,displayTime:e,hiddenAction:function(n){n.element.remove(),new t.Action(s,{context:n.model}).execute(arguments)}}),n("
").appendTo(t.overlayTargetContainer()).dxToast(o).dxToast("instance").show()};n.extend(u,{notify:b,dialog:{custom:p,alert:f,confirm:w}})}(jQuery,DevExpress),function(n,t){var r=t.data,u="_dataSourceOptions",f="_handleDataSourceChanged",e="_handleDataSourceLoadError",o="_handleDataSourceLoadingChanged";t.ui.DataHelperMixin={ctor:function(){this.disposing.add(function(){this._disposeDataSource()})},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var t=this.option("dataSource"),i,f;this._disposeDataSource(),t&&(t instanceof r.DataSource?(this._isSharedDataSource=!0,this._dataSource=t):(i=u in this?this[u]():{},f=this._dataSourceType?this._dataSourceType():r.DataSource,this._dataSource=new f(n.extend(!0,{},i,r.utils.normalizeDataSourceOptions(t)))),this._addDataSourceHandlers())},_addDataSourceHandlers:function(){f in this&&this._addDataSourceChangeHandler(),e in this&&this._addDataSourceLoadErrorHandler(),o in this&&this._addDataSourceLoadingChangedHandler()},_addDataSourceChangeHandler:function(){var t=this,n=this._dataSource;this._dataSourceChangedHandler=function(){t[f](n.items())},n.changed.add(this._dataSourceChangedHandler)},_addDataSourceLoadErrorHandler:function(){this._dataSourceLoadErrorHandler=n.proxy(this[e],this),this._dataSource.loadError.add(this._dataSourceLoadErrorHandler)},_addDataSourceLoadingChangedHandler:function(){this._dataSourceLoadingChangedHandler=n.proxy(this[o],this),this._dataSource.loadingChanged.add(this._dataSourceLoadingChangedHandler)},_loadDataSource:function(){if(this._dataSource){var n=this._dataSource;n.isLoaded()?this._dataSourceChangedHandler():n.load()}},_loadSingle:function(n,t){return n=n==="this"?this._dataSource.key()||"this":n,this._dataSource.loadSingle(n,t)},_disposeDataSource:function(){this._dataSource&&(this._isSharedDataSource?(delete this._isSharedDataSource,this._dataSource.changed.remove(this._dataSourceChangedHandler),this._dataSource.loadError.remove(this._dataSourceLoadErrorHandler),this._dataSource.loadingChanged.remove(this._dataSourceLoadingChangedHandler)):this._dataSource.dispose(),delete this._dataSource,delete this._dataSourceChangedHandler,delete this._dataSourceLoadErrorHandler,delete this._dataSourceLoadingChangedHandler)}}}(jQuery,DevExpress),function(n){var r={2:"touch",3:"pen",4:"mouse"},u={filter:function(t,i){var u=i.pointerType;return n.isNumeric(u)&&(t.pointerType=r[u]),t},props:n.event.mouseHooks.props.concat(["pointerId","originalTarget","namespace","width","height","pressure","result","tiltX","charCode","tiltY","detail","isPrimary","prevValue"])};n.each(["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel","MSPointerOver","MSPointerOut","MSPointerEnter","MSPointerLeave","pointerdown","pointermove","pointerup","pointercancel","pointerover","pointerout","pointerenter","pointerleave"],function(){n.event.fixHooks[this]=u})}(jQuery,DevExpress),function(n){var r={filter:function(t,i){return i.changedTouches.length&&n.each(["pageX","pageY","screenX","screenY","clientX","clientY"],function(){t[this]=i.changedTouches[0][this]}),t},props:n.event.mouseHooks.props.concat(["touches","changedTouches","targetTouches","detail","result","namespace","originalTarget","charCode","prevValue"])};n.each(["touchstart","touchmove","touchend","touchcancel"],function(){n.event.fixHooks[this]=r})}(jQuery,DevExpress),function(n,t){var c=t.ui,u=t.support,f=n.proxy(t.devices.real,t.devices),r=c.events,l="dxPointerEvents",e={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:""},a={dxpointerdown:"touchstart",dxpointermove:"touchmove",dxpointerup:"touchend",dxpointercancel:"touchcancel"},w={dxpointerdown:"pointerdown",dxpointermove:"pointermove",dxpointerup:"pointerup",dxpointercancel:"pointercancel"},o={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel"},s=function(){return u.touch&&!(f().tablet||f().phone)?o:u.pointer?e:u.touch?a:e}(),v=function(n){return f().platform==="ios"&&(n==="dxpointerdown"||n==="dxpointerup")},h=t.Class.inherit({ctor:function(n,t){this._eventName=n,this._eventNamespace=[l,".",this._eventName].join(""),this._originalEvents=t,this._pointerId=0,this._handlerCount=0},_handler:function(t){if(this._eventName==="dxpointerdown"&&n(t.target).data("dxGestureEvent",null),r.isTouchEvent(t)&&v(this._eventName)){var i=t.changedTouches[0];if(this._pointerId===i.identifier&&this._pointerId!==0)return;this._pointerId=i.identifier}return r.fireEvent({type:this._eventName,pointerType:r.eventSource(t),originalEvent:t})},setup:function(){if(!(this._handlerCount>0))n(document).on(r.addNamespace(this._originalEvents,this._eventNamespace),n.proxy(this._handler,this))},add:function(){this._handlerCount++},remove:function(){this._handlerCount--},teardown:function(){this._handlerCount||n(document).off("."+this._eventNamespace)},dispose:function(){n(document).off("."+this._eventNamespace)}}),y=h.inherit({EVENT_LOCK_TIMEOUT:100,_handler:function(t){if(r.isTouchEvent(t)&&(this._skipNextEvents=!0),!r.isMouseEvent(t)||!this._mouseLocked){if(r.isMouseEvent(t)&&this._skipNextEvents){this._skipNextEvents=!1,this._mouseLocked=!0,clearTimeout(this._unlockMouseTimer),this._unlockMouseTimer=setTimeout(n.proxy(function(){this._mouseLocked=!1},this),this.EVENT_LOCK_TIMEOUT);return}return this.callBase(t)}},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}}),p=function(){return s===o?y:h};n.each(s,function(n,t){var i=p();r.registerEvent(n,new i(n,t))})}(jQuery,DevExpress),function(n,t,i){var a=navigator.userAgent,h=i.screen,v=t.ui,c=t.utils,u=v.events,y=t.support,e=n.proxy(t.devices.real,t.devices),p="dxSpecialEvents",f="dxClick"+p,o="dxclick",s="dxClickScrollableParent",l="dxClickScrollableParentOffset",w=function(){var n=e().deviceType==="phone"&&h.height<=480,t=e().deviceType==="tablet"&&i.devicePixelRatio<2,r=e().platform==="ios"&&e().version[0]>6;return r&&(n||t)}(),b=function(){if(!y.touch)return!0;var t=a.match(/Chrome\/([0-9]+)/)||[],r=!!t[0],u=~~t[1],f=e().platform==="android";if(r)if(f){if(n("meta[name=viewport][content*='width=device-width']").length)return!1;if(u>31&&i.innerWidth<=h.width||n("meta[name=viewport][content*='user-scalable=no']").length)return!0}else return!0;return!1}(),k=t.Class.inherit({TOUCH_BOUNDARY:10,ctor:function(){this._startX=0,this._startY=0,this._handlerCount=0,this._target=null},_touchWasMoved:function(n){var t=this.TOUCH_BOUNDARY;return Math.abs(n.pageX-this._startX)>t||Math.abs(n.pageY-this._startY)>t},_getClosestScrollable:function(t){var r=n(),i;if(t.data(s))r=t.data(s);else for(i=t;i.length;){if(i[0].scrollHeight-i[0].offsetHeight>1){r=i,t.data(s,r);break}i=i.parent()}return r},_saveClosestScrollableOffset:function(n){var t=this._getClosestScrollable(n);t.length&&n.data(l,t.scrollTop())},_closestScrollableWasMoved:function(n){var t=n.data(s);return t&&t.scrollTop()!==n.data(l)},_hasClosestScrollable:function(n){var t=this._getClosestScrollable(n);return t.length?t.is("body")?!1:t===window?!1:t.css("overflow")==="hidden"?!1:!0:!1},_handleStart:function(t){(this._reset(),u.isMouseEvent(t)&&t.which!==1)||(this._saveClosestScrollableOffset(n(t.target)),this._target=t.target,this._startX=t.pageX,this._startY=t.pageY)},_handleEnd:function(t){var i=n(t.target),r;i.is(this._target)&&!this._touchWasMoved(t)&&(this._nativeClickShouldBeUsed(i)||this._closestScrollableWasMoved(i)||(r=i.is("input, textarea"),r||t.dxPreventBlur||c.resetActiveElement(),this._fireClickEvent(t)))},_handleCancel:function(){this._reset()},_reset:function(){this._target=null},_handleClick:function(t){var i=n(t.target);i.is(this._target)?this._nativeClickShouldBeUsed(i)&&this._fireClickEvent(t):i.is("input, textarea")&&c.resetActiveElement()},_nativeClickShouldBeUsed:function(n){return w&&this._hasClosestScrollable(n)},_fireClickEvent:function(n){u.handleGestureEvent(n,o)&&u.fireEvent({type:o,originalEvent:n})},_makeElementClickable:function(n){n.attr("onclick")||n.attr("onclick","void(0)")},setup:function(t){var i=n(t),r;(this._makeElementClickable(i),this._handlerCount>0)||(r=n(document).on(u.addNamespace("dxpointerdown",f),n.proxy(this._handleStart,this)).on(u.addNamespace("dxpointerup",f),n.proxy(this._handleEnd,this)).on(u.addNamespace("dxpointercancel",f),n.proxy(this._handleCancel,this)).on(u.addNamespace("click",f),n.proxy(this._handleClick,this)))},add:function(){this._handlerCount++},remove:function(){this._handlerCount--},teardown:function(t){this._handlerCount||(n(t).off("."+f),this.dispose())},dispose:function(){n(document).off("."+f)}}),d=t.Class.inherit({bindType:"click",delegateType:"click",handle:function(n,t){return t.type="dxclick",u.handleGestureEvent(t,o)?t.handleObj.handler.call(n,t):void 0}});u.registerEvent(o,new(b?d:k))}(jQuery,DevExpress,window),function(n,t){var o=t.ui,u=o.events,c=n.event.special,s="dxSpecialEvents",f="dxHold",e="dxhold",r=s+"HoldTimer",h=t.Class.inherit({HOLD_TIMEOUT:750,TOUCH_BOUNDARY:5,_startX:0,_startY:0,_touchWasMoved:function(n){var t=this.TOUCH_BOUNDARY;return Math.abs(n.pageX-this._startX)>t||Math.abs(n.pageY-this._startY)>t},setup:function(t,i){var o,s=!1,c=function(t){if(!s&&(o=n(t.target),s=!0,!o.data(r))){this._startX=t.pageX,this._startY=t.pageY;var f=i&&"timeout"in i?i.timeout:this.HOLD_TIMEOUT,h=setTimeout(function(){o.removeData(r),u.handleGestureEvent(t,e)&&u.fireEvent({type:e,originalEvent:t})},f);o.data(r,h)}},l=function(n){this._touchWasMoved(n)&&h()},h=function(){o&&(clearTimeout(o.data(r)),o.removeData(r),o=null,s=!1)};n(t).on(u.addNamespace("dxpointerdown",f),n.proxy(c,this)).on(u.addNamespace("dxpointermove",f),n.proxy(l,this)).on(u.addNamespace("dxpointerup",f),n.proxy(h,this))},teardown:function(t){t=n(t),clearTimeout(t.data(r)),t.removeData(r).off("."+f)}});u.registerEvent(e,new h)}(jQuery,DevExpress),function(n,t,i){var c=t.ui,r=c.events,u="dxSpecialEvents",e="dxhoverstart",o="dxhoverend",s="mouseenter",h="mouseleave",f="dxpointerdown",l=t.Class.inherit({ctor:function(){this._wasTouch=!1,this._selector=i},setup:function(t,e){var o=n(t);if(this._selector=e?e.selector:i,!o.data("dxHoverStart"))o.data("dxHoverStart",!0).on(r.addNamespace(s,u),this._selector,n.proxy(this._handleEnter,this)).on(r.addNamespace(f,u),n.proxy(this._handleTouchStart,this))},_handleEnter:function(n){this._wasTouch||r.fireEvent({type:e,originalEvent:n})},_handleTouchStart:function(n){this._wasTouch=r.isTouchEvent(n)},teardown:function(t){n(t).data("dxHoverStart",!1).off(r.addNamespace(s,u),this._selector).off(r.addNamespace(f,u))}}),a=t.Class.inherit({ctor:function(){this._wasTouch=!1,this._selector=i},setup:function(t,e){var o=n(t);if(this._selector=e?e.selector:i,!o.data("dxHoverEnd"))o.data("dxHoverEnd",!0).on(r.addNamespace(h,u),this._selector,n.proxy(this._handleLeave,this)).on(r.addNamespace(f,u),n.proxy(this._handleTouchStart,this))},_handleLeave:function(n){this._wasTouch||r.fireEvent({type:o,originalEvent:n})},_handleTouchStart:function(n){this._wasTouch=r.isTouchEvent(n)},teardown:function(t){n(t).data("dxHoverEnd",!1).off(r.addNamespace(h,u),this._selector).off(r.addNamespace(f,u))}});r.registerEvent(e,new l),r.registerEvent(o,new a)}(jQuery,DevExpress),function(n,t,i){var s=t.ui,u=s.events,f="dxmousewheel",e="dxWheel",h=10,o,r;n.event.fixHooks.wheel=n.event.mouseHooks,o=document.onmousewheel!==i?"mousewheel":"wheel",r={setup:function(t){var f=n(t);f.on(u.addNamespace(o,e),n.proxy(r._handleWheel,r))},teardown:function(t){var i=n(t);i.off("."+e)},_handleWheel:function(t){n(t.target).data("dxGestureEvent",null);var i=this._getWheelDelta(t.originalEvent);u.fireEvent({type:f,originalEvent:t,delta:i}),t.stopPropagation()},_getWheelDelta:function(n){return n.wheelDelta/60||-n.deltaY}},u.registerEvent(f,r)}(jQuery,DevExpress),function(n,t){var r=t.ui,u=r.events,f=t.Class.inherit({ctor:function(t){this._$element=n(t),this._cancelCallback=n.Callbacks()},getElement:function(){return this._$element},getDirection:function(){return this.direction},validate:function(n){return n.type!=="dxmousewheel"},configurate:function(t){n.extend(this,t)},addCancelCallback:function(n){this._cancelCallback.add(n)},removeCancelCallback:function(){this._cancelCallback.empty()},init:n.noop,start:n.noop,move:n.noop,end:n.noop,cancel:n.noop,wheel:n.noop,_fireEvent:function(t,i,r){var f={type:t,originalEvent:i,target:this.getElement().get(0)};return i=u.fireEvent(n.extend(f,r)),i.cancel&&this._cancel(i),i},_cancel:function(){this._cancelCallback.fire()}}),e=[];n.extend(r,{GestureEmitter:f,gestureEmitters:e})}(jQuery,DevExpress),function(n,t){var u=t.ui,r=u.events,f="dxscrollinit",e="dxscrollstart",o="dxscroll",s="dxscrollend",h="dxscrollstop",c="dxscrollcancel",l="dxscrollwheel",v=100,y=200,a=Math.round(1e3/60),p=u.GestureEmitter.inherit({ctor:function(n){this.callBase(n),this.direction="vertical"},init:function(n){this._savedEventData=this._prevEventData=r.eventData(n),this._fireEvent(f,n)},start:function(n){this._fireEvent(e,n,{delta:r.eventDelta(this._prevEventData,r.eventData(n))})},move:function(n){var t=r.eventData(n),i;this._fireEvent(o,n,{delta:r.eventDelta(this._prevEventData,t)}),i=r.eventDelta(this._savedEventData,t),i.time>y&&(this._savedEventData=this._prevEventData),this._prevEventData=t},end:function(n){var u=r.eventDelta(this._prevEventData,r.eventData(n)),i={x:0,y:0},t;u.time=t.time-this._tickData.time}},h={defaultItemSizeFunc:function(){return this.getElement().height()},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(n){var t=r.eventData(n);return(t.y-(this._startEventData&&this._startEventData.y||0))/this._itemSizeFunc().call(this,n)},isFastSwipe:function(n){var t=r.eventData(n);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.y-this._tickData.y)>=t.time-this._tickData.time}},c={horizontal:s,vertical:h},l=u.GestureEmitter.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:5,ctor:function(n){this.callBase(n),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return c[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},init:function(n){this._startEventData=r.eventData(n),this._tickData={time:0}},start:function(n){n=this._fireEvent(f,n),n.cancel||(this._maxLeftOffset=n.maxLeftOffset,this._maxRightOffset=n.maxRightOffset,this._maxTopOffset=n.maxTopOffset,this._maxBottomOffset=n.maxBottomOffset)},move:function(n){var u=this._getStrategy(),i=r.eventData(n),t=u.calcOffsetRatio.call(this,n);t=this._fitOffset(t,this.elastic),i.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=i),this._fireEvent(e,n,{offset:t}),n.preventDefault()},end:function(n){var r=this._getStrategy(),u=r.calcOffsetRatio.call(this,n),f=r.isFastSwipe.call(this,n),t=u,i=this._calcTargetOffset(u,f);t=this._fitOffset(t,this.elastic),i=this._fitOffset(i,!1),this._fireEvent(o,n,{offset:t,targetOffset:i})},_fitOffset:function(n,t){var r=this._getStrategy(),i=r.getBounds.call(this);return n<-i[0]?t?(-2*i[0]+n)/3:-i[0]:n>i[1]?t?(2*i[1]+n)/3:i[1]:n},_calcTargetOffset:function(n,t){var i;return t?(i=Math.ceil(Math.abs(n)),n<0&&(i=-i)):i=Math.round(n),i}});u.gestureEmitters.push({emitter:l,events:[f,e,o]})}(jQuery,DevExpress),function(n,t){var f=t.ui,p=t.utils,r=f.events,w=p.wrapToArray,l="dxdragstart",a="dxdrag",v="dxdragend",e="dxdragenter",o="dxdragleave",s="dxdrop",u=[],h=[],c={setup:function(t,i){var r=n.inArray(t,u)!==-1;r||(u.push(t),h.push(i||{}))},teardown:function(t){var c=n._data(t,"events"),f=0,r;n.each([e,o,s],function(n,t){var i=c[t];i&&(f+=i.length)}),f||(r=n.inArray(t,u),u.splice(r,1),h.splice(r,1))}};r.registerEvent(e,c),r.registerEvent(o,c),r.registerEvent(s,c);var y=function(t){var i=n.inArray(t.get(0),u);return h[i]},b=function(n){var t=y(n);return t.itemPositionFunc?t.itemPositionFunc():n.offset()},k=function(n){var t=y(n);return t.itemSizeFunc?t.itemSizeFunc():{width:n.width(),height:n.height()}},d=f.GestureEmitter.inherit({ctor:function(n){this.callBase(n),this.direction="both"},init:function(n){var t=r.eventData(n);this._startEventData=t},start:function(t){t=this._fireEvent(l,t),this._maxLeftOffset=t.maxLeftOffset,this._maxRightOffset=t.maxRightOffset,this._maxTopOffset=t.maxTopOffset,this._maxBottomOffset=t.maxBottomOffset;var i=w(t.targetElements||u);this._$dropTargetElements=n.map(i,function(t){return n(t)})},move:function(n){var i=r.eventData(n),t=this._calculateOffset(i);this._fireEvent(a,n,{offset:t}),this._processDropTargets(n,t),n.preventDefault()},_calculateOffset:function(n){return{x:this._calculateXOffset(n),y:this._calculateYOffset(n)}},_calculateXOffset:function(n){if(this.direction!=="vertical"){var t=n.x-this._startEventData.x;return this._fitOffset(t,this._maxLeftOffset,this._maxRightOffset)}return 0},_calculateYOffset:function(n){if(this.direction!=="horizontal"){var t=n.y-this._startEventData.y;return this._fitOffset(t,this._maxTopOffset,this._maxBottomOffset)}return 0},_fitOffset:function(n,t,i){return t!=null&&(n=Math.max(n,-t)),i!=null&&(n=Math.min(n,i)),n},_processDropTargets:function(n){var i=this._findDropTarget(n),r=i===this._$currentDropTarget;r||(this._fireDropTargetEvent(n,o),this._$currentDropTarget=i,this._fireDropTargetEvent(n,e))},_fireDropTargetEvent:function(n,t){if(this._$currentDropTarget){var i={type:t,originalEvent:n,draggingElement:this._$element.get(0),target:this._$currentDropTarget.get(0)};r.fireEvent(i)}},_findDropTarget:function(t){var r=this,i;return n.each(this._$dropTargetElements,function(n,u){if(r._checkDropTarget(u,t))return i=u,!1}),i},_checkDropTarget:function(n,t){var u=n.get(0)===this._$element.get(0),i,r;return u?!1:(i=b(n),t.pageXi.left+r.width)?!1:t.pageY>i.top+r.height?!1:n},end:function(n){var t=r.eventData(n);this._fireEvent(v,n,{offset:this._calculateOffset(t)}),this._fireDropTargetEvent(n,s),delete this._$currentDropTarget}});f.gestureEmitters.push({emitter:d,events:[l,a,v]})}(jQuery,DevExpress),function(n,t){var o=t.ui,r=o.events,y=t.utils,u=Math.abs,f="dxGesture",e="dxGestureEmitter",s="dxGestureLock",p=400,h=10,c="horizontal",l="vertical",a="both",w=t.Class.inherit({SLEEP:0,INITED:1,STARTED:2,ctor:function(){this._attachHandlers(),this.reset()},_attachHandlers:function(){n(document).on(r.addNamespace("dxpointerdown",f),n.proxy(this._handlePointerDown,this)).on(r.addNamespace("dxpointermove",f),n.proxy(this._handlePointerMove,this)).on(r.addNamespace("dxpointerup dxpointercancel",f),n.proxy(this._handlePointerUp,this)).on(r.addNamespace("dxmousewheel",f),n.proxy(this._handleMouseWheel,this))},_eachEmitter:function(t){n.each(this._activeEmitters||{},function(n,i){return t(i,n)})},_noEmitters:function(){return n.isEmptyObject(this._activeEmitters)},reset:function(){this._eachEmitter(function(n){n.removeCancelCallback()}),this._forgetGesture(),this._stage=this.SLEEP,this._activeEmitters={}},_handlePointerDown:function(n){r.needSkipEvent(n)||r.hasTouches(n)>1||(this.reset(),this._activeEmitters=this._closestEmitter(n),this._noEmitters())||(this._startEvent=n,this._startEventData=r.eventData(n),this._stage=this.INITED,this._applyToActive("init",n))},_applyToActive:function(t){var i=n.makeArray(arguments).slice(1);this._eachEmitter(function(n){t in n&&n[t].apply(n,i)})},_closestEmitter:function(t){for(var r={},o=!1,u=n(t.target),i,f;u.length&&!o;)i=u.data(e),i&&i.validate(t)&&(f=i.getDirection(t),f&&(i.addCancelCallback(n.proxy(this._handleCancel,this,i,t)),r[f]=r[f]||i)),o=r[c]&&r[l]||r[a],u=u.parent();return r},_handleCancel:function(n,t){var i;this._eachEmitter(function(t,r){t===n&&(i=r,t.removeCancelCallback())}),this._forgetGesture([n]),this._cancelEmitter(n,t),this._noEmitters()&&this.reset()},_handlePointerMove:function(n){this._stage===this.INITED&&this._directionDetected(n)&&this._handleStart(n),this._stage===this.STARTED&&this._handleMove(n)},_directionDetected:function(n){var t=r.eventDelta(this._startEventData,r.eventData(n));return t.x||t.y},_handleStart:function(n){(this._filterEmitters(n),this._noEmitters())||(this._resetActiveElement(),this._applyToActive("start",this._startEvent),this._stage=this.STARTED)},_resetActiveElement:function(){t.devices.real().platform==="ios"&&this._eachEmitter(function(t){n(":focus",t.getElement()).length&&y.resetActiveElement()})},_filterEmitters:function(n){this._filterByDirection(n),this._emitersAmount()>1&&this._takeFirstEmitter()},_emitersAmount:function(){var n=0;return this._eachEmitter(function(){n++}),n},_filterByDirection:function(n){var t=r.eventDelta(this._startEventData,r.eventData(n)),o=u(t.y)u(t.x),i=this._activeEmitters[c],f=this._activeEmitters[l],e=this._activeEmitters[a],h=i||e,v=f||e;o&&h?this._cancelEmitter(f,n):s&&v&&this._cancelEmitter(i,n)},_cancelEmitter:function(n,t){n&&(n.cancel(t),delete this._activeEmitters[n.getDirection(t)])},_takeFirstEmitter:function(){var n={};this._eachEmitter(function(t,i){return n[i]=t,!1}),this._activeEmitters=n},_prepareGesture:function(){this._gestureLocked=!0,clearTimeout(this._gestureEndTimer),this._eachEmitter(function(n){n.getElement().data(s,!0)}),o.feedback.reset()},_handleMove:function(n){if(!this._gestureLocked){var t=r.eventDelta(this._startEventData,r.eventData(n));(u(t.x)>h||u(t.y)>h)&&(r.handleGestureEvent(n,f),this._prepareGesture())}this._applyToActive("move",n)},_forgetGesture:function(t){(t=t||this._activeEmitters,this._noEmitters())||(this._gestureLocked=!1,this._gestureEndTimer=setTimeout(function(){n.each(t,function(n,t){t.getElement().data(s,!1)})},p))},_handlePointerUp:function(n){(t.devices.isRippleEmulator()||!r.hasTouches(n))&&(this._stage===this.STARTED?this._applyToActive("end",n):this._stage===this.INITED&&this._applyToActive("stop",n),this.reset())},_handleMouseWheel:function(n){(this._handlePointerDown(n),this._stage===this.INITED)&&(this._takeFirstEmitter(),this._eachEmitter(function(t,i){var r=i!=="horizontal"?"pageY":"pageX";n[r]+=n.delta}),this._handlePointerMove(n),this._handlePointerUp(n))},isActive:function(n){var t=!1;return this._eachEmitter(function(i){t=t||i.getElement().is(n)}),t}}),v=new w,b=function(t){var i=t.emitter;n.each(t.events,function(t,u){r.registerEvent(u,{noBubble:!0,setup:function(t,r){var u=n(t).data(e)||new i(t);u.configurate(r),n(t).data(e,u)},teardown:function(t){v.isActive(t)&&v.reset(),n(t).removeData(e)}})})};n.each(o.gestureEmitters,function(n,t){b(t)})}(jQuery,DevExpress),function(n,t,i){var u=t.ui,e="UIFeedback",o="dx-feedback",h="dx-state-active",c="dx-state-disabled",v="dx-state-invisible",y="dx-state-hover",p=30,w=400,b="dxhoverstart",k="dxhoverend",d="template",g="[data-options*='dxTemplate']",nt="dxTemplates",l=function(t){var i=n(t).data("options");return n.trim(i).charAt(0)!=="{"&&(i="{"+i+"}"),new Function("return "+i)().dxTemplate},r,f=u.events;u.feedback={reset:function(){a(!0)}},u.Widget=t.DOMComponent.inherit({NAME:"Widget",NAMESPACE:u,_setDefaultOptions:function(){this.callBase(),this.option({disabled:!1,visible:!0,activeStateEnabled:!0,width:i,height:i,contentReadyAction:null,hoverStateEnabled:!1})},_init:function(){this.callBase(),this._feedbackShowTimeout=p,this._feedbackHideTimeout=w,this._templatesSupported()&&(this._initTemplates(),this._initContentReadyAction())},_templatesSupported:function(){return this._renderContentImpl!==t.abstract},_initTemplates:function(){var i=this,r={},f=this._element().data(nt),e=f?f:this._element().contents().filter(g),t;this._templateProvider=new u.TemplateProvider,this._templateClass=this._templateProvider.getTemplateClass(this),e.length?(t={},e.each(function(){var n=l(this);if(n){if(!n.name)throw Error("Template name was not specified");t[n.name]=t[n.name]||[],t[n.name].push(this)}}),n.each(t,function(n,t){var u=i._findTemplateByDevice(t);u&&(r[n]=i._createTemplate(u))})):r[d]=i._createTemplate(i._element().contents()),this.option("_templates",r)},_getTemplateByOption:function(n){return this._getTemplate(this.option(n))},_getTemplate:function(n){var i=this._acquireTemplate.apply(this,arguments);if(!i&&this._templateProvider.supportDefaultTemplate(this)&&(i=this._templateProvider.getDefaultTemplate(this),!i))throw Error(t.utils.stringFormat('Template "{0}" was not found and no default template specified!',n));return i},_acquireTemplate:function(t){if(t==null||t instanceof this._templateClass)return t;if(t.nodeType||t.jquery)return t=n(t),t.is("script")&&(t=t.html()),this._createTemplate(t);if(typeof t=="string")return this.option("_templates")[t];if(n.isFunction(t)){var i=n.makeArray(arguments).slice(1);return this._acquireTemplate(t.apply(this,i))}return this._acquireTemplate(t.toString())},_createTemplate:function(n){return new this._templateClass(n,this)},_findTemplateByDevice:function(i){var r=t.utils.findBestMatches(t.devices.current(),i,function(n){return l(n)})[0];return n.each(i,function(t,i){i!==r&&n(i).remove()}),r},_cleanTemplates:function(){var t=this;n.each(this.option("_templates"),function(n,i){t===i.owner()&&i.dispose()})},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("contentReadyAction",{excludeValidators:["gesture","designMode","disabled"]})},_render:function(){this.callBase(),this._element().addClass("dx-widget"),this._toggleDisabledState(this.option("disabled")),this._toggleVisibility(this.option("visible")),this._refreshFeedback(),this._renderDimensions(),this._templatesSupported()&&this._renderContent(),this._attachHoverEvents()},_renderContent:function(){this._renderContentImpl(),this._fireContentReadyAction()},_renderContentImpl:t.abstract,_fireContentReadyAction:function(){this._contentReadyAction({excludeValidators:["disabled","gesture"]})},_dispose:function(){this._templatesSupported()&&this._cleanTemplates(),this._contentReadyAction=null,this._clearTimers(),r&&r.closest(this._element()).length&&(r=null),this.callBase()},_clean:function(){this.callBase(),this._element().empty()},_clearTimers:function(){clearTimeout(this._feedbackHideTimer),clearTimeout(this._feedbackShowTimer)},_toggleVisibility:function(n){this._element().toggleClass(v,!n)},_attachHoverEvents:function(){var r=this,i=r._activeStateUnit,u=f.addNamespace(b,e),o=f.addNamespace(k,e),s;if(r._element().off(u,i).off(o,i),this.option("hoverStateEnabled")){s=new t.Action(function(n){var t=n.element;r._refreshHoveredElement(t)});r._element().on(u,i,{selector:i},function(t){s.execute({element:n(t.target)})}).on(o,i,{selector:i},function(n){n.stopImmediatePropagation(),r._forgetHoveredElement()})}else this._toggleHoverClass(!1)},_refreshHoveredElement:function(n){var t=this._activeStateUnit||this._element();this._forgetHoveredElement(),this._hoveredElement=n.closest(t),this._toggleHoverClass(!0)},_forgetHoveredElement:function(){this._toggleHoverClass(!1),delete this._hoveredElement},_toggleHoverClass:function(n){this._hoveredElement&&this._hoveredElement.toggleClass(y,n&&this.option("hoverStateEnabled"))},_renderDimensions:function(){var n=this.option("width"),t=this.option("height");this._setDimension(n,"width"),this._setDimension(t,"height")},_setDimension:function(t,i){var r=this._element();t=n.isFunction(t)?t():t,n.isNumeric(t)&&(t=t+"px"),t||i!=="width"||(t=this._calculateWidth()),r.css(i,t)},_calculateWidth:function(){var t=this._element(),n=t[0].style.width,i;if(n[n.length-1]!=="%"||this.option("width"))i=n&&n!=="auto"&&n!=="inherit"?t.outerWidth():this.option("width");else return n;return i},_refreshFeedback:function(){this._feedbackDisabled()?(this._feedbackOff(!0),this._element().removeClass(o)):this._element().addClass(o)},_feedbackDisabled:function(){return!this.option("activeStateEnabled")||this.option("disabled")},_feedbackOn:function(t,i){this._feedbackDisabled()||(this._clearTimers(),i?this._feedbackShow(t):this._feedbackShowTimer=window.setTimeout(n.proxy(this._feedbackShow,this,t),this._feedbackShowTimeout),this._saveActiveElement())},_feedbackShow:function(t){var i=this._element();this._activeStateUnit&&(i=n(t).closest(this._activeStateUnit)),i.hasClass(c)||(i.addClass(h),this._toggleHoverClass(!1))},_saveActiveElement:function(){r=this._element()},_feedbackOff:function(t){this._clearTimers(),t?this._feedbackHide():this._feedbackHideTimer=window.setTimeout(n.proxy(this._feedbackHide,this),this._feedbackHideTimeout)},_feedbackHide:function(){var n=this._element();this._activeStateUnit&&(n=n.find(this._activeStateUnit)),n.removeClass(h),this._toggleHoverClass(!this.option("disabled")),this._clearActiveElement()},_clearActiveElement:function(){var i=this._element().get(0),t=r&&r.get(0);t&&(t===i||n.contains(i,t))&&(r=null)},_toggleDisabledState:function(n){this._element().toggleClass(c,Boolean(n)),this._toggleHoverClass(!n)},_optionChanged:function(n,t){switch(n){case"disabled":this._toggleDisabledState(t),this._refreshFeedback();break;case"activeStateEnabled":this._refreshFeedback();break;case"hoverStateEnabled":this._attachHoverEvents();break;case"visible":this._toggleVisibility(t);break;case"width":case"height":this._renderDimensions();break;case"contentReadyAction":this._initContentReadyAction();break;case"_templates":this._refresh();break;default:this.callBase.apply(this,arguments)}},repaint:function(){this._refresh()}});var tt=function(n,t){var h=n.jQueryEvent,e=n.element,i,u;if(!f.needSkipEvent(h)&&(r&&(i=s(r),i&&i._feedbackOff(!0)),u=e.closest("."+o),u.length)){if(i=s(u),!i)return;i._feedbackOn(e,t),t&&i._feedbackOff()}},a=function(n){if(r){var t=s(r);t&&t._feedbackOff(n)}},s=function(t){var i;return n.each(t.data("dxComponents")||[],function(n,r){if(u[r]&&u[r].subclassOf(u.Widget))return i=t.data(r),!1}),i};n(function(){var i=new t.Action(tt);n(document).on(f.addNamespace("dxpointerdown",e),function(t){i.execute({jQueryEvent:t,element:n(t.target)})}).on(f.addNamespace("dxpointerup dxpointercancel",e),function(t){var u=r&&n(t.target).closest("."+o).get(0)===r.get(0);u&&i.execute({jQueryEvent:t,element:n(t.target)},!0),a()})})}(jQuery,DevExpress),function(n,t,i){var r=t.ui;t.registerComponent("dxEditor",r.Widget.inherit({_setDefaultOptions:function(){this.callBase(),this.option({value:i,valueChangeAction:i})},_recreateValueChangeAction:function(){this._valueChangeAction=this._createActionByOption("valueChangeAction")},_suppressValueChangeAction:function(){this._valueChangeActionSuppressed=!0},_resumeValueChangeAction:function(){this._valueChangeActionSuppressed=!1},_render:function(){this._recreateValueChangeAction(),this.callBase()},_raiseValueChangeAction:function(t,i,r){var u={value:t,previousValue:i,jQueryEvent:this._valueChangeEventInstance};r&&(u=n.extend(u,r)),this._valueChangeAction(u)},_optionChanged:function(n,t,r){switch(n){case"valueChangeAction":this._recreateValueChangeAction();break;case"value":this._valueChangeActionSuppressed||this._raiseValueChangeAction(t,r),this._valueChangeEventInstance=i;break;default:this.callBase.apply(this,arguments)}}}))}(jQuery,DevExpress),function(n,t){var o=t.utils.isString,r,f=[],h=DevExpress.Class.inherit({_compile:function(n,t){return t},_render:function(n){return n},ctor:function(t){this._element=n(t),this._element.length===1&&(this._element[0].nodeName.toLowerCase()!=="script"&&(this._element=n("
").append(this._element)),this._template=this._compile(this._element.html()||"",this._element))},render:function(t,i){var r;if(this._template)return r=this._render(this._template,i),o(r)&&(r=n.parseHTML(r)),r=n(r),t&&t.append(r),r},owner:n.noop,dispose:n.noop}),s=function(n){if(n&&n.compile&&n.render)return h.inherit({allowRenderToDetachedContainer:n.allowRenderToDetachedContainer!==!1,_compile:n.compile,_render:n.render});throw Error("Template Engine must contains compile and render methods");},e,u;window.ko&&(e=function(){},e.prototype=ko.utils.extend(new ko.templateEngine,{renderTemplateSource:function(n,t){var u=n.data("precompiledTemplate");return u||(u=new r(n.domElement),n.data("precompiledTemplate",u)),u.render(null,t.$data)},allowTemplateRewriting:!1})),DevExpress.ui.setTemplateEngine=function(n){if(o(n)){if(r=f&&f[n],!r&&n!=="default")throw Error(t.utils.stringFormat('Template Engine "{0}" is not supported',n));}else r=s(n)||r;window.ko&&ko.setTemplateEngine(r?new e:new ko.nativeTemplateEngine)},DevExpress.ui.TemplateProvider=DevExpress.ui.TemplateProvider.inherit({getTemplateClass:function(){return r?r:this.callBase.apply(this,arguments)}}),u=function(n,t){f[n]=s(t)},u("jquery-tmpl",{compile:function(n,t){return t},render:function(n,t){return n.tmpl(t)}}),u("jsrender",{compile:function(t){return n.templates(t)},render:function(n,t){return n.render(t)}}),u("mustache",{compile:function(n){return Mustache.compile(n)},render:function(n,t){return n(t)}}),u("hogan",{compile:function(n){return Hogan.compile(n)},render:function(n,t){return n.render(t)}}),u("underscore",{compile:function(n){return _.template(n)},render:function(n,t){return n(t)}}),u("handlebars",{compile:function(n){return Handlebars.compile(n)},render:function(n,t){return n(t)}}),u("doT",{compile:function(n){return doT.template(n)},render:function(n,t){return n(t)}})}(jQuery,DevExpress),function(n,t,i){var r=t.ui,u=r.events,f=r.Widget.inherit({_setDefaultOptions:function(){this.callBase(),this.option({items:[],itemTemplate:"item",itemRender:null,itemRenderedAction:null,itemClickAction:null,itemHoldAction:null,itemHoldTimeout:750,noDataText:Globalize.localize("dxCollectionContainerWidget-noDataText"),dataSource:null,selectedIndex:-1,itemSelectAction:null,itemTemplateProperty:"template"})},_init:function(){this.callBase(),this._cleanRenderedItems(),this._refreshDataSource()},_dataSourceOptions:function(){var t={paginate:!1,_preferSync:!1};return n.isArray(this.option("dataSource"))&&(t._preferSync=!0),t},_cleanRenderedItems:function(){this._renderedItemsCount=0},_fireSelectItemEvent:function(n,t){this._selectionEnabled()&&(this._updateSelectedIndex(n,t),this._handleItemEvent(this._selectedItemElement(n),"itemSelectAction",{selectedIndex:n,previousIndex:t},{excludeValidators:["gesture","disabled"]}))},_optionChanged:function(n,t,i){switch(n){case"items":case"itemTemplateProperty":if(this._selectionEnabled()){var r=t&&t.length||0,u=Math.max(r-1,0);u").appendTo(i.container),u=t.call(this,i.item,i.index,r);return u!=null&&r[0]!==u[0]&&r.append(u),r},_getItemTemplateName:function(n){var t=this.option("itemTemplateProperty");return n&&n[t]||this.option("itemTemplate")},_createItemByTemplate:function(n,t){return n.render(t.container,t.item,t.index,"ignoreTarget")},_itemRenderDefault:function(t,r,u){n.isPlainObject(t)?(t.visible===i||t.visible||u.hide(),t.disabled&&u.addClass("dx-state-disabled"),t.text&&u.text(t.text),t.html&&u.html(t.html)):u.html(String(t))},_postprocessRenderItem:n.noop,_renderEmptyMessage:function(){if(!this._selectionEnabled()){var t=this.option("noDataText"),i=this.option("items"),u=this._dataSource&&this._dataSource.isLoading(),r=!t||i&&i.length||u;r&&this._$nodata&&(this._$nodata.remove(),this._$nodata=null),r||(this._$nodata=this._$nodata||n("
").addClass("dx-empty-message"),this._$nodata.appendTo(this._itemContainer()).text(t))}},_handleItemJQueryEvent:function(t,i,r,u){this._handleItemEvent(t.target,i,n.extend(r,{jQueryEvent:t}),u)},_handleItemEvent:function(t,i,r,u){var f=this._createActionByOption(i,n.extend({validatingTargetName:"itemElement"},u));return this._handleItemEventImpl(t,f,r)},_handleItemEventByHandler:function(t,i,r,u){var f=this._createAction(i,n.extend({validatingTargetName:"itemElement"},u));return this._handleItemEventImpl(t,f,r)},_handleItemEventImpl:function(t,i,r){var u=this._closestItemElement(n(t));return r=n.extend({itemElement:u,itemData:this._getItemData(u)},r),i(r)},_closestItemElement:function(t){return n(t).closest(this._itemSelector())},_getItemData:function(n){return n.data(this._itemDataKey())},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(r.DataHelperMixin);r.CollectionContainerWidget=f}(jQuery,DevExpress),function(n,t){var r=null,f=function(i){i=n.extend({position:"top"},i);var r=i.content;return delete i.content,n("
").html(r).appendTo(t.overlayTargetContainer()).dxTooltip(i)},u=function(){r&&(r.remove(),r=null)},e={show:function(n){return u(),r=f(n),r.dxTooltip("show")},hide:function(){return r?r.dxTooltip("hide").done(u).promise():n.when()}};t.ui.tooltip=e}(jQuery,DevExpress));if(!DevExpress.MOD_VIZ_CORE){if(!window.DevExpress)throw Error("Required module is not referenced: core");(function(n){n.viz={}})(DevExpress),function(n){n.viz.core={}}(DevExpress),function(n){n.viz.core.errorsWarnings={E2001:"Invalid data source",E2002:"Axis type and data type are incompatible",E2003:'"{0}" data source field contains data of unsupported type',E2004:'"{0}" data source field is inconsistent',E2101:"Unknown series type was specified: {0}",E2102:"Ambiguity occurred between two value axes with the same name",E2103:'"{0}" option must be a function',E2104:"Invalid logarithm base",E2105:'Invalid value of a "{0}"',E2106:"Invalid visible range",E2201:"Invalid type of data source field",E2202:"Invalid scale {0} value",E2203:'The "{0}" field of the "selectedRange" configuration object is not valid',W2001:"{0} cannot be drawn because its container is invisible",W2002:"The {0} data field is absent",W2003:"Tick interval is too small",W2101:'"{0}" pane does not exist; "{1}" pane is used instead',W2102:'Value axis with the "{0}" name was created automatically',W2103:"Chart title was hidden due to container size",W2104:"Legend was hidden due to container size",W2105:'Title of "{0}" axis was hidden due to container size',W2106:'Labels of "{0}" axis were hidden due to container size',W2301:"Invalid value range"}}(DevExpress),function(n,t,i){var r=t.utils,f=Math,s=f.ceil,o=f.floor,e=f.abs,h=f.round,u=t.viz.core,c=2e3;u.outOfScreen={x:-1e3,y:-1e3},u.tickIntervalCalculator={_defaultNumberMultipliers:[1,2,3,5],_defaultGridSpacingFactor:30,_getCommonTickInterval:function(n,t){for(var r=0,f=!1,i,u=1;!f;u*=10)for(i=0;i1)i=this._getCommonTickInterval(n,t);else if(n>0)for(i=1,f=.1;!o;f/=10)for(u=t.length-1;u>=0;u--){if(e=t[u]*f,n>e){o=!0;break}i=e}return r.adjustValue(i)},_getLogarithmicTickInterval:function(n,t){var i=0;return n!==0&&(i=this._getCommonTickInterval(n,t)),r.adjustValue(i)},_getDateTimeTickInterval:function(n,t){var e={millisecond:[1,2,5,10,25,100,250,300,500],second:[1,2,3,5,10,15,20,30],minute:[1,2,3,5,10,15,20,30],hour:[1,2,3,4,6,8,12],day:[1,2,3,5,7,10,14],month:[1,2,3,6]},h={},o,u,f,s,i;if(n>0&&n<1)return{milliseconds:1};if(n===0)return 0;for(u in e)if(e.hasOwnProperty(u))for(f=e[u],i=0;i0&&f=0;u--)if(f=o(n/i[u]),t<=f)return r.convertMillisecondsToDateUnits(f);return 0},_getCommonTickInterval:function(n,t,i){for(var f,u=i.length-1;u>=0;u--)if(f=n/i[u],t<=f)return r.adjustValue(f);return 0},getTickInterval:function(n){var t=this,e=r.isDefined(n.gridSpacingFactor)?n.gridSpacingFactor:t._defaultGridSpacingFactor,u=n.numberMultipliers||t._defaultNumberMultipliers,i=n.businessDelta,f=e*i/n.screenDelta;if(n.axisType==="logarithmic")return t._getCommonTickInterval(i,f,u);switch(n.dataType){case"numeric":return t._getCommonTickInterval(i,f,u);case"datetime":return t._getDateTimeTickInterval(i,f,u)}return 0}},u.tickProvider={_appendFakeSVGElement:function(t,i,r){var f=n.extend({},r.textOptions,{rotate:0});return r.renderer.createText(i,u.outOfScreen.x+(r.translator.translate(t)||0),u.outOfScreen.y,f).append()},_getDistanceByAngle:function(n,t){return n/e(f.sin(t*(f.PI/180)))},_areDisplayValuesValid:function(n,t,i){var f=this,c=f._getTextFunc(i),l=i.textOptions&&r.isNumber(i.textOptions.rotate)?i.textOptions.rotate:0,a=f._appendFakeSVGElement(n,c(n),i),v=f._appendFakeSVGElement(t,c(t),i),u=a.getBBox(),o=v.getBBox(),s,h=i.translator;return s=l!==0?f._getDistanceByAngle(u.height,l)<=e(o.x-u.x):i.isHorizontal?h.getBusinessRange().invert?o.x+o.widthu.height,a.remove(),v.remove(),s},_removeInvalidDatesWithUnitBegining:function(n,t){n.length<=1||!t.setTicksAtUnitBeginning||!r.isDate(t.min)||this._areDisplayValuesValid(n[0],n[1],t)||n.splice(1,1)},_getValueSize:function(n,t){var e=this,i,o=t.textOptions?t.textOptions.rotate:0,h,u,c,l=e._getTextFunc(t),f;if(n.length===0)return 0;if(t.isRotate=r.isNumber(o)&&o!==0,t.isRotate||!t.isHorizontal)i=l(n[0]);else{for(i=[],f=0;fi.max),u=r.raiseTo(e,i.base),u=o._adjustNumericTickValue(u,t,f.min(i.min,i.max))):(u=r.addInterval(n,t,i.min>i.max),i.dataType==="numeric"&&(u=o._adjustNumericTickValue(u,t,i.min)),i.dataType==="datetime"&&i.setTicksAtUnitBeginning&&r.correctDateWithUnitBeginning(u,t)),u},_addMinorTicks:function(t,i,f,o,c){var d=this,v,w=o.dataType,y,l=[],b=0,p=o.minorTickCount+1,k,a;for(o.min=t,o.max=i,r.isDefined(o.tickInterval)||(o.businessDelta=y=e(o.max-o.min),o.screenDelta=y*o.deltaCoef,r.isDefined(o.minorTickCount)?((!f.majorTicks.autoArrangementStep||f.majorTicks.autoArrangementStep<=1)&&(k=o.minorTickCount+1,b=w==="datetime"?r.convertDateTickIntervalToMilliseconds(f.majorTickInterval):f.majorTickInterval,p=h(y/b*k)||1),a=w==="datetime"?r.convertMillisecondsToDateUnits(y/p):y/p,n.isNumeric(a)&&(a=r.adjustValue(a))):r.isDate(t)&&(a=u.minorTickIntervalCalculator.getTickInterval(o))),o=n.extend(!0,{},o,{tickInterval:a}),l=d.getTicks(o),c&&l.reverse(),l.length>0&&s(e(i-l[l.length-1])*o.deltaCoef)<2&&l.pop(),v=0;v0&&n.minorTicks[0].valueOf()===t.valueOf()&&n.minorTicks.shift(t),n.customBoundaryTicks.push(t),n.fullTicks.unshift(t)))},_addRightBoudedTicks:function(n,t,i){var u=n.majorTicks[n.majorTicks.length-1];n.fullTicks.push(u),r.isDefined(t)&&u.valueOf()!==t.valueOf()&&(i.addMinMax.min=!1,i.addMinMax.max=!0,this._addMinorTicks(u,t,n,i),i.showCustomBoundaryTicks&&(n.minorTicks.length>0&&n.minorTicks[n.minorTicks.length-1].valueOf()===t.valueOf()&&n.minorTicks.pop(t),n.customBoundaryTicks.push(t),n.fullTicks.push(t)))},_correctBoundedTicks:function(t,i,r,u){u=n.extend({},{min:!0,max:!0},u),r.length>0&&(u.min||r[0].valueOf()!==t.valueOf()||r.shift(),u.max&&r[r.length-1].valueOf()===i.valueOf()||r.pop())},_initializeMinorTicksOptions:function(t,f,e,o,s){var h=this,c,l=r.isDefined(s.minorTickCount);n.extend(!0,s,{addMinMax:{min:!1,max:!1},deltaCoef:h._getDeltaCoef(e,f,t,s.axisType,s.base)},s),s.numberMultipliers=l?[s.minorTickCount+1]:s.numberMultipliers,s.gridSpacingFactor=l?0:s.gridSpacingFactor,!l&&o.majorTicks.length>1&&(s.businessDelta=c=h._getBusinessDelta(s.axisType,o.majorTicks[0],o.majorTicks[1],s.base),h.needTickIntervalCalculation(c,o.minorTickInterval,s.incidentOccured)&&(s.screenDelta=c*s.deltaCoef,o.minorTickInterval=u.minorTickIntervalCalculator.getTickInterval(s),s.tickInterval=r.isNumber(t)?o.minorTickInterval:i))},_getDataType:function(n){return r.isDate(n)?"datetime":"numeric"},_getBusinessDelta:function(n,t,i,u){return n==="logarithmic"?h(e(r.getLog(t,u)-r.getLog(i,u))):e(t-i)},_getDeltaCoef:function(n,t,i,r,u){return n/this._getBusinessDelta(r,i,t,u)},_initializeMajorTicksOptions:function(t,i,f,e,o){var s;o.screenDelta=f,n.extend(!0,o,{min:t,max:i,screenDelta:f,isHorizontal:!0}),r.isDefined(t)&&r.isDefined(i)&&(o.businessDelta=s=this._getBusinessDelta(o.axisType,t,i,o.base),this.needTickIntervalCalculation(s,e.majorTickInterval,o.incidentOccured)&&(o.isStartTickGenerated=!0,e.majorTickInterval=u.tickIntervalCalculator.getTickInterval(o),o.tickInterval=e.majorTickInterval))},_getTextFunc:function(n){return n.getText||function(n){return n.toString()}},_generateTicks:function(t){var s=this,f=[],e,c=t.max-t.min>0,l,a,o,h=t.isStartTickGenerated,v,y=t.useTicksAutoArrangement;if(t.dataType=t.dataType||s._getDataType(t.min),t.businessDelta=v=s._getBusinessDelta(t.axisType,t.min,t.max,t.base),!r.isDefined(t.min)||!r.isDefined(t.max)||isNaN(t.min)||isNaN(t.max))f=t.isHorizontal?["canvas_position_left","canvas_position_center","canvas_position_right"]:["canvas_position_bottom","canvas_position_middle","canvas_position_top"],y=!1,f.hideLabels=!0;else{if(o=n.isNumeric(t.min)&&n.isNumeric(t.max)&&!n.isNumeric(t.tickInterval)?i:t.tickInterval,this.needTickIntervalCalculation(v,o,t.incidentOccured)&&(h=r.isDefined(h)?h:!0,o=u.tickIntervalCalculator.getTickInterval(t)),f.tickInterval=o,o&&o.valueOf()!==0&&t.min.valueOf()!==t.max.valueOf()){e=h?s._generateStartTick(o,t):t.min;do{if(f.push(e),e=s._nextTick(e,o,t),f[f.length-1].valueOf()===e.valueOf())break;l=e-t.min>0,a=t.max-e>0}while(c===l&&c===a);f.push(e),s._correctBoundedTicks(t.min,t.max,f,t.addMinMax)}t.min.valueOf()===t.max.valueOf()&&(e=t.min,f.push(e))}return f},_getAutoArrangementStep:function(n,t){var u=this,i,r=t.isHorizontal?t.textSpacing:0;return t.getCustomAutoArrangementStep?t.getCustomAutoArrangementStep(n,t):t.maxDisplayValueSize>0?(i=o((t.screenDelta+t.textSpacing)/(t.maxDisplayValueSize+r)),s((t.ticksCount||n.length)/i)):1},_getAutoArrangementTicks:function(n,t,i){var f=this,r=n,u;if(i>1){for(r=[],u=0;u1},getCorrectedTicks:function(n,t){var i=Math.ceil(u.tickIntervalCalculator.getTickInterval({screenDelta:t.screenDelta*4,businessDelta:n.length,gridSpacingFactor:t.gridSpacingFactor,numberMultipliers:t.numberMultipliers,dataType:"numeric"}))||n.length;return this._getAutoArrangementTicks(n,t,i)},needTickIntervalCalculation:function(n,t,i){var u;if(r.isDefined(t)){if(!r.isNumber(t)&&(u=new Date,t=r.addInterval(u,t)-u,!t))return!0;if(r.isNumber(t))if(t>0&&n/t>c)i&&i("W2003");else return!1}return!0},getTickIntervals:function(n,t,i,u,f,e){var s=this,h,e=e||{},o={majorTickInterval:u.tickInterval,minorTickInterval:f.tickInterval,majorTicks:[]};return u.base=f.base=e.base,u.axisType=f.axisType=e.axisType,u.dataType=f.dataType=e.dataType,s._initializeMajorTicksOptions(n,t,i,o,u),r.isDefined(n)&&r.isDefined(t)&&(o.majorTicks.push(n),o.majorTicks.push(s._nextTick(n,o.majorTickInterval,{min:n,max:t,setTicksAtUnitBeginning:u.setTicksAtUnitBeginning,dataType:e.dataType,axisType:e.axisType,base:e.base})),s._initializeMinorTicksOptions(n,t,i,o,f)),o},getFullTicks:function(n,t,i,u,f,e){var s=this,h,e=e||{},o={customBoundaryTicks:[],fullTicks:[],majorTickInterval:u.tickInterval,majorTicks:[],minorTickInterval:f.tickInterval,minorTicks:[]};if(u.base=f.base=e.base,u.axisType=f.axisType=e.axisType,u.dataType=f.dataType=e.dataType||s._getDataType(n),s._initializeMajorTicksOptions(n,t,i,o,u),o.majorTicks=s.getTicks(u),r.isDefined(n)&&r.isDefined(t)&&o.majorTicks.length>0){for(o.majorTicks.autoArrangementStep&&o.majorTicks.autoArrangementStep>1&&!r.isDefined(f.tickInterval)&&!r.isDefined(f.minorTickCount)&&(f.tickInterval=o.minorTickInterval=u.tickInterval),s._initializeMinorTicksOptions(n,t,i,o,f),s._addLeftBoudedTicks(o,n,f),h=0;h1&&(r.isDefined(t.tickInterval)||r.isDefined(t.customTicks)?(r.isDefined(t.customTicks)&&(i.tickInterval=t.tickInterval),i=u._getAutoArrangementTicks(i,t,f)):i=u._generateTicks(n.extend({},t,{gridSpacingFactor:t.maxDisplayValueSize})),i.autoArrangementStep=f),u._removeInvalidDatesWithUnitBegining(i,t)),i}}}(jQuery,DevExpress),function(n,t){var r=t.utils,f=r.isDefined,e=r.getPower,u=Math.round;t.viz.core.numericTranslatorFunctions={translate:function(n){var i=this,t=i._canvasOptions,r=t.rangeDoubleError,e=i.translateSpecialCase(n);return f(e)?e:isNaN(n)||n.valueOf()+rt.rangeMax?null:u(i._calculateProjection((n-t.rangeMinVisible)*t.ratioOfCanvasRange))},untranslate:function(n){var t=this._canvasOptions,i=t.startPoint;return nt.endPoint?null:this._calculateUnProjection((n-i)/t.ratioOfCanvasRange)},getInterval:function(){return u(this._canvasOptions.ratioOfCanvasRange*(this._businessRange.interval||Math.abs(this._canvasOptions.rangeMax-this._canvasOptions.rangeMin)))}}}(jQuery,DevExpress),function(n,t){var u=t.viz.core,r=u.numericTranslatorFunctions;u.datetimeTranslatorFunctions={translate:r.translate,untranslate:function(n){var t=r.untranslate.call(this,n);return t===null?t:new Date(t)},getInterval:r.getInterval}}(jQuery,DevExpress),function(n,t){function f(n){return r(r(n*10)/10)}var u=t.utils.isDefined,r=Math.round;t.viz.core.categoryTranslatorFunctions={translate:function(n){var t=this,f=t._canvasOptions,i=t._categoriesToPoints[n],e,o=t.translateSpecialCase(n);return u(o)?o:i?(e=t._businessRange.stick?i.index:i.index+.5,r(f.startPoint+f.interval*e)):0},untranslate:function(n){var i=this,r=i._canvasOptions,u=r.startPoint,e=i._categories.length,t=0;return nr.endPoint?null:(t=f((n-u)/r.interval+(i._businessRange.stick?.5:0)-.5),e===t&&t--,r.invert&&(t=e-t-1),i._categories[t])},getInterval:function(){return this._canvasOptions.interval}}}(jQuery,DevExpress),function(n,t){var f=t.viz.core,r=f.numericTranslatorFunctions,u=t.utils,e=u.raiseTo,o=u.getLog;f.logarithmicTranslatorFunctions={translate:function(n){var t=this,i=t.translateSpecialCase(n);return u.isDefined(i)?i:r.translate.call(t,o(n,t._businessRange.base))},untranslate:function(n){var t=r.untranslate.call(this,n);return t===null?t:e(t,this._businessRange.base)},getInterval:r.getInterval}}(jQuery,DevExpress),function(n){function r(){this.setDomain(arguments[0],arguments[1]).setCodomain(arguments[2],arguments[3])}var i=Number;r.prototype={constructor:r,setDomain:function(n,t){var r=this;return r._domain1=i(n),r._domain2=i(t),r._domainDelta=r._domain2-r._domain1,r},setCodomain:function(n,t){var r=this;return r._codomain1=i(n),r._codomain2=i(t),r._codomainDelta=r._codomain2-r._codomain1,r},getDomain:function(){return[this._domain1,this._domain2]},getCodomain:function(){return[this._codomain1,this._codomain2]},getDomainStart:function(){return this._domain1},getDomainEnd:function(){return this._domain2},getCodomainStart:function(){return this._codomain1},getCodomainEnd:function(){return this._codomain2},getDomainRange:function(){return this._domainDelta},getCodomainRange:function(){return this._codomainDelta},translate:function(n){var t=(i(n)-this._domain1)/this._domainDelta;return 0<=t&&t<=1?this._codomain1+t*this._codomainDelta:NaN},adjust:function(n){var t=(i(n)-this._domain1)/this._domainDelta,r=NaN;return t<0?r=this._domain1:t>1?r=this._domain2:0<=t&&t<=1&&(r=i(n)),r}},n.viz.core.Translator1D=r}(DevExpress),function(n,t){var r=t.viz.core,u=t.utils,e=u.getLog,o=u.getPower,s=u.raiseTo,f=u.isDefined,h=["width","height","left","top","bottom","right"],c=1,l=6e4,a=function(t){return n.each(h,function(n,i){t[i]=parseInt(t[i])||0}),t},p=function(n,t,i){return s(Math.floor(e(n,t))+(i||0),t)},v=function(n,t){for(var u={},r,f=n.length,i=0;i0?u.canvasLength/o:u.canvasLength,u.interval=e,n._categoriesToPoints=v(f,u.invert);break;default:t=i.dataType==="datetime"?r.datetimeTranslatorFunctions:r.numericTranslatorFunctions}n.translate=t.translate,n.untranslate=t.untranslate,n.getInterval=t.getInterval},_getCanvasBounds:function(n){var t=n.min,i=n.max,r=n.minVisible,o=n.maxVisible,s,h,a=n.base,y=u.isDate(i)||u.isDate(t),v=y?l:c;return f(t)&&f(i)&&t.valueOf()===i.valueOf()&&(s=t.valueOf()-v,h=i.valueOf()+v,y?(t=new Date(s),i=new Date(h)):(t=t!==0?s:0,i=h)),f(r)&&f(o)&&r.valueOf()===o.valueOf()&&(s=r.valueOf()-v,h=o.valueOf()+v,y?(r=si.valueOf()?i:new Date(h)):(r!==0&&(r=si?i:h)),n.axisType==="logarithmic"&&(o=e(o,a),r=e(r,a),t=e(t,a),i=e(i,a)),{base:a,rangeMin:t,rangeMax:i,rangeMinVisible:r,rangeMaxVisible:o}},_prepareCanvasOptions:function(){var t=this,u,f,e,s,i=t._businessRange,n=t._canvasOptions=t._getCanvasBounds(i),r;return t._options.direction==="horizontal"?(n.startPoint=t._canvas.left,r=t._canvas.width,n.endPoint=t._canvas.width-t._canvas.right,n.invert=i.invert):(n.startPoint=t._canvas.top,r=t._canvas.height,n.endPoint=t._canvas.height-t._canvas.bottom,n.invert=!i.invert),t.canvasLength=n.canvasLength=n.endPoint-n.startPoint,n.rangeDoubleError=Math.pow(10,o(n.rangeMax-n.rangeMin)-o(r)-2),n.ratioOfCanvasRange=n.canvasLength/(n.rangeMaxVisible-n.rangeMinVisible),n},updateBusinessRange:function(n){this._businessRange=y(n),this.reinit()},getBusinessRange:function(){return this._businessRange},getCanvasVisibleArea:function(){return{min:this._canvasOptions.startPoint,max:this._canvasOptions.endPoint}},translateSpecialCase:function(n){var f=this,e=f._canvasOptions,i=e.startPoint,r=e.endPoint,u=f._businessRange,s=u.minVisible,h=u.maxVisible,o,t=null;switch(n){case"canvas_position_default":s<=0&&h>=0?t=f.translate(0):(o=u.invert^(s<=0&&h<=0),t=f._options.direction==="horizontal"?o?r:i:o?i:r);break;case"canvas_position_left":case"canvas_position_top":t=i;break;case"canvas_position_center":case"canvas_position_middle":t=i+e.canvasLength/2;break;case"canvas_position_right":case"canvas_position_bottom":t=r;break;case"canvas_position_start":t=u.invert?r:i;break;case"canvas_position_end":t=u.invert?i:r}return t},_calculateProjection:function(n){var t=this._canvasOptions;return t.invert?t.endPoint-n:t.startPoint+n},_calculateUnProjection:function(n){var t=this._canvasOptions;return t.invert?t.rangeMaxVisible.valueOf()-n:t.rangeMinVisible.valueOf()+n}})}(jQuery,DevExpress),function(n){var i=window.isFinite;n.viz.core.Rectangle=n.Class.inherit({ctor:function(n){var t=this;n=n||{},t.left=Number(n.left)||0,t.right=Number(n.right)||0,t.top=Number(n.top)||0,t.bottom=Number(n.bottom)||0},width:function(){return this.right-this.left},height:function(){return this.bottom-this.top},horizontalMiddle:function(){return(this.left+this.right)/2},verticalMiddle:function(){return(this.top+this.bottom)/2},raw:function(){var n=this;return{left:n.left,top:n.top,right:n.right,bottom:n.bottom}},clone:function(){return new this.constructor(this.raw())},move:function(n,t){var r=this.clone();return i(n)&&i(t)&&(r.left+=Number(n),r.right+=Number(n),r.top+=Number(t),r.bottom+=Number(t)),r},inflate:function(n,t){var r=this.clone();return i(n)&&i(t)&&(r.left-=Number(n),r.right+=Number(n),r.top-=Number(t),r.bottom+=Number(t)),r},scale:function(n){var t=this;return n>0?t.inflate(t.width()*(n-1)/2,t.height()*(n-1)/2):t.clone()}})}(DevExpress),function(n,t,i){var r=t.viz,u=r.core,e=0,f=function(n){for(var i=r.themes,t=0;t=0?o:0},u.registerTheme=function(t,i){var f,e,o=r.themes;t&&t.name&&u.findTheme(t.name)&&(f=u.findTheme(i),f?(e=n.extend(!0,{},f,t),o.push(e)):o.push(t))}}(jQuery,DevExpress),function(n,t,i){function a(n){if(n===i)return s;n=String(n).toLowerCase(),s=n in r?n:"default"}function h(n,t){var i,f;if(u(n))i=n;else{if(t=t||{},f=t.type||"simpleSet",l(n)){var o=n.toLowerCase(),h=r[o],c=t.theme&&r[o+"_"+e(t.theme).toLowerCase()];i=c&&c[f]||h&&h[f]}i||(i=r[s][f])}return i?i.slice(0):null}function v(n,t,f){var s={},h;u(t)?s.simpleSet=t.slice(0):t&&(s.simpleSet=u(t.simpleSet)?t.simpleSet.slice(0):i,s.indicatingSet=u(t.indicatingSet)?t.indicatingSet.slice(0):i,s.gradientSet=u(t.gradientSet)?t.gradientSet.slice(0):i),(s.simpleSet||s.indicatingSet||s.gradientSet)&&(h=e(n).toLowerCase(),f&&(h=h+"_"+e(f).toLowerCase()),o(r[h]=r[h]||{},s))}function y(n){var t=0;this.next=function(){var i=n[t++];return t==n.length&&this.reset(),i},this.reset=function(){t=0}}function c(n,t){t=t||{},this._originalPalette=h(n,t);var i=t?t.stepHighlight||0:0;this._paletteSteps=new y([0,i,-i]),this._resetPalette()}function p(n,t){var i=new f(n).alter(t),r=w(i);return(r>200||r<55)&&(i=new f(n).alter(-t/2)),i.toHex()}function w(n){return n.r*.3+n.g*.59+n.b*.11}function b(n,t){var i=h(n,{type:"gradientSet"});i=t>0?k(i[0],i[1],t):[],this.getColor=function(n){return i[n]||null}}function k(n,t,i){var e=new f(n),o=new f(t);if(i===1)return[e.blend(o,.5).toHex()];var u=[],h=1/(i-1),r,s=i;for(u.push(0),r=1;r=n._palette.length&&n._resetPalette(),n._palette[n._currentColor++]},_resetPalette:function(){var n=this,r,t;if(n._currentColor=0,r=n._paletteSteps.next(),t=n._originalPalette,r)for(var u=n._palette=[],i=0,f=t.length;i0&&f.length>1);return u}}}(jQuery,DevExpress),function(n,t){var u=t.viz,f=u.core,e={easing:"linear",duration:150},i={x:-1e4,y:-1e4},r=function(n,t,i,r){var u=n.animation;u&&(u.options.complete=null,u.stop()),i?n.animate(t,{complete:r}):(n.applySettings(t),r&&r())};f.LoadIndicator=t.Class.inherit({ctor:function(t,i){var r=this;r._$widgetContainer=n(i),r._$container=n("
",{css:{position:"relative",height:0,padding:0,margin:0,border:0}}).appendTo(r._$widgetContainer),r._updateContainer(),r.applyOptions(t),r._endLoadingCompleteHandler=function(){r._endLoad=!1,r._externalComplete&&r._externalComplete(),r._externalComplete=null,r._onCompleteAction&&r[r._onCompleteAction](),r._onCompleteAction=null},r._$container.hide()},_updateRenderer:function(n,t,i){return this._renderer?this._renderer.recreateCanvas(n,t):this._$container.get(0)&&(this._renderer=new u.renderers.Renderer({width:n,height:t,animation:e}),this._renderer.draw(this._$container[0])),this._renderer&&this._renderer.getRoot().applySettings({style:{position:"absolute",top:i,left:0}}),this._renderer},applyOptions:function(n,t,i){var r=this._pane;r&&n&&(r.rect.applySettings({fill:n.backgroundColor}),r.text.applySettings({font:n.font,text:n.text})),this.isShown&&(t||i)&&this._updateContainer(t,i)},_draw:function(){var n,t=this._renderer;t&&(n=this._pane={},n.rect=t.createRect(0,0,0,0,0,{opacity:0}).append(),n.text=t.createText("",0,0,{align:"center",translateX:i.x,translateY:i.y}).append())},_updateContainer:function(n,t){var i=this,r=i._$widgetContainer,u;n=n||r.width(),t=t||r.height(),u=r.get(0)?r.offset().top-i._$container.offset().top:-t,i._updateRenderer(n,t,u),i._pane?(i._pane.rect.applySettings({width:n,height:t}),i._pane.text.move(n/2,t/2)):i._draw()},dispose:function(){this._$widgetContainer=null,this._$container.remove().detach(),this._$container=null,this._renderer.dispose(),this._renderer=null,this._pane=null},toForeground:function(){this._$container.appendTo(this._$widgetContainer)},show:function(n,t){if(this._endLoad){this._onCompleteAction="show";return}this._$container.show(),this._updateContainer(n,t),r(this._pane.rect,{opacity:.85},!0),this.isShown=!0},endLoading:function(n,t){(this._externalComplete=n,this._endLoad)||(this.isShown?(this._endLoad=!0,r(this._pane.rect,{opacity:1},!t,this._endLoadingCompleteHandler)):n&&n())},hide:function(){var n=this;if(this._endLoad){this._onCompleteAction="hide";return}this.isShown&&(this._pane.text.move(i.x,i.y),r(n._pane.rect,{opacity:0},!0,function(){n._$container.hide()}),this.isShown=!1)}})}(jQuery,DevExpress),function(n,t,i){var r=20,o=10,v=t.formatHelper,y=15,l=Math.max,p=Math.round,a=t.utils.isFunction,u=t.utils.isDefined,h=n.extend,w={argument:["argumentFormat","argumentPrecision"],percent:["percent","percentPrecision"],value:["format","precision"]},s={visibility:"visible"},c={visibility:"hidden"},f="left",e="right";t.viz.core.Tooltip=t.Class.inherit({ctor:function(t,i,r){this._state={},this._options={},this._renderer=r,this._group=i,this._cloud=r.createArea(),this._textGroup=r.createGroup(),n.isEmptyObject(t)||this.update(t),this._createTextContent()},dispose:function(){return this._shadow.dispose(),this._shadow=null,this._cloud=null,this._text=null,this._group=null,this._options=null,this._renderer=null,this._tooltipTextArray=null,this._textGroup=null,this},update:function(n){n=n||{};var t=this,u=t._group,r=n.shadow||{},f=t._shadow=t._shadow||t._renderer.createFilter("shadow").applySettings({width:"200%",height:"200%",color:r.color,opacity:r.opacity,dx:r.offsetX,dy:r.offsetY,blur:r.blur,x:"-50%",y:"-50%"}),i=n.border,e=h({opacity:n.opacity,filter:f.append().ref},i&&i.visible?{strokeWidth:i.width,stroke:i.color,strokeOpacity:i.opacity,dashStyle:i.dashStyle}:{strokeWidth:null,stroke:null}),o=h({},{align:"center",font:n.font},n.text);return t._options=n,t.setSize(n.canvasWidth,n.canvasHeight),t._customizeTooltip=a(n.customizeTooltip)?n.customizeTooltip:null,!t._customizeTooltip&&a(n.customizeText)&&(t._customizeTooltip=function(){return{text:n.customizeText.apply(this,arguments)}}),t._cloud.applySettings(e).append(u),t._text&&n.font&&t._text.applySettings({font:{size:n.font.size}}),t._textGroup.applySettings(o).append(u),t.hide(),t},formatValue:function(n,t){var i=w[t||"value"],r=i[0]in this._options?this._options[i[0]]:t;return v.format(n,r,this._options[i[1]]||0)},prepare:function(t,i,r){var e,f;return this._state=this._state||{},r=r||"valueText",e=t[r]||"",h(this._state,i),this._customizeTooltip?(f=this._customizeTooltip.call(t,t),f=n.isPlainObject(f)?f:{},"text"in f?this._state.text=u(f.text)?String(f.text):"":(n.isArray(e)&&(this._options._justify=!0,this._createTextContent(),e=e.join("
")),this._state.text=e),this._state.color=f.color||this._options.color):(this._state.text=e,this._state.color=this._options.color),this._options._justify&&(this._state.text=this._state.text.split("
")),this._state.visibility!=s||!this._state.text||this.show(),!!this._state.text},enabled:function(){return!!this._options.enabled},formatColorTooltip:function(n){return n._customizeTooltip&&n._customizeTooltip.call(this,this)},_getData:function(){var n=this,o=n._state.x,c=n._state.y,w=o,l=c,b="center",v=[],a=n._state.textBBox,s=n._options,y=s.paddingLeftRight,d=s.paddingTopBottom,h=s.arrowLength>0?s.arrowLength:0,p=s.cloudHorizontalPosition,k=s.cloudVerticalPosition,g=p!==i&&p!==null,nt=k!==i&&k!==null,r=a.width+y*2,t=a.height+d*2,u;return u=n._checkWidthText(r,t),u&&(n._state.textBBox=a=u.bbox,r=u.cloudWidth,t=u.cloudHeight,y=u.paddingLeftRight,d=u.paddingTopBottom),(g?p===e:r/2>o)?(v=n._setArrowLeft(r,t,h,o,c),b=f,w+=y):(g?p===f:o+r/2>n._canvasWidth)?(v=n._setArrowRight(r,t,h,o,c),b=e,w-=y):v=n._setArrowCenter(r,t,h,o,c),(nt?k==="top":t+hn._canvasHeight?(i=(n._canvasHeight-t.y)/t.height,n._group.applySettings({scale:i,translateX:n._state.x*(1-i),translateY:n._state.y*(1-i)})):n._group.applySettings({scale:1,translateX:0,translateY:0})},_createTextContent:function(){var n=this,t=n._options,r;n._textGroup.clear(),n._text=null,t._justify||(r=t.font&&t.font.size,n._text=n._renderer.createText(i,0,0,{font:{size:r}}).append(n._textGroup))},_getTextContentParams:function(){var n=this,t,r,i,u=n._state.text,e=u.length,f={width:[],height:[]};for(n._tooltipTextArray=[],t=0;t0?a:0)+o._lineHeight,r,l,u,h=o._options._rtl;for(r=i===f?n:i===e?n-c:p(n-c/2),l=r+c,u=s.length-1;u>=0;u-=2)s[u].applySettings({x:h?r:l,y:t,align:h?f:e}),s[u-1]&&s[u-1].applySettings({x:h?l:r,y:t,align:h?e:f}),t-=v},_calculateTextContent:function(){for(var i=this,f=i._state.text,e=f.length,r,u=[],t=i._getTextContentParams(),n=0;n")===-1&&r.indexOf(" ")!==-1){for(a=l(i,this._canvasWidth-i,2*Math.min(i,this._canvasWidth-i)),h=r.length*a/e.width,u=r.substr(0,~~h).lastIndexOf(" "),u===-1&&(u=r.substr(0).indexOf(" ")),c=r.substr(u+1).length,this._state.text=r.substr(0,u)+"
";h<=c;)if(f=r.substr(u+1,~~h).lastIndexOf(" "),f===-1&&(f=r.substr(u+1).indexOf(" ")),f!==-1)this._state.text+=r.substr(u+1,f)+"
",c=r.substr(u+1+f).length,u+=f+1;else break;this._state.text+=r.substr(u+1),this._text.updateText(this._state.text),e=this._text.getBBox(),n=e.width+o*2,t=e.height+s*2}return n>i&&i+n>this._canvasWidth&&(n/2>i||i+n/2>this._canvasWidth)&&(o=5,s=5,n=e.width+2*o,t=e.height+2*s),{bbox:e,cloudWidth:n,cloudHeight:t,paddingTopBottom:s,paddingLeftRight:o}}}})}(jQuery,DevExpress),function(n,t){function d(n,i,r,e){if(i){var o=i[r].hatching.direction,s,h=i[r].fill;return e=h===f?e:h,o=!o||o===f?u:o,s=t.extend({},i[r].hatching,{direction:o,step:nt,width:g}),n.createPattern(e,s).append().id}}function tt(n){var r=0,u=0,i;return t.each(n,function(n,t){i=t.getBBox(),i.width>r&&(r=i.width),i.height>u&&(u=i.height)}),{width:r,height:u}}var h=10,y=Math,r=y.round,c=y.ceil,p=y.floor,l="center",u="right",e="left",a="top",s="bottom",v="horizontal",w="vertical",b="inside",k="outside",f="none",o=DevExpress.viz.core.utils.decreaseGaps,g=2,nt=5;n.viz.core.Legend=n.Class.inherit({ctor:function(n,t,i,r){var u=this;u._renderer=i,u._legendGroup=r,u._markersPatternsIds=[],u._data=n,u._init(t)},_init:function(n){if(n){var i=this,r;i._parseMargins(n),i._parseAlignments(n),n.orientation=(n.orientation||"").toLowerCase(),n.orientation!==w&&n.orientation!==v&&(n.horizontalAlignment===l&&(n.orientation=v),(n.horizontalAlignment===u||n.horizontalAlignment===e)&&(n.orientation=w)),n.itemTextPosition=n.itemTextPosition?n.itemTextPosition:n.orientation===v?s:u,n.position=(n.position||"").toLowerCase(),n.position!==k&&n.position!==b&&(n.position=k),n.hoverMode=(n.hoverMode||"").toLowerCase(),n.customizeText=t.isFunction(n.customizeText)?n.customizeText:function(){return this.seriesName},i._options=n,i._trackerGroup||(i._trackerGroup=i._renderer.createGroup({"class":"dxc-legend-trackers",stroke:f,fill:"grey",opacity:.0001}))}},_parseMargins:function(n){n.margin>=0?(n.margin=Number(n.margin),n.margin={top:n.margin,bottom:n.margin,left:n.margin,right:n.margin}):n.margin={top:n.margin.top>=0?Number(n.margin.top):h,bottom:n.margin.bottom>=0?Number(n.margin.bottom):h,left:n.margin.left>=0?Number(n.margin.left):h,right:n.margin.right>=0?Number(n.margin.right):h}},_parseAlignments:function(n){n.horizontalAlignment=(n.horizontalAlignment||"").toLowerCase(),n.horizontalAlignment!==l&&n.horizontalAlignment!==u&&n.horizontalAlignment!==e&&(n.horizontalAlignment=u),n.verticalAlignment=(n.verticalAlignment||"").toLowerCase(),n.verticalAlignment!==a&&n.verticalAlignment!==s&&(n.horizontalAlignment===l&&(n.verticalAlignment=s),(n.horizontalAlignment===u||n.horizontalAlignment===e)&&(n.verticalAlignment=a))},update:function(n,t){return this._data=n,this.boundingRect={width:0,height:0,x:0,y:0},this._init(t),this},setSize:function(n){return this._size=n,this},draw:function(){if(!this._options)return this;var n=this,s=n._renderer,h=n._options,i=n._data,r=i.length,l=[],t,a,c,u,v=[],y,p=new Array(r),e,o=h.border,b=o.visible&&o.width&&o.color&&o.color!==f,w=new Array(r);if(!(h.visible&&i&&r))return n._disposeTrackers(),n;for(n._cleanLegendGroups(),y=n._insideLegendGroup=s.createGroup().append(n._legendGroup),n._createBackground(b),t=0;tt||n<1)&&(n=t),n}var o=this,g=u.itemTextPosition,v=o._size,h,l=o._getRowsColumns(i),f=l.rows,e=l.columns,s=u.margin,nt=r?u.paddingLeftRight:0,it=r?u.paddingTopBottom:0,y=v.width-s.left-s.right-2*nt,w=v.height-s.top-s.bottom-2*it,b,rt,k=tt(n),a=function(i,r){b=o._getDataRowsColumns(n,r,i),o._moveItems(b,n,g,t,u)};a(f,e),h=o._insideLegendGroup?o._insideLegendGroup.getBBox():{},l.autoEdit&&(f===1?h.width>y&&e>1&&(e=p(y/(k.width+u.columnItemSpacing))||1,e=d(e,i),f=c(i/e),a(f,e)):e===1&&h.height>w&&f>1&&(f=p(w/(k.height+u.rowItemSpacing))||1,f=d(f,i),e=c(i/f),a(f,e))),o._rowsCountDrawed=f,o._columnsCountDrawed=e},_moveItems:function(n,t,i,r,f){var tt=this,w,v,k,d,y,p,o,s=0,h=0,c,l=f.columnItemSpacing,a=f.rowItemSpacing,it=f.equalColumnWidth,rt=tt._renderer,g=[],nt=0,b=0;for(k=n.rows,d=n.cols,b=n.maxHeightRow,nt=n.maxWidthColumn,g=n.maxWidthPerColumn,w=0;w=0&&(n.height=o(u,["top","bottom"],n.height),r.border.visible&&(n.height=2*o(r,["paddingTopBottom"],n.height/2)),i._rowsCountDrawed-1&&(n.height=(i._rowsCountDrawed-1)*o(r,["rowItemSpacing"],n.height/(i._rowsCountDrawed-1)))),n.width>=0&&(n.width=o(u,["left","right"],n.width),r.border.visible&&(n.width=2*o(r,["paddingLeftRight"],n.width/2)),i._columnsCountDrawed-1&&(n.width=(i._columnsCountDrawed-1)*o(r,["columnItemSpacing"],n.width/(i._columnsCountDrawed-1)))),i._insideLegendGroup&&(n.height>0||n.width>0?(i._options._incidentOccured("W2104"),i._insideLegendGroup.remove(),i._insideLegendGroup=null,i._trackerGroup&&i._trackerGroup.clear()):i._locateElements(r))},getTrackerGroup:function(){return this._trackerGroup},getActionCallback:function(n){var i=this;return i._options.visible?function(t){var u=n.type,f=u?!0:!1,r=u||n.series.type;(f||r==="pie"||r==="doughnut"||r==="donut")&&i[t]&&i[t](n.index)}:t.noop},getLayoutOptions:function(){var n=this._options,t=this._insideLegendGroup?this.boundingRect:{width:0,height:0,x:0,y:0};return n?(t.verticalAlignment=n.verticalAlignment,t.horizontalAlignment=n.horizontalAlignment,t.cutLayoutSide=n.orientation==="horizontal"?n.verticalAlignment:n.horizontalAlignment==="center"?n.verticalAlignment:n.horizontalAlignment,t):null},shift:function(n,t){var i=this,r={},u=i.getLayoutOptions();r.translateX=n-u.x,r.translateY=t-u.y,i._insideLegendGroup&&i._insideLegendGroup.applySettings(r),i._trackerGroup&&i._trackerGroup.applySettings(r)},getPosition:function(){return this._options.position},dispose:function(){var n=this;return n._disposeTrackers(),n._legendGroup=null,n._trackerGroup=null,n._insideLegendGroup=null,n._renderer=null,n._options=null,n._data=null,n}})}(DevExpress,jQuery),function(n,t,i){var k=t.viz.core,s=t.utils,f=s.isDefined,a=s.isDate,h=s.getLog,d=s.raiseTo,rt=1,ut=6e4,r="min",u="max",e="minVisible",o="maxVisible",g="minValueMargin",nt="maxValueMargin",c="categories",v="keepValueMargins",p="base",w="axisType",b=function(n,t,i){return d(Math.floor(h(n,t))+(i||0),t)},l=function(n,t){return tn},tt=function(n,t,i,r){var u=f(t);f(n)?u&&r(n,t)&&i(t):u&&i(t)},it=function(n,t,i,r,u){return n=n.valueOf()+r*i*t,u?new Date(n):n};k.Range=function(t){t&&n.extend(this,t)},n.extend(k.Range.prototype,{dispose:function(){this[c]=null},addRange:function(n){var t=this,d=t[c],ot,h=n[c],a,it,ft,ut,et=function(i){var r=i+"Priority",u=(t[r]||0)-(n[r]||0);((t[i]||0)o/(e-o)&&(n[r]=0,l=!0),e>=0&&o>=0&&s>e/(o-e)&&(n[t]=0,c=!0)),f(o)&&!l&&h&&(n[r]=it(o,h,u,1,i)),f(e)&&!c&&s&&(n[t]=it(e,s,u,-1,i))},c=function(t,i){n[t]=f(n[t])?n[t]:n[i]},l=function(i){if(f(n[i])){var r=b(n[i],t);h(n[i]/r,t)<.1&&n.alwaysCorrectMin&&!n[v]?n[i]=b(n[i],t,-1):n.alwaysCorrectMin&&!n[v]?n[i]=r:h(n[i]/r,t)<.5&&(n[i]=r)}},y=function(i){if(f(n[i])){var r=b(n[i],t);h(n[i]/r,t)>.5&&(n[i]=d(Math.ceil(h(n[i],t)),t))}},k=function(t,i,r){(!f(n[t])||r)&&(n[t]=n[i])};return n[w]==="logarithmic"&&n[r]!==n[u]?(l(r),y(u),n.isValueRange&&n[e]!==n[o]&&(l(e),y(o)),k(e,r,n[e]n[u])):(c(e,r),c(o,u),s(r,u,n[u]-n[r]),s(e,o,n[o]-n[e])),this},correctValueZeroLevel:function(){function t(t,i){n[t]<0&&n[i]<0&&(n[i]=0),n[t]>0&&n[i]>0&&(n[t]=0)}var n=this;return a(n[u])||a(n[r])?n:(t(r,u),t(e,o),n)}})}(jQuery,DevExpress),function(n){n.viz.core.series=n.viz.core.series||{},n.viz.core.series.helpers=n.viz.core.series.helpers||{},n.viz.core.series.helpers.consts={events:{mouseover:"mouseover",mouseout:"mouseout",mousemove:"mousemove",touchstart:"touchstart",touchmove:"touchmove",touchend:"touchend",mousedown:"mousedown",mouseup:"mouseup",click:"click",selectSeries:"selectseries",deselectSeries:"deselectseries",selectPoint:"selectpoint",deselectPoint:"deselectpoint",showPointTooltip:"showpointtooltip",hidePointTooltip:"hidepointtooltip"},states:{hover:"hover",normal:"normal",selected:"selected",normalMark:0,hoverMark:1,selectedMark:2},animations:{showDuration:{duration:400},hideGroup:{opacity:.0001},showGroup:{opacity:1}}}}(DevExpress),function(n,t){var e=t.utils,r=Math.round,u=Math.abs,f=Math.pow;t.viz.core.series.helpers.SeriesFamily=t.Class.inherit(function(){var y=function(t){var i=this,r=n.noop;n.extend(i,t),i.type=i.type.toLowerCase(),i.series=[];switch(i.type){case"bar":i.adjustSeriesDimensions=c,i.adjustSeriesValues=r,i.updateSeriesValues=d;break;case"rangebar":i.adjustSeriesDimensions=c,i.adjustSeriesValues=r,i.updateSeriesValues=r;break;case"fullstackedbar":i.fullStacked=!0,i.adjustSeriesDimensions=l,i.adjustSeriesValues=o,i.updateSeriesValues=v;break;case"stackedbar":i.adjustSeriesDimensions=l,i.adjustSeriesValues=o,i.updateSeriesValues=v;break;case"fullstackedarea":case"fullstackedline":i.fullStacked=!0,i.adjustSeriesDimensions=r,i.adjustSeriesValues=o,i.updateSeriesValues=r;break;case"stackedarea":case"stackedline":i.adjustSeriesDimensions=r,i.adjustSeriesValues=o,i.updateSeriesValues=r;break;case"candlestick":case"stock":i.adjustSeriesDimensions=g,i.adjustSeriesValues=r,i.updateSeriesValues=r;break;case"bubble":i.adjustSeriesDimensions=nt,i.adjustSeriesValues=r,i.updateSeriesValues=r;break;default:i.adjustSeriesDimensions=r,i.adjustSeriesValues=r,i.updateSeriesValues=r}},p=function(){this.series=null,this.translators=null},w=function(t){var u=this,r,i;for(n.isArray(t)||(t=[t]),i=0;i1?(o=r((i*.7-s*u)/(u-1)),o<1&&(o=1)):o=0:o&&!s?(s=r((i*.7-o*(u-1))/u),s<2&&(s=2)):o||s||(u>1?(o=r(i*.7/u*.2),o<1&&(o=1)):o=0,s=r((i*.7-o*(u-1))/u),s<2&&(s=2)),s*u+o*(u-1)>i&&(o=r((i*.7-s*u)/(u-1)),o<1&&(o=1,g=r((i*.7-o*(u-1))/u))),c=u/2,a=0;a=0?"positive":"negative",f;t[h][s]=t[h][s]||{},f=t[h][s],f[e.valueOf()]?(u[n].correctValue(f[e.valueOf()]),f[e.valueOf()]+=o):(f[e.valueOf()]=o,u[n].resetCorrection())})}),b(u,t,r.fullStacked)},b=function(t,i,r){n.each(t,function(t,u){var f=u.getPoints();n.each(f,function(n,t){var h=t.value,e=u.getStackName?u.getStackName():"default",o=h>=0?"positive":"negative",s;i[o][e]=i[o][e]||{},s=i[o][e],f[n].setPercentValue(s[t.argument.valueOf()],r)})})},a=function(n,t,i){var e=n.rotated,r=e?t.x:t.y,f=r.getCanvasVisibleArea();if(i)return u(r.untranslate(f.min)-r.untranslate(f.min+i))},v=function(t){var r=this,o=i(r),f={positive:{},negative:{}};n.each(o,function(i,o){var s=o.getPoints(),h=o.getOptions().minBarSize;n.each(s,function(n,i){var y=i.value,p=i.minValue,w=i.argument,c,b,l,k=o.getStackName?o.getStackName():"default",d=y>=0?"positive":"negative",v;l=a(r,t,h),v=f[d][k]=f[d][k]||{},v[w.valueOf()]?(p=e.isNumber(p)?p:0,b=u(p-y),c=l&&b=0?"positive":"negative",o;r[u][e]=r[u][e]||{},o=r[u][e],f[n].value=f[n].value/o[s.valueOf()]||0,t.utils.isNumber(f[n].minValue)&&(f[n].minValue=f[n].minValue/o[s.valueOf()]||0)})})},d=function(t){var i=this;n.each(i.series,function(r,f){var e=f.getPoints(),o=f.getOptions().minBarSize;n.each(e,function(n,r){var s=r.value,h,c,f;f=a(i,t,o),c=u(s),h=f&&c=0?f:-f:s,e[n].value=h})})},g=function(n){var t=this,r=i(t);s(r,h(t,n),r.length,!0,function(n){return n})},h=function(n,t){var i=n.rotated?t.y:t.x;return n.interval=i.getInterval()},nt=function(t){for(var s=this,c=i(s),l,v=t.x.getCanvasVisibleArea(),y=t.y.getCanvasVisibleArea(),p=Math.min(v.max-v.min,y.max-y.min),w=f(s.minBubbleSize,2),nt=f(p*s.maxBubbleSize,2),tt=(p*s.maxBubbleSize+s.minBubbleSize)/2,e=Infinity,h=0,a,b,k,d,g,o=0;ot.size?h:t.size,e=e0?r[u-1]:null),u++)}),t._points=t._originalPoints=r,t._correctPointsLength(u,r),t._endUpdateData()},getTeamplatedFields:function(){var n=this,t=n.getValueFields(),r=[];return t.push(n.getTagField()),i(t,function(t,i){var u={};u.teamplateField=i+n.name,u.originalField=i,r.push(u)}),r},resamplePoints:function(n,t,r){var u=this,o=u.getAllPoints(),l=u._options.rotated?n.y:n.x,f,e,c,h;o.length&&(i(o,function(n,i){f=i.argument-t<=0?n:f,e||(e=i.argument-r>0?n:null)}),f=f?f:1,e=s.isDefined(e)?e:o.length-1,t=o[f-1].argument,r=o[e].argument,c=u._getPointSize(),h=u.argumentAxisType!=="discrete"&&u.valueAxisType!=="discrete"?u._getTicksForAggregation(t,r,l.canvasLength,c):l.canvasLength/c,u._points=u._resample(h,h.tickInterval))},_removeOldSegments:function(n){var t=this;i(t._graphics.splice(n,t._graphics.length)||[],function(n,i){t._removeElement(i)}),t._trackers&&i(t._trackers.splice(n,t._trackers.length)||[],function(n,t){t.remove()})},draw:function(n,t,i,r){var u=this,f;u._oldClearingAnimation&&t&&u._firstDrawing?(f=function(){u._draw(n,!0,i)},u._oldClearingAnimation(n,f)):u._draw(n,t,i,r)},_clearSeries:function(){this._deleteElementsGroup(),this._deleteBordersGroup(),this._deleteTrackers(),this._graphics=[],this._trackers=[]},_draw:function(n,t,r,u){var f=this,h=f._points||[],e=[],s=0,o=f._firstDrawing,c,l;if(f._graphics=f._graphics||[],f._graphics=f._graphics||[],f._prepareSeriesToDrawing(),f._visible)f._group.append(f._options.seriesGroup);else{t=!1,this._group.detach();return}f.translators=n,f._createGroups(t,undefined,o),f._segments=[],c=f._markersGroup,l=f._labelsGroup,f._drawedPoints=[],f._firstDrawing=h.length?!1:!0,i(this._patterns||[],function(n,t){t.append()}),i(h,function(i,r){r.translate(n),r.hasValue()?(f._drawPoint(r,c,l,t,o),e.push(r)):e.length&&(f._drawSegment(e,t,s++),e=[])}),e.length&&f._drawSegment(e,t,s++),f._removeOldSegments(s),f._defaultSegments=f._generateDefaultSegments(),f._adjustLabels(o),r&&f.hideLabels(),t&&f._animate(o),f.isSelected()?f._changeStyle(u,y):this.isHovered()&&this._changeStyle(u,a)},drawTrackers:function(){var n=this,t=n._trackers=n._trackers||[],r=n._trackersGroup=n._trackersGroup||n._renderer.createGroup(),u=n._markerTrackerGroup=n._markerTrackerGroup||n._renderer.createGroup();if(n.isVisible())r.append(n._options.trackersGroup),u.append(n._options.markerTrackerGroup);else{r.detach(),u.detach();return}i(n._segments||[],function(i,u){t[i]?n._updateTrackerElement(u,t[i]):(t[i]=n._drawTrackerElement(u).append(r),t[i].data({series:n}))}),i(n.getVisiblePoints(),function(t,i){i.drawTracker(n._renderer,u)}),n._applyTrackersClippings()},_checkType:function(n){return!!u.core.series.mixins[n][this.type]},_resetType:function(n,t){var r=this;n&&i(u.core.series.mixins[t][n],function(n){delete r[n]})},_setType:function(n,t){var r=this;i(u.core.series.mixins[t][n],function(n,t){r[n]=t})},_setSelectedState:function(n,t,i){this.lastSelectionMode=t=(t||this._options.selectionMode).toLowerCase(),n&&!this.isSelected()?(this.fullState=this.fullState|h,this._changeStyle(i,y)):!n&&this.isSelected()&&(this.fullState=this.fullState&~h,this.isHovered()?this._changeStyle(i,a):this._changeStyle(i,"resetItem"))},_setHoverState:function(n,t,i){this.lastHoverMode=t=(t||this._options.hoverMode).toLowerCase(),n&&!this.isHovered()?(this.fullState=this.fullState|c,this.isSelected()||this._changeStyle(i,a)):!n&&this.isHovered()&&(this.fullState=this.fullState&~c,this.isSelected()||this._changeStyle(i,"resetItem"))},setHoverState:function(n,t){this._setHoverState(!0,n,t)},releaseHoverState:function(n,t){this._setHoverState(!1,n,t)},setSelectedState:function(n,t){this._setSelectedState(!0,n,t)},releaseSelectedState:function(n,t){this._setSelectedState(!1,n,t)},isFullStackedSeries:function(){return this.type.indexOf("fullstacked")===0},isStackedSeries:function(){return this.type.indexOf("stacked")===0},isFinancialSeries:function(){return this.type==="stock"||this.type==="candlestick"},_changeStyle:function(n,t){var u=this._calcStyle(),e;u.mode!==b&&(n&&n(t),(u.mode===r||u.mode===f)&&(e=u.pointStyle,i(this._points||[],function(n,t){t.isSelected()||t.applyStyle(e)})),this._applyStyle(u.series))},_calcStyle:function(){var t=this._styles,i=!1,n;switch(this.fullState&3){case 0:n={pointStyle:"normal",mode:r,series:t.normal};break;case 1:n={pointStyle:"hover",mode:this.lastHoverMode,series:t.hover};break;case 2:n={pointStyle:"selection",mode:this.lastSelectionMode,series:t.selection};break;case 3:i=this.lastSelectionMode===k&&(this.lastHoverMode===r||this.lastHoverMode===f),n={pointStyle:i?"normal":"selection",mode:i?r:this.lastSelectionMode,series:t.selection}}return n},_getMainAxisName:function(){return this._options.rotated?"X":"Y"},areLabelsVisible:function(){return!w(this._options.maxLabelCount)||this._points.length<=this._options.maxLabelCount},getLabelVisibility:function(){return this.areLabelsVisible()&&this._options.label&&this._options.label.visible},_customizePoint:function(n){var t=this,l=t._options,s=t._options.customizePoint,i,u,r,f,h=t._options.customizeLabel,e,c;return h&&h.call&&(i=o({seriesName:t.name,series:t},n),r=h.call(i,i),e=r&&!v(r),r=e?o(!0,{},l.label,r):null),s&&s.call&&(i=i||o({seriesName:t.name,series:t},n),f=s.call(i,i),c=f&&!v(f)),(e||c)&&(u=t._parsePointOptions(t._preparePointOptions(f),r||l.label),u.styles.useLabelCustomOptions=e,u.styles.usePointCustomOptions=c),u},_getLabelOptions:function(t,i){var r=t||{},u=r.font||{},f=r.border||{},e=r.connector||{},o={align:r.alignment,font:{color:r.backgroundColor==="none"&&u.color.toLowerCase()==="#ffffff"&&r.position!=="inside"?i:u.color,family:u.family,weight:u.weight,size:u.size,opacity:u.opacity},style:r.style},s={fill:r.backgroundColor||i,strokeWidth:f.visible?f.width||0:0,stroke:f.visible&&f.width?f.color:"none",dashStyle:f.dashStyle},h={stroke:e.visible&&e.width?e.color||i:"none",strokeWidth:e.visible?e.width||0:0};return{format:r.format,argumentFormat:r.argumentFormat,precision:r.precision,argumentPrecision:r.argumentPrecision,percentPrecision:r.percentPrecision,customizeText:n.isFunction(r.customizeText)?r.customizeText:undefined,attributes:o,visible:u.size!==0?r.visible:!1,showForZeroValues:r.showForZeroValues,horizontalOffset:r.horizontalOffset,verticalOffset:r.verticalOffset,radialOffset:r.radialOffset,background:s,position:r.position,connector:h,rotationAngle:r.rotationAngle,resolveLabelsOverlapping:this._options.resolveLabelsOverlapping}},show:function(){this._visible||(this._visible=!0,this.hidePointTooltip(),this._options.visibilityChanged())},hide:function(){this._visible&&(this._visible=!1,this.hidePointTooltip(),this._options.visibilityChanged())},hideLabels:function(){i(this._points,function(n,t){t._label.hide()})},_parsePointOptions:function(n,t){var i=this._options,u=this._createPointStyles(n),r;return r=o(!0,{},n,{type:i.type,tag:this.tag,rotated:i.rotated,series:this,styles:u,visibilityChanged:i.visibilityChanged}),r.label=this._getLabelOptions(t,u.normal.fill),r},_resample:function(t,r){var u=this,e=[],h,f=0,o=0,s=u.getAllPoints(),c;return u.argumentAxisType==="discrete"||u.valueAxisType==="discrete"?(r=s.length/t,h=n.map(s,function(n,t){return Math.floor(f)<=t?(f+=r,n):(n.setInvisibility(),null)})):(u._aggregatedPoints=u._aggregatedPoints||[],i(s,function(n,i){switch(u._isInInterval(i.argument,t,f,r)){case!0:e.push(i);break;case"nextInterval":for(var s=u._fusionPoints(e,t[f],f);u._isInInterval(i.argument,t,f,r)==="nextInterval";)f++;e=[],u._isInInterval(i.argument,t,f,r)===!0&&e.push(i),u._createPoint(s,u._aggregatedPoints,o)&&o++}}),e.length&&(c=u._fusionPoints(e,t[f],f),u._createPoint(c,u._aggregatedPoints,o)&&o++),u._correctPointsLength(o,u._aggregatedPoints),u._endUpdateData(),u._aggregatedPoints)},_isInInterval:function(t,i,r,u){var f=i[r],o=i[r+1],e;return(u=n.isNumeric(u)?u:s.convertDateTickIntervalToMilliseconds(u),e=s.isDate(f)?new Date(f.getTime()+u):f+u,t>=f&&te||!i(e)?u:n[r]},et=function(n,t,i,r,u){var f=t[r],e=t[u],o=t.argument,s=i&&i[r],h=i&&i[u],c=i&&i.argument;t.hasValue()&&ot(n,f,e,s,h),d(n,"arg",o,c)},d=function(n,t,r,u,f){var h=t==="arg"?"argument":"value",e=n._rangeData[t],s=e[l],o;n[h+"AxisType"]==="discrete"?(e[c]=e[c]||[],e[c].push(r)):(nt(e,"min","max",r),t==="arg"&&(o=(i(u)?w(f?f(r,u):r-u):o)||s,e[l]=i(o)&&(or.maxVisible||!i(r.maxVisible))&&(r.maxVisible=t))},ot=function(n,t,i){var o=n._rangeData.val,s,h=o[l];n.valueAxisType==="discrete"?(o.categories=o.categories||[],o.categories.push(t,i)):(nt(o,u,r,t),nt(o,u,r,i))},g=function(t){var i={};return n.map(t,function(n){var t=i[n]?null:n;return i[n]=!0,t})},tt=function(n,t){var i=n._rangeData.arg,r,u;r=t.minArgt.minArg?t.maxArg:t.minArg,i.min=ri.max?u:i.max,i.minVisible=r,i.maxVisible=u},it=function(n,t){var r,u;i(t.minVal)&&i(t.maxVal)&&(r=t.minValt.minVal?t.maxVal:t.minVal),i(t.minVal)&&(n._rangeData.val.min=rn._rangeData.val.max?u:n._rangeData.val.max,n._rangeData.val.maxVisible=u)},st=function(n,r){var s=r.adjustOnZoom,u=n._points||[],f,e=!1;o(u,function(i,r){var h=r.argument,o=i>0?u[i-1]:null;s&&h>=n._rangeData.arg.minVisible&&h<=n._rangeData.arg.maxVisible&&(e||(o&&o.hasValue()&&t(n,o.value),e=!0),r.hasValue()&&t(n,r.value),f=i)}),i(f)&&f0?e[i-1]:null;c&&l>=n._rangeData.arg.minVisible&&l<=n._rangeData.arg.maxVisible&&(h||(o&&o.hasValue()&&(t(n,o[u]),t(n,o[f])),h=!0),r.hasValue()&&(t(n,r[u]),t(n,r[f])),s=i)}),i(s)&&s0?i[r-1]:null,s=e&&e.argument;u||d(n,"arg",o,s,t)})},ut=function(n){var t=n._rangeData,i=n._getMainAxisName(),r=i==="X"?"Y":"X";t.arg.categories&&(t.arg.categories=g(t.arg.categories)),t.val.categories&&(t.val.categories=g(t.val.categories)),t.arg.visibleCategories&&(t.arg.visibleCategories=g(t.arg.visibleCategories)),t.val.visibleCategories&&(t.val.visibleCategories=g(t.val.visibleCategories)),t.arg.axisType=n.argumentAxisType,t.arg.dataType=n.argumentType,t.val.axisType=n.valueAxisType,t.val.dataType=n.valueType,t.val.isValueRange=!0},y=function(n,t,i,r){n[t]=i,n[t+"Priority"]=r},ft=function(n,t,i){t===0&&y(n,i,0,k)},ct=function(n,t){var i=n._rangeData.val,o=i[f],s=i[e];t=t||{},i&&(i.alwaysCorrectMin=!0,n._rangeData.arg.keepValueMargins=!0,n.valueAxisType!=="logarithmic"&&n.valueType!=="datetime"&&n.getOptions().showZero!==!1&&(i[f]=o>(t.minVal||0)?t.minVal||0:o,i[e]=s<(t.maxVal||0)?t.maxVal||0:s,i[u]=i[u]>0?0:i[u],ft(i,i[u],a),i[r]=i[r]<0?0:i[r],(i[r]===0||i[r]>0&&i[u]<0)&&(i[a]=i[v],i[a+"Priority"]=i[v+"Priority"]),ft(i,i[r],v)))},lt=function(n){var t=n._rangeData.val,i=b(t);y(t,"minValueMargin",0,p),y(t,"maxValueMargin",0,p),i||(t.min=0)},at=function(n,t,i){var r=t.value,u=t.argument,f=i&&i.value,e=i&&i.argument;t.hasValue()&&d(n,"val",r,f),d(n,"arg",u,e)},vt=function(n){var t=n.getOptions().label;n.areLabelsVisible()&&t&&t.visible&&t.position!=="inside"&&y(n._rangeData.val,"maxValueMargin",h,s)},yt=function(n){var t=n._rangeData.val;n.areLabelsVisible()&&n._options.label.visible&&n._options.label.position!=="inside"&&(y(t,"maxValueMargin",h,s),y(t,"minValueMargin",h,s))},pt=function(n,t,r){var u=n._rangeData.val;n.argumentAxisType!=="discrete"&&t&&i(t.minArg)&&i(t.maxArg)?(u[f]=t.minVal,u[e]=t.maxVal,tt(n,t),st(n,t)):!t&&r&&rt(n,r),ut(n)},wt=function(n,t,r,u,o){var s=n._rangeData.val;n.argumentAxisType!=="discrete"&&t&&i(t.minArg)&&i(t.maxArg)?(s[f]=t.minVal,s[e]=t.maxVal,tt(n,t),ht(n,t,u,o)):!t&&r&&rt(n),ut(n)};return{processRange:at,calculateRangeData:pt,calculateTwoValuesRangeData:wt,addLabelPaddings:vt,addRangeSeriesLabelPaddings:yt,processFullStackedRange:lt,calculateRangeMinValue:ct,processTwoValues:et}}}(jQuery,DevExpress),function(n,t){var o=t.viz,u=o.core.series,r=u.helpers.rangeDataCalculator(),s=n.each,f=n.extend,h=n.map,i=n.noop,e=t.utils.isDefined,c=Math.floor,l=2,a=20,v=400;u.mixins.chart.scatter={_defaultDuration:v,_defaultTrackerWidth:a,_applyStyle:i,_adjustLabels:i,_updateOptions:i,_parseStyle:i,_prepareSegment:i,_drawSegment:i,_generateDefaultSegments:i,_prepareSeriesToDrawing:function(){this._deleteOldAnimationMethods(),this._firstDrawing&&this._clearSeries(),this._disposePoints(this._oldPoints),this._oldPoints=null},_applyTrackersClippings:function(){this._markerTrackerGroup.applySettings({clipId:this._forceClipping?this._paneClipRectID:null})},updateTeamplateFieldNames:function(){var n=this,t=n._options;t.valueField=n.getValueFields()[0]+n.name,t.tagField=n.getTagField()+n.name},_applyElementsClipRect:function(n){n.clipId=this._paneClipRectID},_applyMarkerClipRect:function(n){n.clipId=this._forceClipping?this._paneClipRectID:null},_createGroup:function(n,t,i,r){var u=t[n];u?u.applySettings(r):t[n]=u=this._renderer.createGroup(r),u.append(i)},_applyClearingSettings:function(n){n.opacity=null,n.scale=null,this._options.rotated?n.translateX=null:n.translateY=null},_createMarkerGroup:function(){var n=this._getPointOptions().styles.normal;n["class"]="dxc-markers",n.opacity=1,this._applyMarkerClipRect(n),this._createGroup("_markersGroup",this,this._group,n)},_createLabelGroup:function(){var n={"class":"dxc-labels",visibility:this.getLabelVisibility()?"visible":"hidden"};this._applyElementsClipRect(n),this._applyClearingSettings(n),this._createGroup("_labelsGroup",this,this._options.labelsGroup,n)},_createGroups:function(n){this._createMarkerGroup(),this._createLabelGroup(),n&&this._labelsGroup&&this._labelsGroup.applySettings({opacity:.001})},_getCreatingPointOptions:function(){if(!this._predefinedPointOptions){var n=this._getPointOptions(),i=n.styles&&n.styles.normal&&n.styles.normal.r,r=n.styles&&n.styles.normal&&n.styles.normal.strokeWidth,t=f(!0,{},n);t.styles=t.styles||{},t.styles.normal={r:i,strokeWidth:r},this._predefinedPointOptions=t}return this._predefinedPointOptions},_getSpecialColor:function(n){return n},_getPointOptions:function(){return this._pointOptions||(this._pointOptions=this._parsePointOptions(this._preparePointOptions(),this._options.label))},_preparePointOptions:function(n){return n?f(!0,{},this._options.point,n):this._options.point},_parsePointStyle:function(n,t,i){var r=n.border||{};return{fill:n.color||t,stroke:r.color||i,strokeWidth:r.visible?r.width:0,r:n.size/2+(r.visible&&n.size!==0?~~(r.width/2)||0:0)}},_createPointStyles:function(n){var t=n.color||this._options.mainSeriesColor,i=this._options.containerBackgroundColor,r=this._parsePointStyle(n,t,t);return r.visibility=n.visible?"visible":"hidden",{normal:r,hover:this._parsePointStyle(n.hoverStyle,i,t),selection:this._parsePointStyle(n.selectionStyle,i,t)}},_checkData:function(n){return e(n.argument)&&n.value!==undefined},_processRange:function(n,t){r.processRange(this,n,t)},_getRangeData:function(n,t){return r.calculateRangeData(this,n,t),r.addLabelPaddings(this),this._rangeData},_getPointData:function(n,t){var i=t.argumentField||"arg",r=t.valueField||"val",u=t.tagField||"tag";return{value:n[r],argument:n[i],tag:n[u]}},_drawPoint:function(n,t,i,r,u){n.isInVisibleArea()?(n.clearVisibility(),n.draw(this._renderer,t,i,r,u),this._drawedPoints.push(n)):n.setInvisibility()},_clearingAnimation:function(n,t){var i=this,r={opacity:.001},u={duration:i._defaultDuration,partitionDuration:.5};i._labelsGroup&&i._labelsGroup.animate(r,u,function(){i._markersGroup&&i._markersGroup.animate(r,u,t)})},_animate:function(){var t=this,r=t._drawedPoints.length-1,u=function(){t._labelsGroup&&t._labelsGroup.animate({opacity:1},{duration:t._defaultDuration})},i;s(t._drawedPoints||[],function(n,t){i={translate:{x:t.x,y:t.y}},t.animate(n===r?u:undefined,i)})},_getPointSize:function(){return this._options.point.visible?this._options.point.size:l},_calcMedianValue:function(n,t){var r,i;return i=h(n,function(n){return n[t]}),i.sort(function(n,t){return n-t}),r=i[c(i.length/2)],e(r)?r:null},_fusionPoints:function(n,t,i){var r=this._calcMedianValue(n,"value");return{value:r,argument:t,tag:null,index:i,seriesName:this.name}},_endUpdateData:function(){delete this._predefinedPointOptions},getArgumentField:function(){return this._options.argumentField||"arg"},getValueFields:function(){return[this._options.valueField||"val"]},_beginUpdateData:n.noop}}(jQuery,DevExpress),function(n,t){var e=t.viz,i=e.core.series.mixins.chart,o=t.utils,f=i.scatter,r=n.extend,s=n.map,u=n.each;i.line=r({},f,{_createElementsGroup:function(n){var t=r({"class":"dxc-elements"},n);this._applyElementsClipRect(t),this._createGroup("_elementsGroup",this,this._group,t)},_createBordersGroup:function(n){var t=r({"class":"dxc-borders"},n);this._applyElementsClipRect(t),this._createGroup("_bordersGroup",this,this._group,t)},_applyTrackersClippings:function(){f._applyTrackersClippings.call(this),this._trackersGroup.applySettings({clipId:this._paneClipRectID})},_createGroups:function(n,t){var t=t||this._styles.normal;this._createElementsGroup(t.elements),this._areBordersVisible()&&this._createBordersGroup(t.border),f._createGroups.call(this,n,{}),n&&this._markersGroup&&this._markersGroup.applySettings({opacity:.001})},_areBordersVisible:function(){return!1},_getDefaultSegment:function(n){return{line:s(n.line||[],function(n){return n.getDefaultCoords()})}},_prepareSegment:function(n){return{line:n}},_parseLineOptions:function(n,t){return{stroke:n.color||t,strokeWidth:n.width,dashStyle:n.dashStyle||"solid"}},_parseStyle:function(n,t){return{elements:this._parseLineOptions(n,t)}},_applyStyle:function(n){this._elementsGroup&&this._elementsGroup.applySettings(n.elements),u(this._graphics||[],function(t,i){i.line&&i.line.applySettings({strokeWidth:n.elements.strokeWidth})})},_drawElement:function(n,t){return{line:this._createMainElement(n.line,{strokeWidth:this._styles.normal.elements.strokeWidth}).append(t)}},_removeElement:function(n){n.line.remove()},_generateDefaultSegments:function(){var n=this,t=[];return u(n._segments||[],function(i,r){t.push(n._getDefaultSegment(r))}),t},_updateElement:function(n,t,i,r,u){var f={points:t.line};i?n.line.animate(f,r,u):n.line.applySettings(f)},_clearingAnimation:function(n,t){var i=this,e=i._graphics.length-1,r={opacity:.001},f={duration:i._defaultDuration,partitionDuration:.5};i._labelsGroup&&i._labelsGroup.animate(r,f,function(){i._markersGroup&&i._markersGroup.animate(r,f,function(){u(i._defaultSegments||[],function(n,r){i._oldUpdateElement(i._graphics[n],r,!0,{partitionDuration:.5},n===e?t:undefined)})})})},_animate:function(){var n=this,t=n._graphics.length-1;u(n._graphics||[],function(i,r){n._updateElement(r,n._segments[i],!0,{complete:i===t?function(){n._labelsGroup&&n._labelsGroup.animate({opacity:1},{duration:n._defaultDuration}),n._markersGroup&&n._markersGroup.animate({opacity:1},{duration:n._defaultDuration})}:undefined})})},_drawPoint:function(n,t,i){f._drawPoint.call(this,n,t,i)},_createMainElement:function(n,t){return this._renderer.createPath(n,t)},_drawSegment:function(n,t,i){var r=this._prepareSegment(n,this._options.rotated);this._segments.push(r),this._graphics[i]?t||this._updateElement(this._graphics[i],r):this._graphics[i]=this._drawElement(t?this._getDefaultSegment(r):r,this._elementsGroup)},_getTrackerSettings:function(){return{strokeWidth:this._styles.normal.elements.strokeWidth>this._defaultTrackerWidth?this._styles.normal.elements.strokeWidth:this._defaultTrackerWidth,fill:"none"}},_getMainPointsFromSegment:function(n){return n.line},_drawTrackerElement:function(n){return this._createMainElement(this._getMainPointsFromSegment(n),this._getTrackerSettings(n))},_updateTrackerElement:function(n,t){var i=this._getTrackerSettings(n);i.points=this._getMainPointsFromSegment(n),t.applySettings(i)}}),i.stepline=r({},i.line,{_calculateStepLinePoints:function(n){var t=[];return u(n,function(n,i){var r,u;if(!n){t.push(i);return}r=t[t.length-1].y,r!==i.y&&(u=o.clone(i),u.y=r,t.push(u)),t.push(i)}),t},_prepareSegment:function(n){return i.line._prepareSegment(this._calculateStepLinePoints(n))}}),i.stackedline=r({},i.line,{}),i.fullstackedline=r({},i.line,{_getRangeData:function(n,t){var i=e.core.series.helpers.rangeDataCalculator();return i.calculateRangeData(this,n,t),i.addLabelPaddings(this),i.processFullStackedRange(this),this._rangeData}}),i.spline=r({},i.line,{_calculateBezierPoints:function(n,t){var i=[],r=n,f=function(n,t,i){return n>t&&i>n||n=h.y&&s>=c.y)||t&&(o<=h.x&&o<=c.x||o>=h.x&&o>=c.x)),ft?t?(y=a=o,p=(s+c.y)/2,v=(s+h.y)/2):(p=v=s,y=(o+c.x)/2,a=(o+h.x)/2):(it=g-d,rt=b-k,ut=d*k-b*g,t?(tt=s,nt=-1*(rt*tt+ut)/it,w=nt-o||0,b-=w,k-=w):(nt=o,tt=-1*(it*nt+ut)/rt,w=tt-s||0,d-=w,g-=w),y=(o+l*k)/(1+l),p=(s+l*g)/(1+l),a=(o+l*b)/(1+l),v=(s+l*d)/(1+l)),t?(a=f(h.x,o,a),y=f(c.x,o,y)):(v=f(h.y,s,v),p=f(c.y,s,p)),et=e(u,a,v),ot=e(u,y,p),i.push(et,u,ot);else{i.push(u,u);return}}):i.push(r[0]),i},_prepareSegment:function(n,t){return i.line._prepareSegment(this._calculateBezierPoints(n,t))},_createMainElement:function(n,t){return this._renderer.createBezierPath(n,t)}})}(jQuery,DevExpress),function(n,t){var f=t.viz,e=t.utils,i=f.core.series.mixins.chart,r=i.line,o=n.map,u=n.extend,s=20;i.area=u({},r,{_createBorderElement:r._createMainElement,_processSinglePointsAreaSegment:function(n,t){if(n.length==1){var i=n[0],r=e.clone(i),u=t?"y":"x";return r[u]+=1,[i,r]}return n},_prepareSegment:function(n,t){var i=this._processSinglePointsAreaSegment(n,t);return{line:i,area:o(i,function(n){return n.getCoords()}).concat(o(i.slice().reverse(),function(n){return n.getCoords(!0)})),singlePointSegment:i!==n}},_getSpecialColor:function(n){return this._options._IE8?new t.Color(n).highlight(s):n},_getRangeData:function(n,t){var i=f.core.series.helpers.rangeDataCalculator();return i.calculateRangeData(this,n,t),i.addLabelPaddings(this),i.calculateRangeMinValue(this,n),this._rangeData},_getDefaultSegment:function(n){var t=r._getDefaultSegment(n);return t.area=t.line.concat(t.line.slice().reverse()),t},_updateElement:function(n,t,i,r,u){var e={points:t.line},o={points:t.area},f=n.line;i?(f&&f.animate(e,r),n.area.animate(o,r,u)):(f&&f.applySettings(e),n.area.applySettings(o))},_removeElement:function(n){n.line&&n.line.remove(),n.area.remove()},_drawElement:function(n){return{line:this._bordersGroup&&this._createBorderElement(n.line,{strokeWidth:this._styles.normal.border.strokeWidth}).append(this._bordersGroup),area:this._createMainElement(n.area).append(this._elementsGroup)}},_applyStyle:function(t){this._elementsGroup&&this._elementsGroup.applySettings(t.elements),this._bordersGroup&&this._bordersGroup.applySettings(t.border),n.each(this._graphics||[],function(n,i){i.line&&i.line.applySettings({strokeWidth:t.border.strokeWidth})})},_createPattern:function(n,t){if(t&&e.isObject(t)){var i=this._renderer.createPattern(n,t);return this._patterns.push(i),i.id}return n},_parseStyle:function(n,t,i){var f=n.border||{},u=r._parseLineOptions(f,i);return u.strokeWidth=f.visible?u.strokeWidth:0,{border:u,elements:{stroke:"none",fill:this._createPattern(n.color||t,n.hatching),opacity:n.opacity}}},_areBordersVisible:function(){var n=this._options;return n.border.visible||n.hoverStyle.border.visible||n.selectionStyle.border.visible},_createMainElement:function(n,t){return this._renderer.createArea(n,t)},_getTrackerSettings:function(n){return{strokeWidth:n.singlePointSegment?this._defaultTrackerWidth:0}},_getMainPointsFromSegment:function(n){return n.area}}),i.steparea=u({},i.area,{_prepareSegment:function(n,t){return n=i.area._processSinglePointsAreaSegment(n,t),i.area._prepareSegment.call(this,i.stepline._calculateStepLinePoints(n))}}),i.splinearea=u({},i.area,{_areaPointsToSplineAreaPoints:function(n){var t=n[n.length/2-1],i=n[n.length/2];n.splice(n.length/2,0,{x:t.x,y:t.y},{x:i.x,y:i.y})},_prepareSegment:function(n,t){var u=i.area,f=u._processSinglePointsAreaSegment(n,t),r=u._prepareSegment.call(this,i.spline._calculateBezierPoints(f,t));return this._areaPointsToSplineAreaPoints(r.area),r.singlePointSegment=f!==n,r},_getDefaultSegment:function(n){var t=i.area._getDefaultSegment(n);return this._areaPointsToSplineAreaPoints(t.area),t},_createMainElement:function(n,t){return this._renderer.createBezierArea(n,t)},_createBorderElement:i.spline._createMainElement})}(jQuery,DevExpress),function(n,t){var e=t.viz,r=e.core.series.mixins.chart,i=r.scatter,u=r.area,f=n.extend,o=n.each,s=3;r.bar=f({},i,{_getSpecialColor:u._getSpecialColor,_createPattern:u._createPattern,_updateOptions:function(n){this._stackName="axis_"+(n.axis||"default")+"_stack_"+(n.stack||"default")},_getRangeData:function(){var i=u._getRangeData.apply(this,arguments);return i.arg.stick=!1,i},_parsePointStyle:function(n,t,r){var f=this._createPattern(n.color||t,n.hatching),u=i._parsePointStyle.call(this,n,f,r);return u.fill=f,u.dashStyle=n.border&&n.border.dashStyle||"solid",delete u.r,u},_applyMarkerClipRect:function(n){n.clipId=null},_applyTrackersClippings:function(){this._markerTrackerGroup.applySettings({clipId:this._paneClipRectID})},_clearingAnimation:function(n,t){var i=this,r;r=i._options.rotated?{scale:{x:.001,y:1},translate:{x:n.x.translate("canvas_position_default")}}:{scale:{x:1,y:.001},translate:{y:n.y.translate("canvas_position_default")}},i._labelsGroup&&i._labelsGroup.animate({opacity:.001},{duration:i._defaultDuration,partitionDuration:.5},function(){i._markersGroup.animate(r,{partitionDuration:.5},function(){i._markersGroup.applySettings({scale:null,translateX:0,translateY:0}),t()})})},_createGroups:function(n,t,r){var u={};i._createGroups.apply(this,arguments),n&&r?u=this._options.rotated?{scale:{x:.001,y:1},translateX:this.translators.x.translate("canvas_position_default")}:{scale:{x:1,y:.001},translateY:this.translators.y.translate("canvas_position_default")}:n||(u={scale:{x:1,y:1},translateX:0,translateY:0}),this._markersGroup.applySettings(u)},_drawPoint:function(n,t,r,u,f){i._drawPoint.call(this,n,t,r,u&&!f)},_getMainColor:function(){return this._options.mainSeriesColor},_createPointStyles:function(n){var t=n.color||this._getMainColor(),i=this._getSpecialColor(t);return{normal:this._parsePointStyle(n,t,t),hover:this._parsePointStyle(n.hoverStyle||{},i,t),selection:this._parsePointStyle(n.selectionStyle||{},i,t)}},_preparePointOptions:function(n){return n?f(!0,{},this._options,n):this._options},_animate:function(n){var t=this,i=function(){t._labelsGroup&&t._labelsGroup.animate({opacity:1},{duration:t._defaultDuration})},r;t._markersGroup.animate({scale:{x:1,y:1},translate:{y:0,x:0}},undefined,i),n||(r=t._drawedPoints.length-1,o(this._drawedPoints||[],function(n,t){t.animate(n===r?i:undefined,{x:t.x,y:t.y,height:t.height,width:t.width})}))},_getPointSize:function(){return s}})}(jQuery,DevExpress),function(n,t){var f=t.viz,i=f.core.series.mixins.chart,e=n.extend,s=t.utils.isDefined,h=n.map,u=f.core.series.helpers.rangeDataCalculator(),r=i.area,o={_checkData:function(n){return s(n.argument)&&n.value!==undefined&&n.minValue!==undefined},updateTeamplateFieldNames:function(){var n=this,t=n._options,r=n.getValueFields(),i=n.name;t.rangeValue1Field=r[0]+i,t.rangeValue2Field=r[1]+i,t.tagField=n.getTagField()+i},_processRange:function(n,t){u.processTwoValues(this,n,t,"value","minValue")},_getRangeData:function(n,t){return u.calculateTwoValuesRangeData(this,n,t,"value","minValue"),u.addRangeSeriesLabelPaddings(this),this._rangeData},_getPointData:function(n,t){var i=t.argumentField||"arg",r=t.tagField||"tag",u=t.rangeValue1Field||"val1",f=t.rangeValue2Field||"val2";return{tag:n[r],minValue:n[u],value:n[f],argument:n[i]}},_fusionPoints:function(n,t){var e=i.scatter,u=e._calcMedianValue.call(this,n,"value"),f=e._calcMedianValue.call(this,n,"minValue"),o;return(u===null||f===null)&&(u=f=null),o={minValue:f,value:u,argument:t,tag:null}},getValueFields:function(){return[this._options.rangeValue1Field||"val1",this._options.rangeValue2Field||"val2"]}};i.rangebar=e({},i.bar,o),i.rangearea=e({},r,{_drawPoint:function(n,t,i,r){n.isInVisibleArea()?(n.clearVisibility(),n.draw(this._renderer,t,i,r),this._drawedPoints.push(n),n.visibleTopMarker||n.hideMarker("top"),n.visibleBottomMarker||n.hideMarker("bottom")):n.setInvisibility()},_prepareSegment:function(t,i){var r=this._processSinglePointsAreaSegment(t,i),u=n.map(r,function(n){return n.getCoords(!0)});return{line:r,bottomLine:u,area:n.map(r,function(n){return n.getCoords()}).concat(u.slice().reverse()),singlePointSegment:r!==t}},_getDefaultSegment:function(n){var t=r._getDefaultSegment.call(this,n);return t.bottomLine=t.line,t},_removeElement:function(n){r._removeElement.call(this,n),n.bottomLine&&n.bottomLine.remove()},_drawElement:function(n,t){var i=r._drawElement.call(this,n,t);return i.bottomLine=this._bordersGroup&&this._createBorderElement(n.bottomLine,{strokeWidth:this._styles.normal.border.strokeWidth}).append(this._bordersGroup),i},_applyStyle:function(t){this._elementsGroup&&this._elementsGroup.applySettings(t.elements),this._bordersGroup&&this._bordersGroup.applySettings(t.border),n.each(this._graphics||[],function(n,i){i.line&&i.line.applySettings({strokeWidth:t.border.strokeWidth}),i.bottomLine&&i.bottomLine.applySettings({strokeWidth:t.border.strokeWidth})})},_updateElement:function(n,t,i,u,f){r._updateElement.call(this,n,t,i,u,f);var o={points:t.bottomLine},e=n.bottomLine;e&&(i?e.animate(o,u):e.applySettings(o))}},o)}(jQuery,DevExpress),function(n,t){var s=t.viz,r=s.core.series.mixins.chart,u=r.scatter,i=r.bar,e=t.utils.isDefined,f=n.extend,o=n.each;r.bubble=f({},u,{_applyTrackersClippings:i._applyTrackersClippings,_getMainColor:i._getMainColor,_createPointStyles:i._createPointStyles,_createPattern:i._createPattern,_preparePointOptions:i._preparePointOptions,_getSpecialColor:i._getSpecialColor,_applyMarkerClipRect:r.line._applyElementsClipRect,_parsePointStyle:function(n,t,r){var u=i._parsePointStyle.call(this,n,t,r);return u.opacity=n.opacity,u},_createMarkerGroup:function(){var n=this._getPointOptions().styles.normal,t;n["class"]="dxc-markers",this._applyMarkerClipRect(n),t=f({},n),delete t.opacity,this._createGroup("_markersGroup",this,this._group,t)},_getCreatingPointOptions:function(){if(!this._predefinedPointOptions){var i,n=this._getPointOptions(),r=n.styles&&n.styles.normal&&n.styles.normal.strokeWidth,u=n.styles&&n.styles.normal&&n.styles.normal.r,e=n.styles&&n.styles.normal&&n.styles.normal.opacity,t=f(!0,{},n);t.styles=i=t.styles||{},i.normal={strokeWidth:r,r:u,opacity:e},this._predefinedPointOptions=t}return this._predefinedPointOptions},_checkData:function(n){return e(n.argument)&&e(n.size)&&n.value!==undefined},_getPointData:function(n,t){var i=u._getPointData.call(this,n,t),r=t.sizeField||"size";return i.size=n[r],i},_fusionPoints:function(n,t){var r=u._calcMedianValue.call(this,n,"value"),f=u._calcMedianValue.call(this,n,"size");return{size:f,value:r,argument:t,tag:null}},getValueFields:function(){return[this._options.valueField||"val",this._options.sizeField||"size"]},updateTeamplateFieldNames:function(){var n=this,t=n._options,r=n.getValueFields(),i=n.name;t.valueField=r[0]+i,t.sizeField=r[1]+i,t.tagField=n.getTagField()+i},_clearingAnimation:function(n,t){var i=this,u={r:0},r=.5,f=i._drawedPoints.length-1;i._labelsGroup&&i._labelsGroup.animate({opacity:.001},{duration:i._defaultDuration,partitionDuration:r},function(){o(i._drawedPoints||[],function(n,i){i.animate(n===f?t:undefined,u,r)})})},_animate:function(){var t=this,i=t._drawedPoints.length-1,r=function(){t._labelsGroup&&t._labelsGroup.animate({opacity:1},{duration:t._defaultDuration})};o(t._drawedPoints||[],function(n,t){t.animate(n===i?r:undefined,{r:t.bubbleSize,translate:{x:t.x,y:t.y}})})}})}(jQuery,DevExpress),function(n,t){var h=t.viz,e=h.core.series.mixins,u=e.pieChart,c=t.utils,f=e.chart.scatter,o=e.chart.bar,l=n.extend,i=n.each,r=n.noop,s=n.map,a=isFinite,v=Math.max;u.pie=l({},o,{_createLabelGroup:f._createLabelGroup,_createGroups:f._createGroups,_drawPoint:function(n){f._drawPoint.apply(this,arguments),n.isVisible()||n.setInvisibility()},_applyTrackersClippings:r,_processRange:r,_applyElementsClipRect:r,_updateDataType:r,getColor:r,_prepareSeriesToDrawing:r,_endUpdateData:f._prepareSeriesToDrawing,resetLabelEllipsis:function(){i(this._points||[],function(n,t){t._label.setLabelEllipsis=!1})},_adjustLabels:function(n){var t=this,e=t._options,o=t.canvas,r=t._points||[],u=[],s=[],h=0,f,c,l,a;e.label.position!=="inside"?(i(r,function(n,t){t._label.hasText()&&u.push(t._label.getTextCoords().width)}),u.length&&(f=v.apply(null,u),i(r,function(n,t){t._label.hasText()&&(t._label.updatePosition(f),t._label.setLabelEllipsis=!0)}),t._firstDrawing=!t.redraw&&n,t.redraw=!0)):i(r,function(n,t){t._label.hasText()&&(t._label.setLabelEllipsis=!0,t._label.updatePosition())})},_getCreatingPointOptions:function(){return this._getPointOptions()},_updateOptions:function(n){this.labelSpace=0,this.innerRadius=this.type==="pie"?0:n.innerRadius,this.redraw=!1},_checkData:function(n){var t=o._checkData(n);return this._options.paintNullPoints?t:t&&n.value!==null},_createMarkerGroup:function(){this._markersGroup||(this._markersGroup=this._renderer.createGroup({"class":"dxc-markers"}).append(this._group))},_getMainColor:function(){return this._options.mainSeriesColor()},_getPointOptions:function(){return this._parsePointOptions(this._preparePointOptions(),this._options.label)},_getRangeData:function(){return this._rangeData},_getArrangeTotal:function(n){var t=0;return i(n,function(n,i){i.isVisible()&&(t+=i.initialValue)}),t},_createPointStyles:function(n){var t=n.color||this._getMainColor(),i=this._getSpecialColor(t);return{normal:this._parsePointStyle(n,t,t),hover:this._parsePointStyle(n.hoverStyle,i,t),selection:this._parsePointStyle(n.selectionStyle,i,t),legendStyles:{normal:this._createLegendState(n,t),hover:this._createLegendState(n.hoverStyle,i),selection:this._createLegendState(n.selectionStyle,i)}}},_getArrangeMinShownValue:function(n,t){var r=this._options.minSegmentSize,u=0,f=0;return t=t||n.length,i(n,function(n,i){i.isVisible()&&(i.initialValue=e&&(this.step=null,o())},s=function(){r._labelsGroup&&r._labelsGroup.animate({opacity:1},{duration:400})};t?o():n.each(i,function(n,t){t.animate(n==f-1?s:undefined)})},getVisiblePoints:function(){return s(this._points,function(n){return n.isVisible()?n:null})},_beginUpdateData:function(){this._deletePatterns(),this._patterns=[]}}),u.doughnut=u.donut=u.pie}(jQuery,DevExpress),function(n,t){var e=t.viz,i=e.core.series.mixins.chart,o=i.scatter,u=i.bar,f=e.core.series.helpers.rangeDataCalculator(),s=t.utils.isDefined,r=n.extend,h=n.each,c=n.noop,l=10;i.stock=r({},o,{_animate:c,_applyMarkerClipRect:i.line._applyElementsClipRect,_applyTrackersClippings:u._applyTrackersClippings,_createPattern:u._createPattern,_preparePointOptions:u._preparePointOptions,_createMarkerGroup:function(){var n=this,t,i=n._getPointOptions().styles,r=i.normal,u=i.positive.normal,f=i.reduction.normal,e=i.reductionPositive.normal,o={"class":"dxc-markers"};n._applyMarkerClipRect(o),r["class"]="default-markers",u["class"]="default-positive-markers",f["class"]="reduction-markers",e["class"]="reduction-positive-markers",n._createGroup("_markersGroup",n,n._group,o),t=n._markersGroup,n._createGroup("defaultMarkersGroup",t,t,r),n._createGroup("reductionMarkersGroup",t,t,f),n._createGroup("defaultPositiveMarkersGroup",t,t,u),n._createGroup("reductionPositiveMarkersGroup",t,t,e)},_createGroups:function(){o._createGroups.call(this,!1)},_clearingAnimation:function(n,t){t()},_getCreatingPointOptions:function(){if(!this._predefinedPointOptions){var n,t=this._getPointOptions(),u=t.styles&&t.styles.normal&&t.styles.normal.strokeWidth,i=r(!0,{},t);i.styles=n=i.styles||{},n.normal=n.positive.normal=n.reduction.normal=n.reductionPositive.normal={strokeWidth:u},this._predefinedPointOptions=i}return this._predefinedPointOptions},_checkData:function(n){return s(n.argument)&&n.highValue!==undefined&&n.lowValue!==undefined&&n.openValue!==undefined&&n.closeValue!==undefined},_processRange:function(n,t){f.processTwoValues(this,n,t,"highValue","lowValue")},_getRangeData:function(n,t){return f.calculateTwoValuesRangeData(this,n,t,"highValue","lowValue"),f.addRangeSeriesLabelPaddings(this),this._rangeData},_getPointData:function(n,t){var r=this,i,h=t.argumentField||"date",c=t.tagField||"tag",f=t.openValueField||"open",e=t.closeValueField||"close",o=t.highValueField||"high",s=t.lowValueField||"low",u;r.level=t.reduction.level;switch((r.level||"").toLowerCase()){case"open":i=f;break;case"high":i=o;break;case"low":i=s;break;default:i=e,r.level="close"}return u=n[i],{argument:n[h],highValue:n[o],lowValue:n[s],closeValue:n[e],openValue:n[f],reductionValue:u,tag:n[c],isReduction:this._checkReduction(u)}},_parsePointStyle:function(n,t,i){return{stroke:n.color||t,strokeWidth:n.width,fill:n.color||i}},updateTeamplateFieldNames:function(){var i=this,n=i._options,r=i.getValueFields(),t=i.name;n.openValueField=r[0]+t,n.highValueField=r[1]+t,n.lowValueField=r[2]+t,n.closeValueField=r[3]+t,n.tagField=i.getTagField()+t},_getDefaultStyle:function(n){var t=n.color||this._options.mainSeriesColor;return{normal:this._parsePointStyle(n,t,t),hover:this._parsePointStyle(n.hoverStyle,t,t),selection:this._parsePointStyle(n.selectionStyle,t,t)}},_getReductionStyle:function(n){var t=n.reduction.color,i=this._parsePointStyle({color:t,width:n.width,hatching:n.hatching},t,t);return{normal:i,hover:this._parsePointStyle(n.hoverStyle,t,t),selection:this._parsePointStyle(n.selectionStyle,t,t)}},_createPointStyles:function(n){var f=this,o=f._options.innerColor,t=f._getDefaultStyle(n),i,e,u;return i=r(!0,{},t),e=f._getReductionStyle(n),u=r(!0,{},e),i.normal.fill=i.hover.fill=i.selection.fill=o,u.normal.fill=u.hover.fill=u.selection.fill=o,t.positive=i,t.reduction=e,t.reductionPositive=u,t},_endUpdateData:function(){delete this.prevLevelValue,delete this._predefinedPointOptions},_checkReduction:function(n){var t=!1;return n!=null&&(s(this.prevLevelValue)&&(t=nn+(i||0)||f.maxt+(r||0)||e.maxt.y+t.height)e=s||n.y,o=t.y+t.height;else{if(n.x>t.x+t.width)u=h||n.x,f=t.x+t.width;else if(c=f.y&&(u.minX>n.x&&(t+=f.x+f.width-n.x+o),u.maxXf.y&&e.adjustSeriesLabels&&(r+=u.minY-n.y),u.maxY=f.x&&(u.minX>n.x&&e.adjustSeriesLabels&&(t+=u.minX-n.x),u.maxXn.y&&(r+=f.y+f.height-n.y+o),u.maxY=e.x&&u.minY<=e.y+e.height&&u.maxY>=e.y&&(f._rotated?(u.minX>n.x&&(t+=u.minX-n.x),u.maxXn.y&&f.adjustSeriesLabels&&(r+=u.minY-n.y),u.maxYn.x&&f.adjustSeriesLabels&&(t+=u.minX-n.x),u.maxXn.y&&(r+=u.minY-n.y),u.maxYe.width||n.height>e.height){f.hide();return}}else if(n.height>e.height||n.width>e.width){f.hide();return}f._insideGroup.applySettings({translateX:i(t),translateY:i(r)})},_setPositionForBubble:function(){var n=this,t=n._insideGroup.getBBox(),u=n._graphicBbox,i=0,r=0;n._options.position==="inside"?(i=n._coords.x,r+=u.y+u.height/2-t.y-t.height/2,i+=n._options.horizontalOffset,r+=n._options.verticalOffset,n._checkPosition({x:t.x+i,y:t.y+r,height:t.height,width:t.width},i,r)):n._setPositionForSymbol()},_setPositionForFinancial:function(){var t=this,r=t._offset,i=t._insideGroup.getBBox(),n;n=t._getOutsideLabelCoords(i),n.x+=t._options.horizontalOffset,n.y+=t._options.verticalOffset,t._checkPosition({x:i.x+n.x,y:i.y+n.y,height:i.height,width:i.width},n.x,n.y)}})}(jQuery,DevExpress),function(n,t){var r=t.utils.getCosAndSin,c=n.extend,f=Math,i=f.round,o=f.max,s=n.inArray,e=t.utils.isDefined,h=30,u=20;t.viz.core.series.points.PieLabel=t.viz.core.series.points.Label.inherit({ctor:function(n,t){this.setLabelEllipsis=!1,this.indentFromPie=h,this.updateData(n),this.setOptions(t)},updateData:function(n){e(n)&&(this._data=n.formatObject)},setOptions:function(n){var t=this,i=t._options,n=n||{};t._options=n.options,t._borderWidth=n.borderWidth,i&&(t._isBackgroundChanged(i.background,t._options.background)&&t._deleteBackground(),t._isConnectorChanged(i.connector,t._options.connector)&&t._deleteConnector())},setCoords:function(n,t){this._middleAngle=n.middleAngle,this._radiusOuter=n.radiusOuter,this._centerX=n.centerX,this._centerY=n.centerY,this._canvas=t},updatePosition:function(n){this._setPosition(n),this._checkEllipsis(),this._drawBackground(),this._rotateLabel(),this._checkPosition(),this._connector&&this._drawConnector()},dispose:function(){this._data=null,this._options=null,this._canvas=null,this._deleteElements()},draw:function(n,t,i){var r=this,f=r._options,o=f.background,u=r._format();e(u)&&u!==""?(r._drawGroups(n,t),r._setVisibility(i),r._drawText(n,u),r._setPosition(),r._checkEllipsis(),r._drawBackground(n),r._rotateLabel(),r._checkPosition(),r._drawConnector(n)):r._setVisibility("hidden")},_getOutsideGroupLabelPosition:function(){return this._deleteConnector(),this._group&&this._group.getBBox()},_setPosition:function(n){var t=this,v=t._text.getBBox(),h=t._options,o=r(t._middleAngle),s="center",e=t._radiusOuter+h.radialOffset,c=t._canvas,l=c.width-c.right,a=c.left,f,y;h.position==="inside"?(e-=t.indentFromPie,f=t._centerX+e*o.cos):h.position==="columns"?(e+=u,o.cos>=0?(s="right",f=n?t._centerX+e+n:l,f=f>l?l:f):o.cos<0&&(s="left",f=n?t._centerX-e-n:a,f=f.1?s="left":o.cos<-.1&&(s="right"),f=t._centerX+e*o.cos),y=i(t._text.settings.y+t._centerY-e*o.sin-v.y-v.height/2),t._text.applySettings({x:f,y:y,align:s})},_getConnectorPoints:function(){var n=this,c=n._options,l=c.position,f,h=n._radiusOuter,t,e,o,s=[];return l!=="inside"&&(f=r(i(n._middleAngle)),s.push({x:i(n._centerX+(h-n._borderWidth)*f.cos),y:i(n._centerY-(h-n._borderWidth)*f.sin)}),e=i(n._centerX+(h+c.radialOffset+u)*f.cos),l==="columns"?(t=n._insideGroup.getBBox(),t.x=t.x+(n._insideGroup.settings.translateX||0),t.y=t.y+(n._insideGroup.settings.translateY||0),o=t.y+t.height/2,s.push({x:e,y:o}),n._background?e=t.x+t.width/2:f.cos<0?e=t.x+t.width:f.cos>0&&(e=t.x),s.push({x:e,y:o})):(o=i(n._centerY-(h+c.radialOffset+u)*f.sin),s.push({x:e,y:o}))),s},_rotateLabel:function(){var n=this,t=n._options,o=n._radiusOuter+t.radialOffset*2+u,s=r(n._middleAngle),f,e,i=n._insideGroup.getBBox();t.position==="inside"||t.position==="columns"?(f=i.x+i.width/2,e=i.y+i.height/2):(f=n._centerX+o*s.cos,e=n._centerY-o*s.sin),n._insideGroup.applySettings({x:f,y:e,rotate:t.rotationAngle})},_checkEllipsis:function(){var n=this,a,c=10,t,y,d=0,p=[],g=[],nt,h,w,f,v,e,l=r(n._options.rotationAngle),i=n._canvas,tt=n._options,b=r(n._middleAngle),k=n._centerX+(n._radiusOuter+u)*b.cos;if(n._text.tspans&&n.setLabelEllipsis){if(t=n._text.getBBox(),f=t.x+t.widthi.height-i.bottom+c||v+e*l.sini.width-i.right+c||tt.position==="columns"&&(b.cos<0&&k0&&k>f))for(a=0;a0)&&(p.push(d),g.push(a),d=0);while(v+e*l.sin>i.height-i.bottom+c||v+e*l.sini.width-i.right+c||tt.position==="columns"&&(b.cos<0&&k0&&k>f)){if(nt=o.apply(null,p),nt===0)break;w=s(nt,p),h=g[w],n._text.tspans[h].element.textContent==="..."?n._text.tspans[h].settings.dy>0||!n._text.tspans[h-1]?p[w]=0:n._text.tspans[h-1]&&(n._text.tspans[h].element.textContent="",g[w]-=1,n._text.tspans[h-1].element.textContent+="..."):(y=n._text.tspans[h].element.textContent,y=y.substr(0,y.length-4)+"...",n._text.tspans[h].element.textContent=y,p[w]-=1),t=n._text.getBBox(),f=t.x+t.widtht.height-t.bottom?r=t.height-n.y-n.height-t.bottom:n.yt.width-t.right?i=t.width-t.right-n.x-n.width:n.x0?"top":"bottom"},_getFormatObject:function(n){var t=this._label.getData(),u={argumentText:n.formatValue(this.initialArgument,"argument"),valueText:n.formatValue(this.initialValue)},f=i(t.percent)?{percentText:n.formatValue(t.percent,"percent")}:{},e=i(t.total)?{totalText:n.formatValue(t.total)}:{};return r({},t,u,f,e)}}}(jQuery,DevExpress),function(n){var h=DevExpress.viz,u=h.core.series.points.mixins,f=n.extend,r=Math,c=r.round,e=r.abs,i=r.min,l="canvas_position_default",o=9,s=4;u.barPoint=f({},u.symbolPoint,{correctCoordinates:function(n){var i=n.offset-c(n.width/2),t=this._options.rotated,r=t?"height":"width",u=(t?"y":"x")+"Correction";this[r]=n.width,this[u]=i},_getGraphicBbox:function(){var n={};return n.x=this.x,n.y=this.y,n.width=this.width,n.height=this.height,n},_getLabelPosition:function(){var t,i=this.translators.x.getBusinessRange().invert,r=this.translators.y.getBusinessRange().invert,n=this.series.valueAxisType==="discrete",u=this.series.isFullStackedSeries(),f=!n&&(this.initialValue>=0&&!r||this.initialValue<0&&r)||n&&!r||u,e=!n&&(this.initialValue>=0&&!i||this.initialValue<0&&i)||n&&!i||u;return t=this._options.rotated?e?"top":"bottom":f?"top":"bottom"},_drawLabel:function(n,t){var i=this,u=i._options,f,s=u.series.getLabelVisibility(),e=i._getCustomLabelVisibility(),o,r=i.translators;i.hasValue()&&(u.label.showForZeroValues||i.initialValue)&&(e||s)?(f={x:i.x,y:i.y,defaultX:i.defaultX,defaultY:i.defaultY},r&&(o={minX:r.x.getCanvasVisibleArea().min,maxX:r.x.getCanvasVisibleArea().max,minY:r.y.getCanvasVisibleArea().min,maxY:r.y.getCanvasVisibleArea().max}),i._label.setCoords(f,i._getGraphicBbox(),i._getLabelPosition(),o),i._label.draw(n,t,e)):i._label.hide()},_drawMarker:function(n,t,i){var o=this._getStyle(),r=this.x,u=this.y,f=this.width,e=this.height;i&&(this._options.rotated?(f=0,r=this.defaultX):(e=0,u=this.defaultY)),this.graphic=n.createRect(r,u,f,e,this._options.cornerRadius,o).append(t)},_getSettingsForTracker:function(){var n=this,r=n.y,t=n.height,u=n.x,i=n.width;return n._options.rotated?i===1&&(i=o,u-=s):t===1&&(t=o,r-=s),{x:u,y:r,width:i,height:t}},_drawTrackerMarker:function(n,t){var i=this._getSettingsForTracker();this.trackerGraphic=n.createRect(i.x,i.y,i.width,i.height,this._options.cornerRadius).append(t),this.trackerGraphic.data({point:this})},getGraphicSettings:function(){return{x:this.graphic.settings.x||0,y:this.graphic.settings.y||0,height:this.graphic.settings.height||0,width:this.graphic.settings.width||0}},getTooltipCoords:function(){var n=this.x+this.width/2,t=this.y+this.height/2;return{x:n,y:t,offset:0}},_truncateCoord:function(n,t,i){return ni?i:n},_translate:function(n){var t=this,o=t._options.rotated,s=o?"x":"y",r=o?"y":"x",w=o?"width":"height",c=o?"height":"width",b=n[r],a=n[s],h=b.getCanvasVisibleArea(),v=a.getCanvasVisibleArea(),y,p,f,u;y=p=b.translate(t.argument)+(t[r+"Correction"]||0),f=a.translate(t.value),u=a.translate(t.minValue),t[w]=e(f-u),t._calculateVisibility(o?i(f,u):i(y,p),o?i(y,p):i(f,u),t.width,t.height),f=t._truncateCoord(f,v.min,v.max),u=t._truncateCoord(u,v.min,v.max),t[r]=y,t["min"+r.toUpperCase()]=p,t[w]=e(f-u),t[s]=i(f,u)+(t[s+"Correction"]||0),t["min"+s.toUpperCase()]=u+(t[s+"Correction"]||0),t["default"+s.toUpperCase()]=a.translate(l),t.inVisibleArea&&(t[r]h.max&&(t[c]=h.max-t[r]))},_updateMarker:function(n,t){var t=t||this._getStyle(),i=f({},t);n?i.sharpEdges=!1:(i.x=this.x,i.y=this.y,i.width=this.width,i.height=this.height),this.graphic.applySettings(i)},_updateTracker:function(){this.trackerGraphic.applySettings(this._getSettingsForTracker())}})}(jQuery,DevExpress),function(n,t){var u=t.viz,i=u.core.series.points.mixins,r=n.extend,f=20;i.bubblePoint=r({},i.symbolPoint,{correctCoordinates:function(n){this.bubbleSize=n/2},_drawMarker:function(n,t,i){var u=this._getStyle(),f=r({translateX:this.x,translateY:this.y},u),e=n.createCircle(0,0,i?0:this.bubbleSize,f).append(t);this.graphic=e},_drawTrackerMarker:function(n,t){this.trackerGraphic=n.createCircle(this.x,this.y,this.bubbleSize).append(t),this.trackerGraphic.data({point:this})},getTooltipCoords:function(){if(this.graphic){var n=this.graphic.getBBox().height;return{x:this.x,y:this.y,offset:nthis.minValue&&(!r&&!t||!u&&t);return i=n==="top"?e?"top":"bottom":e?"bottom":"top"},_getLabelMinFormatObject:function(){return{index:0,argument:this.initialArgument,value:this.initialMinValue,seriesName:this._options.series.name,originalValue:this.originalMinValue,originalArgument:this.originalArgument,point:this}},_updateLabelData:function(){var n=this._getLabelFormatObject();n.index=1,this._topLabel.updateData({formatObject:n,initialValue:this.initialValue}),this._bottomLabel.updateData({formatObject:this._getLabelMinFormatObject(),initialValue:this.initialMinValue})},_updateLabelOptions:function(n){var t=this._getLabelOptions(n);this._topLabel&&this._bottomLabel||this._createLabel(),this._topLabel.setOptions(t),this._bottomLabel.setOptions(t)},setAdjustSeriesLabels:function(n){this._topLabel.adjustSeriesLabels=n,this._bottomLabel.adjustSeriesLabels=n},_createLabel:function(){this._topLabel=e.core.CoreFactory.createLabel(),this._bottomLabel=e.core.CoreFactory.createLabel()},_getLabelCoords:function(n){var t={},u=n==="top";return this._options.rotated?(t.x=u?r(this.x,this.minX):i(this.x,this.minX),t.y=this.y):(t.x=this.x,t.y=u?i(this.y,this.minY):r(this.y,this.minY)),t},_getGraphicBbox:function(n){var f=this._options,h=f.rotated,e=n==="top",s=this._getImage(f.image),c=e?this._checkImage(s.top):this._checkImage(s.bottom),o,t,u;return h?(t=e?r(this.x,this.minX):i(this.x,this.minX),u=this.y):(t=this.x,u=e?i(this.y,this.minY):r(this.y,this.minY)),o=f.visible?c?this._getImageBbox(t,u):this._getSymbolBbox(t,u,f.styles.normal.r):{x:t,y:u,width:0,height:0}},_checkOverlay:function(n,t,i){return na&&(r=-(i[u]+i[o]-a),f+=r,e+=r),{coord1:f,coord2:e}},_checkLabelsOverlay:function(n){var i=this,r=i._topLabel.getCoords(),u=i._bottomLabel.getCoords(),t={};i._options.rotated?n==="top"?this._checkOverlay(r.x,u.x,u.width)&&(t=this._getOverlayCorrections("horizontal",u,r),i._topLabel.updatePosition(t.coord2),i._bottomLabel.updatePosition(t.coord1)):this._checkOverlay(u.x,r.x,r.width)&&(t=this._getOverlayCorrections("horizontal",r,u),i._topLabel.updatePosition(t.coord1),i._bottomLabel.updatePosition(t.coord2)):n==="top"?this._checkOverlay(u.y,r.y,r.height)&&(t=this._getOverlayCorrections("vertical",r,u),i._topLabel.updatePosition(undefined,t.coord1),i._bottomLabel.updatePosition(undefined,t.coord2)):this._checkOverlay(r.y,u.y,u.height)&&(t=this._getOverlayCorrections("vertical",u,r),i._topLabel.updatePosition(undefined,t.coord2),i._bottomLabel.updatePosition(undefined,t.coord1))},_drawLabel:function(n,t){var l,a,v=this._options.rotated,i=this._getLabelPosition("top"),u=this._getLabelPosition("bottom"),o=this._options.label.position==="inside",s=o?u:i,h=o?i:u,r=this.translators,f,e=this._getCustomLabelVisibility(),c=this._options.series.getLabelVisibility();(c||e)&&this.hasValue()?(r&&(f={minX:r.x.getCanvasVisibleArea().min,maxX:r.x.getCanvasVisibleArea().max,minY:r.y.getCanvasVisibleArea().min,maxY:r.y.getCanvasVisibleArea().max}),this._topLabel.setCoords(this._getLabelCoords(i),this._getGraphicBbox(i),s,f),this._bottomLabel.setCoords(this._getLabelCoords(u),this._getGraphicBbox(u),h,f),this.visibleTopMarker&&this._topLabel.draw(n,t,e),this.visibleBottomMarker&&this._bottomLabel.draw(n,t,e),this._checkLabelsOverlay(i)):(this._topLabel.hide(),this._bottomLabel.hide())},_getImage:function(n){var t={};return h(n)&&(typeof n=="string"?t.top=t.bottom=n:(t.top={url:typeof n.url=="string"?n.url:n.url&&n.url.rangeMaxPoint,width:typeof n.width=="number"?n.width:n.width&&n.width.rangeMaxPoint,height:typeof n.height=="number"?n.height:n.height&&n.height.rangeMaxPoint},t.bottom={url:typeof n.url=="string"?n.url:n.url&&n.url.rangeMinPoint,width:typeof n.width=="number"?n.width:n.width&&n.width.rangeMinPoint,height:typeof n.height=="number"?n.height:n.height&&n.height.rangeMinPoint})),t},_checkSymbol:function(n,t){var i=n.symbol,r=t.symbol,e=i==="circle"&&r!=="circle"||i!=="circle"&&r==="circle",u=this._getImage(n.image),f=this._getImage(t.image),o=this._checkImage(u.top)!==this._checkImage(f.top),s=this._checkImage(u.bottom)!==this._checkImage(f.bottom);return e||o||s},_getSettingsForTwoMarkers:function(n){var t=this,r=t._options,f={},o=r.rotated?i(t.x,t.minX):t.x,s=r.rotated?t.y:i(t.y,t.minY),e=n.r,h=t._populatePointShape(r.symbol,e);return f.top={r:e,points:h,attr:u({translateX:o+t.width,translateY:s},n)},f.bottom={r:e,points:h,attr:u({translateX:o,translateY:s+t.height},n)},f},_hasGraphic:function(){return this.graphic&&this.graphic.topMarker&&this.graphic.bottomMarker},_drawOneMarker:function(n,t,i,r){this.graphic[t]?this._updateOneMarker(t,r):this.graphic[t]=this._createMarker(n,this.graphic,i,r)},_drawMarker:function(n,t,i,r){var u=this,r=r||u._getStyle(),f=u._getSettingsForTwoMarkers(r),e=u._getImage(u._options.image);u._checkImage(e.top)&&(f.top=u._getImageSettings(f.top,e.top)),u._checkImage(e.bottom)&&(f.bottom=u._getImageSettings(f.bottom,e.bottom)),u.graphic=u.graphic||n.createGroup().append(t),u.visibleTopMarker&&u._drawOneMarker(n,"topMarker",e.top,f.top),u.visibleBottomMarker&&u._drawOneMarker(n,"bottomMarker",e.bottom,f.bottom)},_getSettingsForTracker:function(n){var t=this,r=t._options,u=r.rotated?i(t.x,t.minX)-n:t.x-n,f=r.rotated?t.y-n:i(t.y,t.minY)-n,e=t.width+2*n,o=t.height+2*n;return{translateX:u,translateY:f,width:e,height:o}},_drawTrackerMarker:function(n,t){var i=this,u=i._options,f=u.trackerR||i.storeTrackerR(),r=i._getSettingsForTracker(f),e={translateX:r.translateX,translateY:r.translateY};i.trackerGraphic=n.createRect(0,0,r.width,r.height,0,e).append(t),i.trackerGraphic.data({point:i})},isInVisibleArea:function(){var n=this,f=i(n.minX,n.x)||n.x,e=r(n.minX,n.x)||n.x,o=r(n.minY,n.y)||n.y,s=i(n.minY,n.y)||n.y,a,v,y,p,h=!0,c=!0,l=!0,t,u;return n.translators&&(t=n.translators.x.getCanvasVisibleArea(),u=n.translators.y.getCanvasVisibleArea(),a=t.maxf&&t.min>e,p=u.min>s&&u.min>o,y=u.maxf,h=t.mine):(h=u.mins,c=u.mino)),n.visibleTopMarker=h,n.visibleBottomMarker=c,n.visibleRangeArea=l,l},getTooltipCoords:function(){var n=this,o,s,r,u,t,f=n.translators.x.getCanvasVisibleArea(),e=n.translators.y.getCanvasVisibleArea();return n._options.rotated?(t=i(n.x,n.minX),s=n.y,r=f.min>t?f.min:t,u=f.maxt?e.min:t,u=e.maxr?"closeY":"openY",f=t>r?"openY":"closeY",i=n._getContinuousPoints(u,f)):i=t===r?[{x:n.x,y:n.highY},{x:n.x,y:n.lowY}]:n._getCategoryPoints(o(t)?n.openY:n.closeY),i},getColor:function(){return this._isReduction?this._options.reduction.color:this._styles.normal.stroke||this.series.getColor()},_drawMarkerInGroup:function(n,t,i){this.graphic=i.createArea(this._getPoints(),t).append(n)},_fillStyle:function(){var n=this._options.styles;this._styles=this._isReduction&&this._isPositive?n.reductionPositive:this._isReduction?n.reduction:this._isPositive?n.positive:n},_getMinTrackerWidth:function(){return 1+2*this._styles.normal.strokeWidth},correctCoordinates:function(n){var t=this._getMinTrackerWidth(),i=10;this.width=n.widthi?i:n.width,this.xCorrection=n.offset},_getMarkerGroup:function(n){var t;return t=this._isReduction&&this._isPositive?n.reductionPositiveMarkersGroup:this._isReduction?n.reductionMarkersGroup:this._isPositive?n.defaultPositiveMarkersGroup:n.defaultMarkersGroup},_drawMarker:function(n,t){var i=this._getStyle(),u=this._options.rotated,r=this._getMarkerGroup(t);this._drawMarkerInGroup(r,i,n)},_getSettingsForTracker:function(){var n=this,t=n.highY,r=n.lowY,e=n._options.rotated,o,s,h,c;return t===r&&(t=e?t+f:t-f,r=e?r-f:r+f),e?(o=i(r,t),s=n.x-n.width/2,h=u(r-t),c=n.width):(o=n.x-n.width/2,s=i(r,t),h=n.width,c=u(r-t)),{x:o,y:s,width:h,height:c}},_drawTrackerMarker:function(n,t){var i=this._getSettingsForTracker();this.trackerGraphic=n.createRect(i.x,i.y,i.width,i.height,0).append(t),this.trackerGraphic.data({point:this})},_getGraphicBbox:function(){var n={},t=this._options.rotated;return n.x=t?this.lowY:this.x-c(this.width/2),n.y=t?this.x-c(this.width/2):this.highY,n.width=t?this.highY-this.lowY:this.width,n.height=t?this.width:this.lowY-this.highY,n},_drawLabel:function(n,t){var r,o=this._options.series.getLabelVisibility(),u=this._getCustomLabelVisibility(),f,e=this._options.reduction.color,i=this.translators;this.hasValue()&&(o||u)&&(f={minX:i.x.getCanvasVisibleArea().min,maxX:i.x.getCanvasVisibleArea().max,minY:i.y.getCanvasVisibleArea().min,maxY:i.y.getCanvasVisibleArea().max},this._isReduction&&this._label.updateOptions({options:{background:{fill:e},connector:{stroke:e}}}),r=this._options.rotated?{x:this.highY,y:this.x}:{x:this.x,y:this.highY},this._label.setCoords(r,this._getGraphicBbox(),"top",f),this._label.draw(n,t,u))},getTooltipCoords:function(){var n=this;if(n.graphic){var u,f,t,r,e=i(n.lowY,n.highY),o=h(n.lowY,n.highY),s=n.translators.x.getCanvasVisibleArea(),c=n.translators.y.getCanvasVisibleArea();return n._options.rotated?(t=h(s.min,e),r=i(s.max,o),f=n.x,u=t+(r-t)/2):(t=h(c.min,e),r=i(c.max,o),u=n.x,f=t+(r-t)/2),{x:u,y:f,offset:0}}},hasValue:function(){return this.highValue!==null&&this.lowValue!==null},_translate:function(){var t=this,r=t._options.rotated,o=r?t.translators.y:t.translators.x,f=r?t.translators.x:t.translators.y,e,s;t.x=o.translate(t.argument)+(t.xCorrection||0),t.openY=t.openValue!==null?f.translate(t.openValue):null,t.highY=f.translate(t.highValue),t.lowY=f.translate(t.lowValue),t.closeY=t.closeValue!==null?f.translate(t.closeValue):null,s=u(t.lowY-t.highY),e=i(t.lowY,t.highY)+u(t.lowY-t.highY)/2,t._calculateVisibility(r?e:t.x,r?t.x:e)},_updateData:function(n){var t=this;(t.argument!==n.argument||t.reductionValue!==n.reductionValue||t.highValue!==n.highValue||t.lowValue!==n.lowValue||t.openValue!==n.openValue||t.closeValue!==n.closeValue||t.tag!==n.tag)&&(t.value=t.initialValue=n.reductionValue,t.originalValue=n.value,t.argument=t.initialArgument=n.argument,t.originalArgument=n.argument,t.lowValue=n.lowValue,t.originalLowValue=n.lowValue,t.highValue=n.highValue,t.originalHighValue=n.highValue,t.openValue=n.openValue,t.originalOpenValue=n.openValue,t.closeValue=n.closeValue,t.originalCloseValue=n.closeValue,t.tag=n.tag,t.pointClassName=n.pointClassName,t._isPositive=n.openValue-u?i:0,t.y=o(r)&&r-u?r:0,f=c-i,e=l-r,t.width=o(f)&&f-u?f:0,t.height=o(e)&&e-u?e:0,t.isEmpty=!t.x&&!t.y&&!t.width&&!t.height,t},clear:function(n){return n?this.$element.find(n).remove():this.$element.empty(),this},detach:function(){return this.$element.detach(),this},animate:function(t,r,u){r=r||{};var e=this,f={};u&&n.extend(r,{complete:u}),this.renderer.animOptions.enabled?(n.each(t,function(n,t){switch(n){case"scale":f.transform=f.transform||{};var r=e.transformation.scale||{};f.transform.scale={x:{from:i.isDefined(r.x)?r.x:1,to:i.isDefined(t.x)?t.x:1},y:{from:i.isDefined(r.y)?r.y:1,to:i.isDefined(t.y)?t.y:1}};break;case"rotate":f.transform=f.transform||{},f.transform.rotate={angle:{from:e.transformation.rotateAngle||0,to:t.angle},y:t.y||0,x:t.x||0};break;case"translate":f.transform=f.transform||{},f.transform.translate={x:{from:e.transformation.translateX||0,to:t.x||0},y:{from:e.transformation.translateY||0,to:t.y||0}};break;case"arc":case"points":f[n]=t;break;default:f[n]={from:e.settings[n]||0,to:t}}}),e.renderer.animateElement(e,f,n.extend({},this.renderer.animOptions,r))):(t.translate&&("x"in t.translate&&(t.translateX=t.translate.x),"y"in t.translate&&(t.translateY=t.translate.y),delete t.translate),r&&(r.step&&r.step.call(e,1,1),r.complete&&r.complete.call(e)),this.applySettings(t))},stopAnimation:function(n){var t=this;return t.animation&&t.animation.stop(!0,n),t},move:function(n,t,i,r){return n=n||0,t=t||0,r=r||{},i?this.animate({translate:{x:n,y:t}},r):this.applySettings({translateX:n,translateY:t}),this},rotate:function(n,t,i,r,u){n=n||0,t=t||0,i=i||0,u=u||{},r?this.animate({rotate:{angle:n,x:t,y:i}},u):this.applySettings({rotate:[n,t,i]})},remove:function(){this.$element.remove()},_normalizeSettings:function(i){var o,s,e,f,r,u,h={},a,c=this.renderer.rtl;for(o in i){if(r=o,u=i[r],r==="align")r="text-anchor",u={left:c?"end":"start",center:"middle",right:c?"start":"end"}[u];else if(r==="font"){if(s=this._style=this._style||{},!n.isPlainObject(u))continue;n.each(u,function(n){switch(n){case"color":f="fill";break;case"opacity":f="fillOpacity";break;case"cursor":f=n;break;default:e=n.charAt(0),f="font"+n.replace(e,e.toUpperCase())}s[f]=u[n]});continue}else if(r==="dashStyle")r="stroke-dasharray",u=(u||"none").toLowerCase(),u==="solid"||u==="none"?u=null:(u=u.replace(/longdash/g,"8,3,").replace(/dash/g,"4,3,").replace(/dot/g,"1,3,").replace(/,$/,"").split(","),u=n.map(u,function(n){return+n*(i.strokeWidth||1)}).join(","));else if(/^(linecap|linejoin)$/i.test(r))r="stroke-"+r;else if(/^(translateX|translateY|rotate|scale)$/i.test(r)){this["_"+r]=u;continue}else if(r==="clipId")r="clip-path",u=l(u,this.renderer.pathModified);else if(r==="style"){this._style=this._style||{},n.extend(!0,this._style,u);continue}else if(r==="sharpEdges")continue;else if(r==="text")continue;else if(r==="segments")continue;else r=t.inflector.dasherize(r);h[r]=u}return this._applyTransformation(h)},_applyTransformation:function(t){var o,s,h;this.transformation={translateX:this._translateX,translateY:this._translateY,rotateAngle:0,rotateX:0,rotateY:0};var r=this.transformation,u=this._rotate,f=this._scale,e=[];return(i.isDefined(r.translateX)||i.isDefined(r.translateY))&&e.push("translate("+(r.translateX||0)+","+(r.translateY||0)+")"),i.isDefined(u)&&(i.isNumber(u)?(r.rotateAngle=u,r.rotateX=t.x||0,r.rotateY=t.y||0):n.isArray(u)?(r.rotateAngle=u[0]||0,r.rotateX=u[1]||0,r.rotateY=u[2]||0):i.isObject(u)&&(r.rotateAngle=u.angle||0,r.rotateX=u.x||0,r.rotateY=u.y||0),e.push("rotate("+r.rotateAngle+","+r.rotateX+","+r.rotateY+")")),i.isNumber(f)?(o=i.isDefined(f)?f:1,e.push("scale("+o+","+o+")"),r.scale={x:o,y:o}):i.isObject(f)&&(s=i.isDefined(f.x)?f.x:1,h=i.isDefined(f.y)?f.y:1,e.push("scale("+s+","+h+")"),r.scale={x:s,y:h}),e.length&&(t.transform=e.join(" ")),t}}),y=r.inherit({defaultSettings:function(){return{width:0,height:0,style:{"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)",display:"block",overflow:"hidden"},xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",stroke:"none",strokeWidth:0,fill:"none"}},ctor:function(n,t){this.callBase(n,"svg",t)}}),h={defaultSettings:function(){return{x:0,y:0,width:0,height:0}},adjustSettings:function(){(!i.isDefined(this.settings.sharpEdges)||this.settings.sharpEdges)&&(this.sharpEdges(),delete this.settings.sharpEdges)},prepareSettings:function(n){var f=this.settings?Number(this.settings.strokeWidth)||0:0,t,u,r=!1;i.isDefined(n.width)&&(this._realWidth=Number(n.width)),i.isDefined(n.height)&&(this._realHeight=Number(n.height)),i.isDefined(n.x)&&(this._realX=Number(n.x)),i.isDefined(n.y)&&(this._realY=Number(n.y)),i.isDefined(n.strokeWidth)&&(this._realStrokeWidth=Number(n.strokeWidth)),this._realStrokeWidth=this._realStrokeWidth||this.defaultSettings().strokeWidth||0,u=~~((this._realWidth0&&(n.strokeWidth=t)),(i.isDefined(n.x)||r)&&(n.x=this._realX+t/2),(i.isDefined(n.y)||r)&&(n.y=this._realY+t/2),(i.isDefined(n.width)||r)&&(n.width=this._realWidth-t),(i.isDefined(n.height)||r)&&(n.height=this._realHeight-t)},applySettings:function(t){var t=n.extend(!0,{},t);return this.prepareSettings(t),this.callBase(t)},sharpEdges:function(){var t=Math.round(this.settings.strokeWidth||0),n=t%2/2;this.settings.x=Math.floor(this.settings.x-n||0)+n,this.settings.y=Math.floor(this.settings.y-n||0)+n,this.settings.width=Math.floor(this.settings.width||0),this.settings.height=Math.floor(this.settings.height||0),this.settings.strokeWidth>0&&(this.settings.strokeWidth=t)}},p=r.inherit(h).inherit({ctor:function(n,t,r,u){var f={full:"none",lefttop:"xMinYMin",leftcenter:"xMinYMid",leftbottom:"xMinYMax",centertop:"xMidYMin",center:"xMidYMid",centerbottom:"xMidYMax",righttop:"xMaxYMin",rightcenter:"xMaxYMid",rightbottom:"xMaxYMax"};this.href=i.isDefined(r)?r:"",this.preserveAspectRatio=f[(u||"").toLowerCase()],this.preserveAspectRatio=this.preserveAspectRatio||"none",this.callBase(n,"image",t)},adjustSettings:function(){this.callBase(),this.element.setAttributeNS("http://www.w3.org/1999/xlink","href",this.href),this.preserveAspectRatio&&this.element.setAttribute("preserveAspectRatio",this.preserveAspectRatio)}}),w=r.inherit(h).inherit({defaultSettings:function(){return{x:0,y:0,width:0,height:0,rx:0,ry:0}},ctor:function(n,t){this.callBase(n,"rect",t)}}),e=r.inherit({defaultSettings:function(){return{points:{x:0,y:0}}},getNodeName:function(){return"path"},getPathAttributeName:function(){return"d"},ctor:function(n,t){this.callBase(n,this.getNodeName(),t)},dispose:function(){this.segments=null,this.fromSegments=null,this.callBase()},adjustSettings:function(){this.prepareSegments(this.settings)},applySettings:function(n){var n=n||{};return this.settings&&n.strokeWidth&&this.settings.strokeWidth!==n.strokeWidth&&(n.sharpEdges=!0),this.callBase(n)},prepareSegments:function(t){if("points"in t){var u=t.points,e=u[0],o=this.closePath||t.closePath,f=[],r;if(i.isObject(e))f=n.map(u,function(n,t){return n?t?[["L",n.x,n.y]]:[["M",n.x,n.y]]:null});else if(i.isNumber(e))for(r=0;rn.length?this._makeEqualPath(n,t):(this.combinePathParams(i),this._makeEqualPath(t,n)),i.d},_prepareConstSegment:function(n){n[0]="L"},_makeEqualPath:function(n,t){var r=n[n.length-1].slice(),i;for(this._prepareConstSegment(r),i=n.length;i0&&u.push(t),t=["C",f,e];continue}t.push(f),t.push(e)}t.length>0&&u.push(t)}else if(i.isNumber(s)){for(r=0;r0&&u.push(t),t=["C",f,e||0];continue}t.push(f),t.push(e||0)}t.length>0&&u.push(t)}else u=[["M",0,0]];h&&u.push(["Z"]),this.segments=u,delete n.points,delete n.closePath,this.combinePathParams(n)}}}),g=a.inherit(k).inherit({_concatAnimationSegment:function(n,t,i){var r=i.splice(0,1);return n.concat(r.concat(t),i)},_tailIndex:1}),nt=e.inherit({defaultSettings:function(){return{x:0,y:0,linejoin:"round"}},createArcSegments:function(n,t,i,r,u,f,e){var o=Math.floor(Math.abs(f-u)/Math.PI)%2?"1":"0",s=n+r*Math.cos(u),h=t-r*Math.sin(u),c=n+r*Math.cos(f),l=t-r*Math.sin(f),a=n+i*Math.cos(f),v=t-i*Math.sin(f),y=n+i*Math.cos(u),p=t-i*Math.sin(u);return[["M",s,h],["A",r,r,0,o,0,c,l],[e?"M":"L",a,v],["A",i,i,0,o,1,y,p],["Z"]]},prepareSegments:function(n){var o;if("x"in n||"y"in n||"outerRadius"in n||"innerRadius"in n||"startAngle"in n||"endAngle"in n){var s=i.isNumber(n.x)?Number(n.x):0,h=i.isNumber(n.y)?Number(n.y):0,u=i.isNumber(n.outerRadius)?Number(n.outerRadius):0,f=i.isNumber(n.innerRadius)?Number(n.innerRadius):0,t=i.isNumber(n.startAngle)?Number(n.startAngle):0,r=i.isNumber(n.endAngle)?Number(n.endAngle):360,e;this.segments=[["M",0,0],["Z"]],(u||f)&&(o=Math.min(u,f),u=Math.max(u,f),f=o,Math.round(t)!=Math.round(r)&&(Math.abs(r-t)%360==0&&(t=0,r=360,e=!0,r-=.0001),t>360&&(t=t%360),r>360&&(r=r%360),t>r&&(t-=360),t=t*Math.PI/180,r=r*Math.PI/180,this.segments=this.createArcSegments(s,h,f,u,t,r,e))),this.x=n.x,this.y=n.y,this.outerRadius=n.outerRadius,this.innerRadius=n.innerRadius,this.startAngle=n.startAngle,this.endAngle=n.endAngle,delete n.x,delete n.y,delete n.outerRadius,delete n.innerRadius,delete n.startAngle,delete n.endAngle,this.combinePathParams(n)}},animate:function(n){var i=this,t;"x"in n&&"y"in n&&"outerRadius"in n&&"innerRadius"in n&&"startAngle"in n&&"endAngle"in n&&this.renderer.animOptions.enabled&&(t=this.settings,n.arc={from:{x:this.x,y:this.y,outerRadius:this.outerRadius,innerRadius:this.innerRadius,startAngle:this.startAngle,endAngle:this.endAngle},to:{x:n.x,y:n.y,outerRadius:n.outerRadius,innerRadius:n.innerRadius,startAngle:n.startAngle,endAngle:n.endAngle}},delete n.d,delete n.x,delete n.y,delete n.outerRadius,delete n.innerRadius,delete n.startAngle,delete n.endAngle),this.callBase.apply(this,arguments)}}),tt=r.inherit({defaultSettings:function(){return{cx:0,cy:0,r:0}},ctor:function(n,t){this.callBase(n,"circle",t)}}),it=r.inherit({defaultSettings:function(){return{x:0,y:0}},ctor:function(n,t){this.tspans=[],this.callBase(n,"text",t)},dispose:function(){this.tspans=null,this.callBase()},updateText:function(n){i.isDefined(n)||(n=""),this.applySettings({text:n})},adjustSettings:function(){if(!("text"in this.settings)){this.changeX();return}this._createElementWithText(this.settings.text)},changeX:function(){for(var n=0;n"),t=c.createElement("div"),t.innerHTML=n,t.params={style:{}},this._orderText(t)},clear:function(){this.callBase(),this.tspans=[]},_orderText:function(n){var i=[],f=(this.settings.font?this.settings.font.size:12)||12,u=function(n,t,i){var r={style:{}},i=i||[],f,o,e;if(t.params=t.params||{},t.parentNode&&t.nodeName!="#text"&&t.parentNode.params)for(f in t.parentNode.params)t.params[f]=t.parentNode.params[f];switch(t.tagName){case"B":t.params.fontWeight="bold";break;case"I":t.params.fontStyle="italic";break;case"U":t.params.textDecoration="underline";break;case"BR":n++}for(t.style&&(t.style.fontSize&&(t.params.fontSize=(parseInt(t.style.fontSize)||t.params.fontSize)+"px"),t.params.fill=t.style.color||t.params.fill,t.params.fontStyle=t.style.fontStyle||t.params.fontStyle,t.params.fontWeight=t.style.fontWeight||t.params.fontWeight,t.params.textDecoration=t.style.textDecoration||t.params.textDecoration),o=t.childNodes.length,e=0;e!=o;)n=u(n,t.childNodes[e++],i);return t.wholeText!=undefined&&(r.fill=t.parentNode.params.fill,r.text=t.wholeText,t.parentNode.params.fontSize&&(r.style.fontSize=t.parentNode.params.fontSize),t.parentNode.params.fontStyle&&(r.style.fontStyle=t.parentNode.params.fontStyle),t.parentNode.params.fontWeight&&(r.style.fontWeight=t.parentNode.params.fontWeight),t.parentNode.params.textDecoration&&(r.style.textDecoration=t.parentNode.params.textDecoration),i.push({params:r,line:n})),n},t,r;for(u(0,n,i),t=0;t=0&&t>=0&&(this.svgRoot?this.svgRoot.applySettings({width:n,height:t}):(this.cssClass=i||this.cssClass,this.svgRoot=new y(this,{width:n,height:t,"class":this.cssClass,direction:this.rtl?"rtl":"ltr"}),this.animationController.element=this.svgRoot.element),this.defsSvg&&this.defsSvg.clear("pattern"))},resize:function(n,t){var i=this.getRoot();i&&n>0&&t>0&&i.applySettings({width:n,height:t})},getRoot:function(){return this.svgRoot},isInitialized:function(){return!!this.svgRoot},draw:function(n){n&&!this.drawn&&(n.appendChild(this.getRoot().element),this.drawn=!0)},updateParams:function(n,t){t&&t.strokeWidth&&(n.strokeWidth=t.strokeWidth)},animateElement:function(n,t,i){this.animationController.animateElement(n,t,i)},createRect:function(t,i,r,u,f,e){var o={x:t,y:i,width:r,height:u,rx:f,ry:f};return e&&!e.inh&&n.extend(o,e),this.updateParams(o,e),new w(this,o)},createSegmentRect:function(t,i,r,u,f,e,o){var s=n.extend({},o||{},{x:t,y:i,width:r,height:u,rx:f,ry:f,segments:e});return new b(this,s)},createClipRect:function(n,t,i,r){var u={x:n,y:t,w:i,h:r,fill:"none",stroke:"none",strokeWidth:0};return new et(this,u)},createPattern:function(n,t){return(t=t||{},t.direction=(t.direction||"").toLowerCase(),t.direction!=="right"&&t.direction!=="left")?{id:n,append:function(){return this},clear:function(){},dispose:function(){}}:new ft(this,{hatching:t,color:n})},createImage:function(t,i,r,u,f,e){var o=n.extend({},e||{},{x:t,y:i,width:r,height:u});return new p(this,o,f,o.location)},createLine:function(t,i,r,u,f){var o={points:[t,i,r,u]};return f&&!f.inh&&n.extend(o,f),this.updateParams(o,f),new e(this,o)},createPath:function(t,i){var r={points:t};return i&&!i.inh&&n.extend(r,i),this.updateParams(r,i),new e(this,r)},createSimplePath:function(n){return new r(this,"path",n)},createBezierPath:function(t,i){var r={points:t};return i&&!i.inh&&n.extend(r,i),this.updateParams(r,i),new a(this,r)},createArea:function(t,i){var r={points:t};return i&&!i.inh&&n.extend(r,i),this.updateParams(r,i),new d(this,r)},createBezierArea:function(t,i){var r={points:t};return i&&!i.inh&&n.extend(r,i),this.updateParams(r,i),new g(this,r)},createCircle:function(t,i,r,u){var f={cx:t,cy:i,r:r};return u&&!u.inh&&n.extend(f,u),new tt(this,f)},createArc:function(t,i,r,u,f,e,o){var s={x:t,y:i,outerRadius:r,innerRadius:u,startAngle:f,endAngle:e};return o&&!o.inh&&n.extend(s,o),this.updateParams(s,o),new nt(this,s)},createText:function(t,i,r,u){var f={x:i,y:r,text:t};return u&&!u.inh&&n.extend(f,u),new it(this,f)},createGroup:function(n){return new ut(this,n)},createFilter:function(n){var t=n==="shadow"?ot:null;return t?new t(this):null},getDefsSvg:function(){return this.defsSvg=this.defsSvg||new r(this,"defs").append()},svg:function(){return this.svgRoot.$element.parent().html()}}),s._svgBuildPath=ht,s._svgProcessCircleSettings=ct,s._svgRendererInternals={BaseSvgElement:r,RootSvgElement:y,RectSvgElement:w,ImageSvgElement:p,PathSvgElement:e,AreaSvgElement:d,BezierSvgElement:a,BezierAreaSvgElement:g,CircleSvgElement:tt,TextSvgElement:it,TspanSvgElement:rt,GroupSvgElement:ut,ArcSvgElement:nt,RectSvgBaseElement:h,SegmentRectSvgElement:b,ClipRectSvgElement:et,PatternSvgElement:ft,ShadowFilterSvgElement:ot}}(jQuery,DevExpress),function(n,t){function d(n){var t=u.createElement(n);return k.appendChild(t)}function tt(n){return n>=.002?n:n===null?1:.002}function yt(n){for(var i=0,r=n.length,t=[];i=.002?u:u===null?1:.002),i==="dashstyle"&&r.stroke&&(r.stroke.dashstyle=u)},p=function(n){var r,t,i,e=n.tagName.toLowerCase(),o,u,f;if(!n.className||n.className.indexOf(y)===-1){if(e==="div"){if(n.childNodes.length>0)for(t={},r=0;rt.right?i.right:t.right,t.bottom=t.bottom===undefined||i.bottom>t.bottom?i.bottom:t.bottom)}else if(e==="shape"||e==="vml:shape"){for(o=(n.path.value||n.path).match(/[-0-9]+/g),t={},i=n.getBoundingClientRect(),r=0;rt.bottom?u:t.bottom):(t.left=t.left===undefined||ut.right?u:t.right);t.left=t.left||0,t.top=t.top||0,t.right=t.right||0,t.bottom=t.bottom||0,i.right-i.left<=1&&i.top-i.bottom<=1?(t.right=t.right+i.left,t.bottom=t.bottom+i.top,t.left=t.left+i.left,t.top=t.top+i.top):(t.right=t.right-t.left+i.left,t.bottom=t.bottom-t.top+i.top,t.left=i.left,t.top=i.top),f=Math.ceil(parseFloat(n.strokeweight)/2),f&&f>1&&(t.left-=f,t.top-=f,t.right+=f,t.bottom+=f)}else t=n.getBoundingClientRect();return t}},r={isVml:function(){return!0},dispose:function(){this.childElements=null,this._style=null,this._fullSettings=null,this.callBase()},defaultSettings:function(n){return e(n,this.callBase?this.callBase():{})},createElement:function(n){return this._nodeName=n,this.childElements=[],this._fullSettings={},this.isVml()?d("vml:"+n):u.createElement(n)},append:function(t){var i=t||this.renderer.getRoot();return i&&(i.element.appendChild(this.element),i.childElements.push(this),this.parentElement&&this.parentElement.childElements.splice(n.inArray(this,this.parentElement.childElements),1),this.parentElement=i),(i===this.renderer.getRoot()||i._isAppended)&&this.appendComplete(),this},insertBefore:function(t){var i=t.parentElement;return i.element.insertBefore(this.element,t.element),this.parentElement=i,i.childElements.splice(n.inArray(t,i.childElements),0,this),i._isAppended&&this.appendComplete(),this},remove:function(){return this.callBase.apply(this,arguments),this.parentElement&&(this.parentElement.childElements.splice(n.inArray(this,this.parentElement.childElements),1),this.parentElement=null),this},detach:function(){return this.callBase.apply(this,arguments),this._delayAttributes(["opacity"]),this._onDetach(),this.parentElement&&(this.parentElement.childElements.splice(n.inArray(this,this.parentElement.childElements),1),this.parentElement=null),this},clear:function(){return this.callBase.apply(this,arguments),n.each(this.childElements,function(n,t){t._delayAttributes(["opacity"]),t._onDetach(),t.parentElement=null}),this.childElements=[],this},applyStyle:function(n){if(this.callBase(n),n.opacity&&(this.element.style.opacity=n.opacity),n.clip)try{this.element.style.clip=n.clip}catch(t){}},_fillAttributesFromParentAndCurrentStyle:function(t){var u=this.element,e=this.parentElement,r,h={strokeWidth:"stroke-width"},i,o,f={};if(e)for(r=0;r"),n(this.element).html(i),delete t.text),this.renderer.rtl&&n(this.element).css("direction","rtl")},updateText:function(n){this.applySettings({text:f.isDefined(n)?n:""})},_applyAttributes:function(n){var tt,it;this.callBase(n),n=this._fullSettings;var rt=n.rotate,t=0,k,d,i=1,r=0,y=0,p=1,ft,w,h,g=n.y+(n.translateY||0),nt=n.x+(n.translateX||0),ut=n.align,f=this.getBBox(),l=this._style||{},s=0,c=0,o,b,v,u,e;this._oldRotate&&!f.isEmpty?(h=this._oldRotate.angle*Math.PI/180,y=Math.sin(h),p=Math.cos(h),(this._oldRotate.angle|0)%90!=0?(this._oldRotate.angle|0)%45==0?(u=f.width,e=f.height):(w=Math.abs(Math.tan(h)),tt=(f.width-f.height*w)/(1-w*w),it=f.width-tt,e=Math.abs(it/y),u=Math.abs(tt/p)):(e=Math.abs(f.height*p-f.width*y),u=Math.abs(f.width*p-f.height*y))):(u=f.width,e=f.height),(e||u)&&(v=a(rt,nt,g),this._oldRotate=v,v&&(t=v.angle,k=v.x,d=v.y,Math.abs(t)>360&&(t=t%360),t<0&&(t=t+360),t?(h=t*Math.PI/180,i=Math.cos(h),r=Math.sin(h),l.filter='progid:DXImageTransform.Microsoft.Matrix(sizingMethod="auto expand", M11 = '+i.toFixed(5)+", M12 = "+(-r).toFixed(5)+", M21 = "+r.toFixed(5)+", M22 = "+i.toFixed(5)+")"):(l.filter="",this._oldRotate=null),s=(nt-k)*(i-1)-(g-d)*r,c=(nt-k)*r+(g-d)*(i-1)),o=e*(.55+.45/2),t<90?(c-=o*i,s-=(e-o)*r):t<180?(c+=(e-o)*i,s+=u*i-(e-o)*r):t<270?(c+=(e-o)*i+u*r,s+=u*i+o*r):(c+=u*r-o*i,s+=o*r),t&&this.renderer.rtl&&(s-=u-(e*Math.abs(r)+u*Math.abs(i))),b={center:.5,right:1}[ut],b&&(s-=u*b*i,c-=u*b*r),l.marginLeft=Math.round(s)+"px",l.marginTop=Math.round(c)+"px"),n.fill&&n.fill!=="none"&&(l.color=n.fill),n.opacity&&(this.element.style.filter="alpha(opacity="+n.opacity*100+")"),this.applyStyle(l)}}),b=i.BaseSvgElement.inherit(r).inherit({isVml:function(){return!1},defaultSettings:function(){return{x:0,y:0,position:"absolute"}},ctor:function(n,t){this.callBase(n,"div",t)},adjustSettings:function(){if(this.settings.clipId||this._clipRect){var n=this.renderer.getClipRect(this.settings.clipId,this);this._clipRect?n?this._clipRect.applySettings({x:n.x,y:n.y,width:n.width,height:n.height}):(this._clipRect.remove(),this._clipRect=null):this._clipRect=this.renderer.createRect(n.x,n.y,n.width,n.height,0,{fill:"none",opacity:.002,"class":y}),this._clipRect&&this.childElements.length&&this._clipRect.append(this)}},applySettings:function(t){var i;return t=t||{},i=t.rotate,i&&(f.isNumber(i)&&(i=[i,t.x||0,t.y||0]),n.each(this.childElements,function(n,t){t.applySettings({rotate:i})})),delete t.rotate,delete t.x,delete t.y,this.callBase(t),n.each(this.childElements||[],function(n,t){t.applySettings({})}),this},getBBox:function(){return this._getBBox()},update:function(){if(this.settings.clipId){var n=this.getBBox();this.applyStyle({left:n.x+(this.settings.translateX||0),right:n.y+(this.settings.translateY||0),width:n.width,height:n.height})}}});o.VmlRenderer=o.SvgRenderer.inherit({ctor:function(n){if(n=n||{},n.animation={enabled:!1},u.namespaces&&!u.namespaces.vml){u.namespaces.add("vml","urn:schemas-microsoft-com:vml");var t="vml\\:fill, vml\\:path, vml\\:shape, vml\\:stroke, vml\\:rect, vml\\:oval{ behavior:url(#default#VML); display: inline-block; };";try{u.createStyleSheet().cssText=t}catch(i){u.styleSheets[0].cssText+=t}}this._clipRects={},this.cssClass=n.cssClass||"",this.callBase(n)},dispose:function(){this.callBase(),this._clipRects=null,this._size=null},updateAnimationOptions:n.noop,draw:function(n){var t=this.getRoot();this.callBase(n),t&&t.appendComplete()},recreateCanvas:function(n,t,i){n>=0&&t>=0&&(this._size={width:n,height:t},this.svgRoot?this.svgRoot.applySettings({width:n,height:t}):(this.cssClass=i||this.cssClass,this.svgRoot=new ut(this,{width:n,height:t,"class":this.cssClass})),this.defsSvg&&this.defsSvg.clear())},_getSize:function(){return this._size||{}},isElementAppendedToPage:function(t){return n(t.element).closest(u.documentElement).length},createRect:function(t,i,r,u,f,e){var o=n.extend(!0,{},e||{},{x:t,y:i,width:r,height:u,rx:f,ry:f});return new et(this,o)},createSegmentRect:function(t,i,r,u,f,e,o){var s=n.extend({},o||{},{x:t,y:i,width:r,height:u,rx:f,ry:f,segments:e});return new ht(this,s)},createClipRect:function(t,i,r,u){var e=f.getNextDefsSvgId(),o=[],s={id:e,x:t,y:i,width:r,height:u,addElement:function(t){var i=!1;n.each(o,function(){if(this===t)return i=!0,!1}),i||o.push(t)},append:function(){return this},remove:function(){},dispose:function(){},updateRectangle:function(t){return"x"in t&&(this.x=t.x),"translateX"in t&&(this.x+=t.translateX),"y"in t&&(this.y=t.y),"translateY"in t&&(this.y+=t.translateY),"width"in t&&(this.width=t.width),"height"in t&&(this.height=t.height),n.each(o,function(){this.applySettings({clipId:e})}),this}};return this._clipRects[e]=s,s},getClipRect:function(n,t){var i=this._clipRects[n];return i&&t&&i.addElement(t),this._clipRects[n]},createImage:function(t,i,r,u,f,e){var o=n.extend(!0,{},e&&!e.inh?e:{},{x:t,y:i,width:r,height:u,href:f});return new ft(this,o)},createLine:function(t,i,r,u,f){var e=n.extend(!0,{},f&&!f.inh?f:{},{points:[t,i,r,u]});return new v(this,e)},createPath:function(t,i){var r=n.extend(!0,{},i&&!i.inh?i:{},{points:t});return new v(this,r)},createSimplePath:function(n){return new ot(this,n)},createBezierPath:function(t,i){var r=n.extend(!0,{},i&&!i.inh?i:{},{points:t});return new w(this,r)},createArea:function(t,i){var r=n.extend(!0,{},i&&!i.inh?i:{},{points:t});return new st(this,r)},createBezierArea:function(t,i){var r=n.extend(!0,{},i&&!i.inh?i:{},{points:t});return new ct(this,r)},createCircle:function(t,i,r,u){var f=n.extend(!0,{},u&&!u.inh?u:{},{cx:t,cy:i,r:r});return new at(this,f)},createArc:function(t,i,r,u,f,e,o){var s=n.extend(!0,{},o&&!o.inh?o:{},{x:t,y:i,outerRadius:r,innerRadius:u,startAngle:f,endAngle:e});return new lt(this,s)},createText:function(t,i,r,u){var f=n.extend(!0,{},u&&!u.inh?u:{},{x:i,y:r,text:t});return new vt(this,f)},createGroup:function(n){return new b(this,n)},createPattern:function(n){return{id:n,append:function(){return this},clear:function(){},dispose:function(){}}},createFilter:function(n){return n==="shadow"?{ref:null,append:function(){return this},dispose:function(){return this},applySettings:function(){return this}}:null},svg:function(){return""}}),o._vmlBuildPath=yt,o._vmlProcessCircleSettings=pt}(jQuery,DevExpress),function(n,t){function u(){return!(r.msie&&r.version<9)||!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect}var i=t.viz.renderers,r=t.browser;u()?(i.Renderer=i.SvgRenderer,i.buildPath=i._svgBuildPath,i.processCircleSettings=i._svgProcessCircleSettings):(i.Renderer=i.VmlRenderer,i.buildPath=i._vmlBuildPath,i.processCircleSettings=i._vmlProcessCircleSettings),i.isSvg=u}(jQuery,DevExpress),function(n){var t=n.viz.renderers,u=n.Class,i=function(){},r={easeOutCubic:function(n,t,i){return n===1?i:(1-Math.pow(1-n,3))*(i-t)+ +t},linear:function(n,t,i){return n===1?i:n*(i-t)+ +t}},f;t.easingFunctions=r,t.animationSvgStep={points:function(n,t,i,r,u){for(var e=t.from,l=t.to,c=[],o,s,h,f=0;f1)for(o=1;o0)return this.tick=this._start,!0;this._end(t)}}),t.AnimationController=u.inherit(function(){var n=1e3/60,t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,n)};return{ctor:function(){var n=this;n.requestAnimationFrame=t,n._animationCount=0,n._timerId=null,n._animations={}},_loop:function(){var n=this,t=n._animations,r=0,u=+new Date,i;for(i in t)t.hasOwnProperty(i)&&(t[i].tick(u)||delete t[i],r++);if(r===0){n.stop();return}n._timerId=n.requestAnimationFrame.call(null,function(){n._loop()},n.element)},addAnimation:function(n){var t=this;t._animations[t._animationCount++]=n,t._timerId||(clearTimeout(t._startDelay),t._startDelay=setTimeout(function(){t._timerId=1,t._loop()},0))},animateElement:function(n,t,i){n&&t&&i&&(n.animation&&n.animation.stop(!0),this.addAnimation(n.animation=new f(n,t,i)))},dispose:function(){this.stop(),this.element=null},stop:function(){this._animations={},this._animationCount=0,clearTimeout(this._startDelay),this._timerId=null},lock:function(){var n=this._animations,t;for(t in n)n.hasOwnProperty(t)&&n[t].stop(!0,!0);this.stop()}}}())}(DevExpress),function(n){n.viz.charts={series:{}}}(DevExpress),function(n){n.viz.charts.consts={dataTypes:{STRING:"string",NUMERIC:"numeric",DATETIME:"datetime"},axisTypes:{DISCRETE:"discrete",CONTINUOUS:"continuous",LOGARITHMIC:"logarithmic"}}}(DevExpress),function(n,t){var o=t.viz,h=new o.core.ParseUtils,s=o.charts.consts,f=s.dataTypes,u=s.axisTypes,r=t.utils,e=n.each,i=r.isDefined,c=function(n,t){function i(n,t,r,u){if(tr)for(e=h;e<=u;e++,o++)c[o]=n[e];else for(e=s;e<=r;e++,o++)c[o]=n[e];for(e=0;e<=u-t;e++)n[e+t]=c[e];return n};o.charts.DataValidator=t.Class.inherit({ctor:function(t,i,r,u){var f=this;i=i||[[]],t||(f._nullData=!0),f.groups=i,f.data=t||[],f._parsers={},f._errorShowList={},f._skipFields={},f.options=u||{},f.incidentOccured=r,f.userArgumentCategories=f.groups.length&&f.groups[0].length&&f.groups[0][0].getArgumentCategories(),r||(f.incidentOccured=n.noop)},validate:function(){var t=this;return t._data=t.data,(!r.isArray(t.data)||t._nullData)&&t._incorrectDataMessage(),t.groups.argumentType=null,t.groups.argumentAxisType=null,n.each(t.groups,function(t,i){i.valueType=null,i.valueAxisType=null,n.each(i,function(n,t){t.updateDataType({})})}),t._checkType(),t._checkAxisType(),t.options.convertToAxisDataType&&(t._createParser(),t._parse()),t._groupData(),t._sort(),n.each(t._skipFields,function(n,i){i===t._data.length&&t.incidentOccured("W2002",[n])}),t._data},_checkType:function(){var t=this,i=[],u=[],f=function(i,r){return n.each(i,function(u,f){n.each(f.getValueFields(),function(n,u){i.valueType=t._getType(r[u],i.valueType)})}),i.valueType?!0:void 0},e=function(i,r){return n.each(i,function(n,i){t.groups.argumentType=t._getType(r[i.getArgumentField()],t.groups.argumentType)}),t.groups.argumentType?!0:void 0};n.each(t.groups,function(n,r){if(!r.length)return null;var f=r[0].getOptions(),e=f.valueType,o=f.argumentType;r.valueType=e,t.groups.argumentType=o,e?null:i.push(r),o?null:u.push(r)}),(i.length||u.length)&&n.each(t.data,function(o,s){var h=!0;if(r.isObject(s))return n.each(i,function(n,t){h=h&&f(t,s)}),n.each(u,function(n,t){h=h&&e(t,s)}),!t.options.checkTypeForAllData&&h?!1:void 0})},_checkAxisType:function(){var t=this;n.each(t.groups,function(i,r){n.each(r,function(n,i){var u={},f=i.getOptions();u.argumentAxisType=t._correctAxisType(t.groups.argumentType,f.argumentAxisType,!!t.userArgumentCategories.length),u.valueAxisType=t._correctAxisType(r.valueType,f.valueAxisType,!!i.getValueCategories().length),t.groups.argumentAxisType=t.groups.argumentAxisType||u.argumentAxisType,r.valueAxisType=r.valueAxisType||u.valueAxisType,u.argumentType=t.groups.argumentType,u.valueType=r.valueType,i.updateDataType(u)})})},_createParser:function(){var t=this;n.each(t.groups,function(i,r){n.each(r,function(i,f){t._parsers[f.getArgumentField()]=t._createParserUnit(t.groups.argumentType,t.groups.argumentAxisType===u.LOGARITHMIC?t._filterForLogAxis:null),n.each(f.getValueFields(),function(n,i){t._parsers[i]=t._createParserUnit(r.valueType,r.valueAxisType===u.LOGARITHMIC?t._filterForLogAxis:null,f.getOptions().ignoreEmptyPoints)}),f.getTagField()&&(t._parsers[f.getTagField()]=null)})})},_parse:function(){var t=this,i=[];n.each(t.data,function(u,f){var e={};if(!r.isObject(f)){f&&t._incorrectDataMessage();return}n.each(t._parsers,function(n,t){e[n]=t?t(f[n],n):f[n],e["original"+n]=f[n]}),i.push(e)}),this._data=i},_groupMinSlices:function(n,t,r){var h=this,r=r||{},f=r.mode,l=r.topCount,a=r.threshold,v=r.groupName||"others",u={},o=h._data.slice(),s,c=function(n){!i(n)||n<0||e(o.slice(n),function(n,r){i(r[t])&&(u[t]+=r[t],r[t]=undefined,r["original"+t]=undefined)})};f&&f!=="none"&&(u[n]=v+"",u[t]=0,o.sort(function(n,r){return i(r[t])&&i(n[t])?r[t]-n[t]:!i(r[t])&&n[t]?-1:!i(n[t])&&r[t]?1:void 0}),f==="smallValueThreshold"?(e(o,function(n,r){!i(s)&&i(r[t])&&a>r[t]&&(s=n)}),c(s)):f==="topN"&&c(l),u[t]&&h._data.push(u))},_groupData:function(){var t=this,n=t.groups,f=n.length&&n[0].length&&(n[0][0].type==="pie"||n[0][0].type==="doughnut"||n[0][0].type==="donut"),i,r;f&&e(n,function(f,o){e(o,function(f,e){i=e.getArgumentField(),r=e.getValueFields(),n.argumentAxisType===u.DISCRETE&&t._groupSameArguments(i,r),t._groupMinSlices(i,r[0],e.getOptions().smallValuesGrouping)})})},_groupSameArguments:function(n,t){var o=this,r,u={},f=o._data;e(f,function(o,s){if(i(s[n])&&i(s[t[0]]))if(r=s[n],i(u[r])){var h=f[u[r]];e(t,function(n,t){h[t]+=s[t],s[t]=undefined,s["original"+t]=undefined})}else u[r]=o})},_getType:function(n,t){return t===f.STRING||r.isString(n)?f.STRING:t===f.DATETIME||r.isDate(n)?f.DATETIME:r.isNumber(n)?f.NUMERIC:t},_correctAxisType:function(n,t,i){return(n===f.STRING&&(t===u.CONTINUOUS||t===u.LOGARITHMIC)&&this.incidentOccured("E2002"),t===u.LOGARITHMIC)?u.LOGARITHMIC:(t=(i||t===u.DISCRETE||n===f.STRING)&&u.DISCRETE,t||u.CONTINUOUS)},_filterForLogAxis:function(n,t){return n<=0?(this.incidentOccured("E2004",[t]),null):n},_createParserUnit:function(n,t,i){var r=this,u=n?h.getParser(n,undefined,!0):function(n){return n};return function(f,e){var o=u(f);return t&&(o=t.call(r,o,e)),o===null&&i&&(o=undefined),o===undefined&&(r._addSkipFields(e),r._validUnit(f,e,n)),o}},_validUnit:function(n,t){if(n){if(!r.isNumber(n)&&!r.isDate(n)&&!r.isString(n)){this.incidentOccured("E2003",[t]);return}this.incidentOccured("E2004",[t])}},_sort:function(){var t=this,i=t.groups,u={},e=i.length&&i[0].length&&i[0][0].getArgumentField();r.isFunction(t.options.sortingMethod)?t._data.sort(t.options.sortingMethod):t.userArgumentCategories.length?(n.each(t.userArgumentCategories,function(n,t){u[t]=n}),t._data.sort(function(n,t){return n=n[e],t=t[e],u[n]-u[t]})):t.options.sortingMethod===!0&&i.argumentType!==f.STRING&&c(t._data,e)},_addSkipFields:function(n){this._skipFields[n]=(this._skipFields[n]||0)+1},_incorrectDataMessage:function(){this._erorrDataSource!==!0&&(this._erorrDataSource=!0,this.incidentOccured("E2001"))}})}(jQuery,DevExpress),function(n,t,i){var u=t.viz,f=u.core.Palette,r=t.utils,e=20,o=50;u.charts.ThemeManager=u.core.BaseThemeManager.inherit(function(){var a=function(n,i){var r=this;n=n||{},r._userOptions=n,r._mergeAxisTitleOptions=[],i&&(r._themeSection=i),r._IE8=t.browser.msie&&t.browser.version<9,r.setTheme(n.theme),r.palette=new f(n.palette,{stepHighlight:o,theme:r._themeName})},v=function(){var n=this;n.palette.dispose(),n.palette=n._userOptions=n._mergedSettings=null,n.callBase()},y=function(n){var t=n._theme.commonSeriesSettings;t.point=t.point||{},t.label=t.label||{},n._initializeFont(t.label.font)},p=function(n){var t=n._theme.commonAxisSettings;t&&(t.label=t.label||{},t.grid=t.grid||{},t.ticks=t.ticks||{},t.line=t.line||{},t.title=t.title||{},t.label.font=t.label.font||{},n._initializeFont(t.label.font),t.title.font=t.title.font||{},n._initializeFont(t.title.font))},w=function(){this.palette.reset()},b=function(n){this.palette=new f(n||this._theme.defaultPalette,{stepHighlight:o,theme:this.themeName})},s=function(n){return r.isString(n)?{text:n}:n},h=function(t){if(t)return t=n.extend(!0,{},t),t.title=s(t.title),(t.type==="logarithmic"&&t.logarithmBase<=0||t.logarithmBase&&!n.isNumeric(t.logarithmBase))&&(t.logarithmBase=i,t.logarithmBaseError=!0),t.label&&(t.label.alignment&&(t.label.userAlignment=!0),t.label.overlappingBehavior||(t.label.staggered&&(t.label.overlappingBehavior={mode:"stagger",staggeringSpacing:t.label.staggeringSpacing}),t.label.rotationAngle&&(t.label.overlappingBehavior={mode:"rotate",rotationAngle:t.label.rotationAngle})),r.isString(t.label.overlappingBehavior)&&(t.label.overlappingBehavior={mode:t.label.overlappingBehavior}),t.label.overlappingBehavior&&t.label.overlappingBehavior.mode||(t.label.overlappingBehavior=t.label.overlappingBehavior||{})),t},c=function(t,i,r){var u=this._theme,f=r^t==="valueAxis"?"verticalAxis":"horizontalAxis",e=h(this._userOptions.commonAxisSettings,t);return n.extend(!0,{},u.commonAxisSettings,u[f],u[t],e,h(i,t))},u=function(t,i){i=i||this._userOptions[t];var f=this._theme[t],u=this._mergedSettings[t];return u?u:(u=n.isPlainObject(f)&&n.isPlainObject(i)?n.extend(!0,{},f,i):r.isDefined(i)?i:f,this._mergedSettings[t]=u,u)},l={base:u,argumentAxis:c,valueAxisRangeSelector:function(){return u.call(this,"valueAxis")},valueAxis:c,title:function(n){var t=s(this._userOptions[n]);return u.call(this,n,t)},series:function(t,i,r){var l=this._theme,f=this._userOptions.commonSeriesSettings||{},o=l.commonSeriesSettings,e=((i.type||f.type||o.type)+"").toLowerCase(),u,h=this.palette,a=~e.indexOf("bar"),v=~e.indexOf("bubble"),s,y=this.getOptions("containerBackgroundColor"),c;return(a||v)&&(i=n.extend(!0,{},f,f[e],i),c=i.visible,f={type:{}},n.extend(!0,i,i.point),i.visible=c),u=n.extend(!0,{},o,o[e],f,f[e],i),u.type=e,u.containerBackgroundColor=y,r?(u.widgetType="pieChart",s=function(){return h.getNextColor()}):(u.widgetType="chart",s=u.color||h.getNextColor()),u.mainSeriesColor=s,u._IE8=this._IE8,u},pieSegment:function(i,r,u){var f=n.extend(!0,{},r,u),o=new t.Color(f.color||this.palette.getNextColor());return f.color=o.toHex(),f.border.color=f.border.color||o.toHex(),f.hoverStyle.color=f.hoverStyle.color||this._IE8&&o.highlight(e)||o.toHex(),f.hoverStyle.border.color=f.hoverStyle.border.color||o.toHex(),f.selectionStyle.color=f.selectionStyle.color||this._IE8&&o.highlight(e)||o.toHex(),f.selectionStyle.border.color=f.selectionStyle.border.color||o.toHex(),f},animation:function(t){var i=this._userOptions[t];return i=n.isPlainObject(i)?i:r.isDefined(i)?{enabled:!!i}:{},u.call(this,t,i)}};return{_themeSection:"chart",ctor:a,dispose:v,_initializeTheme:function(){var t=this,n=this._theme;n.legend=n.legend||{},n.legend.font=n.legend.font||{},t._initializeFont(n.legend.font),y(t),p(t),n.title=n.title||{},n.title.font=n.title.font||{},t._initializeFont(n.title.font),n.tooltip=n.tooltip||{},n.tooltip.font=n.tooltip.font||{},t._initializeFont(n.tooltip.font),n.loadingIndicator=n.loadingIndicator||{},n.loadingIndicator.font=n.loadingIndicator.font||{},t._initializeFont(n.loadingIndicator.font)},resetPalette:w,getOptions:function(n){return(l[n]||l.base).apply(this,arguments)},setTheme:function(t){var i=this;i._mergedSettings={},i.callBase(t),i.getOptions("rtlEnabled")&&n.extend(!0,i._theme,i._theme._rtl)},resetOptions:function(n){this._mergedSettings[n]=null},update:function(n){this._userOptions=n},updatePalette:b}}())}(jQuery,DevExpress),function(n,t){var r=t.viz,i=r.charts,u=i.series;i.factory=function(){var n=function(n){return new u.SeriesFamily(n)},t=function(n,t){return new i.Axis(n,t)},r=function(n,t){return new i.ThemeManager(n,t)},f=function(n,t,r,u){return new i.DataValidator(n,t,r,u)},e=function(n){return new i.Tracker(n)},o=function(n,t,r,u){return new i.ChartTitle(n,t,r,u)},s=function(n){return new i.LayoutManager(n)};return{createSeriesFamily:n,createAxis:t,createThemeManager:r,createDataValidator:f,createTracker:e,createChartLayoutManager:s,createTitle:o}}()}(jQuery,DevExpress),function(n,t,i){var u=t.viz.core,r=t.utils;t.viz.core.BaseWidget=t.DOMComponent.inherit({NAMESPACE:t.ui,_init:function(){this._setRedrawOnResize(this._getOptionRedrawOnResize()),this._incidentOccured=this._createIncidentOccured(),this._renderVisiblityChange()},_optionChanged:function(n,t,i){var r=this;switch(n){case"redrawOnResize":r._setRedrawOnResize(r._getOptionRedrawOnResize());break;case"loadingIndicator":r._updateLoadIndicator(r._getLoadIndicatorOption());break;default:r._invalidate()}r.callBase(n,t,i)},_getOptionRedrawOnResize:function(){var n=this.option("redrawOnResize");return n=n!==i?!!n:!0},_getLoadIndicatorOption:function(){return this.option("loadingIndicator")},_dispose:function(){var n=this;n._resizeHandlerCallback&&n._removeResizeCallbacks(),n._incidentOccured=null,n.callBase()},_visibilityChanged:function(n){n&&this.render()},_setRedrawOnResize:function(n){var i=this;n?!i._resizeHandlerCallback&&r.isFunction(i._resize)&&(i._resizeHandlerCallback=t.utils.createResizeHandler(function(){i._resize()}),r.windowResizeCallbacks.add(i._resizeHandlerCallback)):i._removeResizeCallbacks()},_removeResizeCallbacks:function(){var n=this;n._resizeHandlerCallback&&n._resizeHandlerCallback.stop(),r.windowResizeCallbacks.remove(n._resizeHandlerCallback),delete n._resizeHandlerCallback},_showLoadIndicator:function(n,t){var r=this;r._loadIndicator=this._loadIndicator||u.CoreFactory.createLoadIndicator(n,r._element()),r._loadIndicator.show(t.width,t.height),r._initializing&&r._loadIndicator.endLoading(i,!0)},_updateLoadIndicator:function(n,t,i){this._loadIndicator&&this._loadIndicator.applyOptions(n,t,i)},_endLoading:function(n){this._loadIndicator?this._loadIndicator.endLoading(n):n&&n()},_reappendLoadIndicator:function(){this._loadIndicator&&this._loadIndicator.toForeground()},_disposeLoadIndicator:function(){this._loadIndicator&&this._loadIndicator.dispose(),this._loadIndicator=null},_setDefaultOptions:function(){this.callBase(),this.option({incidentOccured:function(n){var t=""+n.id+" - "+n.text,i=n.version.split(".").slice(0,2).join("_"),u="http://js.devexpress.com/error/"+i+"/"+n.id;r.logger.warn(t+"\n"+u)}})},_createIncidentOccured:function(){var n=this;return function(t,i){var s=t[0]==="E",h=s?"error":"warning",f=i?i.slice(0):[],e,o=n.option("incidentOccured");f.unshift(u.errorsWarnings[t]),e=r.stringFormat.apply(null,f),r.isFunction(o)&&setTimeout(function(){o({id:t,type:h,args:i,text:e,widget:n.NAME,version:DevExpress.VERSION})})}},_normalizeHtml:function(n){var i=/xmlns="[\s\S]*?"/gi,t=!0;return n=n.replace(i,function(n){return t?(t=!1,n):""}),n.replace(/xmlns:NS1="[\s\S]*?"/gi,"").replace(/NS1:xmlns:xlink="([\s\S]*?)"/gi,'xmlns:xlink="$1"')},_drawn:function(){var n=this,t=n.option("drawn");r.isFunction(t)&&setTimeout(function(){t(n)})},showLoadingIndicator:function(){this._showLoadIndicator(this.option("loadingIndicator"),this.canvas||{})},hideLoadingIndicator:function(){this._loadIndicator&&this._loadIndicator.hide()},endUpdate:function(){this._updateLockCount!==1||this._requireRefresh||this.hideLoadingIndicator(),this.callBase()},svg:function(){var n=this.renderer||this._renderer;return n?this._normalizeHtml(n.svg()):""}})}(jQuery,DevExpress),function(n){var r=n.viz.renderers,i=n.viz.core;n.viz.core.CoreFactory=function(){return{createSeries:function(n,t){return new i.series.Series(n,t)},createPoint:function(n,t){return new i.series.points.Point(n,t)},createLabel:function(n,t,r){return n==="pie"||n==="doughnut"||n==="donut"?new i.series.points.PieLabel(t,r):new i.series.points.Label(t,r)},createRenderer:function(n){return new r.Renderer(n)},createTranslator1D:function(n,t,r,u){return(new i.Translator1D).setDomain(n,t).setCodomain(r,u)},createTranslator2D:function(n,t,r){return new i.Translator2D(n,t,r)},getTickProvider:function(){return i.tickProvider},createTooltip:function(n,t,r){return new i.Tooltip(n,t,r)},createLoadIndicator:function(n,t){return new i.LoadIndicator(n,t)},createLegend:function(n,t,r,u){return new i.Legend(n,t,r,u)},createSeriesFamily:function(n){return new i.series.helpers.SeriesFamily(n)}}}()}(DevExpress),DevExpress.MOD_VIZ_CORE=!0}if(!DevExpress.MOD_VIZ_CHARTS){if(!DevExpress.MOD_VIZ_CORE)throw Error("Required module is not referenced: viz-core");(function(n,t){var r=t.utils.isDefined,e=function(n,t){return n.substr(n.length-t.length)===t},f=function(n,t){return n.indexOf(t)===0},o=DevExpress.viz.core.utils.decreaseGaps,u=10;t.viz.charts.ChartTitle=t.Class.inherit({ctor:function(n,t,i,r){var u=this;u._init(t,i),u.renderer=n,u.titleGroup=r},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,t){this._init(n,t)},_init:function(n,t){var i=this;n&&(i._parseAlignments(n),i.horizontalAlignment=n.horizontalAlignment,i.verticalAlignment=n.verticalAlignment,i._parseMargins(n),i.margin=n.margin,i.options=n),i.setSize({width:t})},_parseMargins:function(n){n.margin=r(n.margin)?n.margin:{},typeof n.margin=="number"?(n.margin=n.margin>=0?n.margin:u,n.margin={top:n.margin,bottom:n.margin,left:n.margin,right:n.margin}):(n.margin.top=n.margin.top>=0?n.margin.top:u,n.margin.bottom=n.margin.bottom>=0?n.margin.bottom:u,n.margin.left=n.margin.left>=0?n.margin.left:u,n.margin.right=n.margin.right>=0?n.margin.right:u)},_parseAlignments:function(n){if(r(n.position)&&!(r(n.verticalAlignment)&&r(n.horizontalAlignment))){n.position=n.position.toLowerCase(),n.verticalAlignment=e(n.position,"top")?"top":"bottom",n.horizontalAlignment=f(n.position,"left")?"left":f(n.position,"center")&&"center"||"right";return}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")},_setBoundingRect:function(){var t=this,u=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,r(u.placeholderSize)&&(n.height=u.placeholderSize),t.boundingRect=n)},draw:function(){var n=this,t=n.options,i=n.renderer,r;t.text&&(n.changedMargin=null,n.innerTitleGroup?n.innerTitleGroup.clear():(n.innerTitleGroup=i.createGroup(),n.clipRect=n.createClipRect(),n.titleGroup&&n.clipRect&&n.titleGroup.applySettings({clipId:n.clipRect.id})),n.innerTitleGroup.append(n.titleGroup),r={font:t.font,align:n.horizontalAlignment,style:t.fontStyle},n.title=i.createText(t.text,0,0,r).append(n.innerTitleGroup),n.title.text=t.text,n._correctTitleLength(),n._setClipRectSettings())},_correctTitleLength:function(){var n=this,t=n.title.text,r,u,i;(n.title.updateText(t),n._setBoundingRect(),i=n.getLayoutOptions(),n._width>i.width||t.indexOf("
")!==-1)||(u=t.length*n._width/i.width,r=t.substr(0,~~u-4)+"...",n.title.updateText(r),n._setBoundingRect())},changeSize:function(t){var i=this,r=n.extend(!0,{},i.margin);r.top+r.bottom0&&(o(r,["top","bottom"],t.height),t.height&&(i.changedMargin=r)),i._correctTitleLength(),i._setBoundingRect(),i._setClipRectSettings()},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},setSize:function(n){this._width=n.width||this._width},shift:function(n,t){var i=this,r=i.getLayoutOptions();n-=r.x,t-=r.y,i.innerTitleGroup&&i.innerTitleGroup.move(n,t),i.clipRect&&i.clipRect.updateRectangle({translateX:n,translateY:t})},createClipRect:function(){if(r(this.options.placeholderSize))return this.renderer.createClipRect(0,0,0,0)},_setClipRectSettings:function(){var n=this.getLayoutOptions(),t=this.clipRect;t&&(t.append(),t.updateRectangle({x:n.x,y:n.y,width:n.width,height:n.height}))}})})(jQuery,DevExpress),function(n,t,i){var l=t.utils,o=l.isDefined,p=l.isDate,c=Math.abs,w=t.viz.core,b=100,g=5,k=2,d=4,h="canvas_position_",a="canvas_position_start",v="canvas_position_end",s="top",f="bottom",r="left",u="right",e="center",nt=function(n){var i=n.label,t=n.position;n.isHorizontal?t===f||t===s||(t=f):t===r||t===u||(t=r),n.position=t,t!==u||i.userAlignment||(i.alignment=r)},y=function(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),i.customizeText?i.customizeText.call(u,u):u.valueText},tt=function(n){switch(n){case"overlap":return"stagger";case"stagger":return"rotate";case"rotate":default:return"end"}};t.viz.charts.Axis=function(n,t){this.renderer=n,this._init(t)},n.extend(t.viz.charts.Axis.prototype,{dispose:function(){var t=this;t._axisElementsGroup&&t._axisElementsGroup.dispose(),n.each(t.labels||[],function(n,t){t.removeData()}),t.labels=null,t.title=null,t.stripLabels=null,t.stripRects=null,t.constantLineLabels=null,t.constantLines=null,t._axisStripGroup=null,t._axisConstantLineGroup=null,t._axisLableGroup=null,t._axisLineGroup=null,t._axisElementsGroup=null,t._axisGridGroup=null,t._axisGroup=null,t.axesContainerGroup=null,t.stripsGroup=null,t.constantLinesGroup=null,t._axisTitleGroup=null,t.renderer=null,t.translator=null,t.orthogonalTranslator=null,t.options=null,t.textOptions=null,t._tickValues=null,t._fullTickValues=null,t._fullTickPositions=null},_init:function(n){var i=this,r=n.categories,t=n.label;n.hoverMode=n.hoverMode?n.hoverMode.toLowerCase():"none",i.hasLabelFormat=t.format!==""&&o(t.format),i.options=n,i.staggered=t.staggered,t.minSpacing=o(t.minSpacing)?t.minSpacing:g,nt(n),r&&(i.labelsNumber=r.length,i.ticksNumber=i.labelsNumber),n.range={min:n.min,max:n.max,categories:n.categories&&n.categories.slice(0)},i.pane=n.pane,i.textOptions={align:t.alignment,font:t.font,opacity:t.opacity,style:t.style},n.type==="logarithmic"&&(n.logarithmBaseError&&(n.incidentOccured("E2104"),delete n.logarithmBaseError),i.calcInterval=function(t,i){return l.getLog(t/i,n.logarithmBase)})},updateSize:function(n){var t=this,i=t.options,r=i.isHorizontal?"horizontal":"vertical";t.title&&t._axisTitleGroup&&(i.incidentOccured("W2105",[r]),t._axisTitleGroup.remove(),t._axisTitleGroup=null),n&&t._axisElementsGroup&&t.labels&&(i.incidentOccured("W2106",[r]),t._axisElementsGroup.remove(),t._axisElementsGroup=null),t._setBoundingRect()},_updateTranslatorInterval:function(){var i=this,n,t,r=i.translator.getBusinessRange();if(r&&r.addRange&&!i.options.categories)for(t=i.getTickValues(),n=0;nf&&(r=t.min)),t.stubData||(p=function(n){return y(n,t.label,{min:r,max:f})}),{min:r,max:f,base:t.type==="logarithmic"?t.logarithmBase:i,axisType:t.type,dataType:t.dataType,customTicks:n.isArray(t.categories)?t.categories:u._tickValues,useTicksAutoArrangement:!1,textOptions:u.textOptions,getText:p,renderer:u.renderer,textSpacing:t.label.minSpacing,translator:e,tickInterval:t.stubData?null:t.tickInterval,screenDelta:s,gridSpacingFactor:t.axisDivisionFactor,isHorizontal:t.isHorizontal,setTicksAtUnitBeginning:t.setTicksAtUnitBeginning,incidentOccured:t.incidentOccured}},getTickValues:function(){var i=this,o,e=i.options,s=e.tickProvider,f=e.label,h=e.categories,u=i._getTicksOptions();return(i._fullTickValues=i._tickValues=s.getTicks(u),(p(e.min)||p(h&&h[0]))&&!i.hasLabelFormat&&i._tickValues.length&&(f.format=t.formatHelper.getDateFormatByTicks(i._tickValues)),i.overlappingBehavior=f.overlappingBehavior?n.extend({},f.overlappingBehavior):null,i.overlappingBehavior&&(e.isHorizontal||i.overlappingBehavior.mode==="ignore"||(i.overlappingBehavior.mode="enlargeTickInterval"),u.useTicksAutoArrangement=i.overlappingBehavior.mode!=="ignore",u.useTicksAutoArrangement&&(i._fullTickValues=i._tickValues=s.getCorrectedTicks(i._fullTickValues,u)),i.overlappingBehavior.mode==="auto"&&(i.textOptions.rotate=0,i._applyOptimalOverlappingBehavior(i._fullTickValues,u),u.useTicksAutoArrangement=i.overlappingBehavior.isOverlapped),i.overlappingBehavior.mode==="rotate"?(i.textOptions.rotate=i.overlappingBehavior.rotationAngle,f.userAlignment||(i.textOptions.align=r)):f.userAlignment||(i.textOptions.align=f.alignment)),u.useTicksAutoArrangement&&(o=i._tickValues.length?i.translator.translate(i._tickValues[i._tickValues.length-1])-i.translator.translate(i._tickValues[0]):null,o?(u.screenDelta=c(o),u.ticksCount=i._tickValues.length-1):u.ticksCount=i._tickValues.length,i.overlappingBehavior&&i.overlappingBehavior.mode==="stagger"&&(u.screenDelta*=k),u.customTicks=i._tickValues,i._tickValues=s.getTicks(u)),i.options.stubData)?i._tickValues:(n.isArray(h)||(i._fullTickValues=i._tickValues),i._tickValues)},setTickValues:function(n){this.resetTicks(),this._fullTickValues=this._tickValues=n},_prepareLabelsToDraw:function(){var i=this,t=i.getTickValues(),r=[],n;for((t.hideLabels||i.options.stubData)&&(r.hideLabels=!0),n=0;nMath.max(k,d)?{}:{value:u,parsedValue:f}},tt=function(n){if(n.value!==i){var s=nt(n.value),f=n.label||{},r=s.value,l,a={stroke:n.color,strokeWidth:n.width,dashStyle:n.dashStyle};if(!o(r)){e.push(null),f.visible&&u.push(null);return}l=g?c.createLine(r,b,r,w,a):c.createLine(w,r,b,r,a),e.push(l.append(h)),f.visible?u.push(t._drawConstantLineLabels(s.parsedValue,f,r,h)):u.push(null)}},f=0;fl&&(l=n.height);for(k=o.overlappingBehavior.staggeringSpacing,l=Math.round(l)+k,t=1;tt?t:i.max:t,n=o(n)?i.max>n?n:i.max:n),r.minRangeArg=n,r.maxRangeArg=t,{min:n,max:t}},getRangeData:function(){var r=this,i=r.options,t=i.range,n={},u,f,e=function(t){i.valueMarginsEnabled?o(i[t])&&(n[t]=i[t],n[t+"Priority"]=b):(n[t]=0,n[t+"Priority"]=b)};return o(t.min)&&o(t.max)?(u=t.mint.min?t.max:t.min):(u=t.min,f=t.max),n.min=u,n.max=f,e("minValueMargin"),e("maxValueMargin"),n.stick=!i.valueMarginsEnabled,n.categories=t.categories,n.dataType=i.dataType,n.axisType=i.type,n.axisType==="logarithmic"&&(n.base=i.logarithmBase),i.isHorizontal?(n.minVisible=o(r.minRangeArg)?r.minRangeArg:t.min,n.maxVisible=o(r.maxRangeArg)?r.maxRangeArg:t.max,n.invert=i.inverted):(n.minVisible=t.min,n.maxVisible=t.max,n.invert=i.inverted||i.type==="discrete"&&i.oppositeDirectionYAxis),n}})}(jQuery,DevExpress),function(n,t,i){var f=t.ui,r=t.viz.charts,u=t.utils,s=1200,h={animate:!1,isResize:!0},o=["reinit","_reinitDataSource","_handleDataSourceChanged","force_render"],e=t.viz.core,c={asyncSeriesRendering:!0,asyncTrackersRendering:!0,trackerRenderingDelay:s};r.BaseChart=e.BaseWidget.inherit({_setDefaultOptions:function(){this.callBase(),this.option({done:n.noop,drawn:n.noop,seriesClick:null,pointClick:null,legendClick:null,argumentAxisClick:null,seriesHover:null,pointHover:null,seriesSelected:null,pointSelected:null,seriesSelectionChanged:null,pointSelectionChanged:null,seriesHoverChanged:null,pointHoverChanged:null})},_createThemeManager:function(){return r.factory.createThemeManager(this.option())},_init:function(){var n=this;n.callBase(),n.themeManager=this._createThemeManager(),n._initRenderer(),n.canvasClipRect=n.renderer.createClipRect(),n._createHtmlStructure(),n._needHandleRenderComplete=!0,n.layoutManager=r.factory.createChartLayoutManager(n.themeManager.getOptions("adaptiveLayout")),n._reinit();n._element().css({webkitUserSelect:"none"}).on("contextmenu",function(n){(f.events.isTouchEvent(n)||f.events.isPointerEvent(n))&&n.preventDefault()}).on("MSHoldVisual",function(n){n.preventDefault()})},_reinit:function(){var n=this;n.layoutManager.update(n),n._createTracker(),n._reinitDataSource()},_createHtmlStructure:function(){var n=this,t=n.renderer;n._panesBackgroundGroup=t.createGroup({"class":"dxc-background"}),n._titleGroup=t.createGroup({"class":"dxc-title"}),n._legendGroup=t.createGroup({"class":"dxc-legend",clipId:n._getCanvasClipRectID()}),n._stripsGroup=t.createGroup({"class":"dxc-strips-group"}),n._constantLinesGroup=t.createGroup({"class":"dxc-constant-lines-group"}),n._axesGroup=t.createGroup({"class":"dxc-axes-group"}),n._panesBorderGroup=t.createGroup({"class":"dxc-border"}),n._labelAxesGroup=t.createGroup({"class":"dxc-strips-labels-group"}),n._seriesGroup=t.createGroup({"class":"dxc-series-group"}),n._labelsGroup=t.createGroup({"class":"dxc-labels-group"}),n._tooltipGroup=t.createGroup({"class":"dxc-tooltip"}),n._trackerGroup=t.createGroup({"class":"dxc-trackers",opacity:.0001,stroke:"gray",fill:"gray"}),n._crosshairTrackerGroup=t.createGroup({"class":"dxc-crosshair-trackers",stroke:"none",fill:"grey"}).append(n._trackerGroup),n._seriesTrackerGroup=t.createGroup({"class":"dxc-series-trackers"}).append(n._trackerGroup),n._markerTrackerGroup=t.createGroup({"class":"dxc-markers-trackers",stroke:"none",fill:"grey"}).append(n._trackerGroup),n._crossHairCursorGroup=t.createGroup({"class":"dxc-crosshair-cursor"})},_cleanHtmlStructure:function(){var n=this;n._panesBackgroundGroup&&n._panesBackgroundGroup.clear(),n._titleGroup&&n._titleGroup.clear(),n._legendGroup&&(n._legendGroup.detach(),n._legendGroup.clear()),n._stripsGroup&&(n._stripsGroup.detach(),n._stripsGroup.clear()),n._constantLinesGroup&&(n._constantLinesGroup.detach(),n._constantLinesGroup.clear()),n._axesGroup&&(n._axesGroup.detach(),n._axesGroup.clear()),n._labelAxesGroup&&(n._labelAxesGroup.detach(),n._labelAxesGroup.clear()),n._seriesGroup&&(n._seriesGroup.detach(),n._seriesGroup.clear()),n._labelsGroup&&(n._labelsGroup.detach(),n._labelsGroup.clear()),n._trackerGroup&&(n._trackerGroup.detach(),n._seriesTrackerGroup.clear(),n._markerTrackerGroup.clear(),n._crosshairTrackerGroup.clear()),n._panesBorderGroup&&n._panesBorderGroup.clear(),n._tooltipGroup&&n._tooltipGroup.clear(),n._crossHairCursorGroup&&(n._crossHairCursorGroup.clear(),n._crossHairCursorGroup.detach())},_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},_dispose:function(){var t=this,n=function(n){t[n]&&t[n].dispose(),t[n]=null},i=function(n){t[n]&&t[n].detach()},r=this._disposeObjectsInArray;clearTimeout(t.delayedRedraw),t.callBase(),r.call(t,"businessRanges",["arg","val"]),t.translators=null,r.call(t,"series"),n("layoutManager"),n("themeManager"),n("renderer"),n("tracker"),n("tooltip"),n("chartTitle"),t.paneAxis=null,t._userOptions=null,t.dirtyCanvas=null,t.canvas=null,i("_legendGroup"),i("_stripsGroup"),i("_constantLinesGroup"),i("_axesGroup"),i("_labelAxesGroup"),i("_seriesGroup"),i("_labelsGroup"),i("_trackerGroup"),i("_crossHairCursorGroup"),n("canvasClipRect"),n("_panesBackgroundGroup"),n("_titleGroup"),n("_legendGroup"),n("_stripsGroup"),n("_constantLinesGroup"),n("_axesGroup"),n("_labelAxesGroup"),n("_panesBorderGroup"),n("_seriesGroup"),n("_labelsGroup"),n("_tooltipGroup"),n("_crossHairCursorGroup"),n("_seriesTrackerGroup"),n("_markerTrackerGroup"),n("_crosshairTrackerGroup"),n("_trackerGroup"),t._disposeLoadIndicator()},_clean:function(n){this.renderer&&this.renderer.stopAllAnimations(),n&&this.hideLoadingIndicator(),this._cleanHtmlStructure(),this.callBase(),this._saveDirtyCanvas()},_getAnimationOptions:function(){return n.extend({},c,this.themeManager.getOptions("animation"))},_initRenderer:function(){this.renderer||(this.renderer=e.CoreFactory.createRenderer({animation:this._getAnimationOptions(),cssClass:"dxc dxc-chart",pathModified:this.option("pathModified"),rtl:this.themeManager.getOptions("rtlEnabled")}))},_initSeries:function(){this.series=this.series||this._populateSeries()},_reinitDataSource:function(){this._refreshDataSource()},_saveDirtyCanvas:function(){this.dirtyCanvas=n.extend({},this.canvas)},_resize:function(){this._render(h)},_calculateCanvas:function(){var t=this.themeManager.getOptions("size"),i={},r=this._element();return i.width=u.isDefined(t.width)?t.width<0?0:t.width:r.width()||400,i.height=u.isDefined(t.height)?t.height<0?0:t.height:r.height()||400,n.extend({},i,this.themeManager.getOptions("margin"))},_createTracker:function(){var n=this,t=n.themeManager.getOptions("tooltip")||{};n.tracker&&n.tracker.dispose(),n.tracker=r.factory.createTracker({series:n.series,valueAxis:n._valueAxes,argumentAxis:n._argumentAxes,seriesSelectionMode:n.themeManager.getOptions("seriesSelectionMode"),pointSelectionMode:n.themeManager.getOptions("pointSelectionMode"),tooltipShown:n.option("tooltipShown"),tooltipHidden:n.option("tooltipHidden"),markerTrackerGroup:n._markerTrackerGroup,crossHairOptions:n._crossHairOptions,seriesTrackerGroup:n._seriesTrackerGroup,seriesGroup:n._seriesGroup,tooltipEnabled:t.enabled,renderer:n.renderer,events:{seriesClick:n.option("seriesClick"),pointClick:n.option("pointClick"),argumentAxisClick:n.option("argumentAxisClick"),seriesHover:n.option("seriesHover"),seriesSelected:n.option("seriesSelected"),pointHover:n.option("pointHover"),pointSelected:n.option("pointSelected"),legendClick:n.option("legendClick"),seriesSelectionChanged:n.option("seriesSelectionChanged"),pointSelectionChanged:n.option("pointSelectionChanged"),seriesHoverChanged:n.option("seriesHoverChanged"),pointHoverChanged:n.option("pointHoverChanged")}})},_updateTracker:function(){var t=this;t.tracker?t.tracker._reinit({series:t.series,valueAxis:t._valueAxes,argumentAxis:t._argumentAxes,legendGroup:t.legend.getTrackerGroup(),legendCallback:n.proxy(t.legend.getActionCallback,t.legend)}):t._createTracker()},_render:function(n){this._optionsInitializing=!1;var t=this,u=t.renderer,r=t.canvas,o=this._element(),e=t._calculateCanvas(),f=t.dirtyCanvas;if(n=n||{recreateCanvas:!0},n.recreateCanvas=n.recreateCanvas||!u.isInitialized(),!n.force&&f&&f.width===e.width&&f.height===e.height&&!t.hiddenContainer){t.stopRedraw=!0;return}if(clearTimeout(t.delayedRedraw),n.recreateCanvas&&(t.canvas=r=t._calculateCanvas()),r.width&&r.height&&o.is(":visible"))t.hiddenContainer=!1;else{t._incidentOccured("W2001",[t.NAME]),t.hiddenContainer=!0,t.stopRedraw=!0,u.detachContainer();return}n.recreateCanvas&&(u.recreateCanvas(t.canvas.width,t.canvas.height),u.draw(t._element()[0]),t._reappendLoadIndicator(),t._updateLoadIndicator(i,r.width,r.height),t._updateCanvasClipRect()),t.renderer.stopAllAnimations(!0),t.layoutManager.update(t),t._cleanGroups(n),t._saveDirtyCanvas()},_cleanGroups:function(n){var t=this;t._stripsGroup.detach(),t._constantLinesGroup.detach(),t._axesGroup.detach(),t._labelAxesGroup.detach(),t._labelsGroup.detach(),t._tooltipGroup.detach(),t._crossHairCursorGroup.detach(),(!n||n.drawLegend)&&(t._legendGroup.detach(),t._legendGroup.clear()),(!n||n.drawTitle)&&(t._titleGroup.detach(),t._titleGroup.clear()),t._stripsGroup.clear(),t._constantLinesGroup.clear(),t._axesGroup.clear(),t._labelAxesGroup.clear(),t._labelsGroup.clear(),t._tooltipGroup.clear(),t._crossHairCursorGroup.clear(),t._crosshairTrackerGroup.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=r.factory.createTitle(n.renderer,t,i,n._titleGroup)},_createTooltip:function(){var t=this,r=n.extend(!0,{canvasWidth:t.canvas.width,canvasHeight:t.canvas.height},t.themeManager.getOptions("tooltip")||{}),f,o=this.tracker.pointAtShownTooltip;!n.isFunction(r.customizeText)&&u.isDefined(r.customizeText)&&(t._incidentOccured("E2103",["customizeText"]),r.customizeText=i),t.tooltip?t.tooltip.update(r):t.tooltip=e.CoreFactory.createTooltip(r,t._tooltipGroup,t.renderer),t.tracker.setTooltip(t.tooltip),o&&(f=o.getTooltipCoords(),t.tooltip.move(~~f.x,~~f.y,f.offset),t.tooltip.show())},_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,asyncTrackersRendering:r.asyncTrackersRendering,trackerRenderingDelay:r.trackerRenderingDelay},t),u.isDefined(i.recreateCanvas)||(i.recreateCanvas=i.adjustAxes&&i.drawLegend&&i.drawTitle),i},_processRefreshData:function(t){var i=n.inArray(this._currentRefreshData,o),r=n.inArray(t,o);(!this._currentRefreshData||i>=0&&r=Math.abs(t[o]-t[f]))?(u.isDate(t[f])?(n.isNumeric(s)?(e[f]=new Date(t[f].valueOf()-i),e[o]=new Date(t[o].valueOf()+i)):(e[f]=u.addInterval(t[f],s,!0),e[o]=u.addInterval(t[o],s,!1)),r&&(u.correctDateWithUnitBeginning(e[o],s),u.correctDateWithUnitBeginning(e[f],s))):(e[f]=t[f]-i,e[o]=t[o]+i),t.addRange(e),!0):!1},_seriesVisibilityChanged:function(){this._processSeriesFamilies(),this._populateBusinessRange(),this.renderer.stopAllAnimations(!0),this._render({force:!0,asyncSeriesRendering:!1,asyncTrackersRendering:!1})},_populateBusinessRange:function(n){var t=this,h=[],c,a,v,s,y=t.themeManager,p=y.getOptions("rotated"),l,w=t._valueAxes,b={},k=t._argumentAxes,tt=y.getOptions("useAggregation"),d,g,it=t.paneAxis,rt=t._groupedSeries,e,nt;t._disposeObjectsInArray("businessRanges",["arg","val"]),e=new f.Range({rotated:!!p,minValueMargin:o,maxValueMargin:o}),r(w,function(n,t){b[t.name]=t}),r(it,function(y,b){r(b,function(b){var ut=[],et,ft,ot,it=new f.Range({isValueRange:!0,rotated:!!p,pane:y,axis:b,minValueMargin:o,maxValueMargin:o}),st,ht,ct;for(r(rt,function(n,t){t[0].pane===y&&t[0].axis===b&&(ut=t)}),r(w,function(n,t){if(t.pane===y&&t.name===b)return ot=t,!1}),et=ut&&ut.length?ut[0]:{},r(k,function(n,i){var r=i.options;r.type=et.argumentAxisType||r.type,r.argumentType=et.argumentType||r.argumentType,i.validate(!0,t._incidentOccured),e=e.addRange(i.getRangeData()),d=r.tickInterval,g=r.setTicksAtUnitBeginning,ht=i.calcInterval}),ft=ot.options,ft.type=et.valueAxisType||ft.type,ft.valueType=et.valueType||ft.valueType,ot.validate(!1,t._incidentOccured),ct=new f.Range(ot.getRangeData()),st=st||ft.valueType==="datetime"?"datetime":i,it=it.addRange(ct),a=it.min,v=it.max,s=0;s1&&t.themeManager.getOptions("synchronizeMultiAxes")&&r(f,function(n,t){var r=t.options.grid;i&&r&&r.visible?r.visible=!1:i=i?i:r&&r.visible})},r(i,function(n,t){e(n),r(t,function(t){var u=[];r(f,function(i,r){r.pane===n&&r.axis===t&&u.push(r)}),u.length&&h.push(u)})})},_cleanPanesClipRects:function(n){var t=this,i=t[n];r(i||[],function(n,t){t&&t.remove()}),t[n]=[]},_createPanes:function(){var i=this,t=i.option("panes"),e=0,f;return(t&&u.isArray(t)&&!t.length||n.isEmptyObject(t))&&(t=i.initialOption("panes")),i._cleanPanesClipRects("panesClipRects"),i._cleanPanesClipRects("financialPanesClipRects"),i.defaultPane=i.option("defaultPane"),t=n.isArray(t)?t:t?[t]:[],r(t,function(n,t){t.name=u.isDefined(t.name)?t.name:s+e++}),!i._doesPaneExists(t,i.defaultPane)&&t.length>0&&(f=t[t.length-1].name,i._incidentOccured("W2101",[i.defaultPane,f]),i.defaultPane=f),t=i.themeManager.getOptions("rotated")?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},_populateSeries:function(){var i=this,o=i.themeManager,p=!!o.getOptions("seriesTemplate"),l=p?i._templatedSeries:i.option("series"),w=n.isArray(l)?l:l?[l]:[],a=i.option("argumentAxis"),s=i.option("valueAxis"),b,t,h,k=o.getOptions("rotated"),c,d=n.map(i.panes,function(n){return n.name}),v,y,e;for(i.teamplateData=[],r(i._paneTrackerGroups||[],function(n,t){t.paneSeriesGroup.remove(),t.paneMarkerGroup.remove()}),i._paneTrackerGroups=[],r(i.panes,function(){var r=i.renderer.createGroup({"class":"dxc-pane-tracker"}),u=i.renderer.createGroup({"class":"dxc-pane-tracker"});i._paneTrackerGroups.push({paneSeriesGroup:r,paneMarkerGroup:u})}),i._disposeSeries(),i.series=[],o.resetPalette(),c=0;c.8&&(t=.8)):t=.5),t}var c=t.height-t.top-t.bottom,l=t.width-t.left-t.right,s=l/2+t.left,h=c/2+t.top,f=Math.min(l,c)/2,v=.7*f,y=w(i);u?n.each(i.getPoints(),function(n,t){if(i.getOptions().label.position==="inside")return!1;t._label.originalPosition=t._label.getPosition(),t._label.setPosition("outside")}):n.each(i.getPoints(),function(n,t){if(t._label.hasText()&&t.isVisible()){var i=t._label._getOutsideGroupLabelPosition(),r=a(i.x,i.x+i.width,s),u=a(i.y,i.y+i.height,h),e=Math.max(p(r,u)-o,v);f=Math.min(f,e)}t._label.setPosition(t._label.originalPosition)}),i.correctPosition({centerX:r.floor(s),centerY:r.floor(h),radiusInner:r.floor(f*y),radiusOuter:r.floor(f)})},p=function(n){return!!(n.x||n.y||n.width||n.height)},w=function(t,i){var e,o,r,u,f;return n.each(t,function(t,e){r=e.canvas,n.each(i,function(n,t){u="delta"+t,r[u]=Math.max(r[u]-(r[t.toLowerCase()]-r["original"+t]),0),r[u]>0&&(f=!0)})}),f},b=function(t,i){var r=i[0];return n.each(i,function(n,i){t===i.name&&(r=i)}),r},k=function(t,i,r){var h=this,u,d,s,g,e,o,f,v,c,l,y=[],k,a;for(n.each(i,function(t,i){n.extend(i.canvas,{deltaLeft:0,deltaRight:0,deltaTop:0,deltaBottom:0})}),a=0;a0&&(h.requireAxesRedraw=!0,u.deltaBottom+=o),o=u.originalTop-e.y,o>0&&(h.requireAxesRedraw=!0,u.deltaTop+=o)),v=e.width,y=["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)),y=["Bottom","Top"],v=e.height}!f.delta[s]&&u[c]>0&&(u[c]+=f.getMultipleAxesSpacing()),f.delta[s]=f.delta[s]||0,f.delta[s]+=u[c]*l,u[c]+=v}h.requireAxesRedraw=w(i,y)||h.requireAxesRedraw,this.stopDrawAxes=ut(i,r)},d=function(n){var t=this.chart;this.applyAxesLayout(n,t.panes,t.option("rotated"))},g=function(n){var t=this.chart;n.reverse(),this.applyAxesLayout(n,t.panes,t.option("rotated")),n.reverse()},nt=function(t){function e(i,r){n.each(i,function(n,i){var u=i.getLayoutOptions(),f=u.cutLayoutSide;t[f]-=u[r]})}var r=this,u=r.horizontalElements,f=r.verticalElements;e(u,"width"),i(u,t),e(f,"height"),i(f,t)},tt=function(t,i){var f=this,r=0,u=0;return n.each(t,function(n,t){var e=t.canvas,o=f._options.width-(e.width-e.left-e.right),s=f._options.height-(e.height-e.top-e.bottom);i?(r+=o>0?o:0,u=Math.max(s>0?s:0,u)):(r=Math.max(o>0?o:0,r),u+=s>0?s:0)}),r>0||u>0?{width:r,height:u}:!1},it=function(t,i,r,u,e,o){function l(t,i){t&&s[i]>0&&(n.each(t,function(n,t){var r=t.getBoundingRect();t.updateSize(),s[i]-=r[i]-t.getBoundingRect()[i]}),s[i]>0&&n.each(t,function(n,t){t.updateSize(!0)}))}function a(t,i,f){n.each(t,function(n,t){var e=t.getLayoutOptions(),h=e.cutLayoutSide,c=u.width-u.left-u.right,l=u.height-u.top-u.bottom,o={};t.setSize({width:c,height:l}),o[f]=0,o[i]=s[i],t.changeSize(o),r[h]-=e[i]-t.getLayoutOptions()[i],s[i]-=e[i]-t.getLayoutOptions()[i]})}var c=this,s,h=n.extend({},u),v=o?t:i,y=o?i:t;(s=this.needMoreSpaceForPanesCanvas(e,o),s)&&(s.height=f(u,["top","bottom"],s.height),s.width=f(u,["left","right"],s.width),r.top-=h.top-u.top,r.bottom-=h.bottom-u.bottom,r.left-=h.left-u.left,r.right-=h.right-u.right,a(c.horizontalElements,"width","height"),a(c.verticalElements,"height","width"),l(v,"width"),l(y,"height"))},rt=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})},ut=function(t,i){var s,h,r,u=0,f=0,e=0,o=0,c=0;return n.each(t,function(n,t){u=Math.max(u,t.canvas.deltaLeft),f=Math.max(f,t.canvas.deltaRight),e=Math.max(e,t.canvas.deltaTop),o=Math.max(o,t.canvas.deltaBottom)}),i?n.each(t,function(n,t){t.canvas.top+=e,t.canvas.bottom+=o,t.canvas.right+=t.canvas.deltaRight,t.canvas.left+=t.canvas.deltaLeft}):n.each(t,function(n,t){t.canvas.top+=t.canvas.deltaTop,t.canvas.bottom+=t.canvas.deltaBottom,t.canvas.right+=f,t.canvas.left+=u}),n.each(t,function(n,t){t.canvas.top+t.canvas.bottom>t.canvas.height&&(r=!0),t.canvas.left+t.canvas.right>t.canvas.width&&(r=!0)}),r};return{ctor:h,update:c,drawElements:a,updatePanesCanvases:v,applyVerticalAxesLayout:d,applyHorizontalAxesLayout:g,applyAxesLayout:k,applyPieChartSeriesLayout:y,dispose:l,updateDrawnElements:it,placeDrawnElements:nt,needMoreSpaceForPanesCanvas:tt,correctSizeElement:rt}}())}(jQuery,DevExpress),function(n,t){var l=t.viz.core.Range,u=t.utils,h=u.adjustValue,a=u.applyPrecisionByMinDelta,f=u.isDefined,o=Math,s=o.floor,c=o.max,r=n.each,p=.1,w=function(n){var t={};return r(n,function(n,i){var r=i.pane;t[r]||(t[r]=[]),t[r].push(i)}),t},b=function(n){var t;n.translator._originalBusinessRange?(t=new l(n.translator._originalBusinessRange),n.translator.updateBusinessRange(t),n.setRange(t)):n.translator._originalBusinessRange=new l(n.translator.getBusinessRange())},k={transform:function(n,t){return u.getLog(n,t)},addInterval:function(n,t){return n+t},getInterval:function(n,t){return t},adjustValue:s},d={transform:function(n,t){return u.raiseTo(n,t)},addInterval:function(n,t){return n*t},getInterval:function(n,t){return o.pow(n,t)},adjustValue:h},v=function(n,t){if(n.isLogarithmic){var i=n.logarithmicBase,f=n.tickValues,r,u=[],e;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),e=t.getInterval(i,n.tickInterval),r=t.adjustValue(t.transform(f[0],i));u.length0&&u.isNumber(t[0])&&s.type!=="discrete"&&(h=t.tickInterval,r=n.translator.getBusinessRange(),e=r.minVisible,o=r.maxVisible,c=s.synchronizedValue,e===o&&f(c)&&(e=t[0]-1,o=t[0]+1,h=1),i={axis:n,isLogarithmic:s.type==="logarithmic",logarithmicBase:r.base,tickValues:t,minValue:e,oldMinValue:e,maxValue:o,oldMaxValue:o,inverted:r.invert,tickInterval:h,synchronizedValue:c},r.stubData&&(i.stubData=!0,i.tickInterval=i.tickInterval||s.tickInterval,i.isLogarithmic=!1),v(i,k)),i})},nt=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,u=i.tickInterval;if(f(c))i.baseTickValue=i.invertedBaseTickValue=c,i.tickValues=[i.baseTickValue];else{if(r.length>1&&u){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(a(r[0],u,r[0]-u)),h--;while(r.lengthr.oldMinValue?(r.minValue-r.oldMinValue)/e(r):0,i=r.maxValuep&&(i.minValue=o.min(i.minValue,h(i.minValue)),i.maxValue=c(i.maxValue,h(i.maxValue)))})},ut=function(n){var t=!1;r(n,function(n,i){t=t||f(i.synchronizedValue)}),r(n,function(n,i){var f,e=i.tickInterval,r=i.tickValues,s=i.maxValue,o=i.minValue;if(t&&e){while(r[0]-e>=o)r.unshift(h(r[0]-e));for(f=r[r.length-1];(f=f+e)<=s;)r.push(u.isExponential(f)?h(f):u.applyPrecisionByMinDelta(o,e,f))}while(r[0]s)r.pop()})},ft=function(n){r(n,function(n,t){var r=t.axis,i=r.translator.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,f(t.stubData)&&(i.stubData=t.stubData),i.min>i.minVisible&&(i.min=i.minVisible),i.max0?(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(w(n),function(n,t){var i,u;if(t.length>1){if(i=g(t),i.length===0||!y(i))return;nt(i),tt(i),u=it(i),rt(i,u),et(i),ut(i),r(i,function(){v(this,d)}),ft(i)}})}}}(jQuery,DevExpress),function(n,t){var y=t.viz.charts,u=t.viz.core.series.helpers.consts.events,e=t.utils,c=e.isFunction,o=e.isDefined,r="multiple",s="single",h="allargumentpoints",l="allseriespoints",i=window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints||null,p=1e3,w=600,a=100,b=200,k=400,v="none",f=function(n){return(n+"").toLowerCase()};y.Tracker=t.Class.inherit({ctor:function(n){var t=this,i=n.events=n.events||{},f=function(n){return n&&n.call?function(){var t=this,i=arguments;setTimeout(function(){n.apply(t,i)})}:null};t._reinit(n),t.pointSelectionMode=t._prepareMode(n.pointSelectionMode),t.seriesSelectionMode=t._prepareMode(n.seriesSelectionMode),t.hoverStartDelay=0,t.sensitivity=7,t.pointSelectionMode===r?(t._releaseSelectedPoint=t._releaseSelectedPointMultiMode,t.selectedPoint=[]):t._releaseSelectedPoint=t._releaseSelectedPointSingleMode,t.seriesSelectionMode===r?(t._releaseSelectedSeries=t._releaseSelectedSeriesMultiMode,t.selectedSeries=[]):t._releaseSelectedSeries=t._releaseSelectedSeriesSingleMode,t.tooltipEnabled=n.tooltipEnabled,t.tooltipShown=n.tooltipShown,t.tooltipHidden=n.tooltipHidden,t.seriesClick=f(i.seriesClick),t.pointClick=f(i.pointClick),t.legendClick=f(i.legendClick),t.argumentAxisClick=f(i.argumentAxisClick),t.seriesHover=f(i.seriesHover),t.seriesSelected=f(i.seriesSelected),t.pointHover=f(i.pointHover),t.seriesSelectionChanged=f(i.seriesSelectionChanged),t.pointSelectionChanged=f(i.pointSelectionChanged),t.seriesHoverChanged=f(i.seriesHoverChanged),t.pointHoverChanged=f(i.pointHoverChanged),t.pointSelected=f(i.pointSelected),t.renderer=n.renderer,t.seriesTrackerGroup=n.seriesTrackerGroup,t.markerTrackerGroup=n.markerTrackerGroup,t.seriesGroup=n.seriesGroup;t.seriesGroup.on(u.selectSeries,{tracker:t},t._selectSeries);t.seriesGroup.on(u.deselectSeries,{tracker:t},t._deselectSeries);t.seriesGroup.on(u.selectPoint,{tracker:t},t._selectPoint);t.seriesGroup.on(u.deselectPoint,{tracker:t},t._deselectPoint);t.seriesGroup.on(u.showPointTooltip,{tracker:t},t._showPointTooltip);t.seriesGroup.on(u.hidePointTooltip,{tracker:t},t._hidePointTooltip);t.crossHairOptions=n.crossHairOptions},_clean:function(){var n=this;n.selectedPoint=n.pointSelectionMode===r?[]:null,n.selectedSeries=n.seriesSelectionMode===r?[]:null,n.hoveredPoint=null,n.hoveredSeries=null,n._hideTooltip(n.pointAtShownTooltip),n._clearTimeouts()},_reinit:function(t){var i=this;t=t||{},i.storedSeries!==t.series?(i.storedSeries=t.series||[],i._clean()):o(i.storedSeries)&&(i._clearPointSelection(),i._clearHover(i),i._clearTimeouts()),i.argumentAxis=t.argumentAxis||[],i.legendGroup=t.legendGroup,i.legendCallback=t.legendCallback||n.noop},_clearTimeouts:function(){var n=this,t=clearTimeout;t(n.tooltipHoldTimeout),t(n.cmpCoordTimeout),t(n.hoverStartTimeOut),t(n.hoverHoldTimeOut)},dispose:function(){var t=this;t._clearTimeouts(),clearTimeout(t.unlockMouseTimer),clearTimeout(t.lockClickTimer),n.each(t.argumentAxis,function(n,t){t._axisElementsGroup&&t._axisElementsGroup.off()}),t.seriesTrackerGroup.off(),t.markerTrackerGroup.off(),t.legendGroup&&t.legendGroup.off(),t.seriesGroup.off(),t.rootTracker&&t.rootTracker.off(),t.argumentAxis=null,t.seriesTrackerGroup=null,t.markerTrackerGroup=null,t.legendGroup=null,t.legendCallback=null,t.seriesGroup=null,t.crossHairOptions=null,t.selectedPoint=null,t.selectedSeries=null,t.hoveredSeries=null,t.hoveredPoint=null,t.storedSeries=null,t.argumentAxis=null,t.hoveredObject=null,t.pointAtShownTooltip=null},_prepareMode:function(n){return n=(n||"").toLowerCase(),n=n!==s&&n!==r?s:n},_prepare:function(t){var i=this;i.rootTracker=i.renderer.getRoot(),n.each(i.argumentAxis,function(n,t){t._axisElementsGroup&&i._eventHandler(t._axisElementsGroup,{parser:i._getOptionsAxis,condition:i._axisCondition,execute:i._axisEvent},{tracker:i,axis:t})}),i._eventHandler(i.seriesTrackerGroup,{parser:i._getOptionsPointSeries,condition:i._seriesCondition,execute:i._seriesEvent},{tracker:i}),i._eventHandler(i.markerTrackerGroup,{parser:i._getOptionsPointSeries,condition:i._pointCondition,execute:i._pointEvent},{tracker:i}),i.legendGroup&&i._eventHandler(i.legendGroup,{parser:i._getLegendData(t),condition:i._seriesCondition,execute:i._getLegendEvent(t)},{tracker:i}),i._eventHandler(i.rootTracker,{parser:i._getOptionsCrossHair,execute:i._crossHairEvent},{tracker:i})},_getLegendData:function(t){return function(i){var f=n(i.target),u=f.data("itemIndex"),r=i.data.tracker,o=e.isNumber(u)&&f.data("mode");return i.type==="mousemove"?[r,i.pageX,i.pageY,i.offsetX,i.offsetY]:e.isNumber(u)?t==="pieChart"?[r,r.storedSeries[0].getPoints()[u],o,i]:[r,r.storedSeries[u],o,i]:null}},_getLegendEvent:function(t){var r=this,i;return i=t==="pieChart"?n.extend({},this._pointEvent,{touchend:function(n,t,i,r){n.showHoldTooltip||n._legendClick(n,t,!0,r)||n._pointClick(n,t,!0,r),clearTimeout(n.tooltipHoldTimeout),n._clickLock(n),n._clearHover(n)},click:function(n,t,i,r){n._legendClick(n,t,!1,r)||n._pointClick(n,t,!1,r)}}):n.extend({},this._seriesEvent,{click:function(n,t,i,r){n._legendClick(n,t,!1,r)||n._seriesClick(n,t,!1,r)},touchend:function(n,t,i,r){n._legendClick(n,t,!0,r)||n._seriesClick(n,t,!0,r),n._clickLock(n)}})},_eventHandler:function(n,t,i){var r=this._designerHandlers(t);n.off(".dxc-tracker");n.on(r,i)},_designerHandlers:function(t){var r={},u=t.parser,i=t.condition,f=t.execute,e=function(n,t){i&&i[n]===null||(r[n+".dxc-tracker"]=function(r){var f=u?u(r):r;f&&(i&&i[n]&&i[n].call?i[n].apply(null,f.concat([t])):t.apply(null,f))})};return n.each(f,e),r},_getOptionsCrossHair:function(n){var t=n.data.tracker,i=e.getRootOffset(t.renderer),r=n.pageX-i.left,u=n.pageY-i.top;return[t,r,u]},_getOptionsPointSeries:function(t){var i=n(t.target).data("point")||n(t.target).data("series"),r=t.data.tracker,u=i&&f(n(t.target).data("mode")||i.getOptions().hoverMode);return t.type==="mousemove"?[r,t.pageX,t.pageY,t.offsetX,t.offsetY]:i?[r,i,u,t]:null},_getOptionsAxis:function(t){var u=t.data.tracker,i=t.data.axis,f=i.options.hoverMode,r;return(r=t.target.tagName==="tspan"?n(t.target).parent().data("argument"):n(t.target).data("argument"),t.type==="mousemove")?[u,t.pageX,t.pageY]:i?[u,i,f,r,t]:null},_pointEvent:{mouseover:function(n,t,i){n.mouseLocked||(n._setHoveredPoint(t,i),n.tooltipEnabled&&t&&t.getOptions()&&n._compareCoords(n,function(){n._showTooltip(n.tooltip,t)}))},mouseout:function(n){n.mouseLocked||n._clearHover(n)},touchmove:function(n){clearTimeout(n.tooltipHoldTimeout),n.tooltipHoldTimeout=null,n.showHoldTooltip=!0},mousemove:function(n,t,i){n._setCurCoords(n,t,i)},touchstart:function(n,t){n.showHoldTooltip=!1,n._mouseLock(n),n.tooltipEnabled&&(n.tooltipHoldTimeout=setTimeout(function(){n.showHoldTooltip=!0,n._showTooltip(n.tooltip,t)},k))},touchend:function(n,t,i,r){n.showHoldTooltip||n._pointClick(n,t,!0,r),clearTimeout(n.tooltipHoldTimeout),n._clickLock(n),n._clearHover(n)},click:function(n,t,i,r){n._pointClick(n,t,!1,r)},mousedown:function(n,t,i){n._pointEvent.touchstart(n,t,i)},mouseup:function(n,t,i,r){n._pointEvent.touchend(n,t,i,r)}},_pointCondition:{mouseover:function(n,t,i,r,u){if(i===h&&n.hoveredPoint&&n.hoveredPoint.argument===t.argument){n.hoverHoldTimeOut=clearTimeout(n.hoverHoldTimeOut),n.hoveredObject=t,u(n,t,i);return}n._setHover(n,t,i,u)},mouseout:function(n,t,i,r,u){n._releaseHover(n,t,i,u)},touchstart:!i,touchend:!i,mousedown:i,mouseup:i},_seriesEvent:{mouseover:function(n,t,i){n.mouseLocked||n._setHoveredSeries(t,i)},mouseout:function(n){n._clearHover(n)},mousemove:function(n,t,i){n._setCurCoords(n,t,i)},touchstart:function(n){n._mouseLock(n)},touchend:function(n,t,i,r){n._seriesClick(n,t,!0,r),n._clickLock(n)},click:function(n,t,i,r){n._seriesClick(n,t,!1,r)},mousedown:function(n,t,i){n._seriesEvent.touchstart(n,t,i)},mouseup:function(n,t,i){n._seriesEvent.touchend(n,t,i)}},_crossHairEvent:{mousemove:function(n,t,i){if(n.eventType){if(n.eventType==="touch")return;n.eventType==="mouse"&&(n._moveCrossHair(n,t,i),n.eventType=null)}else{n.eventType="mouse";return}},mouseout:function(n){n._hideCrossHair(n),n.eventType=null},touchstart:function(n){n.eventType="touch"},touchend:function(n){n.eventType=null},mousedown:function(n,t,i){n._crossHairEvent.touchstart(n,t,i)},mouseup:function(n,t,i){n._crossHairEvent.touchend(n,t,i)}},_hideCrossHair:function(n){if(n.crossHairOptions){var t=n.crossHairOptions.horizontalLine,i=n.crossHairOptions.verticalLine;t&&t.applySettings({visibility:"hidden"}),i&&i.applySettings({visibility:"hidden"})}},_moveCrossHair:function(n,t,i){if(n.crossHairOptions){var u=n.crossHairOptions.horizontalLine,f=n.crossHairOptions.verticalLine,r=n.crossHairOptions.canvas||{};t>r.left&&tr.top&&i=u.length?i:u}}(DevExpress,jQuery),function(n,t,i){function h(n,t){var i=0,r=t.length-1,e=t[i]-t[r]<0,u,f=-1;for(t[i]===n&&(f=i),t[r]===n&&(f=r);f<0&&i<=r;)u=~~((i+r)/2),t[u]===n?f=u:t[u]-n<0===e?i=u+1:r=u-1;return f}function tt(n,t){return n-t}function it(n,t){return t-n}function rt(n,t){var i,r,f;return n>t&&(f=t,t=n,n=f),i=0<=n&&n<=180?u(90-n):u(270-n),i=n<90&&900&&n.majorTick.width>0,t._minorTicksEnabled=n.minorTick.visible&&n.minorTick.length>0&&n.minorTick.width>0,t._labelsEnabled=n.label.visible&&r(n.label.indentFromTick)!==0,t._setupOrientation()},_getSampleText:function(){for(var n=this,f=n._translator.getDomain(),c=[],t,e=0,o="",s=v.getTicks({min:f[0],max:f[1],tickInterval:n._options.majorTick.tickInterval>0?r(n._options.majorTick.tickInterval):i,screenDelta:n._options.approximateScreenDelta,gridSpacingFactor:n._getGridSpacingFactor().majorTicks}),u=0,h=s.length;ue&&(o=t)&&(e=t.length);return o},_measureText:function(){var n=this,i=n._getSampleText(),r=n._renderer.createText(i,0,0,{font:n._options.label.font}).append(n._labels),t=r.getBBox();r.remove(),n._textVerticalOffset=-t.y-t.height/2,n._textWidth=t.width,n._textHeight=t.height,n._textLength=i.length},_formatValue:function(n){var i=this._options.label,t=nt.format(n,i.format,i.precision);return k(i.customizeText)&&(t={value:n,valueText:t},t=y(i.customizeText.call(t,t))),t},_setupOrientation:null,_getCustomValues:function(n,t){var u=this._translator,i=[];return d(n)&&(i=e(n,function(n){return p(u.translate(n))?r(n):null}).sort(t),i=e(i,function(n,t){return n!==i[t-1]?n:null})),i},_generateTicks:function(n){var t=this,u={tickInterval:t._options.majorTick.tickInterval>0?r(t._options.majorTick.tickInterval):i,gridSpacingFactor:t._getGridSpacingFactor().majorTicks,numberMultipliers:[1,2,5]},f={tickInterval:t._options.minorTick.tickInterval>0?r(t._options.minorTick.tickInterval):i,gridSpacingFactor:t._getGridSpacingFactor().minorTicks,numberMultipliers:[1,2,5]};return t._options.majorTick.useTicksAutoArrangement&&(u.useTicksAutoArrangement=!0,u.renderer=t._renderer,u.translator=t._translator,u.getCustomAutoArrangementStep=function(i){return t._getCuttingFactor(i.length,{width:t._textWidth,height:t._textHeight},n)}),v.getFullTicks(t._translator.getDomain()[0],t._translator.getDomain()[1],t._getScreenDelta(n),u,f)},_getTicks:function(n){var t=this,f=t._translator.getDomain()[0]o||o>1?90:u(v-b(o)/s),p=k0&&u>0?[f,r,e,r,e,u,f,u]:null},_moveTick:function(n,t,i){n.rotate(g(t.position),i.x,i.y)},_getLabelPosition:function(n,t,i){var r=i.radius+n*(t>=0?this._outer:-this._inner)+t;return r>0?r:null},_getLabelAlign:function(){return"center"},_getLabelOptions:function(n,t,i,r,u){var f=l(r.position),e=u.x+f.cos*t,o=u.y-f.sin*t,s=f.cos*(n.length/this._textLength)*this._textWidth/2,h=f.sin*this._textHeight/2;return i>0?(e+=s,o-=h):(e-=s,o+=h),{x:e,y:o}},measure:function(n){var t=this,i={min:n.radius,max:n.radius};return t._majorTicksEnabled&&(i.min=o(i.min,n.radius-t._inner*t._options.majorTick.length),i.max=f(i.max,n.radius+t._outer*t._options.majorTick.length)),t._minorTicksEnabled&&(i.min=o(i.min,n.radius-t._inner*t._options.minorTick.length),i.max=f(i.max,n.radius+t._outer*t._options.minorTick.length)),t._labelsEnabled&&(t._options.label.indentFromTick>0?(i.horizontalOffset=r(t._options.label.indentFromTick)+t._textWidth,i.verticalOffset=r(t._options.label.indentFromTick)+t._textHeight):(i.horizontalOffset=i.verticalOffset=0,i.min-=-r(t._options.label.indentFromTick)+f(t._textWidth,t._textHeight)),i.inverseHorizontalOffset=t._textWidth/2,i.inverseVerticalOffset=t._textHeight/2),i}}),n.viz.gauges.__internals.LinearScale=n.viz.gauges.__internals.BaseScale.inherit({_getGridSpacingFactor:function(){return{majorTicks:25,minorTicks:5}},_getScreenDelta:function(){return u(this._translator.getCodomainEnd()-this._translator.getCodomainStart())},_getCuttingFactor:function(n,t){var r=this,e=r.vertical?t.height:t.width,o=u(r._translator.getCodomainEnd()-r._translator.getCodomainStart());return f(1,c(n*e/(o+e)))},_setupOrientation:function(){var n=this;if(n.vertical=n._options.vertical,n._inner=n._outer=0,n.vertical)switch(n._options.horizontalOrientation){case"left":n._inner=1;break;case"center":n._inner=n._outer=.5;break;default:n._outer=1}else switch(n._options.verticalOrientation){case"top":n._inner=1;break;case"middle":n._inner=n._outer=.5;break;default:n._outer=1}},_getTickPoints:function(n,t,i){var r=this,u,f,e,o;return r.vertical?(u=i.x-n*r._inner,f=i.x+n*r._outer,e=-t/2,o=+t/2):(u=-t/2,f=+t/2,e=i.y-n*r._inner,o=i.y+n*r._outer),[u,e,f,e,f,o,u,o]},_moveTick:function(n,t){var r=0,u=0;this.vertical?u=t.position:r=t.position,n.move(r,u)},_getLabelPosition:function(n,t,i){var r=n*(t>=0?this._outer:-this._inner)+t;return r+=this.vertical?i.x:i.y+(t>=0?1:-1)*this._textVerticalOffset},_getLabelAlign:function(n){return this.vertical?n>0?"left":"right":"center"},_getLabelOptions:function(n,t,i,r){var f,e;return this.vertical?(f=t,e=r.position):(f=r.position,e=t),{x:f,y:e}},measure:function(n){var t=this,u=n[t.vertical?"x":"y"],i={min:u,max:u};return t._majorTicksEnabled&&(i.min=o(i.min,u-t._inner*t._options.majorTick.length),i.max=f(i.max,u+t._outer*t._options.majorTick.length)),t._minorTicksEnabled&&(i.min=o(i.min,u-t._inner*t._options.minorTick.length),i.max=f(i.max,u+t._outer*t._options.minorTick.length)),t._labelsEnabled&&(t._options.label.indentFromTick>0?i.max+=+r(t._options.label.indentFromTick)+t[t.vertical?"_textWidth":"_textHeight"]:i.min-=-r(t._options.label.indentFromTick)+t[t.vertical?"_textWidth":"_textHeight"],i.indent=t[t.vertical?"_textHeight":"_textWidth"]/2),i}})}(DevExpress,jQuery),function(n,t,i){var r=isFinite,u=Number,f=t.extend;n.viz.gauges.__internals.BaseIndicator=n.Class.inherit({setup:function(n){var t=this;return t._renderer=n.renderer,t._translator=n.translator,t._owner=n.owner,t._tracker=n.tracker,t._className=n.className,t._options={},t._rootElement=t._createRoot(),t._trackerElement=t._createTracker(),t},dispose:function(){var n=this;return n._renderer=n._owner=n._translator=n._tracker=n._options=n._rootElement=n._trackerElement=null,n},_setupAnimation:function(){var n=this;n._options.animation&&(n._animation={step:function(t){n._actualValue=n._animation.start+n._animation.delta*t,n._actualPosition=n._translator.translate(n._actualValue),n._move()},duration:n._options.animation.duration>0?u(n._options.animation.duration):0,easing:n._options.animation.easing})},_runAnimation:function(n){var i=this,t=i._animation;t.start=i._actualValue,t.delta=n-i._actualValue,i._rootElement.animate({_:0},{step:t.step,duration:t.duration,easing:t.easing})},_createRoot:function(){return this._renderer.createGroup({"class":this._className})},_createTracker:function(){return this._renderer.createArea()},_getTrackerSettings:function(){},clean:function(){var n=this;return n._animation&&n._rootElement.stopAnimation(),n._rootElement.detach(),n._rootElement.clear(),n._clear(),n._tracker.detach(n._trackerElement),n._options=n.enabled=n._animation=null,n},render:function(n){var t=this;return t.type=n.type,t._options=n,t._actualValue=t._currentValue=t._translator.adjust(t._options.currentValue),t.enabled=t._isEnabled(),t.enabled&&(t._setupAnimation(),t._rootElement.applySettings({fill:t._options.color}).append(t._owner),t._tracker.attach(t._trackerElement,t,t._trackerInfo)),t},resize:function(n){var t=this;return t._rootElement.clear(),t._clear(),t.visible=t._isVisible(n),t.visible&&(f(t._options,n),t._actualPosition=t._translator.translate(t._actualValue),t._render(),t._trackerElement.applySettings(t._getTrackerSettings()),t._move()),t},value:function(n,t){var u=this,f;return n!==i?(f=u._translator.adjust(n),u._currentValue!==f&&r(f)&&(u._currentValue=f,u.visible&&(u._animation&&!t?u._runAnimation(f):(u._actualValue=f,u._actualPosition=u._translator.translate(f),u._move()))),u):u._currentValue},_isEnabled:null,_isVisible:null,_render:null,_clear:null,_move:null})}(DevExpress,jQuery),function(n){var i=n.viz.core.TextCloud,r=n.viz.gauges.__internals.formatValue,u=n.viz.gauges.__internals.getSampleText;n.viz.gauges.__internals.BaseTextCloudMarker=n.viz.gauges.__internals.BaseIndicator.inherit({_move:function(){var n=this,u,t=new i,f=n._getTextCloudOptions();n._text.applySettings({text:r(n._actualValue,n._options.text)}),u=n._text.getBBox(),t.setup({x:f.x,y:f.y,textWidth:u.width,textHeight:u.height,horMargin:n._options.horizontalOffset,verMargin:n._options.verticalOffset,tailLength:n._options.arrowLength,type:f.type}),n._text.applySettings({x:t.cx(),y:t.cy()+n._textVerticalOffset}),n._cloud.applySettings({points:t.points()}),n._trackerElement&&n._trackerElement.applySettings({points:t.points()})},_measureText:function(){var n=this,i,r,t;n._textVerticalOffset||(i=n._createRoot().append(n._owner),r=n._renderer.createText(u(n._translator,n._options.text),0,0,{align:"center",font:n._options.text.font}).append(i),t=r.getBBox(),i.remove(),n._textVerticalOffset=-t.y-t.height/2,n._textWidth=t.width,n._textHeight=t.height,n._textFullWidth=n._textWidth+2*n._options.horizontalOffset,n._textFullHeight=n._textHeight+2*n._options.verticalOffset)},_render:function(){var n=this;n._measureText(),n._cloud=n._cloud||n._renderer.createArea().append(n._rootElement),n._text=n._text||n._renderer.createText().append(n._rootElement),n._text.applySettings({align:"center",font:n._options.text.font})},_clear:function(){delete this._cloud,delete this._text},getTooltipParameters:function(){var n=this._getTextCloudOptions();return{x:n.x,y:n.y,value:this._currentValue,color:this._options.color}}})}(DevExpress),function(n,t){var r=t.extend,u=n.viz.gauges.__internals.formatValue,f=n.viz.gauges.__internals.getSampleText;n.viz.gauges.__internals.BaseRangeBar=n.viz.gauges.__internals.BaseIndicator.inherit({_measureText:function(){var n=this,i,r,t;n._hasText=n._isTextVisible(),n._hasText&&!n._textVerticalOffset&&(i=n._createRoot().append(n._owner),r=n._renderer.createText(f(n._translator,n._options.text),0,0,{"class":"dxg-text",align:"center",font:n._options.text.font}).append(i),t=r.getBBox(),i.remove(),n._textVerticalOffset=-t.y-t.height/2,n._textWidth=t.width,n._textHeight=t.height)},_move:function(){var n=this;n._updateBarItemsPositions(),n._hasText&&(n._text.applySettings({text:u(n._actualValue,n._options.text)}),n._updateTextPosition(),n._updateLinePosition())},_updateBarItems:function(){var n=this,r=n._options,t,i;n._setBarSides(),n._startPosition=n._translator.translate(n._translator.getDomainStart()),n._endPosition=n._translator.translate(n._translator.getDomainEnd()),n._basePosition=n._translator.translate(r.baseValue),n._space=n._getSpace(),t=r.backgroundColor||"none",t!=="none"&&n._space>0?i=r.containerBackgroundColor||"none":(n._space=0,i="none"),n._backItem1.applySettings({fill:t}),n._backItem2.applySettings({fill:t}),n._spaceItem1.applySettings({fill:i}),n._spaceItem2.applySettings({fill:i})},_getSpace:function(){return 0},_updateTextItems:function(){var n=this;n._hasText?(n._line=n._line||n._renderer.createPath([],{"class":"dxg-main-bar"}).append(n._rootElement),n._text=n._text||n._renderer.createText("",0,0,{"class":"dxg-text"}).append(n._rootElement),n._text.applySettings({align:n._getTextAlign(),font:n._getFontOptions()}),n._setTextItemsSides()):(n._line&&(n._line.remove(),delete n._line),n._text&&(n._text.remove(),delete n._text))},_isTextVisible:function(){return!1},_getTextAlign:function(){return"center"},_getFontOptions:function(){var t=this._options,n=t.text.font;return n&&n.color||(n=r({},n,{color:t.color})),n},_updateBarItemsPositions:function(){var n=this,t=n._getPositions();n._backItem1.applySettings(n._buildItemSettings(t.start,t.back1)),n._backItem2.applySettings(n._buildItemSettings(t.back2,t.end)),n._spaceItem1.applySettings(n._buildItemSettings(t.back1,t.main1)),n._spaceItem2.applySettings(n._buildItemSettings(t.main2,t.back2)),n._mainItem.applySettings(n._buildItemSettings(t.main1,t.main2)),n._trackerElement&&n._trackerElement.applySettings(n._buildItemSettings(t.main1,t.main2))},_render:function(){var n=this;n._measureText(),n._backItem1||(n._backItem1=n._createBarItem(),n._backItem1.applySettings({"class":"dxg-back-bar"})),n._backItem2||(n._backItem2=n._createBarItem(),n._backItem2.applySettings({"class":"dxg-back-bar"})),n._spaceItem1||(n._spaceItem1=n._createBarItem(),n._spaceItem1.applySettings({"class":"dxg-space-bar"})),n._spaceItem2||(n._spaceItem2=n._createBarItem(),n._spaceItem2.applySettings({"class":"dxg-space-bar"})),n._mainItem||(n._mainItem=n._createBarItem(),n._mainItem.applySettings({"class":"dxg-main-bar"})),n._updateBarItems(),n._updateTextItems()},_clear:function(){var n=this;delete n._backItem1,delete n._backItem2,delete n._spaceItem1,delete n._spaceItem2,delete n._mainItem,delete n._hasText,delete n._line,delete n._text},getTooltipParameters:function(){var n=this._getTooltipPosition();return{x:n.x,y:n.y,value:this._currentValue,color:this._options.color,offset:0}}})}(DevExpress,jQuery),function(n){var r=n.viz.gauges.__internals.circularNeedles,i=Number;r.SimpleIndicator=n.viz.gauges.__internals.BaseIndicator.inherit({_move:function(){var t=this,i=t._options,r=n.utils.convertAngleToRendererSpace(t._actualPosition);t._rootElement.rotate(r,i.x,i.y),t._trackerElement&&t._trackerElement.rotate(r,i.x,i.y)},_isEnabled:function(){return this._options.width>0},_isVisible:function(n){return n.radius-i(this._options.indentFromCenter)>0},_getTrackerSettings:function(){var n=this._options,u=n.x,f=n.y-(n.radius+i(n.indentFromCenter))/2,t=n.width/2,r=(n.radius-i(n.indentFromCenter))/2;return t>10||(t=10),r>10||(r=10),{points:[u-t,f-r,u-t,f+r,u+t,f+r,u+t,f-r]}},_renderSpindle:function(){var n=this,t=n._options,r;t.spindleSize>0&&(r=i(t.spindleGapSize)||0,r>0&&(r=r<=t.spindleSize?r:i(t.spindleSize)),n._spindleOuter=n._spindleOuter||n._renderer.createCircle().append(n._rootElement),n._spindleInner=n._spindleInner||n._renderer.createCircle().append(n._rootElement),n._spindleOuter.applySettings({"class":"dxg-spindle-border",cx:t.x,cy:t.y,r:t.spindleSize/2}),n._spindleInner.applySettings({"class":"dxg-spindle-hole",cx:t.x,cy:t.y,r:r/2,fill:t.containerBackgroundColor}))},_render:function(){var n=this;n._renderPointer(),n._renderSpindle()},_clearSpindle:function(){delete this._spindleOuter,delete this._spindleInner},_clearPointer:function(){delete this._element},_clear:function(){this._clearPointer(),this._clearSpindle()},measure:function(n){var t={max:n.radius};return this._options.indentFromCenter<0&&(t.inverseHorizontalOffset=t.inverseVerticalOffset=-i(this._options.indentFromCenter)),t},getTooltipParameters:function(){var t=this._options,r=n.utils.getCosAndSin(this._actualPosition),u=(t.radius+i(t.indentFromCenter))/2;return{x:t.x+r.cos*u,y:t.y-r.sin*u,value:this._currentValue,color:t.color,offset:t.width/2}}}),r.RectangleNeedle=r.SimpleIndicator.inherit({_renderPointer:function(){var t=this,n=t._options,u=n.y-n.radius,f=n.y-i(n.indentFromCenter),r=n.x-n.width/2,e=r+i(n.width);t._element=t._element||t._renderer.createArea().append(t._rootElement),t._element.applySettings({points:[r,f,r,u,e,u,e,f]})}}),r.TriangleNeedle=r.SimpleIndicator.inherit({_renderPointer:function(){var t=this,n=t._options,u=n.y-n.radius,r=n.y-i(n.indentFromCenter),f=n.x-n.width/2,e=n.x+n.width/2;t._element=t._element||t._renderer.createArea().append(t._rootElement),t._element.applySettings({points:[f,r,n.x,u,e,r]})}}),r.TwoColorRectangleNeedle=r.SimpleIndicator.inherit({_renderPointer:function(){var n=this,t=n._options,f=t.x-t.width/2,e=t.x+t.width/2,o=t.y-t.radius,s=t.y-i(t.indentFromCenter),h=i(t.secondFraction)||0,r,u;h>=1?r=u=s:h<=0?r=u=r:(u=o+(s-o)*h,r=u+t.space),n._firstElement=n._firstElement||n._renderer.createArea().append(n._rootElement),n._spaceElement=n._spaceElement||n._renderer.createArea().append(n._rootElement),n._secondElement=n._secondElement||n._renderer.createArea().append(n._rootElement),n._firstElement.applySettings({points:[f,s,f,r,e,r,e,s]}),n._spaceElement.applySettings({points:[f,r,f,u,e,u,e,r],"class":"dxg-hole",fill:t.containerBackgroundColor}),n._secondElement.applySettings({points:[f,u,f,o,e,o,e,u],"class":"dxg-part",fill:t.secondColor})},_clearPointer:function(){delete this._firstElement,delete this._secondElement,delete this._spaceElement}})}(DevExpress),function(n){var i=n.viz.gauges.__internals.linearNeedles,r=Number;i.SimpleIndicator=n.viz.gauges.__internals.BaseIndicator.inherit({_move:function(){var n=this,t=n._actualPosition-n._zeroPosition;n._rootElement.move(n.vertical?0:t,n.vertical?t:0),n._trackerElement&&n._trackerElement.move(n.vertical?0:t,n.vertical?t:0)},_isEnabled:function(){return this.vertical=this._options.vertical,this._options.length>0&&this._options.width>0},_isVisible:function(){return!0},_getTrackerSettings:function(){var n=this._options,r,u,f,e,t=n.width/2,i=n.length/2,o=this._zeroPosition;return t>10||(t=10),i>10||(i=10),this.vertical?(r=n.x-i,u=n.x+i,f=o+t,e=o-t):(r=o-t,u=o+t,f=n.y+i,e=n.y-i),{points:[r,f,r,e,u,e,u,f]}},_render:function(){var n=this;n._zeroPosition=n._translator.getCodomainStart()},_clear:function(){delete this._element},measure:function(n){var t=this.vertical?n.x:n.y;return{min:t-this._options.length/2,max:t+this._options.length/2}},getTooltipParameters:function(){var n=this,t=n._options,r=n._actualPosition,i={x:r,y:r,value:n._currentValue,color:t.color,offset:t.width/2};return n.vertical?i.x=t.x:i.y=t.y,i}}),i.RectangleNeedle=i.SimpleIndicator.inherit({_render:function(){var t=this,n=t._options,i,r,u,f,e;t.callBase(),i=t._zeroPosition,t.vertical?(r=n.x-n.length/2,u=n.x+n.length/2,f=i+n.width/2,e=i-n.width/2):(r=i-n.width/2,u=i+n.width/2,f=n.y+n.length/2,e=n.y-n.length/2),t._element=t._element||t._renderer.createArea().append(t._rootElement),t._element.applySettings({points:[r,f,r,e,u,e,u,f]})}}),i.RhombusNeedle=i.SimpleIndicator.inherit({_render:function(){var n=this,t=n._options,i,r,u,f;n.callBase(),n.vertical?(i=t.x,r=n._zeroPosition,u=t.length/2||0,f=t.width/2||0):(i=n._zeroPosition,r=t.y,u=t.width/2||0,f=t.length/2||0),n._element=n._element||n._renderer.createArea().append(n._rootElement),n._element.applySettings({points:[i-u,r,i,r-f,i+u,r,i,r+f]})}}),i.CircleNeedle=i.SimpleIndicator.inherit({_render:function(){var n=this,t=n._options,i,r,u;n.callBase(),n.vertical?(i=t.x,r=n._zeroPosition):(i=n._zeroPosition,r=t.y),u=t.length/2||0,n._element=n._element||n._renderer.createCircle().append(n._rootElement),n._element.applySettings({cx:i,cy:r,r:u})}})}(DevExpress),function(n){var r=n.viz.gauges.__internals.circularMarkers,i=Number;r.TriangleMarker=n.viz.gauges.__internals.circularNeedles.SimpleIndicator.inherit({_isEnabled:function(){return this._options.length>0&&this._options.width>0},_isVisible:function(n){return n.radius>0},_render:function(){var t=this,n=t._options,u=n.x,f=n.y-n.radius,e=n.width/2||0,o=f-i(n.length),r;t._element=t._element||t._renderer.createArea().append(t._rootElement),r={points:[u,f,u-e,o,u+e,o],stroke:"none",strokeWidth:0},n.space>0&&(r.strokeWidth=Math.min(n.space,n.width/4)||0,r.stroke=r.strokeWidth>0?n.containerBackgroundColor||"none":"none"),t._element.applySettings(r)},_clear:function(){delete this._element},_getTrackerSettings:function(){var n=this._options,r=n.x,u=n.y-n.radius-n.length/2,t=n.width/2,i=n.length/2;return t>10||(t=10),i>10||(i=10),{points:[r-t,u-i,r-t,u+i,r+t,u+i,r+t,u-i]}},measure:function(n){return{min:n.radius,max:n.radius+i(this._options.length)}},getTooltipParameters:function(){var t=this._options,r=n.utils.getCosAndSin(this._actualPosition),u=t.radius+t.length/2,i=this.callBase();return i.x=t.x+r.cos*u,i.y=t.y-r.sin*u,i.offset=t.length/2,i}}),r.TextCloudMarker=n.viz.gauges.__internals.BaseTextCloudMarker.inherit({_isEnabled:function(){return!0},_isVisible:function(n){return n.radius>0},_getTextCloudOptions:function(){var t=this,r=n.utils.getCosAndSin(t._actualPosition),i=n.utils.normalizeAngle(t._actualPosition);return{x:t._options.x+r.cos*t._options.radius,y:t._options.y-r.sin*t._options.radius,type:i>270?"left-top":i>180?"top-right":i>90?"right-bottom":"bottom-left"}},measure:function(n){var t=this;return t._measureText(),{min:n.radius,max:n.radius,horizontalOffset:t._textFullWidth+(i(t._options.arrowLength)||0),verticalOffset:t._textFullHeight+(i(t._options.arrowLength)||0)}}})}(DevExpress),function(n){var u=n.viz.gauges.__internals.linearMarkers,i=Number,r=String;u.TriangleMarker=n.viz.gauges.__internals.linearNeedles.SimpleIndicator.inherit({_isEnabled:function(){var n=this;return n.vertical=n._options.vertical,n._inverted=n.vertical?r(n._options.horizontalOrientation).toLowerCase()==="right":r(n._options.verticalOrientation).toLowerCase()==="bottom",n._options.length>0&&n._options.width>0},_isVisible:function(){return!0},_render:function(){var t=this,n=t._options,r,e,u,o,f={stroke:"none",strokeWidth:0};t.callBase(),t.vertical?(r=n.x,u=t._zeroPosition,e=r+i(t._inverted?n.length:-n.length),f.points=[r,u,e,u-n.width/2,e,u+n.width/2]):(u=n.y,r=t._zeroPosition,o=u+i(t._inverted?n.length:-n.length),f.points=[r,u,r-n.width/2,o,r+n.width/2,o]),n.space>0&&(f.strokeWidth=Math.min(n.space,n.width/4)||0,f.stroke=f.strokeWidth>0?n.containerBackgroundColor||"none":"none"),t._element=t._element||t._renderer.createArea().append(t._rootElement),t._element.applySettings(f)},_getTrackerSettings:function(){var n=this,s=n._options,f=s.width/2,e=i(s.length),t,r,u,o,h;return f>10||(f=10),e>20||(e=20),n.vertical?(t=r=s.x,r=t+(n._inverted?e:-e),u=n._zeroPosition+f,o=n._zeroPosition-f,h=[t,u,r,u,r,o,t,o]):(u=s.y,o=u+(n._inverted?e:-e),t=n._zeroPosition-f,r=n._zeroPosition+f,h=[t,u,t,o,r,o,r,u]),{points:h}},measure:function(n){var u=this,f=i(u._options.length),t,r;return u.vertical?(t=r=n.x,u._inverted?r=t+f:t=r-f):(t=r=n.y,u._inverted?r=t+f:t=r-f),{min:t,max:r,indent:u._options.width/2}},getTooltipParameters:function(){var n=this,i=n._options,r=(n._inverted?i.length:-i.length)/2,t=n.callBase();return n.vertical?t.x+=r:t.y+=r,t.offset=i.length/2,t}}),u.TextCloudMarker=n.viz.gauges.__internals.BaseTextCloudMarker.inherit({_isEnabled:function(){var n=this;return n.vertical=n._options.vertical,n._inverted=n.vertical?r(n._options.horizontalOrientation).toLowerCase()==="right":r(n._options.verticalOrientation).toLowerCase()==="bottom",!0},_isVisible:function(){return!0},_getTextCloudOptions:function(){var n=this,i=n._actualPosition,r=n._actualPosition,t;return n.vertical?(i=n._options.x,t=n._inverted?"top-left":"top-right"):(r=n._options.y,t=n._inverted?"right-top":"right-bottom"),{x:i,y:r,type:t}},measure:function(n){var t=this,r,u,f=i(t._options.arrowLength)||0,e;return t._measureText(),t.vertical?(e=t._textFullHeight,t._inverted?(r=n.x,u=n.x+f+t._textFullWidth):(r=n.x-f-t._textFullWidth,u=n.x)):(e=t._textFullWidth,t._inverted?(r=n.y,u=n.y+f+t._textFullHeight):(r=n.y-f-t._textFullHeight,u=n.y)),{min:r,max:u,indent:e}}})}(DevExpress),function(n){var i=Number,r=n.utils.getCosAndSin,u=n.utils.convertAngleToRendererSpace,f=Math.max,e=Math.min;n.viz.gauges.__internals.CircularRangeBar=n.viz.gauges.__internals.BaseRangeBar.inherit({_isEnabled:function(){return this._options.size>0},_isVisible:function(n){return n.radius-i(this._options.size)>0},_createBarItem:function(){return this._renderer.createArc().append(this._rootElement)},_createTracker:function(){return this._renderer.createArc()},_setBarSides:function(){var n=this;n._maxSide=n._options.radius,n._minSide=n._maxSide-i(n._options.size)},_getSpace:function(){var n=this._options;return n.space>0?n.space*180/n.radius/Math.PI:0},_isTextVisible:function(){var n=this._options.text||{};return n.indent>0},_setTextItemsSides:function(){var n=this,t=n._options;n._lineFrom=t.y-t.radius,n._lineTo=n._lineFrom-i(t.text.indent),n._textRadius=t.radius+i(t.text.indent)},_getPositions:function(){var n=this,r=n._basePosition,u=n._actualPosition,t,i;return r>=u?(t=r,i=u):(t=u,i=r),{start:n._startPosition,end:n._endPosition,main1:t,main2:i,back1:e(t+n._space,n._startPosition),back2:f(i-n._space,n._endPosition)}},_buildItemSettings:function(n,t){var i=this;return{x:i._options.x,y:i._options.y,innerRadius:i._minSide,outerRadius:i._maxSide,startAngle:t,endAngle:n}},_updateTextPosition:function(){var n=this,t=r(n._actualPosition),i=n._options.x+n._textRadius*t.cos,u=n._options.y-n._textRadius*t.sin;i+=t.cos*n._textWidth*.6,u-=t.sin*n._textHeight*.6,n._text.applySettings({x:i,y:u+n._textVerticalOffset})},_updateLinePosition:function(){var n=this,t=n._options.x,i,r;n._basePosition>n._actualPosition?(i=t-2,r=t):n._basePosition0},_isVisible:function(){return!0},_createBarItem:function(){return this._renderer.createArea().append(this._rootElement)},_createTracker:function(){return this._renderer.createArea()},_setBarSides:function(){var t=this,n=t._options,f=i(n.size),r,u;t.vertical?t._inverted?(r=n.x,u=n.x+f):(r=n.x-f,u=n.x):t._inverted?(r=n.y,u=n.y+f):(r=n.y-f,u=n.y),t._minSide=r,t._maxSide=u,t._minBound=r,t._maxBound=u},_getSpace:function(){var n=this._options;return n.space>0?i(n.space):0},_isTextVisible:function(){var n=this._options.text||{};return n.indent>0||n.indent<0},_getTextAlign:function(){return this.vertical?this._options.text.indent>0?"left":"right":"center"},_setTextItemsSides:function(){var n=this,t=i(n._options.text.indent);t>0?(n._lineStart=n._maxSide,n._lineEnd=n._maxSide+t,n._textPosition=n._lineEnd+(n.vertical?2:n._textHeight/2),n._maxBound=n._textPosition+(n.vertical?n._textWidth:n._textHeight/2)):t<0&&(n._lineStart=n._minSide,n._lineEnd=n._minSide+t,n._textPosition=n._lineEnd-(n.vertical?2:n._textHeight/2),n._minBound=n._textPosition-(n.vertical?n._textWidth:n._textHeight/2))},_getPositions:function(){var i=this,c=i._options,s=i._startPosition,h=i._endPosition,f=i._space,r=i._basePosition,u=i._actualPosition,n,t,e,o;return su?(n=r,t=u):(n=u,t=r),e=n+f,o=t-f),{start:s,end:h,main1:n,main2:t,back1:e,back2:o}},_buildItemSettings:function(n,t){var u=this,i=u._minSide,r=u._maxSide,f=u.vertical?[i,n,i,t,r,t,r,n]:[n,i,n,r,t,r,t,i];return{points:f}},_updateTextPosition:function(){var n=this;n._text.applySettings(n.vertical?{x:n._textPosition,y:n._actualPosition+n._textVerticalOffset}:{x:n._actualPosition,y:n._textPosition+n._textVerticalOffset})},_updateLinePosition:function(){var n=this,t=n._actualPosition,i,r,u;n.vertical?(n._basePosition>=t?(i=t,r=t+2):(i=t-2,r=t),u=[n._lineStart,i,n._lineStart,r,n._lineEnd,r,n._lineEnd,i]):(n._basePosition<=t?(i=t-2,r=t):(i=t,r=t+2),u=[i,n._lineStart,i,n._lineEnd,r,n._lineEnd,r,n._lineStart]),n._line.applySettings({points:u})},_getTooltipPosition:function(){var n=this,i=(n._minSide+n._maxSide)/2,r=(n._basePosition+n._actualPosition)/2,t={};return t=n.vertical?{x:i,y:r}:{x:r,y:i}},measure:function(n){var t=this,e=i(t._options.size),f=i(t._options.text.indent),r,u,o;return t._measureText(),t.vertical?(r=u=n.x,t._inverted?u=u+e:r=r-e,t._hasText&&(o=t._textHeight/2,f>0&&(u+=f+t._textWidth),f<0&&(r+=f-t._textWidth))):(r=u=n.y,t._inverted?u=u+e:r=r-e,t._hasText&&(o=t._textWidth/2,f>0&&(u+=f+t._textHeight),f<0&&(r+=f-t._textHeight))),{min:r,max:u,indent:o}}})}(DevExpress),function(n,t,i){function v(n,t,i,r){var u;return i>n&&r=t||r<=n?u=[{start:n,end:t}]:i<=n&&r>=t?u=[]:i>n?u=[{start:n,end:i}]:rt?u=[{start:n,end:i},{start:r,end:t}]:i<=t||r>=n?u=[{start:n,end:t}]:i>=n&&r<=t?u=[]:it&&(u=[{start:r,end:t}]),u}function p(n,t,i){return t-n>=i}function w(n,t,i){return n-t>=i}var r=Number,f=String,e=Math.max,c=Math.abs,o=n.utils.isString,s=n.utils.isArray,h=isFinite,u=t.each,l=t.map,a=n.viz.core.Palette;n.viz.gauges.__internals.BaseRangeContainer=n.Class.inherit({ctor:function(n){var t=this;t._renderer=n.renderer,t._container=n.container,t._translator=n.translator,t._root=t._renderer.createGroup({"class":"dxg-range-container"})},dispose:function(){var n=this;n._renderer=n._container=n._translator=n._root=null},clean:function(){return this._root.detach().clear(),this._options=this.enabled=null,this},_getRanges:function(){var it=this,n=it._options,k=it._translator,d=k.getDomain()[0],rt=k.getDomain()[1],e=rt-d,et=e>=0?p:w,ut=e>=0?v:y,nt=[],t=[],g=[{start:d,end:rt}],ot=c(e)/1e4,st=new a(n.palette,{type:"indicatingSet",theme:n.themeName}),ht=o(n.backgroundColor)?n.backgroundColor:"none",f=n.width||{},b=r(f>0?f:f.start),tt=r(f>0?f:f.end),ft=tt-b;return n.ranges!==i&&!s(n.ranges)?null:b>=0&&tt>=0&&b+tt>0?(nt=l(s(n.ranges)?n.ranges:[],function(n,t){n=n||{};var i=k.adjust(n.startValue),r=k.adjust(n.endValue);return h(i)&&h(r)&&et(i,r,ot)?{start:i,end:r,color:n.color,classIndex:t}:null}),u(nt,function(n,t){var i=st.getNextColor();t.color=o(t.color)&&t.color||i||"none",t.className="dxg-range dxg-range-"+t.classIndex,delete t.classIndex}),u(nt,function(n,i){for(var r,e,u,o=[],h=[],f=0,s=t.length;f0},_createRange:function(n,t){var i=this,r=(n.startWidth+n.endWidth)/2;return i._renderer.createArc(t.x,t.y,t.radius+i._outer*r,t.radius-i._inner*r,i._translator.translate(n.end),i._translator.translate(n.start))},measure:function(n){var t=this._options.width;return t=r(t)||e(r(t.start),r(t.end)),{min:n.radius-this._inner*t,max:n.radius+this._outer*t}}}),n.viz.gauges.__internals.LinearRangeContainer=n.viz.gauges.__internals.BaseRangeContainer.inherit({_processOptions:function(){var n=this;if(n.vertical=n._options.vertical,n._inner=n._outer=0,n.vertical)switch(f(n._options.horizontalOrientation).toLowerCase()){case"left":n._inner=1;break;case"center":n._inner=n._outer=.5;break;default:n._outer=1}else switch(f(n._options.verticalOrientation).toLowerCase()){case"top":n._inner=1;break;case"middle":n._inner=n._outer=.5;break;default:n._outer=1}},_isVisible:function(){return!0},_createRange:function(n,t){var i=this,r=i._inner,u=i._outer,f=i._translator.translate(n.start),e=i._translator.translate(n.end),o;return o=i.vertical?[t.x-n.startWidth*r,f,t.x-n.endWidth*r,e,t.x+n.endWidth*u,e,t.x+n.startWidth*u,f]:[f,t.y+n.startWidth*u,f,t.y-n.startWidth*r,e,t.y-n.endWidth*r,e,t.y+n.endWidth*u],i._renderer.createArea(o)},measure:function(n){var i={},t;return i.min=i.max=n[this.vertical?"x":"y"],t=this._options.width,t=r(t)||e(r(t.start),r(t.end)),i.min-=this._inner*t,i.max+=this._outer*t,i}})}(DevExpress,jQuery),function(n,t){var r=n.utils.isString,u=Math.max,f=t.extend;n.viz.gauges.__internals.Title=n.Class.inherit({ctor:function(n){this._renderer=n.renderer,this._container=n.container},dispose:function(){return this._renderer=this._container=null,this},clean:function(){var n=this;return n._root&&(n._root.detach().clear(),n._root=n._layout=null),n},render:function(n,t){var i=this,l=r(n.text)&&n.text.length>0,a=r(t.text)&&t.text.length>0;if(!l&&!a)return i;i._root=i._renderer.createGroup({"class":"dxg-title"}).append(i._container);var e=l?i._renderer.createText(n.text,0,0,{align:"center",font:n.font}).append(i._root):null,o=a?i._renderer.createText(t.text,0,0,{align:"center",font:t.font}).append(i._root):null,s=e?e.getBBox():{},h=o?o.getBBox():{},c=0;return e&&(c+=-s.y,e.applySettings({x:0,y:c})),o&&(c+=-h.y,o.applySettings({x:0,y:c})),i._layout=f({position:n.position,width:u(s.width||0,h.width||0),height:e&&o?-s.y+h.height:s.height||h.height},n.layout),i},getLayoutOptions:function(){return this._layout},locate:function(n,t){return this._root.applySettings({translateX:n+this._layout.width/2,translateY:t}),this}})}(DevExpress,jQuery),function(n,t){var r=t.extend;n.viz.gauges.__internals.Tooltip=n.viz.core.Tooltip.inherit({ctor:function(n){var t=this;t._container=n.container,t._tracker=n.tracker,t._root=n.renderer.createGroup({"class":"dxg-tooltip"}),t.callBase(null,t._root,n.renderer),t._setTrackerCallbacks()},dispose:function(){var n=this;return n._container=n._tracker=n._root=null,n._shadow?n.callBase.apply(n,arguments):n},_setTrackerCallbacks:function(){function t(t,i){var u=t.getTooltipParameters(),f=r({value:u.value,valueText:n.formatValue(u.value),color:u.color},i);return n.prepare(f,{x:u.x,y:u.y,offset:u.offset})}function i(){return n.show()}function u(){return n.hide()}var n=this;n._tracker.setCallbacks({"tooltip-prepare":t,"tooltip-show":i,"tooltip-hide":u})},clean:function(){return this._root.detach(),this},render:function(n,t){var i=this;return n.canvasWidth=t.width,n.canvasHeight=t.height,n.text={"class":"dxg-text"},i.update(n),i._tracker.setTooltipState(i.enabled()),i.enabled()&&i._root.append(i._container),i}})}(DevExpress,jQuery),function(n,t){function o(n){if(n.position){var t=r(n.position).toLowerCase().split("-");n.verticalAlignment=t[0],n.horizontalAlignment=t[1]}}var f=Number,r=String,s=Math.min,u=Math.max,e=t.each;n.viz.gauges.__internals.LayoutManager=n.Class.inherit({setRect:function(n){return this._currentRect=n.clone(),this},getRect:function(){return this._currentRect.clone()},beginLayout:function(n){return this._rootRect=n.clone(),this._currentRect=n.clone(),this._cache=[],this},applyLayout:function(n){var t=n.getLayoutOptions(),i,e;if(!t)return this;i=this._currentRect,e=f(t.overlay)||0,o(t);switch(r(t.verticalAlignment).toLowerCase()){case"bottom":i.bottom-=u(t.height-e,0);break;default:i.top+=u(t.height-e,0)}return this._cache.push({target:n,options:t}),this},endLayout:function(){var n=this,i=n._rootRect,t=n._currentRect;return e(n._cache,function(n,e){var o=e.options,s,c,h=f(o.overlay)||0;switch(r(o.verticalAlignment).toLowerCase()){case"bottom":c=t.bottom-h,t.bottom+=u(o.height-h,0);break;default:c=t.top-o.height+h,t.top-=u(o.height-h,0)}switch(r(o.horizontalAlignment).toLowerCase()){case"left":s=i.left;break;case"right":s=i.right-o.width;break;default:s=i.horizontalMiddle()-o.width/2}e.target.locate(s,c)}),n._cache=null,n},selectRectByAspectRatio:function(n,t){var i=this._currentRect.clone(),f,r=0,u=0;return t=t||{},n>0&&(i.left+=t.left||0,i.right-=t.right||0,i.top+=t.top||0,i.bottom-=t.bottom||0,i.width()>0&&i.height()>0?(f=i.height()/i.width(),f>1?nf?u=i.height():r=i.width(),r>0||(r=u/n),u>0||(u=r*n),r=(i.width()-r)/2,u=(i.height()-u)/2,i.left+=r,i.right-=r,i.top+=u,i.bottom-=u):(i.left=i.right=i.horizontalMiddle(),i.top=i.bottom=i.verticalMiddle())),i},selectRectBySizes:function(n,t){var i=this._currentRect.clone(),r;return t=t||{},n&&(i.left+=t.left||0,i.right-=t.right||0,i.top+=t.top||0,i.bottom-=t.bottom||0,n.width>0&&(r=(i.width()-n.width)/2,r>0&&(i.left+=r,i.right-=r)),n.height>0&&(r=(i.height()-n.height)/2,r>0&&(i.top+=r,i.bottom-=r))),i}})}(DevExpress,jQuery),function(n,t){var r=t.extend;n.viz.gauges.__internals.ThemeManager=n.viz.core.BaseThemeManager.inherit({_themeSection:"gauge",_initializeTheme:function(){var n=this,t;n._subTheme&&(t=r(!0,{},n._theme[n._subTheme],n._theme),r(!0,n._theme,t)),n._initializeFont(n._theme.scale.label.font),n._initializeFont(n._theme.valueIndicator.rangebar.text.font),n._initializeFont(n._theme.subvalueIndicator.textcloud.text.font),n._initializeFont(n._theme.valueIndicators.rangebar.text.font),n._initializeFont(n._theme.valueIndicators.textcloud.text.font),n._initializeFont(n._theme.title.font),n._initializeFont(n._theme.subtitle.font),n._initializeFont(n._theme.tooltip.font),n._initializeFont(n._theme.indicator.text.font),n._initializeFont(n._theme.loadingIndicator.font)}})}(DevExpress,jQuery),function(n,t,i){function u(n){return e(n)?{text:n}:n||{}}var f=Number,h=n.utils.isNumber,e=n.utils.isString,o=n.utils.getAppropriateFormat,r=t.extend,s=t.each;n.viz.gauges.__internals.BaseGauge=n.viz.core.BaseWidget.inherit({_init:function(){var n=this;n.callBase.apply(n,arguments),n._renderer=n._factory.createRenderer({width:1,height:1,pathModified:n.option("pathModified"),rtl:n.option("rtlEnabled")}),n._root=n._renderer.getRoot(),n._root.applySettings({"class":"dxg "+n._rootClass}),n._translator=n._factory.createTranslator(),n._themeManager=n._factory.createThemeManager(),n._tracker=n._factory.createTracker({renderer:n._renderer,container:n._root}),n._layoutManager=n._factory.createLayoutManager(),n._tooltip=n._factory.createTooltip({renderer:n._renderer,container:n._root,tracker:n._tracker}),n._title=n._factory.createTitle({renderer:n._renderer,container:n._root}),n._deltaIndicator=n._factory.createDeltaIndicator({renderer:n._renderer,container:n._root}),n._setupDomain(),n._themeManager.setTheme(n.option("theme"))},_dispose:function(){var n=this;n.callBase.apply(n,arguments),n._renderer.dispose(),n._themeManager.dispose(),n._tracker.dispose(),n._title.dispose(),n._deltaIndicator&&n._deltaIndicator.dispose(),n._tooltip.dispose(),n._disposeLoadIndicator(),n._renderer=n._root=n._translator=n._themeManager=n._tracker=n._layoutManager=n._title=n._tooltip=null},_refresh:function(){var n=this,t=n.callBase;n._endLoading(function(){t.call(n)})},_clean:function(){this._cleanCore()},_render:function(){var n=this;n._setupCodomain(),n._setupAnimationSettings(),n._calculateSize()&&n._checkDomain()&&(n._renderer.draw(n._element()[0]),n._setupDefaultFormat(),n._renderCore()),n._drawn()},_cleanCore:function(){var n=this;n._tooltip.clean(),n._title.clean(),n._deltaIndicator&&n._deltaIndicator.clean(),n._tracker.deactivate(),n._cleanContent()},_renderCore:function(){var n=this;n._title.render(r(!0,{},n._themeManager.theme().title,u(n.option("title"))),r(!0,{},n._themeManager.theme().subtitle,u(n.option("subtitle")))),n._deltaIndicator&&n._deltaIndicator.render(r(!0,{},n._themeManager.theme().indicator,n.option("indicator"))),n._layoutManager.beginLayout(n._rootRect),s([n._deltaIndicator,n._title],function(t,i){i&&n._layoutManager.applyLayout(i)}),n._mainRect=n._layoutManager.getRect(),n._renderContent(),n._layoutManager.endLayout(),n._tooltip.render(r(!0,{},n._themeManager.theme().tooltip,n.option("tooltip")),{width:n._width,height:n._height}),n._tracker.activate(),n._updateLoadIndicator(i,n._width,n._height),n._noAnimation=null},_resize:function(){var n=this;n._calculateSize()&&(n._resizing=n._noAnimation=!0,n._cleanCore(),n._renderCore(),n._resizing=null)},render:function(n){return n&&n.animate!==i&&!n.animate&&(this._noAnimation=!0),this._refresh(),this},showLoadingIndicator:function(){this._showLoadIndicator(this._getLoadIndicatorOption(),{width:this._width,height:this._height})},_getLoadIndicatorOption:function(){return r(!0,{},this._themeManager.theme().loadingIndicator,this.option("loadingIndicator"))},_optionChanged:function(n,t){var r=this;switch(n){case"theme":r._themeManager.setTheme(t),r._invalidate();break;case"startValue":case"endValue":r._setupDomain(),r._invalidate();break;default:r.callBase.apply(r,arguments)}},_calculateSize:function(){var n=this;return n._calculateSizeCore(),n._width!==0&&n._height!==0&&n._element().is(":visible")?(n._renderer.resize(n._width,n._height),!0):(n._incidentOccured("W2001",[n.NAME]),!1)},_checkDomain:function(){var n=this,t=n._translator.getDomain(),i=isFinite(1/(t[1]-t[0]));return i||n._incidentOccured("W2301"),i},_setupAnimationSettings:function(){var t=this,n=t.option("animation");t._animationSettings=null,(n===i||n)&&(n===i&&(n={enabled:t.option("animationEnabled"),duration:t.option("animationDuration")}),n=r({enabled:!0,duration:1e3,easing:"easeOutCubic"},n),n.enabled&&n.duration>0&&(t._animationSettings={duration:f(n.duration),easing:n.easing})),t._containerBackgroundColor=t.option("containerBackgroundColor")||t._themeManager.theme().containerBackgroundColor},_setupDefaultFormat:function(){var n=this._translator.getDomain();this._defaultFormatOptions=o(n[0],n[1],this._getApproximateScreenRange())},_setupDomain:null,_calculateSizeCore:null,_cleanContent:null,_renderContent:null,_setupCodomain:null,_getApproximateScreenRange:null,_factory:{createRenderer:n.viz.core.CoreFactory.createRenderer,createTranslator:function(){return new n.viz.core.Translator1D},createTracker:function(t){return new n.viz.gauges.__internals.Tracker(t)},createLayoutManager:function(){return new n.viz.gauges.__internals.LayoutManager},createTitle:function(t){return new n.viz.gauges.__internals.Title(t)},createDeltaIndicator:function(t){return n.viz.gauges.__internals.DeltaIndicator?new n.viz.gauges.__internals.DeltaIndicator(t):null},createTooltip:function(t){return new n.viz.gauges.__internals.Tooltip(t)}}})}(DevExpress,jQuery),function(n,t,i){function v(n){return n.value}function o(n,t,i){for(var o=n[t],u=e(i)?s(i,v):[],r=0,h=u.length,f=[];r1e-8)return!1;return!0}return!1}var b=n.viz.core.Rectangle,g=n.utils.isDefined,e=n.utils.isArray,h=n.utils.isNumber,p=isFinite,u=Number,a=String,nt=Math.abs,f=t.extend,r=t.each,s=t.map,k=t.noop,c="value",l="subvalues";n.viz.gauges.Gauge=n.viz.gauges.__internals.BaseGauge.inherit({_init:function(){var n=this;n.__value=n.option(c),n.__subvalues=n.option(l),e(n.__subvalues)||(n.__subvalues=h(n.__subvalues)?[n.__subvalues]:null),n._selectMode(),n.callBase.apply(n,arguments),n._scale=n._createScale({renderer:n._renderer,container:n._root,translator:n._translator}),n._rangeContainer=n._createRangeContainer({renderer:n._renderer,container:n._root,translator:n._translator})},_dispose:function(){var n=this;n.callBase.apply(n,arguments),n._scale.dispose(),n._rangeContainer.dispose(),n._disposeValueIndicators(),n._scale=n._rangeContainer=null},_disposeValueIndicators:function(){var n=this;n._valueIndicator&&n._valueIndicator.dispose(),n._subvalueIndicatorsSet&&n._subvalueIndicatorsSet.dispose(),n._valueIndicator=n._subvalueIndicatorsSet=null},_selectMode:function(){var n=this;n.option(c)===i&&n.option(l)===i&&(n.option("needles")!==i||n.option("markers")!==i||n.option("rangeBars")!==i?(d(n),tt(n)):n.option("valueIndicators")!==i&&(d(n),it(n)))},_setupDomain:function(){var n=this,r=n.option("scale")||{},t=n.option("startValue"),i=n.option("endValue");t=h(t)?u(t):h(r.startValue)?u(r.startValue):0,i=h(i)?u(i):h(r.endValue)?u(r.endValue):100,n._baseValue=t0?u(i.width):n._element().width()||n._getDefaultContainerSize().width,f=i.height>0?u(i.height):n._element().height()||n._getDefaultContainerSize().height,e=t.left>0?u(t.left):0,o=t.right>0?u(t.right):0,s=t.top>0?u(t.top):0,h=t.bottom>0?u(t.bottom):0;e+o>=r&&(e=o=0),s+h>=f&&(s=h=0),n._width=r,n._height=f,n._rootRect=new b({left:e,top:s,right:r-o,bottom:f-h})}},_cleanContent:function(){var n=this;n._rangeContainer.clean(),n._scale.clean(),n._cleanValueIndicators()},_renderContent:function(){var n=this,t;n._rangeContainer.render(f(!0,{},n._themeManager.theme().rangeContainer,n.option("rangeContainer"),{themeName:n._themeManager.themeName(),vertical:n._area.vertical})),n._scale.render(f(!0,{},n._themeManager.theme().scale,n.option("scale"),{approximateScreenDelta:n._getApproximateScreenRange(),offset:0,vertical:n._area.vertical})),t=n._prepareValueIndicators(),t=s([n._scale,n._rangeContainer].concat(t),function(n){return n&&n.enabled?n:null}),n._applyMainLayout(t),r(t,function(t,i){n._updateElementPosition(i)}),n._updateActiveElements()},_updateIndicatorSettings:function(n){var t=this;n.currentValue=n.baseValue=p(t._translator.translate(n.baseValue))?u(n.baseValue):t._baseValue,n.vertical=t._area.vertical,!n.text||n.text.format||n.text.precision||(n.text.format=t._defaultFormatOptions.format,n.text.precision=t._defaultFormatOptions.precision)},_prepareValueIndicatorSettings:function(){var n=this,i=n.option("valueIndicator")||{},t=f(!0,{},n._themeManager.theme().valueIndicator),r=a(i.type||t.type).toLowerCase();n._valueIndicatorSettings=f(!0,t._default,t[r],i,{type:r,animation:n._animationSettings,containerBackgroundColor:n._containerBackgroundColor}),n._updateIndicatorSettings(n._valueIndicatorSettings)},_prepareSubvalueIndicatorSettings:function(){var n=this,i=n.option("subvalueIndicator")||{},t=f(!0,{},n._themeManager.theme().subvalueIndicator),r=a(i.type||t.type).toLowerCase();n._subvalueIndicatorSettings=f(!0,t._default,t[r],i,{type:r,animation:n._animationSettings,containerBackgroundColor:n._containerBackgroundColor}),n._updateIndicatorSettings(n._subvalueIndicatorSettings)},_cleanValueIndicators:function(){this._valueIndicator&&this._valueIndicator.clean(),this._subvalueIndicatorsSet&&this._subvalueIndicatorsSet.clean()},_prepareValueIndicators:function(){var n=this;return n._prepareValueIndicator(),n.__subvalues!==null&&n._prepareSubvalueIndicators(),[n._valueIndicator,n._subvalueIndicatorsSet]},_updateActiveElements:function(){this._updateValueIndicator(),this._updateSubvalueIndicators()},_prepareValueIndicator:function(){var n=this,t=n._valueIndicator,i;n._prepareValueIndicatorSettings(),t&&n._valueIndicatorType!==n._valueIndicatorSettings.type&&t.dispose()&&(t=null),n._valueIndicatorType=n._valueIndicatorSettings.type,t||(t=n._valueIndicator=n._createValueIndicator(n._valueIndicatorType),t&&(t.setup({renderer:n._renderer,translator:n._translator,owner:n._root,tracker:n._tracker,className:"dxg-value-indicator"}),t._trackerInfo={type:"value-indicator"})),t.render(n._valueIndicatorSettings)},_prepareSubvalueIndicators:function(){var t=this,i=t._subvalueIndicatorsSet,r;i||(i=t._subvalueIndicatorsSet=new n.viz.gauges.__internals.ValueIndicatorsSet({renderer:t._renderer,translator:t._translator,owner:t._root,tracker:t._tracker,className:"dxg-subvalue-indicators",indicatorClassName:"dxg-subvalue-indicator",trackerType:"subvalue-indicator",createIndicator:function(){return t._createSubvalueIndicator(t._subvalueIndicatorType)}})),t._prepareSubvalueIndicatorSettings(),r=t._subvalueIndicatorSettings.type!==t._subvalueIndicatorType,t._subvalueIndicatorType=t._subvalueIndicatorSettings.type,t._createSubvalueIndicator(t._subvalueIndicatorType)&&i.render(t._subvalueIndicatorSettings,r)},_processValue:function(n,t){var r=this._translator.adjust(n!==i?n:this.__value);return p(r)?r:t},_setupValue:function(n){this.__value=this._processValue(n,this.__value)},_setupSubvalues:function(n){var r=n===i?this.__subvalues:e(n)?n:h(n)?[n]:null;if(r!==null){for(var t=0,f=r.length,u=[];tn){for(i=n,f=e;i=0||u<=0&&o<=0&&i<=e||u>=0&&o>=0&&i>=e?-1:f(i,e,0),right:u>=0&&o<=0||u>=0&&o>=0&&i>=e||u<=0&&o<=0&&i<=e?1:r(i,e,0),up:i<=0&&e>=0||i<=0&&e<=0&&u>=o||i>=0&&e>=0&&u<=o?-1:-r(u,o,0),down:i>=0&&e<=0||i>=0&&e>=0&&u<=o||i<=0&&e<=0&&u>=o?1:-f(u,o,0)}}var u=n.viz.gauges.__factory,s=window.isFinite,e=window.Number,h=n.utils.normalizeAngle,c=n.utils.getCosAndSin,l=Math.abs,r=Math.max,f=Math.min,o=Math.round,p=Array.prototype.slice,w=t.extend,a=t.each,v=Math.PI;n.viz.gauges.CircularGauge=n.viz.gauges.Gauge.inherit({_rootClass:"dxg-circular-gauge",_selectMode:function(){this.callBase.apply(this,arguments),typeof this.indicatorValue=="function"&&(this._createValueIndicatorInHardMode=function(n){return u.createCircularValueIndicatorInHardMode(n)})},_setupCodomain:function(){var u=this,r=u.option("geometry")||{},t=r.startAngle,n=r.endAngle,f;t=s(t)?h(t):225,n=s(n)?h(n):-45,l(t-n)<1?(n-=360,f={left:-1,up:-1,right:1,down:1}):(t0?e(r.scaleRadius):i,sides:f},u._translator.setCodomain(t,n)},_measureMainElements:function(n){var c=this,t=0,o=Infinity,i=0,u=0,s=0,h=0;return a(n,function(n,l){var a=l.measure({radius:c._area.radius-(e(l._options.offset)||0)});a.min>0&&(o=f(o,a.min)),a.max>0&&(t=r(t,a.max)),a.horizontalOffset>0&&(i=r(i,a.max+a.horizontalOffset)),a.verticalOffset>0&&(u=r(u,a.max+a.verticalOffset)),a.inverseHorizontalOffset>0&&(s=r(s,a.inverseHorizontalOffset)),a.inverseVerticalOffset>0&&(h=r(h,a.inverseVerticalOffset))}),i=r(i-t,0),u=r(u-t,0),{minRadius:o,maxRadius:t,horizontalMargin:i,verticalMargin:u,inverseHorizontalMargin:s,inverseVerticalMargin:h}},_applyMainLayout:function(n){var h=this,r=h._measureMainElements(n),u=h._area,t=u.sides,e={left:(t.left<-.1?r.horizontalMargin:r.inverseHorizontalMargin)||0,right:(t.right>.1?r.horizontalMargin:r.inverseHorizontalMargin)||0,top:(t.up<-.1?r.verticalMargin:r.inverseVerticalMargin)||0,bottom:(t.down>.1?r.verticalMargin:r.inverseVerticalMargin)||0},i=h._layoutManager.selectRectByAspectRatio((t.down-t.up)/(t.right-t.left),e),s=f(i.width()/(t.right-t.left),i.height()/(t.down-t.up)),l,a,c=(r.maxRadius-u.radius+u.scaleRadius)/s;0n.totalRadius&&(t=n.totalRadius),t=.8*t,-i._translator.getCodomainRange()*t*v/180},_getDefaultContainerSize:function(){return{width:300,height:300}},_getPreset:function(){var t=this.option("preset"),n;return n=t==="preset2"?{commonNeedleSettings:{type:"twocolorrectangle"},commonMarkerSettings:{type:"triangle"}}:t==="preset3"?{commonNeedleSettings:{type:"rectangle"},commonMarkerSettings:{type:"triangle"}}:{commonNeedleSettings:{type:"rectangle"},commonMarkerSettings:{type:"textcloud"}}},_createNeedle:function(n){return u.createCircularNeedle(n)},_createMarker:function(n){return u.createCircularMarker(n)},_createRangeBar:function(){return u.createCircularRangeBar()},_prepareObsoleteSpindle:function(){var n=this,t=n.option("spindle")||{},f=n._needles&&("visible"in t?!!t.visible:!0),u,i,r,e;return f&&(u=n._themeManager.theme().valueIndicator._default,i=t.size||u.spindleSize,f=i>0),f?(r=t.gapSize||u.spindleGapSize,e=t.color||u.color,r=r<=i?r:i,n._spindle=n._spindle||n._renderer.createGroup({"class":"dxg-value-indicator"}),n._spindle.append(n._root),n._spindleOuter=n._spindleOuter||n._renderer.createCircle(0,0,0,{"class":"dxg-spindle-border",stroke:"none",strokeWidth:0}).append(n._spindle),n._spindleInner=n._spindleInner||n._renderer.createCircle(0,0,0,{"class":"dxg-spindle-hole",stroke:"none",strokeWidth:0}).append(n._spindle),n._spindleOuter.applySettings({cx:n._area.x,cy:n._area.y,r:i/2,fill:e}),n._spindleInner.applySettings({cx:n._area.x,cy:n._area.y,r:r/2,fill:n._containerBackgroundColor}),{enabled:!0,_options:{offset:0},measure:function(){return{}},resize:function(t){return n._spindleOuter.applySettings({cx:t.x,cy:t.y}),n._spindleInner.applySettings({cx:t.x,cy:t.y}),n}}):(n._spindle&&n._spindle.remove(),delete n._spindle,delete n._spindleOuter,delete n._spindleInner,null)}}),n.viz.gauges.CircularGauge.prototype._factory=n.utils.clone(n.viz.gauges.__internals.BaseGauge.prototype._factory),n.viz.gauges.CircularGauge.prototype._factory.createThemeManager=function(){var t=new n.viz.gauges.__internals.ThemeManager;return t._subTheme="_circular",t}}(DevExpress,jQuery),function(n,t,i){var r=n.viz.gauges.__factory,o=String,u=Number,e=Math.max,s=Math.min,f=Math.round,c=Array.prototype.slice,l=t.extend,h=t.each;n.viz.gauges.LinearGauge=n.viz.gauges.Gauge.inherit({_rootClass:"dxg-linear-gauge",_selectMode:function(){this.callBase.apply(this,arguments),typeof this.indicatorValue=="function"&&(this._createValueIndicatorInHardMode=function(n){return r.createLinearValueIndicatorInHardMode(n)})},_setupCodomain:function(){var n=this,t=n.option("geometry")||{},r=o(t.orientation).toLowerCase()==="vertical";n._area={vertical:r,x:0,y:0,startCoord:-100,endCoord:100,scaleSize:t.scaleSize>0?u(t.scaleSize):i},n._scale.vertical=r,n._rangeContainer.vertical=r},_measureMainElements:function(n){var f=this,t=1e3,i=0,r=0;return h(n,function(n,o){var h=o.measure({x:f._area.x+(u(o._options.offset)||0),y:f._area.y+(u(o._options.offset)||0)});i=e(i,h.max),t=s(t,h.min),h.indent>0&&(r=e(r,h.indent))}),{minBound:t,maxBound:i,indent:r}},_applyMainLayout:function(n){var u=this,t=u._measureMainElements(n),i=u._area,r,e,o=i.scaleSize+2*t.indent;i.vertical?(r=u._layoutManager.selectRectBySizes({width:t.maxBound-t.minBound,height:o}),e=r.horizontalMiddle()-(t.minBound+t.maxBound)/2,i.startCoord=r.bottom-t.indent,i.endCoord=r.top+t.indent,i.x=f(i.x+e)):(r=u._layoutManager.selectRectBySizes({height:t.maxBound-t.minBound,width:o}),e=r.verticalMiddle()-(t.minBound+t.maxBound)/2,i.startCoord=r.left+t.indent,i.endCoord=r.right-t.indent,i.y=f(i.y+e)),u._translator.setCodomain(i.startCoord,i.endCoord),u._layoutManager.setRect(r)},_updateElementPosition:function(n){n.resize({x:f(this._area.x+(u(n._options.offset)||0)),y:f(this._area.y+(u(n._options.offset)||0))})},_createScale:function(n){return r.createLinearScale(n)},_createRangeContainer:function(n){return r.createLinearRangeContainer(n)},_createValueIndicator:function(n){return r.createLinearValueIndicator(n)},_createSubvalueIndicator:function(n){return r.createLinearSubvalueIndicator(n)},_getApproximateScreenRange:function(){var t=this,i=t._area,n=i.vertical?t._height:t._width;return n>i.totalSize&&(n=i.totalSize),n=n*.8},_getDefaultContainerSize:function(){var n=this.option("geometry")||{};return n.orientation==="vertical"?{width:100,height:300}:{width:300,height:100}},_getPreset:function(){var t=this.option("preset"),n;return n=t==="preset2"?{commonNeedleSettings:{type:"rhombus"},commonMarkerSettings:{type:"triangle"}}:{commonNeedleSettings:{type:"circle"},commonMarkerSettings:{type:"textcloud"}}},_createNeedle:function(n){return r.createLinearNeedle(n)},_createMarker:function(n){return r.createLinearMarker(n)},_createRangeBar:function(){return r.createLinearRangeBar()}}),n.viz.gauges.LinearGauge.prototype._factory=n.utils.clone(n.viz.gauges.__internals.BaseGauge.prototype._factory),n.viz.gauges.LinearGauge.prototype._factory.createThemeManager=function(){var t=new n.viz.gauges.__internals.ThemeManager;return t._subTheme="_linear",t}}(DevExpress,jQuery),function(n,t,i){function y(n,t){var i=this;i._context=t,i._background=t.renderer.createArc().append(t.group),i._background.applySettings({fill:t.backgroundColor}),i._bar=t.renderer.createArc().append(t.group),t.textEnabled&&(i._line=t.renderer.createPath([],{strokeWidth:t.lineWidth}).append(t.group),i._text=t.renderer.createText("",0,0,t.textOptions).append(t.group)),i._tracker=t.renderer.createArc(),t.tracker.attach(i._tracker,i,{index:n}),i._index=n,i._angle=t.baseAngle,i._settings={x:t.x,y:t.y,startAngle:t.baseAngle,endAngle:t.baseAngle}}function p(n,t,i){n.startAngle=t0?r(t.width):n._element().width()||300,n._height=t.height>0?r(t.height):n._element().height()||300,n._rootRect=new a({left:0,top:0,right:n._width,bottom:n._height}))},_setupCodomain:n.viz.gauges.CircularGauge.prototype._setupCodomain,_getApproximateScreenRange:function(){var n=this,t=n._area.sides,i=n._width/(t.right-t.left),r=n._height/(t.down-t.up),u=i0?r(f.indent):0,t._context.lineWidth=f.connectorWidth>0?r(f.connectorWidth):0,t._context.lineColor=f.connectorColor||null,o=t._renderer.createText(nt(t._translator,t._context.formatOptions),0,0,t._context.textOptions).append(t._barsGroup),e=o.getBBox(),o.detach(),t._context.textVerticalOffset=-e.y-e.height/2,t._context.textWidth=e.width,t._context.textHeight=e.height),n.viz.gauges.CircularGauge.prototype._applyMainLayout.call(t),t._renderBars()},_measureMainElements:function(){var n={maxRadius:this._area.radius};return this._context.textEnabled&&(n.horizontalMargin=this._context.textWidth,n.verticalMargin=this._context.textHeight),n},_renderBars:function(){var n=this,t=u({},n._themeManager.theme(),n.option()),f,i;n._palette=new it(t.palette,{stepHighlight:50,theme:n._themeManager.themeName()}),f=t.relativeInnerRadius>0&&t.relativeInnerRadius<1?r(t.relativeInnerRadius):.1,i=n._area.radius,n._context.textEnabled&&(n._textIndent=e(o(n._textIndent,i/2)),i-=n._textIndent),n._outerRadius=e(i),n._innerRadius=e(i*f),n._barSpacing=t.barSpacing>0?r(t.barSpacing):0,u(n._context,{backgroundColor:t.backgroundColor,x:n._area.x,y:n._area.y,startAngle:n._area.startCoord,endAngle:n._area.endCoord,baseAngle:n._translator.translate(n._baseValue)}),n._bars=[],n._updateValues(n.option("values"))},_arrangeBars:function(n){var t=this,i=t._outerRadius-t._innerRadius,u,f,e,r;for(t._context.barSize=n>0?c((i-(n-1)*t._barSpacing)/n,1):0,u=n>1?c(o((i-n*t._context.barSize)/(n-1),t._barSpacing),0):0,f=o(k((i+u)/t._context.barSize),n),t._setBarsCount(f),i=t._outerRadius,t._context.textRadius=i+t._textIndent,t._palette.reset(),e=t._context.barSize+u,r=0;rn){for(i=n,r=t._bars.length;i0?t._dummyBackground&&(t._dummyBackground.detach(),t._dummyBackground=null):(t._dummyBackground||(t._dummyBackground=t._renderer.createArc().append(t._barsGroup)),t._dummyBackground.applySettings({x:t._context.x,y:t._context.y,outerRadius:t._outerRadius,innerRadius:t._innerRadius,startAngle:t._context.endAngle,endAngle:t._context.startAngle,fill:t._context.backgroundColor}))},_updateBars:function(){for(var t=this,n=0,i=t._bars.length;n0){for(;t4||s(n.pageY-t._y)>4)&&(t._x=n.pageX,t._y=n.pageY,t._showTooltip(n,h))}function w(n){var t=n.data.tracker;t._element.off(e),t._hideTooltip(a)}function b(n){n.preventDefault();var t=r;t&&t!==n.data.tracker&&t._hideTooltip(f),t=r=n.data.tracker,t._showTooltip(n,v),t._touch=!0}function k(){var t=r;t&&(t._touch||(t._hideTooltip(f),r=null),t._touch=null)}function d(){var t=r;t&&t._showTooltipTimeout&&(t._hideTooltip(f),r=null)}var o=window.setTimeout,u=window.clearTimeout,g=t.extend,s=Math.abs,h=300,a=300,v=400,f=300,r;n.viz.gauges.__internals.Tracker=n.Class.inherit({ctor:function(n){var t=this;t._container=n.container,t._element=n.renderer.createGroup({"class":"dxg-tracker",stroke:"none",strokeWidth:0,fill:"#000000",opacity:.0001}),t._showTooltipCallback=function(){t._showTooltipTimeout=null;var n=t._tooltipEvent.target;t._targetEvent=null,t._tooltipTarget!==n&&(t._tooltipTarget=n,t._callbacks["tooltip-show"]())},t._hideTooltipCallback=function(){t._hideTooltipTimeout=null,t._targetEvent=null,t._tooltipTarget&&(t._callbacks["tooltip-hide"](),t._tooltipTarget=null)},t._dispose=function(){t._showTooltipCallback=t._hideTooltipCallback=t._dispose=null}},dispose:function(){var n=this;return n._dispose(),n.deactivate(),n._element.off(),n._container=n._element=n._context=n._callbacks=null,n},activate:function(){return this._element.append(this._container),this},deactivate:function(){return this._element.detach(),this._element.clear(),this},attach:function(n,t,i){return n.data({target:t,info:i}),n.append(this._element),this},detach:function(n){return n.detach(),n.removeData(),this},setTooltipState:function(n){var t=this,i;if(t._element.off(c).off(l),n){i={tracker:t};t._element.on(c,i).on(l,i)}return t},setCallbacks:function(n){return this._callbacks=n,this},_showTooltip:function(n,i){var r=this,f=t(n.target).data();(r._tooltipTarget===n.target||r._callbacks["tooltip-prepare"](f.target,f.info))&&(u(r._hideTooltipTimeout),r._hideTooltipTimeout=null,u(r._showTooltipTimeout),r._tooltipEvent=n,r._showTooltipTimeout=o(r._showTooltipCallback,i))},_hideTooltip:function(n){var t=this;u(t._showTooltipTimeout),t._showTooltipTimeout=null,u(t._hideTooltipTimeout),t._hideTooltipTimeout=o(t._hideTooltipCallback,n)}});var c={"mouseover.gauge-tooltip":y,"mouseout.gauge-tooltip":w},e={"mousemove.gauge-tooltip":p},l={"touchstart.gauge-tooltip":b};r=null;t(window.document).on({"touchstart.gauge-tooltip":k,"touchend.gauge-tooltip":d})}(DevExpress,jQuery),function(n){n.registerComponent("dxCircularGauge",n.viz.gauges.CircularGauge)}(DevExpress),function(n){n.registerComponent("dxLinearGauge",n.viz.gauges.LinearGauge)}(DevExpress),DevExpress.MOD_VIZ_GAUGES=!0}if(!DevExpress.MOD_VIZ_RANGESELECTOR){if(!DevExpress.MOD_VIZ_CORE)throw Error("Required module is not referenced: viz-core");(function(n){n.viz.rangeSelector={utils:{}}})(DevExpress),function(n,t){var o=t.viz.rangeSelector,r=o.utils,u=t.utils,e=-1e3,f=function(n,t){var u;if(!n||n.length===0)return-1;for(var r=0,i=n.length-1,u=0;i-r>1;)u=r+i>>1,n[u]>t?i=u:r=u;return n[i]<=t?i:r},s=function(n,t){var i=f(n,t);return n&&i>=0&&i=0&&i=0&&i0?t=n.originalEvent.touches[0].pageX:n.originalEvent.changedTouches.length>0&&(t=n.originalEvent.changedTouches[0].pageX)),t},y=function(n,t,i){var r=n.createText(t,e,e,{font:i}).append(),u=r.getBBox();return r.remove(),u};r.findLessOrEqualValue=s,r.findNearValue=h,r.findGreaterOrEqualValue=c,r.getInterval=l,r.getRootOffsetLeft=a,r.getEventPageX=v,r.getTextBBox=y}(jQuery,DevExpress),function(n){DevExpress.viz.rangeSelector.BaseVisualElement=n.Class.inherit({ctor:function(n){this._renderer=n,this._isDrawn=!1},applyOptions:function(n){this._options=n||{},this._applyOptions(this._options)},_applyOptions:function(){},redraw:function(n){var t=this;t._isDrawn?t._update(n||t._group):(t._isDrawn=!(t._draw(n||t._group)===!1),n&&(t._group=n))},isDrawn:function(){return!!this._isDrawn},isInitialized:function(){return!!this._options},_draw:function(){},_update:function(n){n.clear(),this._draw(n)}})}(DevExpress),function(n,t,i){var f=t.viz.rangeSelector,u=t.utils,c=t.data.utils,s=f.utils,l=t.viz.core.ParseUtils,h=t.formatHelper,e=t.viz.core,o=Math.max,r=u.isDefined;f.consts={fontHeightRatio:.55,emptySliderMarkerText:". . ."},f.formatValue=function(n,t){var i={value:n,valueText:h.format(n,t.format,t.precision)};return String(u.isFunction(t.customizeText)?t.customizeText.call(i,i):i.valueText)},f.RangeSelector=e.BaseWidget.inherit(function(){var k=5,t={size:i,margin:{left:0,top:0,right:0,bottom:0},scale:{showCustomBoundaryTicks:!0,showMinorTicks:!0,startValue:i,endValue:i,minorTickCount:i,minorTickInterval:i,majorTickInterval:i,useTicksAutoArrangement:!0,setTicksAtUnitBeginning:!0,minRange:i,maxRange:i,placeholderHeight:i,valueType:i,label:{visible:!0,format:i,precision:i,customizeText:i},marker:{visible:!0,label:{format:i,precision:i,customizeText:i}},logarithmBase:10},selectedRange:i,sliderMarker:{visible:!0,format:i,precision:i,customizeText:i,placeholderSize:i},behavior:{snapToTicks:!0,animationEnabled:!0,moveSelectedRangeByClick:!0,manualRangeSelectionEnabled:!0,allowSlidersSwap:!0,callSelectedRangeChanged:"onMovingComplete"},background:{color:"#C0BAE1",visible:!0,image:{url:i,location:"full"}},dataSource:i,dataSourceField:"arg",redrawOnResize:!0,theme:i,selectedRangeChanged:null},a=function(n,t,r){var e=t===i?f.consts.emptySliderMarkerText:f.formatValue(t,r),u=s.getTextBBox(n,e,r.font);return{width:Math.ceil(u.width)+2*r.padding,height:Math.ceil(u.height*f.consts.fontHeightRatio)+2*r.padding+r.pointerSize}},v=function(n,t,i){var r=f.formatValue(t,i.label),u=s.getTextBBox(n,r,i.label.font);return Math.ceil(u.width/2)},d=function(n,t,i){var r={left:t.left+i.left,top:t.top+i.top,width:n.width-t.left-t.right-i.left-i.right,height:n.height-t.top-t.bottom-i.top-i.bottom};return r.width<=0&&(r.width=1),r},g=function(n){var t,i,r;return u.isNumber(n)?t=i=r=n:n&&(u.isNumber(n.height)&&(r=n.height),u.isNumber(n.width)?t=i=n.width:n.width&&(u.isNumber(n.width.left)&&(t=n.width.left),u.isNumber(n.width.right)&&(i=n.width.right))),{widthLeft:t,widthRight:i,height:r}},nt=function(n,t,i,r){var h,y=0,p=0,c,u=0,f=0,e=0,s,l;return s=g(r.placeholderSize),u=s.widthLeft||0,f=s.widthRight||0,e=s.height||0,r.visible&&(h=a(n,i.startValue,r),c=a(n,i.endValue,r),l=o(h.width,c.width),u||(u=l),f||(f=l),e||(e=o(h.height,c.height))),i.label.visible&&(y=v(n,i.startValue,i),p=v(n,i.endValue,i)),u=o(u,y),f=o(f,p),{left:u,right:f,top:e,bottom:0}},tt=function(n){n&&n.empty()},it=function(n){return n._element()},rt=function(n){return f.rangeSelectorFactory.createRangeContainer(n)},ut=function(n,t){return{x:e.CoreFactory.createTranslator2D(n.arg,t,{direction:"horizontal"}),y:e.CoreFactory.createTranslator2D(n.val,t)}},ft=function(n,t,i){return{left:t.left,top:t.top,right:n.width-t.width-t.left,bottom:n.height-t.height-t.top+i,width:n.width,height:n.height}},et=function(n){var t=n.option("renderer");return t?t:e.CoreFactory.createRenderer({pathModified:n.option("pathModified"),rtl:n.option("rtlEnabled")})},ot=function(n){return f.rangeSelectorFactory.createThemeManager(n)},y=function(t,i){var r=[n.type(t),n.type(i)];return n.inArray(),n.inArray("date",r)!=-1?"datetime":n.inArray("number",r)!=-1?"numeric":""},st=function(n){var i,e=n._dataSource&&n._dataSource.items(),t=n.option("scale"),r=n.option("chart")||{},u=t.valueType;return u||(u=y(t.startValue,t.endValue)),(e||r.series)&&(i=new f.SeriesDataSource({renderer:n.renderer,dataSource:e,valueType:(u||"").toLowerCase(),axisType:t.type,chart:r,dataSourceField:n.option("dataSourceField"),backgroundColor:n._userBackgroundColor,incidentOccured:n._incidentOccured}),p(r.valueAxis,i.themeManager.theme().valueAxis.logarithmBase,n._incidentOccured)),i},ht=function(n,t,i){var s,f,o,h=!1,c;return r(i.startValue)&&r(i.endValue)?(h=i.inverted=i.startValue>i.endValue,f=h?i.endValue:i.startValue,o=h?i.startValue:i.endValue):(r(i.startValue)||r(i.endValue))&&(f=i.startValue,o=i.endValue),s=t?t.getBoundRange():{arg:new e.Range,val:new e.Range({isValueRange:!0})},c=u.isDate(f)&&u.isDate(o)&&f.getTime()===o.getTime(),f===o||c||s.arg.addRange({invert:h,min:f,max:o,minVisible:f,maxVisible:o,dataType:i.valueType}),s.arg.addRange({base:i.logarithmBase,axisType:i.type}),s.arg.isDefined()||(c&&(i.valueType="numeric"),s.arg.setStubData(i.valueType)),s},ct=function(n,t,i){var r,u=t.label.visible;return t.placeholderHeight?t.placeholderHeight:(r=s.getTextBBox(n,"0",t.label.font),(u?t.label.topIndent+r.height:0)+(i?t.marker.topIndent+t.marker.separatorHeight:0))},lt=function(n,t,i,u){var o=t.isEmpty,v=e.CoreFactory.getTickProvider(),s,h,c,l,a=i.x.getBusinessRange();return s={tickInterval:o?0:n.option("scale").minorTickInterval,showCustomBoundaryTicks:t.showCustomBoundaryTicks,minorTickCount:t.minorTickCount},h={textOptions:{align:"center",font:t.label.font},renderer:n.renderer,getText:function(n){return f.formatValue(n,t.label)},translator:i.x,isStartTickGenerated:!r(n.option("scale").majorTickInterval),tickInterval:t.majorTickInterval,textSpacing:k,setTicksAtUnitBeginning:t.setTicksAtUnitBeginning,useTicksAutoArrangement:t.useTicksAutoArrangement,hideLabels:o},c=o?a.min:t.startValue,l=o?a.max:t.endValue,v.getFullTicks(c,l,u,h,s,{axisType:t.type,dataType:t.valueType,base:t.logarithmBase})},at=function(n,t,i){var u=e.CoreFactory.getTickProvider(),r=u.getTickIntervals(n.startValue,n.endValue,t,{tickInterval:n.majorTickInterval,incidentOccured:i},{tickInterval:n.minorTickInterval,incidentOccured:i},{axisType:n.type,dataType:n.valueType,base:n.logarithmBase});n.minorTickInterval=r.minorTickInterval,n.majorTickInterval=r.majorTickInterval},vt=function(n,t,f,e,o){var s=r(f.arg.minVisible)?f.arg.minVisible:f.arg.min,c=r(f.arg.maxVisible)?f.arg.maxVisible:f.arg.max,l;t&&!t.isEmpty()&&(o.startValue=o.inverted?c:s,o.endValue=o.inverted?s:c),l=u.isDate(o.startValue)&&u.isDate(o.endValue)&&o.startValue.getTime()===o.endValue.getTime()||o.startValue===o.endValue,o.isEmpty=!r(o.startValue)||!r(o.endValue)||l||o.valueType==="string",o.isEmpty?o.startValue=o.endValue=i:(at(o,e,n._incidentOccured),o.valueType!=="datetime"||r(o.label.format)||(o.label.format=o.marker.visible?u.getDateUnitInterval(o.majorTickInterval):h.getDateFormatByTickInterval(o.startValue,o.endValue,o.majorTickInterval)))},yt=function(t,i,f){var e=n.extend(!0,{},t.option("sliderMarker")),o;return e.format||(!t.option("behavior").snapToTicks&&u.isNumber(i.startValue)&&(o=Math.abs(i.endValue-i.startValue),e.format="fixedPoint",e.precision=u.getSignificantDigitPosition(o/f)),i.valueType==="datetime"&&(i.marker.visible?e.format=u.getDateUnitInterval(r(i.minorTickInterval)&&i.minorTickInterval!==0?i.minorTickInterval:i.majorTickInterval):r(i.startValue)&&r(i.endValue)&&(e.format=h.getDateFormatByTickInterval(i.startValue,i.endValue,i.minorTickInterval!==0?i.minorTickInterval:i.majorTickInterval)))),e},pt=function(n){return n.valueType=="datetime"&&n.marker.visible},wt=function(n,t){var i=t.minorTickInterval||t.majorTickInterval;n=n.arg.addRange({interval:i})},p=function(t,r,u){t&&(t.type==="logarithmic"&&t.logarithmBase<=0||t.logarithmBase&&!n.isNumeric(t.logarithmBase)?(t.logarithmBase=r,u("E2104")):t.type!=="logarithmic"&&(t.logarithmBase=i))},bt=function(u,f){var e=n.extend(!0,{},u.option("scale")),a=u._incidentOccured,o=0,c=new l({incidentOccured:a}),s=c.correctValueType((e.valueType||"").toLowerCase()),h;return(f&&(s=f.getCalculatedValueType()||s),s||(s=y(e.startValue,e.endValue)||"numeric"),e.valueType=s,e.valueType==="string")?(u._incidentOccured("E2201"),e):(h=c.getParser(s,"scale"),r(e.startValue)&&(o=h(e.startValue),r(o)?e.startValue=o:(e.startValue=i,u._incidentOccured("E2202",["start"]))),r(e.endValue)&&(o=h(e.endValue),r(o)?e.endValue=o:(e.endValue=i,u._incidentOccured("E2202",["end"]))),p(e,t.scale.logarithmBase,u._incidentOccured),e.type||(e.type="continuous"),e.parser=h,e)},kt=function(n,t,i){var r=n.option("size")||{};t.height||r.height===0||(t.height=i.valueType==="datetime"&&i.marker.visible!==!1?160:120),t.width||r.width===0||(t.width=400)},dt=function(n){var u,r,f,e,t,o,s,h,c=n.container;if(n._isUpdating=!0,t=b(n),n._actualSize=t,r=st(n),n._scaleOptions=bt(n,r),kt(n,t,n._scaleOptions),t.width&&t.height&&c.is(":visible"))n.stopRedraw=!1;else{n.stopRedraw=!0,n._incidentOccured("W2001",[n.NAME]);return}gt(n,t),n._updateLoadIndicator(i,n.canvas.width,n.canvas.height),f=ht(n,r,n._scaleOptions),vt(n,r,f,t.width,n._scaleOptions),wt(f,n._scaleOptions),s=yt(n,n._scaleOptions,t.width),h=ti(n,n._scaleOptions),o=nt(n.renderer,t,n._scaleOptions,s),u=d(t,n.option("margin"),o),e=ct(n.renderer,n._scaleOptions,pt(n._scaleOptions)),n.translators=ut(f,ft(t,u,e)),n._scaleOptions.ticksInfo=lt(n,n._scaleOptions,n.translators,u.width),r&&r.adjustSeriesDimensions(n.translators),n.rangeContainer.applyOptions({canvas:u,scaleLabelsAreaHeight:e,sliderMarkerSpacing:o,translators:n.translators,selectedRange:h,scale:n._scaleOptions,behavior:n.option("behavior"),background:n.option("background"),chart:n.option("chart"),seriesDataSource:r,sliderMarker:s,sliderHandle:n.option("sliderHandle"),shutter:n.option("shutter"),selectedRangeChanged:w(n),setSelectedRange:function(t){n.setSelectedRange(t)}}),n._isUpdating=!1},w=function(n){return function(t,i){var r=n.option("selectedRangeChanged");n.option("selectedRange",t),r&&!i&&setTimeout(function(){r.call(null,t)})}},b=function(n){var i=n.container,r=n.option("size")||{},t={width:r.width,height:r.height};return i&&(t.width||(t.width=i.width()),t.height||(t.height=i.height())),n.canvas=t,t},gt=function(n,t){var i=n.renderer;i.isInitialized()?i.getRoot().applySettings({width:t.width,height:t.height}):(i.recreateCanvas(t.width,t.height),i.draw(n.container[0]))},ni=function(n,t){var i,r=n.option("chart")||{};!r.theme&&t&&t.theme&&(i=t.theme,i&&(typeof i=="object"&&(i=i.chart||{},i.name=t.theme.name),r.theme=i))},ti=function(n,t){var f=n.option("selectedRange"),i,u,o=t.parser||function(){return null},e=function(i,u){var f,e=t[u];return r(i)&&(f=o(i)),r(f)?e=f:n._incidentOccured("E2203",[u]),e};return f?(i=e(f.startValue,"startValue"),i=n.rangeContainer.slidersContainer.truncateSelectedRange(i,t),u=e(f.endValue,"endValue"),u=n.rangeContainer.slidersContainer.truncateSelectedRange(u,t),{startValue:i,endValue:u}):{startValue:t.startValue,endValue:t.endValue}},ii=function(n){var t=n._actualSize,i=b(n);return t&&(t.width!==i.width||t.height!==i.height)};return{_setDefaultOptions:function(){this.callBase(),this.option(t)},_dataSourceOptions:function(){return{paginate:!1,_preferSync:!0}},_init:function(){var n=this;n.container=it(n),tt(n.container),n.renderer=et(n),n.rangeContainer=rt(n.renderer),n.callBase(),n._reinitDataSource()},_reinitDataSource:function(){this._refreshDataSource()},_dispose:function(){var n=this,t=function(t){n[t]&&n[t].dispose(),n[t]=null};n.callBase(),t("renderer"),n.translators=null,t("rangeContainer")},_initOptions:function(t){var i=this,r;i._optionsInitializing=!0,t=t||{},i._userOptions=n.extend(!0,{},t),r=ot(t.theme),r.setBackgroundColor(t.containerBackgroundColor),i.option(r.applyRangeSelectorTheme(t)),ni(i,t),t.background&&(i._userBackgroundColor=t.background.color)},_refresh:function(){var n=this,t=n.callBase;n._endLoading(function(){t.call(n)})},_render:function(n){var t=this,r,i;t._optionsInitializing=!1,dt(t),t.stopRedraw||(n?(i=t.option("behavior"),r=i.animationEnabled,i.animationEnabled=!1,t.rangeContainer.redraw(),i.animationEnabled=r):t.rangeContainer.redraw(),!n&&(!t._dataSource||t._dataSource&&t._dataSource.isLoaded())&&t.hideLoadingIndicator()),t._drawn()},_optionChanged:function(n,t,i){var r=this;r._optionsInitializing||c.compileSetter(n)(r._userOptions,t,{functionsAsIs:!0,merge:!0}),n==="dataSource"?(r._reinitDataSource(),r._invalidate()):n==="selectedRange"?r.setSelectedRange(r.option("selectedRange")):n==="selectedRangeChanged"?r.rangeContainer.slidersContainer.selectedRangeChanged=w(r):n==="containerBackgroundColor"||n==="theme"?(r._initOptions(r._userOptions),r._invalidate()):r.callBase(n,t,i)},_resize:function(){ii(this)&&this._render(!0)},_handleDataSourceChanged:function(){var n=this;n._endLoading(function(){n.renderer.isInitialized()&&n._render()})},getSelectedRange:function(){var t=this,n=t.rangeContainer.slidersContainer.getSelectedRange();return{startValue:n.startValue,endValue:n.endValue}},setSelectedRange:function(n){var i=this,t;!i._isUpdating&&n&&((t=i.rangeContainer.slidersContainer.getSelectedRange(),t&&t.startValue===n.startValue&&t.endValue===n.endValue)||i.rangeContainer.slidersContainer.setSelectedRange(n))},resetSelectedRange:function(n){var t=this;t.setSelectedRange({startValue:t._scaleOptions.startValue,endValue:t._scaleOptions.endValue,blockSelectedRangeChanged:n})},render:function(n){return this._render(n),this}}}()).include(t.ui.DataHelperMixin)}(jQuery,DevExpress),function(n,t){var r=t.viz.rangeSelector;r.RangeContainer=r.BaseVisualElement.inherit(function(){var t=function(n){this.callBase(n),this.slidersContainer=u(n),this.rangeView=e(n),this.scale=f(n)},i=function(n){var t=this,i=n.scale.isEmpty,r={left:n.canvas.left,top:n.canvas.top,width:n.canvas.width,height:n.canvas.height>=n.scaleLabelsAreaHeight?n.canvas.height-n.scaleLabelsAreaHeight:0};t._viewCanvas=r,t.slidersContainer.applyOptions({canvas:r,translator:n.translators.x,scale:n.scale,selectedRange:n.selectedRange,sliderMarker:n.sliderMarker,sliderHandle:n.sliderHandle,shutter:n.shutter,behavior:n.behavior,selectedRangeChanged:n.selectedRangeChanged,isEmpty:i}),t.rangeView.applyOptions({canvas:r,translators:n.translators,background:n.background,chart:n.chart,seriesDataSource:n.seriesDataSource,behavior:n.behavior,isEmpty:i}),t.scale.applyOptions({canvas:n.canvas,translator:n.translators.x,scale:n.scale,hideLabels:i,scaleLabelsAreaHeight:n.scaleLabelsAreaHeight,setSelectedRange:n.setSelectedRange})},u=function(n){return r.rangeSelectorFactory.createSlidersContainer(n)},f=function(n){return r.rangeSelectorFactory.createScale(n)},e=function(n){return r.rangeSelectorFactory.createRangeView(n)},n=function(n,t){return{left:n.left-t.left,top:n.top-t.top,width:n.width+t.right+t.left,height:n.height+t.bottom+t.top}},o=function(){var t=this,i,e,o,s,r,u=n(t._options.canvas,t._options.sliderMarkerSpacing),f=t._viewCanvas;t._clipRect=t._renderer.createClipRect(u.left,u.top,u.width,u.height).append(),i=t._renderer.createGroup({"class":"rangeContainer",clipId:t._clipRect.id}).append(),t._viewClipRect=t._renderer.createClipRect(f.left,f.top,f.width,f.height).append(),e=t._renderer.createGroup({"class":"view",clipId:t._viewClipRect.id}),e.append(i),t.rangeView.redraw(e),o=t._renderer.createGroup({"class":"slidersContainer"}),o.append(i),t.slidersContainer.redraw(o),s=t._renderer.createGroup({"class":"scale"}),s.append(i),t.scale.redraw(s),r=t._renderer.createGroup({"class":"trackers"}),r.append(i),t._trackersGroup=r,t.slidersContainer.appendTrackers(r)},s=function(){var t=this,i=n(t._options.canvas,t._options.sliderMarkerSpacing),r=t._viewCanvas;t._clipRect.updateRectangle({x:i.left,y:i.top,width:i.width,height:i.height}),t._viewClipRect.updateRectangle({x:r.left,y:r.top,width:r.width,height:r.height}),t.rangeView.redraw(),t.slidersContainer.redraw(),t.slidersContainer.appendTrackers(t._trackersGroup),t.scale.redraw()},h=function(){this.slidersContainer.dispose(),this.slidersContainer=null};return{ctor:t,dispose:h,_applyOptions:i,_draw:o,_update:s}}())}(jQuery,DevExpress),function(n,t,i){var u=t.viz.rangeSelector,f=t.formatHelper,r=t.utils,e=5;u.Scale=u.BaseVisualElement.inherit({_setupDateUnitInterval:function(t){var u,o=function(t){var i=0;return n.each(t,function(){return++i<2}),i===1},e,i=t.ticksInfo.majorTickInterval,f=t.ticksInfo.majorTicks;if(t.valueType==="datetime"){if(r.isObject(i)&&!o(i)&&r.logger.warn('More than one field is specified within the object assigned to the "tickInterval" option. Assign an object with a single field specified (days, hours or a similar one).'),f&&f.autoArrangementStep>1){r.isString(i)&&(i=r.getDateIntervalByString(i));for(u in i)i.hasOwnProperty(u)&&(i[u]*=f.autoArrangementStep,e=r.convertDateTickIntervalToMilliseconds(i));i=r.convertMillisecondsToDateUnits(e)}this.dateUnitInterval=r.getDateUnitInterval(i)}},_prepareDatesDifferences:function(n,t){var i=t,u,f;if(i==="week"&&(i="day"),i==="quarter"&&(i="month"),n[i])for(f=0;f1)){for(i=1;i0&&(o=this._getMarkerDate(n[i],this.dateUnitInterval),u=this.translator.translate(o),u>h&&(u!==null&&s.push({date:o,posX:u}),h=this._drawDateMarker(o,{group:t,y:this._options.canvas.top+this._options.canvas.height-this.markersAreaHeight+this._options.scale.marker.topIndent,x:u,label:this._getLabelFormatOptions(f.getDateFormatByDifferences(e))})));this._initializeMarkersEvents(s,t)}},_getLabelFormatOptions:function(t){return r.isDefined(this._options.scale.marker.label.format)?this._options.scale.marker.label:n.extend({},this._options.scale.marker.label,{format:t})},_calculateRangeByMarkerPosition:function(n,t,i){for(var r={},u,f=0;f=u.posX?r.startValue=u.date:r.endValue||(r.endValue=u.date);return r.startValue=r.startValue||i.startValue,r.endValue=r.endValue||i.endValue,r},_initializeMarkersEvents:function(n,t){var i=this,s=this._options.canvas.top+this._options.canvas.height-this.markersAreaHeight+this._options.scale.marker.topIndent,r,f,h,e,o;if(n.length>0){r=i._renderer.createRect(i._options.canvas.left,s,i._options.canvas.width,i._options.scale.marker.separatorHeight,0,{fill:"grey",stroke:"grey",opacity:.0001}),r.append(t);r.on(u.events.start,function(t){f=u.utils.getRootOffsetLeft(i._renderer),e=u.utils.getEventPageX(t)-f,o=i._calculateRangeByMarkerPosition(e,n,i._options.scale),i._options.setSelectedRange(o)});i._markersTracker=r}},_getLabel:function(n,t){var i={value:n,valueText:f.format(n,t.format,t.precision)};return String(r.isFunction(t.customizeText)?t.customizeText.call(i,i):i.valueText)},_drawLabel:function(n,t){var i=this._options.canvas.top+this._options.canvas.height-this.markersAreaHeight,r=this._renderer.createText(this._getLabel(n,this._options.scale.label),this.translator.translate(n),i,this.textOptions);r.append(t)},_drawTick:function(n,t){this.lineOptions["class"]="dx-range-selector-tick";var r=this._options.canvas.top+this._options.canvas.height-this.scaleLabelsAreaHeight,i=this.translator.translate(n),u=this._renderer.createLine(i,this._options.canvas.top,i,r,this.lineOptions).append(t)},_redraw:function(n){for(var r=this,u=r._options.scale,e=r._renderer.createGroup(),o=r._renderer.createGroup().append(n),f=u.ticksInfo.majorTicks,s=u.ticksInfo.minorTicks,h=u.ticksInfo.customBoundaryTicks,c=r._options.hideLabels||f.hideLabels||!u.label.visible,i=0;it.endValue?t.endValue:t.startValue,r=t.startValue>t.endValue?t.startValue:t.endValue;return nr&&(n=r),n},setSelectedRange:function(n){var t=this,r=t._options.scale,e,o,i=t._options.selectedRange;n&&(e=n.startValue,o=n.endValue),(u(r.startValue)&&u(e)||f(r.startValue)&&f(e))&&(i.startValue=e),(u(r.endValue)&&u(o)||f(r.endValue)&&f(o))&&(i.endValue=o),i.startValue=t.truncateSelectedRange(i.startValue,r),i.endValue=t.truncateSelectedRange(i.endValue,r),t._controller.applySelectedRange(i),t._controller.applyPosition(),t._processSelectionChanged(!1,n&&n.blockSelectedRangeChanged)},appendTrackers:function(n){this._controller.appendTrackers(n)},_applyOptions:function(n){var t=this;t._controller.applyOptions({translator:n.translator,canvas:n.canvas,sliderMarker:n.sliderMarker,sliderHandle:n.sliderHandle,shutter:n.shutter,scale:n.scale,behavior:n.behavior}),t._eventsManager.applyOptions({behavior:n.behavior})},_draw:function(n){var t=this,i;e&&(i=t._renderer.getRoot(),i&&(i.element.style.msTouchAction="pinch-zoom")),t._controller.redraw(n),t._drawAreaTracker(n),t._eventsManager.initialize(),t._update()},_update:function(){var n=this,t=n._options.isEmpty;n._eventsManager.setEnabled(!t),n._controller.applySelectedRange(t?{}:n._options.selectedRange),n._controller.applyPosition(n.isDrawn()),n._updateLastSelectedRange(),n._controller.redraw()}}}())}(jQuery,DevExpress),function(n,t,i){var f=t.viz.rangeSelector,e=t.utils,r=0,u=1;f.SlidersController=t.Class.inherit(function(){return{ctor:function(n){this._sliders=n,n[r].setAnotherSlider(n[u]),n[u].setAnotherSlider(n[r])},setAreaTrackers:function(n,t){this._areaTracker=n,this._selectedAreaTracker=t},applyOptions:function(n){var i=this,t=null;i._options=n,i.getSlider(r).applyOptions(n),i.getSlider(u).applyOptions(n),n.behavior.snapToTicks&&(t=n.scale.ticksInfo.fullTicks,t.length>1&&t[0]>t[t.length-1]&&(t=t.reverse())),i.getSlider(r).setAvailableValues(t),i.getSlider(u).setAvailableValues(t)},processDocking:function(n){var t=this;n!==i?t.getSlider(n).processDocking():(t.getSlider(r).processDocking(),t.getSlider(u).processDocking()),t.setTrackersCursorStyle("default"),t.applyAreaTrackersPosition()},getSelectedRangeInterval:function(){var n=this,s=n._options.scale.type,t=n._options.scale.logarithmBase,i=n.getSlider(r).getValue(),o=n.getSlider(u).getValue();return s==="logarithmic"?f.utils.getInterval(e.getLog(i,t),e.getLog(o,t)):f.utils.getInterval(i,o)},moveSliders:function(n,t){var i=this;i.getSlider(r).setPosition(i.getSlider(r).getPosition()+n,!1,t),i.applyPosition(!0)},moveSlider:function(n,t,i,u,f,e){var o=this,s=o.getSlider(n),h=s.getAnotherSlider(),l=h.getIndex(),c;s.canSwap()&&(n===r?i>h.getPosition():i=Math.abs(f)&&u*f<0&&(c=!0,i+=2*f,e(-f)),c&&(o.swapSliders(),h.applyPosition(!0))),s.setPosition(i,!0),s.applyPosition(!0),o.applyAreaTrackersPosition(),o.setTrackersCursorStyle("w-resize")},applySelectedAreaCenterPosition:function(n){var t=this,i=(t.getSlider(u).getPosition()-t.getSlider(r).getPosition())/2,f=t.getSelectedRangeInterval();t.getSlider(r).setPosition(n-i,!1,f),t.applyPosition(),t.processDocking()},processManualSelection:function(n,t,i){var e=this,o,f,s=[Math.min(n,t),Math.max(n,t)];o=nn.endValue||i&&n.startValue0||e&&e.length>0;return h||s||c},o=function(n){var t=n.originalEvent,i=n.touches,r=t?t.touches:!1;return i&&i.length>1||r&&r.length>1||null},f=function(n){return n&&n.type&&n.type.indexOf("touch")===0};c=e.SlidersEventsManager=function(n,t,i){var r=this,u=r._uniqueNS="dx-range-selector_"+y++,f=e.events;r._renderer=n,r._slidersController=t,r._processSelectionChanged=i,r._enabled=!0,r._eventsNames={start:h(f.start,u),move:h(f.move,u),end:h(f.end,u)}},c.prototype={constructor:c,_getRootOffsetLeft:function(){return e.utils.getRootOffsetLeft(this._renderer)},_initializeSliderEvents:function(t){var e=this,b=e._renderer,v,h=e._slidersController,l=e._processSelectionChanged,i=h.getSlider(t),k=i.getAnotherSlider(),y,c,s,p=function(){s&&(s=!1,h.processDocking(),l(!1))},w=function(n){var k,t,a,p=e._getRootOffsetLeft(),w,b=i.getIndex();v===f(n)&&(!u(n,!0)&&s?(s=!1,h.processDocking(),l(!1)):s&&(o(n)||n.preventDefault(),t=r(n),w=t-c-p,a=t-i.getPosition()-p,h.moveSlider(b,y,w,a,c,function(n){c=n}),l(!0)))},a=e._eventsNames;i.startEventHandler=function(n){e._enabled&&u(n)&&!s&&(y=this===i.getSliderTracker().element,s=!0,v=f(n),c=r(n)-i.getPosition()-e._getRootOffsetLeft(),o(n)||(n.stopPropagation(),n.preventDefault()))};i.on(a.start,i.startEventHandler);n(document).on(a.end,p).on(a.move,w)},_initializeAreaEvents:function(){var t=this,p=t._renderer,c,o=t._slidersController,s=t._processSelectionChanged,a=o.getAreaTracker(),i=!1,w=!1,e,v=function(n){var u;i&&(u=r(n),t._options.behavior.moveSelectedRangeByClick&&Math.abs(e-u)=l&&(a=e-y,v=h-y,o.processManualSelection(a,v,n),i=!1,s(!0))))},h=t._eventsNames;a.on(h.start,function(n){t._enabled&&u(n)&&!i&&(i=!0,c=f(n),e=r(n))});n(document).on(h.end,v).on(h.move,y)},_initializeSelectedAreaEvents:function(){var e=this,b=e._renderer,l,t=e._slidersController,h=e._processSelectionChanged,y=t.getSelectedAreaTracker(),i=!1,a,v,p=function(){i&&(i=!1,t.processDocking(),h(!1))},w=function(n){var e,c;l===f(n)&&(i&&!u(n)&&(i=!1,t.processDocking(),h(!1)),i&&(o(n)||n.preventDefault(),c=r(n),e=c-t.getSlider(s).getPosition()-a,t.moveSliders(e,v),h(!0)))},c=e._eventsNames;y.on(c.start,function(n){e._enabled&&u(n)&&!i&&(i=!0,l=f(n),a=r(n)-t.getSlider(s).getPosition(),v=t.getSelectedRangeInterval(),o(n)||(n.stopPropagation(),n.preventDefault()))});n(document).on(c.end,p).on(c.move,w)},applyOptions:function(n){this._options=n},dispose:function(){n(document).off("."+this._uniqueNS)},initialize:function(){var n=this;n._renderer.isInitialized()&&(n._initializeSelectedAreaEvents(n),n._initializeAreaEvents(),n._initializeSliderEvents(s),n._initializeSliderEvents(a))},setEnabled:function(n){this._enabled=n}}}(jQuery,DevExpress),function(n,t,i){var f=t.viz.rangeSelector,r=t.utils,h="ontouchstart"in window,c=window.navigator.msPointerEnabled||window.navigator.pointerEnabled,o={duration:250},s=8,l=20,u=0,e=1;f.Slider=f.BaseVisualElement.inherit(function(){return{_createSlider:function(){var n=this,i,t,r=n._options.sliderHandle;return t=n._renderer.createGroup({"class":"slider"}),t.applySettings({translateX:n._options.canvas.left,translateY:n._options.canvas.top}),i=n._renderer.createLine(0,0,0,n._options.canvas.height,{"class":"dx-range-selector-slider",strokeWidth:r.width,stroke:r.color,strokeOpacity:r.opacity}),i.append(t),t.setValid=function(t){i.applySettings({stroke:t?n._options.sliderHandle.color:n._options.sliderMarker.invalidRangeColor})},t.updateHeight=function(){i.applySettings({points:[0,0,0,n._options.canvas.height]})},t.applyOptions=function(n){i.applySettings(n)},t},_createSliderTracker:function(){var n=this,r=n._options.sliderHandle.width,f=su._options.scale.endValue||c&&eu._values[u._values.length-1]:ft:nt.left+t.width&&(i=t.left+t.width),i},_correctBusinessValue:function(n,t,i){var u=this,r=u._correctBusinessValueByAvailableValues(n,i);return t&&(r=u._correctBusinessValueByMinMaxRangeFromAnotherSlider(r)),r=u._correctBusinessValueByMinRangeFromStartEndValues(r)},_correctBusinessValueByAvailableValues:function(n,t){var i=this._values;return!t&&i?f.utils.findNearValue(i,n):n},_correctBusinessValueByMinMaxRangeFromAnotherSlider:function(n){var r=this,h=n,t=r._options.scale,c=r._values,v=r.getIndex(),l=r.getAnotherSlider().getValue(),a=!0,o,s;return!t.inverted&&v===u||t.inverted&&v===e?(t.maxRange&&(o=r._addInterval(l,t.maxRange,!0)),t.minRange&&(s=r._addInterval(l,t.minRange,!0))):(t.maxRange&&(s=r._addInterval(l,t.maxRange)),t.minRange&&(o=r._addInterval(l,t.minRange))),s!==i&&h>s?(h=c?f.utils.findLessOrEqualValue(c,s):s,a=!1):o!==i&&hf)&&(i=f)):r.getIndex()===u&&(o=r._addInterval(t.endValue,t.minRange,!t.inverted),(!t.inverted&&i>o||t.inverted&&ie||n.inverted&&tf)return!1;return!0}return!1},processDocking:function(){var n=this;n._position=n._valuePosition,n.applyPosition(!1),n._setValid(!0)},applyPosition:function(n){var t=this,i=t.getPosition();t._lastPosition!==i&&(t._applySliderPosition(i,n),t._applyShutterPosition(i,n),t._lastPosition=i)},on:function(n,t){var i=this;i._sliderTracker.on(n,t);if(i._marker)i._marker.getTracker().on(n,t)},_update:function(){var n=this;n._marker&&n._marker.applyOptions(n._options.sliderMarker),n._shutter&&n._shutter.applySettings({fill:n._options.shutter.color,fillOpacity:n._options.shutter.opacity}),n._slider&&n._slider.applyOptions({strokeWidth:n._options.sliderHandle.width,stroke:n._options.sliderHandle.color,strokeOpacity:n._options.sliderHandle.opacity})},_draw:function(n){var t=this,i,o,f,r,h,c,s=t.getIndex();f=t._renderer.createGroup({"class":"sliderArea"}),f.append(n),s===u?r=t._renderer.createRect(t._options.canvas.left,t._options.canvas.top,0,t._options.canvas.height,0):s===e&&(r=t._renderer.createRect(t._options.canvas.left,t._options.canvas.top,t._options.canvas.width,t._options.canvas.height,0)),r&&(r.append(f),i=t._createSlider(),i&&i.append(f),t._options.sliderMarker.visible&&(o=t._createSliderMarker({renderer:t._renderer,isLeftPointer:s===e,sliderMarkerOptions:t._options.sliderMarker}),o.draw(i)),t._shutter=r,t._slider=i,t._marker=o),t._drawSliderTracker(n)}}}())}(jQuery,DevExpress),function(n,t){var f=t.viz.rangeSelector,r;r=f.SliderMarker=function(n){var t=this;t._renderer=n.renderer,t._text=n.text,t._isLeftPointer=n.isLeftPointer,t._options=n.sliderMarkerOptions,t._isValid=!0,e(t,{width:10,height:10})};var s=function(n){this._options=n,this.update()},u=function(n,t){return{width:Math.round(2*n._options.padding+t.width),height:Math.round(2*n._options.padding+t.height*f.consts.fontHeightRatio)}},e=function(n,t){var i=u(n,t);n._points=[],n._isLeftPointer?(n._points.push({x:0,y:0}),n._points.push({x:i.width,y:0}),n._points.push({x:i.width,y:i.height}),n._points.push({x:n._options.pointerSize,y:i.height}),n._points.push({x:0,y:i.height+n._options.pointerSize})):(n._points.push({x:0,y:0}),n._points.push({x:i.width,y:0}),n._points.push({x:i.width,y:i.height+n._options.pointerSize}),n._points.push({x:i.width-n._options.pointerSize,y:i.height}),n._points.push({x:0,y:i.height}))},h=function(n,t){var i=u(n,t);return n._isLeftPointer?{x:0,y:i.height+n._options.pointerSize}:{x:i.width-1,y:i.height+n._options.pointerSize}},c=function(n){var t=this,i=t._options.padding;t._sliderMarkerGroup=t._renderer.createGroup({"class":"sliderMarker"}),t._sliderMarkerGroup.append(n),t._area=t._renderer.createArea(t.points,{fill:t._options.color}),t._area.append(t._sliderMarkerGroup),t._label=t._renderer.createText(t._text,i,i,{font:t._options.font,align:"left",style:{"-webkit-user-select":"none"}}),t._label.append(t._sliderMarkerGroup),t._tracker=t._renderer.createRect(0,0,2*i,2*i+t._options.pointerSize,0,{fill:"grey",stroke:"grey",opacity:.0001,style:{cursor:"pointer"}}),t._tracker.append(t._sliderMarkerGroup),t._drawn=!0,t.update()},l=function(n){var t=n._label.getBBox();return!n._textHeight&&isFinite(t.height)&&(n._textHeight=t.height),{width:t.width,height:n._textHeight}},o=function(n){var t=this,i,r,f;(t._interval&&clearInterval(t._interval),delete t._interval,t._drawn)&&(t._label.updateText(t._text),i=l(t),n?delete t._textSize:(t._textSize=t._textSize||i,t._textSize=i.width>t._textSize.width||i.height>t._textSize.height?i:t._textSize,i=t._textSize,t._interval=setInterval(function(){o.call(t,[!0])},75)),r=u(t,i),f=h(t,i),t._sliderMarkerGroup.applySettings({translateX:-f.x,translateY:-f.y}),e(t,i),t._area.applySettings({points:t._points,fill:t._isValid?t._options.color:t._options.invalidRangeColor}),t._tracker.applySettings({width:r.width,height:r.height+t._options.pointerSize}),t._label.applySettings({x:t._options.padding,y:r.height-t._options.padding}))},a=function(){var n=this;return n._text},v=function(n){var t=this;t._text!==n&&(t._text=n,t.update())},y=function(n){var t=this;t._isValid=n,t.update()},p=function(){var n=this;n._isLeftPointer=!n._isLeftPointer,n.update()},w=function(){var n=this;return n._tracker};r.prototype={constructor:r,draw:c,update:o,getText:a,setText:v,changeLocation:p,applyOptions:s,getTracker:w,setValid:y}}(jQuery,DevExpress),function(n,t){var r=t.viz.rangeSelector;r.RangeView=r.BaseVisualElement.inherit(function(){return{_draw:function(n){var u=this,h,c,f,e,r,o,i,t=u._options,s,l=t.isEmpty;if(o=t.seriesDataSource&&t.seriesDataSource.isShowChart()&&!l,i=t.canvas,o?f=t.seriesDataSource.getBackgroundColor():!l&&t.background.visible&&(f=t.background.color),t.background.visible&&f&&(h=u._renderer.createRect(i.left,i.top,i.width+1,i.height,0,{fill:f,"class":"dx-range-selector-background"}),h.append(n)),t.background.visible&&t.background.image&&t.background.image.url&&(c=u._renderer.createImage(i.left,i.top,i.width+1,i.height,t.background.image.url,{location:t.background.image.location}),c.append(n)),o)for(e=t.seriesDataSource.getSeries(),t.seriesDataSource.adjustSeriesDimensions(t.translators,t.chart.useAggregation),r=0;r0&&(r.isNumber(t[0])||r.isDate(t[0]))},s=function(t){return n.map(t,function(n,t){return{arg:n,val:t}})},h=function(t,r,u){var a=[],v,y,l,d,p=t.themeManager,k=!!p.getOptions("seriesTemplate"),h=k?u:r.chart.series,nt=r.chart.valueAxis&&r.chart.valueAxis.valueType,w,c,b,g;for(t.teamplateData=[],r.dataSource&&!h&&(o(r.dataSource)&&(r.dataSource=s(r.dataSource)),w=r.dataSourceField||"arg",h={argumentField:w,valueField:w},t._hideChart=!0),h=n.isArray(h)?h:h?[h]:[],t._backgroundColor=r.backgroundColor!==i?r.backgroundColor:p.getOptions("backgroundColor"),c=0;c0&&(b=e.createSeries(r.renderer,y),a.push(b)),k&&(n.each(l,function(i,r){n.each(b.getTeamplatedFields(),function(n,t){r[t.teamplateField]=r[t.originalField]}),t.teamplateData.push(r)}),b.updateTeamplateFieldNames());for(l=k?t.teamplateData:l,t._dataValidator=f.factory.createDataValidator(l,[a],r.incidentOccured,p.getOptions("dataPrepareSettings")),d=t._dataValidator.validate(),c=0;c=0&&e<1?e:0,bottom:o>=0&&o<1?o:0},i._valueAxis=u.getOptions("valueAxisRangeSelector")||{},i._hideChart=!1,f=u.getOptions("seriesTemplate"),n.dataSource&&f&&(s=r.processSeriesTemplate(f,n.dataSource)),i._series=h(i,n,s),i._seriesFamilies=c(i._series,u.getOptions("equalBarWidth"),u.getOptions("minBubbleSize"),u.getOptions("maxBubbleSize"))},adjustSeriesDimensions:function(t,i){var r=this;i&&n.each(r._series||[],function(n,i){i.resamplePoints(t)}),n.each(r._seriesFamilies,function(){this.adjustSeriesDimensions(t)})},getBoundRange:function(){for(var f=this,l,v=f._valueAxis.min,y=f._valueAxis.max,t=new u.Range({isValueRange:!0,min:v,minVisible:v,max:y,maxVisible:y,axisType:f._valueAxis.type,base:f._valueAxis.logarithmBase}),a=new u.Range({}),e,o,s,h,c=0;c=0?r(e.width):t._element().width(),f=e.height>=0?r(e.height):t._element().height(),o=!1,c;return(u===0&&(r(e.width)===0?o=!0:u=s),f===0&&(r(e.height)===0?o=!0:f=h),o||!t._element().is(":visible"))?(t._incidentOccured("W2001",[t.NAME]),t._width=t._height=0,!1):(c=t._width!==u||t._height!==f||n,c&&(t._width=u,t._height=f,t._renderer.resize(u,f),t._projection.setSize(u,f),t._legend.applyLayout(u,f),t._tooltip.setSize(u,f),t._background.applySettings({x:0,y:0,width:u,height:f}),t._applyTranslate(),t._updateLoadIndicator(i,u,f)),c)},_clean:function(){var n=this;n._tracker.clean(),n._background.detach(),n._areasManager.clean(),n._markersManager.clean(),n._controlBar.clean(),n._legend.clean(),n._tooltip.clean()},_render:function(){var n=this;n._adjustSize(!0)&&(n._tooltip.update(n._themeManager.getTooltipSettings(n.option("tooltip"))),n._tracker.setOptions(n.option("interaction")||{}),n._controlBar.setZoomPartition(n._projection.getZoomScalePartition()).setZoom(n._projection.getScaledZoom()).setOptions(n._themeManager.getControlBarSettings(n.option("controlBar")),n.option("interaction")),n._background.applySettings(n._themeManager.getBackgroundSettings(n.option("background"))),n._background.append(n._root),n._areasManager.render(n.option("areaSettings")),n._markersManager.render(n.option("markerSettings")),n._controlBar.render(),n._legend.render(n._themeManager.getLegendSettings(n.option("legend"))),n._tooltip.render(),n._tracker.render(),n._drawn())},_optionChanged:function(n,t){var i=this;switch(n){case"theme":i._themeManager.setTheme(t),i._themeManager.patchRtlSettings(i.option("rtlEnabled")),i._invalidate();break;case"click":i._setClickCallback(t);break;case"centerChanged":i._setCenterChangedCallback(t);break;case"zoomFactorChanged":i._setZoomFactorChangedCallback(t);break;case"mapData":i._areasManager.setData(t);break;case"markers":i._markersManager.setData(t);break;case"bounds":i._projection.setBounds(t),i._invalidate();break;case"maxZoomFactor":i._projection.setMaxZoom(t),i._invalidate();break;case"zoomFactor":i._updateZoomFactor(t);break;case"center":i._updateCenter(t);break;default:i.callBase.apply(i,arguments)}},_getLoadIndicatorOption:function(){return this._themeManager.getLoadIndicatorSettings(this.option("loadingIndicator"))},_setClickCallback:function(n){this._clickCallback=f(n)?n:null},_setCenterChangedCallback:function(n){var t=this;t._centerChangedCallback=f(n)?function(){t._centerChangedCallback&&n.call(t,t._projection.getCenter())}:null},_setZoomFactorChangedCallback:function(n){var t=this;t._zoomFactorChangedCallback=f(n)?function(){t._zoomFactorChangedCallback&&n.call(t,t._projection.getZoom())}:null},_raiseClick:function(n){var t=this;t._clickCallback&&setTimeout(function(){t._clickCallback&&t._clickCallback.call(t,n)},0)},_raiseCenterChanged:function(){this._centerChangedCallback&&setTimeout(this._centerChangedCallback,0)},_raiseZoomFactorChanged:function(){this._zoomFactorChangedCallback&&setTimeout(this._zoomFactorChangedCallback,0)},_updateCenter:function(n,t){this._projection.snapCenter().setCenter(n),this._projection.isCenterChanged()&&(this._applyTransform(),t||this._raiseCenterChanged())},_updateZoomFactor:function(n,t){var i=this;i._projection.snapZoom().setZoom(n),i._projection.isZoomChanged()&&(i._controlBar.setZoom(i._projection.getScaledZoom()),i._applyTransform(!0),t||i._raiseZoomFactorChanged())},_updateViewport:function(n,t){var i=this;i._projection.snapCenter().snapZoom().setViewport(n),i._applyTransform(i._projection.isZoomChanged()),i._projection.isCenterChanged()&&(t||i._raiseCenterChanged()),i._projection.isZoomChanged()&&(i._controlBar.setZoom(i._projection.getScaledZoom()),t||i._raiseZoomFactorChanged())},_resize:function(){this._adjustSize()&&this._applyTransform(!0)},_applyTranslate:function(){var n=this._projection.getTransform();this._areasManager.transform(n),this._markersManager.transform(n)},_applyTransform:function(n,t){t||this._tracker.reset(),this._applyTranslate(),n&&(this._areasManager.redraw(),this._markersManager.redraw())},_refresh:function(){var n=this,t=n.callBase;n._endLoading(function(){t.call(n)})},render:function(){var n=this;return n._width===0&&n._height===0?n._refresh():n._resize(),n},getAreas:function(){return this._areasManager.getProxyItems()},getMarkers:function(){return this._markersManager.getProxyItems()},clearAreaSelection:function(n){return this._areasManager.clearSelection(n),this},clearMarkerSelection:function(n){return this._markersManager.clearSelection(n),this},clearSelection:function(n){return this.clearAreaSelection(n).clearMarkerSelection(n)},center:function(n,t){return n===i?this._projection.getCenter():(this._updateCenter(n,t),this)},zoomFactor:function(n,t){return n===i?this._projection.getZoom():(this._updateZoomFactor(n,t),this)},viewport:function(n,t){return n===i?this._projection.getViewport():(this._updateViewport(n,t),this)},convertCoordinates:function(n,t){return this._projection.fromScreenPointStrict(n,t)},showLoadingIndicator:function(){this._showLoadIndicator(this._themeManager.getLoadIndicatorSettings(this.option("loadingIndicator")),{width:this._width,height:this._height})},_factory:{createRenderer:function(t){return new n.viz.renderers.Renderer(t)},createTooltip:function(n){return new e(n)},createLegend:function(n){return new o(n)}}}),e=n.viz.core.Tooltip.inherit({ctor:function(n){var t=this;t._container=n.container,t._root=n.renderer.createGroup({"class":"dxm-tooltip"}),t.callBase(null,t._root,n.renderer),t._tracker=n.tracker,t._enabled=!1},dispose:function(){var n=this;return n._container=n._root=n._tracker=null,n.callBase.apply(n,arguments)},clean:function(){return this._root.detach(),this},render:function(){return this._root.append(this._container),this}}),o=n.viz.core.Legend.inherit({ctor:function(n){var t=this;t._container=n.container,t._root=n.renderer.createGroup({"class":"dxm-legend"}),t._themeManager=n.themeManager,t.callBase(null,null,n.renderer,t._root)},dispose:function(){var n=this;return n._container=n._root=n._themeManager=null,n.callBase.apply(n,arguments)},clean:function(){return this._root.detach(),this},render:function(n){for(var t=this,r=[],i=0,u=n.items?n.items.length:0;ii?u=i:t<=u&&u<=i||(u=r),u}function it(n,t,i){return{lt:[u(n[0],t[0],i[0],t[0]),u(n[1],t[1],i[1],t[1])],rb:[u(n[2],t[0],i[0],i[0]),u(n[3],t[1],i[1],i[1])]}}function lt(n){var i=r.unproject([-1,-1]),u=r.unproject([1,1]),o=[f(i[0],u[0]),f(i[1],u[1])],s=[e(i[0],u[0]),e(i[1],u[1])],t=n;return t&&t.minLon&&(t=[t.minLon,t.minLat,t.maxLon,t.maxLat]),t&&(t=it(t,o,s)),{minBase:o,maxBase:s,min:t?[f(t.lt[0],t.rb[0]),f(t.lt[1],t.rb[1])]:o,max:t?[e(t.lt[0],t.rb[0]),e(t.lt[1],t.rb[1])]:s}}function rt(n,t,i,r){var u;return u=n>-1&&t>=1?i:n<=-1&&t<1?r:(i+r)/2}function y(){this.setBounds(null)}var p=Number,at=isFinite,f=Math.min,e=Math.max,l=Math.abs,ut=Math.tan,ft=Math.atan,et=Math.exp,o=Math.round,s=Math.log,ot=Math.pow,h=n.utils.isArray,st=n.viz.renderers.buildPath,c=Math.PI,w=c/4,b=c/360,ht=2/Math.LN2,a=1,k=256,d=-180,g=180,nt=-85.0511,tt=85.0511,r={aspectRatio:1,project:function(n){var t=n[0],i=n[1];return[t<=d?-1:t>=g?1:t/180,i<=nt?1:i>=tt?-1:-s(ut(w+i*b))/c]},unproject:function(n){var t=n[0],i=n[1];return[t<=-1?d:t>=1?g:180*t,i<=-1?tt:i>=1?nt:(ft(et(-c*n[1]))-w)/b]}};y.prototype={constructor:y,_minZoom:a,_maxZoom:k,_zoom:a,setSize:function(n,t){var i=this;return i._x0=n/2,i._y0=t/2,n/t<=r.aspectRatio?(i._xradius=n/2,i._yradius=n/2/r.aspectRatio):(i._xradius=t/2*r.aspectRatio,i._yradius=t/2),i},setBounds:function(n){var t=this,i=lt(n),o,s;t._minBase=i.minBase,t._maxBase=i.maxBase,t._minBound=i.min,t._maxBound=i.max;var h=r.project(i.min),c=r.project(i.max),a=f(u(l(c[0]-h[0]),.1,2,2),u(l(c[1]-h[1]),.1,2,2)),v=a<2?ct(h,c,a):r;return t._project=v.project,t._unproject=v.unproject,o=t._project(i.minBase),s=t._project(i.maxBase),t._minv=[f(o[0],s[0]),f(o[1],s[1])],t._maxv=[e(o[0],s[0]),e(o[1],s[1])],t._defaultCenter=t._unproject([0,0]),t.setCenter(t._defaultCenter)},_toScreen:function(n){return[this._x0+this._xradius*n[0],this._y0+this._yradius*n[1]]},_fromScreen:function(n){return[(n[0]-this._x0)/this._xradius,(n[1]-this._y0)/this._yradius]},_toTransformed:function(n){return[n[0]*this._zoom+this._dxcenter,n[1]*this._zoom+this._dycenter,]},_toTransformedFast:function(n){return[n[0]*this._zoom,n[1]*this._zoom]},_fromTransformed:function(n){return[(n[0]-this._dxcenter)/this._zoom,(n[1]-this._dycenter)/this._zoom]},_adjustCenter:function(){var n=this,t=n._project(n._center);n._dxcenter=-t[0]*n._zoom,n._dycenter=-t[1]*n._zoom},projectArea:function(n){for(var r=0,o=h(n)?n.length:0,t,i,f,u,e=[];r4?t:4;var u=ot(n._maxZoom,1/t),i=n._minZoom,r=1;for(n._scale=[i];r<=t;++r)n._scale.push(i*=u)},setMaxZoom:function(n){var t=this;return t._minZoom=a,t._maxZoom=u(n,t._minZoom,p.MAX_VALUE,k),t._setupScaling(),t._zoom>t._maxZoom&&t.setZoom(t._maxZoom),t},getMinZoom:function(){return this._minZoom},getMaxZoom:function(){return this._maxZoom},getCenter:function(){return[this._center[0],this._center[1]]},setCenter:function(n){var i=h(n)?n:null,t;return i=i||n&&(n.lon||n.lat)&&[n.lon,n.lat]||[],t=this,t._center=[u(i[0],t._minBound[0],t._maxBound[0],t._defaultCenter[0]),u(i[1],t._minBound[1],t._maxBound[1],t._defaultCenter[1])],t._adjustCenter(),t},setCenterByPoint:function(n,t){var i=this,r=i._project(n),u=i._fromScreen(t);return i.setCenter(i._unproject([-u[0]/i._zoom+r[0],-u[1]/i._zoom+r[1]]))},moveCenter:function(n,t){var i=this,r=i._toScreen(i._toTransformed(i._project(i._center))),u=i._unproject(i._fromTransformed(i._fromScreen([r[0]+n,r[1]+t])));return i.setCenter(u)},getViewport:function(){var n=this._unproject(this._fromTransformed([-1,-1])),t=this._unproject(this._fromTransformed([1,1]));return[n[0],n[1],t[0],t[1]]},setViewport:function(n){var t=this;if(!h(n))return t.setZoom(t._minZoom).setCenter(t._defaultCenter);var a=it(n,t._minBase,t._maxBase),r=t._project(a.lt),u=t._project(a.rb),o=f(r[0],u[0]),s=f(r[1],u[1]),c=e(r[0],u[0]),l=e(r[1],u[1]),i=2/e(c-o,l-s),v=rt(o,c,-1-i*o,1-i*c),y=rt(s,l,-1-i*s,1-i*l);return t.setZoom(i).setCenter(t._unproject([-v/i,-y/i]))},getTransform:function(){return{translateX:this._dxcenter*this._xradius,translateY:this._dycenter*this._yradius}},fromScreenPoint:function(n,t){return this._unproject(this._fromTransformed(this._fromScreen([n,t])))},fromScreenPointStrict:function(n,t){var i=this,r=i._fromTransformed(i._fromScreen([n,t])),u=i._unproject(r);return[r[0]>=i._minv[0]&&r[0]<=i._maxv[0]?u[0]:NaN,r[1]>=i._minv[1]&&r[1]<=i._maxv[1]?u[1]:NaN]},snapCenter:function(){return this._snappedCenter=this.getCenter(),this},isCenterChanged:function(){var n=this.getCenter();return!v(this._snappedCenter[0],n[0])||!v(this._snappedCenter[1],n[1])},snapZoom:function(){return this._snappedZoom=this.getZoom(),this},isZoomChanged:function(){return!v(this._snappedZoom,this.getZoom())}},n.viz.map.Map.prototype._factory.createProjection=function(){return new y}}(DevExpress,jQuery),function(n,t){function f(n){delete n._owner,n.update=function(){},n.finish=function(){}}function v(n,t){this._owner=n,this._command=t.data}function y(n,t){function u(){n._move(i,r),f=b(u,e)}this._command=t.data;var f=null,e=100,i=0,r=0;switch(this._command){case s:r=-10;break;case h:i=10;break;case c:r=10;break;case l:i=-10}this._stop=function(){return k(f),n._endMove(),this._stop=n=u=null,this},t=null,n._beginMove(),u()}function p(n,t){function i(){n._adjustZoom(n._zoomFactor+f),r=b(i,u)}this._owner=n,this._command=t.data;var r=null,u=150,f=this._command===a?1:-1;this._stop=function(){return k(r),this._stop=n=i=null,this},t=null,i()}function w(n,t){this._owner=n,this._zoomFactor=n._zoomFactor,this._pos=t.y}var e=n.viz.renderers.buildPath,b=setTimeout,k=clearTimeout,o=Math.round,it=Math.pow,rt=Math.log,ut=Math.LN2,d="command-reset",s="command-move-up",h="command-move-right",c="command-move-down",l="command-move-left",a="command-zoom-in",g="command-zoom-out",nt="command-zoom-drag",r=n.viz.map.__DATA_KEY,u="control-bar",i={},tt;i[d]=v,i[s]=i[h]=i[c]=i[l]=y,i[a]=i[g]=p,i[nt]=w,tt=n.Class.inherit({ctor:function(n){var t=this;t._container=n.container,t._createElements(n.renderer);var i=n.context,r=n.resetCallback,e=n.beginMoveCallback,o=n.endMoveCallback,u=n.moveCallback,f=n.zoomCallback;n=null,t._reset=function(){r.call(i)},t._beginMove=function(){e.call(i)},t._endMove=function(){o.call(i)},t._move=function(n,t){u.call(i,n,t)},t._zoom=function(n,t,r){f.call(i,n,t,r)},t._dispose=function(){this._reset=this._move=this._zoom=this._dispose=i=r=u=f=null}},_createElements:function(n){var t=this,i;t._root=n.createGroup({"class":"dxm-control-bar"}),t._buttonsGroup=n.createGroup({"class":"dxm-control-buttons"}).append(t._root),t._trackersGroup=n.createGroup({stroke:"none",strokeWidth:0,fill:"#000000",opacity:.0001,cursor:"pointer"}).append(t._root),i={bigCircleSize:58,smallCircleSize:28,buttonSize:10,arrowButtonOffset:20,incdecButtonSize:11,incButtonOffset:66,decButtonOffset:227,sliderLineStartOffset:88.5,sliderLineEndOffset:205.5,sliderLength:20,sliderWidth:8,trackerGap:4},t._createButtons(n,i),t._createTrackers(n,i),t._root.applySettings({translateX:50.5,translateY:50.5})},_createButtons:function(n,t){var i=this._buttonsGroup,r=t.buttonSize/2,u=t.arrowButtonOffset-r,o=t.arrowButtonOffset,f=t.incdecButtonSize/2;n.createCircle(0,0,t.bigCircleSize/2).append(i),n.createCircle(0,0,r).append(i),n.createPath([-r,-u,0,-o,r,-u]).append(i),n.createPath([u,-r,o,0,u,r]).append(i),n.createPath([r,u,0,o,-r,u]).append(i),n.createPath([-u,r,-o,0,-u,-r]).append(i),n.createCircle(0,t.incButtonOffset,t.smallCircleSize/2).append(i),n.createSimplePath({d:e([-f,t.incButtonOffset,f,t.incButtonOffset])+" "+e([0,t.incButtonOffset-f,0,t.incButtonOffset+f])}).append(i),n.createCircle(0,t.decButtonOffset,t.smallCircleSize/2).append(i),n.createSimplePath({d:e([-f,t.decButtonOffset,f,t.decButtonOffset])}).append(i),n.createSimplePath({d:e([0,t.sliderLineStartOffset,0,t.sliderLineEndOffset])}).append(i),this._zoomDrag=n.createRect(-t.sliderLength/2,t.sliderLineEndOffset-t.sliderWidth/2,t.sliderLength,t.sliderWidth).append(i),this._sliderLineLength=t.sliderLineEndOffset-t.sliderLineStartOffset},_createTrackers:function(n,t){var f=this._trackersGroup,i=o((t.arrowButtonOffset-t.trackerGap)/2),v=t.arrowButtonOffset-i,y=o(it(t.bigCircleSize*t.bigCircleSize/4-i*i,.5)),e=y-v,p;n.createRect(-i,-i,i*2,i*2).append(f).data(r,{index:d,type:u}),n.createRect(-i,-y,i*2,e).append(f).data(r,{index:s,type:u}),n.createRect(v,-i,e,i*2).append(f).data(r,{index:h,type:u}),n.createRect(-i,v,i*2,e).append(f).data(r,{index:c,type:u}),n.createRect(-y,-i,e,i*2).append(f).data(r,{index:l,type:u}),n.createCircle(0,t.incButtonOffset,t.smallCircleSize/2).append(f).data(r,{index:a,type:u}),n.createCircle(0,t.decButtonOffset,t.smallCircleSize/2).append(f).data(r,{index:g,type:u}),this._zoomDragCover=n.createRect(-t.sliderLength/2,t.sliderLineEndOffset-t.sliderWidth/2,t.sliderLength,t.sliderWidth).append(f).data(r,{index:nt,type:u})},dispose:function(){var n=this;return delete n._container,n._dispose(),n._root.clear(),delete n._root,delete n._buttonsGroup,delete n._zoomDrag,delete n._zoomDragCover,n},setZoomPartition:function(n){return this._zoomPartition=n,this._sliderUnitLength=this._sliderLineLength/n,this},setZoom:function(n){return this._adjustZoom(n),this},setOptions:function(n,i){return n=n||{},i=i||{},this._dragAndZoomEnabled=i.dragAndZoomEnabled!==t?!!i.dragAndZoomEnabled:!0,this._enabled=this._dragAndZoomEnabled&&(n.enabled!==t?!!n.enabled:!0),this._buttonsGroup.applySettings(n.shape),this},clean:function(){return this._enabled&&this._root.detach(),this},render:function(){return this._enabled&&this._root.append(this._container),this},_adjustZoom:function(n){var t=this,i;t._zoomFactor=o(n),t._zoomFactor>=0||(t._zoomFactor=0),t._zoomFactor<=t._zoomPartition||(t._zoomFactor=t._zoomPartition),i={translateY:-t._zoomFactor*t._sliderUnitLength},t._zoomDrag.applySettings(i),t._zoomDragCover.applySettings(i)},_applyZoom:function(n,t){this._zoom(this._zoomFactor,n,t)},processStart:function(n){if(this._dragAndZoomEnabled){var t=i[n.data];this._command=new t(this,n)}return this},processMove:function(n){return this._dragAndZoomEnabled&&this._command.update(n),this},processEnd:function(n){return this._dragAndZoomEnabled&&this._command.finish(n),this},processZoom:function(n){var t=this,i;return t._dragAndZoomEnabled&&(n.delta?i=n.delta:n.ratio&&(i=rt(n.ratio)/ut),t._adjustZoom(t._zoomFactor+i),t._applyZoom(n.x,n.y)),t}}),v.prototype.update=function(n){n.data!==this._command&&f(this)},v.prototype.finish=function(){this._owner._reset(),this._owner._adjustZoom(0),f(this)},y.prototype.update=function(n){this._command!==n.data&&this.finish()},y.prototype.finish=function(){f(this._stop())},p.prototype.update=function(n){this._command!==n.data&&this.finish()},p.prototype.finish=function(){this._owner._applyZoom(),f(this._stop())},w.prototype.update=function(n){var t=this._owner;t._adjustZoom(this._zoomFactor+t._zoomPartition*(this._pos-n.y)/t._sliderLineLength)},w.prototype.finish=function(){this._owner._applyZoom(),f(this)},n.viz.map.Map.prototype._factory.createControlBar=function(n){return new tt(n)}}(DevExpress),function(n,t,i){function it(n){this._root=n.root,this._callbacks={},this._createEventHandlers(),this._focus=new rt(this._callbacks)}function rt(n){this._callbacks=n,this.disabled=!0}function ut(n,t,i,r){return et((n-i)*(n-i)+(t-r)*(t-r))}function u(n){var t=n.originalEvent.type,i=n.originalEvent.pointerType;return/^touch/.test(t)||/^MSPointer/.test(t)&&i!==4||/^pointer/.test(t)&&i!=="mouse"}function s(n,t){for(var i=0,u=n.length,r;ic||o(s.y-r.y)>c)&&(r.x=s.x,r.y=s.y,r.active=!0,r.data=t(i.target).data(f)||{},n._isDragEnabled&&n._callbacks[ct]({data:r.data,x:s.x,y:s.y})))},n._$docDragEvents[r.end]=function(t){var r=n._dragState,i;r&&(i=u(t),!i||n._isTouchEnabled)&&n._endDragging()},n._rootZoomEvents={},n._rootZoomEvents[r.wheel]=function(t){var i,r;n._isWheelEnabled&&((t.preventDefault(),n._zoomState)||(i=t.originalEvent.wheelDelta/120||t.originalEvent.detail/-3||0,i!==0)&&(i=i>0?st(p(i)||1,4):ot(p(i)||-1,-4),r=e(t),n._isZoomEnabled&&n._callbacks[k]({delta:i,x:r.x,y:r.y}),n._zoomState=setTimeout(function(){n._zoomState=null},50)))},n._rootZoomEvents[r.start]=function(t){var o=u(t),r,f,e;o&&n._isTouchEnabled&&((r=n._zoomState=n._zoomState||{},r.pointer1&&r.pointer2)||(r.pointer1===i&&(r.pointer1=ft(t)||0,f=l(t,r.pointer1),r.x1=r.x1_0=f.x,r.y1=r.y1_0=f.y),r.pointer2===i&&(e=ft(t)||1,e!==r.pointer1&&(f=l(t,e),f&&(r.x2=r.x2_0=f.x,r.y2=r.y2_0=f.y,r.pointer2=e,r.ready=!0,n._endDragging())))))},n._$docZoomEvents={},n._$docZoomEvents[r.move]=function(t){var r=n._zoomState,e,f;r&&(e=u(t),e&&n._isTouchEnabled)&&(r.pointer1!==i&&(f=l(t,r.pointer1),f&&(r.x1=f.x,r.y1=f.y)),r.pointer2!==i&&(f=l(t,r.pointer2),f&&(r.x2=f.x,r.y2=f.y)))},n._$docZoomEvents[r.end]=function(t){var i=n._zoomState,r,f,e;i&&(r=u(t),r&&n._isTouchEnabled)&&(i.ready&&(f=ut(i.x1_0,i.y1_0,i.x2_0,i.y2_0),e=ut(i.x1,i.y1,i.x2,i.y2),n._isZoomEnabled&&n._callbacks[k]({ratio:e/f,x:(i.x1_0+i.x2_0)/2,y:(i.y1_0+i.y2_0)/2})),n._zoomState=null)},n._rootHoverEvents={},n._rootHoverEvents[r.over]=function(i){var e,r;n._hoverTarget!==i.target&&((e=u(i),e)||(r=t(i.target).data(f),r)&&(n._hoverTarget&&n._endHovering(),n._hoverTarget=i.target,n._hoverState={data:r},n._callbacks[at]({data:r})))},n._$docHoverEvents={},n._$docHoverEvents[r.out]=function(i){var o=n._hoverState,r,e;o&&((r=u(i),r)||(e=t(i.target).data(f),e)&&n._endHovering())},n._rootFocusEvents={},n._rootFocusEvents[r.start]=function(i){var o=u(i),r;o&&n._isTouchEnabled&&(r=t(i.target).data(f),r)&&(n._focus.turnOff(y),n._focus.turnOn(i.target,r,e(i),gt),n._skip$docEvent=!0)},n._rootFocusEvents[r.over]=function(i){var s,r,o;n._focusTarget!==i.target&&((n._focusTarget=i.target,s=u(i),s)||(r=t(i.target).data(f),r)&&(n._focusTarget&&n._focus.turnOff(nt),o=e(i),n._focus.active?n._focus.move(i.target,r,o):n._focus.turnOn(i.target,r,o,v)))},n._$docFocusEvents={},n._$docFocusEvents[r.start]=function(t){n._focusTarget=t.target;var i=u(t);i&&n._isTouchEnabled&&(n._skip$docEvent||n._focus.turnOff(y),n._skip$docEvent=null)},n._$docFocusEvents[r.move]=function(i){var h,s,r;n._focus.disabled||n._focusTarget===i.target&&(h=u(i),!h||n._isTouchEnabled)&&(s=t(i.target).data(f),s)&&(r=e(i),h?(n._dragState&&n._dragState.active||n._zoomState&&n._zoomState.ready)&&n._focus.cancel():n._focus.active?n._dragState&&n._dragState.active?(n._focus.cancel(),n._focus.turnOn(i.target,s,r,v*4)):n._focus.move(i.target,s,r):(o(r.x-n._focus.x)>tt||o(r.y-n._focus.y)>tt)&&n._focus.turnOn(i.target,s,r,v))},n._$docFocusEvents[r.end]=function(t){if(!n._focus.disabled){var i=u(t);i&&n._isTouchEnabled&&(n._focusTarget=null,n._focus.active?n._focus.changing&&n._focus.cancel():n._focus.turnOff(y))}},n._$docFocusEvents[r.out]=function(i){var r,e;n._focus.disabled||(r=u(i),r)||(n._focusTarget=null,e=t(i.target).data(f),e)&&n._focus.turnOff(nt)}},_endDragging:function(){var n=this,t=n._dragState;n._dragState=null,t&&n._isDragEnabled&&n._callbacks[lt]({data:t.data,x:t.x,y:t.y})},_endHovering:function(){var n=this,t=n._hoverState;n._hoverState=n._hoverTarget=null,t&&n._callbacks[vt]({data:t.data})},reset:function(){var n=this;return n._clickState=null,n._endDragging(),n._endHovering(),n._focus.cancel(),n._focusTarget=null,n},setCallbacks:function(n){return a(this._callbacks,n),this},setOptions:function(n){return this._isTouchEnabled=n.touchEnabled===i||!!n.touchEnabled,this._isWheelEnabled=n.wheelEnabled===i||!!n.wheelEnabled,this._isDragEnabled=n.dragAndZoomEnabled===i||!!n.dragAndZoomEnabled,this._isZoomEnabled=n.dragAndZoomEnabled===i||!!n.dragAndZoomEnabled,this},clean:function(){var n=this;return n._isTouchEnabled&&(n._root.applySettings({style:{"touch-action":"","-ms-touch-action":"","-webkit-user-select":""}}),n._root.off(h("MSHoldVisual",c)).off(h("contextmenu",c))),n._detachEventHandlers(),n.reset(),n},render:function(){var n=this;if(n._isTouchEnabled){n._root.applySettings({style:{"touch-action":"none","-ms-touch-action":"none","-webkit-user-select":"none"}});n._root.on(h("MSHoldVisual",c),function(n){n.preventDefault()}).on(h("contextmenu",c),function(n){u(n)&&n.preventDefault()})}return n._attachEventHandlers(),n},_attachEventHandlers:function(){var n=this;n._root.on(n._rootClickEvents).on(n._rootDragEvents).on(n._rootZoomEvents).on(n._rootHoverEvents).on(n._rootFocusEvents);b.on(n._$docClickEvents).on(n._$docDragEvents).on(n._$docZoomEvents).on(n._$docHoverEvents).on(n._$docFocusEvents)},_detachEventHandlers:function(){var n=this;n._root.off(n._rootClickEvents).off(n._rootDragEvents).off(n._rootZoomEvents).off(n._rootHoverEvents).off(n._rootFocusEvents),b.off(n._$docClickEvents).off(n._$docDragEvents).off(n._$docZoomEvents).off(n._$docHoverEvents).off(n._$docFocusEvents)}}),a(rt.prototype,{dispose:function(){var n=this;clearTimeout(n._onTimer),clearTimeout(n._offTimer),n._callbacks=n._onTimer=n._offTimer=n.active=n._data=null},_createCallback:function(n,t,i){function u(i){r.changing=null,r.disabled=!i,i&&(r._data=t,r.active=n,clearTimeout(r._offTimer),r._offTimer=null)}var r=this;return function(){r.active===n?(r._callbacks[wt]({data:r._data,x:i.x,y:i.y}),u(!0)):r._callbacks[pt]({data:t,x:i.x,y:i.y},u)}},turnOn:function(n,t,i,r){var u=this;u.disabled=!1,u.x=i.x,u.y=i.y,clearTimeout(u._onTimer),u.changing=!0,u._onTimer=setTimeout(u._createCallback(n,t,i),r)},move:function(n,t,i){this.x=i.x,this.y=i.y,this._createCallback(n,t,i)()},turnOff:function(n){var t=this;t.active?t._offTimer=t._offTimer||setTimeout(function(){t._offTimer=null,t._callbacks[d]({data:t._data}),t._data=t.active=null,t.disabled=!0},n):(clearTimeout(t._onTimer),t._onTimer=null,t.disabled=!0)},cancel:function(){var n=this;n.active&&n._callbacks[d]({data:n._data}),clearTimeout(n._onTimer),clearTimeout(n._offTimer),n._data=n.active=n._onTimer=n._offTimer=null,n.disabled=!0}}),n.viz.map.Map.prototype._factory.createTracker=function(n){return new it(n)}}(DevExpress,jQuery),function(n,t,i){var u=Number,r=t.extend,f=t.each,e=n.viz.core.BaseThemeManager.inherit({_themeSection:"map",_initializeTheme:function(){var n=this;n._initializeFont(n._theme.marker.font),n._initializeFont(n._theme.tooltip.font),n._initializeFont(n._theme.legend.font),n._initializeFont(n._theme.loadingIndicator.font)},dispose:function(){var n=this;return n.callBase.apply(n,arguments),n._areasPalette=n._markersPalette=null,n},getBackgroundSettings:function(n){var i=this._theme.background,t=r({},i,n);return{strokeWidth:t.borderWidth,stroke:t.borderColor,fill:t.color}},getCommonAreaSettings:function(t){var i=r({},this._theme.area,t);return this._areasPalette=new n.viz.core.GradientPalette(i.palette,i.paletteSize),i},getAreaSettings:function(n,t){t=t||{};var f=r({},n,t);return f.borderWidth=u(f.borderWidth)||0,f.borderColor=f.borderColor||null,t.color===i&&t.paletteIndex>=0&&(f.color=this._areasPalette.getColor(t.paletteIndex)),f.color=f.color||null,f.hoveredBorderWidth=u(f.hoveredBorderWidth)||f.borderWidth,f.hoveredBorderColor=f.hoveredBorderColor||f.borderColor,f.hoveredColor=f.hoveredColor||f.color,f.selectedBorderWidth=u(f.selectedBorderWidth)||f.borderWidth,f.selectedBorderColor=f.selectedBorderColor||f.borderColor,f.selectedColor=f.selectedColor||f.color,f},getCommonMarkerSettings:function(t){t=t||{};var i=this._theme.marker,u={};return f(i,function(n){if(n[0]==="_"){var f=i[n]||{},e=t[n]||{},o=r({},i,f,t,e);o.font=r({},i.font,f.font,t.font,e.font),u[n.substr(1)]=o}}),this._markersPalette=new n.viz.core.Palette(t.palette||i.palette,{stepHighlight:50,theme:this.themeName()}),u},getMarkerSettings:function(n,t,i){t=t||{};var e=n[i],f=r({},e,t);return f.font=r({},e.font,t.font),f.borderWidth=u(f.borderWidth)||0,f.borderColor=f.borderColor||null,f.color=f.color||null,f.opacity=f.opacity||null,f.hoveredBorderWidth=u(f.hoveredBorderWidth)||f.borderWidth,f.hoveredBorderColor=f.hoveredBorderColor||f.borderColor,f.hoveredColor=f.hoveredColor||f.color,f.hoveredOpacity=f.hoveredOpacity||f.opacity,f.selectedBorderWidth=u(f.selectedBorderWidth)||f.borderWidth,f.selectedBorderColor=f.selectedBorderColor||f.borderColor,f.selectedColor=f.selectedColor||f.color,f.selectedOpacity=f.selectedOpacity||f.opacity,f},getMarkerColors:function(n){for(var t=0,i=[];t=0&&(t=this._areasPalette.getColor(n.paletteIndex)),{text:n.text,color:t}},patchRtlSettings:function(n){var i=this._theme;(n||i.rtlEnabled&&n!==!1)&&t.extend(!0,i,i._rtl)}});n.viz.map.Map.prototype._factory.createThemeManager=function(){return new e}}(DevExpress,jQuery),function(n,t,i){function p(n,t,r){return t=t||{},{attribute:function(n){return n!==i?t[n]:a({},t)},selected:function(t,u){return t!==i?(n.selected!==!!t&&r(n._data.index,!!t,u),this):n.selected}}}function s(n){r(n,function(t){n[t]=null})}var h=String,c=n.utils.isString,l=n.utils.isArray,e=n.utils.isFunction,a=t.extend,r=t.each,v=t.map,f="none",u="single",o="multiple",y=n.Class.inherit({_rootClass:null,ctor:function(n){var t=this;t._container=n.container,t._renderer=n.renderer,t._projection=n.projection,t._themeManager=n.themeManager,t._tracker=n.tracker,t._ready=n.ready,t._root=t._renderer.createGroup({"class":t._rootClass}),t._items=[],t._context={renderer:t._renderer,root:t._root,projection:t._projection,selectItem:function(n,i,r){t.selectItem(n,i,r)}}},dispose:function(){var n=this;return n._container=n._renderer=n._projection=n._themeManager=n._tracker=n._ready=n._root=n._source=n._context=null,n},clean:function(){var n=this;return n._rendered=!1,n._root.detach(),n._customizeCallback=n._clickCallback=n._selectionChangedCallback=null,n._destroyItems(),n},render:function(n){var t,i;return n=n||{},t=this,t._rendered=!0,t._customizeCallback=e(n.customize)?n.customize:null,t._clickCallback=e(n.click)?n.click:null,t._selectionChangedCallback=e(n.selectionChanged)?n.selectionChanged:null,t._hoverEnabled="hoverEnabled"in n?!!n.hoverEnabled:!0,i=h(n.selectionMode).toLowerCase(),t._selectionMode=i===f||i===u||i===o?i:u,t._root.append(t._container),t._source!==null&&t._createItems(),t},_destroyItems:function(){var n=this;n._root.clear(),r(n._items,function(n,t){t.clean().dispose()}),n._items=[],n._selectedItems=null},_getItemSettings:null,_createItem:null,_isItemSelected:null,_arrangeItems:null,_createItems:function(){var n=this,t;n._selectedItems=n._selectionMode===o?{}:null,t=[],r(l(n._source)?n._source:[],function(i,r){var u,f,e;r=r||{},u=n._customizeCallback&&n._customizeCallback.call(r,r)||{},f={item:r,coords:n._getItemCoordinates(r),attrs:n._getItemAttributes(r)},u=n._getItemSettings(f,u),e=n._createItem(u),e.init(n._context,f,i).render(u).locate(),n._items.push(e),n._isItemSelected(f,u)&&t.push(i)}),n._selectionMode!==f&&t.length>0&&(n._selectionMode===u&&(t=[t[t.length-1]]),r(t,function(t,i){n.selectItem(i,!0,!0)})),n._arrangeItems(),n._ready&&n._ready()},_processSource:null,setData:function(n){function r(n){i._source=i._processSource(n)||0,i._rendered&&(i._tracker.reset(),i._destroyItems(),i._createItems())}var i=this;return i._source=null,c(n)?t.getJSON(n).done(r).fail(function(){r(null)}):r(n),i},transform:function(n){return this._root.applySettings(n),this},redraw:function(){return r(this._items,function(n,t){t.locate()}),this},hoverItem:function(n,t){return this._hoverEnabled&&this._items[n].setHovered(!!t),this},_raiseSelectionChanged:function(n){var t=this;t._selectionChangedCallback&&setTimeout(function(){t._selectionChangedCallback&&t._selectionChangedCallback.call(n.proxy,n.proxy)},0)},selectItem:function(n,t,i){var r=this,e,o;return r._selectionMode===f?r:(e=r._items[n],o=e.selected,e.setSelected(!!t),e.selected===o)?r:(i||r._raiseSelectionChanged(e),e.selected&&r._selectionMode===u&&r._selectedItems&&(r._selectedItems.setSelected(!1),i||r._raiseSelectionChanged(r._selectedItems),r._selectedItems=null),r._selectionMode===u?r._selectedItems=e.selected?e:null:e.selected?r._selectedItems[n]=e:delete r._selectedItems[n],r)},clearSelection:function(){var n=this;return n._selectionMode===f?n:(n._selectionMode===u?n._selectedItems&&(n._selectedItems.setSelected(!1),n._raiseSelectionChanged(n._selectedItems),n._selectedItems=null):r(n._selectedItems,function(t,i){i.setSelected(!1),n._raiseSelectionChanged(i),delete n._selectedItems[t]}),n)},raiseClick:function(n,t){var i=this,r=i._items[n];return i._clickCallback&&setTimeout(function(){i._clickCallback&&i._clickCallback.call(r.proxy,r.proxy,t)},0),i},getProxyItems:function(){return v(this._items,function(n){return n.proxy})},getProxyItem:function(n){return this._items[n].proxy}});n.viz.map._internal.mapItemBehavior={init:function(n,t,i){var r=this;return r._ctx=n,r._src=t,r._coords=r._project(n.projection,t.coords),r._data={index:i,type:r._type},r.hovered=r.selected=!1,r.proxy=p(r,t.attrs,n.selectItem),r.proxy.type=r._type,r._init(),r},dispose:function(){return s(this.proxy),s(this),this},locate:function(){var n=this;return n._locate(n._transform(n._ctx.projection,n._coords)),n},clean:function(){return this._root.detach(),this},render:function(n){var t=this;return t._root=t._createRoot().append(t._ctx.root),t._render(n),t},setHovered:function(n){var t=this;return t.hovered=!!n,t._onHover(),t.selected||(t.hovered?t._setHoveredState():t._setDefaultState()),t},setSelected:function(n){var t=this;return t.selected=!!n,t.selected?t._setSelectedState():t.setHovered(t.hovered),t}},n.viz.map.Map.prototype._factory.MapItemsManager=y}(DevExpress,jQuery),function(n,t,i){function e(n){return n.coordinates}function o(n){var t,r;return n.geometry&&(r=n.geometry.type,t=n.geometry.coordinates,t&&(r==="Polygon"||r==="MultiPolygon")?r==="MultiPolygon"&&(t=[].concat.apply([],t)):t=i),t}function s(n){return n.attributes}function h(n){return n.properties}function r(){}var u=n.viz.map.__DATA_KEY,f=n.viz.map.Map.prototype._factory.MapItemsManager.inherit({_rootClass:"dxm-areas",_processSource:function(n){var t=n&&n.type==="FeatureCollection";return this._getItemCoordinates=t?o:e,this._getItemAttributes=t?h:s,t?n.features:n},clean:function(){return this._commonSettings=null,this.callBase.apply(this,arguments)},render:function(n){return this._commonSettings=this._themeManager.getCommonAreaSettings(n||{}),this.callBase.apply(this,arguments)},_getItemSettings:function(n,t){return this._themeManager.getAreaSettings(this._commonSettings,t)},_createItem:function(){return new r},_isItemSelected:function(n,t){return n.attrs.isSelected||t.isSelected},_arrangeItems:t.noop});t.extend(r.prototype,n.viz.map._internal.mapItemBehavior,{_type:"area",_project:function(n,t){return n.projectArea(t)},_init:t.noop,_createRoot:function(){return this._ctx.renderer.createSimplePath()},_render:function(n){var t=this;return t._styles={normal:{"class":"dxm-area",stroke:n.borderColor,strokeWidth:n.borderWidth,fill:n.color},hovered:{"class":"dxm-area dxm-area-hovered",stroke:n.hoveredBorderColor,strokeWidth:n.hoveredBorderWidth,fill:n.hoveredColor},selected:{"class":"dxm-area dxm-area-selected",stroke:n.selectedBorderColor,strokeWidth:n.selectedBorderWidth,fill:n.selectedColor}},t._root.applySettings(t._styles.normal).data(u,t._data),t},_transform:function(n,t){return n.getAreaCoordinates(t)},_locate:function(n){this._root.applySettings({d:n})},_onHover:t.noop,_setDefaultState:function(){this._root.applySettings(this._styles.normal).toBackground()},_setHoveredState:function(){this._root.applySettings(this._styles.hovered).toForeground()},_setSelectedState:function(){this._root.applySettings(this._styles.selected).toForeground()}}),n.viz.map.Map.prototype._factory.createAreasManager=function(n){return new f(n)}}(DevExpress,jQuery),function(n,t){function ut(n){return function(){return[r(n[0]),r(n[1])]}}function v(){}function y(){}function p(){}function w(){}function b(n,t){return e[n]&&n||t||it}var r=Number,ft=String,h=isFinite,c=Math.round,k=Math.max,d=Math.min,u=t.extend,g=n.utils.isArray,s=n.viz.renderers.processCircleSettings,l="dxm-marker",nt="dxm-marker dxm-marker-hovered",tt="dxm-marker dxm-marker-selected",a={stroke:"none",strokeWidth:0,fill:"#000000",opacity:.0001},f=n.viz.map.__DATA_KEY,it="dot",e={},rt=n.viz.map.Map.prototype._factory.MapItemsManager.inherit({_rootClass:"dxm-markers",ctor:function(){var n=this;n.callBase.apply(n,arguments),n._context.getColors=function(t){return n._themeManager.getMarkerColors(t)},n._filter=n._renderer.createFilter("shadow").applySettings({x:"-40%",y:"-40%",width:"180%",height:"200%",color:"#000000",opacity:.2,dx:0,dy:1,blur:1}).append()},dispose:function(){return this._filter.dispose(),this._filter=null,this.callBase.apply(this,arguments)},_getItemCoordinates:function(n){return n.coordinates},_getItemAttributes:function(n){return n.attributes},_processSource:function(n){return n},clean:function(){var n=this;return n._commonSettings=null,n.callBase.apply(n,arguments)},render:function(n){var t=this;return t._commonSettings=t._themeManager.getCommonMarkerSettings(n),t._commonSettings._filter=t._filter.ref,t._commonType=b(n&&n.type),t.callBase.apply(t,arguments)},_arrangeBubbles:function(){for(var f=this._items,i=[],r=f.length,n,u=[],t=0;t0?r(n.size):0,h=o,c=o+(n.selectedStep>0?r(n.selectedStep):0),l=h+(n.backStep>0?r(n.backStep):0),a=c+(n.backStep>0?r(n.backStep):0),u=s(0,0,o,n.borderWidth);e._dotDefault={cx:u.cx,cy:u.cy,r:u.r,stroke:n.borderColor,strokeWidth:n.borderWidth,fill:n.color,filter:n.shadow?n._filter:null},e._dotHovered={cx:u.cx,cy:u.cy,r:h/2,stroke:n.hoveredBorderColor,strokeWidth:n.hoveredBorderWidth,fill:n.hoveredColor},e._dotSelected={cx:u.cx,cy:u.cy,r:c/2,stroke:n.selectedBorderColor,strokeWidth:n.selectedBorderWidth,fill:n.selectedColor},e._backDefault={cx:u.cx,cy:u.cy,r:u.r,stroke:"none",strokeWidth:0,fill:n.backColor,opacity:n.backOpacity},e._backHovered={cx:u.cx,cy:u.cy,r:l/2,stroke:"none",strokeWidth:0,fill:n.backColor,opacity:n.backOpacity},e._backSelected={cx:u.cx,cy:u.cy,r:a/2,stroke:"none",strokeWidth:0,fill:n.backColor,opacity:n.backOpacity},e._back=t.createCircle().applySettings(e._backDefault).data(f,e._data).append(i),e._dot=t.createCircle().applySettings(e._dotDefault).data(f,e._data).append(i)},_destroy:function(){this._back=this._dot=null},_applyDefault:function(){this._back.applySettings(this._backDefault),this._dot.applySettings(this._dotDefault)},_applyHovered:function(){this._back.applySettings(this._backHovered),this._dot.applySettings(this._dotHovered)},_applySelected:function(){this._back.applySettings(this._backSelected),this._dot.applySettings(this._dotSelected)}}),u(y.prototype,o,{type:"bubble",_create:function(n,t,i){var u=this;u._minSize=n.minSize>0?r(n.minSize):0,u._maxSize=n.maxSize>u._minSize?r(n.maxSize):u._minSize,u.value=h(u._src.item.value)?r(u._src.item.value):null,u._default={stroke:n.borderColor,strokeWidth:n.borderWidth,fill:n.color,opacity:n.opacity},u._hovered={stroke:n.hoveredBorderColor,strokeWidth:n.hoveredBorderWidth,fill:n.hoveredColor,opacity:n.hoveredOpacity},u._selected={stroke:n.selectedBorderColor,strokeWidth:n.selectedBorderWidth,fill:n.selectedColor,opacity:n.selectedOpacity},u._bubble=t.createCircle(0,0,n.maxSize/2).applySettings(u._default).data(f,u._data).append(i)},_destroy:function(){this._bubble=null},_applyDefault:function(){this._bubble.applySettings(this._default)},_applyHovered:function(){this._bubble.applySettings(this._hovered)},_applySelected:function(){this._bubble.applySettings(this._selected)},setSize:function(n){var t=this,i=s(0,0,t._minSize+n*(t._maxSize-t._minSize),t._default.strokeWidth);return t._default.cx=t._hovered.cx=t._selected.cx=i.cx,t._default.cy=t._hovered.cy=t._selected.cy=i.cy,t._default.r=t._hovered.r=t._selected.r=i.r,t._bubble.applySettings(i),t}}),u(p.prototype,o,{type:"pie",_create:function(t,i,u){var e=this,l=s(0,0,t.size>0?r(t.size):0,t.borderWidth);e._pieDefault={opacity:t.opacity},e._pieHovered={opacity:t.hoveredOpacity},e._pieSelected={opacity:t.selectedOpacity},e._borderDefault={stroke:t.borderColor,strokeWidth:t.borderWidth},e._borderHovered={stroke:t.hoveredBorderColor,strokeWidth:t.hoveredBorderWidth},e._borderSelected={stroke:t.selectedBorderColor,strokeWidth:t.selectedBorderWidth};for(var v=e._src.item.values,o=0,y=g(v)?v.length:0,a=[],c,w=0;o0?r(n.size):0,o=e+(n.hoveredStep>0?r(n.hoveredStep):0),s=e+(n.selectedStep>0?r(n.selectedStep):0);u._default={x:-e/2,y:-e/2,width:e,height:e},u._hovered={x:-o/2,y:-o/2,width:o,height:o},u._selected={x:-s/2,y:-s/2,width:s,height:s},u._image=t.createImage().applySettings(u._default).applySettings({href:u._src.item.url,location:"center"}).append(i),u._tracker=t.createRect().applySettings(u._default).applySettings(a).data(f,u._data).append(i)},_destroy:function(){this._image=this._tracker=null},_applyDefault:function(){this._image.applySettings(this._default),this._tracker.applySettings(this._default)},_applyHovered:function(){this._image.applySettings(this._hovered),this._tracker.applySettings(this._hovered)},_applySelected:function(){this._image.applySettings(this._selected),this._tracker.applySettings(this._selected)}}),e.dot=v,e.bubble=y,e.pie=p,e.image=w,n.viz.map.Map.prototype._factory.createMarkersManager=function(n){return new rt(n)}}(DevExpress,jQuery),DevExpress.MOD_VIZ_VECTORMAP=!0}if(!DevExpress.MOD_VIZ_SPARKLINES){if(!DevExpress.MOD_VIZ_CORE)throw Error("Required module is not referenced: viz-core");(function(n,t){function d(n){return{text:n.valueText.join("
")}}var o=100,w=10,b=6,r=200,k=1e3,l=n.extend,a=Math.abs,i=Number,u=Math.round,e=t.viz.core,s=e.CoreFactory;t.viz.sparklines={},t.viz.sparklines.BaseSparkline=e.BaseWidget.inherit({render:function(){return this._refresh(),this},_rendererType:t.viz.renderers.Renderer,_clean:function(){this._tooltipShown&&(this._tooltip.dispose(),this._tooltip=null,this._tooltipShown=null,this._tooltipGroup.clear()),this._tooltipContainer.detach(),this._cleanWidgetElements()},_optionChanged:function(n,t){if(n==="size"&&this._allOptions){if(this._clean(),this._canvas=this._calculateCanvas(),this._renderer.resize(this._canvas.width,this._canvas.height),!this._isContainerVisible())return;this._allOptions.size=t,this._redrawWidgetElements(),this._prepareTooltipContainer()}else n==="dataSource"&&this._allOptions?this._refreshDataSource():this.callBase.apply(this,arguments)},_init:function(){this.callBase(),this._canvas=this._calculateCanvas(),this._renderer=new this._rendererType({cssClass:this._widgetClass+" "+this._widgetClass+"-"+this._widgetType,pathModified:this.option("pathModified"),rtl:this.option("rtlEnabled")}),this._renderer.recreateCanvas(this._canvas.width,this._canvas.height),this._createHtmlElements(),this._createTooltipGroups(),this._initTooltipEvents(),this._drawContainer()},_dispose:function(){var n=this;n.callBase(),n._disposeWidgetElements(),n._disposeTooltipEvents(),n._renderer.dispose(),n._tooltipRenderer.dispose(),n._translatorX=null,n._translatorY=null,delete n._renderer,delete n._tooltipRenderer,delete n._tooltipTrackerGroup,delete n._tooltipGroup,delete n._tooltipContainer},_render:function(){var n=this;if(n._canvas=n._calculateCanvas(),n._renderer.resize(n._canvas.width,n._canvas.height),!n._isContainerVisible()){n._incidentOccured("W2001",[n.NAME]);return}n._prepareOptions(),n._createWidgetElements(),n._drawWidgetElements(),n._drawn()},_isContainerVisible:function(){var t=this,n=t._canvas,i=n.width-n.left-n.right>0,r=n.height-n.top-n.bottom>0;return n.height&&n.width&&r&&i},_createWidgetElements:function(){this._createRange(),this._createTranslator()},_prepareOptions:function(n){var u=this,f=u.option()||{},t,r,i;return r=e.findTheme("default"),r=r[this._widgetType],t=l(!0,{},n,f),typeof t.theme=="string"?(i=e.findTheme(t.theme),i=i[this._widgetType]):i=t.theme,l(!0,{},r,i,t)},_calculateCanvas:function(){var r=this,s={},n=r.option("size")||{},u=r.option("margin")||{},t=r._defaultSize,o=r._element(),f=n.width>=0?i(n.width):o.width(),e=n.height>=0?i(n.height):o.height();return f||i(n.width)===0||(f=t.width),e||i(n.height)===0||(e=t.height),{width:f,height:e,top:i(u.top)||t.top,bottom:i(u.bottom)||t.bottom,left:i(u.left)||t.left,right:i(u.right)||t.right}},_createTooltipGroups:function(){var t=this,i,u,r=t._widgetClass;t._tooltipRenderer=i=new t._rendererType({cssClass:r+" "+r+"-tooltip",pathModified:this.option("pathModified"),rtl:this.option("rtlEnabled")}),i.recreateCanvas(1,1),t._tooltipContainer=n('
'),i.draw(t._tooltipContainer[0]),u=i.getRoot(),t._tooltipGroup=i.createGroup({"class":r+"-tooltip-group",style:{"z-index":"1"}}).append(u),t._tooltipTrackerGroup=i.createGroup({"class":r+"-tooltip-tracker-group"}).append(u),t._tooltipTracker=t._createTooltipTracker().append(t._tooltipTrackerGroup)},_createTooltipTracker:function(){return this._tooltipRenderer.createRect(0,0,0,0,0,{fill:"grey",opacity:0})},_initTooltipEvents:function(){var n=this,t={widget:n,container:n._tooltipTracker};n._showTooltipCallback=function(){n._showTooltipTimeout=null,n._tooltipShown||(n._tooltipShown=!0,n._showTooltip())},n._hideTooltipCallback=function(){n._hideTooltipTimeout=null,n._tooltipShown&&(n._tooltipShown=!1,n._hideTooltip())},n._disposeCallbacks=function(){n=n._showTooltipCallback=n._hideTooltipCallback=n._disposeCallbacks=null};n._tooltipTracker.on(nt,t).on(tt,t);n._tooltipTracker.on(g)},_disposeTooltipEvents:function(){clearTimeout(this._showTooltipTimeout),clearTimeout(this._hideTooltipTimeout),this._showTooltipTimeout=this._showTooltipTimeout=null,this._tooltipTracker.off(),this._disposeCallbacks()},_drawContainer:function(){this._renderer.draw(this._element()[0])},_createTranslator:function(){this._translatorX=s.createTranslator2D(this._ranges.arg,this._canvas,{direction:"horizontal"}),this._translatorY=s.createTranslator2D(this._ranges.val,this._canvas)},_prepareTooltipOptions:function(){var t=this,o=t._canvas,i=t._allOptions.tooltip,r=t._getTooltipSize(!0),e={canvasWidth:r.width,canvasHeight:r.height,paddingLeftRight:i.paddingLeftRight,paddingTopBottom:i.paddingTopBottom,arrowLength:i.arrowLength,cloudHorizontalPosition:i.horizontalAlignment,cloudVerticalPosition:i.verticalAlignment,lineSpacing:i.font.lineSpacing!==undefined&&i.font.lineSpacing!==null?i.font.lineSpacing:b},u=!n.isFunction(t._allOptions.tooltip.customizeText)&&!n.isFunction(t._allOptions.tooltip.customizeTooltip),f=n.extend(e,t._allOptions.tooltip,{customizeTooltip:u?d:t._allOptions.tooltip.customizeTooltip,_justify:t._allOptions.tooltip._justify||u,_rtl:t.option("rtlEnabled")});return t._tooltipOptions={size:r,options:f},f},_prepareTooltipContainer:function(){var n=this,t=n._canvas,i=t.width,r=t.height,u=n._tooltipRenderer;n._updateTooltipSizeToNormal(),n._tooltipTracker.applySettings({width:i,height:r}),n._tooltipContainer.appendTo(n._element()),n._tooltipInitializated=!1,n._canShowTooltip=n._allOptions.tooltip.enabled},_isTooltipVisible:function(){return this._tooltip.enabled()&&this._tooltip.prepare(this._getTooltipData(),{offset:0})},_createTooltip:function(){var n=this;n._tooltip=s.createTooltip(n._prepareTooltipOptions(),n._tooltipGroup,n._tooltipRenderer),n._isTooltipVisible()?(n._tooltip.show(),n._updateTooltipSizeToWide(),n._checkTooltipSize(),n._updateTooltipSizeToNormal()):n._canShowTooltip=!1},_doShowTooltip:function(n){var t=this;t._canShowTooltip&&(clearTimeout(t._hideTooltipTimeout),t._hideTooltipTimeout=null,clearTimeout(t._showTooltipTimeout),t._showTooltipTimeout=setTimeout(t._showTooltipCallback,n))},_doHideTooltip:function(n){var t=this;t._canShowTooltip&&(clearTimeout(t._showTooltipTimeout),t._showTooltipTimeout=null,clearTimeout(t._hideTooltipTimeout),t._hideTooltipTimeout=setTimeout(t._hideTooltipCallback,n))},_getNormalTooltipSize:function(){var n={};return n.width=this._canvas.width,n.left=0,n.tooltipLeft=u(n.width/2),n},_getWideTooltipSize:function(n,t){var f=this,r=f._canvas,e=f._allOptions.tooltip.horizontalAlignment,o=n+t,i={};return i.width=r.width+o,i.left=-n,i.tooltipLeft=e==="right"?u(r.width/2):e==="left"?u(r.width/2)+o:u(i.width/2),i},_getTooltipSize:function(n,t,i,r){var e=this,s=e._canvas,h=!(e._allOptions.tooltip.verticalAlignment==="bottom"),f=!n&&(t||i)?e._getWideTooltipSize(t,i):e._getNormalTooltipSize(),c=r>0?r+o:o;return f.height=s.height+c,f.top=h?-f.height:-s.height,f.trackerY=h?c:0,f.tooltipY=h?u(s.height/2)+c-w:u(s.height/2),f},_checkTooltipSize:function(){var n=this,i=n._tooltip,h=n._tooltipOptions.options,t=i.getBBox(),s=n._allOptions.tooltip.allowContainerResizing,r=-t.x,u=t.x+t.width-n._canvas.width,f=t.height-o,e;(r>0||u>0||f>0)&&(s?(n._tooltipOptions.size=e=n._getTooltipSize(!1,r>0?r:0,u>0?u:0,f>0?f:0),i.setSize(e.width,e.height),n._updateTooltipSizeToWide()):(n._canShowTooltip=!1,i.hide()))},_updateTooltipSizeToWide:function(){var t=this,n=t._tooltipOptions.size,i=t._tooltipRenderer;i.resize(n.width,n.height),i.getRoot().applySettings({style:{left:n.left,top:n.top,position:"absolute",overflow:"hidden"}}),t._tooltipTracker.applySettings({y:n.trackerY,x:-n.left}),t._tooltip.move(n.tooltipLeft,n.tooltipY)},_updateTooltipSizeToNormal:function(){var n=this,i=n._tooltipRenderer,t=n._canvas;i.resize(t.width,t.height),i.getRoot().applySettings({style:{left:0,top:-t.height,position:"absolute"}}),n._tooltipTracker.applySettings({y:0,x:0})},_showTooltip:function(){(this._tooltipInitializated||(this._createTooltip(),this._tooltipInitializated=!0,this._canShowTooltip))&&(this._updateTooltipSizeToWide(),this._tooltip.show())},_hideTooltip:function(){this._updateTooltipSizeToNormal(),this._tooltip.hide()},showLoadingIndicator:n.noop});var g={"contextmenu.sparkline-tooltip":function(n){(t.ui.events.isTouchEvent(n)||t.ui.events.isPointerEvent(n))&&n.preventDefault()},"MSHoldVisual.sparkline-tooltip":function(n){n.preventDefault()}},nt={"mouseover.sparkline-tooltip":function(n){c=!1;var t=n.data.widget;t._x=n.pageX,t._y=n.pageY;t._tooltipTracker.off(h).on(h,n.data);t._doShowTooltip(r)},"mouseout.sparkline-tooltip":function(n){if(!c){var t=n.data.widget;t._tooltipTracker.off(h),t._doHideTooltip(r)}}},h={"mousemove.sparkline-tooltip":function(n){var t=n.data.widget;t._showTooltipTimeout&&(a(t._x-n.pageX)>3||a(t._y-n.pageY)>3)&&(t._x=n.pageX,t._y=n.pageY,t._doShowTooltip(r))}},f=null,v=function(n){n.preventDefault();var t=f;t&&t!==n.data.widget&&t._doHideTooltip(r),t=f=n.data.widget,t._doShowTooltip(k),t._touch=!0},y=function(){var n=f;n&&(n._touch||(n._doHideTooltip(r),f=null),n._touch=null)},p=function(){var n=f;n&&n._showTooltipTimeout&&(n._doHideTooltip(r),f=null)},c=!1,tt={"pointerdown.sparkline-tooltip":function(n){v(n)},"touchstart.sparkline-tooltip":function(n){v(n)}};n(document).on({"pointerdown.sparkline-tooltip":function(){c=!0,y()},"touchstart.sparkline-tooltip":function(){y()},"pointerup.sparkline-tooltip":function(){p()},"touchend.sparkline-tooltip":function(){p()}})})(jQuery,DevExpress),function(n,t){var i=t.viz,c=i.charts,r=i.core,u=1,f=50,l=4,a=250,v=30,e=5,o=3,y={disabled:!1,theme:"default",dataSource:[],size:{},margin:{},type:"line",argumentField:"arg",valueField:"val",winlossThreshold:0,showFirstLast:!0,showMinMax:!1,redrawOnResize:!1},p={line:!0,spline:!0,stepline:!0,area:!0,steparea:!0,splinearea:!0,bar:!0,winloss:!0},s=n.map,w=n.extend,b=Math.abs,k=Math.round,d=isFinite,g=Number,h=String;i.sparklines.Sparkline=i.sparklines.BaseSparkline.inherit({_widgetType:"sparkline",_widgetClass:"dxsl",_defaultSize:{width:a,height:v,left:e,right:e,top:o,bottom:o},_init:function(){this.callBase(),this._refreshDataSource()},_handleDataSourceChanged:function(){this._initialized&&(this._clean(),this._createWidgetElements(),this._drawWidgetElements())},_dataSourceOptions:function(){return{paginate:!1,_preferSync:!0}},_redrawWidgetElements:function(){this._createTranslator(),this._correctPoints(),this._series.draw({x:this._translatorX,y:this._translatorY}),this._seriesGroup.append(this._renderer.getRoot())},_disposeWidgetElements:function(){delete this._seriesGroup,delete this._seriesLabelGroup},_cleanWidgetElements:function(){this._seriesGroup.detach(),this._seriesLabelGroup.detach(),this._seriesGroup.clear(),this._seriesLabelGroup.clear()},_createWidgetElements:function(){this._createSeries(),this.callBase()},_drawWidgetElements:function(){this._dataSource&&this._dataSource.isLoaded()&&this._drawSeries()},_prepareOptions:function(){this._allOptions=this.callBase(y),this._allOptions.type=h(this._allOptions.type).toLowerCase(),p[this._allOptions.type]||(this._allOptions.type="line")},_createHtmlElements:function(){this._seriesGroup=this._renderer.createGroup({"class":"dxsl-series"}),this._seriesLabelGroup=this._renderer.createGroup({"class":"dxsl-series-labels"})},_createSeries:function(){var n=this,i=n._renderer,t;n._prepareDataSource(),n._prepareSeriesOptions(),n._series=r.CoreFactory.createSeries(i,n._seriesOptions),t=c.factory.createDataValidator(n._simpleDataSource,[[n._series]],n._incidentOccured,{checkTypeForAllData:!1,convertToAxisDataType:!0,sortingMethod:!0}),n._simpleDataSource=t.validate(),n._series._options.customizePoint=n._getCustomizeFunction(),n._series.updateData(n._simpleDataSource)},_parseNumericDataSource:function(n,t,i){var r=this.option("ignoreEmptyPoints");return s(n,function(n,u){var f=null,o,e;return n!==undefined&&(f={},o=d(n),f[t]=o?h(u):n[t],e=o?n:n[i],f[i]=e===null?r?undefined:e:g(e),f=f[t]!==undefined&&f[i]!==undefined?f:null),f})},_parseWinlossDataSource:function(n,t,i){var u=-1,f=0,e=1,o=.0001,r=this._allOptions.winlossThreshold;return s(n,function(n){var s={};return s[t]=n[t],s[i]=b(n[i]-r)r?e:u,s})},_prepareDataSource:function(){var n=this,t=n._allOptions,r=t.argumentField,u=t.valueField,f=n._dataSource?n._dataSource.items():[],i=n._parseNumericDataSource(f,r,u);t.type==="winloss"?(n._winlossDataSource=i,n._simpleDataSource=n._parseWinlossDataSource(i,r,u)):n._simpleDataSource=i},_prepareSeriesOptions:function(){var n=this,t=n._allOptions,i={border:{},hoverStyle:{border:{}},selectionStyle:{border:{}}},r={size:t.pointSize,symbol:t.pointSymbol,border:{visible:!0,width:2},color:t.pointColor};n._seriesOptions={visible:!0,argumentField:t.argumentField,valueField:t.valueField,color:t.lineColor,width:t.lineWidth,widgetType:"chart"},n._seriesOptions.border={color:n._seriesOptions.color,width:n._seriesOptions.width,visible:!0},n._seriesOptions.type=t.type==="winloss"?"bar":t.type,(t.type==="winloss"||t.type==="bar")&&(n._seriesOptions.argumentAxisType="discrete",n._seriesOptions.border.visible=!1),~~t.type.indexOf("area")!=-1&&(n._seriesOptions.opacity=n._allOptions.areaOpacity),n._seriesOptions.seriesGroup=n._seriesGroup,n._seriesOptions.seriesLabelsGroup=n._seriesLabelGroup,n._seriesOptions.point=w(i,r),n._seriesOptions.point.visible=!1},_createBarCustomizeFunction:function(n){var i=this,t=i._allOptions,r=i._winlossDataSource;return function(){var u=this.index,f=t.type==="winloss",e=f?t.winlossThreshold:0,o=f?r[u][t.valueField]:this.value,s=f?t.winColor:t.barPositiveColor,h=f?t.lossColor:t.barNegativeColor,i;return i=o>=e?s:h,(u===n.first||u===n.last)&&(i=t.firstLastColor),u===n.min&&(i=t.minColor),u===n.max&&(i=t.maxColor),{color:i}}},_createLineCustomizeFunction:function(n){var i=this,t=i._allOptions;return function(){var i,r=this.index;return(r===n.first||r===n.last)&&(i=t.firstLastColor),r===n.min&&(i=t.minColor),r===n.max&&(i=t.maxColor),i?{visible:!0,border:{color:i}}:{}}},_getCustomizeFunction:function(){var n=this,i=n._allOptions,u=n._winlossDataSource||n._simpleDataSource,r=n._getExtremumPointsIndexes(u),t;return t=i.type==="winloss"||i.type==="bar"?n._createBarCustomizeFunction(r):n._createLineCustomizeFunction(r)},_getExtremumPointsIndexes:function(n){var t=this,r=t._allOptions,u=n.length-1,i={};return t._minMaxIndexes=t._findMinMax(n),r.showFirstLast&&(i.first=0,i.last=u),r.showMinMax&&(i.min=t._minMaxIndexes.minIndex,i.max=t._minMaxIndexes.maxIndex),i},_findMinMax:function(n){for(var h=this,r=h._allOptions.valueField,c=n[0]||{},u=c[r]||0,f=u,e=u,o=0,s=0,l=n.length,i,t=1;te&&(e=i,s=t);return{minIndex:o,maxIndex:s}},_createRange:function(){var n=this,t=n._series,i=t.type==="bar",u=.15,f=i?.1:0,e=t.getRangeData();n._ranges={arg:new r.Range({stick:!i&&t.getPoints().length>1,minValueMargin:f,maxValueMargin:f}),val:new r.Range({isValueRange:!0,keepValueMargins:!0,minValueMargin:u,maxValueMargin:u})},n._ranges.arg.addRange(e.arg),n._ranges.val.addRange(e.val),n._ranges.arg.applyValueMargins(),n._ranges.val.applyValueMargins()},_getBarWidth:function(n){var r=this,i=r._canvas,e=n*l,o=i.width-i.left-i.right-e,t=k(o/n);return tf&&(t=f),t},_correctPoints:function(){var t=this,i=t._allOptions.type,r=t._series.getPoints(),u=r.length,f,n;if(i==="bar"||i==="winloss")for(f=t._getBarWidth(u),n=0;nr?u:r),t.startScaleValue=f=i(t.startScaleValue),t.endScaleValue=e=i(t.endScaleValue),e0?(n=u<=0?0:u,t=i>=f?f:i):(n=f>=0?0:f,t=i>=u?i:u),n=o.translate(n),t=o.translate(t),{points:[{x:n,y:a},{x:t,y:a},{x:t,y:l},{x:n,y:l}],fill:r.color}},_getZeroLevelParams:function(){var n=this,r=n._allOptions,u=n._translatorX,t=n._translatorY,o=t.translate(f),s=t.translate(e),i=u.translate(0);return{points:[{x:i,y:o},{x:i,y:s}],stroke:r.targetColor,strokeWidth:1}},_drawZeroLevel:function(){var n=this,t=n._allOptions,i;0>t.endScaleValue||0f||i