/*! * DevExtreme (dx.viz-web.js) * Version: 19.1.16 * Build date: Tue Oct 18 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict";!function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=867)}([function(e,t,n){var i=n(1).isPlainObject,o=function(e,t,n){e=e||{};for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=t[i];i in e&&!n||(e[i]=o)}return e},a=function e(t){t=t||{};var n=1,o=!1;for("boolean"==typeof t&&(o=t,t=arguments[1]||{},n++);n=0&&t.call(e[n],n,e[n])!==!1;n--);};t.map=i,t.each=o,t.reverseEach=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){"@babel/helpers - typeof";return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a,r=n(29),s=i(r),l=n(40),u=i(l),c=n(6),d=n(3),h=n(20),p=n(1),f=function(e,t){return(0,p.isDefined)(e)?e:t},g=function(e,t){var n=new c.Deferred,i=t||this,o={promise:n.promise(),abort:function(){clearTimeout(r),n.rejectWith(i)}},a=function(){var t=e.call(i);t&&t.done&&(0,p.isFunction)(t.done)?t.done(function(){n.resolveWith(i)}):n.resolveWith(i)},r=(arguments[2]||setTimeout)(a,"number"==typeof t?t:0);return o},_=[],m=[],v=[],y=function(e,t,n){if(a&&a!==e)return _.push(t),m.push(e),n=n||new c.Deferred,v.push(n),n;var i=a,o=v.length;a=e;var r=t();return r||(v.length>o?r=c.when.apply(this,v.slice(o)):n&&n.resolve()),a=i,n&&r&&r.done&&r.done(n.resolve).fail(n.reject),!a&&_.length&&("render"===m.shift()?b:x)(_.shift(),v.shift()),r||(0,c.when)()},b=function(e,t){return y("render",e,t)},x=function(e,t){return y("update",e,t)},w=function(e){return function(){var t=this;return y("render",function(){return e.call(t)})}},C=function(e){return function(){var t=this;return y("update",function(){return e.call(t)})}},k=function(e,t,n){var i=[],o=0;return(0,d.each)(t,function(t,a){var r=0,s=n?n(a):a;(0,d.each)(e,function(e,t){var n=s[e];if(void 0!==n)return S(n,t)?void r++:(r=-1,!1)}),ro&&(i.length=0,o=r),i.push(a))}),i},S=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var n=!1;return(0,d.each)(e,function(e,i){if(i!==t[e])return n=!0,!1}),!n}return e===t},I=function(e){switch(o(e)){case"string":return e.split(/\s+/,2);case"object":return[e.x||e.h,e.y||e.v];case"number":return[e];default:return e}},T=function(e){var t=(0,p.isString)(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9_]/g);return n&&(0,d.each)(n,function(e,n){t=t.replace(n,"__"+n.charCodeAt()+"__")}),t},D=function(e){var t=e.match(/__\d+__/g);return t&&t.forEach(function(t){var n=parseInt(t.replace("__",""));e=e.replace(t,String.fromCharCode(n))}),e},E=function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i=B||((0,p.isObject)(e)&&(0,p.isObject)(t)?A(e,t,n):!(!Array.isArray(e)||!Array.isArray(t))&&E(e,t,n))},R=function(e){if(e instanceof u.default)return e.toString();if((0,p.isObject)(e)||Array.isArray(e))try{var t=JSON.stringify(e);return"{}"===t?e:t}catch(t){return e}return e},M=function(e){return e.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},V=function(e){var t=(0,s.default)().serverDecimalSeparator;return(0,p.isDefined)(e)&&(e=e.toString().replace(".",t)),e},F=function(){},L=function(){return(new c.Deferred).resolve().promise()},H=function(e,t,n){for(var i=[],o=!n,a=0;a-1&&(p={passive:!1}),l.removeListener=s.listen(e,x[t]||t,l.nativeHandler,p)),D.callMethod(t,"add",e,[h])},removeHandler:function(i,o){var s=function(t){var r=n[t];if(!r.handleObjects.length)return void delete n[t];var s;r.handleObjects=r.handleObjects.filter(function(n){var r=a.length&&!M(n.namespaces,a)||i&&n.handler!==i||o&&n.selector!==o;return r||(s=n.handler,D.callMethod(t,"remove",e,[n])),r});var l=!r.handleObjects.length,u=l&&t!==b;u&&(D.callMethod(t,"teardown",e,[a,s]),r.nativeHandler&&r.removeListener(),delete n[t])};if(r)s(t);else for(var l in n)s(l);var u=0===Object.keys(n).length;u&&I.delete(e)},callHandlers:function(e,t){var i=!1,o=function(n){i||a.length&&!M(n.namespaces,a)||(n.wrappedHandler(e,t),i=e.isImmediatePropagationStopped())};l.handleObjects.forEach(o),a.length&&n[b]&&n[b].handleObjects.forEach(o)}}},R=function(e){return function(t,n){var i=P(this,e);t=W.Event(t),i.callHandlers(t,n)}},M=function(e,t){for(var n=0;n-1){var i=Array.prototype.slice.call(arguments,0);n.split(" ").forEach(function(t){i[1]=t,e.apply(this,i)})}else e.apply(this,arguments)};return function(e,n){if("object"===i(n)){var o=Array.prototype.slice.call(arguments,0);for(var a in n)o[1]=a,o[o.length-1]=n[a],t.apply(this,o)}else t.apply(this,arguments)}},N=function(e,t){var n=w[e]||e,i=function(e,t){return"click"===e&&"a"===t.localName};i(e,t)||f(t[n])&&(o=e,t[n](),o=void 0)},$=function(e){var t=function(e){var t=/^(?:mouse|pointer|contextmenu|drag|drop)|click/;return!e.which&&void 0!==e.button&&t.test(e.type)},n=function(e){return null==e.which&&0===e.type.indexOf("key")};if(n(e))return null!=e.charCode?e.charCode:e.keyCode;if(t(e)){var i={1:1,2:3,3:1,4:2};return i[e.button]}return e.which},W=c({on:A(V(z(function(e,t,n,i,o){var a=P(e,t);a.addHandler(o,n,i)}))),one:A(V(function(e,t,n,i,o){var a=function i(){W.off(e,t,n,i),o.apply(this,arguments)};W.on(e,t,n,i,a)})),off:A(F(z(function(e,t,n,i){var o=P(e,t);o.removeHandler(i,n)}))),trigger:A(L(function(e,t,n){var i=t.type,o=P(e,t.type);D.callMethod(i,"trigger",e,[t,n]),o.callHandlers(t,n);var a=D.getField(i,"noBubble")||t.isPropagationStopped()||C.indexOf(i)!==-1;if(!a){var s=[],l=function e(t){var n=t.parentNode;n&&(s.push(n),e(n))};l(e),s.push(u);for(var c=0;s[c]&&!t.isPropagationStopped();){var d=P(s[c],t.type);d.callHandlers(r(t,{currentTarget:s[c]}),n),c++}}(e.nodeType||p(e))&&(D.callMethod(i,"_default",e,[t,n]),N(i,e))})),triggerHandler:A(L(function(e,t,n){var i=P(e,t.type);i.callHandlers(t,n)}))}),G=function(e){e&&(W.Event=e,W.Event.prototype=e.prototype)};G(H(function(e,t){var n=this,i=!1,o=!1,a=!1;r(n,e),(e instanceof W.Event||l.hasWindow()&&e instanceof u.Event)&&(n.originalEvent=e,n.currentTarget=void 0),e instanceof W.Event||r(n,{isPropagationStopped:function(){return!!(i||n.originalEvent&&n.originalEvent.propagationStopped)},stopPropagation:function(){i=!0,n.originalEvent&&n.originalEvent.stopPropagation()},isImmediatePropagationStopped:function(){return o},stopImmediatePropagation:function(){this.stopPropagation(),o=!0,n.originalEvent&&n.originalEvent.stopImmediatePropagation()},isDefaultPrevented:function(){return!!(a||n.originalEvent&&n.originalEvent.defaultPrevented)},preventDefault:function(){a=!0,n.originalEvent&&n.originalEvent.preventDefault()}}),j("which",$,n),0===e.type.indexOf("touch")&&(delete t.pageX,delete t.pageY),r(n,t),n.guid=++T}));var j=function(e,t,n){Object.defineProperty(n||W.Event.prototype,e,{enumerable:!0,configurable:!0,get:function(){return this.originalEvent&&t(this.originalEvent)},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})};v(j);var q=h(),K=h();W.set=function(e){q.fire(),W.inject(e),G(e.Event),K.fire()},W.subscribeGlobal=function(){E(arguments,V(function(){var e=arguments;W.on.apply(this,e),q.add(function(){var t=Array.prototype.slice.call(e,0);t.splice(3,1),W.off.apply(this,t)}),K.add(function(){W.on.apply(this,e)})}))},W.forcePassiveFalseEventNames=k,W.passiveEventHandlersSupported=B,e.exports=W},function(e,t,n){var i=n(1),o=i.isPromise,a=i.isDeferred,r=n(0).extend,s=n(25),l=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],u=function(){var e=this;this._state="pending",this._promise={},l.forEach(function(t){var n=t.method;this[n+"Callbacks"]=new s,this[n]=function(){return this[n+"With"](this._promise,arguments)}.bind(this),this._promise[t.handler]=function(t){if(!t)return this;var i=e[n+"Callbacks"];return i.fired()?t.apply(e[n+"Context"],e[n+"Args"]):i.add(function(e,n){t.apply(e,n)}.bind(this)),this}}.bind(this)),this._promise.always=function(e){return this.done(e).fail(e)},this._promise.catch=function(e){return this.then(null,e)},this._promise.then=function(e,t){var n=new u;return["done","fail"].forEach(function(r){var s="done"===r?e:t;this[r](function(){if(!s)return void n["done"===r?"resolve":"reject"].apply(this,arguments);var e=s&&s.apply(this,arguments);a(e)?e.done(n.resolve).fail(n.reject):o(e)?e.then(n.resolve,n.reject):n.resolve.apply(this,i.isDefined(e)?[e]:arguments)})}.bind(this)),n.promise()},this._promise.state=function(){return e._state},this._promise.promise=function(t){return t?r(t,e._promise):e._promise},this._promise.promise(this)};l.forEach(function(e){var t=e.method,n=e.state;u.prototype[t+"With"]=function(e,i){var o=this[t+"Callbacks"];return"pending"===this.state()&&(this[t+"Args"]=i,this[t+"Context"]=e,n&&(this._state=n),o.fire(e,i)),this}}),t.fromPromise=function(e,t){if(a(e))return e;if(o(e)){var n=new u;return e.then(function(){n.resolveWith.apply(n,[t].concat([[].slice.call(arguments)]))},function(){n.rejectWith.apply(n,[t].concat([[].slice.call(arguments)]))}),n}return(new u).resolveWith(t,[e])};var c=function(){if(1===arguments.length)return t.fromPromise(arguments[0]);for(var e=[].slice.call(arguments),n=[],i=0,o=new u,r=function(t){return function(a){n[t]=this,e[t]=arguments.length>1?[].slice.call(arguments):a,i++,i===e.length&&o.resolveWith(n,e)}},s=0;s1:w(e)?i&&(0,c.focused)(n):void 0},E=function(e){return e},A=function(e){E=e},O=function(e){return E(s.default.Event(e,e),e)},B=function(e,t){var n=O(e);return t&&(0,d.extend)(n,t),n},P=function(e){var t=B(e.originalEvent,e);return s.default.trigger(e.delegateTarget||t.target,t),t},R=function e(t,n){if(!n)throw u.default.Error("E0017");return"string"==typeof t?t.indexOf(" ")===-1?t+"."+n:e(t.split(/\s+/g),n):((0,h.each)(t,function(e,i){t[e]=i+"."+n}),t.join(" "))},M=function(e){var t=!!e.key,n=t?e.key:e.which;if(n)return n=t?p[n.toLowerCase()]||n:f[n]||String.fromCharCode(n)},V=function(e){return e.key||String.fromCharCode(e.which)};e.exports={eventSource:g,isPointerEvent:y,isMouseEvent:b,isDxMouseWheelEvent:x,isTouchEvent:w,isKeyboardEvent:C,isFakeClickEvent:k,hasTouches:T,eventData:S,eventDelta:I,needSkipEvent:D,createEvent:B,fireEvent:P,addNamespace:R,setEventFixMethod:A,normalizeKeyName:M,getChar:V}},function(e,t,n){var i=n(2),o=n(151),a=n(21),r=n(127),s=function(e,t,n){n?t[e]=n:n=t,r.name(n,e),o.fire(e,n)},l=function(e,t){i.fn[e]=function(n){var i,o="string"==typeof n;if(o){var r=n,s=[].slice.call(arguments).slice(1);this.each(function(){var n=t.getInstance(this);if(!n)throw a.Error("E0009",e);var o=n[r],l=o.apply(n,s);void 0===i&&(i=l)})}else this.each(function(){var e=t.getInstance(this);e?e.option(n):new t(this,n)}),i=this;return i}};o.add(l),e.exports=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){"@babel/helpers - typeof";return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=n(53),r=i(a),s=n(4),l=1,u=3,c=9,d={querySelectorAll:function(e,t){return e.querySelectorAll(t)},elementMatches:function(e,t){var n=this,i=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(t){var i=e.document||e.ownerDocument;if(!i)return!1;for(var o=n.querySelectorAll(i,t),a=0;a=0&&(r.splice(s,1),i=r.join(" ")),void 0!==i&&(o?e.className=i:this.setAttribute(e,"class",i))}},setStyle:function(e,t,n){e.style[t]=n||""},_document:"undefined"==typeof document?void 0:document,getDocument:function(){return this._document},getActiveElement:function(){return this._document.activeElement},getBody:function(){return this._document.body},createDocumentFragment:function(){return this._document.createDocumentFragment()},getDocumentElement:function(){return this._document.documentElement},getLocation:function(){return this._document.location},getSelection:function(){return this._document.selection},getReadyState:function(){return this._document.readyState},getHead:function(){return this._document.head},hasDocumentProperty:function(e){return e in this._document},listen:function(e,t,n,i){return e&&"addEventListener"in e?(e.addEventListener(t,n,i),function(){e.removeEventListener(t,n)}):s.noop}};e.exports=(0,r.default)(d)},function(e,t,n){function i(e,t){for(var n=0,i=e.length,o=[];n2&&void 0!==arguments[2]?arguments[2]:1;return new Date(e.getTime()+n*t)}:"logarithmic"===e.axisType?function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=N(t,e.base)+i*n;return W(o,e.base)}:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=e+i*n;return t&&o*e<=0?0:o}}function f(e,n,i,o){var a=_.isDefined(n.startValue),r=_.isDefined(n.endValue),s="discrete"!==e.axisType;o=o||i;var l=p(e,!1),u=a?n.startValue:o.min,c=r?n.endValue:o.max,d=n.length,h=o.categories;if(s&&!_.isDefined(u)&&!_.isDefined(c))return{startValue:u,endValue:c};if(x(d))if(s)"datetime"!==e.dataType||w(d)||(d=b(d)),r&&!a||!r&&!a?(x(i.max)&&(c=c>i.max?i.max:c),u=l(c,d,-1)):a&&!r&&(x(i.min)&&(u=ui.max&&(c=i.max),x(i.min)&&u0?(n=R(n)/A,t=V(n),t-n4&&(a=4)):(i="exponential",a+=o-1,a>3&&(a=3)),{type:i,precision:a})},Q=function(e,t){if(t>20&&(t=20),w(e))return H(C(e)?e.toExponential(t):e.toFixed(t))},J=function(e){return e.toExponential().split("e")[1]};m(t,{decreaseGaps:function(e,t,n){var i;do i=o(e,t),i.push(k.ceil(n/i.length)),n=a(e,t,k.min.apply(null,i),n);while(n>0&&i.length>1);return n},normalizeEnum:r,parseScalar:function(e,t){return void 0!==e?e:t},enumParser:function(e){var t,n,i={};for(t=0,n=e.length;t=n.x,o=(i?e.x:e.x+e.width)-n.x,a=e.y-n.y,r=a+t,s=S(I(o*o+a*a-r*r)),l=(i?+s:-s)||o;return{x:n.x+(i?l:l-e.width),y:e.y+t}},mergeMarginOptions:function(e,t){return{checkInterval:e.checkInterval||t.checkInterval,size:Math.max(e.size||0,t.size||0),percentStick:e.percentStick||t.percentStick,sizePointNormalState:Math.max(e.sizePointNormalState||0,t.sizePointNormalState||0)}}}),t.getVizRangeObject=d,t.convertVisualRangeObject=h,t.adjustVisualRange=f,t.getAddFunction=p,t.getLog=N,t.getAdjustedLog10=$,t.raiseTo=W,t.normalizeAngle=G,t.convertAngleToRendererSpace=j,t.degreesToRadians=q,t.getCosAndSin=K,t.getDecimalOrder=X,t.getAppropriateFormat=Z,t.getDistance=Y,t.roundValue=Q,t.getPower=J,t.rotateBBox=c,t.normalizeBBox=u},function(e,t,n){var i,o=n(2),a=n(29),r=n(10),s=n(7),l=s.getWindow(),u=n(5),c=n(13).inArray,d=n(1),h=d.isDefined,p=d.isRenderer,f=n(217),g=function(){var e=r.getActiveElement(),t=r.getBody();if(e&&e!==t&&e.blur)try{e.blur()}catch(e){t.blur()}},_=function(){var e=l.getSelection();if(e&&"Caret"!==e.type)if(e.empty)e.empty();else if(e.removeAllRanges)try{e.removeAllRanges()}catch(e){}},m=function(e,t){var n=o(e),i=o(t);if(n[0]===i[0])return n[0];for(var a=n.parents(),r=i.parents(),s=Math.min(a.length,r.length),l=-s;l<0;l++)if(a.get(l)===r.get(l))return a.get(l)},v=function(e){var t=".dx-visibility-change-handler";return function(n){for(var i=o(n||"body"),a=i.filter(t).add(i.find(t)),r=0;r-1)&&a[s]&&(a[s](r[s]),n.push(a[s]("instance")))}),n},C=function(e){if(!l.WinJS)return o(f.parseHTML(e));var t=o("
");return l.WinJS.Utilities.setInnerHTMLUnsafe(t.get(0),e),t.contents()},k=function(e){e=o(e);var t=e.length&&e.filter(function(){var e=o(this);return e.is("script[type]")&&e.attr("type").indexOf("script")<0});return t.length?t.eq(0).html():(e=o("
").append(e),e.html())},S=function e(t){var n=h(t)&&(t.nodeType||p(t))?o(t):o("
").html(t).contents();return 1===n.length&&(n.is("script")?n=e(n.html().trim()):n.is("table")&&(n=n.children("tbody").contents())),n},I=function(e,t){var n=e.originalEvent&&e.originalEvent.clipboardData||l.clipboardData;return 1===arguments.length?n&&n.getData("Text"):void(n&&n.setData("Text",t))},T=function(e,t){return!!t&&(t=r.isTextNode(t)?t.parentNode:t,r.isDocument(e)?e.documentElement.contains(t):e.contains(t))},D=function(e){return i(e)},E=function(e){i=e};E(function(e){return e&&e.get(0)});var A=function(e,t,n){var i=l.getComputedStyle(o(e).get(0)),a=n&&n.includePaddings;return o("
").text(t).css({fontStyle:i.fontStyle,fontVariant:i.fontVariant,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFamily:i.fontFamily,letterSpacing:i.letterSpacing,border:i.border,paddingTop:a?i.paddingTop:"",paddingRight:a?i.paddingRight:"",paddingBottom:a?i.paddingBottom:"",paddingLeft:a?i.paddingLeft:"",visibility:"hidden",whiteSpace:"nowrap",position:"absolute","float":"left"})};t.setPublicElementWrapper=E,t.resetActiveElement=g,t.createMarkupFromString=C,t.triggerShownEvent=v("dxshown"),t.triggerHidingEvent=v("dxhiding"),t.triggerResizeEvent=v("dxresize"),t.getElementOptions=x,t.createComponents=w,t.extractTemplateMarkup=k,t.normalizeTemplateElement=S,t.clearSelection=_,t.uniqueId=y,t.closestCommonParent=m,t.clipboardText=I,t.contains=T,t.getPublicElement=D,t.createTextElementHiddenCopy=A},function(e,t,n){var i=n(1).isDefined,o=n(3).each,a=n(48),r=n(29),s=function(e){return Array.isArray(e)&&!e.length},l=function(e){return Array.isArray(e)?e:[e]},u=function(e,t){if(!Array.isArray(e)||0===e.length||!Array.isArray(t)||0===t.length)return[];var n=[];return o(e,function(e,i){var o=h(i,t);o!==-1&&n.push(i); }),n},c=function(e,t){if(!Array.isArray(e)||0===e.length)return[];if(!Array.isArray(t)||0===t.length)return e.slice();var n=[];return o(e,function(e,i){var o=h(i,t);o===-1&&n.push(i)}),n},d=function(e,t,n,s){var l={},u=0,c=r().useLegacyVisibleIndex;return o(e,function(e,i){e=i[t],e>=0?(l[e]=l[e]||[],i===n?l[e].unshift(i):l[e].push(i)):i[t]=void 0}),c||o(e,function(){if(!i(this[t])&&(!s||s(this))){for(;l[u];)u++;l[u]=[this],u++}}),u=0,a.orderEach(l,function(e,n){o(n,function(){e>=0&&(this[t]=u++)})}),c&&o(e,function(){i(this[t])||s&&!s(this)||(this[t]=u++)}),u},h=function(e,t){if(!t)return-1;var n=Array.isArray(t)?t:t.toArray();return n.indexOf(e)},p=function(e,t){for(var n=0;n1&&(i[0]<4||4===i[0]&&i[1]<4),a=o?"B":"A";return{deviceType:t?"phone":"tablet",platform:"android",version:i,grade:a}}}},x=c.inherit({ctor:function(e){this._window=e&&e.window||r,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this.changed=h(),o.hasWindow()&&(this._recalculateOrientation(),p.add(this._recalculateOrientation.bind(this)))},current:function(e){if(e)return this._currentDevice=this._getDevice(e),this._forced=!0,void this.changed.fire();if(!this._currentDevice){e=void 0;try{e=this._getDeviceOrNameFromWindowScope()}catch(t){e=this._getDeviceNameFromSessionStorage()}finally{e||(e=this._getDeviceNameFromSessionStorage()),e&&(this._forced=!0)}this._currentDevice=this._getDevice(e)}return this._currentDevice},real:function(){return s({},this._realDevice)},orientation:function(){return this._currentOrientation},isForced:function(){return this._forced},isRippleEmulator:function(){return!!this._window.tinyHippos},_getCssClasses:function(e){var t=[],n=this._realDevice;return e=e||this.current(),e.deviceType&&(t.push("dx-device-"+e.deviceType),"desktop"!==e.deviceType&&t.push("dx-device-mobile")),t.push("dx-device-"+n.platform),n.version&&n.version.length&&t.push("dx-device-"+n.platform+"-"+n.version[0]),w.isSimulator()&&t.push("dx-simulator"),m().rtlEnabled&&t.push("dx-rtl"),t},attachCssClasses:function(e,t){this._deviceClasses=this._getCssClasses(t).join(" "),i(e).addClass(this._deviceClasses)},detachCssClasses:function(e){i(e).removeClass(this._deviceClasses)},isSimulator:function(){try{return this._isSimulator||o.hasWindow()&&this._window.top!==this._window.self&&this._window.top["dx-force-device"]||this.isRippleEmulator()}catch(e){return!1}},forceSimulator:function(){this._isSimulator=!0},_getDevice:function(e){if("genericPhone"===e&&(e={deviceType:"phone",platform:"generic",generic:!0}),l(e))return this._fromConfig(e);var t;if(e){if(t=v[e],!t)throw d.Error("E0005")}else t=a.userAgent;return this._fromUA(t)},_getDeviceOrNameFromWindowScope:function(){var e;return o.hasWindow()&&(this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"])&&(e=this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"]),e},_getDeviceNameFromSessionStorage:function(){var e=g();if(e){var t=e.getItem("dx-force-device");try{return JSON.parse(t)}catch(e){return t}}},_fromConfig:function(e){var t=s({},y,this._currentDevice,e),n={phone:"phone"===t.deviceType,tablet:"tablet"===t.deviceType,android:"android"===t.platform,ios:"ios"===t.platform,win:"win"===t.platform,generic:"generic"===t.platform};return s(t,n)},_fromUA:function(e){var t;if(u(b,function(n,i){return t=i(e),!t}),t)return this._fromConfig(t);var n=/(mac os)/.test(e.toLowerCase()),i=y;return i.mac=n,i},_changeOrientation:function(){var e=i(this._window),t=e.height()>e.width()?"portrait":"landscape";this._currentOrientation!==t&&(this._currentOrientation=t,this.fireEvent("orientationChanged",[{orientation:t}]))},_recalculateOrientation:function(){var e=i(this._window).width();this._currentWidth!==e&&(this._currentWidth=e,this._changeOrientation())}}).include(f),w=new x;_.changeCallback.add(function(e,t){w.detachCssClasses(t),w.attachCssClasses(e)}),w.isForced()||"win"!==w.current().platform||w.current({version:[10]}),e.exports=w},function(e,t,n){var i=n(125),o=n(21);e.exports=i(o.ERROR_MESSAGES,{E1001:"Module '{0}'. Controller '{1}' is already registered",E1002:"Module '{0}'. Controller '{1}' does not inherit from DevExpress.ui.dxDataGrid.Controller",E1003:"Module '{0}'. View '{1}' is already registered",E1004:"Module '{0}'. View '{1}' does not inherit from DevExpress.ui.dxDataGrid.View",E1005:"Public method '{0}' is already registered",E1006:"Public method '{0}.{1}' does not exist",E1007:"State storing cannot be provided due to the restrictions of the browser",E1010:"The template does not contain the TextBox widget",E1011:'Items cannot be deleted from the List. Implement the "remove" function in the data store',E1012:"Editing type '{0}' with the name '{1}' is unsupported",E1016:"Unexpected type of data source is provided for a lookup column",E1018:"The 'collapseAll' method cannot be called if you use a remote data source",E1019:"Search mode '{0}' is unavailable",E1020:"The type cannot be changed after initialization",E1021:"{0} '{1}' you are trying to remove does not exist",E1022:'The "markers" option is given an invalid value. Assign an array instead',E1023:'The "routes" option is given an invalid value. Assign an array instead',E1025:"This layout is too complex to render",E1026:'The "calculateCustomSummary" function is missing from a field whose "summaryType" option is set to "custom"',E1030:"Unknown ScrollView refresh strategy: '{0}'",E1031:"Unknown subscription in the Scheduler widget: '{0}'",E1032:"Unknown start date in an appointment: '{0}'",E1033:"Unknown step in the date navigator: '{0}'",E1034:"The browser does not implement an API for saving files",E1035:"The editor cannot be created because of an internal error: {0}",E1037:"Invalid structure of grouped data",E1038:"The browser does not support local storages for local web pages",E1039:"A cell's position cannot be calculated",E1040:"The '{0}' key value is not unique within the data array",E1041:"The '{0}' script is referenced after the DevExtreme scripts or not referenced at all",E1042:"{0} requires the key field to be specified",E1043:"Changes cannot be processed due to the incorrectly set key",E1044:"The key field specified by the keyExpr option does not match the key field specified in the data store",E1045:"Editing requires the key field to be specified in the data store",E1046:"The '{0}' key field is not found in data objects",E1047:'The "{0}" field is not found in the fields array',E1048:'The "{0}" operation is not found in the filterOperations array',E1049:"Column '{0}': filtering is allowed but the 'dataField' or 'name' option is not specified",E1050:"The validationRules option does not apply to third-party editors defined in the editCellTemplate",E1051:'HtmlEditor\'s valueType is "{0}", but the {0} converter was not imported.',E1052:'{0} should have the "dataSource" option specified',E1053:'The "buttons" option accepts an array that contains only objects or string values',E1054:"All text editor buttons must have names",E1055:'One or several text editor buttons have invalid or non-unique "name" values',E1056:'The {0} widget does not support buttons of the "{1}" type',W1001:'The "key" option cannot be modified after initialization',W1002:"An item with the key '{0}' does not exist",W1003:"A group with the key '{0}' in which you are trying to select items does not exist",W1004:"The item '{0}' you are trying to select in the group '{1}' does not exist",W1005:"Due to column data types being unspecified, data has been loaded twice in order to apply initial filter settings. To resolve this issue, specify data types for all grid columns.",W1006:"The map service returned the following error: '{0}'",W1007:"No item with key {0} was found in the data source, but this key was used as the parent key for item {1}",W1008:"Cannot scroll to the '{0}' date because it does not exist on the current view",W1009:"Searching works only if data is specified using the dataSource option",W1010:"The capability to select all items works with source data of plain structure only",W1011:'The "keyExpr" option is not applied when dataSource is not an array',W1012:"The '{0}' key field is not found in data objects",W1013:'The "message" field in the dialog component was renamed to "messageHtml". Change your code correspondingly. In addition, if you used HTML code in the message, make sure that it is secure',W1014:"The Floating Action Button exceeds the recommended speed dial action count. If you need to display more speed dial actions, increase the maxSpeedDialActionCount option value in the global config."})},function(e,t,n){var i=n(2),o=n(5),a=n(17),r=n(110),s=n(0).extend,l=n(13).inArray,u=n(3).each,c=n(4),d=n(1),h=n(12),p=n(10),f=n(16),g=n(67),_=n(462),m=n(71),v=n(85),y=n(111),b=n(136),x=n(159),w=n(65),C=n(8),k=n(137),S=n(129),I=n(19),T=n(33),D="UIFeedback",E="dx-widget",A="dx-state-active",O="dx-state-disabled",B="dx-state-invisible",P="dx-state-hover",R="dx-state-focused",M=30,V=400,F="Focus",L="template",H=3,z="[data-options*='dxTemplate']",N="dx-template-wrapper",$=new v(function(e){var t=e.model.widget;if(t){var n=i("
"),o=e.model.options||{};if("button"===t||"tabs"===t||"dropDownMenu"===t){var r=t;t=T.camelize("dx-"+t),a.log("W0001","dxToolbar - 'widget' item field",r,"16.1","Use: '"+t+"' instead")}return e.parent?e.parent._createComponent(n,t,o):n[t](o),n}return i()}),W=g.inherit({_supportedKeys:function(){return{}},_getDefaultOptions:function(){return s(this.callBase(),{disabled:!1,visible:!0,hint:void 0,activeStateEnabled:!1,onContentReady:null,hoverStateEnabled:!1,focusStateEnabled:!1,tabIndex:0,accessKey:null,onFocusIn:null,onFocusOut:null,integrationOptions:{watchMethod:function(e,t,n){return n=n||{},n.skipImmediate||t(e()),c.noop},templates:{"dx-polymorph-widget":$},createTemplate:function(e){return new _(e)}},_keyboardProcessor:void 0})},_feedbackShowTimeout:M,_feedbackHideTimeout:V,_init:function(){this.callBase(),this._tempTemplates=[],this._defaultTemplates={},this._initTemplates(),this._initContentReadyAction()},_initTemplates:function(){this._extractTemplates(),this._extractAnonymousTemplate()},_clearInnerOptionCache:function(e){this[e+"Cache"]={}},_cacheInnerOptions:function(e,t){var n=e+"Cache";this[n]=s(this[n],t)},_getOptionsFromContainer:function(e){var t=e.name,n=e.fullName,i=e.value,o={};if(t===n)o=i;else{var a=n.split(".").pop();o[a]=i}return o},_innerOptionChanged:function(e,t){var n=this._getOptionsFromContainer(t);e&&e.option(n),this._cacheInnerOptions(t.name,n)},_getInnerOptionsCache:function(e){return this[e+"Cache"]},_initInnerOptionCache:function(e){this._clearInnerOptionCache(e),this._cacheInnerOptions(e,this.option(e))},_bindInnerWidgetOptions:function(e,t){this._options[t]=s({},e.option()),e.on("optionChanged",function(e){this._options[t]=s({},e.component.option())}.bind(this))},_extractTemplates:function(){var e=this.$element().contents().filter(z),t={};e.each(function(e,n){var o=h.getElementOptions(n).dxTemplate;if(o){if(!o.name)throw a.Error("E0023");i(n).addClass(N).detach(),t[o.name]=t[o.name]||[],t[o.name].push(n)}}),u(t,function(e,t){var n=this._findTemplateByDevice(t);n&&this._saveTemplate(e,n)}.bind(this))},_saveTemplate:function(e,t){var n=this.option("integrationOptions.templates");n[e]=this._createTemplate(t)},_findTemplateByDevice:function(e){var t=c.findBestMatches(f.current(),e,function(e){return h.getElementOptions(e).dxTemplate})[0];return u(e,function(e,n){n!==t&&i(n).remove()}),t},_extractAnonymousTemplate:function(){var e=this.option("integrationOptions.templates"),t=this._getAnonymousTemplateName(),n=this.$element().contents().detach(),o=n.filter(function(e,t){var n=t.nodeType===H,o=i(t).text().trim().length<1;return!(n&&o)}),a=o.length<1;e[t]||a||(e[t]=this._createTemplate(n))},_getAriaTarget:function(){return this._focusTarget()},_getAnonymousTemplateName:function(){return L},_getTemplateByOption:function(e){return this._getTemplate(this.option(e))},_getTemplate:function(e){return d.isFunction(e)?new v(function(t){var n=e.apply(this,this._getNormalizedTemplateArgs(t));if(!d.isDefined(n))return new y;var o=!1,a=this._acquireTemplate(n,function(e){return e.nodeType||d.isRenderer(e)&&!i(e).is("script")?new v(function(){return e}):(o=!0,this._createTemplate(e))}.bind(this)),r=a.render(t);return o&&a.dispose&&a.dispose(),r}.bind(this)):this._acquireTemplate(e,this._createTemplateIfNeeded.bind(this))},_acquireTemplate:function(e,t){if(null==e)return new y;if(e instanceof b)return this._defaultTemplates[e.name];if(e instanceof m)return e;if(d.isFunction(e.render)&&!d.isRenderer(e))return this._addOneRenderedCall(e);if(e.nodeType||d.isRenderer(e))return t(i(e));if("string"==typeof e){var n=this.option("integrationOptions.skipTemplates")||[],o=null;return n.indexOf(e)===-1&&(o=this._renderIntegrationTemplate(e)),o||this._defaultTemplates[e]||t(e)}return this._acquireTemplate(e.toString(),t)},_addOneRenderedCall:function(e){var t=e.render.bind(e);return s({},e,{render:function(e){var n=t(e);return e&&e.onRendered&&e.onRendered(),n}})},_renderIntegrationTemplate:function(e){var t=this.option("integrationOptions.templates")[e];if(t&&!(t instanceof m)){var n=this.option("templatesRenderAsynchronously");if(!n)return this._addOneRenderedCall(t)}return t},_createTemplateIfNeeded:function(e){var t=function(e){return d.isRenderer(e)&&e[0]||e},n=this._tempTemplates.filter(function(n){return e=t(e),n.source===e})[0];if(n)return n.template;var i=this._createTemplate(e);return this._tempTemplates.push({template:i,source:t(e)}),i},_createTemplate:function(e){return e="string"==typeof e?h.normalizeTemplateElement(e):e,this.option("integrationOptions.createTemplate")(e)},_getNormalizedTemplateArgs:function(e){var t=[];return"model"in e&&t.push(e.model),"index"in e&&t.push(e.index),t.push(e.container),t},_cleanTemplates:function(){this._tempTemplates.forEach(function(e){e.template.dispose&&e.template.dispose()}),this._tempTemplates=[]},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initMarkup:function(){this.$element().addClass(E),this._toggleDisabledState(this.option("disabled")),this._toggleVisibility(this.option("visible")),this._renderHint(),this._isFocusable()&&this._renderFocusTarget(),this.callBase()},_render:function(){this.callBase(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()},_renderHint:function(){var e=this.option("hint");this.$element().attr("title",e?e:null)},_renderContent:function(){var e=this;c.deferRender(function(){if(!e._disposed)return e._renderContentImpl()}).done(function(){e._disposed||e._fireContentReadyAction()})},_renderContentImpl:c.noop,_fireContentReadyAction:c.deferRenderer(function(){this._contentReadyAction()}),_dispose:function(){this._cleanTemplates(),this._contentReadyAction=null,this.callBase()},_resetActiveState:function(){this._toggleActiveState(this._eventBindingTarget(),!1)},_clean:function(){this._cleanFocusState(),this._resetActiveState(),this.callBase(),this.$element().empty()},_toggleVisibility:function(e){this.$element().toggleClass(B,!e),this.setAria("hidden",!e||void 0)},_renderFocusState:function(){this._attachKeyboardEvents(),this._isFocusable()&&(this._renderFocusTarget(),this._attachFocusEvents(),this._renderAccessKey())},_renderAccessKey:function(){var e=this._focusTarget();e.attr("accesskey",this.option("accessKey"));var t=C.addNamespace(I.name,D);o.off(e,t),this.option("accessKey")&&o.on(e,t,function(e){C.isFakeClickEvent(e)&&(e.stopImmediatePropagation(),this.focus())}.bind(this))},_isFocusable:function(){return this.option("focusStateEnabled")&&!this.option("disabled")},_eventBindingTarget:function(){return this.$element()},_focusTarget:function(){return this._getActiveElement()},_getActiveElement:function(){var e=this._eventBindingTarget();return this._activeStateUnit&&(e=e.find(this._activeStateUnit).not("."+O)),e},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",this.option("tabIndex"))},_keyboardEventBindingTarget:function(){return this._eventBindingTarget()},_detachFocusEvents:function(){var e=this._focusEventTarget(),t=this.NAME+F,n=C.addNamespace("focusin",t);n=n+" "+C.addNamespace("focusout",t),p.hasDocumentProperty("onbeforeactivate")&&(n=n+" "+C.addNamespace("beforeactivate",t)),o.off(e,n)},_attachFocusEvents:function(){var e=this.NAME+F,t=C.addNamespace("focusin",e),n=C.addNamespace("focusout",e),a=this._focusEventTarget();if(o.on(a,t,this._focusInHandler.bind(this)),o.on(a,n,this._focusOutHandler.bind(this)),p.hasDocumentProperty("onbeforeactivate")){var r=C.addNamespace("beforeactivate",e);o.on(this._focusEventTarget(),r,function(e){i(e.target).is(w.focusable)||e.preventDefault()})}},_refreshFocusEvent:function(){this._detachFocusEvents(),this._attachFocusEvents()},_focusEventTarget:function(){return this._focusTarget()},_focusInHandler:function(e){if(!e.isDefaultPrevented()){var t=this;t._createActionByOption("onFocusIn",{beforeExecute:function(){t._updateFocusState(e,!0)},excludeValidators:["readOnly"]})({event:e})}},_focusOutHandler:function(e){if(!e.isDefaultPrevented()){var t=this;t._createActionByOption("onFocusOut",{beforeExecute:function(){t._updateFocusState(e,!1)},excludeValidators:["readOnly","disabled"]})({event:e})}},_updateFocusState:function(e,t){var n=e.target;l(n,this._focusTarget())!==-1&&this._toggleFocusClass(t,i(n))},_toggleFocusClass:function(e,t){var n=t&&t.length?t:this._focusTarget();n.toggleClass(R,e)},_hasFocusClass:function(e){var t=i(e||this._focusTarget());return t.hasClass(R)},_isFocused:function(){return this._hasFocusClass()},_attachKeyboardEvents:function(){var e=this.option("_keyboardProcessor");e?this._keyboardProcessor=e.reinitialize(this._keyboardHandler,this):this.option("focusStateEnabled")&&(this._disposeKeyboardProcessor(),this._keyboardProcessor=new x({element:this._keyboardEventBindingTarget(),handler:this._keyboardHandler,focusTarget:this._focusTarget(),context:this}))},_keyboardHandler:function(e){var t=e.originalEvent,n=e.keyName,i=e.which,o=this._supportedKeys(t),a=o[n]||o[i];if(void 0!==a){var r=a.bind(this);return r(t)||!1}return!0},_refreshFocusState:function(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState:function(){var e=this._focusTarget();this._detachFocusEvents(),this._toggleFocusClass(!1),e.removeAttr("tabIndex"),this._disposeKeyboardProcessor()},_disposeKeyboardProcessor:function(){this._keyboardProcessor&&(this._keyboardProcessor.dispose(),delete this._keyboardProcessor)},_attachHoverEvents:function(){var e=this,t=e._activeStateUnit,n=C.addNamespace(k.start,D),a=C.addNamespace(k.end,D);if(o.off(e._eventBindingTarget(),n,t),o.off(e._eventBindingTarget(),a,t),e.option("hoverStateEnabled")){var s=new r(function(t){e._hoverStartHandler(t.event),e._refreshHoveredElement(i(t.element))},{excludeValidators:["readOnly"]}),l=e._eventBindingTarget();o.on(l,n,t,function(e){s.execute({element:i(e.target),event:e})}),o.on(l,a,t,function(t){e._hoverEndHandler(t),e._forgetHoveredElement()})}else e._toggleHoverClass(!1)},_hoverStartHandler:c.noop,_hoverEndHandler:c.noop,_attachFeedbackEvents:function(){var e,t,n=this,a=n._activeStateUnit,s=C.addNamespace(S.active,D),l=C.addNamespace(S.inactive,D);if(o.off(n._eventBindingTarget(),s,a),o.off(n._eventBindingTarget(),l,a),n.option("activeStateEnabled")){var u=function(e){var t=i(e.element),o=e.value,a=e.event;n._toggleActiveState(t,o,a)};o.on(n._eventBindingTarget(),s,a,{timeout:n._feedbackShowTimeout},function(t){e=e||new r(u),e.execute({element:i(t.currentTarget),value:!0,event:t})}),o.on(n._eventBindingTarget(),l,a,{timeout:n._feedbackHideTimeout},function(e){t=t||new r(u,{excludeValidators:["disabled","readOnly"]}),t.execute({element:i(e.currentTarget),value:!1,event:e})})}},_toggleActiveState:function(e,t){this._toggleHoverClass(!t),e.toggleClass(A,t)},_refreshHoveredElement:function(e){var t=this._activeStateUnit||this._eventBindingTarget();this._forgetHoveredElement(),this._hoveredElement=e.closest(t),this._toggleHoverClass(!0)},_forgetHoveredElement:function(){this._toggleHoverClass(!1),delete this._hoveredElement},_toggleHoverClass:function(e){this._hoveredElement&&this._hoveredElement.toggleClass(P,e&&this.option("hoverStateEnabled"))},_toggleDisabledState:function(e){this.$element().toggleClass(O,Boolean(e)),this._toggleHoverClass(!e),this.setAria("disabled",e||void 0)},_setWidgetOption:function(e,t){if(this[e]){if(d.isPlainObject(t[0]))return void u(t[0],function(t,n){this._setWidgetOption(e,[t,n])}.bind(this));var n=t[0],i=t[1];1===t.length&&(i=this.option(n));var o=this[e+"OptionMap"];this[e].option(o?o(n):n,i)}},_optionChanged:function(e){switch(e.name){case"disabled":this._toggleDisabledState(e.value),this._refreshFocusState();break;case"hint":this._renderHint();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents();break;case"tabIndex":case"_keyboardProcessor":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":break;case"accessKey":this._renderAccessKey();break;case"visible":var t=e.value;this._toggleVisibility(t),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(e.value?"shown":"hiding");break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(e)}},_isVisible:function(){return this.callBase()&&this.option("visible")},beginUpdate:function(){this._ready(!1),this.callBase()},endUpdate:function(){this.callBase(),this._initialized&&this._ready(!0)},_ready:function(e){return 0===arguments.length?this._isReady:void(this._isReady=e)},setAria:function(){var e=function(e){var t="role"===e.name||"id"===e.name?e.name:"aria-"+e.name,n=e.value;n=d.isDefined(n)?n.toString():null,e.target.attr(t,n)};if(d.isPlainObject(arguments[0])){var t=arguments[1]||this._getAriaTarget();u(arguments[0],function(n,i){e({name:n,value:i,target:t})})}else e({name:arguments[0],value:arguments[1],target:arguments[2]||this._getAriaTarget()})},isReady:function(){return this._ready()},repaint:function(){this._refresh()},focus:function(){o.trigger(this._focusTarget(),"focus")},registerKeyHandler:function(e,t){var n=this._supportedKeys(),i={};i[e]=t,this._supportedKeys=function(){return s(n,i)}}});e.exports=W},function(e,t,n){var i=n(2),o=n(5),a=n(16),r=n(10),s=n(12),l=n(112),u=n(8),c=n(23),d=n(114),h=n(88),p=n(58).compare,f="dxclick",g=10,_=Math.abs,m=function(e){return i(e).is("input, textarea, select, button ,:focus, :focus *")},v={requestAnimationFrame:l.requestAnimationFrame,cancelAnimationFrame:l.cancelAnimationFrame},y=d.inherit({ctor:function(e){this.callBase(e),this._makeElementClickable(i(e))},_makeElementClickable:function(e){e.attr("onclick")||e.attr("onclick","void(0)")},start:function(e){this._blurPrevented=e.isDefaultPrevented(),this._startTarget=e.target,this._startEventData=u.eventData(e)},end:function(e){return this._eventOutOfElement(e,this.getElement().get(0))||e.type===c.cancel?void this._cancel(e):(m(e.target)||this._blurPrevented||s.resetActiveElement(),this._accept(e),void(this._clickAnimationFrame=v.requestAnimationFrame(function(){this._fireClickEvent(e)}.bind(this))))},_eventOutOfElement:function(e,t){var n=e.target,i=!s.contains(t,n)&&t!==n,o=u.eventDelta(u.eventData(e),this._startEventData),a=_(o.x)>g||_(o.y)>g;return i||a},_fireClickEvent:function(e){this._fireEvent(f,e,{target:s.closestCommonParent(this._startTarget,e.target)})},dispose:function(){v.cancelAnimationFrame(this._clickAnimationFrame)}});!function(){var e="dx-native-click",t=a.real(),n=t.generic||t.ios&&p(t.version,[9,3])>=0||t.android&&p(t.version,[5])>=0,r=function(t){return n||i(t).closest("."+e).length},s=null,l=null,c=function(e){var t=e.originalEvent,n=l===t||t&&t.DXCLICK_FIRED,i=!e.which||1===e.which;i&&!s&&r(e.target)&&!n&&(t&&(t.DXCLICK_FIRED=!0),l=t,u.fireEvent({type:f,originalEvent:e}))};y=y.inherit({_makeElementClickable:function(e){r(e)||this.callBase(e),o.on(e,"click",c)},configure:function(t){this.callBase(t),t.useNative&&this.getElement().addClass(e)},start:function(e){s=null,r(e.target)||this.callBase(e)},end:function(e){r(e.target)||this.callBase(e)},cancel:function(){s=!0},dispose:function(){this.callBase(),o.off(this.getElement(),"click",c)}})}(),function(){var e=a.real().generic;if(!e){var t=null,n=!1,l=function(e){t=e.target,n=e.isDefaultPrevented()},d=function(e){var o=i(e.target);n||!t||o.is(t)||i(t).is("label")||!m(o)||s.resetActiveElement(),t=null,n=!1},h="NATIVE_CLICK_FIXER",p=r.getDocument();o.subscribeGlobal(p,u.addNamespace(c.down,h),l),o.subscribeGlobal(p,u.addNamespace("click",h),d)}}(),h({emitter:y,bubble:!0,events:[f]}),t.name=f},function(e,t,n){var i=n(21),o=n(15),a=n(48),r=n(1),s=n(3).each,l=n(87),u=l.unwrap,c=l.isWrapped,d=l.assign,h=function(e){return e.replace(/\[/g,".").replace(/\]/g,"")},p=function(e,t,n){return n=n||{},"this"===t?_(e,n):_(e[t],n)},f=function(e,t,n,o){if("this"===t)throw new i.Error("E4016");var a=e[t];o.unwrapObservables&&c(a)?d(a,n):e[t]=n},g=function(e){return e=e||{},e.unwrapObservables=void 0===e.unwrapObservables||e.unwrapObservables,e},_=function(e,t){return t.unwrapObservables?u(e):e},m=function(e){if(arguments.length>1&&(e=[].slice.call(arguments)),!e||"this"===e)return function(e){return e};if("string"==typeof e){e=h(e);var t=e.split(".");return function(e,n){n=g(n);for(var i=n.functionsAsIs,o=("defaultValue"in n),a=_(e,n),s=0;s=0;i--){var o=t[i],a=Math.floor(e/f(o));a>0&&(n[o+"s"]=a,e-=y(o,a))}return n},v=function(e){var t=0;return u(e)&&s(e,function(e,n){t+=y(e.substr(0,e.length-1),n)}),c(e)&&(t=y(e,1)),t},y=function(e,t){return f(e)*t},b=function(e){var t=-1;return c(e)?e:u(e)?(s(e,function(e,n){for(var i=0;i=6&&(i=new Date(i.setDate(i.getDate()+7))),i},J=function(e,t,n,i){return"date"===i&&(t=t&&le.correctDateWithUnitBeginning(t,"day"),n=n&&le.correctDateWithUnitBeginning(n,"day"),e=e&&le.correctDateWithUnitBeginning(e,"day")),ne(e,t,n)===e},ee=function(e){var t=Math.floor(e),n=e%1*60;return{hours:t,minutes:n}},te=function(e,t){var n=this.dateTimeFromDecimal(t),i=new Date(e);return(e.getHours()===n.hours&&e.getMinutes()n&&(i=n),i):e},ie=function(e,t){if(h(e)){var n=t.getHours()-e.getHours();if(0!==n){var i=1===n||n===-23?-1:1,o=new Date(t.getTime()+36e5*i);(i>0||o.getDate()===t.getDate())&&t.setTime(o.getTime())}}},oe=function(e){return e.setHours(e.getHours()+1),e.setMinutes(0),e},ae=function(e,t){return 60*(t.getTimezoneOffset()-e.getTimezoneOffset())*1e3},re=function(e){return new Date(e)},se=function(e,t,n){var i=[],o=new Date(e.getTime());for(e.getTime()===t.getTime()&&i.push(new Date(e.getTime()));o-1&&(t.splice(i,1),this._firing&&n.length))for(var o=0;o-1:!!t.length},i.prototype.empty=function(e){return this._list=[],this},i.prototype.fireWith=function(e,t){var n=this._queue;if(t=t||[],t=t.slice?t.slice():t,this._options.syncStrategy)this._firing=!0,this._fireCore(e,t);else{if(n.push([e,t]),this._firing)return;for(this._firing=!0;n.length;){var i=n.shift();this._fireCore(i[0],i[1])}}return this._firing=!1,this._fired=!0,this},i.prototype.fire=function(){this.fireWith(this,arguments)},i.prototype.fired=function(){return this._fired};var o=function(e){return new i(e)};e.exports=o},function(e,t,n){var i=n(0).extend,o=n(7),a=o.getNavigator(),r=/(webkit)[ \/]([\w.]+)/,s=/(msie) (\d{1,2}\.\d)/,l=/(trident).*rv:(\d{1,2}\.\d)/,u=/(edge)\/((\d+)?[\w.]+)/,c=/(mozilla)(?:.*? rv:([\w.]+))/,d=function(e){e=e.toLowerCase();var t={},n=s.exec(e)||l.exec(e)||u.exec(e)||e.indexOf("compatible")<0&&c.exec(e)||r.exec(e)||[],i=n[1],o=n[2];return"webkit"===i&&(t.webkit=!0,e.indexOf("chrome")>=0||e.indexOf("crios")>=0?(i="chrome",o=/(?:chrome|crios)\/(\d+\.\d+)/.exec(e),o=o&&o[1]):e.indexOf("fxios")>=0?(i="mozilla",o=/fxios\/(\d+\.\d+)/.exec(e),o=o&&o[1]):e.indexOf("safari")>=0&&/version|phantomjs/.test(e)?(i="safari",o=/(?:version|phantomjs)\/([0-9.]+)/.exec(e),o=o&&o[1]):(i="unknown",o=/applewebkit\/([0-9.]+)/.exec(e),o=o&&o[1])),"trident"!==i&&"edge"!==i||(i="msie"),i&&(t[i]=!0,t.version=o),t};e.exports=i({_fromUA:d},d(a.userAgent))},function(e,t,n){var i=n(37),o=n(1).type,a="dxTranslator",r=/matrix(3d)?\((.+?)\)/,s=/translate(?:3d)?\((.+?)\)/,l=function(e){var t=d(e);return{left:t.x,top:t.y}},u=function(e,t){var n,i=t.left,o=t.top;void 0===i?(n=d(e),n.y=o||0):void 0===o?(n=d(e),n.x=i||0):(n={x:i||0,y:o||0,z:0},h(e,n)),e.css({transform:_(n)}),(c(i)||c(o))&&p(e)},c=function(e){return"string"===o(e)&&"%"===e[e.length-1]},d=function(e){var t=e.length?i.data(e.get(0),a):null;if(!t){var n=e.css("transform")||_({x:0,y:0}),o=n.match(r),s=o&&o[1];o?(o=o[2].split(","),"3d"===s?o=o.slice(12,15):(o.push(0),o=o.slice(4,7))):o=[0,0,0],t={x:parseFloat(o[0]),y:parseFloat(o[1]),z:parseFloat(o[2])},h(e,t)}return t},h=function(e,t){e.length&&i.data(e.get(0),a,t)},p=function(e){e.length&&i.removeData(e.get(0),a)},f=function(e,t){var n,i={left:0,top:0,transform:"none"};t&&(n=e.css("transition"),i.transition="none"),e.css(i),p(e),t&&(e.get(0).offsetHeight,e.css("transition",n))},g=function(e){var t=e.match(s);if(t&&t[1])return t=t[1].split(","),t={x:parseFloat(t[0]),y:parseFloat(t[1]),z:parseFloat(t[2])}},_=function(e){e.x=e.x||0,e.y=e.y||0;var t=c(e.x)?e.x:e.x+"px",n=c(e.y)?e.y:e.y+"px";return"translate("+t+", "+n+")"};t.move=u,t.locate=l,t.clearCache=p,t.parseTranslate=g,t.getTranslate=d,t.getTranslateCss=_,t.resetPosition=f},function(e,t,n){function i(e){return Math.abs(parseInt(e.toExponential().split("e")[1]))}function o(){var e=3e-4,t="0.000300",n=3;return t!==e.toPrecision(n)}function a(e,t){var n=r(t||0)+2,a=e.toString().split("."),s=e,l=Math.abs(e),c=u(e),d=l>1?10:0;if(1===a.length)return e;if(c||(u(t)&&(n=a[0].length+i(t)),e=l,e=e-Math.floor(e)+d),n=o()&&i(e)>6||n>7?15:7,!c){var h=parseFloat(e.toPrecision(n)).toString().split(".");if(h[0]===d.toString())return parseFloat(a[0]+"."+h[1])}return parseFloat(s.toPrecision(n))}function r(e){var t=e.toString();if(t.indexOf(".")<0)return 0;var n=t.split("."),i=n[1].indexOf("e");return i>=0?i:n[1].length}function s(e,t){if(e<0&&t%2!==1)return NaN;var n=Math.pow(Math.abs(e),1/t);return t%2===1&&e<0?-n:n}function l(e,t,n,i){var o=1e-8;if(Math.abs(e)0?[(-t+Math.sqrt(a))/(2*e),(-t-Math.sqrt(a))/(2*e)]:[]}var r,l,u=(3*e*n-t*t)/(3*e*e),c=(2*t*t*t-9*e*t*n+27*e*e*i)/(27*e*e*e);if(Math.abs(u)0)l=s(-c/2-Math.sqrt(d),3),r=[l-u/(3*l)];else{l=2*Math.sqrt(-u/3);var h=Math.acos(3*c/u/l)/3,p=2*Math.PI/3;r=[l*Math.cos(h),l*Math.cos(h-p),l*Math.cos(h-2*p)]}}for(var f=0;f=t&&e<=n};t.sign=c,t.fitIntoRange=d,t.inRange=h,t.adjust=a,t.getPrecision=r,t.getExponent=i,t.getRoot=s,t.solveCubicEquation=l},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(0),a=i(o),r=n(21),s=i(r),l={rtlEnabled:!1,defaultCurrency:"USD",oDataFilterToLower:!0,serverDecimalSeparator:".",decimalSeparator:".",thousandsSeparator:",",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!0,useLegacyStoreResult:!1,useJQuery:void 0,editorStylingMode:void 0,useLegacyVisibleIndex:!1,floatingActionButtonConfig:{icon:"add",closeIcon:"close",position:{at:"right bottom",my:"right bottom",offset:{x:-16,y:-16}},maxSpeedDialActionCount:5},optionsParser:function(e){"{"!==e.trim().charAt(0)&&(e="{"+e+"}");try{return new Function("return "+e)()}catch(t){throw s.default.Error("E3018",t,e)}}},u=function(){return arguments.length?void a.default.extend(l,arguments.length<=0?void 0:arguments[0]):l};"undefined"!=typeof DevExpress&&DevExpress.config&&u(DevExpress.config),e.exports=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(0),a=n(39),r=i(a);(0,o.extend)(t,r.default,{modules:[],foreachNodes:function(e,t){for(var n=0;n",k).addClass("dx-theme-marker").appendTo(k.documentElement);try{return(e=t.css("fontFamily"))?(e=e.replace(/["']/g,""),e.substr(0,Z.length)!==Z?null:e.substr(Z.length)):null}finally{t.remove()}}function o(e){function t(){D=null,W.fire(),W.empty()}var n;D=e,a()?t():(n=Date.now(),E=setInterval(function(){var e=a(),i=!e&&Date.now()-n>15e3;i&&V.log("W0004",D),(e||i)&&(clearInterval(E),E=void 0,t())},10))}function a(){return!D||i()===D}function r(){var e=O(K,k);e.length&&(I={},S=O(F.createMarkupFromString(""),k),e.each(function(){var e=O(this,k),t=e.attr(U),n=e.attr("href"),i="true"===e.attr(Y);I[t]={url:n,isActive:i}}),e.last().after(S),e.remove())}function s(e){var t=e.split("."),n=null;if(I){if(e in I)return e;z(I,function(e,i){var o=e.split(".");if(o[0]===t[0]&&!(t[1]&&t[1]!==o[1]||t[2]&&t[2]!==o[2]))return n&&!i.isActive||(n=e),!i.isActive&&void 0})}return n}function l(e){try{e!==k&&(I=null)}catch(e){I=null}k=e}function u(e){e=e||{},l(e.context||B.getDocument()),k&&(r(),T=void 0,c(e))}function c(e){if(!arguments.length)return T=T||i();f(G()),e=e||{},"string"==typeof e&&(e={theme:e});var t,n=e._autoInit,a=e.loadCallback;if(T=e.theme||T,n&&!T&&(T=d(N.current())),T=s(T),T&&(t=I[T]),a&&W.add(a),t)S.attr("href",I[T].url),!W.has()&&!e._forceTimeout||E?D&&(D=T):o(T);else{if(!n)throw V.Error("E0021",T);W.fire(),W.empty()}b(),p($.originalViewPort(),T)}function d(e){var t=e.platform;switch(t){case"ios":return"ios7";case"android":case"win":return"generic"}return t}function h(e){e=e||c();var t=[],n=e&&e.split(".");return n&&(t.push("dx-theme-"+n[0],"dx-theme-"+n[0]+"-typography"),n.length>1&&t.push("dx-color-scheme-"+n[1]+(m(e)?"-"+n[2]:""))),t}function p(e,t){A=h(t).join(" "),O(e).addClass(A);var n=function(){var t=P.hasWindow()&&R.devicePixelRatio;if(t&&!(t<2)){var n=O("
");n.css("border",".5px solid transparent"),O("body").append(n),1===n.outerHeight()&&(O(e).addClass(X),A+=" "+X),n.remove()}};n()}function f(e){O(e).removeClass(A)}function g(e){W.add(e)}function _(e,t){return t||(t=T||i()),new RegExp(e).test(t)}function m(e){return _("material",e)}function v(e){return _("ios7",e)}function y(e){return _("generic",e)}function b(){v()&&V.log("W0010","The 'ios7' theme","19.1","Use the 'generic' theme instead.")}function x(e,t){var n="Roboto, RobotoFallback, Arial",i="Arial",o=B.getDocument(),a=o.createElement("span");a.style.position="absolute",a.style.top="-9999px",a.style.left="-9999px",a.style.visibility="hidden",a.style.fontFamily=i,a.style.fontSize="250px",a.style.fontWeight=t,a.innerHTML=e,o.body.appendChild(a);var r=a.offsetWidth;a.style.fontFamily=n;var s=a.offsetWidth;return a.parentNode.removeChild(a),r!==s}function w(e,t){var n=15,i=2e3;return new j(function(o){var a=function(){x(e,t)&&r()},r=function(){clearInterval(s),clearTimeout(l),o()},s=setInterval(a,n),l=setTimeout(r,i)})}function C(){if(u({_autoInit:!0,_forceTimeout:!0}),O(K,k).length)throw V.Error("E0022");Q.resolve()}var k,S,I,T,D,E,A,O=n(2),B=n(10),P=n(7),R=P.getWindow(),M=n(6).Deferred,V=n(17),F=n(12),L=n(47),H=L.add,z=n(3).each,N=n(16),$=n(77),W=n(231),G=$.value,j=n(76),q=$.changeCallback,K="link[rel=dx-theme]",U="data-theme",Y="data-active",X="dx-hairlines",Z="dx.",Q=new M;P.hasWindow()?C():H(C),q.add(function(e,t){Q.done(function(){f(t),p(e)})}),N.changed.add(function(){u({_autoInit:!0})}),t.current=c,t.ready=g,t.init=u,t.attachCssClasses=p,t.detachCssClasses=f,t.themeNameFromDevice=d,t.waitForThemeLoad=o,t.isMaterial=m,t.isIos7=v,t.isGeneric=y,t.isWebFontLoaded=x,t.waitWebFont=w,t.resetTheme=function(){S&&S.attr("href","about:blank"),T=null,D=null}},function(e,t,n){var i=n(53),o=n(1).isString,a=n(3),r=n(13).inArray,s=n(219).getFormatter,l=n(185).getFormat,u=n(212).getParser,c=n(220),d=n(51),h=n(21);n(84);var p={shortdate:"M/d/y",shorttime:"h:mm a",longdate:"EEEE, MMMM d, y",longtime:"h:mm:ss a",monthandday:"MMMM d",monthandyear:"MMMM y",quarterandyear:"QQQ y",day:"d",year:"y",shortdateshorttime:"M/d/y, h:mm a",mediumdatemediumtime:"MMMM d, h:mm a",longdatelongtime:"EEEE, MMMM d, y, h:mm:ss a",month:"LLLL",shortyear:"yy",dayofweek:"EEEE",quarter:"QQQ",hour:"HH",minute:"mm",second:"ss",millisecond:"SSS","datetime-local":"yyyy-MM-ddTHH':'mm':'ss"},f={year:["y","yy","yyyy"],day:["d","dd"],month:["M","MM","MMM","MMMM"],hours:["H","HH","h","hh","ah"],minutes:["m","mm"],seconds:["s","ss"],milliseconds:["S","SS","SSS"]},g=i({_getPatternByFormat:function(e){return p[e.toLowerCase()]},_expandPattern:function(e){return this._getPatternByFormat(e)||e},formatUsesMonthName:function(e){return this._expandPattern(e).indexOf("MMMM")!==-1},formatUsesDayName:function(e){return this._expandPattern(e).indexOf("EEEE")!==-1},getFormatParts:function(e){var t=this._getPatternByFormat(e)||e,n=[];return a.each(t.split(/\W+/),function(e,t){a.each(f,function(e,i){r(t,i)>-1&&n.push(e)})}),n},getMonthNames:function(e){return c.getMonthNames(e)},getDayNames:function(e){return c.getDayNames(e)},getQuarterNames:function(e){return c.getQuarterNames(e)},getPeriodNames:function(e){return c.getPeriodNames(e)},getTimeSeparator:function(){return":"},is24HourFormat:function(e){for(var t=new Date(2017,0,20,11,0,0,0),n=new Date(2017,0,20,23,0,0,0),i=this.format(t,e),o=this.format(n,e),a=0;a0)&&(e=a(e)),e}).join("")},c=function(e){return a(s(e).replace(/-/g," "))},d=function(e){return i(r(e),function(e){return a(e.toLowerCase())}).join(" ")},h=["0","1","2","3","4","5","6","7","8","9"],p=function(e){var t,n,i=[],o=!1,a=!1;for(t=0;t0&&i.push(" "),i.push(n),o=a;return i.join("")};t.dasherize=s,t.camelize=u,t.humanize=c,t.titleize=d,t.underscore=l,t.captionize=p},function(e,t,n){var i=n(2),o=n(5),a=n(62),r=n(12),s=n(16),l=n(9),u=n(0).extend,c=n(174),d=n(99),h=n(18),p=n(72),f=n(8),g=n(31),_=n(19),m=n(85),v="dx-button",y="dx-button-content",b="dx-button-has-text",x="dx-button-has-icon",w="dx-button-icon-right",C="dx-icon-right",k="dx-button-mode-",S=[k+"contained",k+"text",k+"outlined"],I="dx-template-wrapper",T="dx-button-text",D="content",E="left",A=100,O=h.inherit({_supportedKeys:function(){var e=this,t=function(t){t.preventDefault(),e._executeClickAction(t)};return u(this.callBase(),{space:t,enter:t})},_setDeprecatedOptions:function(){this.callBase()},_getDefaultOptions:function(){return u(this.callBase(),{hoverStateEnabled:!0,onClick:null,type:"normal",text:"",icon:"",iconPosition:E,validationGroup:void 0,activeStateEnabled:!0,template:"content",useSubmitBehavior:!1,useInkRipple:!1,stylingMode:"contained"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===s.real().deviceType&&!s.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){var e=g.current();return g.isMaterial(e)},options:{useInkRipple:!0}}])},_getAnonymousTemplateName:function(){return D},_feedbackHideTimeout:A,_initTemplates:function(){this.callBase();var e=this;this._defaultTemplates.content=new m(function(t){var n=t.model,o=a.getImageContainer(n&&n.icon),r=n&&n.text?i("").text(n.text).addClass(T):void 0,s=i(t.container);s.append(r),e.option("iconPosition")===E?s.prepend(o):(o.addClass(C),s.append(o))},this)},_initMarkup:function(){this.$element().addClass(v),this._renderType(),this._renderStylingMode(),this.option("useInkRipple")&&this._renderInkRipple(),this._renderClick(),this.setAria("role","button"),this._updateAriaLabel(),this.callBase(),this._updateContent()},_renderInkRipple:function(){var e=!this.option("text")&&this.option("icon")||"back"===this.option("type"),t={};e&&u(t,{waveSizeCoefficient:1,useHoldAnimation:!1,isCentered:!0}),this._inkRipple=p.render(t)},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:this._$content,event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_updateContent:function(){var e=this.$element(),t=this._getContentData();this._$content?this._$content.empty():this._$content=i("
").addClass(y).appendTo(e),e.toggleClass(x,!!t.icon).toggleClass(w,!!t.icon&&this.option("iconPosition")!==E).toggleClass(b,!!t.text);var n=this._getAnonymousTemplateName()===this.option("template"),o=this._getTemplateByOption("template"),a=i(o.render({model:t,container:r.getPublicElement(this._$content),transclude:n}));a.hasClass(I)&&(this._$content.replaceWith(a),this._$content=a,this._$content.addClass(y)),this.option("useSubmitBehavior")&&this._renderSubmitInput()},_renderSubmitInput:function(){var e=this._createAction(function(e){var t=e.event,n=d.getGroupConfig(e.component._findGroup());n&&!n.validate().isValid&&t.preventDefault(),t.stopPropagation()});this._$submitInput=i("").attr("type","submit").attr("tabindex",-1).addClass("dx-button-submit-input").appendTo(this._$content),o.on(this._$submitInput,"click",function(t){e({event:t})})},_getContentData:function(){var e=this.option("icon"),t=this.option("text"),n="back"===this.option("type");return n&&!e&&(e="back"),{icon:e,text:t}},_renderClick:function(){var e=this,t=f.addNamespace(_.name,this.NAME),n={excludeValidators:["readOnly"]};this.option("useSubmitBehavior")&&(n.afterExecute=function(e){setTimeout(function(){e.component._$submitInput.get(0).click()})}),this._clickAction=this._createActionByOption("onClick",n),o.off(this.$element(),t),o.on(this.$element(),t,function(t){e._executeClickAction(t)})},_executeClickAction:function(e){this._clickAction({event:e,validationGroup:d.getGroupConfig(this._findGroup())})},_updateAriaLabel:function(){var e=this.option("icon"),t=this.option("text");"image"===a.getImageSourceType(e)&&(e=e.indexOf("base64")===-1?e.replace(/.+\/([^.]+)\..+$/,"$1"):"Base64");var n=t||e||"";n=n.toString().trim(),this.setAria("label",n.length?n:null)},_renderType:function(){var e=this.option("type");e&&this.$element().addClass("dx-button-"+e)},_renderStylingMode:function(){var e=this,t="stylingMode";S.forEach(function(t){return e.$element().removeClass(t)});var n=k+this.option(t);if(S.indexOf(n)===-1){var i=this._getDefaultOptions()[t];n=k+i}this.$element().addClass(n)},_refreshType:function(e){var t=this.option("type");e&&this.$element().removeClass("dx-button-"+e).addClass("dx-button-"+t),this.$element().hasClass(x)||"back"!==t||this._updateContent()},_optionChanged:function(e){switch(e.name){case"onClick":this._renderClick();break;case"icon":case"text":this._updateContent(),this._updateAriaLabel();break;case"type":this._refreshType(e.previousValue),this._updateContent(),this._updateAriaLabel();break;case"template":case"iconPosition":this._updateContent();break;case"stylingMode":this._renderStylingMode();break;case"useInkRipple":case"useSubmitBehavior":this._invalidate();break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase(),delete this._$content}}).include(c);l("dxButton",O),e.exports=O},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(4),s=n(1),l=n(6),u=n(165),c=n(44),d=n(3),h=n(0),p=n(20),f=n(191),g=i(f),_=n(41),m=n(64),v=i(m),y=n(48),b=n(7),x=n(5),w=i(x),C="dx-selection-disabled",k="dx-datagrid-group-opened",S="dx-datagrid-group-closed",I="dx-datagrid-expand",T="nodata",D={year:function(e){return e&&e.getFullYear()},month:function(e){return e&&e.getMonth()+1},day:function(e){return e&&e.getDate()},quarter:function(e){return e&&Math.floor(e.getMonth()/3)+1},hour:function(e){return e&&e.getHours()},minute:function(e){return e&&e.getMinutes()},second:function(e){return e&&e.getSeconds()}};e.exports=function(){var t=function(){var e=arguments[1],t=this.calculateCellValue(e);if(!(0,s.isDefined)(t))return null;if(i(this.dataType)){var n=arguments[0];return D[n](t)}if("number"===this.dataType){var o=arguments[0];return Math.floor(Number(t)/o)*o}},n=function(e,t){return(0,s.isFunction)(e)&&(0,s.isFunction)(t)&&e.originalCallback&&t.originalCallback?e.originalCallback===t.originalCallback&&e.columnIndex===t.columnIndex:e===t},i=function(e){return"date"===e||"datetime"===e},o=function(e){e.get(0).textContent="\xa0"},f=function(e){var t=e.data&&e.data(),n=t&&t.dxComponents,i=n&&n[0];return i&&t[i]};return{renderNoDataText:function(e){var t=this;if(e=e||this.element()){var n=t.addWidgetPrefix(T),i=e.find("."+n).last(),o=this._dataController.isEmpty(),r=this._dataController.isLoading();i.length||(i=(0,a.default)("").addClass(n).appendTo(e)),o&&!r?i.removeClass("dx-hidden").text(t._getNoDataText()):i.addClass("dx-hidden")}},renderLoadPanel:function(e,t,n){var i,o=this;o._loadPanel&&o._loadPanel.$element().remove(),i=o.option("loadPanel"),i&&("auto"===i.enabled?!n:i.enabled)?(i=(0,h.extend)({shading:!1,message:i.text,position:function(){var t=(0, a.default)((0,b.getWindow)());return e.height()>t.height()?{of:t,boundary:e,collision:"fit"}:{of:e}},container:t},i),o._loadPanel=o._createComponent((0,a.default)("
").appendTo(t),g.default,i)):o._loadPanel=null},getIndexByKey:function(e,t,n){var i=-1;if(void 0!==e&&Array.isArray(t)){n=arguments.length<=2?"key":n;for(var o=0;o=0&&(0,s.isFunction)(n)&&n.columnIndex>=0?t.columnIndex===n.columnIndex&&(0,p.toComparable)(t.filterValue)===(0,p.toComparable)(n.filterValue):(0,p.toComparable)(t)==(0,p.toComparable)(n)},proxyMethod:function(e,t,n){e[t]||(e[t]=function(){var e=this._dataSource;return e?e[t].apply(e,arguments):n})},formatValue:function(e,t){var n=v.default.format(e,t.format)||e&&e.toString()||"",i={value:e,valueText:t.getDisplayFormat?t.getDisplayFormat(n):n,target:t.target||"row",groupInterval:t.groupInterval};return t.customizeText?t.customizeText.call(t,i):i.valueText},getFormatOptionsByColumn:function(e,t){return{format:e.format,getDisplayFormat:e.getDisplayFormat,customizeText:e.customizeText,target:t,trueText:e.trueText,falseText:e.falseText}},getDisplayValue:function(e,t,n,i){return e.displayValueMap&&void 0!==e.displayValueMap[t]?e.displayValueMap[t]:e.calculateDisplayValue&&n&&"group"!==i?e.calculateDisplayValue(n):!e.lookup||"group"===i&&(e.calculateGroupValue||e.calculateDisplayValue)?t:e.lookup.calculateCellValue(t)},getGroupRowSummaryText:function(t,n){for(var i="(",o=0;o0?", ":"")+e.exports.getSummaryText(a,n)}return i+=")"},getSummaryText:function(e,t){var n=e.displayFormat||e.columnCaption&&t[e.summaryType+"OtherColumn"]||t[e.summaryType];return this.formatValue(e.value,{format:e.valueFormat,getDisplayFormat:function(t){return n?(0,c.format)(n,t,e.columnCaption):t},customizeText:e.customizeText})},normalizeSortingInfo:function(e){e=e||[];for(var t=(0,_.normalizeSortingInfo)(e),n=0;n0){var p=e.eq(d-1).offset();p.top").addClass(t.value?k:S).appendTo(n),i.setAria("label",t.value?i.localize("dxDataGrid-ariaCollapse"):i.localize("dxDataGrid-ariaExpand"),n)}}}},setEmptyText:o,isDateType:i,getSelectionRange:function(e){try{if(e)return{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}catch(e){}return{}},setSelectionRange:function(e,t){try{e&&e.setSelectionRange&&e.setSelectionRange(t.selectionStart,t.selectionEnd)}catch(e){}},focusAndSelectElement:function(e,t){w.default.trigger(t,"focus");var n=e.option("editing.selectTextOnEditStart"),i=e.getController("keyboardNavigation"),o=i&&i._isFastEditingStarted();if(n&&!o&&t.is(".dx-texteditor-input")){var a=f(t.closest(".dx-texteditor"));(0,l.when)(a&&a._loadItemDeferred).done(function(){t.get(0).select()})}},getWidgetInstance:f,getLastResizableColumnIndex:function(e,t){for(var n=e.some(function(e){return e&&!e.command&&!e.fixed&&e.allowResizing!==!1}),i=e.length-1;e[i];i--){var o=e[i],a=t&&t[i],r=!n||o.allowResizing!==!1;if(!o.command&&!o.fixed&&"adaptiveHidden"!==a&&r)break}return i},isElementInCurrentGrid:function(e,t){if(t&&t.length){var n=t.closest("."+e.getWidgetContainerClass()).parent();return n.is(e.component.$element())}return!1}}}()},function(e,t,n){var i=n(125),o=n(21),a={},r=i(o.ERROR_MESSAGES,{E4000:"[DevExpress.data]: {0}",E4001:"Unknown aggregating function is detected: '{0}'",E4002:"Unsupported OData protocol version is used",E4003:"Unknown filter operation is used: {0}",E4004:"The thenby() method is called before the sortby() method",E4005:"Store requires a key expression for this operation",E4006:"ArrayStore 'data' option must be an array",E4007:"Compound keys cannot be auto-generated",E4008:"Attempt to insert an item with the a duplicated key",E4009:"Data item cannot be found",E4010:"CustomStore does not support creating queries",E4011:"Custom Store method is not implemented or is not a function: {0}",E4012:"Custom Store method returns an invalid value: {0}",E4013:"Local Store requires the 'name' configuration option is specified",E4014:"Unknown data type is specified for ODataStore: {0}",E4015:"Unknown entity name or alias is used: {0}",E4016:"The compileSetter(expr) method is called with 'self' passed as a parameter",E4017:"Keys cannot be modified",E4018:"The server has returned a non-numeric value in a response to an item count request",E4019:"Mixing of group operators inside a single group of filter expression is not allowed",E4020:"Unknown store type is detected: {0}",E4021:"The server response does not provide the totalCount value",E4022:"The server response does not provide the groupCount value",E4023:"Could not parse the following XML: {0}",W4000:"Data returned from the server has an incorrect structure",W4001:'The {0} field is listed in both "keyType" and "fieldTypes". The value of "fieldTypes" is used.',W4002:"Data loading has failed for some cells due to the following error: {0}"}),s=null,l=function(e){a.errorHandler&&a.errorHandler(e)};a={errors:r,errorHandler:s,_errorHandler:l},e.exports=a},function(e,t,n){var i,o=n(177),a=n(10),r=n(5),s=n(178),l=new o,u=new s,c=function(){},d=function(){},h=t.setDataStrategy=function(e){u.fire(e),i=e;var t=i.cleanData;i.cleanData=function(e){c(e);var n=t.call(this,e);return d(e),n}};h({data:function(){var e=arguments[0],t=arguments[1],n=arguments[2];if(e){var i=l.get(e);return i||(i={},l.set(e,i)),void 0===t?i:2===arguments.length?i[t]:(i[t]=n,n)}},removeData:function(e,t){if(e)if(void 0===t)l.delete(e);else{var n=l.get(e);n&&delete n[t]}},cleanData:function(e){for(var t=0;t=t.duration&&s.reject()}),r.off(e,w),r.on(e,w,function(){i.stop(e,t),a.reject()});var c=setTimeout(function(){n=setTimeout(function(){l.reject()},t.duration+t.delay+de._simulatedTransitionEndDelay),b(s,l).fail(function(){a.resolve()}.bind(this))});return a.promise()},_startAnimation:function(e,t){e.css({transitionProperty:"all",transitionDelay:t.delay+"ms",transitionDuration:t.duration+"ms",transitionTimingFunction:t.easing}),"string"==typeof t.to?e[0].className+=" "+t.to:t.to&&ue(e,t.to)},_finishTransition:function(e){e.css("transition","none")},_cleanup:function(e,t){t.transitionAnimation.cleanup(),"string"==typeof t.from&&(e.removeClass(t.from),e.removeClass(t.to))},stop:function(e,t,n){t&&(n?t.transitionAnimation.finish():(k(t.to)&&d.each(t.to,function(t){e.css(t,e.css(t))}),this._finishTransition(e),this._cleanup(e,t)))}},O={initAnimation:function(e,t){ue(e,t.from)},animate:function(e,t){var n=new x,i=this;return t?(d.each(t.to,function(n){void 0===t.from[n]&&(t.from[n]=i._normalizeValue(e.css(n)))}),t.to[E]&&(t.from[E]=i._parseTransform(t.from[E]),t.to[E]=i._parseTransform(t.to[E])),t.frameAnimation={to:t.to,from:t.from,currentValue:t.from,easing:p.convertTransitionTimingFuncToEasing(t.easing),duration:t.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),f.cancelAnimationFrame(t.frameAnimation.animationFrameId),n.resolve()},draw:function(){if(t.draw)return void t.draw(this.currentValue);var n=u({},this.currentValue);n[E]&&(n[E]=d.map(n[E],function(e,t){return"translate"===t?h.getTranslateCss(e):"scale"===t?"scale("+e+")":"rotate"===t.substr(0,t.length-1)?t+"("+e+"deg)":void 0}).join(" ")),e.css(n)}},t.delay?(t.frameAnimation.startTime+=t.delay,t.frameAnimation.delayTimeout=setTimeout(function(){i._startAnimation(e,t)},t.delay)):i._startAnimation(e,t),n.promise()):n.reject().promise()},_startAnimation:function(e,t){r.off(e,w),r.on(e,w,function(){t.frameAnimation&&f.cancelAnimationFrame(t.frameAnimation.animationFrameId)}),this._animationStep(e,t)},_parseTransform:function(e){var t={};return d.each(e.match(/\w+\d*\w*\([^)]*\)\s*/g),function(e,n){var i=h.parseTranslate(n),o=n.match(/scale\((.+?)\)/),a=n.match(/(rotate.)\((.+)deg\)/);i&&(t.translate=i),o&&o[1]&&(t.scale=parseFloat(o[1])),a&&a[1]&&(t[a[1]]=parseFloat(a[2]))}),t},stop:function(e,t,n){var i=t&&t.frameAnimation;i&&(f.cancelAnimationFrame(i.animationFrameId),clearTimeout(i.delayTimeout),n&&i.finish(),delete t.frameAnimation)},_animationStep:function(e,t){var n=t&&t.frameAnimation;if(n){var i=(new Date).valueOf();if(i>=n.startTime+n.duration)return void n.finish();n.currentValue=this._calcStepValue(n,i-n.startTime),n.draw();var o=this;n.animationFrameId=f.requestAnimationFrame(function(){o._animationStep(e,t)})}},_calcStepValue:function(e,t){var n=function n(o,a){var r=Array.isArray(a)?[]:{},s=function(n){var i=t/e.duration,r=t,s=1*o[n],l=a[n]-o[n],u=e.duration;return p.getEasing(e.easing)(i,r,s,l,u)};return d.each(a,function(e,t){return"string"==typeof t&&parseFloat(t,10)===!1||void(r[e]="object"===i(t)?n(o[e],t):s(e))}),r};return n(e.from,e.to)},_normalizeValue:function(e){var t=parseFloat(e,10);return t===!1?e:t}},B={initAnimation:function(){},animate:function(){return(new x).resolve().promise()},stop:S,isSynchronous:!0},P=function(e){e=e||{};var t={transition:g.transition()?A:O,frame:O,noAnimation:B},n=e.strategy||"transition";return"css"!==e.type||g.transition()||(n="noAnimation"),t[n]},R=function(e,t,n,i){d.each(["from","to"],function(){if(!n(e[this]))throw s.Error("E0010",t,this,i)})},M=function(e,t){return R(e,t,function(e){return k(e)},"a plain object")},V=function(e,t){return R(e,t,function(e){return"string"==typeof e},"a string")},F={setup:function(){}},L={validateConfig:function(e){V(e,"css")},setup:function(){}},H={top:{my:"bottom center",at:"top center"},bottom:{my:"top center",at:"bottom center"},right:{my:"left center",at:"right center"},left:{my:"right center",at:"left center"}},z={validateConfig:function(e){M(e,"slide")},setup:function(e,t){var n=h.locate(e);if("slide"!==t.type){var i="slideIn"===t.type?t.from:t.to;i.position=u({of:a},H[t.direction]),le(e,i)}this._setUpConfig(n,t.from),this._setUpConfig(n,t.to),h.clearCache(e)},_setUpConfig:function(e,t){t.left="left"in t?t.left:"+=0",t.top="top"in t?t.top:"+=0",this._initNewPosition(e,t)},_initNewPosition:function(e,t){var n={left:t.left,top:t.top};delete t.left,delete t.top;var i=this._getRelativeValue(n.left);void 0!==i?n.left=i+e.left:t.left=0,i=this._getRelativeValue(n.top),void 0!==i?n.top=i+e.top:t.top=0,t[E]=h.getTranslateCss({x:n.left,y:n.top})},_getRelativeValue:function(e){var t;if("string"==typeof e&&(t=I.exec(e)))return parseInt(t[1]+"1")*t[2]}},N={setup:function(e,t){var n,i=t.from,o=k(i)?t.skipElementInitialStyles?0:e.css("opacity"):String(i);switch(t.type){case"fadeIn":n=1;break;case"fadeOut":n=0;break;default:n=String(t.to)}t.from={visibility:"visible",opacity:o},t.to={opacity:n}}},$={validateConfig:function(e){M(e,"pop")},setup:function(e,t){var n=t.from,i=t.to,o="opacity"in n?n.opacity:e.css("opacity"),a="opacity"in i?i.opacity:1,r="scale"in n?n.scale:0,s="scale"in i?i.scale:1;t.from={opacity:o};var l=h.getTranslate(e);t.from[E]=this._getCssTransform(l,r),t.to={opacity:a},t.to[E]=this._getCssTransform(l,s)},_getCssTransform:function(e,t){return h.getTranslateCss(e)+"scale("+t+")"}},W={custom:F,slide:z,slideIn:z,slideOut:z,fade:N,fadeIn:N,fadeOut:N,pop:$,css:L},G=function(e){var t=W[e.type];if(!t)throw s.Error("E0011",e.type);return t},j={type:"custom",from:{},to:{},duration:400,start:S,complete:S,easing:"ease",delay:0},q={duration:400,easing:"ease",delay:0},K=function(){var e=this,t=e.element,n=e.config;if(le(t,n.from),le(t,n.to),e.configurator.setup(t,n),t.data(T,e),de.off&&(n.duration=0,n.delay=0),e.strategy.initAnimation(t,n),n.start){var i=l(t);n.start.apply(this,[i,n])}},U=function(e){var t=e.element,n=e.config;if(t.removeData(T),n.complete){var i=l(t);n.complete.apply(this,[i,n])}e.deferred.resolveWith(this,[t,n])},Y=function(){var e=this,t=e.element,n=e.config;return e.isStarted=!0,e.strategy.animate(t,n).done(function(){U(e)}).fail(function(){e.deferred.rejectWith(this,[t,n])})},X=function(e){var t=this,n=t.element,i=t.config;clearTimeout(t.startTimeout),t.isStarted||t.start(),t.strategy.stop(n,i,e)},Z=v.addNamespace(m,"dxFXStartAnimation"),Q=function(e){r.off(e.element,Z),r.on(e.element,Z,function(){de.stop(e.element)}),e.deferred.always(function(){r.off(e.element,Z)})},J=function(e,t){var n="css"===t.type?q:j,i=u(!0,{},n,t),a=G(i),r=P(i),s={element:o(e),config:i,configurator:a,strategy:r,isSynchronous:r.isSynchronous,setup:K,start:Y,stop:X,deferred:new x};return C(a.validateConfig)&&a.validateConfig(i),Q(s),s},ee=function(e,t){var n=o(e);if(!n.length)return(new x).resolve().promise();var i=J(n,t);return te(n,i),i.deferred.promise()},te=function(e,t){var n=ne(e);ie(e,n),n.push(t),ae(e)||re(e,n)},ne=function(e){return e.data(D)||[]},ie=function(e,t){e.data(D,t)},oe=function(e){e.removeData(D)},ae=function(e){return!!e.data(T)},re=function e(t,n){if(n=ne(t),n.length){var i=n.shift();0===n.length&&oe(t),se(i).done(function(){ae(t)||e(t)})}},se=function(e){return e.setup(),de.off||e.isSynchronous?e.start():e.startTimeout=setTimeout(function(){e.start()}),e.deferred.promise()},le=function(e,t){if(t&&t.position){var n=o(a),i=0,r=0,s=_.calculate(e,t.position),l=e.offset(),c=e.position();c.top>l.top&&(r=n.scrollTop()),c.left>l.left&&(i=n.scrollLeft()),u(t,{left:s.h.location-l.left+c.left-i,top:s.v.location-l.top+c.top-r}),delete t.position}},ue=function(e,t){d.each(t,function(t,n){try{e.css(t,c.isFunction(n)?n():n)}catch(e){}})},ce=function(e,t){var n=o(e),i=ne(n);d.each(i,function(e,t){t.config.delay=0,t.config.duration=0,t.isSynchronous=!0}),ae(n)||re(n,i);var a=n.data(T);a&&a.stop(t),n.removeData(T),oe(n)},de={off:!1,animationTypes:W,animate:ee,createAnimation:J,isAnimating:ae,stop:ce,_simulatedTransitionEndDelay:100};e.exports=de},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(5),s=i(r),l=n(15),u=i(l),c=n(25),d=i(c),h=n(4),p=n(1),f=n(13),g=n(3),_=n(17),m=i(_),v=n(14),y=i(v),b=n(7),x="dxDataGrid",w=u.default.inherit({_endUpdateCore:function(){},ctor:function(e){var t=this;t._updateLockCount=0,t.component=e,t._actions={},t._actionConfigs={},(0,g.each)(this.callbackNames()||[],function(e,n){var i=t.callbackFlags(n)||{};i.unique=!0,i.syncStrategy=!0,t[this]=(0,d.default)(i)})},init:function(){},callbackNames:function(){},callbackFlags:function(){},publicMethods:function(){},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){this._updateLockCount>0&&(this._updateLockCount--,this._updateLockCount||this._endUpdateCore())},option:function(e){var t=this.component,n=t._optionCache;return 1===arguments.length&&n?(e in n||(n[e]=t.option(e)),n[e]):t.option.apply(t,arguments)},localize:function(e){var t=this.component._optionCache;return t?(e in t||(t[e]=y.default.format(e)),t[e]):y.default.format(e)},on:function(){return this.component.on.apply(this.component,arguments)},off:function(){return this.component.off.apply(this.component,arguments)},optionChanged:function(e){e.name in this._actions&&(this.createAction(e.name,this._actionConfigs[e.name]),e.handled=!0)},getAction:function(e){return this._actions[e]},setAria:function(e,t,n){var i=n.get(0),o="role"!==e&&"id"!==e?"aria-":"";i.setAttribute?i.setAttribute(o+e,t):n.attr(o+e,t)},_createComponent:function(){return this.component._createComponent.apply(this.component,arguments)},getController:function(e){return this.component._controllers[e]},createAction:function(e,t){if((0,p.isFunction)(e)){var n=this.component._createAction(e.bind(this),t);return function(e){n({event:e})}}this._actions[e]=this.component._createActionByOption(e,t),this._actionConfigs[e]=t},executeAction:function(e,t){var n=this._actions[e];return n&&n(t)},dispose:function(){var e=this;(0,g.each)(e.callbackNames()||[],function(){e[this].empty()})},addWidgetPrefix:function(e){var t=this.component.NAME;return"dx-"+t.slice(2).toLowerCase()+(e?"-"+e:"")},getWidgetContainerClass:function(){var e=this.component.NAME===x?null:"container";return this.addWidgetPrefix(e)}}),C=w,k=C.inherit({getView:function(e){return this.component._views[e]},getViews:function(){return this.component._views}}),S=w.inherit({_isReady:function(){return this.component.isReady()},_endUpdateCore:function(){this.callBase(),!this._isReady()&&this._requireReady&&(this._requireRender=!1,this.component._requireResize=!1),this._requireRender&&(this._requireRender=!1,this.render(this._$parent))},_invalidate:function(e,t){this._requireRender=!0,this.component._requireResize=(0,b.hasWindow)()&&(this.component._requireResize||e),this._requireReady=this._requireReady||t},_renderCore:function(){},_resizeCore:function(){},_afterRender:function(){},_parentElement:function(){return this._$parent},ctor:function(e){this.callBase(e),this.renderCompleted=(0,d.default)(),this.resizeCompleted=(0,d.default)()},element:function(){return this._$element},getElementHeight:function(){var e=this.element();if(!e)return 0;var t=parseFloat(e.css("marginTop"))||0,n=parseFloat(e.css("marginBottom"))||0,i=e.get(0).offsetHeight;return i+t+n},isVisible:function(){return!0},getTemplate:function(e){return this.component._getTemplate(e)},render:function(e,t){var n=this._$element,i=this.isVisible();(n||e)&&(this._requireReady=!1,n||(n=this._$element=(0,a.default)("
").appendTo(e),this._$parent=e),n.toggleClass("dx-hidden",!i),i&&(this.component._optionCache={},this._renderCore(t),this.component._optionCache=void 0,this._afterRender(e),this.renderCompleted.fire(t)))},resize:function(){this.isResizing=!0,this._resizeCore(),this.resizeCompleted.fire(),this.isResizing=!1},focus:function(){s.default.trigger(this.element(),"focus")}}),I=1e6,T=function(e,t){var n=t.modules,i=t.modulesOrder,o=t.controllerTypes||{},a=t.viewTypes||{};t.controllerTypes||(i&&n.sort(function(e,t){var n=(0,f.inArray)(e.name,i),o=(0,f.inArray)(t.name,i);return n<0&&(n=I),o<0&&(o=I),n-o}),(0,g.each)(n,function(){var e=this.controllers,t=this.name,n=this.views;e&&(0,g.each)(e,function(e,n){if(o[e])throw m.default.Error("E1001",t,e);if(!(n&&n.subclassOf&&n.subclassOf(C)))throw n.subclassOf(C),m.default.Error("E1002",t,e);o[e]=n}),n&&(0,g.each)(n,function(e,n){if(a[e])throw m.default.Error("E1003",t,e);if(!(n&&n.subclassOf&&n.subclassOf(S)))throw m.default.Error("E1004",t,e);a[e]=n})}),(0,g.each)(n,function(){var e=this.extenders;e&&(e.controllers&&(0,g.each)(e.controllers,function(e,t){o[e]&&(o[e]=o[e].inherit(t))}),e.views&&(0,g.each)(e.views,function(e,t){a[e]&&(a[e]=a[e].inherit(t))}))}),t.controllerTypes=o,t.viewTypes=a);var r=function(e,t,n){var i=n.publicMethods();i&&(0,g.each)(i,function(i,o){if(!n[o])throw m.default.Error("E1006",t,o);if(e[o])throw m.default.Error("E1005",o);e[o]=function(){return n[o].apply(n,arguments)}})},s=function(t){var n={};return(0,g.each)(t,function(t,i){var o=new i(e);o.name=t,r(e,t,o),n[t]=o}),n};e._controllers=s(o),e._views=s(a)},D=function(e,t,n){n=n||[],e._controllers&&(0,g.each)(e._controllers,function(){this[t]&&this[t].apply(this,n)}),e._views&&(0,g.each)(e._views,function(){this[t]&&this[t].apply(this,n)})};e.exports={modules:[],View:S,ViewController:k,Controller:C,registerModule:function(e,t){for(var n=this.modules,i=0;ie.length)&&(t=e.length);for(var n=0,i=new Array(t);ne?t:e}},avg:{seed:[0,0],step:function(e,t){return[e[0]+t,e[1]+1]},finalize:function(e){return e[1]?e[0]/e[1]:NaN}}},D=function(){var e,t=0,n=function(){0===t&&(e=new w.Deferred),t++},i=function(){t--,t<1&&e.resolve()},o=function(){var n=0===t?(new w.Deferred).resolve():e;return n.promise()},a=function(){t=0,e&&e.resolve()};return{obtain:n,release:i,promise:o,reset:a}}(),E=function(e,t,n){if(Array.isArray(e)){for(var i,o=(0,b.map)(t,function(e,t){return t}),a=0;a>2,(3&o)<<4|a>>4,isNaN(a)?64:(15&a)<<2|r>>6,isNaN(r)?64:63&r],t).join("")}return n},B=function(e){var t,n,i=[];for(n=0;n>6),128+(63&t)):t<65536?i.push(224+(t>>12),128+(t>>6&63),128+(63&t)):t<2097152&&i.push(240+(t>>18),128+(t>>12&63),128+(t>>6&63),128+(63&t));return i},P=function(e){return"!"===e[0]&&Array.isArray(e[1])},R=function(e){return"and"===e||"or"===e},M=function(e){var t=e[0],n=e[1];return!!Array.isArray(t)||!(!g.default.isFunction(t)||!(Array.isArray(n)||g.default.isFunction(n)||R(n)))},V=function(){var e=new w.Deferred;return e.resolve.apply(e,arguments).promise()},F=function(){var e=new w.Deferred;return e.reject.apply(e,arguments).promise()},L={XHR_ERROR_UNLOAD:C,normalizeBinaryCriterion:k,normalizeSortingInfo:S,errorMessageFromXhr:I,aggregators:T,keysEqual:E,throttleChanges:p,trivialPromise:V,rejectedPromise:F,isDisjunctiveOperator:c,isConjunctiveOperator:d,processRequestResultLock:D,isUnaryOperation:P,isGroupCriterion:M,base64_encode:O};e.exports=L},function(e,t,n){var i=n(154),o=n(468),a={array:i,remote:o},r=function(){var e=Array.isArray(arguments[0])?"array":"remote";return a[e].apply(this,arguments)};e.exports=r,e.exports.queryImpl=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(13),a=n(10),r=n(4),s=n(63),l=i(s),u=n(7),c=i(u),d=n(16),h=i(d),p=n(83),f=i(p),g=c.default.getNavigator(),_=g.maxTouchPoints,m=g.msMaxTouchPoints,v=g.pointerEnabled,y=c.default.hasProperty.bind(c.default),b={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MsTransitionEnd",transition:"transitionend"},x=function(e){return!!f.default.styleProp(e)},w=function(){var e=h.default.real(),t=e.platform,n=e.version,i=e.mac,a=n&&n[0]<4&&"android"===t,r=!a&&(0,o.inArray)(t,["ios","android","win"])>-1||i;return r},C=function(e){if("text"===e)return!0;var t=(0,a.createElement)("input");try{return t.setAttribute("type",e),t.value="wrongValue",!t.value}catch(e){return!1}},k=function(e,t){return(e("ontouchstart")||!!t)&&!e("callPhantom")},S=function(e,t){var n=(0,r.ensureDefined)(t,!0),i=(0,r.ensureDefined)(t,!1);return e("PointerEvent")&&n||i},I=k(y,_),T=S(y,v),D=!!_||!!m;t.touchEvents=I,t.pointerEvents=T,t.touch=I||T&&D,t.transition=(0,l.default)(function(){return x("transition")}),t.transitionEndEventName=(0,l.default)(function(){return b[f.default.styleProp("transition")]}),t.animation=(0,l.default)(function(){return x("animation")}),t.nativeScrolling=w(),t.styleProp=f.default.styleProp,t.stylePropPrefix=f.default.stylePropPrefix,t.supportProp=x,t.inputType=C},function(e,t,n){function i(e){"@babel/helpers - typeof";return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(1),a=function(){var e=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")];return function(t){return String(t).replace(e[0],"&").replace(e[1],""").replace(e[2],"'").replace(e[3],"<").replace(e[4],">")}}(),r=function(e){switch(i(e)){case"string":return e.split(/\s+/,4);case"object":return[e.x||e.h||e.left,e.y||e.v||e.top,e.x||e.h||e.right,e.y||e.v||e.bottom];case"number":return[e];default:return e}},s=function(e){var t=r(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10),o=parseInt(t&&t[2],10),a=parseInt(t&&t[3],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),isFinite(o)||(o=n),isFinite(a)||(a=i),{top:i,right:o,bottom:a,left:n}},l=function(){var e,t,n,i=arguments[0],a=[].slice.call(arguments).slice(1);if(o.isFunction(i))return i.apply(this,a);for(var r=0;r=0&&(e="$".replace("$","$$").length,n=n.replace("$",1===e?"$$$$":"$$")),i=i.replace(t,n);return i},u=function(){var e=function(e){return(e+"").replace(/([+*?.[^\]$(){}><|=!:])/g,"\\$1")};return function(t,n,i){return t.replace(new RegExp("("+e(n)+")","gi"),i)}}(),c=function(){var e=/\s/g;return function(t){return!t||!t.replace(e,"")}}();t.encodeHtml=a,t.quadToObject=s,t.format=l,t.replaceAll=u,t.isEmpty=c},function(e,t,n){function i(){this._counter=-1,this._deferreds={}}function o(e){return"pending"===e.state()}function a(e,t){function n(){var t={};return p.each(["useDefaultSearch","key","load","loadMode","cacheRawData","byKey","lookup","totalCount","insert","update","remove"],function(){t[this]=e[this],delete e[this]}),new b(t)}function i(e){var t=e.type;return delete e.type,v.create(t,e)}function o(e){ return new b({load:function(){return f.sendRequest({url:e,dataType:"json"})},loadMode:t&&t.fromUrlLoadMode})}var a;return"string"==typeof e&&(e={paginate:!1,store:o(e)}),void 0===e&&(e=[]),e=Array.isArray(e)||e instanceof v?{store:e}:d({},e),void 0===e.store&&(e.store=[]),a=e.store,"load"in e?a=n():Array.isArray(a)?a=new y(a):g.isPlainObject(a)&&(a=i(d({},a))),e.store=a,e}function r(e){switch(e.length){case 0:return;case 1:return e[0]}return[].slice.call(e)}function s(e){return function(){var t=r(arguments);return void 0===t?this._storeLoadOptions[e]:void(this._storeLoadOptions[e]=t)}}function l(e,t,n){function i(e,n){return Array.isArray(e)?n?o(e,n):p.map(e,t):e}function o(e,t){return p.map(e,function(e){var n={key:e.key,items:i(e.items,t-1)};return"aggregates"in e&&(n.aggregates=e.aggregates),n})}return i(e,n?_.normalizeSortingInfo(n).length:0)}function u(e,t){return e&&!Array.isArray(e)&&e.data&&(t=e,e=e.data),Array.isArray(e)||(e=[e]),{data:e,extra:t}}var c=n(15),d=n(0).extend,h=n(4),p=n(3),f=n(57),g=n(1),_=n(41),m=n(135),v=n(91),y=n(69),b=n(138),x=n(81),w=n(36).errors,C=n(13),k=n(225),S=n(6),I=S.when,T=S.Deferred,D=g.isString,E=g.isNumeric,A=g.isBoolean,O=g.isDefined,B="canceled";i.prototype.constructor=i,i.prototype.add=function(e){return this._counter+=1,this._deferreds[this._counter]=e,this._counter},i.prototype.remove=function(e){return delete this._deferreds[e]},i.prototype.cancel=function(e){return e in this._deferreds&&(this._deferreds[e].reject(B),!0)},i.prototype.cancelAll=function(){for(;this._counter>-1;)this.cancel(this._counter),this._counter--};var P=c.inherit({ctor:function(e){var t=this,n=this;e=a(e);var o=0!==e.pushAggregationTimeout?_.throttleChanges(this._onPush,function(){return void 0===e.pushAggregationTimeout?5*n._changedTime:e.pushAggregationTimeout}):this._onPush;this._changedTime=0,this._onPushHandler=function(e){t._aggregationTimeoutId=o.call(t,e)},this._store=e.store,this._store.on("push",this._onPushHandler),this._storeLoadOptions=this._extractLoadOptions(e),this._mapFunc=e.map,this._postProcessFunc=e.postProcess,this._pageIndex=void 0!==e.pageIndex?e.pageIndex:0,this._pageSize=void 0!==e.pageSize?e.pageSize:20,this._loadingCount=0,this._loadQueue=this._createLoadQueue(),this._searchValue="searchValue"in e?e.searchValue:null,this._searchOperation=e.searchOperation||"contains",this._searchExpr=e.searchExpr,this._paginate=e.paginate,this._reshapeOnPush=!!O(e.reshapeOnPush)&&e.reshapeOnPush,p.each(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],function(t,i){i in e&&n.on(i.substr(2,1).toLowerCase()+i.substr(3),e[i])}),this._operationManager=new i,this._init()},_init:function(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,O(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose:function(){this._store.off("push",this._onPushHandler),this._disposeEvents(),clearTimeout(this._aggregationTimeoutId),delete this._store,this._delayedLoadTask&&this._delayedLoadTask.abort(),this._operationManager.cancelAll(),this._disposed=!0},_extractLoadOptions:function(e){var t={},n=["sort","filter","select","group","requireTotalCount"],i=this._store._customLoadOptions();return i&&(n=n.concat(i)),p.each(n,function(){t[this]=e[this]}),t},loadOptions:function(){return this._storeLoadOptions},items:function(){return this._items},pageIndex:function(e){return E(e)?(this._pageIndex=e,void(this._isLastPage=!this._paginate)):this._pageIndex},paginate:function(e){return A(e)?void(this._paginate!==e&&(this._paginate=e,this.pageIndex(0))):this._paginate},pageSize:function(e){return E(e)?void(this._pageSize=e):this._pageSize},isLastPage:function(){return this._isLastPage},sort:s("sort"),filter:function(){var e=r(arguments);return void 0===e?this._storeLoadOptions.filter:(this._storeLoadOptions.filter=e,void this.pageIndex(0))},group:s("group"),select:s("select"),requireTotalCount:function(e){return A(e)?void(this._storeLoadOptions.requireTotalCount=e):this._storeLoadOptions.requireTotalCount},searchValue:function(e){return arguments.length<1?this._searchValue:(this._searchValue=e,void this.pageIndex(0))},searchOperation:function(e){return D(e)?(this._searchOperation=e,void this.pageIndex(0)):this._searchOperation},searchExpr:function(e){var t=arguments.length;return 0===t?this._searchExpr:(t>1&&(e=[].slice.call(arguments)),this._searchExpr=e,void this.pageIndex(0))},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},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_createLoadQueue:function(){return k.create()},_changeLoadingCount:function(e){var t=this.isLoading();this._loadingCount+=e;var n=this.isLoading();t^n&&this.fireEvent("loadingChanged",[n])},_scheduleLoadCallbacks:function(e){var t=this;t.beginLoading(),e.always(function(){t.endLoading()})},_scheduleFailCallbacks:function(e){var t=this;e.fail(function(){arguments[0]!==B&&t.fireEvent("loadError",arguments)})},_fireChanged:function(e){var t=new Date;this.fireEvent("changed",e),this._changedTime=new Date-t},_scheduleChangedCallbacks:function(e){var t=this;e.done(function(){t._fireChanged()})},loadSingle:function(e,t){function n(){return r instanceof b&&!r._byKeyViaLoad()}var i=this,o=new T,a=this.key(),r=this._store,s=this._createStoreLoadOptions(),l=function(e){!O(e)||C.isEmpty(e)?o.reject(new w.Error("E4009")):(Array.isArray(e)||(e=[e]),o.resolve(i._applyMapFunction(e)[0]))};return this._scheduleFailCallbacks(o),arguments.length<2&&(t=e,e=a),delete s.skip,delete s.group,delete s.refresh,delete s.pageIndex,delete s.searchString,function(){return e===a||n()?r.byKey(t,s):(s.take=1,s.filter=s.filter?[s.filter,[e,t]]:[e,t],r.load(s))}().fail(o.reject).done(l),o.promise()},load:function(){function e(){if(!t._disposed&&o(n))return t._loadFromStore(i,n)}var t=this,n=new T;this._scheduleLoadCallbacks(n),this._scheduleFailCallbacks(n),this._scheduleChangedCallbacks(n);var i=this._createLoadOperation(n);return this.fireEvent("customizeStoreLoadOptions",[i]),this._loadQueue.add(function(){return"number"==typeof i.delay?t._delayedLoadTask=h.executeAsync(e,i.delay):e(),n.promise()}),n.promise({operationId:i.operationId})},_onPush:function(e){var t=this;if(this._reshapeOnPush)this.load();else{this.fireEvent("changing",[{changes:e}]);var n=this.group(),i=this.items(),o=0,a=this.paginate()||n?e.filter(function(e){return"update"===e.type}):e;n&&(o=Array.isArray(n)?n.length:1),this._mapFunc&&a.forEach(function(e){"insert"===e.type&&(e.data=t._mapFunc(e.data))}),m.applyBatch(this.store(),i,a,o,!0),this._fireChanged([{changes:e}])}},_createLoadOperation:function(e){var t=this._operationManager.add(e),n=this._createStoreLoadOptions();return e.always(function(){this._operationManager.remove(t)}.bind(this)),{operationId:t,storeLoadOptions:n}},reload:function(){var e=this.store();return e instanceof b&&e.clearRawDataCache(),this._init(),this.load()},cancel:function(e){return this._operationManager.cancel(e)},cancelAll:function(){return this._operationManager.cancelAll()},_addSearchOptions:function(e){this._disposed||(this.store()._useDefaultSearch?this._addSearchFilter(e):(e.searchOperation=this._searchOperation,e.searchValue=this._searchValue,e.searchExpr=this._searchExpr))},_createStoreLoadOptions:function(){var e=d({},this._storeLoadOptions);return this._addSearchOptions(e),this._paginate&&this._pageSize&&(e.skip=this._pageIndex*this._pageSize,e.take=this._pageSize),e.userData=this._userData,e},_addSearchFilter:function(e){var t=this._searchValue,n=this._searchOperation,i=this._searchExpr,o=[];t&&(i||(i="this"),Array.isArray(i)||(i=[i]),p.each(i,function(e,i){o.length&&o.push("or"),o.push([i,n,t])}),e.filter?e.filter=[o,e.filter]:e.filter=o)},_loadFromStore:function(e,t){function n(n,a){function r(){var o=d(u(n,a),e);i.fireEvent("customizeLoadResult",[o]),I(o.data).done(function(e){o.data=e,i._processStoreLoadResult(o,t)}).fail(t.reject)}i._disposed||o(t)&&r()}var i=this;return e.data?(new T).resolve(e.data).done(n):this.store().load(e.storeLoadOptions).done(n).fail(t.reject)},_processStoreLoadResult:function(e,t){function n(){return o._isLoaded=!0,o._totalCount=isFinite(r.totalCount)?r.totalCount:-1,t.resolve(a,r)}function i(){o.store().totalCount(s).done(function(e){r.totalCount=e,n()}).fail(t.reject)}var o=this,a=e.data,r=e.extra,s=e.storeLoadOptions;o._disposed||(a=o._applyPostProcessFunction(o._applyMapFunction(a)),g.isPlainObject(r)||(r={}),o._items=a,(!a.length||!o._paginate||o._pageSize&&a.length4)switch(e){case"cancel":o="after";break;case"done":o="after"}else"android"===n&&(o="center");return{toolbar:i,location:o}},K=b.inherit({_getDefaultOptions:function(){return h(this.callBase(),{fullScreen:!1,title:"",showTitle:!0,titleTemplate:"title",onTitleRendered:null,dragEnabled:!1,toolbarItems:[],showCloseButton:!1,bottomTemplate:"bottom",useDefaultToolbarButtons:!1,useFlatToolbarButtons:!1,autoResizeEnabled:!0})},_defaultOptionsRules:function(){var e=y.current();return this.callBase().concat([{device:{platform:"ios"},options:{animation:this._iosAnimation}},{device:{platform:"android"},options:{animation:this._androidAnimation}},{device:{platform:"generic"},options:{showCloseButton:!0}},{device:function(e){return"generic"===_.real().platform&&"generic"===e.platform},options:{dragEnabled:!0}},{device:function(){return"desktop"===_.real().deviceType&&!_.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return y.isMaterial(e)},options:{useDefaultToolbarButtons:!0,useFlatToolbarButtons:!0}}])},_iosAnimation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom"}},to:{position:{my:"center",at:"center"}}},hide:{type:"slide",duration:400,from:{opacity:1,position:{my:"center",at:"center"}},to:{opacity:1,position:{my:"top",at:"bottom"}}}},_androidAnimation:function(){var e={show:{type:"slide",duration:300,from:{top:"30%",opacity:0},to:{top:0,opacity:1}},hide:{type:"slide",duration:300,from:{top:0,opacity:1},to:{top:"30%",opacity:0}}},t={show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}};return this.option("fullScreen")?e:t},_init:function(){this.callBase(),this.$element().addClass(S),this._wrapper().addClass(I),this._$popupContent=this._$content.wrapInner(i("
").addClass(A)).children().eq(0)},_render:function(){var e=this.option("fullScreen");this._toggleFullScreenClass(e),this.callBase()},_toggleFullScreenClass:function(e){this._$content.toggleClass(T,e).toggleClass(E,!e)},_initTemplates:function(){this.callBase(),this._defaultTemplates.title=new x(this),this._defaultTemplates.bottom=new x(this)},_renderContentImpl:function(){this._renderTitle(),this.callBase(),this._renderBottom()},_renderTitle:function(){var e=this._getToolbarItems("top"),t=this.option("title"),n=this.option("showTitle");if(n&&t&&e.unshift({location:_.current().ios?"center":"before",text:t}),n||e.length>0){this._$title&&this._$title.remove();var o=i("
").addClass(B).insertBefore(this.$content());this._$title=this._renderTemplateByType("titleTemplate",e,o).addClass(B),this._renderDrag(),this._executeTitleRenderAction(this._$title)}else this._$title&&this._$title.detach()},_renderTemplateByType:function(e,t,n,o){var a=this._getTemplateByOption(e),r=a instanceof x;if(r){var s=h({},this.option("integrationOptions"),{skipTemplates:["content","title"]}),u=h(o,{items:t,rtlEnabled:this.option("rtlEnabled"),useDefaultButtons:this.option("useDefaultToolbarButtons"),useFlatButtons:this.option("useFlatToolbarButtons"),integrationOptions:s});this._getTemplate("dx-polymorph-widget").render({container:n,model:{widget:"dxToolbarBase",options:u}});var c=n.children("div");return n.replaceWith(c),c}var d=i(a.render({container:l(n)}));return d.hasClass(M)&&(n.replaceWith(d),n=d),n},_executeTitleRenderAction:function(e){this._getTitleRenderAction()({titleElement:l(e)})},_getTitleRenderAction:function(){return this._titleRenderAction||this._createTitleRenderAction()},_createTitleRenderAction:function(){return this._titleRenderAction=this._createActionByOption("onTitleRendered",{element:this.element(),excludeValidators:["disabled","readOnly"]})},_getCloseButton:function(){return{toolbar:"top",location:"after",template:this._getCloseButtonRenderer()}},_getCloseButtonRenderer:function(){return function(e,t,n){var o=i("
").addClass(P);this._createComponent(o,v,{icon:"close",onClick:this._createToolbarItemAction(void 0),integrationOptions:{}}),i(n).append(o)}.bind(this)},_getToolbarItems:function(e){var t=this.option("toolbarItems"),n=[];this._toolbarItemClasses=[];var i=_.current().platform,o=0;return u(t,function(t,a){var r=c(a.shortcut),s=r?q(a.shortcut):a;if(r&&"ios"===i&&o<2&&(s.toolbar="top",o++),s.toolbar=a.toolbar||s.toolbar||"top",s&&s.toolbar===e){r&&h(s,{location:a.location},this._getToolbarItemByAlias(a));var l="win"===i||"generic"===i;"done"===a.shortcut&&l||"cancel"===a.shortcut&&!l?n.unshift(s):n.push(s)}}.bind(this)),"top"===e&&this.option("showCloseButton")&&this.option("showTitle")&&n.push(this._getCloseButton()),n},_getLocalizationKey:function(e){return"done"===e.toLowerCase()?"OK":r(e,!0)},_getToolbarItemByAlias:function(e){var t=this,n=e.shortcut;if(d(n,L)<0)return!1;var o=h({text:g.format(this._getLocalizationKey(n)),onClick:this._createToolbarItemAction(e.onClick),integrationOptions:{},type:t.option("useDefaultToolbarButtons")?H:z,stylingMode:t.option("useFlatToolbarButtons")?N:$},e.options||{}),a=S+"-"+n;return this._toolbarItemClasses.push(a),{template:function(e,n,r){var s=i("
").addClass(a).appendTo(r);t._createComponent(s,v,o)}}},_createToolbarItemAction:function(e){return this._createAction(e,{afterExecute:function(e){e.component.hide()}})},_renderBottom:function(){var e=this._getToolbarItems("bottom");if(e.length){this._$bottom&&this._$bottom.remove();var t=i("
").addClass(R).insertAfter(this.$content());this._$bottom=this._renderTemplateByType("bottomTemplate",e,t,{compactMode:!0}).addClass(R),this._toggleClasses()}else this._$bottom&&this._$bottom.detach()},_toggleClasses:function(){var e=L;u(e,function(e,t){var n=S+"-"+t;d(n,this._toolbarItemClasses)>=0?(this._wrapper().addClass(n+"-visible"),this._$bottom.addClass(n)):(this._wrapper().removeClass(n+"-visible"),this._$bottom.removeClass(n))}.bind(this))},_getDragTarget:function(){return this.topToolbar()},_renderGeometryImpl:function(e){e||this._resetContentHeight(),this.callBase.apply(this,arguments),this._setContentHeight()},_resetContentHeight:function(){this._$popupContent.css({height:"auto",maxHeight:"none"})},_renderDrag:function(){this.callBase(),this._$content.toggleClass(O,this.option("dragEnabled"))},_renderResize:function(){this.callBase(),this._resizable.option("onResize",function(){this._setContentHeight(),this._actions.onResize(arguments)}.bind(this))},_setContentHeight:function(){(this.option("forceApplyBindings")||s)();var e=this.overlayContent().get(0),t=this._chooseHeightStrategy(e);this.$content().css(this._getHeightCssStyles(t,e)),this._setHeightClasses(this.overlayContent(),t)},_heightStrategyChangeOffset:function(e,t){return e===j.flex?-t:0},_chooseHeightStrategy:function(e){var t="auto"===e.style.width||""===e.style.width,n=j.static;return this._isAutoHeight()&&this.option("autoResizeEnabled")&&(t||G?W||(n=j.inherit):n=j.flex),n},_getHeightCssStyles:function(e,t){var n={},o=this._getOptionValue("maxHeight",t),a=this._getOptionValue("minHeight",t),r=this._splitPopupHeight(),s=r.header+r.footer+r.contentVerticalOffsets+r.popupVerticalOffsets+this._heightStrategyChangeOffset(e,r.popupVerticalPaddings);if(e===j.static){if(!this._isAutoHeight()||o||a){var l=this.option("fullScreen")?Math.min(t.getBoundingClientRect().height,k.getWindow().innerHeight):t.getBoundingClientRect().height,u=l-s;n={height:Math.max(0,u),minHeight:"auto",maxHeight:"auto"}}}else{var c=i(this._getContainer()).get(0),d=C.addOffsetToMaxHeight(o,-s,c),h=C.addOffsetToMinHeight(a,-s,c);n={height:"auto",minHeight:h,maxHeight:d}}return n},_setHeightClasses:function(e,t){var n="";for(var i in j)j[i]!==t&&(n+=" "+j[i]);e.removeClass(n).addClass(t)},_isAutoHeight:function(){return"auto"===this.overlayContent().get(0).style.height},_splitPopupHeight:function(){var e=this.topToolbar(),t=this.bottomToolbar();return{header:C.getVisibleHeight(e&&e.get(0)),footer:C.getVisibleHeight(t&&t.get(0)),contentVerticalOffsets:C.getVerticalOffsets(this.overlayContent().get(0),!0),popupVerticalOffsets:C.getVerticalOffsets(this.$content().get(0),!0),popupVerticalPaddings:C.getVerticalOffsets(this.$content().get(0),!1)}},_useFixedPosition:function(){return this.callBase()||this.option("fullScreen")},_toggleSafariFullScreen:function(e){var t=this._useFixedPosition()&&e&&!this._isShown;t?this._bodyScrollTop=e?o.pageYOffset:void 0:this._toggleSafariScrolling(!e)},_renderDimensions:function(){this.option("fullScreen")?this._$content.css({width:"100%",height:"100%"}):this.callBase.apply(this,arguments),k.hasWindow()&&this._renderFullscreenWidthClass()},_renderFullscreenWidthClass:function(){this.overlayContent().toggleClass(D,this.overlayContent().outerWidth()===i(o).width())},_renderShadingDimensions:function(){this.option("fullScreen")?this._wrapper().css({width:"100%",height:"100%"}):this.callBase.apply(this,arguments)},refreshPosition:function(){this._renderPosition()},_renderPosition:function(){return this.option("fullScreen")?void a.move(this._$content,{top:0,left:0}):((this.option("forceApplyBindings")||s)(),this.callBase.apply(this,arguments))},_optionChanged:function(e){switch(e.name){case"showTitle":case"title":case"titleTemplate":this._renderTitle(),this._renderGeometry();break;case"bottomTemplate":this._renderBottom(),this._renderGeometry();break;case"onTitleRendered":this._createTitleRenderAction(e.value);break;case"toolbarItems":case"useDefaultToolbarButtons":case"useFlatToolbarButtons":var t=!e.fullName.match(/^toolbarItems((\[\d+\])(\.(options|visible).*)?)?$/);this._renderTitle(),this._renderBottom(),t&&this._renderGeometry();break;case"dragEnabled":this._renderDrag();break;case"autoResizeEnabled":this._renderGeometry(),w.triggerResizeEvent(this._$content);break;case"fullScreen":this._toggleFullScreenClass(e.value),this._toggleSafariFullScreen(e.value),this._renderGeometry(),w.triggerResizeEvent(this._$content);break;case"showCloseButton":this._renderTitle();break;default:this.callBase(e)}},bottomToolbar:function(){return this._$bottom},topToolbar:function(){return this._$title},$content:function(){return this._$popupContent},content:function(){return l(this._$popupContent)},overlayContent:function(){return this._$content}});m("dxPopup",K),e.exports=K},function(e,t,n){var i=n(10),o=n(53),a=n(7),r=n(63),s=[],l=function(){return"complete"===i.getReadyState()||"loading"!==i.getReadyState()&&!i.getDocumentElement().doScroll},u=r(function(){var e=i.listen(i.getDocument(),"DOMContentLoaded",function(){c.fire(),e()})}),c={add:function(e){var t=a.hasWindow();t&&l()?e():(s.push(e),t&&u())},fire:function(){s.forEach(function(e){return e()}),s=[]}};e.exports=o(c)},function(e,t,n){var i=n(1),o=n(87),a=function(){function e(){}return function(t){return e.prototype=t,new e}}(),r=function(e,t){var n,o,a=[];for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.push(n);for(a.sort(function(e,t){var n=i.isNumeric(e),o=i.isNumeric(t);return n&&o?e-t:n&&!o?-1:!n&&o?1:et?1:0}),o=0;o").addClass(y).html((0,i.encodeHtml)(t.message)).appendTo(a);var r=this._getValidationMessageTarget();this._validationMessage=this._createComponent(this._$validationMessage,f,d({integrationOptions:{},templatesRenderAsynchronously:!1,target:r,shading:!1,width:"auto",height:"auto",container:a,position:this._getValidationMessagePosition("below"),closeOnOutsideClick:!1,closeOnTargetScroll:!1,animation:null,visible:!0,propagateOutsideClick:!0,_checkParentVisibility:!1},this._getInnerOptionsCache("validationTooltipOptions"))),this._$validationMessage.toggleClass(x,"auto"===n).toggleClass(w,"always"===n);var s="dx-"+new u;this._validationMessage.$content().addClass(b).attr("id",s),this.setAria("describedby",s),this._setValidationMessageMaxWidth(),this._bindInnerWidgetOptions(this._validationMessage,"validationTooltipOptions")}},_setValidationMessageMaxWidth:function(){if(this._validationMessage){if(0===this._getValidationMessageTarget().outerWidth())return void this._validationMessage.option("maxWidth","100%");var e=Math.max(k,this._getValidationMessageTarget().outerWidth());this._validationMessage.option("maxWidth",e)}},_getValidationMessageTarget:function(){return this.$element()},_getValidationMessagePosition:function(e){var t=this.option("rtlEnabled"),n=c(t),i=this.option("validationMessageOffset"),o={h:i.h,v:i.v},a="below"===e?[" top"," bottom"]:[" bottom"," top"];return t&&(o.h=-o.h),"below"!==e&&(o.v=-o.v),{offset:o,boundary:this.option("validationBoundary"),my:n+a[0],at:n+a[1],collision:"none flip"}},_toggleReadOnlyState:function(){var e=this.option("readOnly");this._toggleBackspaceHandler(e),this.$element().toggleClass(m,!!e),this.setAria("readonly",e||void 0)},_toggleBackspaceHandler:function(e){var t=this._keyboardEventBindingTarget(),n=_.addNamespace("keydown",S);g.off(t,n),e&&g.on(t,n,function(e){"backspace"===_.normalizeKeyName(e)&&e.preventDefault()})},_dispose:function(){var e=this.$element()[0];a.data(e,C,null),clearTimeout(this.showValidationMessageTimeout),this.callBase()},_setSubmitElementName:function(e){var t=this._getSubmitElement();t&&(e.length>0?t.attr("name",e):t.removeAttr("name"))},_getSubmitElement:function(){return null},_optionChanged:function(e){switch(e.name){case"onValueChanged":this._createValueChangeAction();break;case"isValid":case"validationError":case"validationBoundary":case"validationMessageMode":this._renderValidationState();break;case"validationTooltipOptions":this._innerOptionChanged(this._validationMessage,e);break;case"readOnly":this._toggleReadOnlyState(),this._refreshFocusState();break;case"value":e.value!=e.previousValue&&this.validationRequest.fire({value:e.value,editor:this}),this._valueChangeActionSuppressed||(this._raiseValueChangeAction(e.value,e.previousValue),this._saveValueChangeEvent(void 0));break;case"width":this.callBase(e),this._setValidationMessageMaxWidth();break;case"name":this._setSubmitElementName(e.value);break;default:this.callBase(e)}},reset:function(){var e=this._getDefaultOptions();this.option("value",e.value)}}).include(p);e.exports=I},function(e,t,n){function i(e){var t=A(e);return S[t]||S[I[t]||r()]}function o(e,t){return I[e+"."+t]||T[e+"."+t]||I[e]}function a(e,t,n){return o(e+t,n)||o(e,n)}function r(e,t){if(!arguments.length)return O||o(k.current())||b;var n=A(t);return O=(e&&e.platform?a(A(e.platform),e.version,n):o(A(e),n))||O,this}function s(e,t){var n=e.indexOf(t);return n>0?{name:e.substring(0,n),scheme:e.substring(n+1)}:null}function l(e,t){var n=s(e,".")||{name:e},i=n.name,o=n.scheme;o?(I[i]=I[i]||t,I[i+"."+o]=t):I[i]=t}function u(e,t){var n=A(e&&e.name);n&&(e.isDefault&&(b=n),l(n,n),S[n]=D(!0,{},i(t),f(e)))}function c(e,t){l(A(e),A(t))}function d(e,t){T[e]=t}function h(e,t,n,i){var o=n?n[t]:i;void 0!==o&&void 0===e[t]&&(e[t]=o)}function p(e,t,n,i){var o=n?n[t]:i;void 0!==o&&(e[t]=D(!0,{},o,e[t]))}function f(e){return e=D(!0,{loadingIndicator:{font:{}},"export":{font:{}},legend:{font:{},border:{}},title:{font:{}},tooltip:{font:{}},"chart:common":{},"chart:common:axis":{grid:{},minorGrid:{},tick:{},minorTick:{},title:{font:{}},label:{font:{}}},chart:{commonSeriesSettings:{candlestick:{}}},pie:{},polar:{},gauge:{scale:{tick:{},minorTick:{},label:{font:{}}}},barGauge:{},funnel:{},sankey:{},map:{background:{}},treeMap:{tile:{selectionStyle:{border:{}}},group:{border:{},selectionStyle:{border:{}},label:{font:{}}}},rangeSelector:{scale:{tick:{},minorTick:{},label:{font:{}}},chart:{}},sparkline:{},bullet:{}},e),h(e.loadingIndicator,"backgroundColor",e),h(e.chart.commonSeriesSettings.candlestick,"innerColor",null,e.backgroundColor),h(e.map.background,"color",null,e.backgroundColor),h(e.title.font,"color",null,e.primaryTitleColor),p(e.title,"subtitle",null,e.title),h(e.legend.font,"color",null,e.secondaryTitleColor),h(e.legend.border,"color",null,e.gridColor),g(e),E(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sparkline","bullet","sankey"],function(t,n){h(e[n],"redrawOnResize",e),h(e[n],"containerBackgroundColor",null,e.backgroundColor),p(e[n],"tooltip",e),p(e[n],"export",e)}),E(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sankey"],function(t,n){p(e[n],"loadingIndicator",e),p(e[n],"legend",e),p(e[n],"title",e)}),E(["chart","pie","polar"],function(t,n){p(e,n,null,e["chart:common"])}),E(["chart","polar"],function(t,n){e[n]=e[n]||{},p(e[n],"commonAxisSettings",null,e["chart:common:axis"])}),p(e.rangeSelector.chart,"commonSeriesSettings",e.chart),p(e.rangeSelector.chart,"dataPrepareSettings",e.chart),h(e.treeMap.group.border,"color",null,e.gridColor),h(e.treeMap.tile.selectionStyle.border,"color",null,e.primaryTitleColor),h(e.treeMap.group.selectionStyle.border,"color",null,e.primaryTitleColor),h(e.map.legend,"backgroundColor",e),_(e),e}function g(e){var t=e["chart:common:axis"],n="color";E([t.grid,t.minorGrid],function(t,i){h(i,n,null,e.gridColor)}),E([t,t.tick,t.minorTick,t.label.font],function(t,i){h(i,n,null,e.axisColor)}),h(t.title.font,n,null,e.secondaryTitleColor),h(e.gauge.scale.label.font,n,null,e.axisColor),h(e.gauge.scale.tick,n,null,e.backgroundColor),h(e.gauge.scale.minorTick,n,null,e.backgroundColor),h(e.rangeSelector.scale.label.font,n,null,e.axisColor)}function _(e){var t=e.map;E(["area","line","marker"],function(e,n){p(t,"layer:"+n,null,t.layer)}),E(["dot","bubble","pie","image"],function(e,n){p(t,"layer:marker:"+n,null,t["layer:marker"])})}function m(e){var t=++B;e._cache=t,P[t]=e}function v(e){delete P[e._cache]}function y(){return E(P,function(){this.refresh()}),this}var b,x=n(0).extend,w=n(3).each,C=n(11),k=n(31),S={},I={},T={},D=x,E=w,A=C.normalizeEnum,O=null,B=0,P={};D(t,{currentTheme:r,registerTheme:u,getTheme:i,registerThemeAlias:c,registerThemeSchemeAlias:d,refreshTheme:y,addCacheItem:m,removeCacheItem:v})},function(e,t,n){function i(e,t){return l(e)||s(e,t)||a(e,t)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n-1?t.formatType=n:n in w&&(t.power=w[n])}),t.power&&!t.formatType&&(t.formatType="fixedpoint"),t.formatType?t:void 0}},_calculateNumberPower:function(e,t,n,i){var o=Math.abs(e),a=0;if(o>1)for(;o&&o>=t&&(void 0===i||a0&&o<1)for(;o<1&&(void 0===n||a>n);)a--,o*=t;return a},_getNumberByPower:function(e,t,n){for(var i=e;t>0;)i/=n,t--;for(;t<0;)i*=n,t++;return i},_formatNumber:function(e,t,n){var i;"auto"===t.power&&(t.power=this._calculateNumberPower(e,1e3,0,v)),t.power&&(e=this._getNumberByPower(e,t.power,1e3));var o=this.defaultLargeNumberFormatPostfixes[t.power]||"";return i=this._formatNumberCore(e,t.formatType,n),i=i.replace(/(\d|.$)(\D*)$/,"$1"+o+"$2")},_formatNumberExponential:function(e,t){var n=this._calculateNumberPower(e,y),i=this._getNumberByPower(e,n,y);void 0===t.precision&&(t.precision=1),i.toFixed(t.precision||0)>=y&&(n++,i/=y);var o=(n>=0?"+":"")+n.toString();return this._formatNumberCore(i,"fixedpoint",t)+"E"+o},_addZeroes:function(e,t){var n=Math.pow(10,t),i=e<0?"-":"";e=(Math.abs(e)*n>>>0)/n;for(var o=e.toString();o.length15)return NaN;var a=+o;return a*this.getSign(e,t)}},_calcSignificantDigits:function(e){var t=e.split("."),n=i(t,2),o=n[0],a=n[1],r=function(e){for(var t=-1,n=0;n-1?e.length-t:0},s=0;return o&&(s+=r(o.split(""))),a&&(s+=r(a.split("").reverse())),s}});e.exports=C},function(e,t,n){var i=n(29),o=n(219).getFormatter,a=n(220),r=n(1),s=r.isString,l=r.isDate,u=r.isNumeric,c="number",d="yyyy/MM/dd",h="yyyy/MM/dd HH:mm:ss",p=/^(\d{4,})(-)?(\d{2})(-)?(\d{2})(?:T(\d{2})(:)?(\d{2})?(:)?(\d{2}(?:\.(\d{1,3})\d*)?)?)?(Z|([+-])(\d{2})(:)?(\d{2})?)?$/,f=/^(\d{2}):(\d{2})(:(\d{2}))?$/,g=["","yyyy","","MM","","dd","THH","","mm","","ss",".SSS"],_=3,m=function(e,t){var n,i;return s(e)&&!t&&(n=v(e)),n||(i=!l(e)&&Date.parse(e),n=u(i)?new Date(i):e),n},v=function(e){var t=e.match(p),n=function(e){return+e||0};if(t){var i=t[1],o=--t[3],a=t[5],r=0,s=0;r=n(t[14]),s=n(t[16]),"-"===t[13]&&(r=-r,s=-s);var l=n(t[6])-r,u=n(t[8])-s,c=n(t[10]),d=function(e){return e=e||"",n(e)*Math.pow(10,_-e.length)},h=d(t[11]);return t[12]?new Date(Date.UTC(i,o,a,l,u,c,h)):new Date(i,o,a,l,u,c,h)}if(t=e.match(f))return new Date(0,0,0,n(t[1]),n(t[2]),n(t[4]))},y=function(e,t){var n=e.match(p),i="";if(n){for(var o=1;o=0?h:d}return e?null:void 0};e.exports={dateParser:m,deserializeDate:b,serializeDate:x,getDateSerializationFormat:w}},function(e,t,n){e.exports=function(e){var t=n(0).extend,i=n(1).isFunction,o=n(3).each,a=n(15),r=a.inherit(e),s=r,l=new s(e),u={},c=function(t,n){o(t,function(t){i(l[t])?!n&&e[t]||(e[t]=function(){return l[t].apply(e,arguments)}):(n&&(u[t]=e[t]),e[t]=l[t])})};return c(e,!0),e.inject=function(e){s=s.inherit(e),l=new s,c(e)},e.resetInjection=function(){t(e,u),s=r,l=new r},e}},function(e,t){e.exports=window.jQuery},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return l(e)||s(e)||r(e)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function s(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function l(e){if(Array.isArray(e))return u(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=0?n.totalCount():t.length},key:e.key.bind(e),keyOf:e.keyOf.bind(e),load:function(t){if(e._dataSource){var n=e._dataSource.loadOptions();t.customQueryParams=n.customQueryParams,t.userData=e._dataSource._userData}var i=e._dataSource&&e._dataSource.store();return i?i.load(t).done(function(t){if(!e._disposed){var n=(0,S.normalizeLoadResult)(t).data;e._dataSource._applyMapFunction(n)}}):(new D.Deferred).resolve(this.plainItems())},dataFields:function(){return e._dataSource&&e._dataSource.select()},plainItems:t.bind(e._editStrategy)})},_initEditStrategy:function(){var e=C.default;this._editStrategy=new e(this)},_getSelectedItemIndices:function(e){var t=this,n=[];return e=e||this._selection.getSelectedItemKeys(),t._editStrategy.beginCache(),(0,y.each)(e,function(e,i){var o=t._getIndexByKey(i);O(o)&&n.push(o)}),t._editStrategy.endCache(),n},_initMarkup:function(){var e=this;this._rendering=!0,this._dataSource&&this._dataSource.isLoading()||this._syncSelectionOptions().done(function(){return e._normalizeSelectedItems()}),this.callBase()},_render:function(){this.callBase(),this._rendering=!1},_fireContentReadyAction:function(){this._rendering=!1,this._rendered=!0,this.callBase.apply(this,arguments)},_syncSelectionOptions:function(e){e=e||this._chooseSelectOption();var t,n,i,o;switch(e){case"selectedIndex":t=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),(0,x.isDefined)(t)?(this._setOptionSilent("selectedItems",[t]),this._setOptionSilent("selectedItem",t),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionSilent("selectedItems",[]),this._setOptionSilent("selectedItemKeys",[]),this._setOptionSilent("selectedItem",null));break;case"selectedItems":if(o=this.option("selectedItems")||[],n=this._editStrategy.getIndexByItemData(o[0]),this.option("selectionRequired")&&!O(n))return this._syncSelectionOptions("selectedIndex");this._setOptionSilent("selectedItem",o[0]),this._setOptionSilent("selectedIndex",n),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems(o));break;case"selectedItem":if(t=this.option("selectedItem"),n=this._editStrategy.getIndexByItemData(t),this.option("selectionRequired")&&!O(n))return this._syncSelectionOptions("selectedIndex");(0,x.isDefined)(t)?(this._setOptionSilent("selectedItems",[t]),this._setOptionSilent("selectedIndex",n),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionSilent("selectedItems",[]),this._setOptionSilent("selectedItemKeys",[]),this._setOptionSilent("selectedIndex",A));break;case"selectedItemKeys":if(i=this.option("selectedItemKeys"),this.option("selectionRequired")){var a=this._getIndexByKey(i[0]);if(!O(a))return this._syncSelectionOptions("selectedIndex")}return this._selection.setSelection(i)}return(new D.Deferred).resolve().promise()},_chooseSelectOption:function(){var e="selectedIndex",t=function(e){var t=this.option(e),n=(0,x.isDefined)(t)&&t.length;return n||e in this._userOptions}.bind(this);return t("selectedItems")?e="selectedItems":t("selectedItem")?e="selectedItem":t("selectedItemKeys")&&(e="selectedItemKeys"),e},_compareKeys:function(e,t){if(e.length!==t.length)return!1;for(var n=0;n1||!e.length&&this.option("selectionRequired")&&this.option("items")&&this.option("items").length){var t=this._selection.getSelectedItems(),n=void 0===e[0]?t[0]:e[0];return void 0===n&&(n=this._editStrategy.itemsGetter()[0]),this.option("grouped")&&n&&n.items&&(n.items=[n.items[0]]),this._selection.setSelection(this._getKeysByItems([n])),this._setOptionSilent("selectedItems",[n]),this._syncSelectionOptions("selectedItems")}this._selection.setSelection(this._getKeysByItems(e))}else{var i=this._getKeysByItems(this.option("selectedItems")),o=this._selection.getSelectedItemKeys();this._compareKeys(o,i)||this._selection.setSelection(i)}return(new D.Deferred).resolve().promise()},_itemClickHandler:function(e){this._createAction(function(e){this._itemSelectHandler(e.event)}.bind(this),{validatingTargetName:"itemElement"})({itemElement:(0,d.default)(e.currentTarget),event:e}),this.callBase.apply(this,arguments)},_itemSelectHandler:function(e){if(this.option("selectionByClick")){var t=e.currentTarget;this.isItemSelected(t)?this.unselectItem(e.currentTarget):this.selectItem(e.currentTarget)}},_selectedItemElement:function(e){return this._itemElements().eq(e)},_postprocessRenderItem:function(e){if("none"!==this.option("selectionMode")){var t=(0,d.default)(e.itemElement),n=this._editStrategy.getNormalizedIndex(t),i=this._isItemSelected(n);this._processSelectableItem(t,i)}},_processSelectableItem:function(e,t){e.toggleClass(this._selectedItemClass(),t),this._setAriaSelected(e,String(t))},_updateSelectedItems:function(e){var t=this,n=e.addedItemKeys,i=e.removedItemKeys;if(t._rendered&&(n.length||i.length)){var o=t._selectionChangePromise;if(!t._rendering){var a,r=[],s=[];t._editStrategy.beginCache();for(var l=0;l-1){var i=o.data(e,y)||0;o.data(e,y,Math.max(0,i+n))}},remove:function(e,t){this.updateEventsCounter(e,t.type,-1)},teardown:function(e){var t=o.data(e,y);if(!t){var n=r(e,b);b.splice(n,1),x.splice(n,1),w.splice(n,1),o.removeData(e,y)}}};u(_,C),u(m,C),u(v,C);var k=function(e){var t=r(e.get(0),b),n=x[t],i=e.find(n.join(", "));return r(void 0,n)!==-1&&(i=i.add(e)),i},S=function(e){var t=r(e.get(0),b);return w[t]},I=function(e,t){return e.itemPositionFunc?e.itemPositionFunc(t):t.offset()},T=function(e,t){return e.itemSizeFunc?e.itemSizeFunc(t):{width:t.get(0).getBoundingClientRect().width,height:t.get(0).getBoundingClientRect().height}},D=d.inherit({ctor:function(e){this.callBase(e),this.direction="both"},_init:function(e){this._initEvent=e},_start:function(e){e=this._fireEvent(p,this._initEvent),this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset;var t=a(e.targetElements||(null===e.targetElements?[]:b));this._dropTargets=s.map(t,function(e){return i(e).get(0)})},_move:function(e){var t=c.eventData(e),n=this._calculateOffset(t);e=this._fireEvent(f,e,{offset:n}),this._processDropTargets(e),e._cancelPreventDefault||e.preventDefault()},_calculateOffset:function(e){return{x:this._calculateXOffset(e),y:this._calculateYOffset(e)}},_calculateXOffset:function(e){if("vertical"!==this.direction){var t=e.x-this._startEventData.x;return this._fitOffset(t,this._maxLeftOffset,this._maxRightOffset)}return 0},_calculateYOffset:function(e){if("horizontal"!==this.direction){var t=e.y-this._startEventData.y;return this._fitOffset(t,this._maxTopOffset,this._maxBottomOffset)}return 0},_fitOffset:function(e,t,n){return null!=t&&(e=Math.max(e,-t)),null!=n&&(e=Math.min(e,n)),e},_processDropTargets:function(e){var t=this._findDropTarget(e),n=t===this._currentDropTarget;n||(this._fireDropTargetEvent(e,m),this._currentDropTarget=t,this._fireDropTargetEvent(e,_))},_fireDropTargetEvent:function(e,t){if(this._currentDropTarget){var n={type:t,originalEvent:e,draggingElement:this._$element.get(0),target:this._currentDropTarget};c.fireEvent(n)}},_findDropTarget:function(e){var t,n=this;return s.each(b,function(o,a){if(n._checkDropTargetActive(a)){var r=i(a);s.each(k(r),function(o,a){var s=i(a);n._checkDropTarget(S(r),s,e)&&(t=a)})}}),t},_checkDropTargetActive:function(e){var t=!1;return s.each(this._dropTargets,function(n,i){return t=t||i===e||l(i,e),!t}),t},_checkDropTarget:function(e,t,n){var i=t.get(0)===this._$element.get(0);if(i)return!1;var o=I(e,t);if(n.pageXo.left+a.width)&&(!(n.pageY>o.top+a.height)&&t)},_end:function(e){var t=c.eventData(e);this._fireEvent(g,e,{offset:this._calculateOffset(t)}),this._fireDropTargetEvent(e,v),delete this._currentDropTarget}});h({emitter:D,events:[p,f,g]}),t.move=f,t.start=p,t.end=g,t.enter=_,t.leave=m,t.drop=v},function(e,t,n){var i=n(6).Deferred,o=n(10),a=n(439),r=n(7),s=r.getWindow(),l=n(0).extendFromObject,u=n(1).isDefined,c=n(76),d=n(53),h="success",p="error",f="timeout",g="nocontent",_="parsererror",m=function(e){return 200<=e&&e<300},v=function(e){return 204!==e},y=function(e){var t=[];for(var n in e){var i=e[n];void 0!==i&&(null===i&&(i=""),t.push(encodeURIComponent(n)+"="+encodeURIComponent(i)))}return t.join("&")},b=function(e){var t=o.createElement("script");for(var n in e)t[n]=e[n];return t},x=function(e){e.parentNode.removeChild(e)},w=function(e){return o.getHead().appendChild(e)},C=function(e){var t=b({text:e});w(t),x(t)},k=function(e){var t=b({src:e});return new c(function(e,n){var i={load:e,error:n},a=function(e){i[e.type](),x(t)};for(var r in i)o.listen(t,r,a);w(t)})},S=function(e){var t=e.dataType||"*",n="text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",i={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",jsonp:n,script:n};return l(i,e.accepts,!0),i[t]?i[t]+("*"!==t?", */*; q=0.01":""):i["*"]},I=function(e){var t;return e.data&&!e.upload&&"GET"!==P(e)&&(t="application/x-www-form-urlencoded;charset=utf-8"),e.contentType||t},T=function(e){return e.responseType&&"text"!==e.responseType||"string"!=typeof e.responseText?e.response:e.responseText},D=function(e,t,n){var i=T(t);switch(n){case"jsonp":C(i);break;case"script":C(i),e.resolve(i,h,t);break;case"json":try{e.resolve(JSON.parse(i),h,t)}catch(n){e.reject(t,_,n)}break;default:e.resolve(i,h,t)}},E=function(e){if(!r.hasWindow())return!0;var t=!1,n=o.createElement("a"),i=o.createElement("a");n.href=s.location.href;try{i.href=e,i.href=i.href,t=n.protocol+"//"+n.host!=i.protocol+"//"+i.host}catch(e){t=!0}return t},A=function(e,t){return e&&setTimeout(function(){t.customStatus=f,t.abort()},e)},O=function(e){if("jsonp"===e.dataType){var t=Math.random().toString().replace(/\D/g,""),n=e.jsonpCallback||"dxCallback"+Date.now()+"_"+t,i=e.jsonp||"callback";return e.data=e.data||{},e.data[i]=n,n}},B=function(e,t){var n=e.data,i="string"==typeof n,o=e.url||s.location.href;return i||e.cache||(n=n||{},n._=Date.now()),n&&!e.upload&&(i||(n=y(n)),"GET"===P(e)?(""!==n&&(o+=(o.indexOf("?")>-1?"&":"?")+n),n=null):t["Content-Type"]&&t["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1&&(n=n.replace(/%20/g,"+"))),{url:o,parameters:n}},P=function(e){return(e.method||"GET").toUpperCase()},R=function(e){var t=e.headers||{};return t["Content-Type"]=t["Content-Type"]||I(e),t.Accept=t.Accept||S(e),e.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t},M=function(e){var t,n=a.getXhr(),o=new i,r=o.promise(),l=!u(e.async)||e.async,c=e.dataType,d=e.timeout||0;e.crossDomain=E(e.url);var f="jsonp"===c||"script"===c;void 0===e.cache&&(e.cache=!f);var _=O(e),y=R(e),b=B(e,y),x=b.url,w=b.parameters;if(_&&(s[_]=function(e){o.resolve(e,h,n)}),e.crossDomain&&f){var C=function(){o.reject(n,p)},S=function(){"jsonp"!==c&&o.resolve(null,h,n)};return k(x).then(S,C),r}if(e.crossDomain&&!("withCredentials"in n))return o.reject(n,p),r;if(n.open(P(e),x,l,e.username,e.password),l&&(n.timeout=d,t=A(d,n,o)),n.onreadystatechange=function(e){4===n.readyState&&(clearTimeout(t),m(n.status)?v(n.status)?D(o,n,c):o.resolve(null,g,n):o.reject(n,n.customStatus||p))},e.upload&&(n.upload.onprogress=e.upload.onprogress,n.upload.onloadstart=e.upload.onloadstart,n.upload.onabort=e.upload.onabort),e.xhrFields)for(var I in e.xhrFields)n[I]=e.xhrFields[I];"arraybuffer"===e.responseType&&(n.responseType=e.responseType);for(var T in y)Object.prototype.hasOwnProperty.call(y,T)&&u(y[T])&&n.setRequestHeader(T,y[T]);return e.beforeSend&&e.beforeSend(n),n.send(w),r.abort=function(){n.abort()},r};e.exports=d({sendRequest:M})},function(e,t,n){t.compare=function(e,t,n){function i(e){return"string"==typeof e?e.split("."):"number"==typeof e?[e]:e}e=i(e),t=i(t);var o=Math.max(e.length,t.length);isFinite(n)&&(o=Math.min(o,n));for(var a=0;as)return 1}return 0}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(){return r||(r=a()),r}function a(){var e=(0,u.getWindow)(),t=e&&e.Quill||n(319);if(!t)throw l.default.Error("E1041","Quill");return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getQuill=void 0;var r,s=n(17),l=i(s),u=n(7);t.getQuill=o},function(e,t,n){e.exports=n(464)},function(e,t){e.exports=window.ko},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r="dx-icon",s="dx-svg-icon",l=function(e){return!(!e||"string"!=typeof e)&&(/^\s*]*>(.|\r?\n)*?<\/svg>\s*$/i.test(e)?"svg":/data:.*base64|\.|[^<\s]\//.test(e)?"image":/^[\w-_]+$/.test(e)?"dxIcon":!!/^\s?([\w-_]\s?)+$/.test(e)&&"fontIcon")},u=function(e){switch(l(e)){case"image":return(0,a.default)("").attr("src",e).addClass(r);case"fontIcon":return(0,a.default)("").addClass("".concat(r," ").concat(e));case"dxIcon":return(0,a.default)("").addClass("".concat(r," ").concat(r,"-").concat(e));case"svg":return(0,a.default)("").addClass("".concat(r," ").concat(s)).append(e);default:return null}};t.getImageSourceType=l,t.getImageContainer=u},function(e,t,n){var i=function(e){var t,n=function(){return t=e.apply(this,arguments),n=function(){return t},t};return function(){return n.apply(this,arguments)}};e.exports=i},function(e,t,n){var i=n(1),o=n(22),a=n(51),r=n(32),s=n(53);n(150),e.exports=s({format:function(e,t){var n=i.isString(t)&&""!==t||i.isPlainObject(t)||i.isFunction(t),o=i.isNumeric(e)||i.isDate(e);return n&&o?i.isFunction(t)?t(e):(i.isString(t)&&(t={type:t}),i.isNumeric(e)?a.format(e,t):i.isDate(e)?r.format(e,t):void 0):i.isDefined(e)?e.toString():""},getTimeFormat:function(e){return e?"longtime":"shorttime"},_normalizeFormat:function(e){return Array.isArray(e)?1===e.length?e[0]:function(t){return e.map(function(e){return r.format(t,e)}).join(" ")}:e},getDateFormatByDifferences:function(e,t){var n=[],i=t&&e.millisecond&&!(e.year||e.month||e.day);if(i){var o=function(e){return e.getSeconds()+e.getMilliseconds()/1e3+"s"};n.push(o)}else e.millisecond&&n.push("millisecond");if((e.hour||e.minute||!i&&e.second)&&n.unshift(this.getTimeFormat(e.second)),e.year&&e.month&&e.day)return t&&"month"===t?"monthandyear":(n.unshift("shortdate"),this._normalizeFormat(n));if(e.year&&e.month)return"monthandyear";if(e.year&&e.quarter)return"quarterandyear";if(e.year)return"year";if(e.quarter)return"quarter";if(e.month&&e.day){if(t){var a=function(e){return r.getMonthNames("abbreviated")[e.getMonth()]+" "+r.format(e,"day")};n.unshift(a)}else n.unshift("monthandday");return this._normalizeFormat(n)}if(e.month)return"month";if(e.day){if(t)n.unshift("day");else{var s=function(e){return r.format(e,"dayofweek")+", "+r.format(e,"day")};n.unshift(s)}return this._normalizeFormat(n)}return this._normalizeFormat(n)},getDateFormatByTicks:function(e){var t;if(e.length>1){t=o.getDatesDifferences(e[0],e[1]);for(var n=1;n0,minute:e[0].getMinutes()>0,second:e[0].getSeconds()>0,millisecond:e[0].getMilliseconds()>0};var a=this.getDateFormatByDifferences(t);return a},getDateFormatByTickInterval:function(e,t,n){var a,r={week:"day"},s=function(e,t,n){switch(t){case"year":case"quarter":e.month=n;case"month":e.day=n;case"week":case"day":e.hour=n;case"hour":e.minute=n;case"minute":e.second=n;case"second":e.millisecond=n}},l=function(e,t,n){!n.getMilliseconds()&&n.getSeconds()?n.getSeconds()-t.getSeconds()===1&&(e.millisecond=!0,e.second=!1):!n.getSeconds()&&n.getMinutes()?n.getMinutes()-t.getMinutes()===1&&(e.second=!0,e.minute=!1):!n.getMinutes()&&n.getHours()?n.getHours()-t.getHours()===1&&(e.minute=!0,e.hour=!1):!n.getHours()&&n.getDate()>1?n.getDate()-t.getDate()===1&&(e.hour=!0,e.day=!1):1===n.getDate()&&n.getMonth()?n.getMonth()-t.getMonth()===1&&(e.day=!0,e.month=!1):!n.getMonth()&&n.getFullYear()&&n.getFullYear()-t.getFullYear()===1&&(e.month=!0,e.year=!1)};n=i.isString(n)?n.toLowerCase():n;var u=o.getDatesDifferences(e,t);e!==t&&l(u,e>t?t:e,e>t?e:t),a=o.getDateUnitInterval(u),s(u,a,!0), a=o.getDateUnitInterval(n||"second"),s(u,a,!1),u[r[a]||a]=!0;var c=this.getDateFormatByDifferences(u);return c}})},function(e,t,n){var i=n(2),o=n(10),a=function(e,t){if(!r(e))return!1;var n=e.nodeName.toLowerCase(),i=!isNaN(t),o=e.disabled,a=/^(input|select|textarea|button|object|iframe)$/.test(n),s="a"===n,l=!0,u=e.isContentEditable;return l=a||u?!o:s?e.href||i:i},r=function(e){var t=i(e);return t.is(":visible")&&"hidden"!==t.css("visibility")&&"hidden"!==t.parents().css("visibility")};e.exports={focusable:function(e,t){return a(t,i(t).attr("tabIndex"))},tabbable:function(e,t){var n=i(t).attr("tabIndex");return(isNaN(n)||n>=0)&&a(t,n)},focused:function(e){var t=i(e).get(0);return o.getActiveElement()===t}}},function(e,t,n){var i=n(2),o=n(71),a=n(5),r=n(133),s=n(3),l=n(1).isPrimitive,u=function(){var e=function(e,i,o,a,r){var s,u=t(e,i,function(e){return s&&s(),l(e)?void r(e):void(s=n(e,i,o,a,function(e){r(e)}))});return function(){s&&s(),u&&u()}},t=function(e,t,n){return t(function(){return e},n)},n=function(e,t,n,i,o){var a={},r=n.slice(),l=s.map(n,function(n){var s=i[n];return t(s?function(){return s(e)}:function(){return e[n]},function(e){if(a[n]=e,r.length){var t=r.indexOf(n);t>=0&&r.splice(t,1)}r.length||o(a)})});return function(){s.each(l,function(e,t){t()})}};return e}();e.exports=o.inherit({ctor:function(e,t,n,i){this._render=e,this._fields=t,this._fieldsMap=i||{},this._watchMethod=n},_renderCore:function(e){var t=i(e.container),n=u(e.model,this._watchMethod,this._fields,this._fieldsMap,function(n){t.empty(),this._render(t,n,e.model)}.bind(this));return a.on(t,r,n),t.contents()}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(5),s=i(r),l=n(7),u=i(l),c=n(0),d=n(29),h=i(d),p=n(21),f=i(p),g=n(12),_=n(126),m=i(_),v=n(4),y=i(v),b=n(3),x=n(1),w=n(13),C=n(127),k=i(C),S=n(37),I=i(S),T=n(134),D=i(T),E=D.default.abstract,A="dx-rtl",O="dx-visibility-change-handler",B="VisibilityChange",P=D.default.inherit({_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{width:void 0,height:void 0,rtlEnabled:(0,h.default)().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}})},ctor:function(e,t){this._$element=(0,a.default)(e),k.default.attachInstanceToElement(this._$element,this,this._dispose),this.callBase(t)},_getSynchronizableOptionsForCreateComponent:function(){return["rtlEnabled","disabled","templatesRenderAsynchronously"]},_visibilityChanged:E,_dimensionChanged:E,_init:function(){this.callBase(),this._attachWindowResizeCallback()},_setOptionsByDevice:function(e){this.callBase([].concat(this.constructor._classCustomRules||[],e||[]))},_isInitialOptionValue:function(e){var t=this.constructor._classCustomRules&&Object.prototype.hasOwnProperty.call(this._convertRulesToOptions(this.constructor._classCustomRules),e);return!t&&this.callBase(e)},_attachWindowResizeCallback:function(){if(this._isDimensionChangeSupported()){var e=this._windowResizeCallBack=this._dimensionChanged.bind(this);m.default.add(e)}},_isDimensionChangeSupported:function(){return this._dimensionChanged!==E},_renderComponent:function(){this._initMarkup(),u.default.hasWindow()&&this._render()},_initMarkup:function(){this._renderElementAttributes(),this._toggleRTLDirection(this.option("rtlEnabled")),this._renderVisibilityChange(),this._renderDimensions()},_render:function(){this._attachVisibilityChangeHandlers()},_renderElementAttributes:function(){var e=(0,c.extend)({},this.option("elementAttr")),t=e.class;delete e.class,this.$element().attr(e).addClass(t)},_renderVisibilityChange:function(){this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported()&&this.$element().addClass(O)},_renderDimensions:function(){var e=this.$element(),t=e.get(0),n=this._getOptionValue("width",t),i=this._getOptionValue("height",t);this._isCssUpdateRequired(t,i,n)&&e.css({width:null===n?"":n,height:null===i?"":i})},_isCssUpdateRequired:function(e,t,n){return!!((0,x.isDefined)(n)||(0,x.isDefined)(t)||e.style.width||e.style.height)},_attachDimensionChangeHandlers:function(){var e=this,t="dxresize."+this.NAME+B;s.default.off(e.$element(),t),s.default.on(e.$element(),t,function(){e._dimensionChanged()})},_attachVisibilityChangeHandlers:function(){if(this._isVisibilityChangeSupported()){var e=this,t="dxhiding."+this.NAME+B,n="dxshown."+this.NAME+B;e._isHidden=!e._isVisible(),s.default.off(e.$element(),t),s.default.on(e.$element(),t,function(){e._checkVisibilityChanged("hiding")}),s.default.off(e.$element(),n),s.default.on(e.$element(),n,function(){e._checkVisibilityChanged("shown")})}},_isVisible:function(){return this.$element().is(":visible")},_checkVisibilityChanged:function(e){"hiding"===e&&this._isVisible()&&!this._isHidden?(this._visibilityChanged(!1),this._isHidden=!0):"shown"===e&&this._isVisible()&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0))},_isVisibilityChangeSupported:function(){return this._visibilityChanged!==E&&u.default.hasWindow()},_clean:y.default.noop,_modelByElement:function(){var e=this.option("modelByElement")||y.default.noop;return e(this.$element())},_invalidate:function(){if(!this._updateLockCount)throw f.default.Error("E0007");this._requireRefresh=!0},_refresh:function(){this._clean(),this._renderComponent()},_dispose:function(){this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback:function(){this._isDimensionChangeSupported()&&m.default.remove(this._windowResizeCallBack)},_toggleRTLDirection:function(e){this.$element().toggleClass(A,e)},_createComponent:function(e,t,n){var i=this,o=this;n=n||{};var r=y.default.grep(this._getSynchronizableOptionsForCreateComponent(),function(e){return!(e in n)}),s=o.option("nestedComponentOptions")||y.default.noop,l=(0,c.extend)({integrationOptions:this.option("integrationOptions")},s(this));r.forEach(function(e){l[e]=i.option(e)}),o._extendConfig(n,l);var u;if((0,x.isString)(t)){var d=(0,a.default)(e)[t](n);u=d[t]("instance")}else e&&(u=t.getInstance(e),u?u.option(n):u=new t(e,n));if(u){var h=function(e){(0,w.inArray)(e.name,r)>=0&&u.option(e.name,e.value)};o.on("optionChanged",h),u.on("disposing",function(){o.off("optionChanged",h)})}return u},_extendConfig:function(e,t){(0,b.each)(t,function(t,n){e[t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:n})},_defaultActionConfig:function(){return(0,c.extend)(this.callBase(),{context:this._modelByElement(this.$element())})},_defaultActionArgs:function(){var e=this._modelByElement(this.$element());return(0,c.extend)(this.callBase(),{element:this.element(),model:e})},_optionChanged:function(e){switch(e.name){case"width":case"height":this._renderDimensions();break;case"rtlEnabled":this._invalidate();break;case"elementAttr":this._renderElementAttributes();break;case"disabled":case"integrationOptions":break;default:this.callBase(e)}},_removeAttributes:function(e){for(var t=e.attributes.length-1;t>=0;t--){var n=e.attributes[t];if(!n)return;var i=n.name;0!==i.indexOf("aria-")&&i.indexOf("dx-")===-1&&"role"!==i&&"style"!==i&&"tabindex"!==i||e.removeAttribute(i)}},_removeClasses:function(e){var t=e.className.split(" ").filter(function(e){return 0!==e.lastIndexOf("dx-",0)});e.className=t.join(" ")},endUpdate:function(){var e=!this._initializing&&!this._initialized;this.callBase.apply(this,arguments),this._updateLockCount||(e?this._renderComponent():this._requireRefresh&&(this._requireRefresh=!1,this._refresh()))},$element:function(){return this._$element},element:function(){return(0,g.getPublicElement)(this.$element())},dispose:function(){var e=this.$element().get(0);I.default.cleanDataRecursive(e,!0),e.textContent="",this._removeAttributes(e),this._removeClasses(e)}});P.getInstance=function(e){return k.default.getInstanceByElement((0,a.default)(e),this)},P.defaultOptions=function(e){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(e)},e.exports=P},function(e,t,n){var i=n(3).each,o=n(113),a=function(e,t){var n={};"noBubble"in t&&(n.noBubble=t.noBubble),"bindType"in t&&(n.bindType=t.bindType),"delegateType"in t&&(n.delegateType=t.delegateType),i(["setup","teardown","add","remove","trigger","handle","_default","dispose"],function(e,i){t[i]&&(n[i]=function(){var e=[].slice.call(arguments);return e.unshift(this),t[i].apply(t,e)})}),o.fire(e,n)};a.callbacks=o,e.exports=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(41),a=n(42),r=i(a),s=n(36),l=n(91),u=i(l),c=n(135),d=i(c),h=u.default.inherit({ctor:function(e){e=Array.isArray(e)?{data:e}:e||{},this.callBase(e);var t=e.data;if(t&&!Array.isArray(t))throw s.errors.Error("E4006");this._array=t||[]},createQuery:function(){return(0,r.default)(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(e){var t=d.default.indexByKey(this,this._array,e);return t===-1?(0,o.rejectedPromise)(s.errors.Error("E4009")):(0,o.trivialPromise)(this._array[t])},_insertImpl:function(e){return d.default.insert(this,this._array,e)},_pushImpl:function(e){d.default.applyBatch(this,this._array,e)},_updateImpl:function(e,t){return d.default.update(this,this._array,e,t)},_removeImpl:function(e){return d.default.remove(this,this._array,e)},clear:function(){this.fireEvent("modifying"),this._array=[],this.fireEvent("modified")}},"array");e.exports=h},function(e,t){e.exports=window.Globalize},function(e,t,n){var i=n(2),o=n(10),a=n(25),r=n(12),s=n(15),l=s.abstract,u=a({syncStrategy:!0}),c=s.inherit({render:function(e){e=e||{};var t=e.onRendered;delete e.onRendered;var n=this._renderCore(e);return this._ensureResultInContainer(n,e.container),u.fire(n,e.container),t&&t(),n},_ensureResultInContainer:function(e,t){if(t){var n=i(t),a=r.contains(n.get(0),e.get(0));if(n.append(e),!a){var s=o.getBody().contains(n.get(0));s&&r.triggerShownEvent(e)}}},_renderCore:l});e.exports=c,e.exports.renderedCallbacks=u},function(e,t,n){var i=n(2),o="dx-inkripple",a="dx-inkripple-wave",r="dx-inkripple-showing",s="dx-inkripple-hiding",l=2,u=4e3,c=300,d=1e3,h=0,p=function(e){e=e||{},void 0===e.useHoldAnimation&&(e.useHoldAnimation=!0);var t={waveSizeCoefficient:e.waveSizeCoefficient||l,isCentered:e.isCentered||!1,wavesNumber:e.wavesNumber||1,durations:y(e.useHoldAnimation)};return{showWave:m.bind(this,t),hideWave:x.bind(this,t)}},f=function(e){var t=e.children("."+o);return 0===t.length&&(t=i("
").addClass(o).appendTo(e)),t},g=function(e,t){for(var n=f(e),o=n.children("."+a).toArray(),r=o.length;r").appendTo(n).addClass(a);o.push(s[0])}return i(o)},_=function(e,t){var n,i,o=t.element,a=o.outerWidth(),r=o.outerHeight(),s=parseInt(Math.sqrt(a*a+r*r)),l=Math.min(u,parseInt(s*e.waveSizeCoefficient));if(e.isCentered)n=(a-l)/2,i=(r-l)/2;else{var c=t.event,d=t.element.offset(),h=c.pageX-d.left,p=c.pageY-d.top;n=h-l/2,i=p-l/2}return{left:n,top:i,height:l,width:l}},m=function(e,t){var n=g(t.element,e.wavesNumber).eq(t.wave||h);e.hidingTimeout&&clearTimeout(e.hidingTimeout),b(n),n.css(_(e,t)),e.showingTimeout=setTimeout(v.bind(this,e,n),0)},v=function(e,t){var n=e.durations.showingScale+"ms";t.addClass(r).css("transitionDuration",n)},y=function(e){return{showingScale:e?d:c,hidingScale:c,hidingOpacity:c}},b=function(e){e.removeClass(s).css("transitionDuration","")},x=function(e,t){e.showingTimeout&&clearTimeout(e.showingTimeout);var n=g(t.element,t.wavesNumber).eq(t.wave||h),i=e.durations,o=i.hidingScale+"ms, "+i.hidingOpacity+"ms";n.addClass(s).removeClass(r).css("transitionDuration",o);var a=Math.max(i.hidingScale,i.hidingOpacity);e.hidingTimeout=setTimeout(b.bind(this,n),a)};e.exports={render:p}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e>0?Math.round(e):0}function a(e,t,n,i){var o,r=[],s=i.nodes,l=t.length,u=0;for(o=0;o0&&(d.value=Number(c[i.valueField])),u+=d.value}e.nodes=r,e.value=u}function r(e,t,n){var i,o=t.nodes,a=o.length;for(i=0;i0&&e.algorithm({items:o.slice(),sum:r,rect:t.innerRect.slice(),isRotated:1&i[0].level,directions:e.directions}),n=0;n=0?o(t.headerHeight):c.labelParams.height+2*o(n.paddingTopBottom),e._headerHeight!==l&&(e._headerHeight=l,e._change(["TILING"])),e._groupPadding!==u&&(e._groupPadding=u,e._change(["TILING"])),i.headerEdge===r&&i.headerInner===s||(i.headerEdge=r,i.headerInner=s,e._change(["TILING"]))},_calculateLabelSettings:function(e,t,n){var i=this._getTextBBox(t.font),a=o(t.paddingLeftRight),r=o(t.paddingTopBottom),s=this._getOption("tile.label"),l=this._getOption("group.label");e.labelState=(0,y.buildTextAppearance)(t,n),e.labelState.visible=!("visible"in t&&!t.visible),this._suppressDeprecatedWarnings(),e.labelParams={height:i.height,rtlEnabled:this._getOption("rtlEnabled",!0),paddingTopBottom:r,paddingLeftRight:a,resolveLabelOverflow:this._getOption("resolveLabelOverflow",!0),tileLabelWordWrap:s.wordWrap,tileLabelOverflow:s.textOverflow,groupLabelOverflow:l.textOverflow},this._resumeDeprecatedWarnings()},_changeMaxDepth:function(){var e=this._getOption("maxDepth",!0);e=e>=1?Math.round(e):1/0,this._maxDepth!==e&&(this._maxDepth=e,this._change(["NODES_RESET"]))},_resetNodes:function(){var e=this;e._tilesGroup.clear(),e._renderer.initHatching(),e._context.forceReset=!0,e._context.minLevel=e._topNode.level+1,e._context.maxLevel=e._context.minLevel+e._maxDepth-1,e._change(["TILES","LABELS","TILING"])},_processNodes:function(e,t){r(e,this._topNode,t)},_applyTilesAppearance:function(){var e=this,t=(0,C.getColorizer)(e._getOption("colorizer"),e._themeManager,e._topNode);e._processNodes({renderer:e._renderer,group:e._tilesGroup,setTrackerData:e._handlers.setTrackerData,colorField:e._getOption("colorField",!0)||"color",getColor:t},s)},_applyLabelsAppearance:function(){var e=this;e._labelsGroup.clear(),e._processNodes({renderer:e._renderer,group:e._labelsGroup,setTrackerData:e._handlers.setTrackerData,labelField:e._getOption("labelField",!0)||"name"},c),e._change(["LABELS_LAYOUT"])},_performTiling:function(){var e=this,t={algorithm:(0,w.getAlgorithm)(e._getOption("layoutAlgorithm",!0)),directions:E[String(e._getOption("layoutDirection",!0)).toLowerCase()]||E.lefttoprightbottom,headerHeight:e._headerHeight,groupPadding:e._groupPadding,rectOffsets:e._rectOffsets};e._topNode.innerRect=e._tilingRect,h(t,e._topNode),e._processNodes(t,p),e._change(["LABELS_LAYOUT"]),e._onTilingPerformed()},_onTilingPerformed:S.noop,_performLabelsLayout:function(){this._processNodes(null,m)},_getTextBBox:function(e){var t=this._renderer,n=this._textForCalculations||t.text("0",0,0);this._textForCalculations=n,n.css((0,k.patchFontOptions)(e)).append(t.root);var i=n.getBBox();return n.remove(),i}}),O=[l,u],B=[0,0,0,0];n(9)("dxTreeMap",A),e.exports=A,A.addPlugin(n(147).plugin)},function(e,t,n){var i=n(1).isFunction,o=function(){},a=function(e){return"undefined"!=typeof console&&i(console[e])?console[e].bind(console):o},r={info:a("info"),warn:a("warn"),error:a("error")},s=function(){function e(e,t){if(!e)throw new Error(t)}function t(t,n){e(null!==t&&void 0!==t,n)}return{assert:e,assertParam:t}}();t.logger=r,t.debug=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o={toXml:function(e,t,n){var o=["<",e];for(var a in t){var r=t[a];(0,i.isDefined)(r)&&o.push(" ",a,'="',r,'"')}return(0,i.isDefined)(n)&&""!==n?o.push(">",n,""):o.push(" />"),o.join("")}};t.default=o},function(e,t,n){var i=n(6),o=n(7),a=i.Deferred,r=i.when,s=o.hasWindow()?o.getWindow().Promise:Promise;s||(s=function(e){var t=new a;return e(t.resolve.bind(this),t.reject.bind(this)),t.promise()},s.resolve=function(e){return(new a).resolve(e).promise()},s.reject=function(e){return(new a).reject(e).promise()},s.all=function(e){return r.apply(this,e).then(function(){return[].slice.call(arguments)})}),e.exports=s},function(e,t,n){var i=n(2),o=n(47),a=o.add,r=n(25)(),s=i(),l=function(){var e;return function(t){if(!arguments.length)return e;var n=i(t);s=n;var o=!!n.length,a=l();e=o?n:i("body"),r.fire(o?l():i(),a)}}();a(function(){l(".dx-viewport")}),t.value=l,t.changeCallback=r,t.originalViewPort=function(){return s}},function(e,t,n){var i,o=n(2),a=n(4),r=n(3).each,s=n(7),l=s.getWindow(),u=n(10),c=n(1).isWindow,d=n(0).extend,h=n(26),p=n(27),f=n(43),g=/left|right/,_=/top|bottom/,m=/fit|flip|none/,v=h.safari,y=function(e){var t={h:"center",v:"center"},n=a.splitPair(e);return n&&r(n,function(){var e=String(this).toLowerCase();g.test(e)?t.h=e:_.test(e)&&(t.v=e)}),t},b=function(e){return a.pairToObject(e)},x=function(e){var t=a.splitPair(e),n=String(t&&t[0]).toLowerCase(),i=String(t&&t[1]).toLowerCase();return m.test(n)||(n="none"),m.test(i)||(i=n),{h:n,v:i}},w=function(e){switch(e){case"center":return.5;case"right":case"bottom":return 1;default:return 0}},C=function(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return e}},k=function(e,t){var n=0;return e.myLocationt.max&&(n+=e.myLocation-t.max),n},S=function(e,t,n){return t.myLocationn.max?"h"===e?"right":"bottom":"none"},I=function(e){e.myLocation=e.atLocation+w(e.atAlign)*e.atSize-w(e.myAlign)*e.mySize+e.offset},T={fit:function(e,t){var n=!1;e.myLocation>t.max&&(e.myLocation=t.max,n=!0),e.myLocationt.max)){var n=d({},e,{myAlign:C(e.myAlign),atAlign:C(e.atAlign),offset:-e.offset});I(n),n.oversize=k(n,t),(n.myLocation>=t.min&&n.myLocation<=t.max||e.oversize>n.oversize)&&(e.myLocation=n.myLocation,e.oversize=n.oversize,e.flip=!0)}},flipfit:function(e,t){this.flip(e,t),this.fit(e,t)},none:function(e){e.oversize=0}},D=function(){var e=o("
").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo(o("body")),t=e.get(0).offsetWidth-e.get(0).clientWidth;e.remove(),i=t},E={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},A=function(e,t){var n=o(e),a=n.offset(),r=d(!0,{},E,{h:{location:a.left},v:{location:a.top}});if(!t)return r;var s=y(t.my),h=y(t.at),p=o(t.of).length&&t.of||l,g=b(t.offset),_=x(t.collision),m=t.boundary,w=b(t.boundaryOffset),C={mySize:n.outerWidth(),myAlign:s.h,atAlign:h.h,offset:g.h,collision:_.h,boundaryOffset:w.h},A={mySize:n.outerHeight(),myAlign:s.v,atAlign:h.v,offset:g.v,collision:_.v,boundaryOffset:w.v};if(p.preventDefault)C.atLocation=p.pageX,A.atLocation=p.pageY,C.atSize=0,A.atSize=0;else if(p=o(p),c(p[0]))C.atLocation=p.scrollLeft(),A.atLocation=p.scrollTop(),C.atSize=p[0].innerWidth>=p[0].outerWidth?p[0].innerWidth:p.width(),A.atSize=p[0].innerHeight>=p[0].outerHeight||v?p[0].innerHeight:p.height();else if(9===p[0].nodeType)C.atLocation=0,A.atLocation=0,C.atSize=p.width(),A.atSize=p.height();else{var O=p.offset();C.atLocation=O.left,A.atLocation=O.top,C.atSize=p.outerWidth(),A.atSize=p.outerHeight()}I(C),I(A);var B=function(){var e=o(l),t=e.width(),n=e.height(),a=e.scrollLeft(),r=e.scrollTop(),s=u.getDocumentElement(),c=f.touch?s.clientWidth/t:1,d=f.touch?s.clientHeight/n:1;void 0===i&&D();var h=t,p=n;if(m){var g=o(m),_=g.offset();a=_.left,r=_.top,h=g.width(),p=g.height()}return{h:{min:a+C.boundaryOffset,max:a+h/c-C.mySize-C.boundaryOffset},v:{min:r+A.boundaryOffset,max:r+p/d-A.mySize-A.boundaryOffset}}}();C.oversize=k(C,B.h),A.oversize=k(A,B.v),C.collisionSide=S("h",C,B.h),A.collisionSide=S("v",A,B.v),T[C.collision]&&T[C.collision](C,B.h),T[A.collision]&&T[A.collision](A,B.v);var P=function(e){return t.precise?e:Math.round(e)};return d(!0,r,{h:{location:P(C.myLocation),oversize:P(C.oversize),fit:C.fit,flip:C.flip,collisionSide:C.collisionSide},v:{location:P(A.myLocation),oversize:P(A.oversize),fit:A.fit,flip:A.flip,collisionSide:A.collisionSide},precise:t.precise}),r},O=function(e,t){var n=o(e);if(!t)return n.offset();p.resetPosition(n,!0);var i=n.offset(),a=t.h&&t.v?t:A(n,t),r=function(e){return t.precise?e:Math.round(e)};return p.move(n,{left:a.h.location-r(i.left),top:a.v.location-r(i.top)}),a},B=function(e){return e=o(e).get(0),c(e)?null:e&&"pageY"in e&&"pageX"in e?{top:e.pageY,left:e.pageX}:o(e).offset()};O.inverseAlign||(O.inverseAlign=C),O.normalizeAlign||(O.normalizeAlign=y),e.exports={calculateScrollbarWidth:D,calculate:A,setup:O,offset:B}},function(e,t,n){var i=n(54),o=n(29),a=o().useJQuery;i&&a!==!1&&o({useJQuery:!0}),e.exports=function(){return i&&o().useJQuery}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=function t(n,i,o,a,r,s){function l(e,r,s){(0,m.when)(t(n,i,o,a,r,s)).done(e.resolve)}a=a||[],n=n||[];var u,c;for(r=r||0,u=r;ur&&u%1e4===0&&new Date-y>=300)return y=new Date,c=new m.Deferred,setTimeout(l(c,u,!1),0),c;var d=n[u];if(!s){if(a.unshift(d),o&&i(a,u)===!1)return;if(d.children){var h=t(d.children,i,o,a);if(e&&h)return c=new m.Deferred,h.done(l(c,u,!0)),c}}if(s=!1,!o&&i(a,u)===!1)return;a.shift(),n[u]!==d&&u--}};return t}function a(e){return(0,c.map)(["year","quarter","month"],function(t,n){return(0,d.extend)({},e,{groupInterval:t,groupIndex:n})})}function r(e,t,n,i){var o=[];return(0,c.each)(t||[],function(t,l){if(!t||0!==t.indexOf("__")){for(var c,d=1,h=n.length?n+"."+t:t,p=i[h],f=(0,u.compileGetter)(h);!(0,s.isDefined)(l)&&e[d];)l=f(e[d]),d++;!p&&(0,s.isDefined)(l)&&(p=(0,s.type)(l)),c=[{dataField:h,dataType:p,groupName:"date"===p?t:void 0,groupInterval:void 0,displayFolder:n}],"date"===p?c=c.concat(a(c[0])):"object"===p&&(c=r(e,l,h,i)),o.push.apply(o,c)}}),o}var s=n(1),l=n(57),u=n(20),c=n(3),d=n(0),h=n(32),p=n(64),f=n(45),g=n(69),_=i(g),m=n(6),v=t.setFieldProperty=function(e,t,n,i){var o=e._initProperties=e._initProperties||{},a=i?n:e[t];Object.prototype.hasOwnProperty.call(o,t)&&!i||(o[t]=a),e[t]=n};t.sendRequest=function(e){return(0,l.sendRequest)(e)};var y=new Date;t.foreachTree=o(!1),t.foreachTreeAsync=o(!0),t.findField=function(e,t){if(e&&(0,s.isDefined)(t))for(var n=0;na?i=1:o=0;n--)t.push(e[n].key||e[n].value);return t},t.foreachDataLevel=function e(t,n,i,o){i=i||0,o=o||"children",t.length&&n(t,i);for(var a=0;a0&&e.groupInterval;t&&!e.customizeText&&v(e,"customizeText",function(n){var i=n.value+t,o=(0,p.format)(i,e.format);return n.valueText&&o?n.valueText+" - "+o:""})}},t.getFiltersByPath=function(e,t){var n=[];t=t||[];for(var i=0;i1&&(e=e.select(function(e){return s({},e,{items:i(u(e.items),t.slice(1)).toArray()})})),e}function o(e,t){var n=[];return l(e,function(e,i){var o=r(t,function(e){return i.selector===e.selector});o.length<1&&n.push(i)}),n.concat(t)}function a(e,t,n){t=t||{};var a=t.filter;if(a&&(e=e.filter(a)),n)return e;var r=t.sort,s=t.select,u=t.group,d=t.skip,h=t.take;return u&&(u=c(u),u.keepInitialKeyOrder=!!t.group.keepInitialKeyOrder),(r||u)&&(r=c(r||[]),u&&!u.keepInitialKeyOrder&&(r=o(u,r)),l(r,function(t){e=e[t?"thenBy":"sortBy"](this.selector,this.desc,this.compare)})),s&&(e=e.select(s)),u&&(e=i(e,u)),(h||d)&&(e=e.slice(d||0,h)),e}var r=n(4).grep,s=n(0).extend,l=n(3).each,u=n(154),c=n(41).normalizeSortingInfo;e.exports={multiLevelGroup:i,arrangeSortingInfo:o,queryByOptions:a}},function(e,t,n){var i=n(33).camelize,o=n(63),a=n(1),r=n(10),s=["","Webkit","Moz","O","Ms"],l={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},u=o(function(){return r.createElement("dx").style}),c=function(e,t){e=i(e,!0);for(var n,o=0,a=s.length;on;){var i=t[n];if(e(i)===!1)break;t[n]===i&&n++}},_applyToEmitters:function(e,t){this._eachEmitter(function(n){n[e].call(n,t)})},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(e){this._proxiedCancelHandler(e)},_pointerDownHandler:function(e){p.isMouseEvent(e)&&e.which>1||this._updateEmitters(e)},_updateEmitters:function(e){this._isSetChanged(e)&&(this._cleanEmitters(e),this._fetchEmitters(e))},_isSetChanged:function(e){var t=this._closestEmitter(e),n=this._emittersSet||[],i=t.length!==n.length;return d(t,function(e,t){return i=i||n[e]!==t,!i}),this._emittersSet=t,i},_closestEmitter:function(e){function t(t,i){i&&i.validatePointers(e)&&i.validate(e)&&(i.addCancelCallback(n._proxiedCancelHandler),i.addAcceptCallback(n._proxiedAcceptHandler),o.push(i))}for(var n=this,o=[],a=i(e.target);a.length;){var r=s.data(a.get(0),m)||[];d(r,t),a=a.parent()}return o},_acceptHandler:function(e,t){var n=this;this._eachEmitter(function(i){i!==e&&n._cancelEmitter(i,t)})},_cancelHandler:function(e,t){this._cancelEmitter(e,t)},_cancelEmitter:function(e,t){var n=this._activeEmitters;t?e.cancel(t):e.reset(),e.removeCancelCallback(),e.removeAcceptCallback();var i=c(e,n);i>-1&&n.splice(i,1)},_cleanEmitters:function(e){this._applyToEmitters("end",e),this.reset(e)},_fetchEmitters:function(e){this._activeEmitters=this._emittersSet.slice(),this._applyToEmitters("start",e)},_pointerMoveHandler:function(e){this._applyToEmitters("move",e)},_pointerUpHandler:function(e){this._updateEmitters(e)},_mouseWheelHandler:function(e){this._allowInterruptionByMouseWheel()&&(e.pointers=[null],this._pointerDownHandler(e),this._adjustWheelEvent(e),this._pointerMoveHandler(e),e.pointers=[],this._pointerUpHandler(e))},_allowInterruptionByMouseWheel:function(){var e=!0;return this._eachEmitter(function(t){return e=t.allowInterruptionByMouseWheel()&&e}),e},_adjustWheelEvent:function(e){var t=null;if(this._eachEmitter(function(n){if(n.gesture){var i=n.getDirection(e);return"horizontal"!==i&&!e.shiftKey||"vertical"!==i&&e.shiftKey?(t=n,!1):void 0}}),t){var n=t.getDirection(e),i="both"===n&&!e.shiftKey||"vertical"===n,o=i?"pageY":"pageX";e[o]+=e.delta}},isActive:function(e){var t=!1;return this._eachEmitter(function(n){t=t||n.getElement().is(e)}),t}}),y=new v,b="dxEmitterSubscription",x=function(e){var t=e.emitter,n=e.events[0],i=e.events;d(i,function(o,a){h(a,{noBubble:!e.bubble,setup:function(e){var i=s.data(e,b)||{},o=s.data(e,m)||{},r=o[n]||new t(e);i[a]=!0,o[n]=r,s.data(e,m,o),s.data(e,b,i)},add:function(e,t){var i=s.data(e,m),o=i[n];o.configure(u({delegateSelector:t.selector},t.data),t.type)},teardown:function(e){var t=s.data(e,b),o=s.data(e,m),r=o[n];delete t[a];var l=!0;d(i,function(e,n){return l=l&&!t[n]}),l&&(y.isActive(e)&&y.resetEmitter(r),r&&r.dispose(),delete o[n])}})})};e.exports=x},function(e,t,n){var i=n(8),o=n(114),a=n(88),r=Math.abs,s="dxhold",l=750,u=5,c=o.inherit({start:function(e){this._startEventData=i.eventData(e),this._startTimer(e)},_startTimer:function(e){var t="timeout"in this?this.timeout:l;this._holdTimer=setTimeout(function(){this._requestAccept(e),this._fireEvent(s,e,{target:e.target}),this._forgetAccept()}.bind(this),t)},move:function(e){this._touchWasMoved(e)&&this._cancel(e)},_touchWasMoved:function(e){var t=i.eventDelta(this._startEventData,i.eventData(e));return r(t.x)>u||r(t.y)>u},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});a({emitter:c,bubble:!0,events:[s]}),e.exports={name:s}},function(e,t,n){function i(e){this.baseColor=e;var t;e&&(t=String(e).toLowerCase().replace(/ /g,""),t=m[t]?"#"+m[t]:t,t=o(t)),t||(this.colorIsInvalid=!0),t=t||{},this.r=a(t[0]),this.g=a(t[1]),this.b=a(t[2]),this.a=a(t[3],1,1),t[4]?this.hsv={h:t[4][0],s:t[4][1],v:t[4][2]}:this.hsv=s(this.r,this.g,this.b),t[5]?this.hsl={h:t[5][0],s:t[5][1],l:t[5][2]}:this.hsl=c(this.r,this.g,this.b)}function o(e){if("transparent"===e)return[0,0,0,0];for(var t,n=0,i=v.length;nn?n:e}function r(e,t,n){return"#"+(16777216|e<<16|t<<8|n).toString(16).slice(1)}function s(e,t,n){var i,o,a,r=Math.max(e,t,n),s=Math.min(e,t,n),l=r-s;if(a=r,o=0===r?0:1-s/r,r===s)i=0;else switch(r){case e:i=60*((t-n)/l),t.5?c/(2-s):c/s,i=u(e,t,n,c),i/=6}return{h:y(360*i),s:y(100*o),l:y(100*l)}}function d(e,t){var n=t;return"r"===e&&(n=t+1/3),"b"===e&&(n=t-1/3),n}function h(e){return e<0&&(e+=1),e>1&&(e-=1),e}function p(e,t,n){return n=h(n),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function f(e,t,n){var i,o,a;if(e=g(e,360),t=g(t,100),n=g(n,100),0===t)i=o=a=n;else{var r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=p(s,r,d("r",e)),o=p(s,r,d("g",e)),a=p(s,r,d("b",e))}return[y(255*i),y(255*o),y(255*a)]}function g(e,t){return e=Math.min(t,Math.max(0,parseFloat(e))),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function _(e,t,n){return t=t||0,n=n||255,!(e%1!==0||en||"number"!=typeof e||isNaN(e))}var m={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",rebeccapurple:"663399",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"},v=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}},{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*\.*\d+)\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10),parseFloat(e[4])]}},{re:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/,process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^#([a-f0-9]{1})([a-f0-9]{1})([a-f0-9]{1})$/,process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/^hsv\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){var t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10),o=l(t,n,i);return[o[0],o[1],o[2],1,[t,n,i]]}},{re:/^hsl\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){var t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10),o=f(t,n,i);return[o[0],o[1],o[2],1,null,[t,n,i]]}}],y=Math.round;i.prototype={constructor:i,highlight:function(e){return e=e||10,this.alter(e).toHex()},darken:function(e){return e=e||10,this.alter(-e).toHex()},alter:function(e){var t=new i;return t.r=a(this.r+e),t.g=a(this.g+e),t.b=a(this.b+e),t},blend:function(e,t){var n=e instanceof i?e:new i(e),o=new i;return o.r=a(y(this.r*(1-t)+n.r*t)),o.g=a(y(this.g*(1-t)+n.g*t)),o.b=a(y(this.b*(1-t)+n.b*t)),o},toHex:function(){return r(this.r,this.g,this.b)},getPureColor:function(){var e=l(this.hsv.h,100,100);return new i("rgb("+e.join(",")+")")},isValidHex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},isValidRGB:function(e,t,n){return!!(_(e)&&_(t)&&_(n))},isValidAlpha:function(e){return!(isNaN(e)||e<0||e>1||"number"!=typeof e)},colorIsInvalid:!1,fromHSL:function(e){var t=new i,n=f(e.h,e.s,e.l);return t.r=n[0],t.g=n[1],t.b=n[2],t}},e.exports=i},function(e,t,n){var i=n(15),o=i.abstract,a=n(81),r=n(3).each,s=n(36),l=n(41),u=n(20).compileGetter,c=n(82),d=c.queryByOptions,h=n(6).Deferred,p=n(4).noop,f={},g=i.inherit({ctor:function(e){var t=this;e=e||{},r(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onPush","onRemoved","onRemoving","onModified","onModifying"],function(n,i){i in e&&t.on(i.slice(2).toLowerCase(),e[i])}),this._key=e.key,this._errorHandler=e.errorHandler,this._useDefaultSearch=!0},_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(e){return this._keyGetter||(this._keyGetter=u(this.key())),this._keyGetter(e)},_requireKey:function(){if(!this.key())throw s.errors.Error("E4005")},load:function(e){var t=this;return e=e||{},this.fireEvent("loading",[e]),this._withLock(this._loadImpl(e)).done(function(n){t.fireEvent("loaded",[n,e])})},_loadImpl:function(e){return d(this.createQuery(e),e).enumerate()},_withLock:function(e){var t=new h;return e.done(function(){var e=this,n=arguments;l.processRequestResultLock.promise().done(function(){t.resolveWith(e,n)})}).fail(function(){t.rejectWith(this,arguments)}),t},createQuery:o,totalCount:function(e){return this._totalCountImpl(e)},_totalCountImpl:function(e){return d(this.createQuery(e),e,!0).count()},byKey:function(e,t){return this._addFailHandlers(this._withLock(this._byKeyImpl(e,t)))},_byKeyImpl:o,insert:function(e){var t=this;return t.fireEvent("modifying"),t.fireEvent("inserting",[e]),t._addFailHandlers(t._insertImpl(e).done(function(e,n){t.fireEvent("inserted",[e,n]),t.fireEvent("modified")}))},_insertImpl:o,update:function(e,t){var n=this;return n.fireEvent("modifying"),n.fireEvent("updating",[e,t]),n._addFailHandlers(n._updateImpl(e,t).done(function(){n.fireEvent("updated",[e,t]),n.fireEvent("modified")}))},_updateImpl:o,push:function(e){this._pushImpl(e),this.fireEvent("push",[e])},_pushImpl:p,remove:function(e){var t=this;return t.fireEvent("modifying"),t.fireEvent("removing",[e]),t._addFailHandlers(t._removeImpl(e).done(function(e){t.fireEvent("removed",[e]),t.fireEvent("modified")}))},_removeImpl:o,_addFailHandlers:function(e){return e.fail(this._errorHandler).fail(s._errorHandler)}}).include(a);g.create=function(e,t){if(!(e in f))throw s.errors.Error("E4020",e);return new f[e](t)},g.registerClass=function(e,t){return t&&(f[t]=e),e},g.inherit=function(e){return function(t,n){var i=e.apply(this,[t]);return g.registerClass(i,n),i}}(g.inherit),e.exports=g},function(e,t,n){e.exports=n(502)},function(e,t,n){var i=n(2),o=n(7),a=o.getNavigator(),r=n(43),s=n(31),l=n(0).extend,u=n(16),c=n(9),d=n(18),h="dx-loadindicator",p="dx-loadindicator-wrapper",f="dx-loadindicator-content",g="dx-loadindicator-icon",_="dx-loadindicator-segment",m="dx-loadindicator-segment-inner",v="dx-loadindicator-image",y=d.inherit({_getDefaultOptions:function(){return l(this.callBase(),{indicatorSrc:"",activeStateEnabled:!1,hoverStateEnabled:!1,_animatingSegmentCount:1,_animatingSegmentInner:!1})},_defaultOptionsRules:function(){var e=s.current();return this.callBase().concat([{device:function(){var e=u.real(),t="android"===e.platform&&!/chrome/i.test(a.userAgent);return t},options:{viaImage:!0}},{device:function(){return s.isIos7(e)},options:{_animatingSegmentCount:11}},{device:function(){return s.isMaterial(e)},options:{_animatingSegmentCount:2,_animatingSegmentInner:!0}},{device:function(){return s.isGeneric(e)},options:{_animatingSegmentCount:7}}])},_init:function(){this.callBase(),this.$element().addClass(h)},_initMarkup:function(){this.callBase(),this._renderWrapper(),this._renderIndicatorContent(),this._renderMarkup()},_renderWrapper:function(){this._$wrapper=i("
").addClass(p),this.$element().append(this._$wrapper)},_renderIndicatorContent:function(){this._$content=i("
").addClass(f),this._$wrapper.append(this._$content)},_renderMarkup:function(){!r.animation()||this.option("viaImage")||this.option("indicatorSrc")?this._renderMarkupForImage():this._renderMarkupForAnimation()},_renderMarkupForAnimation:function(){var e=this.option("_animatingSegmentInner");this._$indicator=i("
").addClass(g),this._$content.append(this._$indicator);for(var t=this.option("_animatingSegmentCount");t>=0;--t){var n=i("
").addClass(_).addClass(_+t);e&&n.append(i("
").addClass(m)),this._$indicator.append(n)}},_renderMarkupForImage:function(){var e=this.option("indicatorSrc");this._$wrapper.addClass(v),e&&this._$wrapper.css("backgroundImage","url("+e+")")},_renderDimensions:function(){this.callBase(),this._updateContentSizeForAnimation()},_updateContentSizeForAnimation:function(){if(this._$indicator){var e=this.option("width"),t=this.option("height");if(e||t){e=this.$element().width(),t=this.$element().height();var n=Math.min(t,e);this._$wrapper.css({height:n,width:n,fontSize:n})}}},_clean:function(){this.callBase(),this._removeMarkupForAnimation(),this._removeMarkupForImage()},_removeMarkupForAnimation:function(){this._$indicator&&(this._$indicator.remove(),delete this._$indicator)},_removeMarkupForImage:function(){this._$wrapper.css("backgroundImage","none")},_optionChanged:function(e){switch(e.name){case"_animatingSegmentCount":case"_animatingSegmentInner":case"indicatorSrc":this._invalidate();break;default:this.callBase(e)}}});c("dxLoadIndicator",y),e.exports=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(5),s=i(r),l=n(43),u=i(l),c=n(26),d=i(c),h=n(4),p=i(h),f=n(1),g=i(f),_=n(0),m=n(12),v=n(7),y=i(v),b=n(10),x=i(b),w=n(16),C=i(w),k=n(9),S=i(k),I=n(67),T=i(I),D=n(65),E=i(D),A=n(8),O=i(A),B=n(244),P=i(B),R=n(302),M=i(R),V=n(190),F=i(V),L=n(6),H="dxScrollable",z="dxScrollableStrategy",N="dx-scrollable",$="dx-scrollable-disabled",W="dx-scrollable-container",G="dx-scrollable-wrapper",j="dx-scrollable-content",q="dx-scrollable-customizable-scrollbars",K="vertical",U="horizontal",Y="both",X=function(){return[{device:function(){return!u.default.nativeScrolling},options:{useNative:!1}},{device:function(e){return!C.default.isSimulator()&&"generic"===C.default.real().platform&&"generic"===e.platform},options:{bounceEnabled:!1,scrollByThumb:!0,scrollByContent:u.default.touch,showScrollbar:"onHover"}}]},Z=T.default.inherit({_getDefaultOptions:function(){return(0,_.extend)(this.callBase(),{disabled:!1,onScroll:null,direction:K,showScrollbar:"onScroll",useNative:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,onUpdated:null,onStart:null,onEnd:null,onBounce:null,onStop:null,useSimulatedScrollbar:!1,useKeyboard:!0,inertiaEnabled:!0,pushBackValue:0,updateManually:!1})},_defaultOptionsRules:function(){return this.callBase().concat(X(),[{device:function(){return u.default.nativeScrolling&&"android"===C.default.real().platform&&!d.default.mozilla},options:{useSimulatedScrollbar:!0}},{device:function(){return"ios"===C.default.real().platform},options:{pushBackValue:1}}])},_initOptions:function(e){this.callBase(e),"useSimulatedScrollbar"in e||this._setUseSimulatedScrollbar()},_setUseSimulatedScrollbar:function(){this.initialOption("useSimulatedScrollbar")||this.option("useSimulatedScrollbar",!this.option("useNative"))},_init:function(){this.callBase(),this._initScrollableMarkup(),this._locked=!1},_visibilityChanged:function(e){e?(this.update(),this._updateRtlPosition(),this._savedScrollOffset&&this.scrollTo(this._savedScrollOffset),delete this._savedScrollOffset):this._savedScrollOffset=this.scrollOffset()},_initScrollableMarkup:function(){var e=this.$element().addClass(N),t=this._$container=(0,a.default)("
").addClass(W),n=this._$wrapper=(0,a.default)("
").addClass(G),i=this._$content=(0,a.default)("
").addClass(j);x.default.hasDocumentProperty("onbeforeactivate")&&d.default.msie&&d.default.version<12&&s.default.on(e,O.default.addNamespace("beforeactivate",H),function(e){(0,a.default)(e.target).is(E.default.focusable)||e.preventDefault()}),i.append(e.contents()).appendTo(t),t.appendTo(n),n.appendTo(e)},_dimensionChanged:function(){this.update()},_attachNativeScrollbarsCustomizationCss:function(){"desktop"!==C.default.real().deviceType||y.default.getNavigator().platform.indexOf("Mac")>-1&&d.default.webkit||this.$element().addClass(q)},_initMarkup:function(){this.callBase(),this._renderDirection()},_render:function(){this._renderStrategy(),this._attachNativeScrollbarsCustomizationCss(),this._attachEventHandlers(),this._renderDisabledState(),this._createActions(),this.update(),this.callBase(),this._updateRtlPosition()},_updateRtlPosition:function(){var e=this;this._updateBounds(),this.option("rtlEnabled")&&this.option("direction")!==K&&p.default.deferUpdate(function(){var t=e._container().get(0),n=t.scrollWidth-t.clientWidth;p.default.deferRender(function(){e.scrollTo({left:n})})})},_updateBounds:function(){this._strategy.updateBounds()},_attachEventHandlers:function(){var e=this._strategy,t={getDirection:e.getDirection.bind(e),validate:this._validate.bind(this),isNative:this.option("useNative"),scrollTarget:this._$container};s.default.off(this._$wrapper,"."+H),s.default.on(this._$wrapper,O.default.addNamespace(P.default.init,H),t,this._initHandler.bind(this)),s.default.on(this._$wrapper,O.default.addNamespace(P.default.start,H),e.handleStart.bind(e)),s.default.on(this._$wrapper,O.default.addNamespace(P.default.move,H),e.handleMove.bind(e)),s.default.on(this._$wrapper,O.default.addNamespace(P.default.end,H),e.handleEnd.bind(e)),s.default.on(this._$wrapper,O.default.addNamespace(P.default.cancel,H),e.handleCancel.bind(e)),s.default.on(this._$wrapper,O.default.addNamespace(P.default.stop,H),e.handleStop.bind(e)),s.default.off(this._$container,"."+H),s.default.on(this._$container,O.default.addNamespace("scroll",H),e.handleScroll.bind(e))},_validate:function(e){return!this._isLocked()&&(this._updateIfNeed(),this._strategy.validate(e))},_initHandler:function(){var e=this._strategy;e.handleInit.apply(e,arguments)},_renderDisabledState:function(){this.$element().toggleClass($,this.option("disabled")),this.option("disabled")?this._lock():this._unlock()},_renderDirection:function(){this.$element().removeClass("dx-scrollable-"+U).removeClass("dx-scrollable-"+K).removeClass("dx-scrollable-"+Y).addClass("dx-scrollable-"+this.option("direction"))},_renderStrategy:function(){this._createStrategy(),this._strategy.render(),this.$element().data(z,this._strategy)},_createStrategy:function(){this._strategy=this.option("useNative")?new F.default(this):new M.default.SimulatedStrategy(this)},_createActions:function(){this._strategy&&this._strategy.createActions()},_clean:function(){this._strategy&&this._strategy.dispose()},_optionChanged:function(e){switch(e.name){case"onStart":case"onEnd":case"onStop":case"onUpdated":case"onScroll":case"onBounce":this._createActions();break;case"direction":this._resetInactiveDirection(),this._invalidate();break;case"useNative":this._setUseSimulatedScrollbar(),this._invalidate();break;case"inertiaEnabled":case"scrollByContent":case"scrollByThumb":case"bounceEnabled":case"useKeyboard":case"showScrollbar":case"useSimulatedScrollbar":case"pushBackValue":this._invalidate();break;case"disabled":this._renderDisabledState(),this._strategy&&this._strategy.disabledChanged();break;case"updateManually":break;case"width":this.callBase(e),this._updateRtlPosition();break;default:this.callBase(e)}},_resetInactiveDirection:function(){var e=this._getInactiveProp();if(e&&y.default.hasWindow()){var t=this.scrollOffset();t[e]=0,this.scrollTo(t)}},_getInactiveProp:function(){var e=this.option("direction");return e===K?"left":e===U?"top":void 0},_location:function(){return this._strategy.location()},_normalizeLocation:function(e){if(g.default.isPlainObject(e)){var t=p.default.ensureDefined(e.left,e.x),n=p.default.ensureDefined(e.top,e.y);return{left:g.default.isDefined(t)?-t:void 0,top:g.default.isDefined(n)?-n:void 0}}var i=this.option("direction");return{left:i!==K?-e:void 0,top:i!==U?-e:void 0}},_isLocked:function(){return this._locked},_lock:function(){this._locked=!0},_unlock:function(){this.option("disabled")||(this._locked=!1)},_isDirection:function(e){var t=this.option("direction");return e===K?t!==U:e===U?t!==K:t===e},_updateAllowedDirection:function(){var e=this._strategy._allowedDirections();this._isDirection(Y)&&e.vertical&&e.horizontal?this._allowedDirectionValue=Y:this._isDirection(U)&&e.horizontal?this._allowedDirectionValue=U:this._isDirection(K)&&e.vertical?this._allowedDirectionValue=K:this._allowedDirectionValue=null},_allowedDirection:function(){return this._allowedDirectionValue},_container:function(){return this._$container},$content:function(){return this._$content},content:function(){return(0,m.getPublicElement)(this._$content)},scrollOffset:function(){var e=this._location();return{top:-e.top,left:-e.left}},scrollTop:function(){return this.scrollOffset().top},scrollLeft:function(){return this.scrollOffset().left},clientHeight:function(){return this._$container.height()},scrollHeight:function(){return this.$content().outerHeight()-2*this._strategy.verticalOffset()},clientWidth:function(){return this._$container.width()},scrollWidth:function(){return this.$content().outerWidth()},update:function(){if(this._strategy)return(0,L.when)(this._strategy.update()).done(function(){this._updateAllowedDirection()}.bind(this))},scrollBy:function(e){e=this._normalizeLocation(e),(e.top||e.left)&&(this._updateIfNeed(),this._strategy.scrollBy(e))},scrollTo:function(e){e=this._normalizeLocation(e),this._updateIfNeed();var t=this._location();this.option("useNative")||(e=this._strategy._applyScaleRatio(e),t=this._strategy._applyScaleRatio(t));var n=this._normalizeLocation({left:t.left-p.default.ensureDefined(e.left,t.left),top:t.top-p.default.ensureDefined(e.top,t.top)});(n.top||n.left)&&this._strategy.scrollBy(n)},scrollToElement:function(e,t){t=t||{};var n=(0,a.default)(e),i=this.$content().find(e).length,o=n.parents("."+N).length-n.parents("."+j).length===0;if(i&&o){var r={top:0,left:0},s=this.option("direction");s!==K&&(r.left=this._scrollToElementPosition(n,U,t)),s!==U&&(r.top=this._scrollToElementPosition(n,K,t)),this.scrollTo(r)}},_scrollToElementPosition:function(e,t,n){var i=t===K,o=(i?n.top:n.left)||0,a=(i?n.bottom:n.right)||0,r=i?this._strategy.verticalOffset():0,s=this._elementPositionRelativeToContent(e,i?"top":"left"),l=s-r,u=e[i?"outerHeight":"outerWidth"](),c=i?this.scrollTop():this.scrollLeft(),d=i?this.clientHeight():this.clientWidth(),h=c-l+o,p=c-l-u+d-a;return h<=0&&p>=0?c:c-(Math.abs(h)>Math.abs(p)?p:h)},_elementPositionRelativeToContent:function(e,t){for(var n=0;this._hasScrollContent(e);)n+=e.position()[t],e=e.offsetParent();return n},_hasScrollContent:function(e){var t=this.$content();return e.closest(t).length&&!e.is(t)},_updateIfNeed:function(){this.option("updateManually")||this.update()}});(0,S.default)(H,Z),e.exports=Z,e.exports.deviceDependentOptions=X},function(e,t,n){var i=n(2),o=n(4),a=n(1),r=a.isDefined,s=a.isPromise,l=n(0).extend,u=n(13).inArray,c=n(3).each,d=n(6),h=n(12).getPublicElement,p=d.Deferred,f=n(21),g=n(10),_=n(72),m=n(14),v=n(9),y=n(242),b=".dx-state-disabled",x="dx-selectbox",w="dx-selectbox-popup",C="dx-selectbox-container",k="dx-selectbox-popup-wrapper",S=y.inherit({ _supportedKeys:function(){var e=this,t=this.callBase(),n=function(e){var t=this._isEditable();t?this._valueSubstituted()&&(this._preventFiltering=!0):this.option("showClearButton")&&(e.preventDefault(),this.reset()),this._preventSubstitution=!0},i=function(){e.option("searchEnabled")&&e._valueSubstituted()&&e._searchHandler()};return l({},t,{tab:function(){this.option("opened")&&"instantly"===this.option("applyValueMode")&&this._cleanInputSelection(),this._wasSearch()&&this._clearFilter(),t.tab&&t.tab.apply(this,arguments)},upArrow:function(){if(t.upArrow&&t.upArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(-1),!0},downArrow:function(){if(t.downArrow&&t.downArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(1),!0},leftArrow:function(){i(),t.leftArrow&&t.leftArrow.apply(this,arguments)},rightArrow:function(){i(),t.rightArrow&&t.rightArrow.apply(this,arguments)},home:function(){i(),t.home&&t.home.apply(this,arguments)},end:function(){i(),t.end&&t.end.apply(this,arguments)},escape:function(){var e=t.escape&&t.escape.apply(this,arguments);return this._cancelEditing(),!r(e)||e},enter:function(e){var n=this.option("opened"),i=this._input().val().trim(),o=i&&this._list&&!this._list.option("focusedElement");if(!i&&this.option("value")&&this.option("allowClearing"))this.option({selectedItem:null,value:null}),this.close();else{if(this.option("acceptCustomValue"))return e.preventDefault(),o&&(this._valueChangeEventHandler(e),n&&this._toggleOpenState()),n;if(t.enter&&t.enter.apply(this,arguments))return n}},space:function(e){var t=this.option("opened"),n=this.option("searchEnabled"),i=this.option("acceptCustomValue");if(t&&!n&&!i)return e.preventDefault(),this._valueChangeEventHandler(e),!0},backspace:n,del:n})},_getDefaultOptions:function(){return l(this.callBase(),{placeholder:m.format("Select"),fieldTemplate:null,valueChangeEvent:"change",acceptCustomValue:!1,onCustomItemCreating:function(e){r(e.customItem)||(e.customItem=e.text)},showSelectionControls:!1,autocompletionEnabled:!0,allowClearing:!0,tooltipEnabled:!1,openOnFieldClick:!0,showDropDownButton:!0,displayCustomValue:!1,_isAdaptablePopupPosition:!1,useInkRipple:!1,useHiddenSubmitElement:!0})},_init:function(){this.callBase(),this._initCustomItemCreatingAction()},_initMarkup:function(){this.$element().addClass(x),this._renderTooltip(),this.option("useInkRipple")&&this._renderInkRipple(),this.callBase(),this._$container.addClass(C)},_renderInkRipple:function(){this._inkRipple=_.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple&&!this._isEditable()){var i={element:this._inputWrapper(),event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_createPopup:function(){this.callBase(),this._popup.$element().addClass(w)},_popupWrapperClass:function(){return this.callBase()+" "+k},_cancelEditing:function(){!this.option("searchEnabled")&&this._list&&(this._focusListElement(null),this._updateField(this.option("selectedItem")))},_renderOpenedState:function(){this.callBase(),this.option("opened")&&(this._scrollToSelectedItem(),this._focusSelectedElement())},_focusSelectedElement:function(){var e=this._searchValue();if(!e)return void this._focusListElement(null);var t=this._list._itemElements(),n=u(this.option("selectedItem"),this.option("items")),i=n>=0&&!this._isCustomItemSelected()?t.eq(n):null;this._focusListElement(i)},_renderFocusedElement:function(){if(this._list){var e=this._searchValue();if(!e||this.option("acceptCustomValue"))return void this._focusListElement(null);var t=this._list._itemElements(),n=t.not(b).eq(0);this._focusListElement(n)}},_focusListElement:function(e){this._preventInputValueRender=!0,this._list.option("focusedElement",h(e)),delete this._preventInputValueRender},_scrollToSelectedItem:function(){this._list&&this._list.scrollToItem(this._list.option("selectedItem"))},_listContentReadyHandler:function(){this.callBase();var e=this._dataSource&&this._dataSource.paginate();e&&this._needPopupRepaint()||this._scrollToSelectedItem()},_renderValue:function(){return this._renderInputValue(),this._setSubmitValue(),(new p).resolve()},_renderInputValue:function(){return this.callBase().always(function(){this._renderInputValueAsync()}.bind(this))},_renderInputValueAsync:function(){this._renderTooltip(),this._renderInputValueImpl().always(function(){this._refreshSelected()}.bind(this))},_renderInputValueImpl:function(){return this._renderField(),(new p).resolve()},_setNextItem:function(e){var t=this._calcNextItem(e),n=this._valueGetter(t);this._setValue(n)},_setNextValue:function(e){var t=this._dataSource.isLoaded()?(new p).resolve():this._dataSource.load();t.done(function(){var t=this._getSelectedIndex(),n=this._dataSource.pageSize(),i=this._dataSource.isLastPage(),o=t===this._items().length-1;n&&!i&&o&&e>0?(this._popup||this._createPopup(),this._dataSource.isLoading()||this._list._loadNextPage().done(this._setNextItem.bind(this,e))):this._setNextItem(e)}.bind(this))},_setSelectedItem:function(e){var t=!this._isCustomValueAllowed()&&void 0===e;this.callBase(t?null:e),t||this._isEditable()&&!this._isCustomItemSelected()||this._setListOption("selectedItem",this.option("selectedItem"))},_isCustomValueAllowed:function(){return this.option("acceptCustomValue")||this.callBase()},_displayValue:function(e){return e=!r(e)&&this._isCustomValueAllowed()?this.option("value"):e,this.callBase(e)},_listConfig:function(){var e=l(this.callBase(),{pageLoadMode:"scrollBottom",onSelectionChanged:this._getSelectionChangeHandler(),selectedItem:this.option("selectedItem"),onFocusedItemChanged:this._listFocusedItemChangeHandler.bind(this)});return this.option("showSelectionControls")&&l(e,{showSelectionControls:!0,selectionByClick:!0}),e},_listFocusedItemChangeHandler:function(e){if(!this._preventInputValueRender){var t=e.component,n=i(t.option("focusedElement")),o=t._getItemData(n);this._updateField(o)}},_updateField:function(e){var t=this._getTemplateByOption("fieldTemplate");return t&&this.option("fieldTemplate")?void this._renderField():void this._renderDisplayText(this._displayGetter(e))},_getSelectionChangeHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):o.noop},_selectionChangeHandler:function(e){c(e.addedItems||[],function(e,t){this._setValue(this._valueGetter(t))}.bind(this))},_getActualSearchValue:function(){return this._dataSource.searchValue()},_toggleOpenState:function(e){if(!this.option("disabled")){if(e=arguments.length?e:!this.option("opened"),e||this._restoreInputText(!0),this._wasSearch()&&e){this._wasSearch(!1);var t=this.option("showDataBeforeSearch")||0===this.option("minSearchLength");if(t&&this._dataSource){if(this._searchTimer)return;var n=this._getActualSearchValue();n&&this._wasSearch(!0),this._filterDataSource(n||null)}else this._setListOption("items",[])}e&&this._scrollToSelectedItem(),this.callBase(e)}},_renderTooltip:function(){this.option("tooltipEnabled")&&this.$element().attr("title",this.option("displayValue"))},_renderDimensions:function(){this.callBase(),this._setPopupOption("width")},_isValueEqualInputText:function(){var e=this.option("selectedItem"),t=this._displayGetter(e),n=t?String(t):"",i=this._searchValue();return n===i},_popupHidingHandler:function(){this._isValueEqualInputText()&&this._cancelEditing(),this.callBase()},_restoreInputText:function(e){this.option("readOnly")||this._loadItemDeferred&&this._loadItemDeferred.always(function(){var t=this.option("selectedItem");return this.option("acceptCustomValue")?void(e||(this._updateField(t),this._clearFilter())):this.option("searchEnabled")&&!this._searchValue()&&this.option("allowClearing")?void this._clearTextValue():void(this._isValueEqualInputText()||this._renderInputValue().always(function(e){var n=o.ensureDefined(e,t);this._setSelectedItem(n),this._updateField(n),this._clearFilter()}.bind(this)))}.bind(this))},_focusOutHandler:function(e){if(!this._preventNestedFocusEvent(e)){this._clearSearchTimer(),this._restoreInputText();var t=this._wasSearch()&&!this.option("acceptCustomValue")&&this.option("searchEnabled")&&this.option("opened")&&!this._isOverlayNestedTarget(e.relatedTarget);t&&this._searchCanceled()}this.callBase(e)},_isOverlayNestedTarget:function(e){return!!i(e).closest(".".concat(k)).length},_clearTextValue:function(){this.option("value",null)},_shouldOpenPopup:function(){return this._needPassDataSourceToList()},_isFocused:function(){var e=g.getActiveElement();return this.callBase()&&i(e).closest(this._input()).length>0},_renderValueChangeEvent:function(){this._isEditable()&&this.callBase()},_isEditable:function(){return this.option("acceptCustomValue")||this.option("searchEnabled")},_fieldRenderData:function(){var e=this._list&&this.option("opened")&&i(this._list.option("focusedElement"));return e&&e.length?this._list._getItemData(e):this.option("selectedItem")},_readOnlyPropValue:function(){return!this._isEditable()||this.option("readOnly")},_isSelectedValue:function(e){return this._isValueEquals(e,this.option("value"))},_shouldCloseOnItemClick:function(){return!(this.option("showSelectionControls")&&"single"!==this.option("selectionMode"))},_listItemClickHandler:function(e){var t=this._getCurrentValue();this._focusListElement(i(e.itemElement)),this._saveValueChangeEvent(e.event),this._shouldClearFilter()&&this._clearFilter(),this._completeSelection(this._valueGetter(e.itemData)),this._shouldCloseOnItemClick()&&this.option("opened",!1),this.option("searchEnabled")&&t===this._valueGetter(e.itemData)&&this._updateField(e.itemData)},_shouldClearFilter:function(){return this._wasSearch()},_completeSelection:function(e){this._setValue(e)},_loadItem:function(e,t){var n=this,i=new p;return this.callBase(e,t).done(function(e){i.resolve(e)}.bind(this)).fail(function(){var t=n.option("selectedItem");n.option("acceptCustomValue")&&e===n._valueGetter(t)?i.resolve(t):i.reject()}.bind(this)),i.promise()},_loadInputValue:function(e,t){return this._loadItemDeferred=this._loadItem(e).always(t),this._loadItemDeferred},_isCustomItemSelected:function(){var e=this.option("selectedItem"),t=this._searchValue(),n=this._displayGetter(e);return!n||t!==n.toString()},_valueChangeEventHandler:function(e){this.option("acceptCustomValue")&&this._isCustomItemSelected()&&this._customItemAddedHandler(e)},_initCustomItemCreatingAction:function(){this._customItemCreatingAction=this._createActionByOption("onCustomItemCreating")},_createCustomItem:function(e){var t={text:e},n=this._customItemCreatingAction(t),i=o.ensureDefined(n,t.customItem);return r(n)&&f.log("W0015","onCustomItemCreating","customItem"),i},_customItemAddedHandler:function(e){var t=this._searchValue(),n=this._createCustomItem(t);if(this._saveValueChangeEvent(e),void 0===n)throw this._renderValue(),f.Error("E0121");s(n)?d.fromPromise(n).done(this._setCustomItem.bind(this)).fail(this._setCustomItem.bind(this,null)):this._setCustomItem(n)},_setCustomItem:function(e){this._disposed||(e=e||null,this.option("selectedItem",e),this._shouldClearFilter()&&this._filterDataSource(null),this._setValue(this._valueGetter(e)),this._renderDisplayText(this._displayGetter(e)))},_clearValueHandler:function(e){return this.callBase(e),!1},_wasSearch:function(e){return arguments.length?void(this._wasSearchValue=e):this._wasSearchValue},_searchHandler:function(e){return this._preventFiltering?void delete this._preventFiltering:(this._needPassDataSourceToList()&&this._wasSearch(!0),void this.callBase(e))},_dataSourceFiltered:function(e){this.callBase(),null!==e&&(this._renderInputSubstitution(),this._renderFocusedElement())},_valueSubstituted:function(){var e=this._input().get(0),t=0===e.selectionStart&&e.selectionEnd===this._searchValue().length,n=e.selectionStart!==e.selectionEnd;return this._wasSearch()&&n&&!t},_shouldSubstitutionBeRendered:function(){return this.option("autocompletionEnabled")&&!this._preventSubstitution&&this.option("searchEnabled")&&!this.option("acceptCustomValue")&&"startswith"===this.option("searchMode")},_renderInputSubstitution:function(){if(!this._shouldSubstitutionBeRendered())return void delete this._preventSubstitution;var e=this._list&&this._getPlainItems(this._list.option("items"))[0];if(e){var t=this._input(),n=t.val().length;if(0!==n){var i=t.get(0),o=this._displayGetter(e).toString();i.value=o,this._caret({start:n,end:o.length})}}},_cleanInputSelection:function(){var e=this._input().get(0),t=e.value.length;e.selectionStart=t,e.selectionEnd=t},_dispose:function(){this._renderInputValueAsync=o.noop,delete this._loadItemDeferred,this.callBase()},_optionChanged:function(e){switch(e.name){case"_isAdaptablePopupPosition":case"autocompletionEnabled":break;case"onCustomItemCreating":this._initCustomItemCreatingAction();break;case"tooltipEnabled":this._renderTooltip();break;case"displayCustomValue":case"acceptCustomValue":case"showSelectionControls":case"useInkRipple":this._invalidate();break;case"allowClearing":break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});v("dxSelectBox",S),e.exports=S},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(){var e=D.testFormats(G);return{unsupported:e.unsupported,supported:e.supported.concat(j)}}function a(e,t,n){return n=n||o(),e=String(e).toUpperCase(),n.supported.indexOf(e)!==-1?e:void(n.unsupported.indexOf(e)!==-1&&t&&t("W2108",[e]))}function r(e){return"SVG"===e?E.getData:"PDF"===e?A.getData:D.getData}function s(e,t){var n=(0,g.getWindow)().document,i=n.createElement("iframe");i.onload=l(e,t),i.style.visibility="hidden",i.style.position="fixed",i.style.right="0",i.style.bottom="0",n.body.appendChild(i)}function l(e,t){return function(){var t=this,n=this.contentWindow,i=n.document.createElement("img");n.document.body.appendChild(i);var o=function(){t.parentElement.removeChild(t)};i.addEventListener("load",function(){n.focus(),n.print(),o()}),i.addEventListener("error",o),i.src=e}}function u(e,t,n){var i=B-M,o=B+R+H+n*L,a={rect:{width:M-2*H,height:L,x:i+H,y:o},text:{x:i+(e.rtl?M-F:F),y:o+L-V}};return"printing"===t&&(a.separator={stroke:e.button.default.borderColor,"stroke-width":H,cursor:"pointer",sharp:"v",d:"M "+i+" "+(o+L-H)+" L "+(i+M)+" "+(o+L-H)}),a}function c(e,t,n){var i={},o=n.type,a=n.format,r=u(t,o,n.itemIndex),s=(0,_.patchFontOptions)(t.font);s["pointer-events"]="none";var l=e.g().attr({"class":q+"-list-item"});i[K]=o,a&&(i[U]=a);var c=e.rect();c.attr(r.rect).css({cursor:"pointer","pointer-events":"all"}).data(i),c.on(S.default.start+".export",function(){return c.attr({fill:t.button.hover.backgroundColor})}).on(S.default.end+".export",function(){return c.attr({fill:null})}),c.append(l);var d=e.text(n.text).css(s).attr(r.text).append(l);return"printing"===o&&e.path(null,"line").attr(r.separator).append(l),{g:l,rect:c,resetState:function(){return c.attr({fill:null})},fixPosition:function(){var e=d.getBBox();d.move(r.text.x-e.x-(t.rtl?e.width:0))}}}function d(e,t){var n=[];return t.printingEnabled&&n.push(c(e,t,{type:"printing",text:b.default.format("vizExport-printingButtonText"),itemIndex:n.length})),n=t.formats.reduce(function(n,i){return n.push(c(e,t,{type:"exporting",text:b.default.getFormatter("vizExport-exportButtonText")(i),format:i,itemIndex:n.length})),n},n)}function h(e){var t=Y.exec(e);return t?t[1]:void 0}function p(e,t,n,i){return(i||t.format)&&(i=a(i||t.format,e._incidentOccurred)),{format:i||W,fileName:n||t.fileName||"file",proxyUrl:t.proxyUrl,backgroundColor:t.backgroundColor,width:e._canvas.width,height:e._canvas.height,margin:t.margin,forceProxy:t.forceProxy,exportingAction:e._createActionByOption("onExporting"),exportedAction:e._createActionByOption("onExported"),fileSavingAction:e._createActionByOption("onFileSaving")}}Object.defineProperty(t,"__esModule",{value:!0}),t.plugin=t.ExportMenu=t.combineMarkups=t.exportWidgets=t.getMarkup=t.exportFromMarkup=void 0;var f=n(0),g=n(7),_=n(11),m=n(172),v=i(m),y=n(14),b=i(y),x=n(1),w=n(50),C=i(w),k=n(137),S=i(k),I=n(23),T=i(I),D=v.default.image,E=v.default.svg,A=v.default.pdf,O=[T.default.down,T.default.move].join(" "),B=35,P=[[9,12,26,12,26,14,9,14],[9,17,26,17,26,19,9,19],[9,22,26,22,26,24,9,24]],R=4,M=120,V=8,F=15,L=30,H=1,z=10,N=2,$=3,W="PNG",G=[W,"JPEG","GIF"],j=["PDF","SVG"],q="dx-export-menu",K="export-element-type",U="export-element-format",Y=/data-backgroundcolor="([^"]*)"/,X=t.exportFromMarkup=function(e,t){t.format=a(t.format)||W,t.fileName=t.fileName||"file",t.exportingAction=t.onExporting,t.exportedAction=t.onExported,t.fileSavingAction=t.onFileSaving,t.margin=(0,x.isDefined)(t.margin)?t.margin:z,t.backgroundColor=(0,x.isDefined)(t.backgroundColor)?t.backgroundColor:h(e),v.default.export(e,t,r(t.format))},Z=(t.getMarkup=function(e){return Z(e).markup},t.exportWidgets=function(e,n){n=n||{};var i=t.combineMarkups(e,{gridLayout:n.gridLayout,verticalAlignment:n.verticalAlignment,horizontalAlignment:n.horizontalAlignment});n.width=i.width,n.height=i.height,X(i.markup,n)},t.combineMarkups=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Array.isArray(e)?Array.isArray(e[0])||(e=e.map(function(e){return[e]})):e=[[e]];var n=!t.gridLayout,i=e.reduce(function(e,t,i){var o=t.reduce(function(e,t,n){var o=t.getSize(),a=t.option("backgroundColor")||C.default.getTheme(t.option("theme")).backgroundColor;return a&&e.backgroundColors.indexOf(a)===-1&&e.backgroundColors.push(a),e.hOffset=e.width,e.width+=o.width,e.height=Math.max(e.height,o.height),e.itemWidth=Math.max(e.itemWidth,o.width),e.items.push({markup:t.svg(),width:o.width,height:o.height,c:n,r:i,hOffset:e.hOffset}),e},{items:[],height:0,itemWidth:0,hOffset:0,width:0,backgroundColors:e.backgroundColors});return e.rowOffsets.push(e.totalHeight),e.rowHeights.push(o.height),e.totalHeight+=o.height,e.items=e.items.concat(o.items),e.itemWidth=Math.max(e.itemWidth,o.itemWidth),e.maxItemLen=Math.max(e.maxItemLen,o.items.length),e.totalWidth=n?Math.max(e.totalWidth,o.width):e.maxItemLen*e.itemWidth,e},{items:[],rowOffsets:[],rowHeights:[],itemWidth:0,totalHeight:0,maxItemLen:0,totalWidth:0,backgroundColors:[]}),o='data-backgroundcolor="'.concat(1===i.backgroundColors.length?i.backgroundColors[0]:"",'" '),a=function(e){var n=t.verticalAlignment,o=i.rowHeights[e.r]-e.height;return i.rowOffsets[e.r]+("bottom"===n?o:"center"===n?o/2:0)},r=function(e){if(n)return e.hOffset;var o=t.horizontalAlignment,a=i.itemWidth,r=a-e.width;return e.c*a+("right"===o?r:"center"===o?r/2:0)},s=i.totalHeight,l=i.totalWidth;return{markup:"'+i.items.map(function(e){return'').concat(e.markup,"")}).join("")+"",width:l,height:s}}),Q=t.ExportMenu=function(e){var t=this._renderer=e.renderer;this._incidentOccurred=e.incidentOccurred,this._exportTo=e.exportTo,this._print=e.print,this._shadow=t.shadowFilter("-50%","-50%","200%","200%",N,6,$),this._shadow.attr({opacity:.8}),this._group=t.g().attr({"class":q,"hidden-for-export":!0}).linkOn(t.root,{name:"export-menu",after:"peripheral"}),this._buttonGroup=t.g().attr({"class":q+"-button"}).append(this._group),this._listGroup=t.g().attr({"class":q+"-list"}).append(this._group),this._overlay=t.rect(-M+B,B+R,M,0),this._overlay.attr({"stroke-width":H,cursor:"pointer",rx:4,ry:4,filter:this._shadow.id}),this._overlay.data({"export-element-type":"list"}),this.validFormats=o(),this._subscribeEvents()};(0,f.extend)(Q.prototype,{getLayoutOptions:function(){if(this._hiddenDueToLayout)return{width:0,height:0,cutSide:"vertical",cutLayoutSide:"top"};var e=this._buttonGroup.getBBox();return e.cutSide="vertical",e.cutLayoutSide="top",e.height+=z,e.position={vertical:"top",horizontal:"right"},e.verticalAlignment="top",e.horizontalAlignment="right",e},probeDraw:function(){this._fillSpace(),this.show()},shift:function(e,t){this._group.attr({translateY:this._group.attr("translateY")+t})},draw:function(e,t,n){this._group.move(e-B-N-$+n.left,Math.floor(t/2-B/2));var i=this.getLayoutOptions();return(i.width>e||i.height>t)&&this.freeSpace(),this},show:function(){this._group.linkAppend()},hide:function(){this._group.linkRemove()},setOptions:function(e){var t=this;this._options=e,e.formats?e.formats=e.formats.reduce(function(e,n){return n=a(n,t._incidentOccurred,t.validFormats),n&&e.push(n),e},[]):e.formats=this.validFormats.supported.slice(),e.printingEnabled=void 0===e.printingEnabled||e.printingEnabled,e.enabled&&(e.formats.length||e.printingEnabled)?(this.show(),this._updateButton(),this._updateList(),this._hideList()):this.hide()},dispose:function(){this._unsubscribeEvents(),this._group.linkRemove().linkOff(),this._group.dispose(),this._shadow.dispose()},layoutOptions:function(){return this._options.enabled&&{horizontalAlignment:"right",verticalAlignment:"top",weak:!0}},measure:function(){this._fillSpace();var e=this._options.button.margin;return[B+e.left+e.right,B+e.top+e.bottom]},move:function(e){var t=this._options.button.margin;this._group.attr({translateX:Math.round(e[0])+t.left,translateY:Math.round(e[1])+t.top})},_fillSpace:function(){this._hiddenDueToLayout=!1,this.show()},freeSpace:function(){this._incidentOccurred("W2107"),this._hiddenDueToLayout=!0,this.hide()},_hideList:function(){this._listGroup.remove(),this._listShown=!1,this._setButtonState("default"),this._menuItems.forEach(function(e){return e.resetState()})},_showList:function(){this._listGroup.append(this._group),this._listShown=!0,this._menuItems.forEach(function(e){return e.fixPosition()})},_setButtonState:function(e){var t=this._options.button[e];this._button.attr({stroke:t.borderColor,fill:t.backgroundColor}),this._icon.attr({fill:t.color})},_subscribeEvents:function(){var e=this;this._renderer.root.on(T.default.up+".export",function(t){var n=t.target[K];return n?void("button"===n?e._listShown?(e._setButtonState("default"),e._hideList()):(e._setButtonState("focus"),e._showList()):"printing"===n?(e._print(),e._hideList()):"exporting"===n&&(e._exportTo(t.target[U]),e._hideList())):void(e._button&&e._hideList())}),this._listGroup.on(O,function(e){return e.stopPropagation()}),this._buttonGroup.on(T.default.enter,function(){return e._setButtonState("hover")}),this._buttonGroup.on(T.default.leave,function(){return e._setButtonState(e._listShown?"focus":"default")}),this._buttonGroup.on(T.default.down+".export",function(){return e._setButtonState("active")})},_unsubscribeEvents:function(){this._renderer.root.off(".export"),this._listGroup.off(),this._buttonGroup.off()},_updateButton:function(){var e=this._renderer,t=this._options,n={"export-element-type":"button"};this._button||(this._button=e.rect(0,0,B,B).append(this._buttonGroup),this._button.attr({rx:4,ry:4,fill:t.button.default.backgroundColor,stroke:t.button.default.borderColor,"stroke-width":1,cursor:"pointer"}),this._button.data(n),this._icon=e.path(P).append(this._buttonGroup),this._icon.attr({fill:t.button.default.color,cursor:"pointer"}),this._icon.data(n),this._buttonGroup.setTitle(b.default.format("vizExport-titleMenuText")))},_updateList:function(){var e=this._options,t=e.button.default,n=this._listGroup,i=d(this._renderer,e);this._shadow.attr({color:e.shadowColor}),this._overlay.attr({height:i.length*L+2*H,fill:t.backgroundColor,stroke:t.borderColor}),n.clear(),this._overlay.append(n),i.forEach(function(e){return e.g.append(n)}),this._menuItems=i}});t.plugin={name:"export",init:function(){var e=this;this._exportMenu=new t.ExportMenu({renderer:this._renderer,incidentOccurred:this._incidentOccurred,print:function(){return e.print()},exportTo:function(t){return e.exportTo(void 0,t)}}),this._layout.add(this._exportMenu)},dispose:function(){this._exportMenu.dispose()},members:{_getExportMenuOptions:function(){return(0,f.extend)({},this._getOption("export"),{rtl:this._getOption("rtlEnabled",!0)})},_disablePointerEvents:function(){var e=this._renderer.root.attr("pointer-events");return this._renderer.root.attr({"pointer-events":"none"}),e},exportTo:function(e,t){var n=this,i=this._exportMenu,o=p(this,this._getOption("export")||{},e,t);i&&i.hide();var a=this._disablePointerEvents();v.default.export(this._renderer.root.element,o,r(o.format)).done(function(){n._renderer.root.attr({"pointer-events":a})}),i&&i.show()},print:function(){var e=this,t=this._exportMenu,n=p(this,this._getOption("export")||{});n.exportingAction=null,n.exportedAction=null,n.margin=0,n.format="PNG",n.forceProxy=!0,n.fileSavingAction=function(e){s("data:image/png;base64,".concat(e.data),{__test:n.__test}),e.cancel=!0};var i=this._disablePointerEvents();t&&t.hide(),v.default.export(this._renderer.root.element,n,r(n.format)).done(function(){e._renderer.root.attr({"pointer-events":i})}),t&&t.show()}},customize:function(e){var t=e.prototype;e.addChange({code:"EXPORT",handler:function(){this._exportMenu.setOptions(this._getExportMenuOptions()),this._change(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:"export"}),t._optionChangesMap.onExporting="EXPORT",t._optionChangesMap.onExported="EXPORT",t._optionChangesMap.onFileSaving="EXPORT"},fontFields:["export.font"]}},function(e,t,n){function i(){return!0}function o(){return!1}function a(e,t){return!(e.width===t.width&&e.height===t.height&&e.left===t.left&&e.top===t.top&&e.right===t.right&&e.bottom===t.bottom)}function r(e){var t,n=function(){clearTimeout(t),t=setTimeout(e,100)};return n.dispose=function(){return clearTimeout(t),this},n}function s(e){e.component.hasEvent("incidentOccurred")||D.apply(null,[e.target.id].concat(e.target.args||[]))}function l(e){return e.reduce(function(e,t){return t>0&&!e?t:e},0)}function u(e){return g.isDefined(e)&&e>0}function c(e,t){function n(n){var i=e[n];o[i.name]=t(n)}function i(e,t,n){o[e](t),n&&n()}var o={};_(e,function(e,t){t.name&&n(e)});var a;return i.change=function(t){var n=e[t];return n&&((a=a||{})[t]=n),!!n},i.applyChanges=function(){a&&(_(a,function(e,t){n(t.newName||e)}),a=null)},i.dispose=function(){e=t=o=null},i}var d=n(2),h=n(4).noop,p=n(7),f=n(10),g=n(1),_=n(3).each,m=n(156),v=n(126),y=n(44).format,b=n(1).isObject,x=n(0).extend,w=n(267),C=Math.floor,k=n(67),S=n(145),I=n(11).parseScalar,T=n(769),D=T.log,E=n(168),A=n(771),O=n(16),B=n(5),P="rtlEnabled",R="dx-sized-element",M=k.prototype.option,V=function(e,t){return function(n,i){t("incidentOccurred",{target:{id:n,type:"E"===n[0]?"error":"warning",args:i,text:y.apply(null,[T.ERROR_MESSAGES[n]].concat(i||[])),widget:e,version:m}})}},F=function(){var e={};e.ctor=function(e,t){this.callBase(e,t);var n=f.createElement("div"),i=t&&g.isNumeric(t.width)?t.width+"px":"100%",o=t&&g.isNumeric(t.height)?t.height+"px":this._getDefaultSize().height+"px";f.setStyle(n,"width",i),f.setStyle(n,"height",o),f.setClass(n,R),f.insertElement(e,n)};var t=k.inherit(e),n=t.inherit;return t.inherit=function(e){for(var t in e)(g.isFunction(e[t])&&"_"!==t.substr(0,1)||"_dispose"===t||"_optionChanged"===t)&&(e[t]=h);return n.call(this,e)},t},L=!p.hasWindow();e.exports=L?F():k.inherit({_eventsMap:{onIncidentOccurred:{name:"incidentOccurred"},onDrawn:{name:"drawn"}},_getDefaultOptions:function(){return x(this.callBase(),{onIncidentOccurred:s})},_useLinks:!0,_init:function(){var e=this;e._$element.children("."+R).remove(),e.callBase.apply(e,arguments),e._changesLocker=0,e._optionChangedLocker=0,e._changes=S.changes(),e._suspendChanges(),e._themeManager=e._createThemeManager(),e._themeManager.setCallback(function(){e._requestChange(e._themeDependentChanges)}),e._renderElementAttributes(),e._initRenderer();var t=e._useLinks&&e._renderer.root;t&&t.enableLinks().virtualLink("core").virtualLink("peripheral"),e._renderVisibilityChange(),e._attachVisibilityChangeHandlers(),e._toggleParentsScrollSubscription(this._isVisible()),e._initEventTrigger(),e._incidentOccurred=V(e.NAME,e._eventTrigger),e._layout=new A,t&&t.linkAfter("core"),e._initPlugins(),e._initCore(),t&&t.linkAfter(),e._change(e._initialChanges)},_createThemeManager:function(){return new w.BaseThemeManager(this._getThemeManagerOptions())},_getThemeManagerOptions:function(){return{themeSection:this._themeSection,fontFields:this._fontFields}},_initialChanges:["LAYOUT","RESIZE_HANDLER","THEME","DISABLED"],_initPlugins:function(){var e=this;_(e._plugins,function(t,n){n.init.call(e)})},_disposePlugins:function(){var e=this;_(e._plugins.slice().reverse(),function(t,n){n.dispose.call(e)})},_change:function(e){this._changes.add(e)},_suspendChanges:function(){++this._changesLocker},_resumeChanges:function(){var e=this;0===--e._changesLocker&&e._changes.count()>0&&!e._applyingChanges&&(e._renderer.lock(),e._applyingChanges=!0,e._applyChanges(),e._changes.reset(),e._applyingChanges=!1,e._renderer.unlock(),e._optionsQueue&&e._applyQueuedOptions(),e._optionChangedLocker++,e._notify(),e._optionChangedLocker--)},_applyQueuedOptions:function(){var e=this,t=e._optionsQueue;e._optionsQueue=null,e.beginUpdate(),_(t,function(e,t){t()}),e.endUpdate()},_requestChange:function(e){this._suspendChanges(),this._change(e),this._resumeChanges()},_applyChanges:function(){var e,t=this,n=t._changes,i=t._totalChangesOrder,o=i.length;for(e=0;e0&&e.height>0?[e.left,e.top,e.width-e.right,e.height-e.bottom]:[0,0,0,0];n=t.forward(n,this._getMinSize());var i=this._applySize(n)||n;t.backward(i,this._getAlignmentRect()||i)},_getOption:function(e,t){var n=this._themeManager.theme(e),i=this.option(e);return t?void 0!==i?i:n:x(!0,{},n,i)},_setupResizeHandler:function(){var e=this,t=I(this._getOption("redrawOnResize",!0),!0);e._resizeHandler&&e._removeResizeHandler(),e._resizeHandler=r(function(){t?e._requestChange(["CONTAINER_SIZE"]):e._renderer.fixPlacement()}),v.add(e._resizeHandler)},_removeResizeHandler:function(){this._resizeHandler&&(v.remove(this._resizeHandler),this._resizeHandler.dispose(),this._resizeHandler=null)},_onBeginUpdate:h,beginUpdate:function(){var e=this;return e._initialized&&0===e._updateLockCount&&(e._onBeginUpdate(),e._suspendChanges()),e.callBase.apply(e,arguments),e},endUpdate:function(){var e=this;return e.callBase.apply(e,arguments),0===e._updateLockCount&&e._resumeChanges(),e},option:function(e){var t=this;return t._initialized&&t._applyingChanges&&(arguments.length>1||b(e))?(t._optionsQueue=t._optionsQueue||[],void t._optionsQueue.push(t._getActionForUpdating(arguments))):M.apply(t,arguments)},_getActionForUpdating:function(e){var t=this;return t._deprecatedOptionsSuppressed?function(){t._suppressDeprecatedWarnings(),M.apply(t,e),t._resumeDeprecatedWarnings()}:function(){M.apply(t,e)}},_clean:h,_render:h,_optionChanged:function(e){var t=this;if(!t._optionChangedLocker){var n=t.getPartialChangeOptionsName(e),i=[];n.length>0?n.forEach(function(e){return i.push(t._partialOptionChangesMap[e])}):i.push(t._optionChangesMap[e.name]),i=i.filter(function(e){return!!e}),t._eventTrigger.change(e.name)?t._change(["EVENTS"]):i.length>0?t._change(i):t.callBase.apply(t,arguments)}},_notify:h,_optionChangesMap:{size:"CONTAINER_SIZE",margin:"CONTAINER_SIZE",redrawOnResize:"RESIZE_HANDLER",theme:"THEME",rtlEnabled:"THEME",encodeHtml:"THEME",elementAttr:"ELEMENT_ATTR",disabled:"DISABLED"},_partialOptionChangesMap:{},_partialOptionChangesPath:{},getPartialChangeOptionsName:function(e){var t=this,n=e.fullName,i=n.split(/[.]/),o=e.name,a=e.value,r=this._partialOptionChangesPath[o],s=[];return r&&(r===!0?s.push(o):(r.forEach(function(e){n.indexOf(e)>=0&&s.push(e)}),1===i.length&&("object"===g.type(a)?t._addOptionsNameForPartialUpdate(a,r,s):"array"===g.type(a)&&a.length>0&&a.every(function(e){return t._checkOptionsForPartialUpdate(e,r)})&&a.forEach(function(e){return t._addOptionsNameForPartialUpdate(e,r,s)})))),s.filter(function(e,t,n){return n.indexOf(e)===t})},_checkOptionsForPartialUpdate:function(e,t){return!Object.keys(e).some(function(e){return t.indexOf(e)===-1})},_addOptionsNameForPartialUpdate:function(e,t,n){var i=Object.keys(e);this._checkOptionsForPartialUpdate(e,t)&&i.forEach(function(e){return t.indexOf(e)>-1&&n.push(e)})},_visibilityChanged:function(){this.render()},_setThemeAndRtl:function(){this._themeManager.setTheme(this.option("theme"),this.option(P))},_getRendererOptions:function(){return{rtl:this.option(P),encodeHtml:this.option("encodeHtml"),animation:this._getAnimationOptions()}},_setRendererOptions:function(){this._renderer.setOptions(this._getRendererOptions())},svg:function(){return this._renderer.svg()},getSize:function(){var e=this._canvas||{};return{width:e.width,height:e.height}},isReady:o,_dataIsReady:i,_resetIsReady:function(){this.isReady=o},_drawn:function(){var e=this;e.isReady=o,e._dataIsReady()&&e._renderer.onEndAnimation(function(){e.isReady=i}),e._eventTrigger("drawn",{})}}),S.replaceInherit(e.exports)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(29),a=i(o),r=function(e){var t=null!==e&&void 0!==e?e:(0,a.default)().rtlEnabled;return t?"right":"left"};t.getDefaultAlignment=r},function(e,t,n){var i=n(15),o=n(0).extend,a=n(13).inArray,r=n(3).each,s=n(81),l=n(21),u=n(4),c=n(1),d=n(51),h=n(14),p=i.inherit({NAME:"base",defaultMessage:function(e){return h.getFormatter("validation-"+this.NAME)(e)},defaultFormattedMessage:function(e){return h.getFormatter("validation-"+this.NAME+"-formatted")(e)},_isValueEmpty:function(e){return!w.required.validate(e,{})},validate:function(e,t){var n=Array.isArray(e)?e:[e],i=!0;return n.length?n.every(function(e){return i=this._validate(e,t)},this):i=this._validate(null,t),i}}),f=p.inherit({NAME:"required",_validate:function(e,t){return!!c.isDefined(e)&&(e!==!1&&(e=String(e),!t.trim&&c.isDefined(t.trim)||(e=e.trim()),""!==e))}}),g=p.inherit({NAME:"numeric",_validate:function(e,t){return!(t.ignoreEmptyValue===!1||!this._isValueEmpty(e))||(t.useCultureSettings&&c.isString(e)?!isNaN(d.parse(e)):c.isNumeric(e))}}),_=p.inherit({NAME:"range",_validate:function(e,t){if(t.ignoreEmptyValue!==!1&&this._isValueEmpty(e))return!0;var n=w.numeric.validate(e,t),i=c.isDefined(e)&&""!==e,o=n?parseFloat(e):i&&e.valueOf(),a=t.min,r=t.max;if(!n&&!c.isDate(e)&&!i)return!1;if(c.isDefined(a))return c.isDefined(r)?o>=a&&o<=r:o>=a;if(c.isDefined(r))return o<=r;throw l.Error("E0101")}}),m=p.inherit({NAME:"stringLength",_validate:function(e,t){return e=c.isDefined(e)?String(e):"",!t.trim&&c.isDefined(t.trim)||(e=e.trim()),!(!t.ignoreEmptyValue||!this._isValueEmpty(e))||w.range.validate(e.length,o({},t))}}),v=p.inherit({NAME:"custom",validate:function(e,t){if(t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var n=t.validator,i=n&&c.isFunction(n.option)&&n.option("dataGetter"),o=c.isFunction(i)&&i(),a={value:e,validator:n,rule:t};return o&&(a.data=o),t.validationCallback(a)}}),y=p.inherit({NAME:"compare",_validate:function(e,t){if(!t.comparisonTarget)throw l.Error("E0102");if(t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;o(t,{reevaluate:!0});var n=t.comparisonTarget(),i=t.comparisonType||"==";switch(i){case"==":return e==n;case"!=":return e!=n;case"===":return e===n;case"!==":return e!==n;case">":return e>n;case">=":return e>=n;case"<":return e-1&&this.groups.splice(n,1),t},_setDefaultMessage:function(e,t,n){c.isDefined(e.message)||(t.defaultFormattedMessage&&c.isDefined(n)?e.message=t.defaultFormattedMessage(n):e.message=t.defaultMessage())},validate:function(e,t,n){var i={name:n,value:e,brokenRule:null,isValid:!0,validationRules:t},o=this;return r(t||[],function(t,a){var r,s=w[a.type];if(!s)throw l.Error("E0100");return c.isDefined(a.isValid)&&a.value===e&&!a.reevaluate?!!a.isValid||(i.isValid=!1,i.brokenRule=a,!1):(a.value=e,r=s.validate(e,a),a.isValid=r,r||(i.isValid=!1,o._setDefaultMessage(a,s,n),i.brokenRule=a),!!a.isValid&&void 0)}),i},registerValidatorInGroup:function(e,t){var n=k.addGroup(e);a(t,n.validators)<0&&n.validators.push(t)},_shouldRemoveGroup:function(e,t){var n=void 0===e,i=e&&"dxValidationGroup"===e.NAME;return!n&&!i&&!t.length},removeRegisteredValidator:function(e,t){var n=k.getGroupConfig(e),i=n&&n.validators,o=a(t,i);o>-1&&(i.splice(o,1),this._shouldRemoveGroup(e,i)&&this.removeGroup(e))},validateGroup:function(e){var t=k.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.validate()},resetGroup:function(e){var t=k.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.reset()}};k.initGroups(),e.exports=k},function(e,t,n){function i(e){"@babel/helpers - typeof";return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t,n){var i=[],o=function(){return e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()<1},a=function(e){return T(e,2)};return i.push(e.getFullYear()),i.push("-"),i.push(a(e.getMonth()+1)),i.push("-"),i.push(a(e.getDate())),t&&o()||(i.push("T"),i.push(a(e.getHours())),i.push(":"),i.push(a(e.getMinutes())),i.push(":"),i.push(a(e.getSeconds())),e.getMilliseconds()&&(i.push("."),i.push(T(e.getMilliseconds(),3))),n||i.push("Z")),i.join("")}function a(e){var t=new Date(60*new Date(0).getTimezoneOffset()*1e3),n=e.replace("Z","").split("T"),i=/(\d{4})-(\d{2})-(\d{2})/.exec(n[0]),o=/(\d{2}):(\d{2}):(\d{2})\.?(\d{0,7})?/.exec(n[1]);if(t.setFullYear(Number(i[1])),t.setMonth(Number(i[2])-1),t.setDate(Number(i[3])),Array.isArray(o)&&o.length){t.setHours(Number(o[1])),t.setMinutes(Number(o[2])),t.setSeconds(Number(o[3]));var a=(o[4]||"").slice(0,3);a=T(a,3,!0),t.setMilliseconds(Number(a))}return t}function r(e){return/^(?:[a-z]+:)?\/\//i.test(e)}function s(e,t){function n(e){var t=e.indexOf("?");return t>-1?e.substr(0,t):e}var i,o=n(e).split("/"),a=t.split("/");for(o.pop();a.length;)i=a.shift(),".."===i?o.pop():o.push(i);return o.join("/")}var l=n(15),u=n(0).extend,c=n(1),d=n(3),h=n(3).each,p=n(57),f=n(40),g=c.isDefined,_=c.isPlainObject,m=n(4).grep,v=n(6).Deferred,y=n(36).errors,b=n(41),x=/^(\{{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})$/,w=/^\/Date\((-?\d+)((\+|-)?(\d+)?)\)\/$/,C=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]{1}\d{2}(:?)(\d{2})?)?$/,k="application/json;odata=verbose",S=function(e){return"string"===c.type(e)?e.split():e},I=function(e){return/\./.test(e)},T=function(e,t,n){for(e=String(e);e.length-1?"&":"?")+h),l&&(d.$format="json"),{url:p,data:d,dataType:l?"jsonp":"json",jsonp:l&&"$callback",method:r,async:t.async,timeout:t.timeout,headers:t.headers,contentType:f,accepts:{json:[k,"text/plain"].join()},xhrFields:{withCredentials:n.withCredentials}}},A=function e(t,n,i){var o=new v,a=E(t,n,i);return p.sendRequest(a).always(function(n,l){var u,c={deserializeDates:i.deserializeDates,fieldTypes:i.fieldTypes},d=P(n,l,c,a),h=d.error,p=d.data,f=d.nextUrl;h?h.message!==b.XHR_ERROR_UNLOAD&&o.reject(h):i.countOnly?isFinite(d.count)?o.resolve(d.count):o.reject(new y.Error("E4018")):f&&!i.isPaged?(r(f)||(f=s(a.url,f)),e(t,{url:f},i).fail(o.reject).done(function(e){o.resolve(p.concat(e))})):(isFinite(d.count)&&(u={totalCount:d.count}),o.resolve(p,u))}),o.promise()},O=function(e){var t,n=e;"message"in e&&(t=e.message.value?e.message.value:e.message);for(;(n=n.innererror||n.internalexception)&&(t=n.message,!n.internalexception||t.indexOf("inner exception")!==-1););return t},B=function(e,t,n){if("nocontent"===t)return null;var i="Unknown error",o=e,a=200,r={requestOptions:n};if("success"!==t){a=e.status,i=b.errorMessageFromXhr(e,t);try{o=JSON.parse(e.responseText)}catch(e){}}var s=o&&(o.then&&o||o.error||o["odata.error"]||o["@odata.error"]);if(s){i=O(s)||i,r.errorDetails=s,200===a&&(a=500);var l=Number(s.code);isFinite(l)&&l>=400&&(a=l)}return a>=400||0===a?(r.httpStatus=a,u(Error(i),r)):null},P=function(e,t,n,i){var o,a=B(e,t,i);return a?{error:a}:_(e)?(o="d"in e&&(Array.isArray(e.d)||c.isObject(e.d))?R(e,t):M(e,t),F(o,n),o):{data:e}},R=function(e){var t=e.d;return g(t)?(g(t.results)&&(t=t.results),{data:t,nextUrl:e.d.__next,count:parseInt(e.d.__count,10)}):{error:Error("Malformed or unsupported JSON response received")}},M=function(e){var t=e;return g(t.value)&&(t=t.value),{data:t,nextUrl:e["@odata.nextLink"],count:parseInt(e["@odata.count"],10)}},V=l.inherit({ctor:function(e){this._value=e},valueOf:function(){return this._value}}),F=function e(t,n){n=n||{},h(t,function(o,r){if(null!==r&&"object"===i(r))"results"in r&&(t[o]=r.results),e(t[o],n);else if("string"==typeof r){var s=n.fieldTypes,l=!s||"String"!==s[o];if(l&&x.test(r)&&(t[o]=new f(r)),n.deserializeDates!==!1)if(r.match(w)){var u=new Date(Number(RegExp.$1)+60*RegExp.$2*1e3);t[o]=new Date(u.valueOf()+60*u.getTimezoneOffset()*1e3)}else C.test(r)&&(t[o]=new Date(a(t[o]).valueOf()))}})},L=function(e){return"datetime'"+o(e,!0,!0)+"'"},H=function(e){return"'"+e.replace(/'/g,"''")+"'"},z=function(e){return e instanceof V?e.valueOf():e.replace(/\./g,"/")},N=function e(t){return t instanceof Date?o(t,!1,!1):t instanceof f?t.valueOf():Array.isArray(t)?"["+t.map(function(t){return e(t)}).join(",")+"]":$(t)},$=function(e){return e instanceof Date?L(e):e instanceof f?"guid'"+e+"'":e instanceof V?e.valueOf():"string"==typeof e?H(e):String(e)},W=function(e,t){switch(t){case 2:case 3:return $(e);case 4:return N(e);default:throw y.Error("E4002")}},G=function(e,t){if(_(e)){var n=[];return h(e,function(e,i){n.push(z(e)+"="+W(i,t))}),n.join()}return W(e,t)},j={String:function(e){return e+""},Int32:function(e){return Math.floor(e)},Int64:function(e){return e instanceof V?e:new V(e+"L")},Guid:function(e){return e instanceof f?e:new f(e)},Boolean:function(e){return!!e},Single:function(e){return e instanceof V?e:new V(e+"f")},Decimal:function(e){return e instanceof V?e:new V(e+"m")}},q=function(e,t){if(null===t)return null;var n=j[e];if(!n)throw y.Error("E4014",e);return n(t)},K=function(e,t){if(t)return e<4?z(t.join()):m(t,I,!0).join()},U=function(e,t,n){var i=function(){var e={};return t&&d.each(S(t),function(){e[z(this)]=1}),n&&d.each(S(n),function(){var t=this.split(".");t.length<2||(t.pop(),e[z(t.join("."))]=1)}),d.map(e,function(e,t){return t}).join()},o=function(){var e=function(e){var t=function e(t){var n="",i=[],o=[];return d.each(t,function(t,n){Array.isArray(n)&&[].push.apply(i,n),_(n)&&o.push(t+e(n))}),(i.length||o.length)&&(n+="(",i.length&&(n+="$select="+d.map(i,z).join()),o.length&&(i.length&&(n+=";"),n+="$expand="+d.map(o,z).join()),n+=")"),n},n=[];return d.each(e,function(e,i){n.push(e+t(i))}),n.join()},i=function(e,t,n){var i=function e(t,n,i){var o=i(n,t.shift(),t);o!==!1&&e(t,o,i)};d.each(e,function(e,o){i(o.split("."),t,n)})},o={};if(t||n)return t&&i(S(t),o,function(e,t,n){return e[t]=e[t]||{},!!n.length&&e[t]}),n&&i(m(S(n),I),o,function(e,t,n){return n.length?e[t]=e[t]||{}:(e[t]=e[t]||[],e[t].push(t),!1)}),e(o)};return e<4?i():o()};t.sendRequest=A,t.serializePropName=z,t.serializeValue=W,t.serializeKey=G,t.keyConverters=j,t.convertPrimitiveValue=q,t.generateExpand=U,t.generateSelect=K,t.EdmLiteral=V},function(e,t,n){var i=n(511),o=n(9);o("dxList",i),e.exports=i},function(e,t,n){var i=n(0).extend;t.registry={},t.register=function(e,n,o){var a=t.registry,r={};r[e]=a[e]?a[e]:{},r[e][n]=o,a=i(a,r)}},function(e,t,n){var i=n(2),o=n(5),a=n(16),r=n(0).extend,s=n(72),l=n(49),u=n(9),c=n(8),d=n(19),h="dx-checkbox",p="dx-checkbox-icon",f="dx-checkbox-checked",g="dx-checkbox-container",_="dx-checkbox-text",m="dx-checkbox-has-text",v="dx-checkbox-indeterminate",y=100,b=l.inherit({_supportedKeys:function(){var e=function(e){e.preventDefault(),this._clickAction({event:e})};return r(this.callBase(),{space:e})},_getDefaultOptions:function(){return r(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1,text:"",useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}}])},_canValueBeChangedByClick:function(){return!0},_feedbackHideTimeout:y,_initMarkup:function(){this._renderSubmitElement(),this._$container=i("
").addClass(g),this.setAria("role","checkbox"),this.$element().addClass(h),this._renderValue(),this._renderIcon(),this._renderText(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().append(this._$container),this.callBase()},_render:function(){this._renderClick(),this.callBase()},_renderSubmitElement:function(){this._$submitElement=i("").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:2.5,useHoldAnimation:!1,wavesNumber:2,isCentered:!0})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var o={element:e,event:t,wave:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}},_updateFocusState:function(e,t){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,e,t,0)},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,n,t,1)},_renderIcon:function(){this._$icon=i("").addClass(p).prependTo(this._$container)},_renderText:function(){var e=this.option("text");return e?(this._$text||(this._$text=i("").addClass(_)),this._$text.text(e),this._$container.append(this._$text),void this.$element().addClass(m)):void(this._$text&&(this._$text.remove(),this.$element().removeClass(m)))},_renderClick:function(){var e=this,t=c.addNamespace(d.name,e.NAME);e._clickAction=e._createAction(e._clickHandler),o.off(e.$element(),t),o.on(e.$element(),t,function(t){e._clickAction({event:t})})},_clickHandler:function(e){var t=e.component;t._saveValueChangeEvent(e.event),t.option("value",!t.option("value"))},_renderValue:function(){var e=this.$element(),t=this.option("value"),n=void 0===t;e.toggleClass(f,Boolean(t)),e.toggleClass(v,n),this._getSubmitElement().val(t),this.setAria("checked",n?"mixed":t||"false")},_optionChanged:function(e){switch(e.name){case"useInkRipple":this._invalidate();break;case"value":this._renderValue(),this.callBase(e);break;case"text":this._renderText(),this._renderDimensions();break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});u("dxCheckBox",b),e.exports=b},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(332),a=i(o);e.exports=a.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(t,n,i,o,r,s){var u=l(n,i.originalEvent,s);if(!u){var c=f.default.normalizeKeyName(i);"enter"===c||"space"===c?(a(i.target,n),o&&o({event:i})):"tab"===c?r.addClass(_):e.exports.selectView(t,n,i)}}function a(e,t){var n=(0,c.default)(e),i=n.attr("aria-label"),o=r(i,t.element()),a=o.index(n);I=(0,g.extend)({},{ariaLabel:i,index:a},{viewInstance:t})}function r(e,t){var n,i=(0,c.default)(t);return n=e?i.find('[aria-label="'.concat(e,'"][tabindex]')):i.find("[tabindex]")}function s(e){for(var t in e){var n=e[t],i=(0,c.default)(n).first();if(i.length)return i}}function l(e,t,n){var i={event:t,handled:!1};return n?n(i):e._createActionByOption("onKeyDown")(i),i.handled}var u=n(2),c=i(u),d=n(5),h=i(d),p=n(8),f=i(p),g=n(0),_="dx-state-focused",m="dx-cell-focus-disabled",v=".dx-row-focused",y=".dx-datagrid-rowsview .dx-row",b="".concat(y," > td"),x=".dx-treelist-rowsview .dx-row",w="".concat(x," > td"),C={groupPanel:[".dx-datagrid-group-panel .dx-group-panel-item[tabindex]"],columnHeaders:[".dx-datagrid-headers .dx-header-row > td.dx-datagrid-action",".dx-treelist-headers .dx-header-row > td.dx-treelist-action"],filterRow:[".dx-datagrid-headers .dx-datagrid-filter-row .dx-editor-cell .dx-texteditor-input",".dx-treelist-headers .dx-treelist-filter-row .dx-editor-cell .dx-texteditor-input"],rowsView:["".concat(v),"".concat(y,"[tabindex]"),"".concat(b,"[tabindex]"),"".concat(b),"".concat(x,"[tabindex]"),"".concat(w,"[tabindex]"),"".concat(w)],footer:[".dx-datagrid-total-footer .dx-datagrid-summary-item",".dx-treelist-total-footer .dx-treelist-summary-item"],filterPanel:[".dx-datagrid-filter-panel .dx-icon-filter",".dx-treelist-filter-panel .dx-icon-filter"],pager:[".dx-datagrid-pager [tabindex]",".dx-treelist-pager [tabindex]"]},k=!1,S=!1,I=null;e.exports={hiddenFocus:function(e){S=!0,e.focus(),S=!1},registerKeyboardAction:function(e,t,n,i,a,r){if(!t.option("useLegacyKeyboardNavigation")){var s=(0,c.default)(t.element());h.default.on(n,"keydown",i,function(n){return o(e,t,n,a,s,r)}),h.default.on(n,"mousedown",i,function(){k=!0,s.removeClass(_)}),h.default.on(n,"focusin",i,function(){k||S||s.addClass(_),k=!1})}},restoreFocus:function(e){if(!e.option("useLegacyKeyboardNavigation")&&I){var t=I.viewInstance;if(t){var n=r(I.ariaLabel,t.element()),i=n.eq(I.index);I=null,h.default.trigger(i,"focus")}}},selectView:function(e,t,n){var i=f.default.normalizeKeyName(n);if(n.ctrlKey&&("upArrow"===i||"downArrow"===i))for(var o=Object.keys(C),a=o.indexOf(e);a>=0&&a0)}function o(e,t,n,i,o){e.attr({text:t}).setMaxSize(n,o,i).textChanged&&e.setTitle(t)}function a(e){return e>=0?c(e):_}function r(e){var t;return e>=0?t={left:c(e),top:c(e),right:c(e),bottom:c(e)}:(e=e||{},t={left:a(e.left),top:a(e.top),right:a(e.right),bottom:a(e.bottom)}),t}function s(e,t){return e[2]-e[0]t&&this.freeSpace()),n},probeDraw:function(e,t){return this.draw(e,t),this},_correctTitleLength:function(e){var t=this,n=t._options,i=n.margin,a=e-i.left-i.right,r=n.placeholderSize;o(t._titleElement,n.text,a,n,r),t._subtitleElement&&(c(r)>0&&(r-=t._titleElement.getBBox().height),o(t._subtitleElement,n.subtitle.text,a,n.subtitle,r),t._shiftSubtitle()),t._updateBoundingRect();var s=this.getCorrectedLayoutOptions(),l=s.x,u=s.y,d=s.height;this._clipRect.attr({x:l,y:u,width:e,height:d})},getLayoutOptions:function(){return this._boundingRect||null},shift:function(e,t){var n=this,i=n.getLayoutOptions();return n._group.move(e-i.x,t-i.y),n},_updateBoundingRect:function(){var e=this,t=e._options,n=t.margin,i=e._boundingRect,o=e._hasText?e._group.getBBox():{width:0,height:0,x:0,y:0,isEmpty:!0};o.isEmpty||(o.height+=n.top+n.bottom-e._baseLineCorrection,o.width+=n.left+n.right,o.x-=n.left,o.y+=e._baseLineCorrection-n.top),t.placeholderSize>0&&(o.height=t.placeholderSize),i.height=o.height,i.width=o.width,i.x=o.x,i.y=o.y},getCorrectedLayoutOptions:function(){var e=this.getLayoutOptions(),t=this._baseLineCorrection;return h({},e,{y:e.y-t,height:e.height+t})},layoutOptions:function(){return this._hasText?{horizontalAlignment:this._boundingRect.horizontalAlignment,verticalAlignment:this._boundingRect.verticalAlignment,priority:0}:null},measure:function(e){return this.draw(e[0],e[1]),[this._boundingRect.width,this._boundingRect.height]},move:function(e,t){var n=this._boundingRect;s(e,n)?this.shift(t[0],t[1]):this.shift(Math.round(e[0]),Math.round(e[1]))},freeSpace:function(){var e=this;e._params.incidentOccurred("W2103"),e._group.linkRemove(),e._boundingRect.width=e._boundingRect.height=0},getOptions:function(){return this._options},changeLink:function(e){this._group.linkRemove(),this._group.linkOn(e,"title")}}),t.Title=l,t.plugin={name:"title",init:function(){var e=this;e._title=new t.Title({renderer:e._renderer,cssClass:e._rootClassPrefix+"-title",incidentOccurred:e._incidentOccurred}),e._layout.add(e._title)},dispose:function(){this._title.dispose(),this._title=null},customize:function(e){e.addChange({code:"TITLE",handler:function(){this._title.update(this._themeManager.theme("title"),this.option("title"))&&this._change(["LAYOUT"])},isThemeDependent:!0,option:"title",isOptionChange:!0})},fontFields:["title.font","title.subtitle.font"]}},function(e,t,n){function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=0;return p(e,function(e,n){t+=n}),t}function a(e){return h(e,[R,P,A,O,B])!==-1}function r(e,t){return o(b(e,function(e){return(e-t)*(e-t)}))/e.length}function s(e,t,n){var i=n.getOptions().valueErrorBar,o=n.getValueFields()[0],a=i.lowValueField||E,r=i.highValueField||D;if(n.areErrorBarsVisible()&&void 0===i.type){var s=t.reduce(function(e,t){return v(t[a])&&(e[0]+=t[o]-t[a],e[1]++),v(t[r])&&(e[2]+=t[r]-t[o],e[3]++),e},[0,0,0,0]);s[1]&&(e[a]=e[o]-s[0]/s[1]),s[2]&&(e[r]=e[o]+s[2]/s[3])}return e}function l(e,t,n){var i=n.getOptions().valueErrorBar,o=i.lowValueField||E,a=i.highValueField||D;return n.areErrorBarsVisible()&&void 0===i.type&&(e[o]=0,e[a]=0,e=t.reduce(function(e,t){return e[o]+=t[o],e[a]+=t[a],e},e)),e}function u(e){return function(t,n){var o=t.intervalStart,a=t.data,r=n.getValueFields()[0],s=a[0];return s=a.reduce(function(t,n){var i=n[r];return null===t[r]&&(t=n),null!==i&&e(i,t[r])?n:t},s),d({},s,i({},n.getArgumentField(),o))}}function c(e,t,n){var i=!0;for(var o in t){var a="argument"===o;if(a||"size"===o?!v(e[o]):void 0===e[o]){var r=t[o];a||(n[r]=(n[r]||0)+1),i=!1}}return i}var d=n(0).extend,h=n(13).inArray,p=n(3).each,f=n(273),g=n(1),_=n(11),m=n(4).noop,v=g.isDefined,y=g.isString,b=_.map,x=_.normalizeEnum,w=Math,C=w.abs,k=w.sqrt,S=w.max,I=12,T=400,D="highError",E="lowError",A="variance",O="stddeviation",B="stderror",P="percent",R="fixed",M="undefined",V="discrete",F="logarithmic",L="datetime";t.chart={},t.polar={};var H={_defaultDuration:T,_defaultTrackerWidth:I,_applyStyle:m,_updateOptions:m,_parseStyle:m,_prepareSegment:m,_drawSegment:m,_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup)},_createLegendState:function(e,t){return{fill:e.color||t,hatching:e.hatching?d({},e.hatching,{direction:"right"}):void 0}},_applyElementsClipRect:function(e){e["clip-path"]=this._paneClipRectID},_applyMarkerClipRect:function(e){e["clip-path"]=this._forceClipping?this._paneClipRectID:null},_createGroup:function(e,t,n,i){var o=t[e]=t[e]||this._renderer.g();n&&o.append(n),i&&o.attr(i)},_applyClearingSettings:function(e){e.opacity=null,e.scale=null,this._options.rotated?e.translateX=null:e.translateY=null},_createGroups:function(){var e=this;e._createGroup("_markersGroup",e,e._group),e._createGroup("_labelsGroup",e)},_setMarkerGroupSettings:function(){var e=this,t=e._createPointStyles(e._getMarkerGroupOptions()).normal;t.class="dxc-markers",t.opacity=1,e._applyMarkerClipRect(t),e._markersGroup.attr(t)},getVisibleArea:function(){return this._visibleArea},areErrorBarsVisible:function(){var e=this._options.valueErrorBar;return e&&this._errorBarsEnabled()&&"none"!==e.displayMode&&(a(x(e.type))||v(e.lowValueField)||v(e.highValueField))},groupPointsByCoords:function(e){var t=[];return p(this.getVisiblePoints(),function(n,i){var o=parseInt(e?i.vy:i.vx);t[o]?Array.isArray(t[o])?t[o].push(i):t[o]=[t[o],i]:t[o]=i}),t},_createErrorBarGroup:function(e){var t,n=this,i=n._options.valueErrorBar;n.areErrorBarsVisible()&&(t={"class":"dxc-error-bars",stroke:i.color,"stroke-width":i.lineWidth,opacity:e?.001:i.opacity||1,"stroke-linecap":"square",sharp:!0,"clip-path":n._forceClipping?n._paneClipRectID:n._widePaneClipRectID},n._createGroup("_errorBarGroup",n,n._group,t))},_setGroupsSettings:function(e){var t=this;t._setMarkerGroupSettings(),t._setLabelGroupSettings(e),t._createErrorBarGroup(e)},_getCreatingPointOptions:function(){var e,t,n=this,i=n._predefinedPointOptions;return i||(e=n._getPointOptions(),n._predefinedPointOptions=i=d(!0,{styles:{}},e),t=e.styles&&e.styles.normal||{},i.styles=i.styles||{},i.styles.normal={"stroke-width":t["stroke-width"],r:t.r,opacity:t.opacity}),i},_getPointOptions:function(){return this._parsePointOptions(this._preparePointOptions(),this._options.label)},_getOptionsForPoint:function(){return this._options.point},_parsePointStyle:function(e,t,n,i){var o=e.border||{},a=void 0!==e.size?e.size:i;return{fill:e.color||t,stroke:o.color||n,"stroke-width":o.visible?o.width:0,r:a/2+(o.visible&&0!==a?~~(o.width/2)||0:0)}},_createPointStyles:function(e){var t=this,n=e.color||t._options.mainSeriesColor,i=t._options.containerBackgroundColor,o=t._parsePointStyle(e,n,n);return o.visibility=e.visible?"visible":"hidden",{normal:o,hover:t._parsePointStyle(e.hoverStyle,i,n,e.size), selection:t._parsePointStyle(e.selectionStyle,i,n,e.size)}},_checkData:function(e,t,n){return n=n||{value:this.getValueFields()[0]},n.argument=this.getArgumentField(),c(e,n,t||{})&&e.value===e.value},getValueRangeInitialValue:function(){},_getRangeData:function(){return f.getRangeData(this)},_getPointDataSelector:function(){var e,t,n=this,i=this.getValueFields()[0],o=this.getArgumentField(),a=this.getTagField(),r=this.areErrorBarsVisible();if(r){var s=this._options.valueErrorBar;e=s.lowValueField||E,t=s.highValueField||D}return function(s){var l={value:n._processEmptyValue(s[i]),argument:s[o],tag:s[a],data:s};return r&&(l.lowError=s[e],l.highError=s[t]),l}},_errorBarsEnabled:function(){return this.valueAxisType!==V&&this.valueAxisType!==F&&this.valueType!==L},_drawPoint:function(e){var t=e.point;t.isInVisibleArea()?(t.clearVisibility(),t.draw(this._renderer,e.groups,e.hasAnimation,e.firstDrawing),this._drawnPoints.push(t)):t.setInvisibility()},_animateComplete:function(){var e=this,t={duration:e._defaultDuration};e._labelsGroup&&e._labelsGroup.animate({opacity:1},t),e._errorBarGroup&&e._errorBarGroup.animate({opacity:e._options.valueErrorBar.opacity||1},t)},_animate:function(){var e=this,t=e._drawnPoints.length-1;p(e._drawnPoints||[],function(n,i){i.animate(n===t?function(){e._animateComplete()}:void 0,{translateX:i.x,translateY:i.y})})},_defaultAggregator:"avg",_aggregators:{avg:function(e,t){var n,o=e.data,a=e.intervalStart;if(o.length){var r=t.getValueFields()[0],l=o.reduce(function(e,t){var n=t[r];return v(n)?(e[0]+=n,e[1]++):null===n&&e[2]++,e},[0,0,0]);return s((n={},i(n,r,l[2]===o.length?null:l[0]/l[1]),i(n,t.getArgumentField(),a),n),o,t)}},sum:function(e,t){var n,o=e.intervalStart,a=e.data;if(a.length){var r=t.getValueFields()[0],s=a.reduce(function(e,t){var n=t[r];return void 0!==n&&(e[0]+=n),null===n?e[1]++:void 0===n&&e[2]++,e},[0,0,0]),u=s[0];if(s[1]===a.length&&(u=null),s[2]!==a.length)return l((n={},i(n,r,u),i(n,t.getArgumentField(),o),n),a,t)}},count:function(e,t){var n,o=e.data,a=e.intervalStart,r=t.getValueFields()[0];return n={},i(n,t.getArgumentField(),a),i(n,r,o.filter(function(e){return void 0!==e[r]}).length),n},min:u(function(e,t){return et})},_endUpdateData:function(){delete this._predefinedPointOptions},getArgumentField:function(){return this._options.argumentField||"arg"},getValueFields:function(){var e,t,n=this._options,i=n.valueErrorBar,o=[n.valueField||"val"];return i&&(e=i.lowValueField,t=i.highValueField,y(e)&&o.push(e),y(t)&&o.push(t)),o},_calculateErrorBars:function(e){if(this.areErrorBarsVisible()){var t,n,i,a,s,l=this,u=l._options,c=u.valueErrorBar,d=x(c.type),h=parseFloat(c.value),f=l.getValueFields()[0],g=c.lowValueField||E,_=c.highValueField||D,m=function(e,n){t=n.value,n.lowError=t-h,n.highError=t+h};switch(d){case R:s=m;break;case P:s=function(e,n){t=n.value;var i=t*h/100;n.lowError=t-i,n.highError=t+i};break;case M:s=function(e,t){t.lowError=t.data[g],t.highError=t.data[_]};break;default:switch(n=b(e,function(e){return v(e.data[f])?e.data[f]:null}),i=n.length,h=h||1,d){case A:h=r(n,o(n)/i)*h,s=m;break;case O:a=o(n)/i,h=k(r(n,a))*h,s=function(e,t){t.lowError=a-h,t.highError=a+h};break;case B:h=k(r(n,o(n)/i)/i)*h,s=m}}s&&p(e,s)}},_patchMarginOptions:function(e){var t=this._getCreatingPointOptions(),n=t.styles,i=[n.normal,n.hover,n.selection].reduce(function(e,t){return S(e,2*t.r+t["stroke-width"])},0);return e.size=t.visible?i:0,e.sizePointNormalState=t.visible?2*n.normal.r+n.normal["stroke-width"]:2,e},usePointsToDefineAutoHiding:function(){return!0}};t.chart=d({},H,{drawTrackers:function(){var e,t,n=this,i=n._segments||[],o=n._options.rotated;n.isVisible()&&(i.length&&(e=n._trackers=n._trackers||[],t=n._trackersGroup=(n._trackersGroup||n._renderer.g().attr({fill:"gray",opacity:.001,stroke:"gray","class":"dxc-trackers"})).attr({"clip-path":this._paneClipRectID||null}).append(n._group),p(i,function(i,o){e[i]?n._updateTrackerElement(o,e[i]):e[i]=n._drawTrackerElement(o).data({"chart-data-series":n}).append(t)})),n._trackersTranslator=n.groupPointsByCoords(o))},checkAxisVisibleAreaCoord:function(e,t){var n=e?this.getArgumentAxis():this.getValueAxis(),i=n.getVisibleArea();return v(t)&&i[0]<=t&&i[1]>=t},checkSeriesViewportCoord:function(e,t){return!0},getSeriesPairCoord:function(e,t){for(var n=null,i=!t&&!this._options.rotated||t&&this._options.rotated,o=i?"vy":"vx",a=i?"vx":"vy",r=this.getVisiblePoints(),s=0;s0&&(s.length>1?n.findNeighborPointsByCoord(e,a,r.slice(0),s,function(e,t){l.push([e,t])}):s[0][a]===e&&l.push([s[0],s[0]])),l},findNeighborPointsByCoord:function(e,t,n,i,o){var a=i;n.length>0&&(n.splice(0,0,i[i.indexOf(n[0])-1]),n.splice(n.length,0,i[i.indexOf(n[n.length-1])+1]),a=n),a.forEach(function(n,i){var r=a[i+1];n&&r&&(n[t]<=e&&r[t]>=e||n[t]>=e&&r[t]<=e)&&o(n,r)})},getNeighborPoint:function(e,t){var n,i=this._options.rotated?t:e,o=i,a=this._trackersTranslator,r=null,s=this._options.rotated?e:t,l=this._options.rotated?"vx":"vy";if(this.isVisible()&&a){r=a[i];do r=a[o]||a[i],i--,o++;while((i>=0||o=i&&(n=i,r=t)}))}return r},_applyVisibleArea:function(){var e=this,t=e._options.rotated,n=(t?e.getValueAxis():e.getArgumentAxis()).getVisibleArea(),i=(t?e.getArgumentAxis():e.getValueAxis()).getVisibleArea();e._visibleArea={minX:n[0],maxX:n[1],minY:i[0],maxY:i[1]}},getPointCenterByArg:function(e){var t=this.getPointsByArg(e)[0];return t?t.getCenterCoord():void 0}}),t.polar=d({},H,{drawTrackers:function(){t.chart.drawTrackers.call(this);var e,n=this._trackersTranslator;this.isVisible()&&(p(n,function(t,n){if(n)return e=t,!1}),n[e+360]=n[e])},getNeighborPoint:function(e,n){var i=_.convertXYToPolar(this.getValueAxis().getCenter(),e,n);return t.chart.getNeighborPoint.call(this,i.phi,i.r)},_applyVisibleArea:function(){var e=this,t=e.getValueAxis().getCanvas();e._visibleArea={minX:t.left,maxX:t.width-t.right,minY:t.top,maxY:t.height-t.bottom}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){e.css({left:"-9999px"}).detach()}function a(e,t){var n=e;switch(t){case"argument":n={format:e.argumentFormat};break;case"percent":n={format:{type:"percent",precision:e.format&&e.format.percentPrecision}}}return n}function r(e){var t,n=this;n._eventTrigger=e.eventTrigger,n._widgetRoot=e.widgetRoot,n._wrapper=(0,f.default)("
").css({position:"absolute",overflow:"hidden",pointerEvents:"none"}).addClass(e.cssClass),n._renderer=t=new _.default.Renderer({pathModified:e.pathModified,container:n._wrapper[0]});var i=t.root;i.attr({"pointer-events":"none"}),n._text=t.text(void 0,0,0),n._textGroupHtml=(0,f.default)("
").css({position:"absolute",padding:0,margin:0,border:"0px solid transparent"}).appendTo(n._wrapper),n._textHtml=(0,f.default)("
").css({position:"relative",display:"inline-block",padding:0,margin:0,border:"0px solid transparent"}).appendTo(n._textGroupHtml)}var s=n(10),l=i(s),u=n(7),c=i(u),d=n(33),h=i(d),p=n(2),f=i(p),g=n(168),_=i(g),m=n(1),v=i(m),y=n(0),b=n(11),x=i(b),w=n(64),C=n(405),k=Math.ceil,S=Math.max,I=Math.min,T=c.default.getWindow();r.prototype={constructor:r,dispose:function(){this._wrapper.remove(),this._renderer.dispose(),this._options=this._widgetRoot=null},_getContainer:function(){var e=this._options,t=(0,f.default)(this._widgetRoot).closest(e.container);return 0===t.length&&(t=(0,f.default)(e.container)),(t.length?t:(0,f.default)("body")).get(0)},setOptions:function(e){var t=this;e=e||{};var n=this;n._options=e,n._textFontStyles=x.default.patchFontOptions(e.font),n._textFontStyles.color=e.font.color,n._wrapper.css({zIndex:e.zIndex}),n._customizeTooltip=e.customizeTooltip;var i=n._textGroupHtml,o=n._textHtml;return this.plaque&&this.plaque.clear(),this.plaque=new C.Plaque({opacity:n._options.opacity,color:n._options.color,border:n._options.border,paddingLeftRight:n._options.paddingLeftRight,paddingTopBottom:n._options.paddingTopBottom,arrowLength:n._options.arrowLength,arrowWidth:20,shadow:n._options.shadow,cornerRadius:n._options.cornerRadius},n,n._renderer.root,function(a,r){var s=a._state;s.html?s.isRendered||(n._text.attr({text:""}),i.css({color:s.textColor,width:null}),o.html(s.html),s.isRendered=!0):n._text.css({fill:s.textColor}).attr({text:s.text,"class":e.cssClass}).append(r.attr({align:e.textAlignment})),t.plaque.customizeCloud({fill:s.color,stroke:s.borderColor})},(!0),function(e,t){var n=e._state;if(n.html){var i,a=T.getComputedStyle;return a?(i=a(o.get(0)),i={x:0,y:0,width:k(parseFloat(i.width)),height:k(parseFloat(i.height))}):(i=o.get(0).getBoundingClientRect(),i={x:0,y:0,width:k(i.width?i.width:i.right-i.left),height:k(i.height?i.height:i.bottom-i.top)}),i}return t.getBBox()},function(e,t,i,o){var a=e._state;a.html?n._textGroupHtml.css({left:i,top:o}):t.move(i,o)}),n},setRendererOptions:function(e){return this._renderer.setOptions(e),this._textGroupHtml.css({direction:e.rtl?"rtl":"ltr"}),this},render:function(){var e=this;o(e._wrapper);var t={};for(var n in e._textFontStyles)t[h.default.camelize(n)]=e._textFontStyles[n];return e._textGroupHtml.css(t),e._text.css(e._textFontStyles),e._eventData=null,e},update:function(e){return this.setOptions(e).render()},_prepare:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._customizeTooltip,i=this._options,o={};return v.default.isFunction(n)&&(o=n.call(e,e),o=v.default.isPlainObject(o)?o:{},"text"in o&&(t.text=v.default.isDefined(o.text)?String(o.text):""),"html"in o&&(t.html=v.default.isDefined(o.html)?String(o.html):"")),"text"in t||"html"in t||(t.text=e.valueText||e.description||""),t.color=o.color||i.color,t.borderColor=o.borderColor||(i.border||{}).color,t.textColor=o.fontColor||(i.font||{}).color,!!t.text||!!t.html},show:function(e,t,n,i){var o=this,a={};return!!o._prepare(e,a,i)&&(o._state=a,o._wrapper.appendTo(o._getContainer()),o._textHtml.html(""),this.plaque.clear().draw((0,y.extend)({},o._options,{canvas:o._getCanvas()},a,{x:t.x,y:t.y,offset:t.offset})),o.moveWrapper(),o._eventData&&o._eventTrigger("tooltipHidden",o._eventData),o._eventData=n,o._eventTrigger("tooltipShown",o._eventData),!0)},hide:function(){var e=this;o(e._wrapper),e._eventData&&e._eventTrigger("tooltipHidden",e._eventData),e._eventData=null},move:function(e,t,n){this.plaque.draw({x:e,y:t,offset:n,canvas:this._getCanvas()}),this.moveWrapper()},moveWrapper:function(){var e=this,t=this.plaque.getBBox();e._renderer.resize(t.width,t.height);var n=e._wrapper.css({left:0,top:0}).offset(),i=t.x,o=t.y;e._wrapper.css({left:i-n.left,top:o-n.top}),this.plaque.moveRoot(-i,-o),this._state.html&&(e._textHtml.css({left:-i,top:-o}),e._textGroupHtml.css({width:t.width}))},formatValue:function(e,t){var n=t?a(this._options,t):this._options;return(0,w.format)(e,n.format)},getLocation:function(){return x.default.normalizeEnum(this._options.location)},isEnabled:function(){return!!this._options.enabled},isShared:function(){return!!this._options.shared},_getCanvas:function(){var e=this._getContainer(),t=e.getBoundingClientRect(),n=l.default.getDocumentElement(),i=l.default.getDocument(),o=T.pageXOffset||n.scrollLeft||0,a=T.pageYOffset||n.scrollTop||0,r={left:o,top:a,width:n.clientWidth+o||0,height:S(i.body.scrollHeight,n.scrollHeight,i.body.offsetHeight,n.offsetHeight,i.body.clientHeight,n.clientHeight)||0,right:0,bottom:0};return e!==l.default.getBody()&&(o=S(r.left,r.left+t.left),a=S(r.top,r.top+t.top),r.width=I(t.width,r.width)+o+r.left,r.height=I(t.height,r.height)+a+r.top,r.left=o,r.top=a),r}},t.Tooltip=r,t.plugin={name:"tooltip",init:function(){this._initTooltip()},dispose:function(){this._disposeTooltip()},members:{_initTooltip:function(){this._tooltip=new t.Tooltip({cssClass:this._rootClassPrefix+"-tooltip",eventTrigger:this._eventTrigger,pathModified:this.option("pathModified"),widgetRoot:this.element()})},_disposeTooltip:function(){this._tooltip.dispose(),this._tooltip=null},_setTooltipRendererOptions:function(){this._tooltip.setRendererOptions(this._getRendererOptions())},_setTooltipOptions:function(){this._tooltip.update(this._getOption("tooltip"))}},extenders:{_stopCurrentHandling:function(){this._tooltip&&this._tooltip.hide()}},customize:function(e){var t=e.prototype;t._eventsMap.onTooltipShown={name:"tooltipShown"},t._eventsMap.onTooltipHidden={name:"tooltipHidden"},e.addChange({code:"TOOLTIP_RENDERER",handler:function(){this._setTooltipRendererOptions()},isThemeDependent:!0,isOptionChange:!0}),e.addChange({code:"TOOLTIP",handler:function(){this._setTooltipOptions()},isThemeDependent:!0,isOptionChange:!0,option:"tooltip"})},fontFields:["tooltip.font"]}},function(e,t,n){function i(e,t){return te}function a(e,t,n,i){var o=l(t);l(e)?o&&i(e,t)&&n(t):o&&n(t)}var r=n(1),s=n(0).extend,l=r.isDefined,u=r.isDate,c=r.isFunction,d=n(11).unique,h="min",p="max",f="minVisible",g="maxVisible",_="base",m="axisType",v=t.Range=function(e){e&&s(this,e)};v.prototype={constructor:v,addRange:function(e){var t=this,n=t.categories,r=e.categories,s=function(n,i){a(t[n],e[n],function(e){t[n]=e},i)},u=function(e,n,i){a(t[e],t[n],function(n){l(t[e])&&(t[e]=n)},i)},c=function(n){t[n]=t[n]||e[n]};return c("invert"),c(m),c("dataType"),c("isSpacedMargin"),c("checkMinDataVisibility"),c("checkMaxDataVisibility"),"logarithmic"===t[m]?c(_):t[_]=void 0,s(h,i),s(p,o),"discrete"===t[m]?(c(f),c(g)):(s(f,i),s(g,o)),s("interval",i),u(h,f,i),u(h,g,i),u(p,g,o),u(p,f,o),void 0===n?t.categories=r:t.categories=r?d(n.concat(r)):n,t},isEmpty:function(){return!(l(this[h])&&l(this[p])||this.categories&&0!==this.categories.length)},correctValueZeroLevel:function(){function e(e,n){t[e]<0&&t[n]<0&&(t[n]=0),t[e]>0&&t[n]>0&&(t[e]=0)}var t=this;return"logarithmic"===t[m]||u(t[p])||u(t[h])?t:(e(h,p),e(f,g),t)},sortCategories:function(e){if(e!==!1&&this.categories)if(Array.isArray(e)){var t=e.map(function(e){return e.valueOf()}),n=this.categories.filter(function(e){return t.indexOf(e.valueOf())===-1});this.categories=e.concat(n)}else{var i=!c(e);i&&"string"!==this.dataType?e=function(e,t){return e.valueOf()-t.valueOf()}:i&&(e=!1),e&&this.categories.sort(e)}}}},function(e,t,n){var i=n(2),o=n(29),a=n(7).getWindow(),r=n(1),s=n(3).each,l=n(15),u=n(21),c=l.inherit({ctor:function(e,t){t=t||{},this._action=e,this._context=t.context||a,this._beforeExecute=t.beforeExecute,this._afterExecute=t.afterExecute,this._component=t.component,this._validatingTargetName=t.validatingTargetName;var n=this._excludeValidators={};if(t.excludeValidators)for(var i=0;i=1024&&n<=t.length-1;)i/=1024,n++;return i=Math.round(10*i)/10,"".concat(i," ").concat(t[n])};e.exports.getFileExtension=a,e.exports.getName=r,e.exports.getParentPath=s,e.exports.getPathParts=l,e.exports.pathCombine=u,e.exports.getDisplayFileSize=c},function(e,t,n){e.exports=n(534)},function(e,t,n){function i(e){"@babel/helpers - typeof";return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(2),a=n(52),r=n(1).isDate,s=n(3).each,l=n(32),u=function(){return["year","day","month","day"]},c=6e4,d=60*c*24,h=365*d,p=function(e){var t=i(e);return"string"===t?"format":"object"===t&&void 0!==e.type?e.type:null},f={SUPPORTED_FORMATS:["date","time","datetime"],DATE_COMPONENT_TEXT_FORMATTER:function(e,t){var n=o("
").addClass("dx-dateview-formatter-container");return o("").text(e).addClass("dx-dateview-value-formatter").appendTo(n),o("").text(t).addClass("dx-dateview-name-formatter").appendTo(n),n},ONE_MINUTE:c,ONE_DAY:d,ONE_YEAR:h,MIN_DATEVIEW_DEFAULT_DATE:new Date(1900,0,1),MAX_DATEVIEW_DEFAULT_DATE:function(){var e=new Date;return new Date(e.getFullYear()+50,e.getMonth(),e.getDate(),23,59,59)}(),FORMATS_INFO:{date:{getStandardPattern:function(){return"yyyy-MM-dd"},components:u()},time:{getStandardPattern:function(){return"HH:mm"},components:["hours","minutes","seconds","milliseconds"]},datetime:{getStandardPattern:function(){var e;return function(){var t="yyyy-MM-ddTHH:mmZ",n="2000-01-01T01:01Z",i=o("").attr("type","datetime");i.val(n),i.val()&&(e=t)}(),e||(e="yyyy-MM-ddTHH:mm:ssZ"),f.FORMATS_INFO.datetime.getStandardPattern=function(){return e},e},components:u().concat(["hours","minutes","seconds","milliseconds"])},"datetime-local":{getStandardPattern:function(){return"yyyy-MM-ddTHH:mm:ss"},components:u().concat(["hours","minutes","seconds"])}},FORMATS_MAP:{date:"shortdate",time:"shorttime",datetime:"shortdateshorttime"},SUBMIT_FORMATS_MAP:{date:"date",time:"time",datetime:"datetime-local"},toStandardDateFormat:function(e,t){var n=f.FORMATS_INFO[t].getStandardPattern();return a.serializeDate(e,n)},fromStandardDateFormat:function(e){var t=a.dateParser(e);return r(t)?t:void 0},getMaxMonthDay:function(e,t){return new Date(e,t+1,0).getDate()},mergeDates:function(e,t,n){if(!t)return t||null;if(!e||isNaN(e.getTime())){var i=new Date(null);e=new Date(i.getFullYear(),i.getMonth(),i.getDate())}var o=new Date(e.valueOf()),a=f.FORMATS_INFO[n];return s(a.components,function(){var e=f.DATE_COMPONENTS_INFO[this];o[e.setter](t[e.getter]())}),o},getLongestCaptionIndex:function(e){var t,n=0,i=0;for(t=0;ti&&(n=t,i=e[t].length);return n},formatUsesMonthName:function(e){return l.formatUsesMonthName(e)},formatUsesDayName:function(e){return l.formatUsesDayName(e)},getLongestDate:function(e,t,n){var i=p(e),o=9;i&&!f.formatUsesMonthName(i)||(o=f.getLongestCaptionIndex(t));var a=new Date(1888,o,21,23,59,59,999);if(!i||f.formatUsesDayName(i)){var r=a.getDate()-a.getDay()+f.getLongestCaptionIndex(n);a.setDate(r)}return a},normalizeTime:function(e){e.setSeconds(0),e.setMilliseconds(0)}};f.DATE_COMPONENTS_INFO={year:{getter:"getFullYear",setter:"setFullYear",formatter:function(e,t,n){var i=new Date(n.getTime());return i.setFullYear(e),l.format(i,"yyyy")},startValue:void 0,endValue:void 0},day:{getter:"getDate",setter:"setDate",formatter:function(e,t,n){var i=new Date(n.getTime());return i.setDate(e),t?f.DATE_COMPONENT_TEXT_FORMATTER(e,l.getDayNames()[i.getDay()]):l.format(i,"d")},startValue:1,endValue:void 0},month:{getter:"getMonth",setter:"setMonth",formatter:function(e,t){var n=l.getMonthNames()[e];return t?f.DATE_COMPONENT_TEXT_FORMATTER(e+1,n):n},startValue:0,endValue:11},hours:{getter:"getHours",setter:"setHours",formatter:function(e){return l.format(new Date(0,0,0,e),"hour")},startValue:0,endValue:23},minutes:{getter:"getMinutes",setter:"setMinutes",formatter:function(e){return l.format(new Date(0,0,0,0,e),"minute")},startValue:0,endValue:59},seconds:{getter:"getSeconds",setter:"setSeconds",formatter:function(e){return l.format(new Date(0,0,0,0,0,e),"second")},startValue:0,endValue:59},milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",formatter:function(e){return l.format(new Date(0,0,0,0,0,0,e),"millisecond")},startValue:0,endValue:999}},e.exports=f},function(e,t,n){var i={notifyObserver:function(e,t){var n=this.option("observer");n&&n.fire(e,t)},invoke:function(){var e=this.option("observer");if(e)return e.fire.apply(e,arguments)}};e.exports=i},function(e,t,n){e.exports={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",selection:"selection",normalMark:0,hoverMark:1,selectedMark:2,applyHover:"applyHover",applySelected:"applySelected",resetItem:"resetItem"},radialLabelIndent:30,pieLabelSpacing:10,pieSeriesSpacing:4}},function(e,t,n){function i(e){return[-e,-e,e,-e,e,e,-e,e,-e,-e]}function o(e){var t=b(e);return[-t,0,0,-t,t,0,0,t,-t,0]}function a(e){var t=b(e),n=y(t/2),i=b(t/2);return[-t,-n,-n,-t,0,-i,n,-t,t,-n,i,0,t,n,n,t,0,i,-n,t,-t,n,-i,0]}function r(e){return[-e,-e,e,-e,0,e,-e,-e]}function s(e){return[-e,e,e,e,0,-e,-e,e]}var l=n(0).extend,u=n(3).each,c=n(4).noop,d=n(7),h=d.getWindow(),p=n(272),f=l,g=n(1).isDefined,_=n(11).normalizeEnum,m=Math,v=m.round,y=m.floor,b=m.ceil,x=20,w=20,C=10,k="canvas_position_default";e.exports={deleteLabel:function(){this._label.dispose(),this._label=null},_hasGraphic:function(){return this.graphic},clearVisibility:function(){var e=this,t=e.graphic;t&&t.attr("visibility")&&t.attr({visibility:null})},isVisible:function(){return this.inVisibleArea&&this.series.isVisible()},setInvisibility:function(){var e=this,t=e.graphic;t&&"hidden"!==t.attr("visibility")&&t.attr({visibility:"hidden"}),e._errorBar&&e._errorBar.attr({visibility:"hidden"}),e._label.draw(!1)},clearMarker:function(){var e=this.graphic;e&&e.attr(this._emptySettings)},_createLabel:function(){this._label=new p.Label({renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this})},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_updateLabelOptions:function(){!this._label&&this._createLabel(),this._label.setOptions(this._options.label)},_checkImage:function(e){return g(e)&&("string"==typeof e||g(e.url))},_fillStyle:function(){this._styles=this._options.styles},_checkSymbol:function(e,t){var n=e.symbol,i=t.symbol,o="circle"===n&&"circle"!==i||"circle"!==n&&"circle"===i,a=this._checkImage(e.image)!==this._checkImage(t.image);return!(!o&&!a)},_populatePointShape:function(e,t){switch(e){case"square":return i(t);case"polygon":return o(t);case"triangle":case"triangleDown":return r(t);case"triangleUp":return s(t);case"cross":return a(t)}},hasCoords:function(){return null!==this.x&&null!==this.y},correctValue:function(e){var t=this,n=t.series.getValueAxis();t.hasValue()&&(t.value=t.properValue=n.validateUnit(t.initialValue.valueOf()+e.valueOf()),t.minValue=n.validateUnit(e))},resetCorrection:function(){this.value=this.properValue=this.initialValue,this.minValue=k},resetValue:function(){var e=this;e.hasValue()&&(e.value=e.properValue=e.initialValue=0,e.minValue=0,e._label.setDataField("value",e.value))},_getTranslates:function(e){var t=this.x,n=this.y;return e&&(this._options.rotated?t=this.defaultX:n=this.defaultY),{x:t,y:n}},_createImageMarker:function(e,t,n){var i=n.width||x,o=n.height||w;return e.image(-v(.5*i),-v(.5*o),i,o,n.url?n.url.toString():n.toString(),"center").attr({translateX:t.translateX,translateY:t.translateY,visibility:t.visibility})},_createSymbolMarker:function(e,t){var n,i=this._options.symbol;return"circle"===i?(delete t.points,n=e.circle().attr(t)):"square"!==i&&"polygon"!==i&&"triangle"!==i&&"triangleDown"!==i&&"triangleUp"!==i&&"cross"!==i||(n=e.path([],"area").attr(t).sharp()),n},_createMarker:function(e,t,n,i){var o=this,a=o._checkImage(n)?o._createImageMarker(e,i,n):o._createSymbolMarker(e,i);return a&&a.data({"chart-data-point":o}).append(t),a},_getSymbolBBox:function(e,t,n){return{x:e-n,y:t-n,width:2*n,height:2*n}},_getImageBBox:function(e,t){var n=this._options.image,i=n.width||x,o=n.height||w;return{x:e-v(i/2),y:t-v(o/2),width:i,height:o}},_getGraphicBBox:function(){var e,t=this,n=t._options,i=t.x,o=t.y;return e=n.visible?t._checkImage(n.image)?t._getImageBBox(i,o):t._getSymbolBBox(i,o,n.styles.normal.r):{x:i,y:o,width:0,height:0}},hideInsideLabel:c,_getShiftLabelCoords:function(e){var t=this._addLabelAlignmentAndOffset(e,this._getLabelCoords(e));return this._checkLabelPosition(e,t)},_drawLabel:function(){var e=this,t=e._getCustomLabelVisibility(),n=e._label,i=e._showForZeroValues()&&e.hasValue()&&t!==!1&&(e.series.getLabelVisibility()||t);n.draw(!!i)},correctLabelPosition:function(e){var t=this,n=t._getShiftLabelCoords(e);t.hideInsideLabel(e,n)||(e.setFigureToDrawConnector(t._getLabelConnector(e.pointPosition)),e.shift(v(n.x),v(n.y)))},_showForZeroValues:function(){return!0},_getLabelConnector:function(e){var t=this._getGraphicBBox(e),n=t.width/2,i=t.height/2;return{x:t.x+n,y:t.y+i,r:this._options.visible?Math.max(n,i):0}},_getPositionFromLocation:function(){return{x:this.x,y:this.y}},_isPointInVisibleArea:function(e,t){return e.minX<=t.x+t.width&&e.maxX>=t.x&&e.minY<=t.y+t.height&&e.maxY>=t.y},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea(),o=e.getBoundingRect(),a=n._getGraphicBBox(e.pointPosition),r=C;return n._isPointInVisibleArea(i,a)&&(n._options.rotated?(i.minX>t.x&&(t.x=a.x+a.width+r),i.maxXt.y&&(t.y=i.minY),i.maxYt.x&&(t.x=i.minX),i.maxXt.y&&(t.y=a.y+a.height+r),i.maxY0&&(v=this._getErrorBarBaseEdgeLength()*a.edgeLength),v=y(parseInt(v)/2),f&&(c=i._baseErrorBarPos),m&&(l=i._baseErrorBarPos),"none"!==d&&g(l)&&g(c)&&g(s)?(!m&&r.push([s-v,l,s+v,l]),r.push([s,l,s,c]),!f&&r.push([s+v,c,s-v,c]),o.rotated&&u(r,function(e,t){t.reverse()}),n=i._getErrorBarSettings(a),i._errorBar?(n.points=r,i._errorBar.attr(n)):i._errorBar=e.path(r,"line").attr(n).append(t)):i._errorBar&&i._errorBar.attr({visibility:"hidden"})}},getTooltipParams:function(){var e=this,t=e.graphic;return{x:e.x,y:e.y,offset:t?t.getBBox().height/2:0}},setPercentValue:function(e,t,n,i){var o=this,a=o.value/e||0,r=o.minValue/e||0,s=a-r;o._label.setDataField("percent",s), o._label.setDataField("total",t),o.series.isFullStackedSeries()&&o.hasValue()&&(o.leftHole&&(o.leftHole/=e-n,o.minLeftHole/=e-n),o.rightHole&&(o.rightHole/=e-i,o.minRightHole/=e-i),o.value=o.properValue=a,o.minValue=r?r:o.minValue)},_storeTrackerR:function(){var e=this,t=h.navigator,n=e._options.styles.normal.r,i=d.hasProperty("ontouchstart")||t.msPointerEnabled&&t.msMaxTouchPoints||t.pointerEnabled&&t.maxTouchPoints?20:6;return e._options.trackerR=n0?e?"right":"top":e?"left":"bottom"},_getFormatObject:function(e){var t=this,n=t._label.getData();return f({},n,{argumentText:e.formatValue(t.initialArgument,"argument"),valueText:e.formatValue(t.initialValue)},g(n.percent)?{percentText:e.formatValue(n.percent,"percent")}:{},g(n.total)?{totalText:e.formatValue(n.total)}:{})},getMarkerVisibility:function(){return this._options.visible},coordsIn:function(e,t){var n=this._storeTrackerR();return e>=this.x-n&&e<=this.x+n&&t>=this.y-n&&t<=this.y+n},getMinValue:function(e){var t=this._options.errorBars;if(t&&!e){var n=t.displayMode,i="high"!==n&&g(this.lowError)?this.lowError:this.value,o="low"!==n&&g(this.highError)?this.highError:this.value;return io?i:o}return this.value}}},function(e,t,n){function i(e){var t=this,n=e.renderer;t._group=n.g().attr({"class":"dx-loading-indicator"}).linkOn(n.root,{name:"loading-indicator",after:"peripheral"}),t._rect=n.rect().attr({opacity:0}).append(t._group),t._text=n.text().attr({align:"center"}).append(t._group),t._createStates(e.eventTrigger,t._group,n.root,e.notify)}var o=n(11).patchFontOptions,a=0,r=1,s="linear",l=400,u="loadingIndicatorReady";i.prototype={constructor:i,_createStates:function(e,t,n,i){var o=this;o._states=[{opacity:0,start:function(){i(!1)},complete:function(){t.linkRemove(),n.css({"pointer-events":""}),e(u)}},{opacity:.85,start:function(){t.linkAppend(),n.css({"pointer-events":"none"}),i(!0)},complete:function(){e(u)}}],o._state=a},setSize:function(e){var t=e.width,n=e.height;this._rect.attr({width:t,height:n}),this._text.attr({x:t/2,y:n/2})},setOptions:function(e){this._rect.attr({fill:e.backgroundColor}),this._text.css(o(e.font)).attr({text:e.text,"class":e.cssClass}),this[e.show?"show":"hide"]()},dispose:function(){var e=this;e._group.linkRemove().linkOff(),e._group=e._rect=e._text=e._states=null},_transit:function(e){var t,n=this;n._state!==e&&(n._state=e,n._isHiding=!1,t=n._states[e],n._rect.stopAnimation().animate({opacity:t.opacity},{complete:t.complete,easing:s,duration:l,unstoppable:!0}),n._noHiding=!0,t.start(),n._noHiding=!1)},show:function(){this._transit(r)},hide:function(){this._transit(a)},scheduleHiding:function(){this._noHiding||(this._isHiding=!0)},fulfillHiding:function(){this._isHiding&&this.hide()}},t.LoadingIndicator=i,t.plugin={name:"loading_indicator",init:function(){function e(e){n._skipLoadingIndicatorOptions=!0,n.option("loadingIndicator",{show:e}),n._skipLoadingIndicatorOptions=!1,e&&n._stopCurrentHandling()}var n=this;n._loadingIndicator=new t.LoadingIndicator({eventTrigger:n._eventTrigger,renderer:n._renderer,notify:e}),n._scheduleLoadingIndicatorHiding()},dispose:function(){this._loadingIndicator.dispose(),this._loadingIndicator=null},members:{_scheduleLoadingIndicatorHiding:function(){this._loadingIndicator.scheduleHiding()},_fulfillLoadingIndicatorHiding:function(){this._loadingIndicator.fulfillHiding()},showLoadingIndicator:function(){this._loadingIndicator.show()},hideLoadingIndicator:function(){this._loadingIndicator.hide()},_onBeginUpdate:function(){this._optionChangedLocker||this._scheduleLoadingIndicatorHiding()}},extenders:{_dataSourceLoadingChangedHandler:function(e){e&&(this._options.loadingIndicator||{}).enabled&&this._loadingIndicator.show()},_setContentSize:function(){this._loadingIndicator.setSize(this._canvas)},endUpdate:function(){this._initialized&&this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}},customize:function(e){var t=e.prototype;if(t._dataSourceChangedHandler){var n=t._dataSourceChangedHandler;t._dataSourceChangedHandler=function(){this._scheduleLoadingIndicatorHiding(),n.apply(this,arguments)}}e.addChange({code:"LOADING_INDICATOR",handler:function(){this._skipLoadingIndicatorOptions||this._loadingIndicator.setOptions(this._getOption("loadingIndicator")),this._scheduleLoadingIndicatorHiding()},isThemeDependent:!0,option:"loadingIndicator",isOptionChange:!0}),t._eventsMap.onLoadingIndicatorReady={name:"loadingIndicatorReady"};var i=t._drawn;t._drawn=function(){i.apply(this,arguments),this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}},fontFields:["loadingIndicator.font"]}},function(e,t,n){var i,o=n(1).isFunction,a=n(11).normalizeEnum,r=Math.round,s={};t.getAlgorithm=function(e){return s[a(e)]||o(e)&&e||i},t.addAlgorithm=function(e,t){s[e]=t},t.setDefaultAlgorithm=function(e){i=s[e]};var l={};l[-1]=[2,0],l[1]=[0,2];var u=function(e){return e[2]-e[0]").addClass(u);this._$element.append(e),this._watchers=[],this._renderWatchers()},_renderWatchers:function(){this._startWatcher("disabled",this._renderDisabled.bind(this)),this._startWatcher("visible",this._renderVisible.bind(this))},_startWatcher:function(e,t){var n=this._rawData,i=this._options.fieldGetter(e),o=c(this._options.watchMethod(),function(){return i(n)},function(e,n){this._dirty=!0,t(e,n)}.bind(this));this._watchers.push(o)},setDataField:function(){if(this._dirty=!1,a(this._watchers,function(e,t){t.force()}),this._dirty)return!0},_renderDisabled:function(e,t){this._$element.toggleClass(l,!!e),this._updateOwnerFocus(e)},_updateOwnerFocus:function(e){var t=this._options.owner;t&&e&&t._resetItemFocus(this._$element)},_renderVisible:function(e,t){this._$element.toggleClass(s,void 0!==e&&!e)},_dispose:function(){a(this._watchers,function(e,t){t.dispose()})}});d.getInstance=function(e){return r.getInstanceByElement(e,this)},e.exports=d},function(e,t,n){var i=n(5),o=n(12),a=n(10),r=n(15),s=n(68),l=n(19),u=n(8),c="dxdblclick",d="dxDblClick",h=u.addNamespace(l.name,d),p=300,f=r.inherit({ctor:function(){this._handlerCount=0,this._forgetLastClick()},_forgetLastClick:function(){this._firstClickTarget=null,this._lastClickTimeStamp=-p},add:function(){this._handlerCount<=0&&i.on(a.getDocument(),h,this._clickHandler.bind(this)),this._handlerCount++},_clickHandler:function(e){var t=e.timeStamp||Date.now();t-this._lastClickTimeStampe.length)&&(t=e.length);for(var n=0,i=new Array(t);n0},o=0;o1&&!!e._getOptionsByReference()[i[0]]})},u=function(e,t,n){var o=i(e._options,t,!1);e._optionValuesEqual(t,o,n)||(e._initialized&&e._optionChanging(t,o,n),l(e,t,n),e._notifyOptionChanged(t,n,o))};return function(t,n){var o=this,a=t;if(arguments.length<2&&"object"!==x.type(a))return a=e(o,a),i(o._options,a);"string"==typeof a&&(t={},t[a]=n),o.beginUpdate();try{var r;for(r in t)s(o,t,r,t[r]);for(r in t)u(o,r,t[r])}finally{o.endUpdate()}}}(),_getOptionValue:function(e,t){var n=this.option(e);return E(n)?n.bind(t)():n}}).include(I);e.exports=R,e.exports.PostponedOperations=P},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){"@babel/helpers - typeof";return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n="string"==typeof t?t.split():t.slice();n.length;){var i=n.shift();if(i in e)return!0}return!1}function r(e,t,n,i){if(i)for(var o=0;o=0)return t}function s(e,t,n,i){return i?r(e,t,n,i)||[]:t}function l(e,t){if(e.key()&&!t._dataByKeyMap){for(var n={},i=0,o=t.length;i=0?t.splice(i,0,l):t.push(l),d(t,r,l),!a)return(0,I.trivialPromise)((0,y.default)().useLegacyStoreResult?n:l,r)}function g(e,t,n,i){var o=_(e,t,n);if(o>-1&&t.splice(o,1),!i)return(0,I.trivialPromise)(n)}function _(e,t,n){var i=e.key();if(!c(t,n))return-1;for(var o=0,a=t.length;o").addClass(w).prependTo(this.overlayContent())},_documentDownHandler:function(e){return!this._isOutsideClick(e)||this.callBase(e)},_isOutsideClick:function(e){return!o(e.target).closest(this.option("target")).length},_animate:function(e){e&&e.to&&"object"===i(e.to)&&h(e.to,{position:this._getContainerPosition()}),this.callBase.apply(this,arguments)},_stopAnimation:function(){this.callBase.apply(this,arguments)},_renderTitle:function(){this._wrapper().toggleClass(C,!this.option("showTitle")),this.callBase()},_renderPosition:function(){this.callBase(),this._renderOverlayPosition()},_renderOverlayBoundaryOffset:d.noop,_renderOverlayPosition:function(){this._resetOverlayPosition(),this._updateContentSize();var e=this._getContainerPosition(),t=g.setup(this._$content,e),n=this._getSideByLocation(t);this._togglePositionClass("dx-position-"+n),this._toggleFlippedClass(t.h.flip,t.v.flip);var i=this._isHorizontalSide()||this._isVerticalSide();i&&this._renderArrowPosition(n)},_resetOverlayPosition:function(){this._setContentHeight(!0),this._togglePositionClass("dx-position-"+this._positionSide),f.move(this._$content,{left:0,top:0}),this._$arrow.css({top:"auto",right:"auto",bottom:"auto",left:"auto"})},_updateContentSize:function(){if(this._$popupContent){var e=g.calculate(this._$content,this._getContainerPosition());if(e.h.oversize>0&&this._isHorizontalSide()&&!e.h.fit){var t=this._$content.width()-e.h.oversize;this._$content.width(t)}if(e.v.oversize>0&&this._isVerticalSide()&&!e.v.fit){var n=this._$content.height()-e.v.oversize,i=this._$popupContent.height()-e.v.oversize;this._$content.height(n),this._$popupContent.height(i)}}},_getContainerPosition:function(){var e=d.pairToObject(this._position.offset||""),t=e.h,n=e.v,i=this._isVerticalSide(),o=this._isHorizontalSide();if(i||o){var a=this._isPopoverInside(),r=(a?-1:1)*S[this._positionSide],s=i?this._$arrow.height():this._$arrow.width(),l=this._getContentBorderWidth(this._positionSide),u=r*(s-l);i?n+=u:t+=u}return h({},this._position,{offset:t+" "+n})},_getContentBorderWidth:function(e){var t=this._$content.css(T[e]);return parseInt(t)||0},_getSideByLocation:function(e){var t=e.v.flip,n=e.h.flip;return this._isVerticalSide()&&t||this._isHorizontalSide()&&n||this._isPopoverInside()?k[this._positionSide]:this._positionSide},_togglePositionClass:function(e){this._$wrapper.removeClass("dx-position-left dx-position-right dx-position-top dx-position-bottom").addClass(e)},_toggleFlippedClass:function(e,t){this._$wrapper.toggleClass("dx-popover-flipped-horizontal",e).toggleClass("dx-popover-flipped-vertical",t)},_renderArrowPosition:function(e){this._$arrow.css(k[e],-(this._isVerticalSide(e)?this._$arrow.height():this._$arrow.width()));var t,n=this._isVerticalSide(e)?"left":"top",i=this._isVerticalSide(e)?"outerWidth":"outerHeight",a=o(this._position.of),r=g.offset(a)||{top:0,left:0},s=g.offset(this._$content),l=this._$arrow[i](),u=s[n],c=this._$content[i](),d=r[n],h=a.get(0).preventDefault?0:a[i](),p=Math.max(u,d),f=Math.min(u+c,d+h);t="start"===this.option("arrowPosition")?p-u:"end"===this.option("arrowPosition")?f-u-l:(p+f)/2-u-l/2;var _=this._getContentBorderWidth(e),v=m.fitIntoRange(t-_+this.option("arrowOffset"),_,c-l-2*_);this._$arrow.css(n,v)},_isPopoverInside:function(){var e=this._transformStringPosition(this.option("position"),I),t=g.setup.normalizeAlign(e.my),n=g.setup.normalizeAlign(e.at);return t.h===n.h&&t.v===n.v},_setContentHeight:function(e){e&&this.callBase()},_renderShadingPosition:function(){this.option("shading")&&this._$wrapper.css({top:0,left:0})},_renderShadingDimensions:function(){this.option("shading")&&this._$wrapper.css({width:"100%",height:"100%"})},_normalizePosition:function(){var e=h({},this._transformStringPosition(this.option("position"),I));e.of||(e.of=this.option("target")),e.collision||(e.collision="flip"),e.boundaryOffset||(e.boundaryOffset=this.option("boundaryOffset")),this._positionSide=this._getDisplaySide(e),this._position=e},_getDisplaySide:function(e){var t=g.setup.normalizeAlign(e.my),n=g.setup.normalizeAlign(e.at),i=S[t.h]===S[n.h]&&S[t.v]===S[n.v]?-1:1,o=Math.abs(S[t.h]-i*S[n.h]),a=Math.abs(S[t.v]-i*S[n.v]);return o>a?n.h:n.v},_resetContentHeight:function(){if(this.callBase(),D){var e=this._$popupContent.css("overflow");this._$popupContent.css("overflow","visible"),this._$popupContent.css("overflow",e)}},_isVerticalSide:function(e){return e=e||this._positionSide,"top"===e||"bottom"===e},_isHorizontalSide:function(e){return e=e||this._positionSide,"left"===e||"right"===e},_clearEventTimeout:function(e){clearTimeout(this._timeouts[e])},_clearEventsTimeouts:function(){this._clearEventTimeout("show"),this._clearEventTimeout("hide")},_clean:function(){this._detachEvents(this.option("target")),this.callBase.apply(this,arguments)},_optionChanged:function(e){switch(e.name){case"boundaryOffset":case"arrowPosition":case"arrowOffset":this._renderGeometry();break;case"fullScreen":e.value&&this.option("fullScreen",!1);break;case"target":e.previousValue&&this._detachEvents(e.previousValue),this.callBase(e);break;case"showEvent":case"hideEvent":var t=e.name.substring(0,4),n=A(e.previousValue);this.hide(),P(this,this.option("target"),t,n),B(this,t);break;case"visible":this._clearEventTimeout(e.value?"show":"hide"),this.callBase(e);break;default:this.callBase(e)}},show:function(e){return e&&this.option("target",e),this.callBase()}});c("dxPopover",R),e.exports=R},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(15),s=n(176),l=n(8),u="dxListEditDecorator",c=l.addNamespace(s.start,u),d=l.addNamespace(s.swipe,u),h=l.addNamespace(s.end,u),p=r.inherit({ctor:function(e){this._list=e,this._init()},_init:a,_shouldHandleSwipe:!1,_attachSwipeEvent:function(e){var t={itemSizeFunc:function(){return this._clearSwipeCache&&(this._itemWidthCache=this._list.$element().width(),this._clearSwipeCache=!1),this._itemWidthCache}.bind(this)};o.on(e.$itemElement,c,t,this._itemSwipeStartHandler.bind(this)),o.on(e.$itemElement,d,this._itemSwipeUpdateHandler.bind(this)),o.on(e.$itemElement,h,this._itemSwipeEndHandler.bind(this))},_itemSwipeStartHandler:function(e){var t=i(e.currentTarget);return t.is(".dx-state-disabled, .dx-state-disabled *")?void(e.cancel=!0):(clearTimeout(this._list._inkRippleTimer),void this._swipeStartHandler(t,e))},_itemSwipeUpdateHandler:function(e){var t=i(e.currentTarget);this._swipeUpdateHandler(t,e)},_itemSwipeEndHandler:function(e){var t=i(e.currentTarget);this._swipeEndHandler(t,e),this._clearSwipeCache=!0},beforeBag:a,afterBag:a,_commonOptions:function(){return{activeStateEnabled:this._list.option("activeStateEnabled"),hoverStateEnabled:this._list.option("hoverStateEnabled"),focusStateEnabled:this._list.option("focusStateEnabled")}},modifyElement:function(e){this._shouldHandleSwipe&&(this._attachSwipeEvent(e),this._clearSwipeCache=!0)},afterRender:a,handleClick:a,handleKeyboardEvents:a,handleEnterPressing:a,handleContextMenu:a,_swipeStartHandler:a,_swipeUpdateHandler:a,_swipeEndHandler:a,visibilityChange:a,getExcludedSelectors:a,dispose:a});e.exports=p},function(e,t,n){e.exports=n(557)},function(e,t,n){e.exports=n(352)},function(e,t,n){var i=n(21),o=n(0).extend,a=n(3).each,r=n(13).inArray,s=n(1).isDefined,l=n(22),u=l.dateToMilliseconds,c=4,d={secondly:"seconds",minutely:"minutes",hourly:"hours",daily:"days",weekly:"weeks",monthly:"months",yearly:"years"},h={bysecond:function(e,t){e.setSeconds(t)},byminute:function(e,t){e.setMinutes(t)},byhour:function(e,t){e.setHours(t)},bymonth:function(e,t){e.setMonth(t)},bymonthday:function(e,t){if(t<0){var n=new Date(e);p(n,1,-1);var i=n.getDate();i>=Math.abs(t)?p(e,1,t):p(e,2,t)}else e.setDate(t),E(e,t)},byday:function(e,t,n,i,o){var a=e.getDay(),r=m[n];t+=t>=r==r>a?7:0,e.setDate(e.getDate()-a+t)},byweekno:function(e,t,n){var i=new Date(e),o=new Date(i.setMonth(0,1)),a=o.getDay()-m[n],r=o.getTime()-a*u("day"),s=a+1;s>c?e.setTime(r+7*t*u("day")):e.setTime(r+7*(t-1)*u("day"));var l=(e.getTimezoneOffset()-o.getTimezoneOffset())*u("minute");l&&e.setTime(e.getTime()+l)},byyearday:function(e,t){e.setMonth(0,1),e.setDate(t)}},p=function(e,t,n){var i=new Date(e);e.setMonth(e.getMonth()+t),e.getMonth()-i.getMonth()>t&&e.setDate(n+1),e.setDate(n+1)},f={bysecond:function(e){return e.getSeconds()},byminute:function(e){return e.getMinutes()},byhour:function(e){return e.getHours()},bymonth:function(e){return e.getMonth()},bymonthday:function(e){return e.getDate()},byday:function(e){return e.getDay()},byweekno:function(e,t){var n=new Date(e),i=c-n.getDay()+m[t]-1,o=u("day");e.getDay()e.getTime()?n.recurrenceEndDate.getTime()-e.getTime():n.duration;if(e.getTime()>=n.recurrenceStartDate.getTime()&&e.getTime()+o>n.min.getTime())return i||te(e,[n.dateRules[t]],n.rule.wkst)}return!1},D=function(e,t){var n=[];return t.split(",").forEach(function(t){t=Number(t);var i=t>0?t-1:e.length+t;e[i]&&n.push(e[i])}),n},E=function(e,t){e.getDate()!==t&&e.setDate(t)},A=function(e,t,n,i){var o=new Date(e),a=!0;if(e=l.addInterval(e,n.interval),"MONTHLY"===n.freq&&!n.byday){var r=t.getDate();n.bymonthday&&(r=Number(n.bymonthday.split(",")[i]),r<0&&(o.setMonth(o.getMonth()+1,1),h.bymonthday(o,r),e=o,a=!1)),a&&E(e,r)}if("YEARLY"===n.freq){if(n.byyearday){var s=Number(n.byyearday.split(",")[i]);h.byyearday(e,s)}var u=U(n);for(var c in u[i])h[c]&&h[c](e,u[i][c],n.wkst)}return e},O=function(e,t){return{years:e.getFullYear()-t.getFullYear(),months:e.getMonth()-t.getMonth(),days:e.getDate()-t.getDate(),hours:e.getHours()-t.getHours(),minutes:e.getMinutes()-t.getMinutes(),seconds:e.getSeconds()-t.getSeconds()}},B=function(e){var t={rule:{},isValid:!1};return e&&(t.rule=W(e),t.isValid=R(t.rule,e)),t},P=[],R=function(e,t){return!(N(e)||r(e.freq,_)===-1||V(e)||H(e)||z(e)||F(e)||L(e)||M(e))||($(t),!1)},M=function(e){var t=!1,n=e.until;return void 0===n||n instanceof Date||(t=!0),t},V=function(e){var t=!1,n=e.count;return n&&"string"==typeof n&&(t=!0),t},F=function(e){var t=!1,n=e.bymonthday;return n&&isNaN(parseInt(n))&&(t=!0),t},L=function e(t){var e=!1,n=t.bymonth;return n&&isNaN(parseInt(n))&&(e=!0),e},H=function(e){var t=!1,n=e.interval;return n&&"string"==typeof n&&(t=!0),t},z=function(e){var t=q(e),n=!1;return a(t,function(e,t){if(!Object.prototype.hasOwnProperty.call(m,t))return n=!0,!1}),n},N=function(e){var t=!1;return a(e,function(e){if(r(e,g)===-1)return t=!0,!1}),t},$=function(e){r(e,P)===-1&&(i.log("W0006",e),P.push(e))},W=function(e){for(var t={},n=e.split(";"),i=0,o=n.length;i1&&void 0!==arguments[1]?arguments[1]:null,n=[];if(s(t)&&(e.fdow=t),e.wkst||(e.wkst=s(t)?v[t]:"MO"),e.byweekno&&!e.byday){for(var i=Object.keys(m),o=0;o=n.getTime()&&c.push(u[d]);var h=c.length;r+=h;var p=r-a;for(r>a&&c.splice(h-p,p),d=0;d0},count:function(){return this._k},reset:function(){this._flags={},this._k=0}},t.replaceInherit=f?function(e){var t=e.inherit;e.inherit=function(){var e=t.apply(this,arguments),n=e.prototype;return["_plugins","_eventsMap","_initialChanges","_themeDependentChanges","_optionChangesMap","_optionChangesOrder","_layoutChangesOrder","_customChangesOrder","_totalChangesOrder"].forEach(function(e){n[e]={}}),e.addPlugin=p,e},e.addChange=p,e.addPlugin=p}:function(e){var t=e.inherit;e.inherit=function(){var e=this.prototype,n=e._plugins,i=e._fontFields,s=e._eventsMap,l=e._initialChanges,u=e._themeDependentChanges,d=e._optionChangesMap,h=e._partialOptionChangesMap,p=e._partialOptionChangesPath,f=e._optionChangesOrder,g=e._layoutChangesOrder,_=e._customChangesOrder,m=t.apply(this,arguments);return e=m.prototype,e._plugins=a(n,e._plugins),e._fontFields=a(i,e._fontFields),e._eventsMap=o(s,e._eventsMap),e._initialChanges=a(l,e._initialChanges),e._themeDependentChanges=a(u,e._themeDependentChanges),e._optionChangesMap=o(d,e._optionChangesMap),e._partialOptionChangesMap=o(h,e._partialOptionChangesMap),e._partialOptionChangesPath=o(p,e._partialOptionChangesPath),e._optionChangesOrder=a(f,e._optionChangesOrder),e._layoutChangesOrder=a(g,e._layoutChangesOrder),e._customChangesOrder=a(_,e._customChangesOrder),r(e),m.addPlugin=c,m},e.prototype._plugins=[],e.prototype._fontFields=[],e.addChange=s,e.addPlugin=c},t.changes=function(){return new i},t.expand=u},function(e,t,n){var i=n(0).extend,o=n(3).each,a=n(107),r=n(169).chart.area,s=a.chart,l=a.polar,u=i,c=o;t.chart={},t.polar={};var d={_createLegendState:function(e,t){return{fill:e.color||t,hatching:e.hatching}},_parsePointStyle:function(e,t,n){var i=e.color||t,o=s._parsePointStyle.call(this,e,i,n);return o.fill=i,o.hatching=e.hatching,o.dashStyle=e.border&&e.border.dashStyle||"solid",delete o.r,o},_applyMarkerClipRect:function(e){e["clip-path"]=null},_setGroupsSettings:function(e,t){var n=this,i={};s._setGroupsSettings.apply(n,arguments),e&&t?i=this._getAffineCoordOptions():e||(i={scaleX:1,scaleY:1,translateX:0,translateY:0}),n._markersGroup.attr(i)},_drawPoint:function(e){e.hasAnimation=e.hasAnimation&&!e.firstDrawing,e.firstDrawing=!1,s._drawPoint.call(this,e)},_getMainColor:function(){return this._options.mainSeriesColor},_createPointStyles:function(e){var t=this,n=e.color||t._getMainColor();return{normal:t._parsePointStyle(e,n,n),hover:t._parsePointStyle(e.hoverStyle||{},n,n),selection:t._parsePointStyle(e.selectionStyle||{},n,n)}},_updatePointsVisibility:function(){var e=this._options.visible;o(this._points,function(t,n){n._options.visible=e})},_getOptionsForPoint:function(){return this._options},_animate:function(e){var t=this,n=function(){t._animateComplete()},i=function(e,t){var n=e.length-1;c(e||[],function(e,i){i.animate(e===n?t:void 0,i.getMarkerCoords())})};t._animatePoints(e,n,i)},getValueRangeInitialValue:r.getValueRangeInitialValue,_patchMarginOptions:function(e){return e.checkInterval=!0,e},_defaultAggregator:"sum",_defineDrawingState:function(){},usePointsToDefineAutoHiding:function(){return!1}};t.chart.bar=u({},s,d,{_getAffineCoordOptions:function(){var e=this._options.rotated,t=e?"X":"Y",n={scaleX:e?.001:1,scaleY:e?1:.001};return n["translate"+t]=this.getValueAxis().getTranslator().translate("canvas_position_default"),n},_animatePoints:function(e,t,n){var i=this;i._markersGroup.animate({scaleX:1,scaleY:1,translateY:0,translateX:0},void 0,t),e||n(i._drawnPoints,t)},checkSeriesViewportCoord:function(e,t){if(0===this._points.length)return!1;if(e.isArgumentAxis)return!0;var n=e.getTranslator(),i=this.getViewport(),o=n.translate(i.categories?i.categories[0]:i.min),a=n.translate(i.categories?i.categories[i.categories.length-1]:i.max),r=this.getOptions().rotated,s=e.getOptions().inverted;return r&&!s||!r&&s?t>=o&&t<=a:t>=a&&t<=o},getSeriesPairCoord:function(e,t){for(var n=null,i=this._options.rotated,o=!t&&!i||t&&i,a=o?"vy":"vx",r=o?"vx":"vy",s=this.getPoints(),l=0;l0&&(e._animationSettings={duration:o(t.duration),easing:t.easing})),e._containerBackgroundColor=e.option("containerBackgroundColor")||e._themeManager.theme().containerBackgroundColor},_setupDefaultFormat:function(){var e=this._translator.getDomain();this._defaultFormatOptions=a(e[0],e[1],this._getApproximateScreenRange())},_setupDomainCore:null,_calculateSize:null,_cleanContent:null,_renderContent:null,_setupCodomain:null,_getApproximateScreenRange:null,_factory:{createTranslator:function(){return new s.Translator1D},createTracker:function(e){return new d(e)}}});t.dxBaseGauge=h;var p=n(64).format,f=function(e,t,n){t=t||{};var i,o=p(e,t.format);return"function"==typeof t.customizeText?(i=l({value:e,valueText:o},n),String(t.customizeText.call(i,i))):o},g=function(e,t){var n=f(e.getDomainStart(),t),i=f(e.getDomainEnd(),t);return n.length>=i.length?n:i};t.formatValue=f,t.getSampleText=g,t.compareArrays=function(e,t){return e&&t&&e.length===t.length&&i(e,t)},h.addPlugin(n(96).plugin),h.addPlugin(n(106).plugin),h.addPlugin(n(108).plugin),h.addPlugin(n(122).plugin);var _=h.prototype._setTooltipOptions;h.prototype._setTooltipOptions=function(){_.apply(this,arguments),this._tracker&&this._tracker.setTooltipState(this._tooltip.isEnabled())}},function(e,t,n){function i(e,t){var n=e.ctx;n.suspend(),n.change(t),n.resume()}function o(e,t){var n,i=e.nodes,a=i&&i.length;for(n=0;n0?Number(e):0),i(o,["TILING"]),n=this):n=o.value,n},label:function(e){var n,o=t[this._id];return void 0!==e?(o.customLabel=e?String(e):null,i(o,["LABELS"]),n=this):n=o.customLabel||o.label,n},customize:function(e){var n=t[this._id];return e&&(n._custom=n._custom||{},u(!0,n._custom,e),n._partialState=n._partialLabelState=null),i(n,["TILES","LABELS"]),this},resetCustomization:function(){var e=t[this._id];return e._custom=e._partialState=e._partialLabelState=null,i(e,["TILES","LABELS"]),this}},n._extendProxyType(e.prototype),n._handlers.beginBuildNodes=function(){t=n._nodes,new e(n._root)},n._handlers.buildNode=function(t){new e(t)},n._handlers.endBuildNodes=function(){n._eventTrigger("nodesInitialized",{root:n._root.proxy})}},s._extendProxyType=n(4).noop;var c=s._resetNodes;s._resetNodes=function(){c.call(this),this._eventTrigger("nodesRendering",{node:this._topNode.proxy})};var d=l.updateStyles;l.updateStyles=function(){var e=this;d.call(e),e._custom&&(e._partialState=!e.ctx.forceReset&&e._partialState||e.ctx.calculateState(e._custom),u(!0,e.state,e._partialState))};var h=l.updateLabelStyle;l.updateLabelStyle=function(){var e=this,t=e._custom;h.call(e),t&&t.label&&(e._partialLabelState=!e.ctx.forceReset&&e._partialLabelState||r(e,t.label),e.labelState=u(!0,{},e.labelState,e._partialLabelState))},s.getRootNode=function(){return this._root.proxy},s.resetNodes=function(){var e=this._context;return e.suspend(),e.change(["NODES_CREATE"]),e.resume(),this}},function(e,t,n){var i=n(0).extend,o=n(51);o.inject({_formatNumberCore:function(e,t,n){if("currency"===t){n.precision=n.precision||0;var o=this.format(e,i({},n,{type:"fixedpoint"})),a=this.getCurrencySymbol().symbol.replace("$","$$$$");return o=o.replace(/^(\D*)(\d.*)/,"$1"+a+"$2")}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}})},function(e,t,n){var i=n(178);e.exports=new i},function(e,t,n){var i=n(5),o=n(26),a=n(10),r=n(15),s=n(8),l="dxPointerEvents",u=r.inherit({ctor:function(e,t){this._eventName=e,this._originalEvents=s.addNamespace(t,l),this._handlerCount=0,this.noBubble=this._isNoBubble()},_isNoBubble:function(){var e=this._eventName;return"dxpointerenter"===e||"dxpointerleave"===e},_handler:function(e){var t=this._getDelegateTarget(e);return this._fireEvent({type:this._eventName,pointerType:e.pointerType||s.eventSource(e),originalEvent:e,delegateTarget:t,timeStamp:o.mozilla?(new Date).getTime():e.timeStamp})},_getDelegateTarget:function(e){var t;return this.noBubble&&(t=e.delegateTarget),t},_fireEvent:function(e){return s.fireEvent(e)},_setSelector:function(e){this._selector=this.noBubble&&e?e.selector:null},_getSelector:function(){return this._selector},setup:function(){return!0},add:function(e,t){if(this._handlerCount<=0||this.noBubble){e=this.noBubble?e:a.getDocument(),this._setSelector(t);var n=this;i.on(e,this._originalEvents,this._getSelector(),function(e){n._handler(e)})}this.noBubble||this._handlerCount++},remove:function(e){this._setSelector(e),this.noBubble||this._handlerCount--},teardown:function(e){this._handlerCount&&!this.noBubble||(e=this.noBubble?e:a.getDocument(),this._originalEvents!=="."+l&&i.off(e,this._originalEvents,this._getSelector()))},dispose:function(e){e=this.noBubble?e:a.getDocument(),i.off(e,this._originalEvents)}});e.exports=u},function(e,t,n){var i=n(2),o=n(77),a="dx-swatch-",r=function(e){var t=i(e),n=t.closest('[class^="'.concat(a,'"], [class*=" ').concat(a,'"]')),r=o.value();if(!n.length)return r;var s=new RegExp("(\\s|^)(".concat(a,".*?)(\\s|$)")),l=n[0].className.match(s)[2],u=r.children("."+l);return u.length||(u=i("
").addClass(l).appendTo(r)),u};e.exports={getSwatchContainer:r}},function(e,t,n){var i=n(15),o=n(1),a=n(3),r=n(20).compileGetter,s=n(20).toComparable,l=n(6).Deferred,u=n(36),c=n(41),d=i.inherit({toArray:function(){var e=[];for(this.reset();this.next();)e.push(this.current());return e},countable:function(){return!1}}),h=d.inherit({ctor:function(e){this.array=e,this.index=-1},next:function(){return this.index+1t?1:0},_=d.inherit({ctor:function(e,t,n,i){e instanceof f||(e=new f(e,this._wrap)),this.iter=e,this.rules=[{getter:t,desc:n,compare:i}]},thenBy:function(e,t,n){var i=new _(this.sortedIter||this.iter,e,t,n);return this.sortedIter||(i.rules=this.rules.concat(i.rules)),i},next:function(){return this._ensureSorted(),this.sortedIter.next()},current:function(){return this._ensureSorted(),this.sortedIter.current()},reset:function(){delete this.sortedIter},countable:function(){return this.sortedIter||this.iter.countable()},count:function(){return this.sortedIter?this.sortedIter.count():this.iter.count()},_ensureSorted:function(){var e=this;e.sortedIter||(a.each(e.rules,function(){this.getter=r(this.getter)}),e.sortedIter=new f(new h(this.iter.toArray().sort(function(t,n){return e._compare(t,n)})),e._unwrap))},_wrap:function(e,t){return{index:t,value:e}},_unwrap:function(e){return e.value},_compare:function(e,t){var n=e.index,i=t.index;if(e=e.value,t=t.value,e===t)return n-i;for(var o=0,a=this.rules.length;o1&&n!==i)throw new u.errors.Error("E4019");t.push(m(this)),n=i,i=!0}else i=c.isConjunctiveOperator(this)}),function(e){for(var i=n,o=0;o":return e(n,o,!0);case">":return function(e){return s(n(e))>o};case"<":return function(e){return s(n(e))=":return function(e){return s(n(e))>=o};case"<=":return function(e){return s(n(e))<=o};case"startswith":return function(e){return 0===s(l(n(e))).indexOf(o)};case"endswith":return function(e){var t=s(l(n(e))),i=l(o);if(t.length-1};case"notcontains":return function(e){return s(l(n(e))).indexOf(o)===-1}}throw u.errors.Error("E4003",i)};return function(e){return o.isFunction(e)?e:c.isGroupCriterion(e)?i(e):c.isUnaryOperation(e)?n(e):d(e)}}(),v=p.inherit({ctor:function(e,t){this.callBase(e),this.criteria=m(t)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),y=d.inherit({ctor:function(e,t){this.iter=e,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(){if(!this.groupedIter){var e={},t=[],n=this.iter,i=r(this.getter);for(n.reset();n.next();){var o=n.current(),s=i(o);s in e?e[s].push(o):(e[s]=[o],t.push(s))}this.groupedIter=new h(a.map(t,function(t){return{key:t,items:e[t]}}))}}}),b=p.inherit({ctor:function(e,t){this.callBase(e),this.getter=r(t)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),x=p.inherit({ctor:function(e,t,n){this.callBase(e),this.skip=Math.max(0,t),this.take=Math.max(0,n),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;for(;this.pos":s("ne"),">":s("gt"),">=":s("ge"),"<":s("lt"),"<=":s("le"),startswith:h("startswith"),endswith:h("endswith")},f=r({},p,{contains:h("substringof",!0),notcontains:h("not substringof",!0)}),g=r({},p,{contains:h("contains"),notcontains:h("not contains")}),_=function(t){t=d.normalizeBinaryCriterion(t);var i=t[1],o=4===e?g:f,a=o[i.toLowerCase()];if(!a)throw c.Error("E4003",i);var r=t[0],s=t[2];return n&&n[r]&&(s=l.convertPrimitiveValue(n[r],s)),a(u(r),l.serializeValue(s,e))},m=function(e){var t=e[0],n=y(e[1]);if("!"===t)return"not ("+n+")";throw c.Error("E4003",t)},v=function(e){var t,n,i=[];return o.each(e,function(e,o){if(Array.isArray(o)){if(i.length>1&&t!==n)throw new c.Error("E4019");i.push("("+y(o)+")"),t=n,n="and"}else n=d.isConjunctiveOperator(this)?"and":"or"}),i.join(" "+t+" ")},y=function(e){return Array.isArray(e[0])?v(e):d.isUnaryOperation(e)?m(e):_(e)};return function(o,r,s,l){return n=s,t=i.isDefined(l)?l:a().oDataFilterToLower,e=r,y(o)}}(),g=function(e){function t(e){for(var t=-1,n=0;n").addClass(e).css("pointerEvents","none");return o.subscribeGlobal(n,"dxmousewheel",function(e){e.preventDefault()}),c(function(){n.appendTo("body")}),function(e,t){n.css("pointerEvents",e?"all":"none"),e&&n.css("cursor",t)}}),I=function(e,t){var n=S();n(e,t)},T=g.inherit({gesture:!0,configure:function(e){this.getElement().css("msTouchAction",e.immediate?"pinch-zoom":""),this.callBase(e)},allowInterruptionByMouseWheel:function(){return this._stage!==b},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=v},start:function(e){return e._needSkipEvent||f.needSkipEvent(e)?void this._cancel(e):(this._startEvent=f.createEvent(e),this._startEventData=f.eventData(e),this._stage=y,this._init(e),void this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),C))},move:function(e){if(this._stage===y&&this._directionConfirmed(e)){if(this._stage=b,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(e),this._adjustStartEvent(e),this._start(this._startEvent),this._stage===v)return;this._requestAccept(e),this._move(e),this._forgetAccept()}else this._stage===b&&(this._clearSelection(e),this._move(e))},_directionConfirmed:function(e){var t=this._getTouchBoundary(e),n=f.eventDelta(this._startEventData,f.eventData(e)),i=m(n.x),o=m(n.y),a=this._validateMove(t,i,o),r=this._validateMove(t,o,i),s=this.getDirection(e),l="both"===s&&(a||r),u="horizontal"===s&&a,c="vertical"===s&&r;return l||u||c||this._immediateAccepted},_validateMove:function(e,t,n){return t&&t>=e&&(!this.immediate||t>=n)},_getTouchBoundary:function(e){return this.immediate||f.isDxMouseWheelEvent(e)?w:x},_adjustStartEvent:function(e){var t=this._getTouchBoundary(e),n=f.eventDelta(this._startEventData,f.eventData(e));this._startEvent.pageX+=_(n.x)*t,this._startEvent.pageY+=_(n.y)*t},_resetActiveElement:function(){"ios"===a.real().platform&&this.getElement().find(":focus").length&&l.resetActiveElement()},_toggleGestureCover:function(e){this._toggleGestureCoverImpl(e)},_toggleGestureCoverImpl:function(e){var t=this._stage===b;t&&I(e,this.getElement().css("cursor"))},_clearSelection:function(e){f.isDxMouseWheelEvent(e)||f.isTouchEvent(e)||l.clearSelection()},end:function(e){this._toggleGestureCover(!1),this._stage===b?this._end(e):this._stage===y&&this._stop(e),this._stage=v},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:h,_start:h,_move:h,_stop:h,_end:h});T.initialTouchBoundary=x,T.touchBoundary=function(e){return p(e)?void(x=e):x},e.exports=T},function(e,t,n){var i=n(176),o=n(5),a=n(67),r=n(3).each,s=n(8),l=n(0).extend,u=n(127),c="dxSwipeable",d="dx-swipeable",h={onStart:i.start,onUpdated:i.swipe,onEnd:i.end,onCancel:"dxswipecancel"},p=a.inherit({_getDefaultOptions:function(){return l(this.callBase(),{elastic:!0,immediate:!1,direction:"horizontal",itemSizeFunc:null,onStart:null,onUpdated:null,onEnd:null,onCancel:null})},_render:function(){this.callBase(),this.$element().addClass(d),this._attachEventHandlers()},_attachEventHandlers:function(){if(this._detachEventHandlers(),!this.option("disabled")){var e=this.NAME;this._createEventData(),r(h,function(t,n){var i=this._createActionByOption(t,{context:this});n=s.addNamespace(n,e),o.on(this.$element(),n,this._eventData,function(e){return i({event:e})})}.bind(this))}},_createEventData:function(){this._eventData={elastic:this.option("elastic"),itemSizeFunc:this.option("itemSizeFunc"),direction:this.option("direction"),immediate:this.option("immediate")}},_detachEventHandlers:function(){o.off(this.$element(),"."+c)},_optionChanged:function(e){switch(e.name){case"disabled":case"onStart":case"onUpdated":case"onEnd":case"onCancel":case"elastic":case"immediate":case"itemSizeFunc":case"direction":this._detachEventHandlers(),this._attachEventHandlers();break;case"rtlEnabled":break;default:this.callBase(e)}}});u.name(p,c),e.exports=p},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(5),s=i(r),l=n(15),u=i(l),c=n(13),d=n(3),h=n(8),p="compositionstart",f="compositionend",g="keydown",_="KeyboardProcessor",m=u.default.inherit({_keydown:(0,h.addNamespace)(g,_),_compositionStart:(0,h.addNamespace)(p,_),_compositionEnd:(0,h.addNamespace)(f,_),ctor:function(e){var t=this;e=e||{},e.element&&(this._element=(0,a.default)(e.element)),e.focusTarget&&(this._focusTarget=e.focusTarget),this._handler=e.handler,this._context=e.context,this._childProcessors=[],this._element&&(this._processFunction=function(e){var n=t._focusTarget&&t._focusTarget!==e.target&&(0,c.inArray)(e.target,t._focusTarget)<0,i=t._isComposingJustFinished&&229===e.which||t._isComposing||n;t._isComposingJustFinished=!1,i||t.process(e)},this._toggleProcessingWithContext=this.toggleProcessing.bind(this),s.default.on(this._element,this._keydown,this._processFunction),s.default.on(this._element,this._compositionStart,this._toggleProcessingWithContext),s.default.on(this._element,this._compositionEnd,this._toggleProcessingWithContext))},dispose:function(){this._element&&(s.default.off(this._element,this._keydown,this._processFunction),s.default.off(this._element,this._compositionStart,this._toggleProcessingWithContext),s.default.off(this._element,this._compositionEnd,this._toggleProcessingWithContext)),this._element=void 0,this._handler=void 0,this._context=void 0,this._childProcessors=void 0},clearChildren:function(){this._childProcessors=[]},push:function(e){return this._childProcessors||this.clearChildren(),this._childProcessors.push(e),e},attachChildProcessor:function(){var e=new m;return this._childProcessors.push(e),e},reinitialize:function(e,t){return this._context=t,this._handler=e,this},process:function(e){var t={keyName:(0,h.normalizeKeyName)(e),key:e.key,code:e.code,ctrl:e.ctrlKey,location:e.location,metaKey:e.metaKey,shift:e.shiftKey,alt:e.altKey,which:e.which,originalEvent:e},n=this._handler&&this._handler.call(this._context,t);n&&this._childProcessors&&(0,d.each)(this._childProcessors,function(t,n){n.process(e)})},toggleProcessing:function(e){var t=e.type;this._isComposing=t===p,this._isComposingJustFinished=!this._isComposing}});e.exports=m},function(e,t,n){var i=n(2),o=n(5),a=n(43),r=n(16),s=n(15),l=n(68),u=n(8),c=n(89),d="dxContexMenu",h=u.addNamespace("contextmenu",d),p=u.addNamespace(c.name,d),f="dxcontextmenu",g=s.inherit({setup:function(e){var t=i(e);o.on(t,h,this._contextMenuHandler.bind(this)),(a.touch||r.isSimulator())&&o.on(t,p,this._holdHandler.bind(this))},_holdHandler:function(e){u.isMouseEvent(e)&&!r.isSimulator()||this._fireContextMenu(e)},_contextMenuHandler:function(e){this._fireContextMenu(e)},_fireContextMenu:function(e){return u.fireEvent({type:f,originalEvent:e})},teardown:function(e){o.off(e,"."+d)}});l(f,new g),t.name=f},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(287),s=i(r),l=n(5),u=i(l),c=n(40),d=i(c),h=n(9),p=i(h),f=n(4),g=n(65),_=n(3),m=n(1),v=n(0),y=n(12),b=n(17),x=i(b),w=n(78),C=n(98),k=n(501),S=i(k),I=n(14),T=n(8),D=n(92),E=i(D),A=n(19),O=i(A),B=n(16),P=i(B),R=n(85),M=i(R),V=n(46),F=i(V),L="dx-dropdowneditor",H="dx-dropdowneditor-input-wrapper",z="dx-dropdowneditor-icon",N="dx-dropdowneditor-overlay",$="dx-dropdowneditor-overlay-flipped",W="dx-dropdowneditor-active",G="dx-dropdowneditor-field-clickable",j="dx-dropdowneditor-field-template-wrapper",q="ios"===P.default.current().platform,K=E.default.inherit({_supportedKeys:function(){return(0,v.extend)({},this.callBase(),{tab:function(e){if(this.option("opened")){if("instantly"===this.option("applyValueMode"))return void this.close();var t=e.shiftKey?this._getLastPopupElement():this._getFirstPopupElement();t&&u.default.trigger(t,"focus"),e.preventDefault()}},escape:function(e){return this.option("opened")&&e.preventDefault(),this.close(),!0},upArrow:function(e){return e.preventDefault(),e.stopPropagation(),!e.altKey||(this.close(),!1)},downArrow:function(e){return e.preventDefault(),e.stopPropagation(),!e.altKey||(this._validatedOpening(),!1)},enter:function(e){return this.option("opened")&&(e.preventDefault(),this._valueChangeEventHandler(e)),!0}})},_getDefaultButtons:function(){return this.callBase().concat([{name:"dropDown",Ctor:S.default}])},_getDefaultOptions:function(){return(0,v.extend)(this.callBase(),{value:null,onOpened:null,onClosed:null,opened:!1,acceptCustomValue:!0,applyValueMode:"instantly",deferRendering:!0,activeStateEnabled:!0,dropDownButtonTemplate:"dropDownButton",fieldTemplate:null,openOnFieldClick:!1,showDropDownButton:!0,buttons:void 0,dropDownOptions:{},popupPosition:this._getDefaultPopupPosition(),onPopupInitialized:null,applyButtonText:(0,I.format)("OK"),cancelButtonText:(0,I.format)("Cancel"),buttonsLocation:"default",showPopupTitle:!1,useHiddenSubmitElement:!1})},_getDefaultPopupPosition:function(e){var t=(0,C.getDefaultAlignment)(e);return{offset:{h:0,v:-1},my:t+" top",at:t+" bottom",collision:"flip flip"}},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){var t="generic"===e.platform;return t},options:{popupPosition:{offset:{v:0}}}}])},_inputWrapper:function(){return this.$element().find("."+H)},_init:function(){this.callBase(),this._initVisibilityActions(),this._initPopupInitializedAction(),this._updatePopupPosition(this.option("rtlEnabled")),this._initInnerOptionCache("dropDownOptions")},_updatePopupPosition:function(e){var t=this._getDefaultPopupPosition(e),n=t.my,i=t.at,o=this.option("popupPosition");this.option("popupPosition",(0,v.extend)({},o,{my:n,at:i}))},_initVisibilityActions:function(){this._openAction=this._createActionByOption("onOpened",{excludeValidators:["disabled","readOnly"]}),this._closeAction=this._createActionByOption("onClosed",{excludeValidators:["disabled","readOnly"]})},_initPopupInitializedAction:function(){this._popupInitializedAction=this._createActionByOption("onPopupInitialized",{excludeValidators:["disabled","readOnly"]})},_initMarkup:function(){this._renderSubmitElement(),this.callBase(),this.$element().addClass(L),this.setAria("role","combobox")},_render:function(){this.callBase(),this._renderOpenHandler(),this._attachFocusOutHandler(),this._renderOpenedState()},_renderContentImpl:function(){this.option("deferRendering")||this._createPopup()},_renderInput:function(){this.callBase(),this.$element().wrapInner((0,a.default)("
").addClass(H)),this._$container=this.$element().children().eq(0),this._setDefaultAria()},_setDefaultAria:function(){this.setAria({haspopup:"true",autocomplete:"list"})},_readOnlyPropValue:function(){return!this.option("acceptCustomValue")||this.callBase()},_cleanFocusState:function(){this.callBase(),this.option("fieldTemplate")&&this._detachFocusEvents()},_getFieldTemplate:function(){return this.option("fieldTemplate")&&this._getTemplateByOption("fieldTemplate")},_renderMask:function(){this.option("fieldTemplate")||this.callBase()},_renderField:function(){var e=this._getFieldTemplate();e&&this._renderTemplatedField(e,this._fieldRenderData())},_renderPlaceholder:function(){var e=!!this._getFieldTemplate();e||this.callBase()},_renderValue:function(){this.option("useHiddenSubmitElement")&&this._setSubmitValue();var e=this.callBase();e.always(this._renderField.bind(this))},_renderTemplatedField:function(e,t){var n=this,i=(0,g.focused)(this._input()),o=this._$container;this._disposeKeyboardProcessor();var r=this._$beforeButtonsContainer&&this._$beforeButtonsContainer[0].parentNode,s=this._$afterButtonsContainer&&this._$afterButtonsContainer[0].parentNode;r&&r.removeChild(this._$beforeButtonsContainer[0]),s&&s.removeChild(this._$afterButtonsContainer[0]),this._detachFocusEvents(),o.empty();var l=(0,a.default)("
").addClass(j).appendTo(o);e.render({model:t,container:(0,y.getPublicElement)(l),onRendered:function(){var e=n._input();if(!e.length)throw x.default.Error("E1010");n._refreshEvents(),n._refreshValueChangeEvent(),n._renderFocusState(),i&&u.default.trigger(e,"focus")}}),o.prepend(this._$beforeButtonsContainer),o.append(this._$afterButtonsContainer)},_fieldRenderData:function(){return this.option("value")},_initTemplates:function(){this.callBase(),this._defaultTemplates.dropDownButton=new M.default(function(e){var t=(0,a.default)("
").addClass(z);(0,a.default)(e.container).append(t)},this)},_renderOpenHandler:function(){var e=this._inputWrapper(),t=(0,T.addNamespace)(O.default.name,this.NAME),n=this.option("openOnFieldClick");u.default.off(e,t),u.default.on(e,t,this._getInputClickHandler(n)),this.$element().toggleClass(G,n),n&&(this._openOnFieldClickAction=this._createAction(this._openHandler.bind(this)))},_attachFocusOutHandler:function(){var e=this;q&&(this._detachFocusOutEvents(),u.default.on(this._inputWrapper(),(0,T.addNamespace)("focusout",this.NAME),function(t){var n=t.relatedTarget,i=e.content?(0,a.default)(e.content()).closest("."+N):e._$popup;if(n&&e.option("opened")){var o=0===(0,a.default)(n).closest("."+N,i).length;o&&e.close()}}))},_detachFocusOutEvents:function(){q&&u.default.off(this._inputWrapper(),(0,T.addNamespace)("focusout",this.NAME))},_getInputClickHandler:function(e){var t=this;return e?function(e){t._executeOpenAction(e)}:function(e){t._focusInput()}},_openHandler:function(){this._toggleOpenState()},_executeOpenAction:function(e){this._openOnFieldClickAction({event:e})},_keyboardEventBindingTarget:function(){return this._input()},_focusInput:function(){return!this.option("disabled")&&(this.option("focusStateEnabled")&&!(0,g.focused)(this._input())&&u.default.trigger(this._input(),"focus"),!0)},_toggleOpenState:function(e){this._focusInput()&&(this.option("readOnly")||(e=arguments.length?e:!this.option("opened"),this.option("opened",e)))},_renderOpenedState:function(){var e=this.option("opened");e&&this._createPopup(),this.$element().toggleClass(W,e),this._setPopupOption("visible",e),this.setAria({expanded:e}),this.setAria("owns",(e||void 0)&&this._popupContentId,this.$element())},_createPopup:function(){this._$popup||(this._$popup=(0,a.default)("
").addClass(N).addClass(this.option("customOverlayCssClass")).appendTo(this.$element()),this._renderPopup(),this._renderPopupContent())},_renderPopupContent:f.noop,_renderPopup:function(){this._popup=this._createComponent(this._$popup,F.default,(0,v.extend)(this._popupConfig(),this._getInnerOptionsCache("dropDownOptions"))), this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this)}),this._popup.option("onContentReady",this._contentReadyHandler.bind(this)),this._contentReadyHandler(),this._setPopupContentId(this._popup.$content()),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_setPopupContentId:function(e){this._popupContentId="dx-"+new d.default,this.setAria("id",this._popupContentId,e)},_contentReadyHandler:f.noop,_popupConfig:function(){return{onInitialized:this._popupInitializedHandler(),position:(0,v.extend)(this.option("popupPosition"),{of:this.$element()}),showTitle:this.option("showPopupTitle"),width:"auto",height:"auto",shading:!1,closeOnTargetScroll:!0,closeOnOutsideClick:this._closeOutsideDropDownHandler.bind(this),animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,toolbarItems:this._getPopupToolbarItems(),onPositioned:this._popupPositionedHandler.bind(this),fullScreen:!1,contentTemplate:null}},_popupInitializedHandler:function(){var e=this;if(this.option("onPopupInitialized"))return function(t){e._popupInitializedAction({popup:t.component})}},_popupPositionedHandler:function(e){e.position&&this._popup.overlayContent().toggleClass($,e.position.v.flip)},_popupShowingHandler:f.noop,_popupHidingHandler:function(){this.option("opened",!1)},_popupShownHandler:function(){this._openAction(),this._$validationMessage&&this._$validationMessage.dxOverlay("option","position",this._getValidationMessagePosition())},_popupHiddenHandler:function(){this._closeAction(),this._$validationMessage&&this._$validationMessage.dxOverlay("option","position",this._getValidationMessagePosition())},_getValidationMessagePosition:function(){var e="below";if(this._popup&&this._popup.option("visible")){var t=(0,w.setup)(this.$element()),n=t.top,i=(0,w.setup)(this._popup.$content()),o=i.top;e=n+this.option("popupPosition").offset.v>o?"below":"above"}return this.callBase(e)},_closeOutsideDropDownHandler:function(e){var t=e.target,n=(0,a.default)(t),i=this.getButton("dropDown"),o=i&&i.$element(),r=!!n.closest(this.$element()).length,s=!!n.closest(o).length,l=!r&&!s;return l},_clean:function(){delete this._openOnFieldClickAction,this._$popup&&(this._$popup.remove(),delete this._$popup,delete this._popup),this.callBase()},_setPopupOption:function(e,t){this._setWidgetOption("_popup",arguments)},_validatedOpening:function(){this.option("readOnly")||this._toggleOpenState(!0)},_getPopupToolbarItems:function(){return"useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[]},_getFirstPopupElement:function(){return this._popup._wrapper().find(".dx-popup-done.dx-button")},_getLastPopupElement:function(){return this._popup._wrapper().find(".dx-popup-cancel.dx-button")},_popupElementTabHandler:function(e){var t=(0,a.default)(e.currentTarget);(e.shiftKey&&t.is(this._getFirstPopupElement())||!e.shiftKey&&t.is(this._getLastPopupElement()))&&(u.default.trigger(this._input(),"focus"),e.preventDefault())},_popupElementEscHandler:function(){u.default.trigger(this._input(),"focus"),this.close()},_popupButtonInitializedHandler:function(e){e.component.registerKeyHandler("tab",this._popupElementTabHandler.bind(this)),e.component.registerKeyHandler("escape",this._popupElementEscHandler.bind(this))},_popupToolbarItemsConfig:function(){var e=[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}},{shortcut:"cancel",options:{onClick:this._cancelButtonHandler.bind(this),text:this.option("cancelButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}}];return this._applyButtonsLocation(e)},_applyButtonsLocation:function(e){var t=this.option("buttonsLocation"),n=e;if("default"!==t){var i=(0,f.splitPair)(t);(0,_.each)(n,function(e,t){(0,v.extend)(t,{toolbar:i[0],location:i[1]})})}return n},_applyButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_cancelButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_updatePopupWidth:f.noop,_popupOptionChanged:function(e){var t=this._getOptionsFromContainer(e);this._setPopupOption(t),Object.keys(t).indexOf("width")!==-1&&void 0===t.width&&this._updatePopupWidth()},_renderSubmitElement:function(){this.option("useHiddenSubmitElement")&&(this._$submitElement=(0,a.default)("").attr("type","hidden").appendTo(this.$element()))},_setSubmitValue:function(){this._getSubmitElement().val(this.option("value"))},_getSubmitElement:function(){return this.option("useHiddenSubmitElement")?this._$submitElement:this.callBase()},_dispose:function(){this._detachFocusOutEvents(),this.callBase()},_optionChanged:function(e){switch(e.name){case"opened":this._renderOpenedState();break;case"onOpened":case"onClosed":this._initVisibilityActions();break;case"onPopupInitialized":this._initPopupInitializedAction();break;case"fieldTemplate":(0,m.isDefined)(e.value)?this._renderField():this._invalidate();break;case"acceptCustomValue":case"openOnFieldClick":this._invalidate();break;case"dropDownButtonTemplate":case"showDropDownButton":this._updateButtons(["dropDown"]);break;case"dropDownOptions":this._popupOptionChanged(e),this._cacheInnerOptions("dropDownOptions",e.value);break;case"popupPosition":case"deferRendering":break;case"applyValueMode":case"applyButtonText":case"cancelButtonText":case"buttonsLocation":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"showPopupTitle":this._setPopupOption("showTitle",e.value);break;case"useHiddenSubmitElement":this._$submitElement&&(this._$submitElement.remove(),this._$submitElement=void 0),this._renderSubmitElement();break;case"rtlEnabled":this._updatePopupPosition(e.value),this.callBase(e);break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)},field:function(){return(0,y.getPublicElement)(this._input())},content:function(){return this._popup?this._popup.content():null}}).include(s.default);(0,p.default)("dxDropDownEditor",K),e.exports=K},function(e,t,n){e.exports=n(520)},function(e,t,n){var i=n(2),o=n(31),a=n(9),r=n(4).grep,s=n(0).extend,l=n(13),u=n(3),c=n(574),d=n(575),h=n(291),p=n(136),f={actionSheet:c,dropDownMenu:d},g="dx-toolbar-item-auto-hide",_="dx-toolbar-text-auto-hide",m="dx-toolbar-item-invisible",v=h.inherit({_getDefaultOptions:function(){return s(this.callBase(),{menuItemTemplate:"menuItem",submenuType:"dropDownMenu",menuContainer:void 0})},_defaultOptionsRules:function(){var e=o.current();return this.callBase().concat([{device:function(){return o.isIos7(e)},options:{submenuType:"actionSheet"}}])},_dimensionChanged:function(e){"height"!==e&&(this._menuStrategy.toggleMenuVisibility(!1,!0),this.callBase(),this._menuStrategy.renderMenuItems())},_initTemplates:function(){this.callBase(),this._defaultTemplates.actionSheetItem=new p("item",this)},_initMarkup:function(){this.callBase(),this._renderMenu()},_postProcessRenderItems:function(){this._hideOverflowItems(),this._menuStrategy._updateMenuVisibility(),this.callBase(),this._menuStrategy.renderMenuItems()},_renderItem:function(e,t,n,i){var o=this.callBase(e,t,n,i);return"auto"===t.locateInMenu&&o.addClass(g),"dxButton"===t.widget&&"inMenu"===t.showText&&o.toggleClass(_),o},_getItemsWidth:function(){return this._getSummaryItemsWidth([this._$beforeSection,this._$centerSection,this._$afterSection])},_hideOverflowItems:function(e){var t=this.$element().find("."+g);if(t.length){e=e||this.$element().width(),i(t).removeClass(m);for(var n=this._getItemsWidth();t.length&&e").addClass(g);return t.append(a)}},n)});return l.merge(o,t)},_getToolbarItems:function(){var e=this;return r(this.option("items")||[],function(t){return!e._isMenuItem(t)})},_renderMenu:function(){this._renderMenuStrategy(),this._menuStrategy.render()},_renderMenuStrategy:function(){var e=this.option("submenuType");this._requireDropDownStrategy()&&(e="dropDownMenu");var t=f[e];this._menuStrategy&&this._menuStrategy.NAME===e||(this._menuStrategy=new t(this))},_requireDropDownStrategy:function(){var e=this.option("items")||[],t=!1;return u.each(e,function(e,n){"auto"===n.locateInMenu?t=!0:"always"===n.locateInMenu&&n.widget&&(t=!0)}),t},_arrangeItems:function(){if(!this.$element().is(":hidden")){this._$centerSection.css({margin:"0 auto","float":"none"}),u.each(this._restoreItems||[],function(e,t){i(t.container).append(t.item)}),this._restoreItems=[];var e=this.$element().width();this._hideOverflowItems(e),this.callBase(e)}},_itemOptionChanged:function(e,t,n){this._isMenuItem(e)?this._menuStrategy.renderMenuItems():this._isToolbarItem(e)?this.callBase(e,t,n):(this.callBase(e,t,n),this._menuStrategy.renderMenuItems())},_isMenuItem:function(e){return"menu"===e.location||"always"===e.locateInMenu},_isToolbarItem:function(e){return void 0===e.location||"never"===e.locateInMenu},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"submenuType":this._invalidate();break;case"visible":this.callBase.apply(this,arguments),this._menuStrategy.handleToolbarVisibilityChange(n);break;case"menuItemTemplate":this._changeMenuOption("itemTemplate",this._getTemplate(n));break;case"onItemClick":this._changeMenuOption(t,n),this.callBase.apply(this,arguments);break;case"menuContainer":this._changeMenuOption("container",n);break;default:this.callBase.apply(this,arguments)}},_changeMenuOption:function(e,t){this._menuStrategy.widgetOption(e,t)}});a("dxToolbar",v),e.exports=v},function(e,t,n){e.exports=n(328),e.exports.show=n(253).show,e.exports.hide=n(253).hide},function(e,t,n){var i=n(1),o=n(13).inArray,a=n(3),r=["year","month","day"],s=["year","month","day","hour","minute"];e.exports=function(){var t=function(e,t){var n=e.dataField||e.selector;return"search"===t&&(n=e.displayField||e.calculateDisplayValue||n),n},n=function(e){return e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()<1},l=function(e){return"date"===e||"datetime"===e},u=function(e){return i.isDate(e)?[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()]:a.map((""+e).split("/"),function(e,t){return 1===t?Number(e)-1:Number(e)})},c=function(e,o){var a,r,s,u=this,c=t(u,o);if(Array.isArray(e)&&i.isDefined(e[0])&&i.isDefined(e[1]))return r=[c,">=",e[0]],s=[c,"<=",e[1]],l(u.dataType)&&n(e[1])&&(a=new Date(e[1].getTime()),"date"===u.dataType&&a.setDate(e[1].getDate()+1),s=[c,"<",a]),[r,"and",s]},d=function(n,i,o){var a,r,s,l=this,c=u(n),d=t(l,o);switch("headerFilter"===o?s=e.exports.getGroupInterval(l)[c.length-1]:"datetime"===l.dataType&&(s="minute"),s){case"year":a=new Date(c[0],0,1),r=new Date(c[0]+1,0,1);break;case"month":a=new Date(c[0],c[1],1),r=new Date(c[0],c[1]+1,1);break;case"quarter":a=new Date(c[0],3*c[1],1),r=new Date(c[0],3*c[1]+3,1);break;case"hour":a=new Date(c[0],c[1],c[2],c[3]),r=new Date(c[0],c[1],c[2],c[3]+1);break;case"minute":a=new Date(c[0],c[1],c[2],c[3],c[4]),r=new Date(c[0],c[1],c[2],c[3],c[4]+1);break;case"second":a=new Date(c[0],c[1],c[2],c[3],c[4],c[5]),r=new Date(c[0],c[1],c[2],c[3],c[4],c[5]+1);break;default:a=new Date(c[0],c[1],c[2]),r=new Date(c[0],c[1],c[2]+1)}switch(i){case"<":return[d,"<",a];case"<=":return[d,"<",r];case">":return[d,">=",r];case">=":return[d,">=",a];case"<>":return[[d,"<",a],"or",[d,">=",r]];default:return[[d,">=",a],"and",[d,"<",r]]}},h=function(n,o,a){var r=this,s=t(r,a),l=e.exports.getGroupInterval(r);if("headerFilter"===a&&l&&i.isDefined(n)){var u=(""+n).split("/"),c=Number(u[u.length-1]),d=l[u.length-1],h=[s,">=",c],p=[s,"<",c+d],f=[h,"and",p];return f}return[s,o||"=",n]};return{defaultCalculateFilterExpression:function(e,n,o){var a=this,r=t(a,o),s=a.calculateDisplayValue&&"search"===o,u=s&&a.lookup&&a.lookup.dataType||a.dataType,p=null;if("headerFilter"!==o&&"filterBuilder"!==o||null!==e)if("string"!==u||a.lookup&&!s){if("between"===n)return c.apply(a,[e,o]);if(l(u)&&i.isDefined(e))return d.apply(a,arguments);if("number"===u)return h.apply(a,arguments);"object"!==u&&(p=[r,n||"=",e])}else p=[r,n||"contains",e];else p=[r,n||"=",null],"string"===u&&(p=[p,"="===n?"or":"and",[r,n||"=",""]]);return p},getGroupInterval:function(e){var t,n=[],a=["year","month","day","hour","minute","second"],u=e.headerFilter&&e.headerFilter.groupInterval,c="quarter"===u?"month":u;return l(e.dataType)&&null!==u?(n="datetime"===e.dataType?s:r,t=o(c,a),t>=0?(n=a.slice(0,t),n.push(u),n):n):i.isDefined(u)?Array.isArray(u)?u:[u]:void 0}}}()},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(10),s=i(r),l=n(7),u=n(5),c=i(u),d=n(37),h=i(d),p=n(23),f=i(p),g=n(19),_=i(g),m=n(131),v=i(m),y=n(26),b=i(y),x=n(4),w=n(83),C=i(w),k=n(12),S=n(1),I=i(S),T=n(3),D=i(T),E=n(0),A=n(98),O=n(39),B=i(O),P=n(35),R=n(337),M=i(R),V="scroll-container",F="group-space",L="content",H="table",z="table-fixed",N="content-fixed",$="dx-row",W="dx-col-fixed",G="dx-group-row",j="dx-master-detail-row",q="filter-row",K="cell-updated-animation",U="0.0001px",Y="dxCellHintVisible",X="dx-field-item-content",Z={render:function(e){e.container.append(e.content)}},Q=function(e,t){function n(e){return setTimeout(function(){i=o=null},e)}var i,o,r;c.default.on(t,"touchstart touchend",".dx-row",function(e){clearTimeout(r),"touchstart"===e.type?(i=e.target,o=e.currentTarget,r=n(1e3)):r=n()}),c.default.on(t,[_.default.name,v.default.name,f.default.down].join(" "),".dx-row",{useNative:e._isNativeClick()},e.createAction(function(t){var n=t.event;i&&(n.target=i,n.currentTarget=o),(0,a.default)(n.target).closest("a").length||(t.rowIndex=e.getRowIndex(n.currentTarget),t.rowIndex>=0&&(t.rowElement=(0,k.getPublicElement)((0,a.default)(n.currentTarget)),t.columns=e.getColumns(),n.type===f.default.down?e._rowPointerDown(t):n.type===_.default.name?e._rowClick(t):e._rowDblClick(t)))}))},J=function(e){return"auto"===e?"":I.default.isNumeric(e)?e+"px":e},ee=function(e,t,n){e.style.width=e.style.maxWidth="auto"===t.width?"":n},te=function(e,t){if(e&&t){var n,i=e.attributes,o=t.attributes;for(n=0;n1?o.attr("colSpan",t.colspan):t.isBand||"auto"===t.visibleWidth||this.option("legacyRendering")||!this.option("columnAutoWidth")||((t.width||t.minWidth)&&(i.style.minWidth=J(t.minWidth||t.width)),t.width&&ee(i,t,J(t.width))),b.default.mozilla&&e.column.fixed&&o.addClass(W),o},_createRow:function(e){var t=(0,a.default)("").addClass($);return this.setAria("role","row",t),t},_createTable:function(e,t){var n=this,i=(0,a.default)("").addClass(n.addWidgetPrefix(H)).addClass(n.addWidgetPrefix(z));if(e&&!t?(i.append(n._createColGroup(e)),b.default.safari&&i.append((0,a.default)("").append("")),n.setAria("role","presentation",i)):n.setAria("hidden",!0,i),this.setAria("role","presentation",(0,a.default)("").appendTo(i)),t)return i;b.default.mozilla&&c.default.on(i,"mousedown","td",function(e){e.ctrlKey&&e.preventDefault()}),n.option("cellHintEnabled")&&c.default.on(i,"mousemove",".dx-row > td",this.createAction(function(e){var t=e.event,i=(0,a.default)(t.target),o=(0,a.default)(t.currentTarget),r=o.parent(),s=r.hasClass("dx-data-row"),l=r.hasClass("dx-header-row"),u=r.hasClass(G),c=r.hasClass(j),d=r.hasClass(n.addWidgetPrefix(q)),h=n._columnsController.getVisibleColumns(),p=r.data("options"),f=o.index(),g=p&&p.cells&&p.cells[f],_=g?g.column:h[f],m=b.default.msie?1:0;if(!c&&!d&&(!s||s&&_&&!_.cellTemplate)&&(!l||l&&_&&!_.headerCellTemplate)&&(!u||u&&_&&(void 0===_.groupIndex||!_.groupCellTemplate))){i.data(Y)&&(i.removeAttr("title"),i.data(Y,!1));var v=i[0].scrollWidth-i[0].clientWidth-m;v>0&&!I.default.isDefined(i.attr("title"))&&(i.attr("title",i.text()),i.data(Y,!0))}}));var o=function(e){var t=(0,a.default)(e.currentTarget),i=(0,a.default)(e.target).closest("."+X),o=t.parent().data("options"),r=o&&o.cells&&o.cells[t.index()];if(t.closest("table").is(e.delegateTarget)){var s=(0,E.extend)({},r,{cellElement:(0,k.getPublicElement)(t),event:e,eventType:e.type});if(i.length){var l=i.data("dx-form-item");l.column&&(s.column=l.column,s.columnIndex=n._columnsController.getVisibleIndex(s.column.index))}return s}};return c.default.on(i,"mouseover",".dx-row > td",function(e){var t=o(e);t&&n.executeAction("onCellHoverChanged",t)}),c.default.on(i,"mouseout",".dx-row > td",function(e){var t=o(e);t&&n.executeAction("onCellHoverChanged",t)}),c.default.on(i,_.default.name,".dx-row > td",function(e){var t=o(e);t&&n.executeAction("onCellClick",t)}),c.default.on(i,v.default.name,".dx-row > td",function(e){var t=o(e);t&&n.executeAction("onCellDblClick",t)}),Q(n,i),i},_isNativeClick:x.noop,_rowPointerDown:x.noop,_rowClick:x.noop,_rowDblClick:x.noop,_createColGroup:function(e){for(var t=(0,a.default)(""),n=0;n");return C.default.setWidth(n,t),n},renderDelayedTemplates:function(){var e=this._delayedTemplates,t=e.filter(function(e){return!e.async}),n=e.filter(function(e){return e.async});this._delayedTemplates=[],this._renderDelayedTemplatesCore(t),this._renderDelayedTemplatesCoreAsync(n)},_renderDelayedTemplatesCoreAsync:function(e){var t=this;e.length&&(0,l.getWindow)().setTimeout(function(){t._renderDelayedTemplatesCore(e,!0)})},_renderDelayedTemplatesCore:function(e,t){for(var n=new Date;e.length;){var i=e.shift(),o=i.options,r=o.model,l=s.default.getDocument();if(t&&!(0,a.default)(o.container).closest(l).length||(i.template.render(o),r&&r.column&&this._updateCell(o.container,r)),t&&new Date-n>30){this._renderDelayedTemplatesCoreAsync(e);break}}},_processTemplate:function(e){var t,n=this;if(e&&e.render&&!I.default.isRenderer(e))t={allowRenderToDetachedContainer:e.allowRenderToDetachedContainer,render:function(t){e.render(t.container,t.model)}};else if(I.default.isFunction(e))t={render:function(t){var n=e((0,k.getPublicElement)(t.container),t.model);n&&(n.nodeType||I.default.isRenderer(n))&&t.container.append(n)}};else{var i=I.default.isString(e)?e:(0,a.default)(e).attr("id");i?(n._templatesCache[i]||(n._templatesCache[i]=n.getTemplate(e)),t=n._templatesCache[i]):t=n.getTemplate(e)}return t},renderTemplate:function(e,t,n,i){var o=this,a=o._processTemplate(t,n),r=n.column,s="data"===n.rowType;if(a){n.component=o.component;var l=r&&(r.renderAsync&&s||o.option("renderAsync")&&(r.renderAsync!==!1&&(r.command||r.showEditorAlways)&&s||"filter"===n.rowType));if((a.allowRenderToDetachedContainer||i)&&!l)return a.render({container:e,model:n}),!0;o._delayedTemplates.push({template:a,options:{container:e,model:n},async:l})}return!1},_getBodies:function(e){return(0,a.default)(e).children("tbody").not(".dx-header").not(".dx-footer")},_wrapRowIfNeed:function(e,t){var n=this.option("rowTemplate")&&this._getBodies(this._tableElement||e);if(n&&n.filter("."+$).length){var i=(0,a.default)("").addClass(t.attr("class"));return this.setAria("role","presentation",i),i.append(t)}return t},_appendRow:function(e,t,n){n=n||Z,n.render({content:t,container:e})},_resizeCore:function(){var e=this._scrollLeft;e>=0&&(this._scrollLeft=0,this.scrollTo({left:e}))},_renderCore:function(e){var t=this.element().parent();t&&!t.parent().length||this.renderDelayedTemplates(e)},_renderTable:function(e){e=e||{},e.columns=this._columnsController.getVisibleColumns();var t=e.change&&e.change.changeType,n=this._createTable(e.columns,"append"===t||"prepend"===t||"update"===t);return this._renderRows(n,e),n},_renderRows:function(e,t){for(var n=this,i=n._getRows(t.change),o=t.change&&t.change.columnIndices||[],a=t.change&&t.change.changeTypes||[],r=0;r=0)&&n._renderCell(e,(0,E.extend)({column:a[r],columnIndex:i,value:o.values&&o.values[i],oldValue:o.oldValues&&o.oldValues[i]},t)),a[r].colspan>1?i+=a[r].colspan:i++},_updateCells:function(e,t,n){var i=e.children(),o=t.children(),a=this.option("highlightChanges"),r=this.addWidgetPrefix(K);n.forEach(function(e,t){var n=i.eq(e),s=o.eq(t);n.replaceWith(s),a&&!s.hasClass("dx-command-expand")&&s.addClass(r)}),te(e.get(0),t.get(0))},_setCellAriaAttributes:function(e,t){"freeSpace"!==t.rowType&&(this.setAria("selected",!1,e),this.setAria("role","gridcell",e),this.setAria("colindex",t.columnIndex+1,e))},_renderCell:function(e,t){var n=this,i=n._getCellOptions(t);t.columnIndices?t.row.cells&&(t.row.cells[i.columnIndex]=i):t.row.cells.push(i);var o=n._createCell(i);return n._setCellAriaAttributes(o,i),n._renderCellContent(o,i),e.get(0).appendChild(o.get(0)),o},_renderCellContent:function(e,t){var n=this._getCellTemplate(t);n&&!this.renderTemplate(e,n,t)||this._updateCell(e,t)},_getCellTemplate:function(){},_getRows:function(){return[]},_getCellOptions:function(e){var t={column:e.column,columnIndex:e.columnIndex,rowType:e.row.rowType};return this._addWatchMethod(t),t},_addWatchMethod:function(e,t){if(this.option("repaintChangesOnly")){var n=[];return t=t||e,t.watch=t.watch||function(e,i){var o=e(t.data),a=function(){var n=e(t.data);JSON.stringify(o)!==JSON.stringify(n)&&(i(n,o),o=n)};n.push(a);var r=function(){var e=n.indexOf(a);e>=0&&n.splice(e,1)};return r},t.update=t.update||function(t){this.data=e.data=t.data,this.rowIndex=e.rowIndex=t.rowIndex,this.dataIndex=e.dataIndex=t.dataIndex,this.isExpanded=e.isExpanded=t.isExpanded,e.row&&(e.row=t),n.forEach(function(e){e()})},t!==e&&(e.watch=t.watch.bind(t)),e}},_cellPrepared:function(e,t){t.cellElement=(0,k.getPublicElement)((0,a.default)(e)),this.executeAction("onCellPrepared",t)},_rowPrepared:function(e,t){h.default.data(e.get(0),"options",t),t.rowElement=(0,k.getPublicElement)(e),this.executeAction("onRowPrepared",t)},_columnOptionChanged:function(e){var t=e.optionNames;if((0,P.checkChanges)(t,["width","visibleWidth"])){var n=this._columnsController.getVisibleColumns(),i=D.default.map(n,function(e){var t=e.visibleWidth||e.width;return I.default.isDefined(t)?t:"auto"});return void this.setColumnWidths({widths:i,optionNames:t})}this._requireReady||this.render()},getCellIndex:function(e){var t=e.length?e[0].cellIndex:-1;return t},getTableElements:function(){return this._tableElement||(0,a.default)()},_getTableElement:function(){return this._tableElement},_setTableElement:function(e){this._tableElement=e},optionChanged:function(e){switch(this.callBase(e),e.name){case"cellHintEnabled":case"onCellPrepared":case"onRowPrepared":case"onCellHoverChanged":this._invalidate(!0,!0),e.handled=!0}},init:function(){var e=this;e._scrollLeft=-1,e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._delayedTemplates=[],e._templatesCache={},e.createAction("onCellClick"),e.createAction("onRowClick"),e.createAction("onCellDblClick"),e.createAction("onRowDblClick"),e.createAction("onCellHoverChanged",{excludeValidators:["disabled","readOnly"]}),e.createAction("onCellPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),e.createAction("onRowPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering",afterExecute:function(t){e._afterRowPrepared(t)}}),e._columnsController.columnsChanged.add(e._columnOptionChanged.bind(e)),e._dataController&&e._dataController.changed.add(e._handleDataChanged.bind(e))},_afterRowPrepared:x.noop,_handleDataChanged:function(){},callbackNames:function(){return["scrollChanged"]},_updateScrollLeftPosition:function(){var e=this._scrollLeft;e>=0&&(this._scrollLeft=0,this.scrollTo({left:e}))},scrollTo:function(e){var t=this.element(),n=t&&t.children("."+this.addWidgetPrefix(V)).not("."+this.addWidgetPrefix(N));I.default.isDefined(e)&&I.default.isDefined(e.left)&&this._scrollLeft!==e.left&&(this._scrollLeft=e.left,n&&n.scrollLeft(e.left))},_wrapTableInScrollContainer:function(e){var t=this,n=(0,a.default)("
");return c.default.on(n,"scroll",function(){var e=n.scrollLeft();e!==t._scrollLeft&&t.scrollChanged.fire({left:e},t.name)}),n.addClass(this.addWidgetPrefix(L)).addClass(this.addWidgetPrefix(V)).append(e).appendTo(this.element()),this.setAria("role","presentation",n),n},_updateContent:function(e){this._setTableElement(e),this._wrapTableInScrollContainer(e)},_findContentElement:x.noop,_getWidths:function(e){var t,n=[],i=this.option("legacyRendering");return e&&D.default.each(e,function(e,o){if(t=o.offsetWidth,o.getBoundingClientRect){var a=o.getBoundingClientRect();a.width>t-1&&(t=i?Math.ceil(a.width):a.width)}n.push(t)}),n},getColumnWidths:function(e){var t,n,i=this,o=[];if((this.option("forceApplyBindings")||x.noop)(),e=e||i._getTableElement()){t=e.children("tbody").children();for(var a=0;a=0&&(n=o.eq(a)),n&&n.length)return n},_getRowElement:function(e){var t=this,n=(0,a.default)(),i=t.getTableElements();if(D.default.each(i,function(i,o){n=n.add(t._getRowElements((0,a.default)(o)).eq(e))}),n.length)return n},getCellElement:function(e,t){return(0,k.getPublicElement)(this._getCellElement(e,t))},getRowElement:function(e){var t=this._getRowElement(e),n=[];if(t&&!(0,k.getPublicElement)(t).get)for(var i=0;i0&&e.rowIndex>=0&&("virtual"!==this.option("scrolling.mode")&&(e.rowIndex=e.rowIndex0))return n.eq(n.length>e.columnIndex?e.columnIndex:n.length-1)},getRowsCount:function(){var e=this._getTableElement();return e&&1===e.length?e[0].rows.length:0},_getRowElements:function(e){if(e=e||this._getTableElement()){var t=this.option("rowTemplate")&&e.find("> tbody."+$);return t&&t.length?t:e.find("> tbody > ."+$+", > ."+$)}return(0,a.default)()},getRowIndex:function(e){return this._getRowElements().index(e)},getBoundingRect:function(){},getName:function(){},setScrollerSpacing:function(e){var t=this,n=t.element(),i=t.option("rtlEnabled");n&&n.css(i?{paddingLeft:e}:{paddingRight:e})},isScrollbarVisible:function(e){var t=this.element(),n=this._tableElement;return!(!t||!n)&&(e?n.outerWidth()-t.width()>0:n.outerHeight()-t.height()>0)}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return void 0===e?C||R:(e=(0,k.normalizeEnum)(e),void(C=e in V?e:void 0))}function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{keepLastColorInEnd:!1};return n.type=n.baseColorSet,n.extensionMode=n.paletteExtensionMode,f(e,n).generateColors(t)}function s(e,t){t=t||{},e=x(e,t.themeDefault);var n,i=t.type;return O(e)?e.slice(0):(B(e)&&(n=V[(0,k.normalizeEnum)(e)]),n||(n=V[a()]),i?n[i].slice(0):n)}function l(e,t){var n,i={};O(t)?i.simpleSet=t.slice(0):t&&(i.simpleSet=O(t.simpleSet)?t.simpleSet.slice(0):void 0,i.indicatingSet=O(t.indicatingSet)?t.indicatingSet.slice(0):void 0,i.gradientSet=O(t.gradientSet)?t.gradientSet.slice(0):void 0,i.accentColor=t.accentColor),i.accentColor||(i.accentColor=i.simpleSet&&i.simpleSet[0]),(i.simpleSet||i.indicatingSet||i.gradientSet)&&(n=(0,k.normalizeEnum)(e),(0,S.extend)(V[n]=V[n]||{},i))}function u(e,t){return e=s(e,{themeDefault:t}),e.accentColor||e[0]}function c(e){var t=0;this.next=function(){var n=e[t++];return t===e.length&&this.reset(),n},this.reset=function(){t=0}}function d(e,t){function n(){var t=o.next();a=t?g(e,t):e.slice(0)}var i=t.useHighlight?P:0,o=new c([0,i,-i]),a=[];return{getColor:function(t){var i=a[t%e.length];return t%e.length===e.length-1&&n(),i},generateColors:function(e){var n=[];e=e||t.count;for(var i=0;iMath.max(.8,o+.15*(1-o))&&(s=Math.max(.8,o+.15*(1-o))),u<0?o-=(r-o)*u/l:o+=(s-o)*(u/l),i.l=100*o,A.prototype.fromHSL(i).toHex()}return{getColor:function(t,i){var o=e.length,a=D((i-1)/o+1),r=e[t%o];return a>1?n(r,D(t/o),a):r},generateColors:function(e){var n=[];e=e||t.count;for(var i=0;i0&&(a+=1,s--),o=a>2?Math.floor(a/2):0,i.push(l+o), l+=a;return i.sort(function(e,t){return e-t})}function i(e,t,n){t=(n+t)%n;for(var i=0,o=t;o<2*n;o+=1){var a=(n+o)%n;if(e[a])return[e[a],i];i++}}function o(e,t){for(var n=0;n-1&&(a[c]=e[l++]);return a=o(a,i)}var r=e.length,s=[];return{getColor:function(e,n){return n=n||t.count||r,s.length!==n&&(s=a(n)),s[e%n]},generateColors:function(e,n){if(e=e||t.count||r,n&&e>r){for(var i=a(r),o=0;o0?a(e).slice(0,e):[]},reset:function(){}}}function f(e,t,n){var i={dispose:function(){this._extensionStrategy=null},getNextColor:function(e){return this._extensionStrategy.getColor(this._currentColor++,e)},generateColors:function(e,t){return this._extensionStrategy.generateColors(e,(t||{}).repeat)},reset:function(){return this._currentColor=0,this._extensionStrategy.reset(),this}};t=t||{};var o=(t.extensionMode||"").toLowerCase(),a=s(e,{type:t.type||"simpleSet",themeDefault:n});return"alternate"===o?i._extensionStrategy=d(a,t):"extrapolate"===o?i._extensionStrategy=h(a,t):i._extensionStrategy=p(a,t),i.reset(),i}function g(e,t){var n,i=[],o=e.length;for(n=0;n200||i<55)&&(n=new A(e).alter(-t/2)),n.toHex()}function m(e){return.3*e.r+.59*e.g+.11*e.b}function v(e,t,n){var i=t>0?y(s(e,{type:"gradientSet",themeDefault:n}),t):[];return{getColor:function(e){return i[e]||null}}}function y(e,t){function n(e){var t=a*e,n=D(t),i=E(t);s.push(r[n].blend(r[i],t-n).toHex())}var i,o=t-1,a=e.length-1,r=[],s=[];for(i=0;i<=a;++i)r.push(new A(e[i]));if(o>0)for(i=0;i<=o;++i)n(i/o);else n(.5);return s}function b(e,t){var n=s(e,{type:"gradientSet",themeDefault:t}),i=new A(n[0]),o=new A(n[1]);return{getColor:function(e){return 0<=e&&e<=1?i.blend(o,e).toHex():null}}}function x(e,t){var n=e||(void 0===C?t:a());return"default"===n&&T.default.log("W0016",'"palette"',"Default","18.1",'Use the "Office" value instead.'),n}Object.defineProperty(t,"__esModule",{value:!0}),t._DEBUG_palettes=void 0;var w;t.currentPalette=a,t.generateColors=r,t.getPalette=s,t.registerPalette=l,t.getAccentColor=u,t.createPalette=f,t.getDiscretePalette=v,t.getGradientPalette=b;var C,k=n(11),S=n(0),I=n(21),T=i(I),D=Math.floor,E=Math.ceil,A=n(90),O=Array.isArray,B=n(1).isString,P=50,R="material",M={simpleSet:["#5f8b95","#ba4d51","#af8a53","#955f71","#859666","#7e688c"],indicatingSet:["#a3b97c","#e1b676","#ec7f83"],gradientSet:["#5f8b95","#ba4d51"],accentColor:"#ba4d51"},V=(w={},o(w,R,{simpleSet:["#1db2f5","#f5564a","#97c95c","#ffc720","#eb3573","#a63db8"],indicatingSet:["#97c95c","#ffc720","#f5564a"],gradientSet:["#1db2f5","#97c95c"],accentColor:"#1db2f5"}),o(w,"default",M),o(w,"office",M),o(w,"harmony light",{simpleSet:["#fcb65e","#679ec5","#ad79ce","#7abd5c","#e18e92","#b6d623","#b7abea","#85dbd5"],indicatingSet:["#b6d623","#fcb65e","#e18e92"],gradientSet:["#7abd5c","#fcb65e"],accentColor:"#679ec5"}),o(w,"soft pastel",{simpleSet:["#60a69f","#78b6d9","#6682bb","#a37182","#eeba69","#90ba58","#456c68","#7565a4"],indicatingSet:["#90ba58","#eeba69","#a37182"],gradientSet:["#78b6d9","#eeba69"],accentColor:"#60a69f"}),o(w,"pastel",{simpleSet:["#bb7862","#70b3a1","#bb626a","#057d85","#ab394b","#dac599","#153459","#b1d2c6"],indicatingSet:["#70b3a1","#dac599","#bb626a"],gradientSet:["#bb7862","#70b3a1"],accentColor:"#bb7862"}),o(w,"bright",{simpleSet:["#70c92f","#f8ca00","#bd1550","#e97f02","#9d419c","#7e4452","#9ab57e","#36a3a6"],indicatingSet:["#70c92f","#f8ca00","#bd1550"],gradientSet:["#e97f02","#f8ca00"],accentColor:"#e97f02"}),o(w,"soft",{simpleSet:["#cbc87b","#9ab57e","#e55253","#7e4452","#e8c267","#565077","#6babac","#ad6082"],indicatingSet:["#9ab57e","#e8c267","#e55253"],gradientSet:["#9ab57e","#e8c267"],accentColor:"#565077"}),o(w,"ocean",{simpleSet:["#75c099","#acc371","#378a8a","#5fa26a","#064970","#38c5d2","#00a7c6","#6f84bb"],indicatingSet:["#c8e394","#7bc59d","#397c8b"],gradientSet:["#acc371","#38c5d2"],accentColor:"#378a8a"}),o(w,"vintage",{simpleSet:["#dea484","#efc59c","#cb715e","#eb9692","#a85c4c","#f2c0b5","#c96374","#dd956c"],indicatingSet:["#ffe5c6","#f4bb9d","#e57660"],gradientSet:["#efc59c","#cb715e"],accentColor:"#cb715e"}),o(w,"violet",{simpleSet:["#d1a1d1","#eeacc5","#7b5685","#7e7cad","#a13d73","#5b41ab","#e287e2","#689cc1"],indicatingSet:["#d8e2f6","#d0b2da","#d56a8a"],gradientSet:["#eeacc5","#7b5685"],accentColor:"#7b5685"}),o(w,"carmine",{simpleSet:["#fb7764","#73d47f","#fed85e","#d47683","#dde392","#757ab2"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#fb7764","#73d47f"],accentColor:"#f05b41"}),o(w,"dark moon",{simpleSet:["#4ddac1","#f4c99a","#80dd9b","#f998b3","#4aaaa0","#a5aef1"],indicatingSet:["#59d8a4","#f0ad4e","#f9517e"],gradientSet:["#4ddac1","#f4c99a"],accentColor:"#3debd3"}),o(w,"soft blue",{simpleSet:["#7ab8eb","#97da97","#facb86","#e78683","#839bda","#4db7be"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#7ab8eb","#97da97"],accentColor:"#7ab8eb"}),o(w,"dark violet",{simpleSet:["#9c63ff","#64c064","#eead51","#d2504b","#4b6bbf","#2da7b0"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#9c63ff","#64c064"],accentColor:"#9c63ff"}),o(w,"green mist",{simpleSet:["#3cbab2","#8ed962","#5b9d95","#efcc7c","#f1929f","#4d8dab"],indicatingSet:["#72d63c","#ffc852","#f74a5e"],gradientSet:["#3cbab2","#8ed962"],accentColor:"#3cbab2"}),w)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return u(e)||l(e,t)||r(e,t)||a()}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n360&&(o%=360),a>360&&(a%=360),o>a&&(o-=360),s=!1),o*=tt,a*=tt,[e,t,Ue(i,n),Ke(i,n),Qe(o),Ze(o),Qe(a),Ze(a),r,Ye(Je(a-o)/et)%2?"1":"0",s]}function y(e,t){var n=[["M",0,0]];switch(t){case"line":n=b(e);break;case"area":n=b(e,!0);break;case"bezier":n=x(e);break;case"bezierarea":n=x(e,!0)}return n}function b(e,t){return w(e,C,t)}function x(e,t){return w(e,k,t)}function w(e,t,n){var i,o,a=[];if(e[0]&&e[0].length)for(i=0,o=e.length;ir&&(o=t.slice(0),s(t,e,n));return o}function T(e,t){var n=e[e.length-2],i=e[e.length-1];switch(t){case"line":case"area":e[0]="L";break;case"bezier":case"bezierarea":e[0]="C",e[1]=e[3]=e[5]=n,e[2]=e[4]=e[6]=i}}function D(e,t,n){var i=e[e.length-1].slice(),o=e.length;for(T(i,n);o|\/>)/gi,n=/(style|class)\s*=\s*(["'])(?:(?!\2).)*\2\s?/gi;return e.replace(t,function(e,t,i,o){return i=(i&&i.match(n)||[]).map(function(e){return e}).join(" "),t+i+o})}function N(e){var t=[],n=Be.default.createElement("div");return n.innerHTML=e.replace(/\r/g,"").replace(/\n/g,"
"),L(t,0,n,{},""),H(t),t}function $(e){for(var t=e.replace(/\r/g,"").split(/\n/g),n=0,i=[];ne)for(e-d<0?e=0:e-=d,t=Z(l.element,l._texts,e),n=0,i=t.length;ne&&se(s);return c.remove(),l._hasEllipsis=u,u}function q(e){var t;return e&&(t=e.cloneNode(),t.removeAttribute("y"),t.removeAttribute("x")),t||e}function K(e){for(var t=Be.default.querySelectorAll(e,"title"),n=0;n2&&void 0!==arguments[2]?arguments[2]:{},i=this,o=[],a=!1,r=!1,s=e;G.call(i);var l=K(this.element),u=i.renderer.text(gt).attr(i._styles).append(i.renderer.root),c=u.getBBox().width,d=i._getElementBBox(),h=d.width,p=d.height;return(h||p)&&(h>e||t&&p>t)&&(e-c<0?s=0:s-=c,o=ae(i.element,i._texts,e,s,n,t),o=oe(o,s,n,t,parseFloat(this._getLineHeight())),this._texts=o.reduce(function(e,t){return e.concat(t.parts)},[]).filter(function(e){return""!==e.value}).map(function(e){return e.stroke&&e.tspan.parentNode.appendChild(e.stroke),e}).map(function(e){return e.tspan.parentNode.appendChild(e.tspan),e}),!this._texts.length&&(this._texts=null),a=!0,this._texts?de(this):(this.element.textContent="",r=!0)),u.remove(),i._hasEllipsis=a,l(),{rowCount:o.length,textChanged:a,textIsEmpty:r}}function Y(e,t,n,i){var o,a;if(n<=t&&i>t)for(o=1,a=e.value.length;o<=a;++o)if(n+e.tspan.getSubStringLength(0,o)>t)return o-1}function X(e){return e.value.length?e.tspan.getSubStringLength(0,e.value.length):0}function Z(e,t,n){var i,o,a,r,s,l=[];if(t)for(i=0,o=t.length;i0?[0]:[],i=e.value.split("").reduce(function(e,t,n){return" "===t&&e.push(n),e},n),o=0;void 0!==i[o+1]&&e.startBox+e.tspan.getSubStringLength(0,i[o+1])t)return n}function ee(e,t){var n=t.hideOverflowEllipsis;return n&&0===e?"":gt}function te(e,t,n){var i=ee(t,n);if(e.value.length&&e.tspan.parentNode)for(var o=e.value.length-1;o>=1;o--){if(e.startBox+e.tspan.getSubStringLength(0,o)t&&(s=ne(r,t,n,i),!s.length))return[]}}if(e.value.length){if("ellipsis"===i.textOverflow&&e.tspan.getSubStringLength(0,e.value.length)>t&&te(e,n,i),"hide"===i.textOverflow&&e.tspan.getSubStringLength(0,e.value.length)>t)return[]}else e.tspan.parentNode.removeChild(e.tspan);var d=[];return r&&d.push(r),[{commonLength:a.length,parts:d}].concat(s)}function ie(e,t){return e.parts.reduce(function(e,n){return Ke(e,ce(n,t))},0)}function oe(e,t,n,i,a){var r=n.textOverflow;if(!isFinite(i)||0===Number(i)||"none"===r)return e;var s=e.reduce(function(e,s,l,u){var c=o(e,2),d=c[0],h=c[1],p=ie(s,a);if(h+=p,hi?(s[0].forEach(function(e){e.parts.forEach(function(e){se(e)})}),[]):s[0]}function ae(e,t,n,i,a){if(!t){var r=e.textContent,s={value:r,height:0,line:0};e.textContent="",W([s],e,"tspan"),t=[s]}return t.reduce(function(e,t){var r=o(e,5),s=r[0],l=r[1],u=r[2],c=r[3],d=r[4],h=s[s.length-1];if(c)return[s,l,u,c];if(h&&t.line===d){if(t.startBox=l,l>i&&"none"===a.wordWrap&&"ellipsis"===a.textOverflow)return se(t),[s,l,u,c,d];h.parts.push(t),h.commonLength+=t.value.length}else t.startBox=l=0,s.push({commonLength:t.value.length,parts:[t]});if(t.endBox=u=l+X(t),l=u,(0,je.isDefined)(n)&&u>n){var p=ne(t,n,i,a);p.length?s=s.concat(p.filter(function(e){return e.parts.length>0})):(s=[],c=!0)}return[s,l,u,c,t.line]},[[],0,0,!1,0])[0]}function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:gt,i=e.value.substr(0,t)+n;e.value=e.tspan.textContent=i,e.stroke&&(e.stroke.textContent=i),n===gt&&(e.hasEllipsis=!0)}function se(e){e.tspan.parentNode&&e.tspan.parentNode.removeChild(e.tspan),e.stroke&&e.stroke.parentNode&&e.stroke.parentNode.removeChild(e.stroke)}function le(e,t,n){var i,o;e._texts=null,e.clear(),null!==t&&(t=""+t,e.renderer.encodeHtml||!/<[a-z][\s\S]*>/i.test(t)&&t.indexOf("&")===-1?/\n/g.test(t)?i=$(t):n&&(i=[{value:t.trim(),height:0}]):(o=z(t),i=N(o)),i?i.length&&(e._texts=i,n&&W(i,e.element,rt),W(i,e.element,"tspan")):e.element.appendChild(Be.default.createTextNode(t)))}function ue(e,t,n){e.tspan.setAttribute(t,n),e.stroke&&e.stroke.setAttribute(t,n)}function ce(e,t){return e.inherits?he(e.height,t):e.height||t}function de(e){if(e._texts){var t,n,i=e._texts,o=e._settings.x,a=e._getLineHeight(),r=i[0];for(ue(r,"x",o),ue(r,"y",e._settings.y),t=1,n=i.length;t=0){ue(r,"x",o);var s=ce(r,a);ue(r,"dy",s)}}}function he(e,t){var n=parseFloat(e),i=parseFloat(t),o=n||ft,a=i||ft;return o>a?isNaN(n)?o:e:isNaN(i)?a:t}function pe(e){if(e._texts){var t,n,i,o=e._texts,a=e._settings[rt],r=e._settings[st],s=e._settings[lt]||1;for(n=0,i=o.length;n=0&&t>=0&&this.root.attr({width:e,height:t}),this},dispose:function(){var e,t=this;t.root.dispose(),t._defs.dispose(),t._animationController.dispose(),wt.removeByRenderer(t);for(e in t)t[e]=null;return t},animationEnabled:function(){return!!this._animation.enabled},updateAnimationOptions:function(e){return g(this._animation,e),this},stopAllAnimations:function(e){return this._animationController[e?"lock":"stop"](),this},animateElement:function(e,t,n){return this._animationController.animateElement(e,t,n),this},svg:function(){this.removePlacementFix();var e=this.root.markup();return this.fixPlacement(),e},getRootOffset:function(){return this.root.getOffset()},onEndAnimation:function(e){this._animationController.onEndAnimation(e)},rect:function(e,n,i,o){var a=new t.RectSvgElement(this);return a.attr({x:e||0,y:n||0,width:i||0,height:o||0})},simpleRect:function(){return this._createElement("rect")},circle:function(e,t,n){return this._createElement("circle",{cx:e||0,cy:t||0,r:n||0})},g:function(){return this._createElement("g")},image:function e(t,n,i,o,a,r){var e=this._createElement("image",{x:t||0,y:n||0,width:i||0,height:o||0,preserveAspectRatio:bt[(0,Ge.normalizeEnum)(r)]||pt });return e.element.setAttributeNS("http://www.w3.org/1999/xlink","href",a||""),e},path:function(e,n){var i=new t.PathSvgElement(this,n);return i.attr({points:e||[]})},arc:function(e,n,i,o,a,r){var s=new t.ArcSvgElement(this);return s.attr({x:e||0,y:n||0,innerRadius:i||0,outerRadius:o||0,startAngle:a||0,endAngle:r||0})},text:function(e,n,i){var o=new t.TextSvgElement(this);return o.attr({text:e,x:n||0,y:i||0})},linearGradient:function(e){var t=yt(),n=this,i=n._createElement("linearGradient",{id:t}).append(n._defs);return i.id=t,e.forEach(function(e){n._createElement("stop",{offset:e.offset,"stop-color":e["stop-color"]}).append(i)}),i},pattern:function e(n,i,o){i=i||{};var a=this,r=i.step||6,s=r/2,l=1.5*r,u=o||yt(),c="right"===(0,Ge.normalizeEnum)(i.direction)?"M "+s+" "+-s+" L "+-s+" "+s+" M 0 "+r+" L "+r+" 0 M "+l+" "+s+" L "+s+" "+l:"M 0 0 L "+r+" "+r+" M "+-s+" "+s+" L "+s+" "+l+" M "+s+" "+-s+" L "+l+" "+s,e=a._createElement("pattern",{id:u,width:r,height:r,patternUnits:"userSpaceOnUse"}).append(a._defs);e.id=u;a.rect(0,0,r,r).attr({fill:n,opacity:i.opacity}).append(e),new t.PathSvgElement(this).attr({d:c,"stroke-width":i.width||1,stroke:n}).append(e);return e},_getPointsWithYOffset:function(e,t){return e.map(function(e,n){return n%2!==0?e+t:e})},clipRect:function(e,t,n,i){var o=this,a=yt(),r=o._createElement("clipPath",{id:a}).append(o._defs),s=o.rect(e,t,n,i).append(r);return s.id=a,s.remove=function(){throw"Not implemented"},s.dispose=function(){return r.dispose(),r=null,this},s},shadowFilter:function(e,t,n,i,o,a,r,s,l){var u=this,c=yt(),d=u._createElement("filter",{id:c,x:e||0,y:t||0,width:n||0,height:i||0}).append(u._defs),h=u._createElement("feGaussianBlur",{"in":"SourceGraphic",result:"gaussianBlurResult",stdDeviation:r||0}).append(d),p=u._createElement("feOffset",{"in":"gaussianBlurResult",result:"offsetResult",dx:o||0,dy:a||0}).append(d),f=u._createElement("feFlood",{result:"floodResult","flood-color":s||"","flood-opacity":l}).append(d),g=u._createElement("feComposite",{"in":"floodResult",in2:"offsetResult",operator:"in",result:"compositeResult"}).append(d),_=u._createElement("feComposite",{"in":"SourceGraphic",in2:"compositeResult",operator:"over"}).append(d);return d.id=c,d.gaussianBlur=h,d.offset=p,d.flood=f,d.composite=g,d.finalComposite=_,d.attr=function(e){var t=this,n={},i={},o={};return"x"in e&&(n.x=e.x),"y"in e&&(n.y=e.y),"width"in e&&(n.width=e.width),"height"in e&&(n.height=e.height),B(t,n),"blur"in e&&t.gaussianBlur.attr({stdDeviation:e.blur}),"offsetX"in e&&(i.dx=e.offsetX),"offsetY"in e&&(i.dy=e.offsetY),t.offset.attr(i),"color"in e&&(o["flood-color"]=e.color),"opacity"in e&&(o["flood-opacity"]=e.opacity),t.flood.attr(o),t},d},brightFilter:function(e,t){var n=this,i=yt(),o=n._createElement("filter",{id:i}).append(n._defs),a=n._createElement("feComponentTransfer").append(o),r={type:e,slope:t};return o.id=i,n._createElement("feFuncR",r).append(a),n._createElement("feFuncG",r).append(a),n._createElement("feFuncB",r).append(a),o},getGrayScaleFilter:function(){if(this._grayScaleFilter)return this._grayScaleFilter;var e=this,t=yt(),n=e._createElement("filter",{id:t}).append(e._defs);return e._createElement("feColorMatrix").attr({type:"matrix",values:"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 0.6 0"}).append(n),n.id=t,e._grayScaleFilter=n,n},initHatching:function(){var e,t=this._hatchingStorage=this._hatchingStorage||{byHash:{},baseId:yt()},n=t.byHash;for(e in n)n[e].pattern.dispose();t.byHash={},t.refToHash={},t.nextId=0},lockHatching:function(e,t,n){var i,o,a=this._hatchingStorage,r=De(e,t);return a.refToHash[n]!==r&&(n&&this.releaseHatching(n),i=a.byHash[r],i||(o=this.pattern(e,t,a.baseId+"-hatching-"+a.nextId++),i=a.byHash[r]={pattern:o,count:0},a.refToHash[o.id]=r),++i.count,n=i.pattern.id),n},releaseHatching:function(e){var t=this._hatchingStorage,n=t.refToHash[e],i=t.byHash[n];i&&0===--i.count&&(i.pattern.dispose(),delete t.byHash[n],delete t.refToHash[e])}};var wt=function(){var e=[];return{add:function(t){e.push(t)},remove:function(t){e=e.filter(function(e){return e!==t})},removeByRenderer:function(t){e=e.filter(function(e){return e.renderer!==t})},fire:function(){e.forEach(function(e){e()})}}}();t.refreshPaths=function(){wt.fire()}},function(e,t,n){function i(e){return c(e,function(e){return e.getCoords()}).concat(c(e.slice().reverse(),function(e){return e.getCoords(!0)}))}var o=n(48),a=n(0).extend,r=n(107).chart,s=n(208),l=s.chart.line,u=s.polar.line,c=n(11).map,d=a,h=s.chart.spline._calculateBezierPoints;t.chart={},t.polar={};var p={_createBorderElement:l._createMainElement,_createLegendState:function(e,t){return{fill:e.color||t,opacity:e.opacity,hatching:e.hatching}},getValueRangeInitialValue:function(){return"logarithmic"!==this.valueAxisType&&"datetime"!==this.valueType&&this.showZero!==!1?0:r.getValueRangeInitialValue.call(this)},_getDefaultSegment:function(e){var t=l._getDefaultSegment(e);return t.area=t.line.concat(t.line.slice().reverse()),t},_updateElement:function(e,t,n,i){var o={points:t.line},a={points:t.area},r=e.line;n?(r&&r.animate(o),e.area.animate(a,{},i)):(r&&r.attr(o),e.area.attr(a))},_removeElement:function(e){e.line&&e.line.remove(),e.area.remove()},_drawElement:function(e){return{line:this._bordersGroup&&this._createBorderElement(e.line,{"stroke-width":this._styles.normal.border["stroke-width"]}).append(this._bordersGroup),area:this._createMainElement(e.area).append(this._elementsGroup)}},_applyStyle:function(e){var t=this;t._elementsGroup&&t._elementsGroup.smartAttr(e.elements),t._bordersGroup&&t._bordersGroup.attr(e.border),(t._graphics||[]).forEach(function(t){t.line&&t.line.attr({"stroke-width":e.border["stroke-width"]}).sharp()})},_parseStyle:function(e,t,n){var i=e.border||{},o=l._parseLineOptions(i,n);return o.stroke=i.visible&&o["stroke-width"]?o.stroke:"none",o["stroke-width"]=o["stroke-width"]||1,{border:o,elements:{stroke:"none",fill:e.color||t,hatching:e.hatching,opacity:e.opacity}}},_areBordersVisible:function(){var e=this._options;return e.border.visible||e.hoverStyle.border.visible||e.selectionStyle.border.visible},_createMainElement:function(e,t){return this._renderer.path(e,"area").attr(t)},_getTrackerSettings:function(e){return{"stroke-width":e.singlePointSegment?this._defaultTrackerWidth:0}},_getMainPointsFromSegment:function(e){return e.area}},f=t.chart.area=d({},l,p,{_prepareSegment:function(e,t){var n=this,o=n._processSinglePointsAreaSegment(e,t),a=i(o),r=n.getArgumentAxis();if(r.getAxisPosition){var s=r.getAxisPosition(),l=r.getOptions(),u=(t?1:-1)*Math.round(l.width/2);l.visible&&a.forEach(function(n,i){if(n){var o=1===e.length?0:i=e.minLevel&&this.level<=e.maxLevel},updateStyles:function(){var e=this,t=Number(e.isNode());e.state=e._buildState(e.ctx.settings[t].state,!t&&e.color&&{fill:e.color})},_buildState:function(e,t){var n=r({},e);return t?r(n,t):n},updateLabelStyle:function(){var e=this.ctx.settings[Number(this.isNode())];this.labelState=e.labelState,this.labelParams=e.labelParams},_getState:function(){return this.state},applyState:function(){s[Number(this.isNode())](this.tile,this._getState())}});var s=[o,a];e.exports=i},function(e,t,n){var i=n(132);n(230),n(460),n(475),n(115),n(484),n(183),n(485),n(486),n(19),n(160),n(131),n(56),n(89),n(137),n(23),n(176),n(286),e.exports=i},function(e,t,n){var i=n(184).fileSaver,o=n(431),a=n(224),r=n(438),s=n(1).isFunction,l=n(6).Deferred;t.export=function(e,t,n){if(!e)return(new l).resolve();var o=t.exportingAction,a=t.exportedAction,r=t.fileSavingAction,u={fileName:t.fileName,format:t.format,cancel:!1};return s(o)&&o(u),u.cancel?(new l).resolve():n(e,t,function(e){s(a)&&a(),s(r)&&(u.data=e,r(u)),u.cancel||i.saveAs(u.fileName,t.format,e,t.proxyUrl,t.forceProxy)})},t.fileSaver=i,t.excel={creator:o.ExcelCreator,getData:o.getData,formatConverter:n(179)},t.image={creator:a.imageCreator,getData:a.getData,testFormats:a.testFormats},t.pdf={getData:n(440).getData},t.svg={creator:r.svgCreator,getData:r.getData}},function(e,t,n){var i=n(7).getWindow(),o=n(1),a=["auto","none","inherit","initial"],r=function(e,t){var n=0;return t.forEach(function(t){n+=parseFloat(e[t])||0}),n},s=function(e,t){var n="width"===e?"Left":"Top",i="width"===e?"Right":"Bottom";return{padding:r(t,["padding"+n,"padding"+i]),border:r(t,["border"+n+"Width","border"+i+"Width"]),margin:r(t,["margin"+n,"margin"+i])}},l=function(e,t,n){var i=t[e];return"border-box"===t.boxSizing&&i.length&&"%"!==i[i.length-1]?n.border+n.padding:0},u=function(e,t,n){var o=i.getComputedStyle(e),a=s(t,o),r=e.getClientRects().length,u=e.getBoundingClientRect()[t],c=r?u:0;return c<=0?(c=parseFloat(o[t]||e.style[t])||0,c-=l(t,o,a)):c-=a.padding+a.border,n.paddings&&(c+=a.padding),n.borders&&(c+=a.border),n.margins&&(c+=a.margin),c},c=function(e){return o.isWindow(e)?e.innerHeight:e.offsetHeight},d=function(e,t){return e.indexOf("px")>0?e=parseInt(e.replace("px","")):e.indexOf("%")>0?e=parseInt(e.replace("%",""))*c(t)/100:isNaN(e)||(e=parseInt(e)),e},h=function(e,t,n){if(!e)return null;if(a.indexOf(e)>-1)return t?null:e;if(o.isString(e)&&(e=d(e,n)),o.isNumeric(e))return Math.max(0,e+t);var i=t<0?" - ":" ";return"calc("+e+i+Math.abs(t)+"px)"},p=function(e,t,n){var i=h(e,t,n);return null!==i?i:"none"},f=function(e,t,n){var i=h(e,t,n);return null!==i?i:0},g=function(e,t){if(!e)return 0;var n=s("height",i.getComputedStyle(e));return n.padding+n.border+(t?n.margin:0)},_=function(e){if(e){var t=e.getBoundingClientRect();if(t.height)return t.height}return 0};t.getSize=u,t.getElementBoxParams=s,t.addOffsetToMaxHeight=p,t.addOffsetToMinHeight=f,t.getVerticalOffsets=g,t.getVisibleHeight=_,t.parseHeight=d},function(e,t,n){var i={_findGroup:function(){var e,t=this.option("validationGroup");return t||(e=this.$element().parents(".dx-validationgroup").first(),t=e.length?e.dxValidationGroup("instance"):this._modelByElement(this.$element())),t}};e.exports=i},function(e,t,n){var i=n(2),o=n(5),a=n(9),r=n(4),s=n(0).extend,l=n(13).inArray,u=n(3).each,c=n(1),d=n(7),h=n(27),p=n(28).fitIntoRange,f=n(67),g=n(8),_=n(56),m=c.isPlainObject,v=c.isFunction,y=n(12),b="dxResizable",x="dx-resizable",w="dx-resizable-resizing",C="dx-resizable-handle",k="dx-resizable-handle-top",S="dx-resizable-handle-bottom",I="dx-resizable-handle-left",T="dx-resizable-handle-right",D="dx-resizable-handle-corner",E=g.addNamespace(_.start,b),A=g.addNamespace(_.move,b),O=g.addNamespace(_.end,b),B={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},P=f.inherit({_getDefaultOptions:function(){return s(this.callBase(),{handles:"all",step:"1",stepPrecision:"simple",area:void 0,minWidth:30,maxWidth:1/0,minHeight:30,maxHeight:1/0,onResizeStart:null,onResize:null,onResizeEnd:null,roundStepValue:!0})},_init:function(){this.callBase(),this.$element().addClass(x)},_initMarkup:function(){this.callBase(),this._renderHandles()},_render:function(){this.callBase(),this._renderActions()},_renderActions:function(){this._resizeStartAction=this._createActionByOption("onResizeStart"),this._resizeEndAction=this._createActionByOption("onResizeEnd"),this._resizeAction=this._createActionByOption("onResize")},_renderHandles:function(){var e=this.option("handles");if("none"!==e){var t="all"===e?["top","bottom","left","right"]:e.split(" ");u(t,function(e,t){this._renderHandle(t)}.bind(this)),l("bottom",t)+1&&l("right",t)+1&&this._renderHandle("corner-bottom-right"),l("bottom",t)+1&&l("left",t)+1&&this._renderHandle("corner-bottom-left"),l("top",t)+1&&l("right",t)+1&&this._renderHandle("corner-top-right"),l("top",t)+1&&l("left",t)+1&&this._renderHandle("corner-top-left")}},_renderHandle:function(e){var t=this.$element(),n=i("
");n.addClass(C).addClass(C+"-"+e).appendTo(t),this._attachEventHandlers(n)},_attachEventHandlers:function(e){if(!this.option("disabled")){var t={};t[E]=this._dragStartHandler.bind(this),t[A]=this._dragHandler.bind(this),t[O]=this._dragEndHandler.bind(this),o.on(e,t,{direction:"both",immediate:!0})}},_dragStartHandler:function(e){var t=this.$element();if(t.is(".dx-state-disabled, .dx-state-disabled *"))return void(e.cancel=!0);this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(e),this._elementLocation=h.locate(t);var n=t.get(0).getBoundingClientRect();this._elementSize={width:n.width,height:n.height},this._renderDragOffsets(e),this._resizeStartAction({event:e,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),e.targetElements=null},_toggleResizingClass:function(e){this.$element().toggleClass(w,e)},_renderDragOffsets:function(e){var t=this._getArea();if(t){var n=i(e.target).closest("."+C),o=n.outerWidth(),a=n.outerHeight(),r=n.offset(),s=t.offset,l=this._getAreaScrollOffset();e.maxLeftOffset=r.left-s.left-l.scrollX,e.maxRightOffset=s.left+t.width-r.left-o+l.scrollX,e.maxTopOffset=r.top-s.top-l.scrollY,e.maxBottomOffset=s.top+t.height-r.top-a+l.scrollY}},_getBorderWidth:function(e,t){if(c.isWindow(e.get(0)))return 0;var n=e.css(B[t]);return parseInt(n)||0},_dragHandler:function(e){var t=this.$element(),n=this._movingSides,i=this._elementLocation,o=this._elementSize,a=this._getOffset(e),r=o.width+a.x*(n.left?-1:1),s=o.height+a.y*(n.top?-1:1);(a.x||"strict"===this.option("stepPrecision"))&&this._renderWidth(r),(a.y||"strict"===this.option("stepPrecision"))&&this._renderHeight(s);var l=t.get(0).getBoundingClientRect(),u=a.y-((l.height||s)-s),c=a.x-((l.width||r)-r);h.move(t,{top:i.top+(n.top?u:0),left:i.left+(n.left?c:0)}),this._resizeAction({event:e,width:this.option("width")||r,height:this.option("height")||s,handles:this._movingSides}),y.triggerResizeEvent(t)},_getOffset:function(e){var t=e.offset,n=r.pairToObject(this.option("step"),!this.option("roundStepValue")),i=this._getMovingSides(e),o="strict"===this.option("stepPrecision");return i.left||i.right||(t.x=0),i.top||i.bottom||(t.y=0),o?this._getStrictOffset(t,n,i):this._getSimpleOffset(t,n)},_getSimpleOffset:function(e,t){return{x:e.x-e.x%t.h,y:e.y-e.y%t.v}},_getStrictOffset:function(e,t,n){var i=this._elementLocation,o=this._elementSize,a=n.left?i.left:i.left+o.width,r=n.top?i.top:i.top+o.height,s=(a+e.x)%t.h,l=(r+e.y)%t.v,u=Math.sign||function(e){return e=+e,0===e||isNaN(e)?e:e>0?1:-1},c=function(e,t){return(1+.2*u(t))%1*e},d=function(e,t){return Math.abs(e)<.2*t},h=e.x-s,p=e.y-l;return s>c(t.h,e.x)&&(h+=t.h),l>c(t.v,e.y)&&(p+=t.v),{x:!n.left&&!n.right||d(e.x,t.h)?0:h,y:!n.top&&!n.bottom||d(e.y,t.v)?0:p}},_getMovingSides:function(e){var t=i(e.target),n=t.hasClass(D+"-top-left"),o=t.hasClass(D+"-top-right"),a=t.hasClass(D+"-bottom-left"),r=t.hasClass(D+"-bottom-right");return{top:t.hasClass(k)||n||o,left:t.hasClass(I)||n||a,bottom:t.hasClass(S)||a||r,right:t.hasClass(T)||o||r}},_getArea:function(){var e=this.option("area");return v(e)&&(e=e.call(this)),m(e)?this._getAreaFromObject(e):this._getAreaFromElement(e)},_getAreaScrollOffset:function(){var e=this.option("area"),t=!v(e)&&!m(e),n={scrollY:0,scrollX:0};if(t){var o=i(e)[0];c.isWindow(o)&&(n.scrollX=o.pageXOffset,n.scrollY=o.pageYOffset)}return n},_getAreaFromObject:function(e){var t={width:e.right-e.left,height:e.bottom-e.top,offset:{left:e.left,top:e.top}};return this._correctAreaGeometry(t),t},_getAreaFromElement:function(e){var t,n=i(e);return n.length&&(t={width:n.innerWidth(),height:n.innerHeight(),offset:s({top:0,left:0},c.isWindow(n[0])?{}:n.offset())},this._correctAreaGeometry(t,n)),t},_correctAreaGeometry:function(e,t){var n=t?this._getBorderWidth(t,"left"):0,i=t?this._getBorderWidth(t,"top"):0;e.offset.left+=n+this._getBorderWidth(this.$element(),"left"),e.offset.top+=i+this._getBorderWidth(this.$element(),"top"),e.width-=this.$element().outerWidth()-this.$element().innerWidth(),e.height-=this.$element().outerHeight()-this.$element().innerHeight()},_dragEndHandler:function(e){var t=this.$element();this._resizeEndAction({event:e,width:t.outerWidth(),height:t.outerHeight(),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(e){this.option("width",p(e,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(e){this.option("height",p(e,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(e){switch(e.name){case"disabled":case"handles":this._invalidate();break;case"minWidth":case"maxWidth":d.hasWindow()&&this._renderWidth(this.$element().outerWidth());break;case"minHeight":case"maxHeight":d.hasWindow()&&this._renderHeight(this.$element().outerHeight());break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":case"roundStepValue":break;default:this.callBase(e)}},_clean:function(){this.$element().find("."+C).remove()}});a(b,P),e.exports=P},function(e,t,n){var i=n(8),o=n(157),a=n(88),r="dxswipestart",s="dxswipe",l="dxswipeend",u={defaultItemSizeFunc:function(){return this.getElement().width()},getBounds:function(){return[this._maxLeftOffset,this._maxRightOffset]},calcOffsetRatio:function(e){var t=i.eventData(e);return(t.x-(this._savedEventData&&this._savedEventData.x||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.x-this._tickData.x)>=t.time-this._tickData.time}},c={defaultItemSizeFunc:function(){return this.getElement().height()},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(e){var t=i.eventData(e);return(t.y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.y-this._tickData.y)>=t.time-this._tickData.time}},d={horizontal:u,vertical:c},h=o.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(e){this.callBase(e),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return d[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(e){this._tickData=i.eventData(e)},_start:function(e){this._savedEventData=i.eventData(e),e=this._fireEvent(r,e),e.cancel||(this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset)},_move:function(e){var t=this._getStrategy(),n=i.eventData(e),o=t.calcOffsetRatio.call(this,e);o=this._fitOffset(o,this.elastic),n.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=n),this._fireEvent(s,e,{offset:o}),e.preventDefault()},_end:function(e){var t=this._getStrategy(),n=t.calcOffsetRatio.call(this,e),i=t.isFastSwipe.call(this,e),o=n,a=this._calcTargetOffset(n,i);o=this._fitOffset(o,this.elastic),a=this._fitOffset(a,!1),this._fireEvent(l,e,{offset:o,targetOffset:a})},_fitOffset:function(e,t){var n=this._getStrategy(),i=n.getBounds.call(this);return e<-i[0]?t?(-2*i[0]+e)/3:-i[0]:e>i[1]?t?(2*i[1]+e)/3:i[1]:e},_calcTargetOffset:function(e,t){var n;return t?(n=Math.ceil(Math.abs(e)),e<0&&(n=-n)):n=Math.round(e),n}});a({emitter:h,events:[r,s,l]}),t.swipe=s,t.start=r,t.end=l},function(e,t,n){var i=n(13).inArray,o=n(7),a=o.hasWindow()?o.getWindow().WeakMap:WeakMap;a||(a=function(){var e=[],t=[];this.set=function(n,o){var a=i(n,e);a===-1?(e.push(n),t.push(o)):t[a]=o},this.get=function(n){var o=i(n,e);if(o!==-1)return t[o]},this.has=function(t){var n=i(t,e);return n!==-1},this.delete=function(n){var o=i(n,e);o!==-1&&(e.splice(o,1),t.splice(o,1))}}),e.exports=a},function(e,t,n){var i=n(3).each,o=n(25),a=function(){var e=[],t=o();this.add=function(n){i(e,function(e,t){n.apply(n,t)}),t.add(n)},this.remove=function(e){t.remove(e)},this.fire=function(){e.push(arguments),t.fire.apply(t,arguments)}};e.exports=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(44),a=i(o),r=n(51),s=i(r),l=n(32),u=i(l),c=n(1),d=n(185),h=n(280);n(150);var p=1632,f={thousands:"#,##0{0},"K"",millions:"#,##0{0},,"M"",billions:"#,##0{0},,,"B"",trillions:"#,##0{0},,,,"T"",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "},g=/a+/g,_=/E/g,m=/dE+/g,v=/L/g,y=/h/g,b=/\//g,x=/\[/g,w=/]/g,C=/./g,k=e.exports={_applyPrecision:function(e,t){var n,i;if(t>0){for(n="decimal"!==e?".":"",i=0;i=p&&t").css({display:"none"}).attr(o);r.append(''),r.append(''),r.append(''),r.appendTo("body"),d.default.trigger(r,"submit"),d.default.trigger(r,"submit")&&r.remove()},_saveByProxy:function(e,t,n,i){return this._formDownloader(e,t,b[n],i)},_winJSBlobSave:function(e,t,n){var i=new Windows.Storage.Pickers.FileSavePicker;i.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary,i.fileTypeChoices.insert(b[n],["."+y[n]]),i.suggestedFileName=t,i.pickSaveFileAsync().then(function(t){t&&t.openAsync(Windows.Storage.FileAccessMode.readWrite).then(function(t){var n=e.msDetachStream();Windows.Storage.Streams.RandomAccessStream.copyAsync(n,t).then(function(){t.flushAsync().done(function(){n.close(),t.close()})})})})},_click:function(e){try{e.dispatchEvent(new MouseEvent("click",{cancelable:!0}))}catch(n){var t=s.default.getDocument().createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,m,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}},_saveBlobAs:function(e,t,n){var i=this;if(this._blobSaved=!1,g.default.isDefined(v.msSaveOrOpenBlob))v.msSaveOrOpenBlob(n,e),this._blobSaved=!0;else if(g.default.isDefined(m.WinJS))this._winJSBlobSave(n,e,t),this._blobSaved=!0;else{var o=m.URL||m.webkitURL||m.mozURL||m.msURL||m.oURL;if(g.default.isDefined(o)){var a=o.createObjectURL(n),r=this._linkDownloader(e,a);setTimeout(function(){o.revokeObjectURL(a),i._objectUrlRevoked=!0},this._revokeObjectURLTimeout),this._click(r)}else _.logger.warn("window.URL || window.webkitURL || window.mozURL || window.msURL || window.oURL is not defined")}},saveAs:function(e,t,n,i,o){if(e+="."+y[t],o)this._saveByProxy(i,e,t,n);else if(g.default.isFunction(m.Blob))this._saveBlobAs(e,t,n);else if(g.default.isDefined(i)&&!g.default.isDefined(v.userAgent.match(/iPad/i)))this._saveByProxy(i,e,t,n);else{g.default.isDefined(v.userAgent.match(/iPad/i))||p.default.log("E1034");var a=this._linkDownloader(e,this._getDataUri(t,n));this._click(a)}}}},function(e,t,n){var i="\u060c",o=" .,:;/\\<>()-[]"+i,a=1632,r=function(e){var t=e&&e.charCodeAt(0);return e>="0"&&e<="9"||t>=a&&t0&&!r(e[t-1])&&("."===e[t-1]||o.indexOf(e[t-1])<0);)t--;return t},u=function(e,t,n,i){var o=0,a=[],u=function(t){return e[o]!==t[o]&&(void 0===i||r(e[o])===i)};for(Array.isArray(t)||(t=[t]),o=0;o1?n[i]:n)+e.substr(a+i+1)}),1===t.length&&(e=e.replace("0"+n,n+n),e=e.replace("\u0660"+n,n+n)),e},d=function(e,t,n,i){var o,a,s;if(!r(e[t[0]]||"0")){for(var l=Math.max(t.length<=3?3:4,n.length);t.length>l;){for(a=t.pop(),s=i[a],i[a]=-1,o=a+1;o=0,a=t>0&&o.indexOf(t-1)>=0,r=o.indexOf(t+1)>=0;return i&&(a||(n="'"+n),r||(n+="'")),n}).join("")},g=function(e){var t=[],n=h(new Date(2009,8,8,6,5,4),e),i=n.split("").map(function(e,t){return t}),o=n,a={},r=[{date:new Date(2009,8,8,6,5,4,100),pattern:"S"},{date:new Date(2009,8,8,6,5,2),pattern:"s"},{date:new Date(2009,8,8,6,2,4),pattern:"m"},{date:new Date(2009,8,8,18,5,4),pattern:"H",isDigit:!0},{date:new Date(2009,8,8,2,5,4),pattern:"h",isDigit:!0},{date:new Date(2009,8,8,18,5,4),pattern:"a",isDigit:!1},{date:new Date(2009,8,1,6,5,4),pattern:"d"},{date:[new Date(2009,8,2,6,5,4),new Date(2009,8,3,6,5,4),new Date(2009,8,4,6,5,4)],pattern:"E"},{date:new Date(2009,9,6,6,5,4),pattern:"M"},{date:new Date(1998,8,8,6,5,4),pattern:"y"}];if(o)return r.forEach(function(r){var s=u(n,h(r.date,e),t,r.isDigit),l="M"!==r.pattern||a.d?r.pattern:"L";o=d(o,s,l,i),a[l]=s.length}),o=f(o,n,t,i),t.length?o:void 0};t.getFormat=g},function(e,t,n){function i(e,t){var n=r.createElement("div"),i=e.cloneNode(!0);return t&&l(i).css("backgroundColor",t),n.appendChild(i),n.innerHTML}function o(e){var t=!0;return e.indexOf("xmlns:xlink")===-1&&(e=e.replace("-1?this._collectionWidget._itemElements().eq(e):null},_itemsFromSameParent:function(){return!0}});e.exports=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n").appendTo(e)}},{key:"_addToContainer",value:function(e){var t=this.$placeMarker,n=this.$container;t?t.replaceWith(e):e.appendTo(n)}},{key:"_attachEvents",value:function(){throw"Not implemented"}},{key:"_create",value:function(){throw"Not implemented"}},{key:"_isRendered",value:function(){return!!this.instance}},{key:"_isVisible",value:function(){var e=this.editor,t=this.options;return t.visible||!e.option("readOnly")}},{key:"_isDisabled",value:function(){throw"Not implemented"}},{key:"_shouldRender",value:function(){return this._isVisible()&&!this._isRendered()}},{key:"dispose",value:function(){var e=this.instance,t=this.$placeMarker;e&&(e.dispose?e.dispose():e.remove(),this.instance=null),t&&t.remove()}},{key:"render",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$container;if(this.$container=e,this._isVisible()){var t=this._create(),n=t.instance,i=t.$element;this.instance=n,this._attachEvents(n,i)}else this._addPlaceMarker(e)}},{key:"update",value:function(){return this._shouldRender()&&this.render(),!!this.instance}}]),e}();t.default=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(5),s=i(r),l=n(8),u=i(l),c=n(4),d=n(3),h=n(16),p=i(h),f=n(15),g=i(f),_=n(301),m=i(_),v="dxNativeScrollable",y="dx-scrollable-native",b="dx-scrollable-scrollbar-simulated",x="dx-scrollable-scrollbars-hidden",w="vertical",C="horizontal",k=500,S=g.default.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.$element(),this._$container=e._$container,this._$content=e._$content,this._direction=e.option("direction"),this._useSimulatedScrollbar=e.option("useSimulatedScrollbar"),this._showScrollbar=e.option("showScrollbar"),this.option=e.option.bind(e),this._createActionByOption=e._createActionByOption.bind(e),this._isLocked=e._isLocked.bind(e),this._isDirection=e._isDirection.bind(e),this._allowedDirection=e._allowedDirection.bind(e)},render:function(){this._renderPushBackOffset();var e=p.default.real(),t=e.platform;this._$element.addClass(y).addClass(y+"-"+t).toggleClass(x,!this._showScrollbar),this._showScrollbar&&this._useSimulatedScrollbar&&this._renderScrollbars()},updateBounds:c.noop,_renderPushBackOffset:function(){var e=this.option("pushBackValue");(e||this._component._lastPushBackValue)&&(this._$content.css({paddingTop:e,paddingBottom:e}),this._component._lastPushBackValue=e)},_renderScrollbars:function(){this._scrollbars={},this._hideScrollbarTimeout=0,this._$element.addClass(b),this._renderScrollbar(w),this._renderScrollbar(C)},_renderScrollbar:function(e){this._isDirection(e)&&(this._scrollbars[e]=new m.default((0,a.default)("
").appendTo(this._$element),{direction:e,expandable:this._component.option("scrollByThumb")}))},handleInit:c.noop,handleStart:function(){this._disablePushBack=!0},handleMove:function(e){return this._isLocked()?void(e.cancel=!0):void(this._allowedDirection()&&(e.originalEvent.isScrollingEvent=!0))},handleEnd:function(){this._disablePushBack=!1},handleCancel:c.noop,handleStop:c.noop,_eachScrollbar:function(e){e=e.bind(this),(0,d.each)(this._scrollbars||{},function(t,n){e(n,t)})},createActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._updateAction=this._createActionByOption("onUpdated")},_createActionArgs:function(){var e=this.location(),t=this._$container.get(0);return{event:this._eventForUserAction,scrollOffset:{top:-e.top,left:-e.left},reachedLeft:this._isDirection(C)?e.left>=0:void 0,reachedRight:this._isDirection(C)?Math.abs(e.left)>=t.scrollWidth-t.clientWidth:void 0,reachedTop:this._isDirection(w)?e.top>=0:void 0,reachedBottom:this._isDirection(w)?Math.abs(e.top)>=t.scrollHeight-t.clientHeight-2*this.option("pushBackValue"):void 0}},handleScroll:function(e){return this._isScrollLocationChanged()?(this._eventForUserAction=e,this._moveScrollbars(),this._scrollAction(this._createActionArgs()),this._lastLocation=this.location(),void this._pushBackFromBoundary()):void e.stopImmediatePropagation()},_pushBackFromBoundary:function(){var e=this.option("pushBackValue");if(e&&!this._disablePushBack){var t=this._containerSize.height-this._contentSize.height,n=this._$container.scrollTop(),i=t+n-2*e;n?i||this._$container.scrollTop(e-t):this._$container.scrollTop(e)}},_isScrollLocationChanged:function(){var e=this.location(),t=this._lastLocation||{},n=t.top!==e.top,i=t.left!==e.left;return n||i},_moveScrollbars:function(){this._eachScrollbar(function(e){e.moveTo(this.location()),e.option("visible",!0)}),this._hideScrollbars()},_hideScrollbars:function(){clearTimeout(this._hideScrollbarTimeout),this._hideScrollbarTimeout=setTimeout(function(){this._eachScrollbar(function(e){e.option("visible",!1)})}.bind(this),k)},location:function(){return{left:-this._$container.scrollLeft(),top:this.option("pushBackValue")-this._$container.scrollTop()}},disabledChanged:c.noop,update:function(){this._update(),this._updateAction(this._createActionArgs())},_update:function(){this._updateDimensions(),this._updateScrollbars()},_updateDimensions:function(){this._containerSize={height:this._$container.height(),width:this._$container.width()},this._componentContentSize={height:this._component.$content().height(),width:this._component.$content().width()},this._contentSize={height:this._$content.height(),width:this._$content.width()},this._pushBackFromBoundary()},_updateScrollbars:function(){this._eachScrollbar(function(e,t){var n=t===w?"height":"width";e.option({containerSize:this._containerSize[n],contentSize:this._componentContentSize[n]}),e.update()})},_allowedDirections:function(){return{vertical:this._isDirection(w)&&this._contentSize.height>this._containerSize.height,horizontal:this._isDirection(C)&&this._contentSize.width>this._containerSize.width}},dispose:function(){var e=this._$element.get(0).className,t=new RegExp(y+"\\S*","g");t.test(e)&&this._$element.removeClass(e.match(t).join(" ")),s.default.off(this._$element,"."+v),s.default.off(this._$container,"."+v),this._removeScrollbars(),clearTimeout(this._hideScrollbarTimeout)},_removeScrollbars:function(){this._eachScrollbar(function(e){e.$element().remove()})},scrollBy:function(e){var t=this.location();this._$container.scrollTop(Math.round(-t.top-e.top+this.option("pushBackValue"))),this._$container.scrollLeft(Math.round(-t.left-e.left))},validate:function(e){return!this.option("disabled")&&((!u.default.isDxMouseWheelEvent(e)||!this._isScrolledInMaxDirection(e))&&!!this._allowedDirection())},_isScrolledInMaxDirection:function(e){var t,n=this._$container.get(0);return t=e.delta>0?e.shiftKey?!n.scrollLeft:!n.scrollTop:e.shiftKey?n.clientWidth+n.scrollLeft>=n.scrollWidth:n.clientHeight+n.scrollTop>=n.scrollHeight},getDirection:function(){return this._allowedDirection()},verticalOffset:function(){return this.option("pushBackValue")}});e.exports=S},function(e,t,n){var i=n(2),o=n(4).noop,a=n(14),r=n(9),s=n(0).extend,l=n(93),u=n(60),c=n(6).Deferred,d=n(31),h="dx-loadpanel",p="dx-loadpanel-wrapper",f="dx-loadpanel-indicator",g="dx-loadpanel-message",_="dx-loadpanel-content",m="dx-loadpanel-content-wrapper",v="dx-loadpanel-pane-hidden",y=u.inherit({_supportedKeys:function(){return s(this.callBase(),{escape:o})},_getDefaultOptions:function(){return s(this.callBase(),{message:a.format("Loading"),width:222,height:90,animation:null,showIndicator:!0,indicatorSrc:"",showPane:!0,delay:0,closeOnBackButton:!1,resizeEnabled:!1,focusStateEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{shadingColor:"transparent"}},{device:function(){return d.isMaterial()},options:{message:"",width:60,height:60,maxHeight:60,maxWidth:60}}])},_init:function(){this.callBase.apply(this,arguments)},_initOptions:function(){this.callBase.apply(this,arguments),this.option("templatesRenderAsynchronously",!1)},_render:function(){this.callBase(),this.$element().addClass(h),this._wrapper().addClass(p)},_renderContentImpl:function(){this.callBase(),this.$content().addClass(_),this._$contentWrapper=i("
").addClass(m),this._$contentWrapper.appendTo(this._$content),this._togglePaneVisible(),this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage()},_show:function(){var e=this.option("delay");if(!e)return this.callBase();var t=new c,n=this.callBase.bind(this);return this._clearShowTimeout(),this._showTimeout=setTimeout(function(){n().done(function(){t.resolve()})},e),t.promise()},_hide:function(){return this._clearShowTimeout(),this.callBase()},_clearShowTimeout:function(){clearTimeout(this._showTimeout)},_renderMessage:function(){if(this._$contentWrapper){var e=this.option("message");if(e){var t=i("
").addClass(g).text(e);this._$contentWrapper.append(t)}}},_renderLoadIndicator:function(){this._$contentWrapper&&this.option("showIndicator")&&(this._$indicator=i("
").addClass(f).appendTo(this._$contentWrapper),this._createComponent(this._$indicator,l,{indicatorSrc:this.option("indicatorSrc")}))},_cleanPreviousContent:function(){this.$content().find("."+g).remove(),this.$content().find("."+f).remove()},_togglePaneVisible:function(){this.$content().toggleClass(v,!this.option("showPane"))},_optionChanged:function(e){switch(e.name){case"delay":break;case"message":case"showIndicator":this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage();break;case"showPane":this._togglePaneVisible();break;case"indicatorSrc":this._$indicator&&this._createComponent(this._$indicator,l,{indicatorSrc:this.option("indicatorSrc")});break;default:this.callBase(e)}},_dispose:function(){this._clearShowTimeout(),this.callBase()}});r("dxLoadPanel",y),e.exports=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),r=i(a),s=n(55),l=i(s),u=n(0),c=n(1),d=n(135),h=i(d),p=n(41),f=n(6),g=n(304),_=n(10),m=n(4),v="__dx_key__";t.default=l.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{repaintChangesOnly:!1})},ctor:function(){var e=this;this.callBase.apply(this,arguments),this._customizeStoreLoadOptions=function(t){var n=e._dataSource;n&&!n.isLoaded()&&(e._correctionIndex=0),e._correctionIndex&&t.storeLoadOptions&&(t.storeLoadOptions.skip+=e._correctionIndex)},this._dataSource&&this._dataSource.on("customizeStoreLoadOptions",this._customizeStoreLoadOptions)},reload:function(){this._correctionIndex=0},_init:function(){this.callBase(),this._refreshItemsCache(),this._correctionIndex=0},_findItemElementByKey:function(e){var t=this,n=(0,r.default)(),i=this.key();return this.itemElements().each(function(o,a){var s=(0,r.default)(a),l=t._getItemData(s);if(i?(0,p.keysEqual)(i,t.keyOf(l),e):t._isItemEquals(l,e))return n=s,!1}),n},_dataSourceChangedHandler:function(e,t){t&&t.changes?this._modifyByChanges(t.changes):this.callBase(e,t)},_isItemEquals:function(e,t){e&&e[v]&&(e=e.data);try{return JSON.stringify(e)===JSON.stringify(t)}catch(n){return e===t}},_partialRefresh:function(){var e=this;if(this.option("repaintChangesOnly")){var t=function(t){return t&&void 0!==t[v]?t[v]:e.keyOf(t)},n=(0,g.findChanges)(this._itemsCache,this._editStrategy.itemsGetter(),t,this._isItemEquals);if(n&&this._itemsCache.length)return this._modifyByChanges(n,!0),this._renderEmptyMessage(),!0;this._refreshItemsCache()}return!1},_refreshItemsCache:function(){if(this.option("repaintChangesOnly")){var e=this._editStrategy.itemsGetter();try{this._itemsCache=(0,u.extend)(!0,[],e),this.key()||(this._itemsCache=this._itemsCache.map(function(t,n){var i;return i={},o(i,v,e[n]),o(i,"data",t),i}))}catch(t){this._itemsCache=(0,u.extend)([],e)}}},_dispose:function(){this._dataSource&&this._dataSource.off("customizeStoreLoadOptions",this._customizeStoreLoadOptions),this.callBase()},_updateByChange:function(e,t,n,i){var o=this;if(i)this._renderItem(n.index,n.data,null,this._findItemElementByKey(n.key));else{var a=t[h.default.indexByKey(e,t,n.key)];a&&h.default.update(e,t,n.key,n.data).done(function(){o._renderItem(t.indexOf(a),a,null,o._findItemElementByKey(n.key))})}},_insertByChange:function(e,t,n,i){var o=this;(0,f.when)(i||h.default.insert(e,t,n.data,n.index)).done(function(){o._beforeItemElementInserted(n),o._renderItem((0,c.isDefined)(n.index)?n.index:t.length,n.data),o._afterItemElementInserted(),o._correctionIndex++})},_updateSelectionAfterRemoveByChange:function(e){var t=this.option("selectedIndex");t>e?this.option("selectedIndex",t-1):t===e&&1===this.option("selectedItems").length?this.option("selectedItems",[]):this._normalizeSelectedItems()},_beforeItemElementInserted:function(e){var t=this.option("selectedIndex");e.index<=t&&this.option("selectedIndex",t+1)},_afterItemElementInserted:m.noop,_removeByChange:function(e,t,n,i){var o=this,a=i?n.index:h.default.indexByKey(e,t,n.key),r=i?n.oldItem:t[a];if(r){var s=this._findItemElementByKey(n.key),l=this._extendActionArgs(s);this._waitDeletingPrepare(s).done(function(){i?(o._updateIndicesAfterIndex(a-1),o._afterItemElementDeleted(s,l),o._updateSelectionAfterRemoveByChange(a)):(o._deleteItemElementByIndex(a),o._afterItemElementDeleted(s,l))}),this._correctionIndex--}},_modifyByChanges:function(e,t){var n=this,i=this._editStrategy.itemsGetter(),o={key:this.key.bind(this),keyOf:this.keyOf.bind(this)},a=this._dataSource,r=a&&a.paginate(),s=a&&a.group();(r||s)&&(e=e.filter(function(e){return"insert"!==e.type||void 0!==e.index})),e.forEach(function(e){return n["_".concat(e.type,"ByChange")](o,i,e,t)}),this._renderedItemsCount=i.length,this._refreshItemsCache(),this._fireContentReadyAction()},_appendItemToContainer:function(e,t,n){var i=e.children(this._itemSelector()).get(n);(0,_.insertElement)(e.get(0),t.get(0),i)},_optionChanged:function(e){switch(e.name){case"items":var t=this._partialRefresh(e.value);t||this.callBase(e);break;case"dataSource":this.option("repaintChangesOnly")&&e.value||this.option("items",[]),this.callBase(e);break;case"repaintChangesOnly":break;default:this.callBase(e)}}})},function(e,t,n){function i(e){"@babel/helpers - typeof";return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n=0?n.ratio||0:((0,E.isDefined)(n.shrink)?n.shrink:K)*a,l=r>=0?i:o,u=l?Math.round(r*s/l):0;return a+u},l=0;(0,B.each)(e,function(e,t){var i=(0,v.default)(t),o=(0,v.default)(t).data(G),a=s(i);l+=a,i.css(q[n],o.maxSize||"none").css(j[n],o.minSize||"0").css(ne[n],a),i.addClass(ee)}),this.totalItemSize=l}},{key:"_baseSize",value:function(e){var t=(0,v.default)(e).data(G);return null==t.baseSize?0:"auto"===t.baseSize?this._contentSize(e):this._parseSize(t.baseSize)}},{key:"_contentSize",value:function(e){return(0,v.default)(e)[ne[this._option("direction")]]()}},{key:"_parseSize",value:function(e){return String(e).match(/.+%$/)?.01*parseFloat(e)*this._boxSizeValue:e}},{key:"_boxSize",value:function(e){return arguments.length?void(this._boxSizeValue=e):(this._boxSizeValue=this._boxSizeValue||this._totalBaseSize(),this._boxSizeValue)}},{key:"_totalBaseSize",value:function(){var e=this,t=0;return(0,B.each)(this._$items,function(n,i){t+=e._baseSize(i)}),t}},{key:"initSize",value:function(){this._boxSize(this._$element[ne[this._option("direction")]]())}},{key:"update",value:function(){if(this._$items&&!this._$element.is(":hidden")){this._$items.detach(),this.initSize(),this._$element.append(this._$items),this.renderItems(this._$items),this.renderAlign(),this.renderCrossAlign();var e=this._$element.get(0);this._$items.find($).each(function(){e===(0,v.default)(this).parent().closest($).get(0)&&b.default.triggerHandler(this,J)})}}}]),e}(),he=function(e){function t(){return a(this,t),n.apply(this,arguments)}c(t,e);var n=h(t);return s(t,[{key:"_getDefaultOptions",value:function(){return(0,C.extend)(l(_(t.prototype),"_getDefaultOptions",this).call(this),{direction:"row",align:"start",crossAlign:"stretch",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,_layoutStrategy:"flex",_queue:void 0})}},{key:"_defaultOptionsRules",value:function(){return l(_(t.prototype),"_defaultOptionsRules",this).call(this).concat([{device:function e(){var e=L.default.real(),t="android"===e.platform&&(e.version[0]<4||4===e.version[0]&&e.version[1]<4),n="ios"===e.platform&&e.version[0]<7;return"win"===e.platform||R.default.msie||t||n},options:{_layoutStrategy:"fallback"}}])}},{key:"_itemClass",value:function(){return W}},{key:"_itemDataKey",value:function(){return G}},{key:"_itemElements",value:function(){return this._itemContainer().children(this._itemSelector())}},{key:"_init",value:function(){l(_(t.prototype),"_init",this).call(this),this.$element().addClass("".concat(N,"-").concat(this.option("_layoutStrategy"))),this._initLayout(),this._initBoxQueue()}},{key:"_initLayout",value:function(){this._layout="fallback"===this.option("_layoutStrategy")?new de(this.$element(),this.option.bind(this)):new ce(this.$element(),this.option.bind(this))}},{key:"_initBoxQueue",value:function(){this._queue=this.option("_queue")||[]}},{key:"_queueIsNotEmpty",value:function(){return!this.option("_queue")&&!!this._queue.length}},{key:"_pushItemToQueue",value:function(e,t){this._queue.push({$item:e,config:t})}},{key:"_shiftItemFromQueue",value:function(){return this._queue.shift()}},{key:"_initMarkup",value:function(){this.$element().addClass(N),this._layout.renderBox(),l(_(t.prototype),"_initMarkup",this).call(this),this._renderAlign(),this._renderActions()}},{key:"_renderActions",value:function(){this._onItemStateChanged=this._createActionByOption("onItemStateChanged")}},{key:"_renderAlign",value:function(){this._layout.renderAlign(),this._layout.renderCrossAlign()}},{key:"_renderItems",value:function(e){var n=this;for(this._layout.initSize(),l(_(t.prototype),"_renderItems",this).call(this,e);this._queueIsNotEmpty();){var i=this._shiftItemFromQueue();this._createComponent(i.$item,t,(0,C.extend)({_layoutStrategy:this.option("_layoutStrategy"),itemTemplate:this.option("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this.option("onItemHold"),onItemClick:this.option("onItemClick"),onItemContextMenu:this.option("onItemContextMenu"),onItemRendered:this.option("onItemRendered"),_queue:this._queue},i.config))}this._layout.renderItems(this._itemElements()),clearTimeout(this._updateTimer),this._updateTimer=setTimeout(function(){n._isUpdated||n._layout.update(),n._isUpdated=!1,n._updateTimer=null})}},{key:"_renderItemContent",value:function(e){var n=e.itemData&&e.itemData.node;return n?this._renderItemContentByNode(e,n):l(_(t.prototype),"_renderItemContent",this).call(this,e)}},{key:"_postprocessRenderItem",value:function(e){var t=e.itemData.box;t&&this._pushItemToQueue(e.itemContent,t)}},{key:"_createItemByTemplate",value:function(e,n){return n.itemData.box?e.source?e.source():(0,v.default)():l(_(t.prototype),"_createItemByTemplate",this).call(this,e,n)}},{key:"_visibilityChanged",value:function(e){e&&this._dimensionChanged()}},{key:"_dimensionChanged",value:function(){this._updateTimer||(this._isUpdated=!0,this._layout.update())}},{key:"_dispose",value:function(){clearTimeout(this._updateTimer),l(_(t.prototype),"_dispose",this).apply(this,arguments)}},{key:"_itemOptionChanged",value:function(e,n,i,o){"visible"===n&&this._onItemStateChanged({name:n,state:i,oldState:o!==!1}),l(_(t.prototype),"_itemOptionChanged",this).call(this,e,n,i)}},{key:"_optionChanged",value:function(e){switch(e.name){case"_layoutStrategy":case"_queue":case"direction":this._invalidate();break;case"align":this._layout.renderAlign();break;case"crossAlign":this._layout.renderCrossAlign();break;default:l(_(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_itemOptions",value:function(){var e=this,n=l(_(t.prototype),"_itemOptions",this).call(this);return n.fireItemStateChangedAction=function(t){e._onItemStateChanged(t)},n}},{key:"repaint",value:function(){this._dimensionChanged()}}]),t}(z.default);he.ItemClass=ue,(0,w.default)("dxBox",he),e.exports=he},function(e,t,n){e.exports=n(540)},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(15),s=n(32),l=r.abstract,u=r.inherit({ctor:function(e){this.dateBox=e},widgetOption:function(){return this._widget&&this._widget.option.apply(this._widget,arguments)},_renderWidget:function(e){e=e||i("
"),this._widget=this._createWidget(e),this._widget.$element().appendTo(this._getWidgetContainer())},_createWidget:function(e){var t=this._getWidgetName(),n=this._getWidgetOptions();return this.dateBox._createComponent(e,t,n)},_getWidgetOptions:l,_getWidgetName:l,getDefaultOptions:function(){return{mode:"text"}},getDisplayFormat:l,supportedKeys:a,customizeButtons:a,attachKeyboardEvents:function(e){this._widgetKeyboardProcessor=e.attachChildProcessor()},getParsedText:function(e,t){var n=s.parse(e,t);return n?n:s.parse(e)},renderInputMinMax:a,renderOpenedState:function(){this._updateValue()},popupConfig:l,renderPopupContent:function(){var e=this._getPopup();this._renderWidget();var t=e.$content().parent();o.off(t,"mousedown"),o.on(t,"mousedown",this._preventFocusOnPopup.bind(this))},getFirstPopupElement:a,getLastPopupElement:a,_preventFocusOnPopup:function(e){e.preventDefault()},_getWidgetContainer:function(){return this._getPopup().$content()},_getPopup:function(){return this.dateBox._popup},popupShowingHandler:a,popupHiddenHandler:a,_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},_valueChangedHandler:function(e){this.dateBox.option("opened")&&"instantly"===this.dateBox.option("applyValueMode")&&this.dateBoxValue(e.value)},useCurrentDateByDefault:a,getDefaultDate:function(){return new Date},textChangedHandler:a,renderValue:function(){this.dateBox.option("opened")&&this._updateValue()},getValue:function(){return this._widget.option("value")},isAdaptivityChanged:function(){return!1},dispose:function(){var e=this._getPopup();e&&e.$content().empty()},dateBoxValue:function(){return arguments.length?this.dateBox.dateValue.apply(this.dateBox,arguments):this.dateBox.dateOption.apply(this.dateBox,["value"])}});e.exports=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n").appendTo(this.$element()),t=this._popupOptions();this._popup=this._createComponent(e,c,t)}},_popupOptions:function(){var e=!this.option("usePopover");return{onInitialized:function(t){t.component._wrapper().addClass(m).toggleClass(_,e)},visible:this.option("opened"),deferRendering:!1,contentTemplate:function(e){this._renderList(e)}.bind(this),position:this.option("popupPosition"),animation:this.option("popupAnimation"),onOptionChanged:function(e){"visible"===e.name&&this.option("opened",e.value)}.bind(this),target:this.$element(),height:this.option("popupHeight"),width:this.option("popupWidth"),maxHeight:this.option("popupMaxHeight"),container:this.option("container"),autoResizeEnabled:this.option("popupAutoResizeEnabled")}},_renderList:function(e){var t=i(e),n=this._listOptions();t.addClass(v),this._list=this._createComponent(t,this.option("menuWidget"),n),this._list._getAriaTarget=function(){return this.$element()}.bind(this),this._setListDataSource();var a=.5*i(o).height();t.height()>a&&t.height(a)},_listOptions:function(){return{_keyboardProcessor:this._listProcessor,pageLoadMode:"scrollBottom",indicateLoading:!1,noDataText:"",itemTemplate:this.option("itemTemplate"),onItemClick:function(e){this.option("closeOnClick")&&this.option("opened",!1),this._itemClickAction(e)}.bind(this),tabIndex:-1,focusStateEnabled:this.option("focusStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),onItemRendered:this.option("onItemRendered"),_itemAttributes:{role:"menuitem"}}},_setListDataSource:function(){this._list&&this._list.option("dataSource",this._dataSource||this.option("items")),delete this._deferRendering},_attachKeyboardEvents:function(){this.callBase.apply(this,arguments),this._listProcessor=this._keyboardProcessor&&this._keyboardProcessor.attachChildProcessor(),this._list&&this._list.option("_keyboardProcessor",this._listProcessor)},_cleanFocusState:function(){this.callBase.apply(this,arguments),delete this._listProcessor},_toggleVisibility:function(e){this.callBase(e),this._button.option("visible",e)},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"items":case"dataSource":this.option("deferRendering")&&!this.option("opened")?this._deferRendering=!0:(this._refreshDataSource(),this._setListDataSource());break;case"itemTemplate":this._list&&this._list.option(t,this._getTemplate(n));break;case"onItemClick":this._initItemClickAction();break;case"onButtonClick":this._buttonClickAction();break;case"buttonIcon":case"buttonText":case"buttonWidth":case"buttonHeight":case"buttonTemplate":this._button.option(x[t],n),this._renderPopup();break;case"popupWidth":case"popupHeight":case"popupMaxHeight":case"popupAutoResizeEnabled":this._popup.option(b[t],n);break;case"usePopover":case"menuWidget":case"useInkRipple":this._invalidate();break;case"focusStateEnabled":case"activeStateEnabled":this._list&&this._list.option(t,n),this.callBase(e);break;case"onItemRendered":this._list&&this._list.option(t,n);break;case"opened":this._deferRendering&&(this._refreshDataSource(),this._setListDataSource()),this._toggleMenuVisibility(n);break;case"deferRendering":case"popupPosition":case"closeOnClick":break;case"container":this._popup&&this._popup.option(e.name,e.value);break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)}}).include(d);r("dxDropDownMenu",w),e.exports=w},function(e,t,n){var i=n(37),o=n(25),a=n(17),r=n(67),s=n(0).extend,l=n(3).map,u=n(174),c=n(99),d=n(559),h=n(9),p="dx-validator",f=r.inherit({_getDefaultOptions:function(){return s(this.callBase(),{validationRules:[]})},_init:function(){this.callBase(),this._initGroupRegistration(),this._skipValidation=!1,this.focused=o(),this._initAdapter()},_initGroupRegistration:function(){var e=this._findGroup();this._groupWasInit||this.on("disposing",function(e){c.removeRegisteredValidator(e.component._validationGroup,e.component)}),this._groupWasInit&&this._validationGroup===e||(c.removeRegisteredValidator(this._validationGroup,this),this._groupWasInit=!0,this._validationGroup=e,c.registerValidatorInGroup(e,this))},_setOptionsByReference:function(){this.callBase(),s(this._optionsByReference,{validationGroup:!0})},_initAdapter:function(){var e=this,t=e.$element()[0],n=i.data(t,"dx-validation-target"),o=e.option("adapter");if(!o){if(n)return o=new d(n,this),o.validationRequestsCallbacks.add(function(t){e._skipValidation||e.validate(t)}),void this.option("adapter",o);throw a.Error("E0120")}var r=o.validationRequestsCallbacks;r&&(Array.isArray(r)?r.push(function(t){e.validate(t)}):(a.log("W0014","validationRequestsCallbacks","jQuery.Callbacks","17.2","Use the array instead"),r.add(function(t){e.validate(t)})))},_initMarkup:function(){this.$element().addClass(p),this.callBase()},_toggleRTLDirection:function(e){var t,n,i,o=null!==(t=null===(n=this.option("adapter"))||void 0===n?void 0:null===(i=n.editor)||void 0===i?void 0:i.option("rtlEnabled"))&&void 0!==t?t:e;this.callBase(o)},_visibilityChanged:function(e){e&&this._initGroupRegistration()},_optionChanged:function(e){switch(e.name){case"validationGroup":return void this._initGroupRegistration();case"validationRules":return this._resetValidationRules(),void(void 0!==this.option("isValid")&&this.validate());case"adapter":this._initAdapter();break;default:this.callBase(e)}},_getValidationRules:function(){return this._validationRules||(this._validationRules=l(this.option("validationRules"),function(e){return s({},e,{validator:this})}.bind(this))),this._validationRules},_resetValidationRules:function(){delete this._validationRules},validate:function(e){var t,n=this,i=n.option("adapter"),o=n.option("name"),a=i.bypass&&i.bypass(),r=e&&void 0!==e.value?e.value:i.getValue(),s=i.getCurrentValidationError&&i.getCurrentValidationError(),l=this._getValidationRules();return a?t={isValid:!0}:s&&s.editorSpecific?(s.validator=this,t={isValid:!1,brokenRule:s}):t=c.validate(r,l,o),this._applyValidationResult(t,i),t},reset:function(){var e=this,t=e.option("adapter"),n={isValid:!0,brokenRule:null};this._skipValidation=!0,t.reset(),this._skipValidation=!1,this._resetValidationRules(),this._applyValidationResult(n,t)},_applyValidationResult:function(e,t){var n=this._createActionByOption("onValidated",{excludeValidators:["readOnly"]});e.validator=this,t.applyValidationResults&&t.applyValidationResults(e),this.option({isValid:e.isValid}),n(e)},focus:function(){var e=this.option("adapter");e&&e.focus&&e.focus()}}).include(u);h("dxValidator",f),e.exports=f},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(5),s=i(r),l=n(16),u=i(l),c=n(9),d=i(c),h=n(34),p=i(h),f=n(72),g=i(f),_=n(8),m=n(0),v=n(1),y=n(23),b=i(y),x=n(3),w=n(316),C=i(w),k=n(31),S=i(k),I=n(89),T=i(I),D=n(94),E=i(D),A=n(192),O=i(A),B=n(62),P=n(66),R=i(P),M="dx-tabs",V="dx-tabs-wrapper",F="dx-tabs-expanded",L="dx-tabs-stretched",H="dx-tabs-scrollable",z="dx-tabs-nav-buttons",N="dx-overflow-hidden",$="dx-tab",W="dx-tab-selected",G="dx-tabs-nav-button",j="dx-tabs-nav-button-left",q="dx-tabs-nav-button-right",K="dx-tab-text",U="dxTabData",Y="chevronnext",X="chevronprev",Z=100,Q=5,J=300,ee=30,te=O.default.inherit({_activeStateUnit:"."+$,_getDefaultOptions:function(){return(0,m.extend)(this.callBase(),{hoverStateEnabled:!0,showNavButtons:!0,scrollByContent:!0,scrollingEnabled:!0,selectionMode:"single",activeStateEnabled:!0,selectionRequired:!1,selectOnFocus:!0,loopItemFocus:!1,useInkRipple:!1,badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){var e=S.default.current();return this.callBase().concat([{device:function(){return"generic"!==u.default.real().platform},options:{showNavButtons:!1}},{device:{platform:"generic"},options:{scrollByContent:!1}},{device:function(){return"desktop"===u.default.real().deviceType&&!u.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return S.default.isMaterial(e)},options:{useInkRipple:!0,selectOnFocus:!1}}])},_init:function(){this.callBase(),this.setAria("role","tablist"),this.$element().addClass(M),this._renderWrapper(),this._renderMultiple(),this._feedbackHideTimeout=Z},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new R.default(function(e,t){(0,v.isPlainObject)(t)?this._prepareDefaultItemTemplate(t,e):e.text(String(t));var n=(0,B.getImageContainer)(t.icon);e.wrapInner((0,a.default)("").addClass(K)),n&&n.prependTo(e)}.bind(this),["text","html","icon"],this.option("integrationOptions.watchMethod"))},_itemClass:function(){return $},_selectedItemClass:function(){return W},_itemDataKey:function(){return U},_initMarkup:function(){this.callBase(),this.setAria("role","tab",this.itemElements()),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass(N)},_render:function(){this.callBase(),this._renderScrolling()},_renderScrolling:function(){var e=[L,F,N];this.$element().removeClass(e.join(" ")),this.option("scrollingEnabled")&&this._isItemsWidthExceeded()&&(this._scrollable||(this._renderScrollable(),this._renderNavButtons()),this._scrollable.update(),this._updateNavButtonsVisibility(),this.option("rtlEnabled")&&this._scrollable.scrollTo({left:this._scrollable.scrollWidth()-this._scrollable.clientWidth()}),this._scrollToItem(this.option("selectedItem"))),this.option("scrollingEnabled")&&this._isItemsWidthExceeded()||(this._cleanScrolling(),this._needStretchItems()&&!this._isItemsWidthExceeded()&&this.$element().addClass(L),this.$element().removeClass(z).addClass(F))},_isItemsWidthExceeded:function(){var e=this._getSummaryItemsWidth(this._getVisibleItems(),!0);return e-1>this.$element().width()},_needStretchItems:function(){var e=this._getVisibleItems(),t=this.$element().width(),n=[];(0,x.each)(e,function(e,t){n.push((0,a.default)(t).outerWidth(!0))});var i=Math.max.apply(null,n);return i>t/e.length},_cleanNavButtons:function(){this._leftButton&&this._rightButton&&(this._leftButton.$element().remove(),this._rightButton.$element().remove(),this._leftButton=null,this._rightButton=null)},_cleanScrolling:function(){this._scrollable&&(this._$wrapper.appendTo(this.$element()),this._scrollable.$element().remove(),this._scrollable=null,this._cleanNavButtons())},_renderInkRipple:function(){this._inkRipple=g.default.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:e,event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_renderMultiple:function(){"multiple"===this.option("selectionMode")&&this.option("selectOnFocus",!1)},_renderWrapper:function(){this._$wrapper=(0,a.default)("
").addClass(V),this.$element().append(this._$wrapper)},_itemContainer:function(){return this._$wrapper},_renderScrollable:function(){var e=this.$element().wrapInner((0,a.default)("
").addClass(H)).children();this._scrollable=this._createComponent(e,E.default,{direction:"horizontal",showScrollbar:!1,useKeyboard:!1,useNative:!1,scrollByContent:this.option("scrollByContent"),onScroll:this._updateNavButtonsVisibility.bind(this)}),this.$element().append(this._scrollable.$element())},_scrollToItem:function(e){if(this._scrollable){var t=this._editStrategy.getItemElement(e);this._scrollable.scrollToElement(t)}},_renderNavButtons:function(){if(this.$element().toggleClass(z,this.option("showNavButtons")),this.option("showNavButtons")){var e=this.option("rtlEnabled");this._leftButton=this._createNavButton(-ee,e?Y:X);var t=this._leftButton.$element();t.addClass(j),this.$element().prepend(t),this._rightButton=this._createNavButton(ee,e?X:Y);var n=this._rightButton.$element();n.addClass(q),this.$element().append(n)}},_updateNavButtonsVisibility:function(){this._leftButton&&this._leftButton.option("disabled",this._scrollable.scrollLeft()<=0),this._rightButton&&this._rightButton.option("disabled",this._scrollable.scrollLeft()>=Math.round(this._scrollable.scrollWidth()-this._scrollable.clientWidth()))},_updateScrollPosition:function(e,t){this._scrollable.update(),this._scrollable.scrollBy(e/t)},_createNavButton:function(e,t){var n=this,i=n._createAction(function(){n._holdInterval=setInterval(function(){n._updateScrollPosition(e,Q)},Q)}),o=(0,_.addNamespace)(T.default.name,"dxNavButton"),r=(0,_.addNamespace)(b.default.up,"dxNavButton"),l=(0,_.addNamespace)(b.default.out,"dxNavButton"),u=this._createComponent((0,a.default)("
").addClass(G),p.default,{focusStateEnabled:!1,icon:t,onClick:function(){n._updateScrollPosition(e,1)},integrationOptions:{}}),c=u.$element();return s.default.on(c,o,{timeout:J},function(e){i({event:e})}.bind(this)),s.default.on(c,r,function(){n._clearInterval()}),s.default.on(c,l,function(){n._clearInterval()}),u},_clearInterval:function(){this._holdInterval&&clearInterval(this._holdInterval)},_updateSelection:function(e){this._scrollable&&this._scrollable.scrollToElement(this.itemElements().eq(e[0]),{left:1,right:1})},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._renderScrolling()},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)},_clean:function(){this._cleanScrolling(),this.callBase()},_optionChanged:function(e){switch(e.name){case"useInkRipple":case"scrollingEnabled":case"showNavButtons":this._invalidate();break;case"scrollByContent":this._scrollable&&this._scrollable.option(e.name,e.value);break;case"width":this.callBase(e),this._dimensionChanged();break;case"selectionMode":this._renderMultiple(),this.callBase(e);break;case"badgeExpr":this._invalidate();break;default:this.callBase(e)}},_afterItemElementInserted:function(){ this.callBase(),this._renderScrolling()},_afterItemElementDeleted:function(e,t){this.callBase(e,t),this._renderScrolling()}});te.ItemClass=C.default,(0,d.default)("dxTabs",te),e.exports=te,e.exports.getTabsExpandedClass=F},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(339),a=i(o),r=a.default;e.exports={extend:function(e){r=r.inherit(e)},create:function(e){return new r(e)}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=e.format||Oe[e.dataType];return fe.default.format(t,n)}function a(e){return e&&e.length>1&&"!"===e[0]&&!D(e)}function r(e){return a(e)?e[1]:e}function s(e,t){return a(e)?e[1]=t:e=t,e}function l(e,t){var n=function(e){return e.indexOf("!")!==-1},i=function(e){var t=e.slice(0);e.length=0,e.push("!",t)},o=function(e){var t=r(e);e.length=0,[].push.apply(e,t)};n(t)?a(e)||i(e):a(e)&&o(e)}function u(e,t){l(e,t);var n,i=r(e),o=function(e){return e.indexOf("!")===-1?e:e.substring(1)},a=function(e,t){for(n=0;n=0&&i.push(t.name)}}),i.map(function(e){var i=v(n,e);return i?{icon:i.icon||Ie,text:i.caption||me.default.captionize(i.name),value:i.name,isCustom:!0}:{icon:ke.default.getIconByFilterOperation(e)||Ie,text:_(e,t),value:e}})}function b(e){return e.defaultFilterOperation||g(e)[0]}function x(e,t){var n=[e.dataField,"",""],i=b(e);return Y(n,i,t),n}function w(e,t){var n=r(e),i=n.indexOf(t);return n.splice(i,1),1!==n.length&&n.splice(i,1),e}function C(e){return e.indexOf("not")!==-1?["!",[e.substring(3).toLowerCase()]]:[e]}function k(e){var t=r(e);if(D(t))return!1;var n=t.some(function(e){return D(e)});return!n}function S(e,t){var n=r(t),i=h(n);return 1===n.length?n.unshift(e):n.push(e,i),t}function I(e,t){for(var n=0;n0)return i[0];throw new ce.default.Error("E1047",e)}function T(e){return!!Array.isArray(e)&&(e.length<2||Array.isArray(e[0])||Array.isArray(e[1]))}function D(e){return!!Array.isArray(e)&&(e.length>1&&!Array.isArray(e[0])&&!Array.isArray(e[1]))}function E(e,t){for(var n=d(e).toLowerCase()||Te,i=[],o=0;o-1&&(n[i]=t[i]);n.defaultCalculateFilterExpression=he.default.defaultCalculateFilterExpression,(0,se.isDefined)(n.dataType)||(n.dataType=Se),e.push(n)}return e},[])}function R(e,t,n,i){var o=I(e[0],t),a=O(e,n),r=n.length&&v(n,a[1]);return r&&r.calculateFilterExpression?r.calculateFilterExpression.apply(r,[a[2],o,i]):o.createFilterExpression?o.createFilterExpression.apply(o,[a[2],a[1],i]):o.calculateFilterExpression?o.calculateFilterExpression.apply(o,[a[2],a[1],i]):o.defaultCalculateFilterExpression.apply(o,[a[2],a[1],i])}function M(e,t,n,i){if(!(0,se.isDefined)(e))return null;if(a(e)){var o=M(e[1],t,n,i);return["!",o]}var s=r(e);if(D(s))return R(s,t,n,i)||null;for(var l,u=h(s),c=[],d=0;d3&&void 0!==arguments[3]?arguments[3]:"filterBuilder";if(z(t))return"";if(Array.isArray(t)){var o=new ae.Deferred;return ae.when.apply(this,H(e,t,n,i)).done(function(){for(var e=arguments.length,t=new Array(e),n=0;n",Ae={number:["=","<>","<",">","<=",">=","isblank","isnotblank"],string:["contains","notcontains","startswith","endswith","=","<>","isblank","isnotblank"],date:["=","<>","<",">","<=",">=","isblank","isnotblank"],datetime:["=","<>","<",">","<=",">=","isblank","isnotblank"],"boolean":["=","<>","isblank","isnotblank"],object:["isblank","isnotblank"]},Oe={date:"shortDate",datetime:"shortDateShortTime"},Be=["=","<>","isblank","isnotblank"],Pe=["caption","customizeText","dataField","dataType","editorTemplate","falseText","editorOptions","filterOperations","format","lookup","trueText","calculateFilterExpression","name"];t.isValidCondition=Z,t.isEmptyGroup=k,t.getOperationFromAvailable=m,t.updateConditionByOperation=Y,t.getCaptionWithParents=U,t.getItems=j,t.setGroupValue=u,t.getGroupMenuItem=c,t.getGroupValue=h,t.getAvailableOperations=y,t.removeItem=w,t.createCondition=x,t.createEmptyGroup=C,t.addItem=S,t.getField=I,t.isGroup=T,t.isCondition=D,t.getNormalizedFields=P,t.getNormalizedFilter=V,t.getGroupCriteria=r,t.convertToInnerStructure=B,t.getDefaultOperation=b,t.getCurrentValueText=N,t.getCurrentLookupValueText=F,t.getFilterOperations=g,t.getCaptionByOperation=_,t.getOperationValue=X,t.getFilterExpression=M,t.getCustomOperation=v,t.getMergedOperations=Q,t.syncFilters=ne,t.getMatchedConditions=ie,t.filterHasField=oe,t.removeFieldConditionsFromFilter=ee},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.dataField||e.groupName||"",n=(e.summaryType||"").toLowerCase();return(0,f.isString)(e.groupInterval)&&(t+="_"+e.groupInterval),n&&"custom"!==n?(n=n.replace(/^./,n[0].toUpperCase()),t.length&&(n=" ("+n+")")):n="",(0,C.titleize)(t)+n}function a(e,t){var n=e._initProperties||{};(0,m.each)(t,function(t,i){Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])})}function r(e,t){a(e,t),(0,f.isDefined)(e.caption)||(0,E.setFieldProperty)(e,"caption",o(e))}function s(e){return e.some(function(e){return e.summaryDisplayMode||e.calculateSummaryValue})}function l(e){return e.some(function(e){return!!e.runningTotal})}function u(e){return e.rows.length||e.columns.length||e.values.length}var c=n(45),d=n(91),h=i(d),p=n(4),f=n(1),g=n(0),_=n(13),m=n(3),v=n(6),y=n(15),b=i(y),x=n(81),w=i(x),C=n(33),k=n(687),S=n(688),I=i(S),T=n(382),D=n(689),E=n(80),A={row:"rows",column:"columns",data:"values",filter:"filters"},O=["area","areaIndex","sortOrder","filterType","filterValues","sortBy","sortBySummaryField","sortBySummaryPath","expanded","summaryType","summaryDisplayMode"],B=["format","selector","customizeText","caption"],P=B.concat(["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"]);e.exports=b.default.inherit(function(){function e(e,t){var n=e.remoteOperations||e.paginate?I.default:k.LocalStore;return new n((0,g.extend)((0,c.normalizeDataSourceOptions)(e),{onChanged:null,onLoadingChanged:null,onProgressChanged:t}))}function t(t,n){var i;if((0,f.isPlainObject)(t)&&t.load)i=e(t,n);else{t&&!t.store&&(t={store:t});var o=t.store;"xmla"===o.type?i=new T.XmlaStore(o):(0,f.isPlainObject)(o)&&o.type||o instanceof h.default||Array.isArray(o)?i=e(t,n):o instanceof b.default&&(i=o)}return i}function n(e,t,n){for(var i=0;i=0&&(0,f.isDefined)(c))return function(e){var t=r?e.index:c,n=r?c:e.index,i=((o[t]||[[]])[n]||[])[a];return(0,f.isDefined)(i)?i:null}}function N(e,t){var n="text";return"none"===e?n="index":(t||"displayText"!==e)&&(n="value"),n}function $(e,t,n,i,o){var a=o?"asc":e.sortOrder,r=N(e.sortBy,o),s=e.sortingMethod?function(t,n){return e.sortingMethod(t,n)}:(0,E.getCompareFunction)(function(e){return e[r]}),l=!o&&z(e,t,n,i),u=l&&(0,E.getCompareFunction)(l),c=function(e,t){var n=u&&u(e,t)||s(e,t);return"desc"===a?-n:n};return c}function W(e,t,n,i){var o=t[n]||[],a=t.headerName===n?t.path.length:0,r=[];(0,E.foreachDataLevel)(e[n],function(a,s){var l=o[s]||{},u=r[s]=r[s]||$(l,e,t,n,i);a.sort(u)},a)}function G(e,t,n){W(t,e,"rows",n),W(t,e,"columns",n)}function j(e,t,n){return(0,E.foreachTreeAsync)(e[n],function(e){var i=e[0];i.text=i.text||(0,E.formatValue)(i.value,t[n][(0,E.createPath)(e).length-1])})}function q(e,t){return(0,v.when)(j(t,e,"columns"),j(t,e,"rows"))}function K(e){var t=new v.Deferred,n={};return(0,v.when)((0,E.foreachTreeAsync)(e,function(e){var t=(0,E.createPath)(e).join(".");n[t]=e[0]})).done(t.resolve),e._cacheByPath=n,t}function U(e,t){var n=[];return(0,m.each)(e,function(){M(this,t)&&n.push(this)}),n}var Y=function(e,t){if(e._cacheByPath)return e._cacheByPath[t.join(".")]||null},X=function e(t,n){var i=-1;if(t)for(var o=0;o=0&&X(e,n)+1,a=[];return(0,v.when)((0,E.foreachTreeAsync)(e,function(e){delete e[0].collapsedChildren})).done(function(){(0,v.when)((0,E.foreachTreeAsync)(t,function(t,n){var i=t[0];if(i.index>=0){var r=Y(e,(0,E.createPath)(t));if(r&&r.index>=0)a[i.index]=r.index;else if(o){var s=(0,E.createPath)(t.slice(1));r=Y(e,s);var l=s.length?r&&r.children:e;l&&(l[n]=i,i.index=a[i.index]=o++)}}})).done(function(){i.resolve(a)})}),i},J=function(e,t,n,i){var o,a,r=e.values;if(t)for(var s=0;s<=t.length;s++){var l=t[s];if(o=n[s],(0,f.isDefined)(o)||(o=e.grandTotalRowIndex),l&&(0,f.isDefined)(o)){r[o]||(r[o]=[]);for(var u=0;u<=l.length;u++){var c=l[u];a=i[u],(0,f.isDefined)(a)||(a=e.grandTotalColumnIndex),(0,f.isDefined)(c)&&(0,f.isDefined)(a)&&(r[o][a]=c)}}}};return{ctor:function(e){e=e||{};var n=this,i=t(e,function(e){n.fireEvent("progressChanged",[e])});n._store=i,n._paginate=!!e.paginate,n._pageSize=e.pageSize||40,n._data={rows:[],columns:[],values:[]},n._loadingCount=0,n._isFieldsModified=!1,(0,m.each)(["changed","loadError","loadingChanged","progressChanged","fieldsPrepared","expandValueChanging"],function(t,n){var i="on"+n[0].toUpperCase()+n.slice(1);Object.prototype.hasOwnProperty.call(e,i)&&this.on(n,e[i])}.bind(this)),n._retrieveFields=!(0,f.isDefined)(e.retrieveFields)||e.retrieveFields,n._fields=e.fields||[],n._descriptions=e.descriptions?(0,g.extend)(n._createDescriptions(),e.descriptions):void 0,i||(0,g.extend)(!0,n._data,e.store||e)},getData:function(){return this._data},getAreaFields:function(e,t){var n=[];if(t||"data"===e)n=U(this._fields,e),R(n);else{var i=this._descriptions||{};n=i[A[e]]||[]}return n},fields:function(e){var t=this;return e&&(t._fields=F(e,t._storeFields,t._retrieveFields),t._fieldsPrepared(t._fields)),t._fields},field:function e(t,n){var i=this,o=i._fields,e=o&&o[(0,f.isNumeric)(t)?t:(0,E.findField)(o,t)];return e&&n&&((0,m.each)(n,function(t,n){var i=(0,_.inArray)(t,O)<0;if((0,E.setFieldProperty)(e,t,n,i),"sortOrder"===t)for(var o=e.levels||[],a=0;a0},state:function(e,t){var n=this;return arguments.length?(e=(0,g.extend)({rowExpandedPaths:[],columnExpandedPaths:[]},e),void(n._descriptions?(n._fields=C(e.fields,n._fields),n._descriptions=n._createDescriptions(),!t&&n.load(e)):(n.beginLoading(),(0,v.when)(L(n)).done(function(i){n._fields=C(e.fields,i),n._fieldsPrepared(i),!t&&n.load(e)}).always(function(){n.endLoading()})))):{fields:d(n._fields,O),columnExpandedPaths:i(n._data,n._descriptions,"columns"),rowExpandedPaths:i(n._data,n._descriptions,"rows")}},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_changeLoadingCount:function(e){var t=this.isLoading();this._loadingCount+=e;var n=this.isLoading();t^n&&this.fireEvent("loadingChanged",[n])},_hasPagingValues:function(e,t,n){var i=t+"Take",o=t+"Skip",a=this._data.values,r=this._data[t+"s"],s="row"===t?"column":"row",l=[];if(e.path&&e.area===t){var u=Y(r,e.path);if(r=u&&u.children,!r)return!1}if(e.oppositePath&&e.area===s){var c=Y(r,e.oppositePath);if(r=c&&c.children,!r)return!1}for(var d=e[o];d=d.default.trimTime(new Date(this.getStartViewDate()))},_renderDateTimeIndication:function(){if(this.needRenderDateTimeIndication()&&(this.option("shadeUntilCurrentTime")&&this._shader.render(this),this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator())){var e=this._getGroupCount()||1,t=this._dateTableScrollable.$content(),n=this.getIndicationHeight(),i=this._getRtlOffset(this.getCellWidth());n>0&&this._renderIndicator(n,i,t,e)}},_renderIndicator:function(e,t,n,i){for(var o=0;o").addClass(_);return e.append(t),t},_getRtlOffset:function(e){return this.option("rtlEnabled")?this._dateTableScrollable.$content().get(0).getBoundingClientRect().width-this.getTimePanelWidth()-e:0},_setIndicationUpdateInterval:function(){this.option("showCurrentTimeIndicator")&&0!==this.option("indicatorUpdateInterval")&&(this._clearIndicatorUpdateInterval(),this._indicatorInterval=setInterval(function(){this._refreshDateTimeIndication()}.bind(this),this.option("indicatorUpdateInterval")))},_clearIndicatorUpdateInterval:function(){this._indicatorInterval&&(clearInterval(this._indicatorInterval),delete this._indicatorInterval)},_isVerticalShader:function(){return!0},getIndicationWidth:function(e){var t=this.getCellWidth()*this._getCellCount(),n=this._getIndicatorDuration();n>this._getCellCount()&&(n=this._getCellCount());var i=n*this.getRoundedCellWidth(e,e*this._getCellCount(),n);return t=0?(t=P(e.margin),t={top:t,bottom:t,left:t,right:t}):t={top:t.top>=0?P(t.top):G,bottom:t.bottom>=0?P(t.bottom):G,left:t.left>=0?P(t.left):G,right:t.right>=0?P(t.right):G},e.margin=t}function r(e,t,n){var i,o,a=7,r=4;switch(e.itemTextPosition){case Y:case U:i=t+a+n.width,o=V(t,n.height);break;case X:case Z:i=V(t,n.width),o=t+r+n.height}return{width:i,height:o}}function s(e,t){var n={};return n.left=F(e.x,t.x),n.top=F(e.y,t.y),n.right=V(e.x+e.width,t.x+t.width),n.bottom=V(e.y+e.height,t.y+t.height),n}function l(e,t,n,i){var o=t&&n[t[e]];o&&o.marker.smartAttr(o.states[i])}function u(e,t,n){return e?(a(e),e.horizontalAlignment=ae(e.horizontalAlignment,U),e.verticalAlignment=re(e.verticalAlignment,e.horizontalAlignment===K?Z:X),e.orientation=se(e.orientation,e.horizontalAlignment===K?Q:J),e.itemTextPosition=le(e.itemTextPosition,e.orientation===Q?Z:U),e.position=n?ue(e.position,te):te,e.itemsAlignment=ce(e.itemsAlignment,null),e.hoverMode=$(e.hoverMode),e.customizeText=z(e.customizeText)?e.customizeText:function(){return this[t]},e.customizeHint=z(e.customizeHint)?e.customizeHint:B.noop,e._incidentOccurred=e._incidentOccurred||B.noop,e):null}function c(e,t){return e.rect(0,0,t,t)}function d(e,t){return e.circle(t/2,t/2,t/2)}function h(e){return"circle"===$(e)}function p(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}function f(e,t,n,i){var o={x:0,y:0},a=0,r=0,s=0;if(s="y"===t.direction?i.top+i.bottom:i.left+i.right,e.forEach(function(e,n){var i=e[0],s=e.length;e.forEach(function(e,n){var i=e.offset||t.spacing;o[t.direction]+=e[t.measure]+(n!==s-1?i:0),a=V(a,o[t.direction])}),o[t.direction]=0,o[t.altDirection]+=i[t.altMeasure]+i.altOffset||t.altSpacing,r=V(r,o[t.altDirection])}),a+s>t.length)return t.countItem=g(t,n),!0}function g(e,t){return e.altCountItem++,L(t/e.altCountItem)}function _(e,t){return e.reduce(function(e,n){var i=n.offset||t.spacing;return e+n[t.measure]+i},0)}function m(e,t){return e.reduce(function(e,n){return V(e,_(n,t))},0)}function v(e,t,n){var i,o=_(e,t);switch(t.itemsAlignment){case U:i=n-o;break;case K:i=(n-o)/2;break;default:i=0}return i}function y(e){switch(e.itemTextPosition){case Z:return{horizontal:K,vertical:X};case X:return{horizontal:K,vertical:Z};case Y:return{horizontal:U,vertical:K};case U:return{horizontal:Y,vertical:K}}}function b(e,t,n){var i={};return n%t.countItem===0&&(t.markerOffset?e.push([],[]):e.push([])),t.markerOffset?(i.firstLine=e[e.length-1],i.secondLine=e[e.length-2]):i.firstLine=i.secondLine=e[e.length-1],i}function x(e,t){var n=e.reduce(function(e,n){var i=n?n[t]:e;return V(e,i)},0);e.forEach(function(e){e&&(e[t]=n)})}function w(e){var t,n,i=e.length,o=e[0].length,a=[];for(t=0;t2&&void 0!==arguments[2]?arguments[2]:{},i=this;if(t=i._options=u(t,i._textField,i._allowInsidePosition)||{},i._data=e&&t.customizeItems&&t.customizeItems(e.slice())||e,i._boundingRect={width:0,height:0,x:0,y:0},i.isVisible()&&!i._title&&(i._title=new A.default.Title({renderer:i._renderer,cssClass:i._titleGroupClass,root:i._legendGroup})),i._title){var o=t.title;n.horizontalAlignment=k(t),i._title.update(n,o)}return this.erase(),i},isVisible:function(){return this._options&&this._options.visible},draw:function(e,t){var n=this,i=n._options,o=n._getItemData();if(n._size={width:e,height:t},n.erase(),!(n.isVisible()&&o&&o.length))return n;if(n._insideLegendGroup=n._renderer.g().enableLinks().append(n._legendGroup),n._title.changeLink(n._insideLegendGroup),n._createBackground(),n._title.hasText()){var a=n._background?2*n._options.paddingLeftRight:0;n._title.draw(e-a,t)}n._markersGroup=n._renderer.g().attr({"class":n._itemGroupClass}).append(n._insideLegendGroup),n._createItems(o),n._locateElements(i),n._finalUpdate(i);var r=n.getLayoutOptions();return(r.width>e||r.height>t)&&n.freeSpace(),n},probeDraw:function(e,t){return this.draw(e,t)},_createItems:function(e){var t,n=this,i=n._options,a=i.markerSize,s=n._renderer,l=0,u=de(i.markerShape);n._markersId={},n._items=(e||[]).map(function(e,c){var d=n._markersGroup,h=P(e.size>0?e.size:a),p=e.states,f=p.normal,g=f.fill,_=u(s,h).attr({fill:g||i.markerColor||i.defaultColor,opacity:f.opacity}).append(d),m=n._createLabel(e,d),v={normal:{fill:g},hovered:o(p.hover,g),selected:o(p.selection,g)},y=m.getBBox();return void 0!==e.id&&(n._markersId[e.id]=c),t=r(i,h,y),l=V(l,t.height),n._createHint(e,m,_),{label:m,labelBBox:y,group:d,bBox:t,marker:_,markerSize:h,tracker:{id:e.id,argument:e.argument,argumentIndex:e.argumentIndex},states:v,itemTextPosition:i.itemTextPosition,markerOffset:0,bBoxes:[]}}),i.equalRowHeight&&n._items.forEach(function(e){return e.bBox.height=l})},_getItemData:function(){var e=this._data||[],t=this._options||{};return t.inverted&&(e=e.slice().reverse()),e.filter(function(e){return e.visible})},_finalUpdate:function(e){this._adjustBackgroundSettings(e),this._setBoundingRect(e.margin)},erase:function(){var e=this,t=e._insideLegendGroup;return t&&t.dispose(),e._insideLegendGroup=e._markersGroup=e._x1=e._x2=e._y2=e._y2=null,e},_locateElements:function(e){this._moveInInitialValues(),this._locateRowsColumns(e)},_moveInInitialValues:function(){var e=this;e._title.hasText()&&e._title.move([0,0]),e._legendGroup&&e._legendGroup.move(0,0),e._background&&e._background.attr({x:0,y:0,width:0,height:0})},applySelected:function(e){return l(e,this._markersId,this._items,"selected"),this},applyHover:function(e){return l(e,this._markersId,this._items,"hovered"),this},resetItem:function(e){return l(e,this._markersId,this._items,"normal"),this},_createLabel:function(e,t){var n=this._getCustomizeObject(e),i=this._options,o=C(i.itemTextPosition),a=i.customizeText.call(n,n),r=H(e.textOpacity)?W({},i.font,{opacity:e.textOpacity}):i.font;return this._renderer.text(a,0,0).css((0,S.patchFontOptions)(r)).attr({align:o,"class":i.cssClass}).append(t)},_createHint:function(e,t,n){var i=this._getCustomizeObject(e),o=this._options.customizeHint.call(i,i);H(o)&&""!==o&&(t.setTitle(o),n.setTitle(o))},_createBackground:function(){var e=this,t=e._options.position===ee,n=e._options.backgroundColor,i=n||(t?e._options.containerBackgroundColor:ne);(e._options.border.visible||(t||n)&&n!==ne)&&(e._background=e._renderer.rect(0,0,0,0).attr({fill:i,"class":e._backgroundClass}).append(e._insideLegendGroup))},_locateRowsColumns:function(e){var t,n=this,i=0,o=n._getItemsLayoutOptions(),a=n._items.length;do t=[],n._createLines(t,o),n._alignLines(t,o),i++;while(f(t,o,a,e.margin)&&in.width&&(n.width=t.width),n},getActionCallback:function(e){var t=this;return t._options.visible?function(n){t[n](e.index)}:B.noop},getLayoutOptions:function(){var e=this._options,t=this._insideLegendGroup?this._boundingRect:{width:0,height:0,x:0,y:0};return e?(t.verticalAlignment=e.verticalAlignment,t.horizontalAlignment=e.horizontalAlignment,e.orientation===Q?(t.cutLayoutSide=e.verticalAlignment,t.cutSide="vertical"):e.horizontalAlignment===K?(t.cutLayoutSide=e.verticalAlignment,t.cutSide="vertical"):(t.cutLayoutSide=e.horizontalAlignment,t.cutSide="horizontal"),t.position={horizontal:e.horizontalAlignment,vertical:e.verticalAlignment},t):null},shift:function(e,t){var n=this,i={};return n._insideLegendGroup&&n._insideLegendGroup.attr({translateX:e-n._boundingRect.x,translateY:t-n._boundingRect.y}),n._title&&n._shiftTitle(n._boundingRect.widthWithoutMargins),n._markersGroup&&n._shiftMarkers(),n._insideLegendGroup&&(i=n._legendGroup.getBBox()),n._x1=i.x,n._y1=i.y,n._x2=i.x+i.width,n._y2=i.y+i.height,n},_shiftTitle:function(e){var t=this,n=t._title,i=n.getCorrectedLayoutOptions();if(i&&n.hasText()){var o=e-(t._background?2*t._options.paddingLeftRight:0),a=n.getOptions(),r=i.y+a.margin.top,s=0;a.verticalAlignment===Z&&(r+=t._markersGroup.getBBox().height),a.horizontalAlignment===U?s=o-i.width:a.horizontalAlignment===K&&(s=(o-i.width)/2),n.shift(s,r)}},_shiftMarkers:function(){var e=this._title.getLayoutOptions(),t=this._markersGroup.getBBox(),n=this._title.getOptions()||{},i=0,o=0;e.width>t.width&&this._options.horizontalAlignment===K&&(i=e.width/2-t.width/2),n.verticalAlignment===X&&(o=e.height),0===i&&0===o||(this._markersGroup.attr({translateX:i,translateY:o}),this._items.forEach(function(e){e.tracker.left+=i,e.tracker.right+=i,e.tracker.top+=o,e.tracker.bottom+=o}))},getPosition:function(){return this._options.position},coordsIn:function(e,t){return e>=this._x1&&e<=this._x2&&t>=this._y1&&t<=this._y2},getItemByCoord:function(e,t){var n=this._items,i=this._insideLegendGroup;e-=i.attr("translateX"),t-=i.attr("translateY");for(var o=0;o=0&&!i||n<0&&i)||o&&!i||a;return e=t._options.rotated?r?h:p:r?f:g},_getLabelCoords:function(e){var t,n=this;return t=0===n.initialValue&&n.series.isFullStackedSeries()?this._options.rotated?n._getLabelCoordOfPosition(e,h):n._getLabelCoordOfPosition(e,f):"inside"===e.getLayoutOptions().position?n._getLabelCoordOfPosition(e,"inside"):l._getLabelCoords.call(this,e)},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea();return n._isPointInVisibleArea(i,n._getGraphicBBox())?n._moveLabelOnCanvas(t,i,e.getBoundingRect()):t},hideInsideLabel:function(e,t){var n=this._getGraphicBBox(),i=e.getBoundingRect();return!(!this._options.resolveLabelsOverlapping||!(t.y<=n.y&&t.y+i.height>=n.y+n.height||t.x<=n.x&&t.x+i.width>=n.x+n.width)||t.y>n.y+n.height||t.y+i.heightn.x+n.width||t.x+i.widthi&&(i=t.minX),t.maxXo&&(o=t.minY),t.maxY=0,i=this._getValTranslator().getBusinessRange().invert,o=this.x,a=this.y,r=this.width,s=this.height;return this._options.rotated?(t=a+s/2,e=i?n?o:o+r:n?o+r:o):(e=o+r/2,t=i?n?a+s:a:n?a:a+s),{x:e,y:t,offset:0}},getTooltipParams:function(e){if("edge"===e)return this._getEdgeTooltipParams();var t=this.getCenterCoord();return t.offset=0,t},getCenterCoord:function(){var e=this.width,t=this.height,n=this.x,i=this.y;return{x:n+e/2,y:i+t/2}},_truncateCoord:function(e,t,n){return null===e?e:en?n:e},_getErrorBarBaseEdgeLength:function(){return this._options.rotated?this.height:this.width},_translateErrorBars:function(e){l._translateErrorBars.call(this),(this._errorBarPose[1])&&(this._errorBarPos=void 0)},_translate:function(){var e,t,n,i=this,o=i._options.rotated,a=o?"x":"y",r=o?"y":"x",l=o?"width":"height",c=o?"height":"width",d=i._getArgTranslator(),h=i._getValTranslator(),p=i.series.getArgumentAxis().getVisibleArea(),f=i.series.getValueAxis().getVisibleArea();e=d.translate(i.argument),i[r]=e=null===e?e:e+(i[r+"Correction"]||0),t=h.translate(i.value,1),n=h.translate(i.minValue),i["v"+a]=t,i["v"+r]=e+i[c]/2,t=i._truncateCoord(t,f[0],f[1]),n=i._truncateCoord(n,f[0],f[1]),i[l]=s(t-n),t=tp[1]&&(i[c]=p[1]-i[r]))},_updateMarker:function(e,t){this.graphic.smartAttr(o({},t,e?{}:this.getMarkerCoords()))},getMarkerCoords:function(){var e=this,t=e.x,n=e.y,i=e.width,o=e.height,a=e.series.getArgumentAxis(),r=e._options.rotated;if(a.getAxisPosition){var s=a.getOptions(),l=Math.round(s.width/2),u=a.getAxisPosition();if(s.visible)if(r){var c=e.minX===e.defaultX&&e.minX===u-a.getAxisShift();t+=c?l:0,i-=c?l:0,i<0&&(i=0)}else o-=e.minY===e.defaultY&&e.minY===u-a.getAxisShift()?l:0,o<0&&(o=0)}return{x:t,y:n,width:i,height:o}},coordsIn:function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}})},function(e,t,n){function i(e,t,n,i){var o=u.clone(e);return o.x=t,o.y=n,o.angle=i,o}function o(e,t,n,o,a){var r=e.angle+a,s=h.getCosAndSin(r),l=n.x+(e.radius+o*a)*s.cos,u=n.y-(e.radius+o*a)*s.sin;return i(t,l,u,r)}function a(e,t,n,i,o){var a=t-e,r=3*n-3*t,s=3*i-6*n+3*t,l=o-3*i+3*n-t;return p.solveCubicEquation(l,s,r,a)}var r=n(107),s=r.chart,l=r.polar,u=n(48),c=n(0).extend,d=n(3).each,h=n(11),p=n(28),f=h.normalizeAngle,g="discrete",_=h.map,m=c,v=d;t.chart={},t.polar={};var y={autoHidePointMarkersEnabled:function(){return!0},_applyGroupSettings:function(e,t,n){var i=this;t=m(t,e),i._applyElementsClipRect(t),n.attr(t)},_setGroupsSettings:function(e){var t=this,n=t._styles.normal;t._applyGroupSettings(n.elements,{"class":"dxc-elements"},t._elementsGroup),t._bordersGroup&&t._applyGroupSettings(n.border,{"class":"dxc-borders"},t._bordersGroup),s._setGroupsSettings.call(t,e),e&&t._markersGroup&&t._markersGroup.attr({opacity:.001})},_createGroups:function(){var e=this;e._createGroup("_elementsGroup",e,e._group),e._areBordersVisible()&&e._createGroup("_bordersGroup",e,e._group),s._createGroups.call(e)},_areBordersVisible:function(){return!1},_getDefaultSegment:function(e){return{line:_(e.line||[],function(e){return e.getDefaultCoords()})}},_prepareSegment:function(e){return{line:e}},_parseLineOptions:function(e,t){return{stroke:e.color||t,"stroke-width":e.width,dashStyle:e.dashStyle||"solid"}},_parseStyle:function(e,t){return{elements:this._parseLineOptions(e,t)}},_applyStyle:function(e){var t=this;t._elementsGroup&&t._elementsGroup.attr(e.elements),v(t._graphics||[],function(t,n){n.line&&n.line.attr({"stroke-width":e.elements["stroke-width"]}).sharp()})},_drawElement:function(e,t){return{line:this._createMainElement(e.line,{"stroke-width":this._styles.normal.elements["stroke-width"]}).append(t)}},_removeElement:function(e){e.line.remove()},_updateElement:function(e,t,n,i){var o={points:t.line},a=e.line;n?a.animate(o,{},i):a.attr(o)},_animateComplete:function(){var e=this;s._animateComplete.call(e),e._markersGroup&&e._markersGroup.animate({opacity:1},{duration:e._defaultDuration})},_animate:function(){var e=this,t=e._graphics.length-1;v(e._graphics||[],function(n,i){var o;n===t&&(o=function(){e._animateComplete()}),e._updateElement(i,e._segments[n],!0,o)})},_drawPoint:function(e){s._drawPoint.call(this,{point:e.point,groups:e.groups})},_createMainElement:function(e,t){return this._renderer.path(e,"line").attr(t).sharp()},_sortPoints:function(e,t){return t?e.sort(function(e,t){return t.y-e.y}):e.sort(function(e,t){return e.x-t.x})},_drawSegment:function(e,t,n,i){var o=this,a=o._options.rotated,r=!1,s=o._prepareSegment(e,a,i);o._segments.push(s),o._graphics[n]?t?r&&o._updateElement(o._graphics[n],o._getDefaultSegment(s)):o._updateElement(o._graphics[n],s):o._graphics[n]=o._drawElement(t?o._getDefaultSegment(s):s,o._elementsGroup)},_getTrackerSettings:function(){var e=this,t=e._defaultTrackerWidth,n=e._styles.normal.elements["stroke-width"];return{"stroke-width":n>t?n:t,fill:"none"}},_getMainPointsFromSegment:function(e){return e.line},_drawTrackerElement:function(e){return this._createMainElement(this._getMainPointsFromSegment(e),this._getTrackerSettings(e))},_updateTrackerElement:function(e,t){var n=this._getTrackerSettings(e);n.points=this._getMainPointsFromSegment(e),t.attr(n)},checkSeriesViewportCoord:function(e,t){if(0===this._points.length)return!1;var n=e.isArgumentAxis?this.getArgumentRange():this.getViewport(),i=e.getTranslator().translate(n.categories?n.categories[0]:n.min),o=e.getTranslator().translate(n.categories?n.categories[n.categories.length-1]:n.max),a=this.getOptions().rotated,r=e.getOptions().inverted;return e.isArgumentAxis&&(!a&&!r||a&&r)||!e.isArgumentAxis&&(a&&!r||!a&&r)?t>=i&&t<=o:t>=o&&t<=i},getSeriesPairCoord:function(e,t){for(var n=this,i=null,o=this.getNearestPointsByCoord(e,t),a=t&&!n._options.rotated||!t&&n._options.rotated,r=0;rt&&n>e||e=x.y&&S>=w.y)||t&&(k<=x.x&&k<=w.x||k>=x.x&&k>=w.x));if(I)t?(u=s=k,c=(S+w.y)/2,l=(S+x.y)/2):(c=l=S,u=(k+w.x)/2,s=(k+x.x)/2);else{if(g=f-p,_=d-h,m=p*h-d*f,t){if(!g)return void n.push(e,e,e);y=S,v=-1*(_*y+m)/g,b=v-k,d-=b,h-=b}else{if(!_)return void n.push(e,e,e);v=k,y=-1*(g*v+m)/_,b=y-S,p-=b,f-=b}u=(k+C*h)/(1+C),c=(S+C*f)/(1+C),s=(k+C*d)/(1+C),l=(S+C*p)/(1+C)}t?(s=a(x.x,k,s),u=a(w.x,k,u)):(l=a(x.y,S,l),c=a(w.y,S,c));var T=i(e,s,l),D=i(e,u,c);n.push(T,e,D)}):n.push(o[0]),n},_prepareSegment:function(e,t){return b._prepareSegment(this._calculateBezierPoints(e,t))},_createMainElement:function(e,t){return this._renderer.path(e,"bezier").attr(t).sharp()},getSeriesPairCoord:function(e,t){for(var n=this,i=null,o=!t&&!this._options.rotated||t&&this._options.rotated,r=o?"vy":"vx",s=o?"y":"x",l=o?"vx":"vy",u=o?"x":"y",c=t?n.getValueAxis():n.getArgumentAxis(),d=c.getVisibleArea(),h=this.getNearestPointsByCoord(e,t),p=function(t){var n=h[t];if(1===n.length)d[0]<=n[0][l]&&d[1]>=n[0][l]&&(i=n[0][l]);else{var o=a(e,n[0][r],n[1][s],n[2][s],n[3][r]);o.forEach(function(e){if(e>=0&&e<=1){var t=Math.pow(1-e,3)*n[0][l]+3*Math.pow(1-e,2)*e*n[1][u]+3*(1-e)*e*e*n[2][u]+e*e*e*n[3][l];d[0]<=t&&d[1]>=t&&(i=t)}})}if(null!==i)return"break"},f=0;f0?n._segments.reduce(function(e,t){return e.concat(t.line)},[]):[],u=[];return n.isVisible()&&s.length>0&&(s.length>1?n.findNeighborPointsByCoord(e,a,r.slice(0),s,function(e,t){var n=l.indexOf(e);u.push([e,l[n+1],l[n+2],t])}):s[0][a]===e&&u.push([s[0]])),u}}),t.polar.line=m({},l,y,{_sortPoints:function(e){return e},_prepareSegment:function(e,t,n){var i,o=[],a=this.getValueAxis().getCenter();if(n&&this._closeSegment(e),this.argumentAxisType===g||this.valueAxisType===g)return b._prepareSegment.call(this,e);for(i=1;i=0?360-t:-t},_closeSegment:function(e){var t,n;t=this._segments.length?this._segments[0].line[0]:i(e[0],e[0].x,e[0].y,e[0].angle),e[e.length-1].angle!==t.angle&&(f(Math.round(e[e.length-1].angle))===f(Math.round(t.angle))?t.angle=e[e.length-1].angle:(n=e[e.length-1].angle-t.angle,t.angle=e[e.length-1].angle+this._getRemainingAngle(n)),e.push(t))},_getTangentPoints:function(e,t,n){var i,a=[],r=Math.round(t.angle-e.angle),s=(t.radius-e.radius)/r;if(0===r)a=[t,e];else if(r>0)for(i=r;i>=0;i--)a.push(o(e,t,n,s,i));else for(i=0;i>=r;i--)a.push(o(e,t,n,s,r-i));return a}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t,n,i,o){return L.default.tickGenerator({axisType:e.type,dataType:e.dataType,logBase:e.logarithmBase,axisDivisionFactor:o(e.axisDivisionFactor||ye),minorAxisDivisionFactor:o(e.minorAxisDivisionFactor||be),numberMultipliers:e.numberMultipliers,calculateMinors:e.minorTick.visible||e.minorGrid.visible||e.calculateMinors,allowDecimals:e.allowDecimals,endOnTick:e.endOnTick,incidentOccurred:t,firstDayOfWeek:e.workWeek&&e.workWeek[0],skipTickGeneration:n,skipCalculationLimits:e.skipCalculationLimits,generateExtraTick:e.generateExtraTick,minTickInterval:e.minTickInterval,rangeIsEmpty:i})}function r(e,t,n){var i=e.getOptions();return(0,$.tick)(e,t,i.tick,i.grid,n,!1)}function s(e,t){var n=e.getOptions();return(0,$.tick)(e,t,n.minorTick,n.minorGrid)}function l(e,t,n){var i=e.getOptions();return(0,$.tick)(e,t,(0,O.extend)({},i.tick,{visible:i.showCustomBoundaryTicks}),i.grid,void 0,!1,n?-1:1)}function u(e,t,n,i){(e||[]).forEach(function(e){return e[t](n,i)})}function c(e){u(e,"initCoords")}function d(e,t){u(e,"drawMark",t)}function h(e,t){u(e,"drawGrid",t)}function p(e,t,n){u(e,"updateTickPosition",t,n)}function f(e,t){u(e,"updateGridPosition",t)}function g(e){var t=e.length-1;for(t;t>=0&&_(e,t);t--);for(t=0;t1&&void 0!==arguments[1]?arguments[1]:1;return e.sharp(this._getSharpParam(),t)},getAxisSharpDirection:function(){var e=this._options.position;return e===ce||e===he?1:-1},getSharpDirectionByCoords:function(e){var t=this._getCanvasStartEnd(),n=Math.max(t.start,t.end);return this.getRadius?0:n!==e[this._isHorizontal?"x":"y"]?1:-1},_getGridLineDrawer:function(){var e=this;return function(t,n){var i=e._getGridPoints(t.coords);return i.points?e._createPathElement(i.points,n,e.getSharpDirectionByCoords(t.coords)):null}},_getGridPoints:function(e){var t=this,n=this._isHorizontal,i=n?"x":"y",o=this._orthogonalPositions,a=o.start,r=o.end,s=t.borderOptions,l=n?he:ce,u=n?pe:de,c=t.getCanvas(),d={left:c.left,right:c.width-c.right,top:c.top,bottom:c.height-c.bottom},h=s.visible&&s[l]?d[l]:void 0,p=s.visible&&s[u]?d[u]:void 0,f=ue+h,g=p-ue;return t.areCoordsOutsideAxis(e)||void 0===e[i]||e[i]g?{points:null}:{points:n?null!==e[i]?[e[i],a,e[i],r]:null:null!==e[i]?[a,e[i],r,e[i]]:null}},_getConstantLinePos:function(e,t,n){var i=this._getTranslatedCoord(e);if(!(!(0,D.isDefined)(i)||iae(t,n)))return i},_getConstantLineGraphicAttributes:function(e){var t=this._orthogonalPositions.start,n=this._orthogonalPositions.end;return{points:this._isHorizontal?[e,t,e,n]:[t,e,n,e]}},_createConstantLine:function(e,t){return this._createPathElement(this._getConstantLineGraphicAttributes(e).points,t,k(e,this._getCanvasStartEnd()))},_drawConstantLineLabelText:function(e,t,n,i,o){var a=i.font,r=i.cssClass;return this._renderer.text(e,t,n).css(te((0,O.extend)({},this._options.label.font,a))).attr({align:"center","class":r}).append(o)},_drawConstantLineLabels:function(e,t,n,i){var o=this,a=t.text,r=o._options,s=r.label;o._checkAlignmentConstantLineLabels(t),a=(0,D.isDefined)(a)?a:o.formatLabel(e,s);var l=o._getConstantLineLabelsCoords(n,t);return o._drawConstantLineLabelText(a,l.x,l.y,t,i)},_getStripPos:function(e,t,n,i,o){var a,r,s=!(!o.minVisible&&!o.maxVisible),l=(o.categories||[]).reduce(function(e,t){return e.push(t.valueOf()),e},[]);if(!s&&(0,D.isDefined)(e)&&(0,D.isDefined)(t)){var u=this.parser(e),c=this.parser(t),d=(0,B.inArray)((0,D.isDefined)(u)?u.valueOf():void 0,l),h=(0,B.inArray)((0,D.isDefined)(c)?c.valueOf():void 0,l);if(d===-1||h===-1)return{from:0,to:0,outOfCanvas:!0};if(d>h){var p=t;t=e,e=p}}(0,D.isDefined)(e)?(e=this.validateUnit(e,"E2105","strip"),a=this._getTranslatedCoord(e,-1)):a=n,(0,D.isDefined)(t)?(t=this.validateUnit(t,"E2105","strip"),r=this._getTranslatedCoord(t,1)):r=i;var f=a=g[1]&&f.to>=g[1])&&(f.outOfCanvas=!0),f},_getStripGraphicAttributes:function(e,t){var n,i,o,a,r=this._orthogonalPositions,s=r.start,l=r.end;return this._isHorizontal?(n=e,i=re(s,l),o=t-e,a=oe(s-l)):(n=re(s,l),i=e,o=oe(s-l),a=oe(e-t)),{x:n,y:i,width:o,height:a}},_createStrip:function(e){return this._renderer.rect(e.x,e.y,e.width,e.height)},_adjustStripLabels:function(){var e=this;this._strips.forEach(function(t){t.label&&t.label.attr(e._getAdjustedStripLabelCoords(t))})},_adjustLabelsCoord:function(e,t,n){var i=this;i._majorTicks.forEach(function(o){o.label&&o.label.attr(i._getLabelAdjustedCoord(o,e+(o.labelOffset||0),t,n))})},_adjustLabels:function(e){var t=this,n=t._majorTicks.reduce(function(e,t){if(!t.label)return e;var n=t.labelRotationAngle?T.default.rotateBBox(t.labelBBox,[t.labelCoords.x,t.labelCoords.y],-t.labelRotationAngle):t.labelBBox;return{width:ae(e.width||0,n.width),height:ae(e.height||0,n.height),offset:ae(e.offset||0,t.labelOffset||0)}},{}),i=t._isHorizontal?n.height:n.width;return t._adjustLabelsCoord(e,n.width),e+i+(i&&t._options.label.indentFromAxis)+n.offset},_getLabelAdjustedCoord:function(e,t,n){t=t||0;var i,o,a=this,r=a._options,s=T.default.rotateBBox(e.labelBBox,[e.labelCoords.x,e.labelCoords.y],-e.labelRotationAngle||0),l=r.position,u=e.labelAlignment||r.label.alignment,c="discrete"===a._options.type,d=e.labelRotationAngle%90===0,h=r.label.indentFromAxis,p=a._axisPosition,f=e.labelCoords,g=f.x;return a._isHorizontal?(o=l===de?p+h-s.y+t:p-h-(s.y+s.height)-t,i=u===pe?c&&d?e.coords.x-(s.x+s.width):g-s.x-s.width:u===he?c&&d?g-s.x-(e.coords.x-g):g-s.x:g-s.x-s.width/2):(o=f.y-s.y-s.height/2,l===he?(i=u===he?p-h-n-s.x:u===fe?p-h-n/2-s.x-s.width/2:p-h-s.x-s.width,i-=t):(i=u===pe?p+h+n-s.x-s.width:u===fe?p+h+n/2-s.x-s.width/2:p+h-s.x,i+=t)),{translateX:i,translateY:o}},_createAxisConstantLineGroups:function(){var e=this,t=e._renderer,n=e._axisCssPrefix,i=n+"constant-lines",o=t.g().attr({"class":i}),a=t.g().attr({"class":i}),r=t.g().attr({"class":i});return{inside:o,outside1:a,left:a,top:a,outside2:r,right:r,bottom:r,remove:function(){this.inside.remove(),this.outside1.remove(),this.outside2.remove()},clear:function(){this.inside.clear(),this.outside1.clear(),this.outside2.clear()}}},_createAxisGroups:function(){var e=this,t=e._renderer,n=e._axisCssPrefix;e._axisGroup=t.g().attr({"class":n+"axis"}),e._axisStripGroup=t.g().attr({"class":n+"strips"}),e._axisGridGroup=t.g().attr({"class":n+"grid"}),e._axisElementsGroup=t.g().attr({"class":n+"elements"}).append(e._axisGroup),e._axisLineGroup=t.g().attr({"class":n+"line"}).append(e._axisGroup),e._axisTitleGroup=t.g().attr({"class":n+"title"}).append(e._axisGroup),e._axisConstantLineGroups={above:e._createAxisConstantLineGroups(),under:e._createAxisConstantLineGroups()},e._axisStripLabelGroup=t.g().attr({"class":n+"axis-labels"})},_clearAxisGroups:function(){var e=this;e._axisGroup.remove(),e._axisStripGroup.remove(),e._axisStripLabelGroup.remove(),e._axisConstantLineGroups.above.remove(),e._axisConstantLineGroups.under.remove(),e._axisGridGroup.remove(),e._axisTitleGroup.clear(),e._axisElementsGroup.clear(),e._axisLineGroup&&e._axisLineGroup.clear(),e._axisStripGroup&&e._axisStripGroup.clear(),e._axisGridGroup&&e._axisGridGroup.clear(),e._axisConstantLineGroups.above.clear(),e._axisConstantLineGroups.under.clear(),e._axisStripLabelGroup&&e._axisStripLabelGroup.clear()},_getLabelFormatObject:function(e,t,n,i,o,a){n=n||this._getViewportRange();var r={value:e,valueText:(0,S.smartFormatter)(e,{labelOptions:t,ticks:a||ee(this._majorTicks),tickInterval:(0,D.isDefined)(o)?o:this._tickInterval,dataType:this._options.dataType,logarithmBase:this._options.logarithmBase,type:this._options.type,showTransition:!this._options.marker.visible,point:i})||"",min:n.minVisible,max:n.maxVisible};return i&&(r.point=i),r},formatLabel:function(e,t,n,i,o,a){var r=this._getLabelFormatObject(e,t,n,i,o,a);return(0,D.isFunction)(t.customizeText)?t.customizeText.call(r,r):r.valueText},formatHint:function(e,t,n){var i=this._getLabelFormatObject(e,t,n);return(0,D.isFunction)(t.customizeHint)?t.customizeHint.call(i,i):void 0},formatRange:function(e,t,n){return(0,S.formatRange)(e,t,n,this.getOptions())},_setTickOffset:function(){var e=this._options,t=e.discreteAxisDivisionMode;this._tickOffset=+("crossLabels"!==t||!t)},getMargins:function(){var e=this,t=e._options,n=t.position,i=t.placeholderSize,o=e.getCanvas(),a=o.left,r=o.top,s=o.width-o.right,l=o.height-o.bottom,u=ae(t.grid.visible&&t.grid.width||0,t.tick.visible&&t.tick.width||0),c=e._axisConstantLineGroups.above,d=e._axisConstantLineGroups.under,h=[e._axisElementsGroup,c.outside1,c.outside2,d.outside1,d.outside2,e._axisLineGroup].map(function(e){return e&&e.getBBox()}).concat(function(t){var n=t&&t.getBBox();return!n||n.isEmpty?n:(e._isHorizontal?(n.x=a,n.width=s-a):(n.y=r,n.height=l-r),n)}(e._axisTitleGroup)),p=Se(h,o);return p[n]+=t.crosshairMargin,i&&(p[n]=i),u&&(e._isHorizontal&&o.righta.startValue));var c=l?r.startValue:s.minVisible,d=u?r.endValue:s.maxVisible;if(i){var h=T.default.getCategoriesInfo(o,a.startValue,a.endValue);o=h.categories,s.categories=o}else s.min=(0,D.isDefined)(a.startValue)?a.startValue:s.min,s.max=(0,D.isDefined)(a.endValue)?a.endValue:s.max;var p=T.default.adjustVisualRange({axisType:n.type,dataType:n.dataType,base:n.logarithmBase},{startValue:l?r.startValue:void 0,endValue:u?r.endValue:void 0,length:r.length},{categories:o,min:a.startValue,max:a.endValue},{categories:o,min:c,max:d});return s.minVisible=p.startValue,s.maxVisible=p.endValue,!(0,D.isDefined)(s.min)&&(s.min=s.minVisible),!(0,D.isDefined)(s.max)&&(s.max=s.maxVisible),s.addRange({}),s},adjustRange:function(e){e=e||{};var t=this._options.type===A.default.discrete,n=this._options.type===A.default.logarithmic;if(n&&(e.startValue=e.startValue<=0?null:e.startValue,e.endValue=e.endValue<=0?null:e.endValue),!t&&(0,D.isDefined)(e.startValue)&&(0,D.isDefined)(e.endValue)&&e.startValue>e.endValue){var i=e.endValue;e.endValue=e.startValue,e.startValue=i}return e},_getVisualRangeUpdateMode:function(e,t,n){var i=this._options.visualRangeUpdateMode,o=this._translator,a=this._seriesData;if(this.isArgumentAxis){if([_e,ge,me].indexOf(i)===-1)if(a.axisType===A.default.discrete){var r=a.categories,s=t.categories,l=this.visualRange();i=r&&s&&r.length&&s.map(function(e){return e.valueOf()}).join(",").indexOf(r.map(function(e){return e.valueOf()}).join(","))!==-1&&(l.startValue.valueOf()!==r[0].valueOf()||l.endValue.valueOf()!==r[r.length-1].valueOf())?ge:me}else{var u=o.translate(a.min),c=o.translate(e.startValue),d=o.translate(a.max),h=o.translate(e.endValue);i=u===c&&d===h?me:u!==c&&d===h?_e:ge}}else[ge,me].indexOf(i)===-1&&(i=n===ge?ge:me);return i},_handleBusinessRangeChanged:function(e,t,n){var i=this,o=this.visualRange();if(!t&&!i._translator.getBusinessRange().isEmpty()){var a=i._lastVisualRangeUpdateMode=i._getVisualRangeUpdateMode(o,n,e);if(!i.isArgumentAxis){var r=i.getViewport();(0,D.isDefined)(r.startValue)||(0,D.isDefined)(r.endValue)||(0,D.isDefined)(r.length)||(a=me)}i._prevDataWasEmpty&&(a=ge),a===ge&&i._setVisualRange([o.startValue,o.endValue]),a===me&&i._setVisualRange([null,null]),a===_e&&i._setVisualRange({length:i.getVisualRangeLength()})}},getVisualRangeLength:function(e){var t,n=e||this._translator.getBusinessRange(),i=this._options,o=i.type,a=i.logarithmBase;if(o===A.default.logarithmic)t=(0,W.adjust)(T.default.getLog(n.maxVisible/n.minVisible,a));else if(o===A.default.discrete){var r=T.default.getCategoriesInfo(n.categories,n.minVisible,n.maxVisible);t=r.categories.length}else t=n.maxVisible-n.minVisible;return t},getVisualRangeCenter:function(e){var t,n=this._translator.getBusinessRange(),i=e||n,o=this._options,a=o.type,r=o.logarithmBase;if((0,D.isDefined)(i.minVisible)&&(0,D.isDefined)(i.maxVisible)){if(a===A.default.logarithmic)t=T.default.raiseTo((0,W.adjust)(T.default.getLog(i.maxVisible*i.minVisible,r))/2,r);else if(a===A.default.discrete){var s=T.default.getCategoriesInfo(i.categories,i.minVisible,i.maxVisible),l=Math.ceil(s.categories.length/2)-1;t=n.categories.indexOf(s.categories[l])}else t=(i.maxVisible.valueOf()+i.minVisible.valueOf())/2;return t}},setBusinessRange:function(e,t,n,i){var o=this,a=o._options,r=a.type===A.default.discrete;o._handleBusinessRangeChanged(n,t,e),o._seriesData=new N.Range(e);var s=o._seriesData.isEmpty();if(o._prevDataWasEmpty=s,o._seriesData.addRange({categories:a.categories,dataType:a.dataType,axisType:a.type,base:a.logarithmBase,invert:a.inverted}),!r){if(!(0,D.isDefined)(o._seriesData.min)&&!(0,D.isDefined)(o._seriesData.max)){var l=o.getViewport();l&&o._seriesData.addRange({min:l.startValue,max:l.endValue})}var u=a.synchronizedValue;(0,D.isDefined)(u)&&o._seriesData.addRange({min:u,max:u})}o._seriesData.minVisible=void 0===o._seriesData.minVisible?o._seriesData.min:o._seriesData.minVisible,o._seriesData.maxVisible=void 0===o._seriesData.maxVisible?o._seriesData.max:o._seriesData.maxVisible,!o.isArgumentAxis&&a.showZero&&o._seriesData.correctValueZeroLevel(),o._seriesData.sortCategories(o.getCategoriesSorter(i)),o._seriesData.breaks=o._breaks=o._getScaleBreaks(a,o._seriesData,o._series,o.isArgumentAxis),o._translator.updateBusinessRange(o.adjustViewport(o._seriesData))},_addConstantLinesToRange:function(e,t,n){this._outsideConstantLines.concat(this._insideConstantLines||[]).forEach(function(i){if(i.options.extendAxis){var a,r=i.getParsedValue();e.addRange((a={},o(a,t,r),o(a,n,r),a))}})},setGroupSeries:function(e){this._series=e},getLabelsPosition:function(){var e=this,t=e._options,n=t.position,i=t.label.indentFromAxis+(e._axisShift||0)+e._constantLabelOffset,o=e._axisPosition;return n===ce||n===he?o-i:o+i},getFormattedValue:function(e,t,n){var i=this._options.label;return(0,D.isDefined)(e)?this.formatLabel(e,(0,O.extend)(!0,{},i,t),void 0,n):null},_getBoundaryTicks:function(e,t){var n=this,i=e.length,o=n._options,a=o.customBoundTicks,r=t.minVisible,s=t.maxVisible,l=o.showCustomBoundaryTicks?n._boundaryTicksVisibility:{},u=[];return o.type===A.default.discrete?n._tickOffset&&0!==e.length&&(u=[e[0],e[e.length-1]]):a?(l.min&&(0,D.isDefined)(a[0])&&u.push(a[0]),l.max&&(0,D.isDefined)(a[1])&&u.push(a[1])):(l.min&&(0===i||e[0]>r)&&u.push(r),l.max&&(0===i||e[i-1]a.max?a.max:y;var x=n._getScaleBreaks(i,{minVisible:v,maxVisible:y},n._series,n.isArgumentAxis);u=p(f,!1,v,y,x).ticks}}return n._aggregationInterval=f,{interval:f,ticks:u}},createTicks:function(e){var t=this,n=t._renderer,i=t._options;if(e){t._isSynchronized=!1,t.updateCanvas(e),t._estimatedTickInterval=t._getTicks(t.adjustViewport(this._seriesData),j.noop,!0).tickInterval;var o=t._getViewportRange(),a=this._calculateValueMargins();o.addRange({minVisible:a.minValue,maxVisible:a.maxValue,isSpacedMargin:a.isSpacedMargin,checkMinDataVisibility:!this.isArgumentAxis&&a.checkInterval&&!(0,D.isDefined)(i.min)&&a.minValue.valueOf()>0,checkMaxDataVisibility:!this.isArgumentAxis&&a.checkInterval&&!(0,D.isDefined)(i.max)&&a.maxValue.valueOf()<0});var u=t._createTicksAndLabelFormat(o),c=t._getBoundaryTicks(u.ticks,t._getViewportRange());i.showCustomBoundaryTicks&&c.length?(t._boundaryTicks=[c[0]].map(l(t,n,!0)),c.length>1&&(t._boundaryTicks=t._boundaryTicks.concat([c[1]].map(l(t,n,!1))))):t._boundaryTicks=[];var d=(u.minorTicks||[]).filter(function(e){return!c.some(function(t){return b(t)===b(e)})});t._tickInterval=u.tickInterval,t._minorTickInterval=u.minorTickInterval;var h=t._majorTicks||[],p=h.reduce(function(e,t){return e[t.value.valueOf()]=t,e},{}),f=(0,D.type)(u.ticks[0])===(0,D.type)(h[0]&&h[0].value),g=t._getSkippedCategory(u.ticks),_=u.ticks.map(function(e){var i=p[e.valueOf()];return i&&f?(delete p[e.valueOf()],i.setSkippedCategory(g),i):r(t,n,g)(e)});t._majorTicks=_;var m=t._minorTicks||[];t._minorTicks=d.map(function(e,i){var o=m[i];return o?(o.updateValue(e),o):s(t,n)(e)}),t._ticksToRemove=Object.keys(p).map(function(e){return p[e]}).concat(m.slice(t._minorTicks.length,m.length)),t._correctedBreaks=u.breaks,t._reinitTranslator(t._getViewportRange())}},_reinitTranslator:function(e){var t=this,n=t._translator;t._correctedBreaks&&(e.breaks=t._correctedBreaks),t._isSynchronized||n.updateBusinessRange(t.adjustViewport(e))},_getViewportRange:function(){return this.adjustViewport(this._seriesData)},setMarginOptions:function(e){this._marginOptions=e},getMarginOptions:function(){return(0,D.isDefined)(this._marginOptions)?this._marginOptions:{}},allowToExtendVisualRange:function(e){var t=this.adjustRange(ne(this._options.wholeRange)),n=e?t.endValue:t.startValue;return!this.isArgumentAxis||!(0,D.isDefined)(n)&&this.isExtremePosition(e)},_calculateRangeInterval:function(e){var t="datetime"===this._options.dataType,n=[],i=function(e){(0,D.isDefined)(e)&&n.push(t?(0,G.dateToMilliseconds)(e):e)};return i(this._tickInterval),i(this._estimatedTickInterval),(0,D.isDefined)(e)&&n.push(e),i(this._aggregationInterval),this._calculateWorkWeekInterval(re.apply(this,n))},_calculateWorkWeekInterval:function(e){var t=this._options;if("datetime"===t.dataType&&t.workdaysOnly&&e){var n=t.workWeek.length*Ce.day,i=Ce.week-n;if(n!==e&&i=e?Ce.day:e-i*o}else i>=e&&e>Ce.day&&(e=Ce.day)}return e},_calculateValueMargins:function(e){function t(e){var t=p.ratioOfCanvasRange();return t/(t*c/(e+c))}function n(e,n){var i=oe(k.start-e),o=oe(k.end-n),a=t(i+o);_=i/a,m=o/a}this._resetMargins();var i,o=this,a=o.getMarginOptions(),r=(a.size||0)/2,s=o._options,l=this._getViewportRange(),u=this.getViewport(),c=o._getScreenDelta(),d=(s.type||"").indexOf(A.default.discrete)!==-1,h=s.valueMarginsEnabled&&!d,p=o._translator,f=s.minValueMargin,g=s.maxValueMargin,_=0,m=0,v=0;if(l.stubData||!c)return{startPadding:0,endPadding:0};if(o.isArgumentAxis&&a.checkInterval){i=o._calculateRangeInterval(l.interval);var y=p.getInterval(i);isFinite(y)?v=Math.ceil(y/(2*t(y))):i=0}var b,x,w=c*we/2;h&&((0,D.isDefined)(f)?b=isFinite(f)?f:0:(_=Math.max(r,v),_=Math.min(w,_)),(0,D.isDefined)(g)?x=isFinite(g)?g:0:(m=Math.max(r,v),m=Math.min(w,m)));var C=a.percentStick&&!this.isArgumentAxis;C&&(1===oe(l.max)&&(m=0),1===oe(l.min)&&(_=0));var k=o._getCanvasStartEnd(),S=1+(b||0)+(x||0),I=(c-_-m)/S||c;void 0===b&&void 0===x||(void 0!==b&&(_=I*b),void 0!==x&&(m=I*x));var T,E;if(s.type!==A.default.discrete&&e&&e.length>1&&!s.skipViewportExtending&&!u.action&&s.endOnTick!==!1){var O=e.length,B=p.translate(e[0].value),P=p.translate(e[O-1].value),R=B>P?-1:1,M=ae(R*(k.start-B),0),V=ae(R*(P-k.end),0);if(M>_||V>m){var F=V+M,L=t(F);M>=_&&(T=e[0].value),V>=m&&(E=e[O-1].value),_=ae(M,_)/L,m=ae(V,m)/L}}return b=void 0===b?_/I:b,x=void 0===x?m/I:x,d||(this._translator.isInverted()?(T=(0,D.isDefined)(T)?T:p.from(k.start+c*b,-1),E=(0,D.isDefined)(E)?E:p.from(k.end-c*x,1)):(T=(0,D.isDefined)(T)?T:p.from(k.start-c*b,-1),E=(0,D.isDefined)(E)?E:p.from(k.end+c*x,1))),o.isArgumentAxis||(T*l.min<=0&&T*l.minVisible<=0&&(n(p.translate(0),p.translate(E)),T=0),E*l.max<=0&&E*l.maxVisible<=0&&(n(p.translate(T),p.translate(0)),E=0)),{startPadding:this._translator.isInverted()?m:_,endPadding:this._translator.isInverted()?_:m,minValue:T,maxValue:E,interval:i,isSpacedMargin:_===m&&0!==_}},applyMargins:function(){if(!this._isSynchronized){var e=this._calculateValueMargins(this._majorTicks),t=(0,O.extend)({},this._canvas,{startPadding:e.startPadding,endPadding:e.endPadding});if(this._translator.updateCanvas(this._processCanvas(t)),isFinite(e.interval)){var n=this._translator.getBusinessRange();n.addRange({interval:e.interval}),this._translator.updateBusinessRange(n)}}},_resetMargins:function(){this._reinitTranslator(this._getViewportRange()),this._canvas&&this._translator.updateCanvas(this._processCanvas(this._canvas))},_createConstantLines:function(){var e=this,t=(this._options.constantLines||[]).map(function(t){return(0,Z.default)(e,t)});this._outsideConstantLines=t.filter(function(e){return"outside"===e.labelPosition}),this._insideConstantLines=t.filter(function(e){return"inside"===e.labelPosition})},draw:function(e,t){var n=this,i=this._options;n.borderOptions=t||{visible:!1},n._resetMargins(),n.createTicks(e),n.applyMargins(),n._clearAxisGroups(),c(n._majorTicks),c(n._minorTicks),c(n._boundaryTicks),n._axisGroup.append(n._axesContainerGroup),n._drawAxis(),n._drawTitle(),d(n._majorTicks,i.tick),d(n._minorTicks,i.minorTick),d(n._boundaryTicks,i.tick);var o=n._getGridLineDrawer();h(n._majorTicks,o),h(n._minorTicks,o),u(n._majorTicks,"drawLabel",n._getViewportRange()),n._majorTicks.forEach(function(e){e.labelRotationAngle=0,e.labelAlignment=void 0,e.labelOffset=0}),u(n._outsideConstantLines.concat(n._insideConstantLines),"draw"),u(n._strips,"draw"),n._dateMarkers=n._drawDateMarkers()||[],n._labelAxesGroup&&n._axisStripLabelGroup.append(n._labelAxesGroup),n._gridContainerGroup&&n._axisGridGroup.append(n._gridContainerGroup),n._stripsGroup&&n._axisStripGroup.append(n._stripsGroup),n._constantLinesGroup&&(n._axisConstantLineGroups.above.inside.append(n._constantLinesGroup.above),n._axisConstantLineGroups.above.outside1.append(n._constantLinesGroup.above),n._axisConstantLineGroups.above.outside2.append(n._constantLinesGroup.above),n._axisConstantLineGroups.under.inside.append(n._constantLinesGroup.under),n._axisConstantLineGroups.under.outside1.append(n._constantLinesGroup.under),n._axisConstantLineGroups.under.outside2.append(n._constantLinesGroup.under)),n._measureTitle(),ke(n._majorTicks);var a,r,s,l=n._tickInterval;(0,D.isDefined)(l)&&(s=n.getTranslator().getInterval("datetime"===i.dataType?(0,G.dateToMilliseconds)(l):l)),n._isHorizontal?(a=s,r=i.placeholderSize):(a=i.placeholderSize,r=s);var p=n._validateDisplayMode(i.label.displayMode),f=n._validateOverlappingMode(i.label.overlappingBehavior,p),g=i.label.wordWrap||"none",_=i.label.textOverflow||"none";if(("none"!==g||"none"!==_)&&p!==ve&&f!==ve&&"auto"!==f){var m=!1,v=!1;a&&n._majorTicks.some(function(e){return e.labelBBox.width>a})&&(m=!0),r&&n._majorTicks.some(function(e){return e.labelBBox.height>r})&&(v=!0),(m||v)&&(n._majorTicks.forEach(function(e){e.label&&e.label.setMaxSize(a,r,i.label)}),ke(n._majorTicks))}ke(n._outsideConstantLines),ke(n._insideConstantLines),ke(n._strips),ke(n._dateMarkers),n._adjustConstantLineLabels(n._insideConstantLines),n._adjustStripLabels();var y=n._constantLabelOffset=n._adjustConstantLineLabels(n._outsideConstantLines);n._translator.getBusinessRange().isEmpty()||(n._setLabelsPlacement(),y=n._adjustLabels(y)),y=n._adjustDateMarkers(y),n._adjustTitle(y)},_measureTitle:j.noop,animate:function(){u(this._majorTicks,"animateLabels")},updateSize:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this;i.updateCanvas(e),n&&(i._checkTitleOverflow(),i._measureTitle(),i._updateTitleCoords()),i._reinitTranslator(i._getViewportRange()),i.applyMargins();var o=!i._firstDrawing&&t,a=this._options;c(i._majorTicks),c(i._minorTicks),c(i._boundaryTicks),g(i._majorTicks),g(i._minorTicks),g(i._boundaryTicks),this._axisElement&&i._updateAxisElementPosition(),p(i._majorTicks,a.tick,o),p(i._minorTicks,a.minorTick,o),p(i._boundaryTicks,a.tick),u(i._majorTicks,"updateLabelPosition",o),i._outsideConstantLines.concat(i._insideConstantLines||[]).forEach(function(e){return e.updatePosition(o)}),u(i._strips,"updatePosition",o),f(i._majorTicks,o),f(i._minorTicks,o),o&&u(i._ticksToRemove||[],"fadeOutElements"),i.prepareAnimation(),i._ticksToRemove=null,i._translator.getBusinessRange().isEmpty()||(i._firstDrawing=!1)},prepareAnimation:function(){var e=this,t="saveCoords";u(e._majorTicks,t),u(e._minorTicks,t),u(e._insideConstantLines,t),u(e._outsideConstantLines,t),u(e._strips,t)},applyClipRects:function(e,t){this._axisGroup.attr({"clip-path":t}),this._axisStripGroup.attr({"clip-path":e})},_mergeViewportOptions:function(){var e=this,t=e._options,n={},i=t._customVisualRange;n=!(0,D.isDefined)(t.max)&&!(0,D.isDefined)(t.min)||(0,D.isDefined)(i.startValue)||(0,D.isDefined)(i.endValue)||(0,D.isDefined)(i.length)?i:{startValue:t.min,endValue:t.max},e._setVisualRange(n)},_validateVisualRange:function(e){var t=ne(e);return void 0!==t.startValue&&(t.startValue=this.validateUnit(t.startValue)),void 0!==t.endValue&&(t.endValue=this.validateUnit(t.endValue)),C(t,e)},_validateOptions:function(e){var t=this;void 0!==e.min&&(e.min=t.validateUnit(e.min,"E2106")),void 0!==e.max&&(e.max=t.validateUnit(e.max,"E2106")),e.wholeRange=t._validateVisualRange(e.wholeRange),e.visualRange=e._customVisualRange=t._validateVisualRange(e._customVisualRange),t._mergeViewportOptions()},validate:function(){var e=this,t=e._options,n=e.isArgumentAxis?t.argumentType:t.valueType,i=n?V.default.getParser(n):function(e){return e};e.parser=i,t.dataType=n,e._validateOptions(t)},resetVisualRange:function(e){this._seriesData.minVisible=this._seriesData.min, this._seriesData.maxVisible=this._seriesData.max,this.handleZooming([null,null],{start:!!e,end:!!e})},_applyZooming:function(e,t){var n=this;n._resetVisualRangeOption(),n._setVisualRange(e,t);var i=n.getViewport();n._breaks=n._getScaleBreaks(n._options,{minVisible:i.startValue,maxVisible:i.endValue},n._series,n.isArgumentAxis),n._translator.updateBusinessRange(n._getViewportRange())},getZoomStartEventArg:function(e,t){return{axis:this,range:this.visualRange(),cancel:!1,event:e,actionType:t}},getZoomEndEventArg:function(e,t,n,i,o){var a=this.visualRange();return{axis:this,previousRange:e,range:a,cancel:!1,event:t,actionType:n,zoomFactor:i,shift:o,rangeStart:a.startValue,rangeEnd:a.endValue}},getZoomBounds:function(){var e=T.default.getVizRangeObject(this._options.wholeRange),t=this.getTranslator().getBusinessRange(),n={startValue:x(this._initRange.startValue,t.min),endValue:x(this._initRange.endValue,t.max)};return{startValue:x(e.startValue,n.startValue),endValue:x(e.endValue,n.endValue)}},setInitRange:function(){this._initRange={},0===Object.keys(this._options.wholeRange||{}).length&&(this._initRange=this.getZoomBounds())},_resetVisualRangeOption:function(){this._options._customVisualRange={}},setCustomVisualRange:function(e){this._options._customVisualRange=e},visualRange:function e(){var e,t=this,n=arguments;if(0===n.length){var i=t._getAdjustedBusinessRange(),o=i.minVisible,a=i.maxVisible;return t._options.type===A.default.discrete?(o=(0,D.isDefined)(o)?o:i.categories[0],a=(0,D.isDefined)(a)?a:i.categories[i.categories.length-1],{startValue:o,endValue:a,categories:T.default.getCategoriesInfo(i.categories,o,a).categories}):{startValue:o,endValue:a}}e=se(n[0])?n[0]:(0,D.isPlainObject)(n[0])?(0,O.extend)({},n[0]):[n[0],n[1]];var r=t.handleZooming(e,n[1]);r.isPrevented||t._visualRange(t,r)},handleZooming:function(e,t,n,i){var o=this;t=t||{},(0,D.isDefined)(e)&&(e=o._validateVisualRange(e),e.action=i);var a=o.getZoomStartEventArg(n,i),r=a.range;!t.start&&o._eventTrigger("zoomStart",a);var s={isPrevented:a.cancel,skipEventRising:t.skipEventRising,range:e||a.range};return a.cancel||((0,D.isDefined)(e)&&o._applyZooming(e,t.allowPartialUpdate),(0,D.isDefined)(o._storedZoomEndParams)||(o._storedZoomEndParams={startRange:r,type:this.getOptions().type}),o._storedZoomEndParams.event=n,o._storedZoomEndParams.action=i,o._storedZoomEndParams.prevent=!!t.end),s},handleZoomEnd:function(){var e=this;if((0,D.isDefined)(e._storedZoomEndParams)&&!e._storedZoomEndParams.prevent){var t=e._storedZoomEndParams.startRange,n=e._storedZoomEndParams.event,i=e._storedZoomEndParams.action,o={minVisible:t.startValue,maxVisible:t.endValue,categories:t.categories},a=e.getOptions().type===e._storedZoomEndParams.type,r=a?(0,W.adjust)(e.getVisualRangeCenter()-e.getVisualRangeCenter(o)):NaN,s=a?+(Math.round(e.getVisualRangeLength(o)/e.getVisualRangeLength()+"e+2")+"e-2"):NaN,l=e.getZoomEndEventArg(t,n,i,s,r);l.cancel=e.isZoomingLowerLimitOvercome(1===s?"pan":"zoom",s),e._eventTrigger("zoomEnd",l),l.cancel&&e.restorePreviousVisualRange(t),e._storedZoomEndParams=null}},restorePreviousVisualRange:function(e){var t=this;t._storedZoomEndParams=null,t._applyZooming(e),t._visualRange(t,e)},isZoomingLowerLimitOvercome:function(e,t,n){var i,o=this,a=o._options,r=a.minVisualRangeLength,s="zoom"===e&&t>=1,l=o._translator.getBusinessRange();(0,D.isDefined)(n)&&(i=o.adjustRange(T.default.getVizRangeObject(n)),i={minVisible:i.startValue,maxVisible:i.endValue,categories:l.categories});var u=o.getVisualRangeLength(i);if("discrete"!==a.type)if((0,D.isDefined)(r))"datetime"!==a.dataType||(0,D.isNumeric)(r)||(r=(0,G.dateToMilliseconds)(r)),s&=r>=u;else{var c=o._translator.canvasLength,d={minVisible:l.min,maxVisible:l.max,categories:l.categories};s&=o.getVisualRangeLength(d)/c>=u}else!(0,D.isDefined)(r)&&(r=1),s&=(0,D.isDefined)(n)&&o.getVisualRangeLength()===r&&u<=r;return!!s},dataVisualRangeIsReduced:function(){var e,t,n=this.getTranslator();if("discrete"===this._options.type){var i=n.getBusinessRange().categories;e=i[0],t=i[i.length-1]}else{var o=this._seriesData;e=o.min,t=o.max}if(!(0,D.isDefined)(e)||!(0,D.isDefined)(t))return!1;var a=n.translate(e),r=n.translate(t),s=[Math.min(a,r),Math.max(a,r)],l=this.visualRange(),u=n.translate(l.startValue),c=n.translate(l.endValue);return u>s[0]&&us[0]&&c1&&e.some(s)&&o._applyLabelMode(t,n,e,i),o._checkBoundedLabelsOverlapping(r,e,t)}},_applyLabelMode:function(e,t,n,i,o){var a,r,s=this,l=s._majorTicks,u=s._options.label,c=i.rotationAngle;switch(e){case ve:u.userAlignment||(a=c<0?pe:he,c%90===0&&(a=fe)),t=o?t:s._getStep(n,c),r=function(e){e.label.rotate(c),e.labelRotationAngle=c,a&&(e.labelAlignment=a)},y(l,t,r);break;case"stagger":var d=s._getMaxLabelHeight(n,i.staggeringSpacing);r=function(e,n){n/(t-1)%2!==0&&(e.labelOffset=d)},y(l,t-1,r);break;case"auto":case"_auto":2===t?s._applyLabelMode("stagger",t,n,i):s._applyLabelMode(ve,t,n,{rotationAngle:v(n,u)});break;default:y(l,t)}},getMarkerTrackers:j.noop,_drawDateMarkers:j.noop,_adjustDateMarkers:j.noop,coordsIn:j.noop,areCoordsOutsideAxis:j.noop,_getSkippedCategory:j.noop,_initAxisPositions:j.noop,_drawTitle:j.noop,_updateTitleCoords:j.noop,_adjustConstantLineLabels:j.noop,_createTranslator:function(){return new z.default.Translator2D({},{},{})},_updateTranslator:function(){var e=this._translator;e.update(e.getBusinessRange(),this._canvas||{},this._getTranslatorOptions())},_getTranslatorOptions:function(){var e=this._options;return{isHorizontal:this._isHorizontal,shiftZeroValue:!this.isArgumentAxis,interval:e.semiDiscreteInterval,stick:this._getStick(),breaksSize:e.breakStyle?e.breakStyle.width:0}},getVisibleArea:function(){var e=this._getCanvasStartEnd();return[e.start,e.end].sort(function(e,t){return e-t})},_getCanvasStartEnd:function(){var e=this._isHorizontal,t=this._canvas||{},n=this._translator.getBusinessRange().invert,i=e?[t.left,t.width-t.right]:[t.height-t.bottom,t.top];return n&&i.reverse(),{start:i[0],end:i[1]}},_getScreenDelta:function(){var e=this,t=e._getCanvasStartEnd(),n=e._breaks,i=n?n.length:0,o=oe(t.start-t.end);return o-(i?n[i-1].cumulativeWidth:0)},_getScaleBreaks:function(){return[]},_adjustTitle:j.noop,_checkTitleOverflow:j.noop,getSpiderTicks:j.noop,setSpiderTicks:j.noop,_checkBoundedLabelsOverlapping:j.noop,drawScaleBreaks:j.noop,_visualRange:j.noop,_rotateConstantLine:j.noop,applyVisualRangeSetter:j.noop,getCategoriesSorter:function(e){var t;if(this.isArgumentAxis)t=e;else{var n=this._options.categoriesSortingMethod;t=(0,D.isDefined)(n)?n:this._options.categories}return t},_getAdjustedBusinessRange:function(){return this.adjustViewport(this._translator.getBusinessRange())}}},function(e,t,n){function i(e,t){return null===e?e:D(e)?E(e):t}function o(e){return w(e)?e:C(e)?[e]:null}function a(e){return e?e.value:null}function r(e,t,n){for(var o=e[t],r=w(n)?S(n,a):[],s=0,l=r.length,u=[];s0&&n.width>0,o=e.minorTick,a=o.visible&&o.length>0&&o.width>0,r=e.label,s=Number(r.indentFromTick);if(!i&&!a&&!r.visible)return{};var l=t._scale.measureLabels(b({},t._canvas)),u=t._getScaleLayoutValue(),c={min:u,max:u},d=t._getTicksCoefficients(e),h=d.inner,p=d.outer;return i&&(c.min=A(c.min,u-h*n.length),c.max=O(c.max,u+p*n.length)),a&&(c.min=A(c.min,u-h*o.length),c.max=O(c.max,u+p*o.length)),r.visible&&t._correctScaleIndents(c,s,l),c},_renderContent:function(){var e=this,t=e._prepareScaleSettings();e._rangeContainer.render(B(e._getOption("rangeContainer"),{vertical:e._area.vertical})),e._renderScale(t);var n=S([e._rangeContainer].concat(e._prepareValueIndicators()),function(e){return e&&e.enabled?e:null});e._applyMainLayout(n,e._measureScale(t)),P(n,function(t,n){n.resize(e._getElementLayout(n.getOffset()))}),e._shiftScale(e._getElementLayout(0),t),e._beginValueChanging(),e._updateActiveElements(),e._endValueChanging()},_prepareScaleSettings:function(){var e=this,t=e.option("scale"),n=b(!0,{},e._themeManager.theme("scale"),t);return n.label.indentFromAxis=0,n.isHorizontal=!e._area.vertical,n.forceUserTickInterval|=x(t)&&x(t.tickInterval)&&!x(t.scaleDivisionFactor),n.axisDivisionFactor=n.scaleDivisionFactor||e._gridSpacingFactor,n.minorAxisDivisionFactor=n.minorScaleDivisionFactor||L,n.numberMultipliers=H,n.tickOrientation=e._getTicksOrientation(n),n.label.useRangeColors&&(n.label.customizeColor=function(){return e._rangeContainer.getColorForValue(this.value)}),n},_renderScale:function(e){var t=this,n=t._translator.getDomain(),i=n[0],o=n[1],a=t._translator.getCodomain(),r=i>o,s=A(i,o),l=O(i,o);e.min=s,e.max=l,e.startAngle=M-a[0],e.endAngle=M-a[1],e.skipViewportExtending=!0,t._scale.updateOptions(e),t._scale.setBusinessRange({axisType:"continuous",dataType:"numeric",min:s,max:l,invert:r}),t._updateScaleTickIndent(e),t._scaleGroup.linkAppend(),t._scale.draw(b({},t._canvas))},_updateIndicatorSettings:function(e){var t=this;e.currentValue=e.baseValue=D(t._translator.translate(e.baseValue))?E(e.baseValue):t._baseValue,e.vertical=t._area.vertical,e.text&&!e.text.format&&(e.text.format=t._defaultFormatOptions)},_prepareIndicatorSettings:function(e,t){var n=this,i=n._themeManager.theme("valueIndicators"),o=I(e.type||n._themeManager.theme(t)),a=B(!0,{},i._default,i[o],e);return a.type=o,a.animation=n._animationSettings,a.containerBackgroundColor=n._containerBackgroundColor,n._updateIndicatorSettings(a),a},_cleanValueIndicators:function(){this._valueIndicator&&this._valueIndicator.clean(),this._subvalueIndicatorsSet&&this._subvalueIndicatorsSet.clean()},_prepareValueIndicators:function(){var e=this;return e._prepareValueIndicator(),null!==e.__subvalues&&e._prepareSubvalueIndicators(),[e._valueIndicator,e._subvalueIndicatorsSet]},_updateActiveElements:function(){this._updateValueIndicator(),this._updateSubvalueIndicators()},_prepareValueIndicator:function(){var e=this,t=e._valueIndicator,n=e._prepareIndicatorSettings(e.option("valueIndicator")||{},"valueIndicatorType");t&&t.type!==n.type&&(t.dispose(),t=null),t||(t=e._valueIndicator=e._createIndicator(n.type,e._renderer.root,"dxg-value-indicator","value-indicator")),t.render(n)},_createSubvalueIndicatorsSet:function(){var e=this,t=e._renderer.root;return new _({createIndicator:function(n,i){return e._createIndicator(n,t,"dxg-subvalue-indicator","subvalue-indicator",i)},createPalette:function(t){return e._themeManager.createPalette(t)}})},_prepareSubvalueIndicators:function(){var e=this,t=e._subvalueIndicatorsSet,n=e._prepareIndicatorSettings(e.option("subvalueIndicator")||{},"subvalueIndicatorType");t||(t=e._subvalueIndicatorsSet=e._createSubvalueIndicatorsSet());var i=n.type!==t.type;t.type=n.type;var o=e._createIndicator(n.type,e._renderer.root);o&&(o.dispose(),t.render(n,i))},_setupValue:function(e){this.__value=i(e,this.__value)},_setupSubvalues:function(e){var t,n,a,r=void 0===e?this.__subvalues:o(e);if(null!==r){for(t=0,n=r.length,a=[];te){for(t=e,n=r;t2?Object.keys(o).map(function(e){return["format","standalone"].map(function(n){return t.getMonthNames(o[e],n).join("|")}).join("|")}).join("|"):"0?[1-9]|1[012]"},r={y:function(e){return"[0-9]+"},M:a,L:a,Q:function(e,t){return e>2?t.getQuarterNames(o[e],"format").join("|"):"0?[1-4]"},E:function(e,t){return"\\D*"},a:function(e,t){return t.getPeriodNames(o[e<3?3:e],"format").join("|")},d:function(e){return"0?[1-9]|[12][0-9]|3[01]"},H:function(e){return"0?[0-9]|1[0-9]|2[0-3]"},h:function(e){return"0?[1-9]|1[012]"},m:function(e){return"0?[0-9]|[1-5][0-9]"},s:function(e){return"0?[0-9]|[1-5][0-9]"},S:function(e){return"[0-9]{1,"+e+"}"}},s=Number,l=function(e,t){return e.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())},u=function(e,t,n){return t>2?["format","standalone"].map(function(t){return Object.keys(o).map(function(i){var a=n.getMonthNames(o[i],t);return l(a,e)})}).reduce(function(e,t){return e.concat(t)}).filter(function(e){return e>=0})[0]:s(e)-1},c={y:function(e,t){var n=s(e);return 2===t?n<30?2e3+n:1900+n:n},M:u,L:u,Q:function(e,t,n){return t>2?n.getQuarterNames(o[t],"format").indexOf(e):s(e)-1},E:function(e,t,n){var i=n.getDayNames(o[t<3?3:t],"format");return l(i,e)},a:function(e,t,n){var i=n.getPeriodNames(o[t<3?3:t],"format");return l(i,e)},d:s,H:s,h:s,m:s,s:s,S:function(e,t){for(t=Math.max(t,3),e=e.slice(0,3);t<3;)e+="0",t++;return s(e)}},d=["y","M","d","h","m","s","S"],h={y:"setFullYear",M:"setMonth",L:"setMonth",a:function(e,t,n){var i=e.getHours(),o=n.h;void 0!==o&&o!==i&&i--,t||12!==i?t&&12!==i&&(i+=12):i=0,e.setHours(i)},d:"setDate",H:"setHours",h:"setHours",m:"setMinutes",s:"setSeconds",S:"setMilliseconds"},p=function(e,t){var n=e[t],i=0;do t++,i++;while(e[t]===n);return i},f=function(e,t){for(var n="",i=0;is)){var c=r.indexOf(e);if(c>=0){var h=n.patterns[c],p=i[c+1];m(a,h,p,t,u)}else v(a,e,o)}}),a}return null}};t.getParser=w,t.getRegExpInfo=g,t.getPatternSetters=_},function(e,t,n){var i=n(13).inArray,o=function(){var e=[];return{add:function(t){var n=i(t,e);n===-1&&e.push(t)},remove:function(t){var n=i(t,e);n!==-1&&e.splice(n,1)},fire:function(){var t=e.pop(),n=!!t;return n&&t(),n},hasCallback:function(){return e.length>0}}}();e.exports=function(){return o.fire()},e.exports.hideCallback=o},function(e,t,n){var i=n(171),o=i.data=n(236);o.odata=n(490),e.exports=o},function(e,t,n){var i=n(37),o=n(10),a=n(7),r=a.getWindow(),s=n(1),l=n(83),u=n(173),c=n(217),d=function(e,t){return new h(e,t)},h=function(e,t){return e?"string"==typeof e?"body"===e?(this[0]=t?t.body:o.getBody(),this.length=1,this):(t=t||o.getDocument(),"<"===e[0]?(this[0]=o.createElement(e.slice(1,-1),t),this.length=1,this):([].push.apply(this,o.querySelectorAll(t,e)),this)):o.isNode(e)||s.isWindow(e)?(this[0]=e,this.length=1,this):Array.isArray(e)?([].push.apply(this,e),this):d(e.toArray?e.toArray():[e]):(this.length=0,this)};d.fn={dxRenderer:!0},h.prototype=d.fn;var p=function(e,t){for(var n=0;n1&&arguments.length>1)return p.call(this,"attr",arguments);if(!this[0])return s.isObject(e)||void 0!==t?this:void 0;if(!this[0].getAttribute)return this.prop(e,t);if("string"==typeof e&&1===arguments.length){var n=this[0].getAttribute(e);return null==n?void 0:n}if(s.isPlainObject(e))for(var i in e)this.attr(i,e[i]);else f(this[0],e,t);return this},h.prototype.removeAttr=function(e){return this[0]&&o.removeAttribute(this[0],e),this},h.prototype.prop=function(e,t){if(!this[0])return this;if("string"==typeof e&&1===arguments.length)return this[0][e];if(s.isPlainObject(e))for(var n in e)this.prop(n,e[n]);else o.setProperty(this[0],e,t);return this},h.prototype.addClass=function(e){return this.toggleClass(e,!0)},h.prototype.removeClass=function(e){return this.toggleClass(e,!1)},h.prototype.hasClass=function(e){if(!this[0]||void 0===this[0].className)return!1;for(var t=e.split(" "),n=0;n=0)return!0}return!1},h.prototype.toggleClass=function(e,t){if(this.length>1)return p.call(this,"toggleClass",arguments);if(!this[0]||!e)return this;t=void 0===t?!this.hasClass(e):t;for(var n=e.split(" "),i=0;i=0?"Width":"Height",n=t.toLowerCase(),i=0===e.indexOf("outer"),a=0===e.indexOf("inner");h.prototype[e]=function(l){if(this.length>1&&arguments.length>0)return p.call(this,e,arguments);var c=this[0];if(c){if(s.isWindow(c))return i?c["inner"+t]:o.getDocumentElement()["client"+t];if(o.isDocument(c)){var d=o.getDocumentElement(),h=o.getBody();return Math.max(h["scroll"+t],h["offset"+t],d["scroll"+t],d["offset"+t],d["client"+t])}if(0===arguments.length||"boolean"==typeof l){var f={paddings:a||i,borders:i,margins:l};return u.getSize(c,n,f)}if(void 0===l||null===l)return this;if(s.isNumeric(l)){var g=r.getComputedStyle(c),_=u.getElementBoxParams(n,g),m="border-box"===g.boxSizing;l=Number(l),i?l-=m?0:_.border+_.padding:a?l+=m?_.border:-_.padding:m&&(l+=_.border+_.padding)}return l+=s.isNumeric(l)?"px":"",o.setStyle(c,n,l),this}}}),h.prototype.html=function(e){return arguments.length?(this.empty(),"string"==typeof e&&!c.isTablePart(e)||"number"==typeof e?(this[0].innerHTML=e,this):this.append(c.parseHTML(e))):this[0].innerHTML};var g=function(e,t){if(this[0]&&e){"string"==typeof e?e=c.parseHTML(e):e.nodeType?e=[e]:s.isNumeric(e)&&(e=[o.createTextNode(e)]);for(var n=0;n1){for(var t=0;t1){for(var t=0;t1){for(var t=this.length-1;t>=0;t--)d(this[t]).prependTo(e);return this}return e=d(e),e[0]&&o.insertElement(e[0],this[0],e[0].firstChild),this},h.prototype.appendTo=function(e){return this.length>1?p.call(this,"appendTo",arguments):(o.insertElement(d(e)[0],this[0]),this)},h.prototype.insertBefore=function(e){return e&&e[0]&&o.insertElement(e[0].parentNode,this[0],e[0]),this},h.prototype.insertAfter=function(e){return e&&e[0]&&o.insertElement(e[0].parentNode,this[0],e[0].nextSibling),this},h.prototype.before=function(e){return this[0]&&o.insertElement(this[0].parentNode,e[0],this[0]),this},h.prototype.after=function(e){return this[0]&&o.insertElement(this[0].parentNode,e[0],this[0].nextSibling),this},h.prototype.wrap=function(e){if(this[0]){var t=d(e);t.insertBefore(this),t.append(this)}return this},h.prototype.wrapInner=function(e){var t=this.contents();return t.length?t.wrap(e):this.append(e),this},h.prototype.replaceWith=function(e){if(e&&e[0])return e.is(this)?this:(e.insertBefore(this),this.remove(),e)},h.prototype.remove=function(){return this.length>1?p.call(this,"remove",arguments):(i.cleanDataRecursive(this[0],!0),o.removeElement(this[0]),this)},h.prototype.detach=function(){return this.length>1?p.call(this,"detach",arguments):(o.removeElement(this[0]),this)},h.prototype.empty=function(){return this.length>1?p.call(this,"empty",arguments):(i.cleanDataRecursive(this[0]),o.setText(this[0],""),this)},h.prototype.clone=function(){for(var e=[],t=0;t\x20\t\r\n\f]+)/i,r={"default":{tagsCount:0,startTags:"",endTags:""},thead:{tagsCount:1,startTags:"
",endTags:"
"},td:{tagsCount:3,startTags:"",endTags:"
"},col:{tagsCount:2,startTags:"",endTags:"
"},tr:{tagsCount:2,startTags:"",endTags:"
"}};r.tbody=r.colgroup=r.caption=r.tfoot=r.thead,r.th=r.td;var s=function(e){if("string"!=typeof e)return null;var t=o.createDocumentFragment(),n=t.appendChild(o.createElement("div")),s=a.exec(e),l=s&&s[1].toLowerCase(),u=r[l]||r.default;n.innerHTML=u.startTags+e+u.endTags;for(var c=0;c0?o.apply(void 0,arguments):e;return i.toFixed(n)}Object.defineProperty(t,"__esModule",{value:!0}),t.toFixed=void 0;var r=n(28),s=10;t.toFixed=a},function(e,t,n){function i(e,t){for(;e.length0?"-":"+",r=Math.abs(o),s=Math.floor(r/60),l=r%60,u=i(s.toString(),2),c=i(l.toString(),2);return a+u+(t>=3?":":"")+(t>1||l?c:"")},X:function(e,t,n){return n||!e.getTimezoneOffset()?"Z":a.x(e,t,n)},Z:function(e,t,n){return a.X(e,t>=5?3:2,n)}},r=function(e,t){return function(n){var i,o,r,s,l=0,u="'",c=!1,d="";if(!n)return null;if(!e)return n;var h="Z"===e[e.length-1]||"'Z'"===e.slice(-3);for(i=0;i0&&void 0!==arguments[0]?arguments[0]:{},t=e.backgroundColor,n=e.fillPatternType,i=e.fillPatternColor;return!(0,o.isDefined)(t)||(0,o.isDefined)(n)&&(0,o.isDefined)(i)?(0,o.isDefined)(n)&&(0,o.isDefined)(i)?{patternFill:{patternType:n,foregroundColor:{rgb:i},backgroundColor:{rgb:t}}}:void 0:{patternFill:{patternType:"solid",foregroundColor:{rgb:t}}}},copySimpleFormat:function(e,t){void 0!==e.backgroundColor&&(t.backgroundColor=e.backgroundColor),void 0!==e.fillPatternType&&(t.fillPatternType=e.fillPatternType),void 0!==e.fillPatternColor&&(t.fillPatternColor=e.fillPatternColor)},copy:function(e){var t=null;return(0,o.isDefined)(e)&&(t={},void 0!==e.patternFill&&(t.patternFill=l.default.copy(e.patternFill))),t},areEqual:function(e,t){return u.isEmpty(e)&&u.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&l.default.areEqual(e.patternFill,t.patternFill)},isEmpty:function(e){return!(0,o.isDefined)(e)||l.default.isEmpty(e.patternFill)},toXml:function(e){return r.default.toXml("fill",{},l.default.toXml(e.patternFill))}};t.default=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(75),r=i(a),s={_tryConvertColor:function(e){if("string"!=typeof e)return e;var t;if(e.length>0&&"#"===e[0]){var n=e.substr(1,e.length);t=6===n.length?"FF"+n:8===n.length?n[6]+n[7]+n.substr(0,6):n}else t=e;return t},tryCreateTag:function(e){var t=null;return(0,o.isDefined)(e)&&(t="string"==typeof e?{rgb:this._tryConvertColor(e)}:{rgb:this._tryConvertColor(e.rgb),theme:e.theme},s.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,o.isDefined)(e)&&("string"==typeof e?t=e:(t={},void 0!==e.rgb&&(t.rgb=e.rgb),void 0!==e.theme&&(t.theme=e.theme))),t},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.rgb)&&!(0,o.isDefined)(e.theme)},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.rgb===t.rgb&&e.theme===t.theme},toXml:function(e,t){return r.default.toXml(e,{rgb:t.rgb,theme:t.theme})}};t.default=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(75),r=i(a),s=n(222),l=i(s),u={tryCreateTag:function(e){var t=null;return(0,o.isDefined)(e)&&(t={size:e.size,name:e.name,family:e.family,scheme:e.scheme,bold:e.bold,italic:e.italic,underline:e.underline,color:l.default.tryCreateTag(e.color)},u.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,o.isDefined)(e)&&(t={},void 0!==e.size&&(t.size=e.size),void 0!==e.name&&(t.name=e.name),void 0!==e.family&&(t.family=e.family),void 0!==e.scheme&&(t.scheme=e.scheme),void 0!==e.bold&&(t.bold=e.bold),void 0!==e.italic&&(t.italic=e.italic),void 0!==e.underline&&(t.underline=e.underline),void 0!==e.color&&(t.color=l.default.copy(e.color))),t},areEqual:function(e,t){return u.isEmpty(e)&&u.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.size===t.size&&e.name===t.name&&e.family===t.family&&e.scheme===t.scheme&&(e.bold===t.bold||!e.bold==!t.bold)&&(e.italic===t.italic||!e.italic==!t.italic)&&e.underline===t.underline&&l.default.areEqual(e.color,t.color)},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.size)&&!(0,o.isDefined)(e.name)&&!(0,o.isDefined)(e.family)&&!(0,o.isDefined)(e.scheme)&&(!(0,o.isDefined)(e.bold)||!e.bold)&&(!(0,o.isDefined)(e.italic)||!e.italic)&&!(0,o.isDefined)(e.underline)&&l.default.isEmpty(e.color)},toXml:function(e){var t=[(0,o.isDefined)(e.bold)&&e.bold?r.default.toXml("b",{}):"",(0,o.isDefined)(e.size)?r.default.toXml("sz",{val:e.size}):"",(0,o.isDefined)(e.color)?l.default.toXml("color",e.color):"",(0,o.isDefined)(e.name)?r.default.toXml("name",{val:e.name}):"",(0,o.isDefined)(e.family)?r.default.toXml("family",{val:e.family}):"",(0,o.isDefined)(e.scheme)?r.default.toXml("scheme",{val:e.scheme}):"",(0,o.isDefined)(e.italic)&&e.italic?r.default.toXml("i",{}):"",(0,o.isDefined)(e.underline)?r.default.toXml("u",{val:e.underline}):""].join("");return r.default.toXml("font",{},t)}};t.default=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){var i=(0,F.default)("")[0];return i.width=e+2*n,i.height=t+2*n,i.hidden=!0,i}function a(e,t){var n=e.toDataURL(t,ce),i=J.atob(n.substring(("data:"+t+";base64,").length));return i}function r(e,t,n,i,o,a,r,s){var l=(e+n)/2,u=(t+i)/2,c=re(t-i,e-n),d=a?1:-1;c+=90*(te/180)*(r?1:-1);var h=oe(ae(n-e,2)+ae(i-t,2))/2,p=oe(ie(ae(o,2)-ae(h,2))),f=l+d*(p*se(c)),g=u+d*(p*le(c)),_=re(t-g,e-f),m=re(i-g,n-f);s.arc(f,g,o,_,m,!r)}function s(e,t){var n,i=ge(e.attributes||{}),o=(0,G.extend)({},i,{text:e.textContent.replace(/\s+/g," "),textAlign:"middle"===i["text-anchor"]?"center":i["text-anchor"]}),a=i.transform;return a&&(n=a.match(/translate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/),n&&(n=n[0].match(/-*\d+([.]\d+)*/g),o.translateX=ue(n[0]),o.translateY=n[1]?ue(n[1]):0),n=a.match(/rotate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*,*\s*-*\d+([.]\d+)*)*/),n&&(n=n[0].match(/-*\d+([.]\d+)*/g),o.rotationAngle=ue(n[0]),o.rotationX=n[1]&&ue(n[1]),o.rotationY=n[2]&&ue(n[2])),n=a.match(/scale\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/),n&&(n=n[0].match(/-*\d+([.]\d+)*/g),o.scaleX=ue(n[0]),n.length>1?o.scaleY=ue(n[1]):o.scaleY=o.scaleX)),d(e,o,t),o}function l(e,t){var n=t.x,i=t.y,o=t.width,a=t.height,r=t.rx;r?(r=ne(r,o/2,a/2),e.save(),e.translate(n,i),e.moveTo(o/2,0),e.arcTo(o,0,o,a,r),e.arcTo(o,a,0,a,r),e.arcTo(0,a,0,0,r),e.arcTo(0,0,r,0,r),e.lineTo(o/2,0),e.restore()):e.rect(n,i,o,a)}function u(e,t,n){var i=new Q.Deferred,o=new J.Image;return o.onload=function(){e.save(),e.globalAlpha=t.globalAlpha,w(e,t),C(e,t,n),e.drawImage(o,t.x,t.y,t.width,t.height),e.restore(),i.resolve()},o.onerror=function(){i.resolve()},o.setAttribute("crossOrigin","anonymous"),o.src=t.href||t["xlink:href"],i}function c(e,t){var n,i,o=t.replace(/,/g," ").split(/([A-Z])/i).filter(function(e){return""!==e.trim()}),a=0;do{var s=(o[a+1]||"").trim().split(" ");switch(o[a]){case"M":e.moveTo(ue(s[0]),ue(s[1])),a+=2;break;case"L":for(var l=0;l2&&void 0!==arguments[2]?arguments[2]:new Q.Deferred;if(0===e.length)return i.resolve();var o=t(e[0]);return(0,z.isPromise)(o)?o.then(n):n(),i}function D(e,t,n,i){return T(e,function(e){switch(e.tagName&&e.tagName.toLowerCase()){case"g":case"svg":var o=(0,G.extend)({},n,s(e,i.rootAppended));t.save(),w(t,o),C(t,o,i);var a=function(){t.restore()},r=D(e.childNodes,t,o,i);return(0,z.isPromise)(r)?r.then(a):a(),r;case"defs":return D(e.childNodes,t,{},i);case"clippath":i.clipPaths[e.attributes.id.textContent]=e.childNodes[0];break;case"pattern":i.patterns[e.attributes.id.textContent]=e;break;case"filter":i.filters[e.id]=I(e);break;case"lineargradient":i.gradients[e.attributes.id.textContent]=S(e);break;default:return y(e,t,n,i)}})}function E(e,t){var n=t["stroke-dasharray"]&&t["stroke-dasharray"].match(/(\d+)/g);n&&n.length&&(n=(0,W.map)(n,function(e){return ue(e)}),e.setLineDash(n))}function A(e,t,n){var i=t.stroke;i&&"none"!==i&&0!==t["stroke-width"]&&(E(e,t),e.lineJoin=t["stroke-linejoin"],e.lineWidth=t["stroke-width"],e.globalAlpha=t.strokeOpacity,e.strokeStyle=i,n?e.strokeText(t.text,t.x,t.y):e.stroke(),e.globalAlpha=1)}function O(e,t,n){var i=s(t,n.rootAppended),a=o(i.width,i.height,0),r=a.getContext("2d");return D(t.childNodes,r,i,n),e.createPattern(a,"repeat")}function B(e,t,n){var i=t.fill;if(i&&"none"!==i){if(i.search(/url/)===-1)e.fillStyle=i;else{var o=n.patterns[h(i)];if(!o)return;e.fillStyle=O(e,o,n)}e.globalAlpha=t.fillOpacity,e.fill(),e.globalAlpha=1}}function P(e,t,n,i,o){e.fillStyle=i||"#ffffff",e.fillRect(-o,-o,t+2*o,n+2*o)}function R(){var e=q.default.createElement("div");return e.style.left="-9999px",e.style.position="absolute",e}function M(e,t,n,i,a){var r,s=o(t,n,a),l=s.getContext("2d"),u=$.default.getSvgElement(e),c=q.default.isElementNode(e);return l.translate(a,a),q.default.getBody().appendChild(s),c||(r=R(),r.appendChild(u),q.default.getBody().appendChild(r)),u.attributes.direction&&(s.dir=u.attributes.direction.textContent),P(l,t,n,i,a),D(u.childNodes,l,{},{clipPaths:{},patterns:{},filters:{},gradients:{},rootAppended:c&&U.default.contains(q.default.getBody(),e)}).then(function(){return r&&q.default.getBody().removeChild(r),q.default.getBody().removeChild(s),s})}var V=n(2),F=i(V),L=n(90),H=i(L),z=n(1),N=n(186),$=i(N),W=n(3),G=n(0),j=n(10),q=i(j),K=n(12),U=i(K),Y=n(7),X=i(Y),Z=n(33),Q=n(6),J=X.default.getWindow(),ee=Math,te=ee.PI,ne=ee.min,ie=ee.abs,oe=ee.sqrt,ae=ee.pow,re=ee.atan2,se=ee.cos,le=ee.sin,ue=Number,ce=1,de=.05,he="10px",pe="sans-serif",fe="#000",ge=function(e){var t,n={};return(0,W.each)(e,function(e,i){t=i.textContent,isFinite(t)&&(t=ue(t)),n[i.name.toLowerCase()]=t}),n};t.imageCreator={getImageData:function(e,t){var n="image/"+t.format,i=t.width,o=t.height,r=t.backgroundColor;(0,z.isFunction)(t.__parseAttributesFn)&&(ge=t.__parseAttributesFn);var s=new Q.Deferred;return M(e,i,o,r,t.margin).then(function(e){s.resolve(a(e,n))}),s},getData:function(e,n){var i=this,o=new Q.Deferred;return t.imageCreator.getImageData(e,n).then(function(e){var t="image/"+n.format,a=(0,z.isFunction)(J.Blob)&&!n.forceProxy?i._getBlob(e,t):i._getBase64(e);o.resolve(a)}),o},_getBlob:function(e,t){for(var n=new Uint8Array(e.length),i=0;i-1&&o.splice(t,1)},u=function(e){o[a(e)]=e};r(e.dxpointerdown,s),r(e.dxpointermove,u),r(e.dxpointerup,l),r(e.dxpointercancel,l),this.pointers=function(){return o},this.reset=function(){o=[]}};e.exports=s},function(e,t,n){var i,o=n(0).extend,a=n(152),r=n(228),s={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:"",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},l=function(e){return e.pointerId=1,{pointers:i.pointers(),pointerId:1}},u=!1,c=function(){u||(i=new r(s,function(){return!0}),u=!0)},d=a.inherit({ctor:function(){this.callBase.apply(this,arguments),c()},_fireEvent:function(e){return this.callBase(o(l(e.originalEvent),e))}});d.map=s,d.normalize=l,d.activate=c,d.resetObserver=function(){i.reset()},e.exports=d},function(e,t,n){var i=n(54),o=n(58).compare,a=n(125),r=n(79)();if(r&&o(i.fn.jquery,[1,10])<0)throw a.Error("E0012");n(450),n(451),n(452),n(453),n(454),n(455),n(456),n(457),n(458),n(459)},function(e,t,n){var i=n(25);e.exports=new i},function(e,t){e.exports=window.angular},function(e,t,n){var i=n(21),o=function(){var e={},t=function(t){return e[t]||0};return{obtain:function(n){e[n]=t(n)+1},release:function(n){var o=t(n);if(o<1)throw i.Error("E0014");1===o?delete e[n]:e[n]=o-1},locked:function(e){return t(e)>0}}};e.exports=o},function(e,t,n){var i=n(42),o=n(4),a=n(1),r=o.getKeyHash,s=n(15),l=n(6).Deferred;e.exports=s.inherit({ctor:function(e){this.options=e,this._clearItemKeys()},_clearItemKeys:function(){this._setOption("addedItemKeys",[]),this._setOption("removedItemKeys",[]),this._setOption("removedItems",[]),this._setOption("addedItems",[])},validate:o.noop,_setOption:function(e,t){this.options[e]=t},onSelectionChanged:function e(){var t=this.options.addedItemKeys,n=this.options.removedItemKeys,i=this.options.addedItems,a=this.options.removedItems,r=this.options.selectedItems,s=this.options.selectedItemKeys,e=this.options.onSelectionChanged||o.noop;this._clearItemKeys(),e({selectedItems:r,selectedItemKeys:s,addedItemKeys:t,removedItemKeys:n,addedItems:i,removedItems:a})},equalKeys:function(e,t){return this.options.equalByReference&&a.isObject(e)&&a.isObject(t)?e===t:o.equalByValue(e,t)},_clearSelection:function(e,t,n,i){return e=e||[],e=Array.isArray(e)?e:[e],this.validate(),this.selectedItemKeys(e,t,n,i)},_loadFilteredData:function(e,t,n,o){var r=encodeURI(JSON.stringify(e)).length,s=this.options.maxFilterLengthInRequest&&r>this.options.maxFilterLengthInRequest,u=new l,c={filter:s?void 0:e,select:s?this.options.dataFields():n||this.options.dataFields()};return e&&0===e.length?u.resolve([]):this.options.load(c).done(function(n){var r=a.isPlainObject(n)?n.data:n;t&&!o?r=r.filter(t):s&&(r=i(r).filter(e).toArray()),u.resolve(r)}).fail(u.reject.bind(u)),u},updateSelectedItemKeyHash:function(e){for(var t=0;t=this.options.totalCount()||void 0:this._isAnyItemSelected(e)},_getVisibleSelectAllState:function(){for(var e=this.options.plainItems(),t=!1,n=!1,i=0;i=0){t=e.replace(n,l[n]);break}return t}}},function(e,t,n){function i(e,t){var n={};return n[e]=t,n}function o(e,t){var n={};for(var i in e)n[i]=e[i];for(var o in t)o in n?n[o]!==t[o]&&u.log("W4001",o):n[o]=t[o];return n}var a=n(1).isDefined,r=n(29),s=n(100),l=n(237),u=n(36).errors,c=n(42),d=n(91),h=n(239),p=n(6),f=p.when,g=p.Deferred;n(155);var _="5d46402c-7899-4ea9-bd81-8b73c47c7683",m=d.inherit({ctor:function(e){this.callBase(e), this._extractServiceOptions(e);var t=this.key(),n=e.fieldTypes,a=e.keyType;if(a){var r="string"==typeof a;t||(t=r?_:Object.keys(a),this._legacyAnonymousKey=t),r&&(a=i(t,a)),n=o(n,a)}this._fieldTypes=n||{},2===this.version()?this._updateMethod="MERGE":this._updateMethod="PATCH"},_customLoadOptions:function(){return["expand","customQueryParams"]},_byKeyImpl:function(e,t){var n={};return t&&(n.$expand=s.generateExpand(this._version,t.expand,t.select)||void 0,n.$select=s.generateSelect(this._version,t.select)||void 0),this._sendRequest(this._byKeyUrl(e),"GET",n)},createQuery:function(e){var t;e=e||{};var n={adapter:"odata",beforeSend:this._beforeSend,errorHandler:this._errorHandler,jsonp:this._jsonp,version:this._version,withCredentials:this._withCredentials,expand:e.expand,requireTotalCount:e.requireTotalCount,deserializeDates:this._deserializeDates,fieldTypes:this._fieldTypes};if(t=a(e.urlOverride)?e.urlOverride:this._url,a(this._filterToLower)&&(n.filterToLower=this._filterToLower),e.customQueryParams){var i=h.escapeServiceOperationParams(e.customQueryParams,this.version());4===this.version()?t=h.formatFunctionInvocationUrl(t,i):n.params=i}return c(t,n)},_insertImpl:function(e){this._requireKey();var t=this,n=new g;return f(this._sendRequest(this._url,"POST",null,e)).done(function(i){n.resolve(r().useLegacyStoreResult?e:i||e,t.keyOf(i))}).fail(n.reject),n.promise()},_updateImpl:function(e,t){var n=new g;return f(this._sendRequest(this._byKeyUrl(e),this._updateMethod,null,t)).done(function(i){r().useLegacyStoreResult?n.resolve(e,t):n.resolve(i||t,e)}).fail(n.reject),n.promise()},_removeImpl:function(e){var t=new g;return f(this._sendRequest(this._byKeyUrl(e),"DELETE")).done(function(){t.resolve(e)}).fail(t.reject),t.promise()},_convertKey:function(e){var t=e,n=this._fieldTypes,i=this.key()||this._legacyAnonymousKey;if(Array.isArray(i)){t={};for(var o=0;o").addClass(O).appendTo((0,x.value)()),l="message"in e,c="messageHtml"in e;l&&S.default.log("W1013");var h=String(c?e.messageHtml:e.message),y=(0,a.default)("
").addClass(M).html(h),w=[],C=e.toolbarItems;C?S.default.log("W0001","DevExpress.ui.dialog","toolbarItems","16.2","Use the 'buttons' option instead"):C=e.buttons,(0,m.each)(C||[A],function(){var e=new u.default(this.onClick,{context:k});w.push({toolbar:"bottom",location:d.default.current().android?"after":"center",widget:"dxButton",options:(0,v.extend)({},this,{onClick:function(){var t=e.execute.apply(e,arguments);i(t)}})})});var k=new T.default(s,(0,v.extend)({title:e.title||t.title,showTitle:(0,D.ensureDefined)(e.showTitle,!0),dragEnabled:(0,D.ensureDefined)(e.dragEnabled,!0),height:"auto",width:function(){var t=(0,a.default)(E).height()>(0,a.default)(E).width(),n=(t?"p":"l")+"Width",i=Object.prototype.hasOwnProperty.call(e,n)?e[n]:e.width;return(0,_.isFunction)(i)?i():i},showCloseButton:e.showCloseButton||!1,ignoreChildEvents:!1,onContentReady:function(e){e.component.$content().addClass(R).append(y)},onShowing:function(e){e.component.bottomToolbar().addClass(V).find(".".concat(L)).addClass(F),(0,f.resetActiveElement)()},onShown:function(e){var t=e.component.bottomToolbar().find(".".concat(L)).first();(0,b.trigger)(t,"focus")},onHiding:function(){o.reject()},toolbarItems:w,animation:{show:{type:"pop",duration:400},hide:{type:"pop",duration:400,to:{opacity:0,scale:0},from:{opacity:1,scale:1}}},rtlEnabled:(0,p.default)().rtlEnabled,boundaryOffset:{h:10,v:0}},e.popupOptions));return k._wrapper().addClass(B),e.position&&k.option("position",e.position),k._wrapper().addClass(P),{show:n,hide:i}},t.alert=function(e,n,i){var o=(0,_.isPlainObject)(e)?e:{title:n,messageHtml:e,showTitle:i,dragEnabled:i};return t.custom(o).show()},t.confirm=function(e,n,i){var o=(0,_.isPlainObject)(e)?e:{title:n,messageHtml:e,showTitle:i,buttons:[{text:C.default.format("Yes"),onClick:function(){return!0}},{text:C.default.format("No"),onClick:function(){return!1}}],dragEnabled:i};return t.custom(o).show()}},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(4).noop,r=n(14),s=n(9),l=n(0).extend,u=n(34),c=n(55),d=n(46),h=n(140),p=n(66),f=n(6).Deferred,g="dx-actionsheet",_="dx-actionsheet-container",m="dx-actionsheet-popup-wrapper",v="dx-actionsheet-popover-wrapper",y="dx-actionsheet-cancel",b="dx-actionsheet-item",x="dxActionSheetItemData",w="dx-actionsheet-without-title",C=c.inherit({_getDefaultOptions:function(){return l(this.callBase(),{usePopover:!1,target:null,title:"",showTitle:!0,showCancelButton:!0,cancelText:r.format("Cancel"),onCancelClick:null,visible:!1,noDataText:"",focusStateEnabled:!1,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios",tablet:!0},options:{usePopover:!0}}])},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new p(function(e,t){var n=new u(i("
"),l({onClick:t&&t.click},t));e.append(n.$element())},["disabled","icon","text","type","onClick","click"],this.option("integrationOptions.watchMethod"))},_itemContainer:function(){return this._$itemContainer},_itemClass:function(){return b},_itemDataKey:function(){return x},_toggleVisibility:a,_renderDimensions:a,_initMarkup:function(){this.callBase(),this.$element().addClass(g),this._createItemContainer()},_render:function(){this._renderPopup()},_createItemContainer:function(){this._$itemContainer=i("
").addClass(_),this._renderDisabled()},_renderDisabled:function(){this._$itemContainer.toggleClass("dx-state-disabled",this.option("disabled"))},_renderPopup:function(){this._$popup=i("
").appendTo(this.$element()),this._isPopoverMode()?this._createPopover():this._createPopup(),this._renderPopupTitle(),this._mapPopupOption("visible")},_mapPopupOption:function(e){this._popup&&this._popup.option(e,this.option(e))},_isPopoverMode:function(){return this.option("usePopover")&&this.option("target")},_renderPopupTitle:function(){this._mapPopupOption("showTitle"),this._popup&&this._popup._wrapper().toggleClass(w,!this.option("showTitle"))},_clean:function(){this._$popup&&this._$popup.remove(),this.callBase()},_overlayConfig:function(){return{onInitialized:function(e){this._popup=e.component}.bind(this),disabled:!1,showTitle:!0,title:this.option("title"),deferRendering:!o.angular,onContentReady:this._popupContentReadyAction.bind(this),onHidden:this.hide.bind(this)}},_createPopover:function(){this._createComponent(this._$popup,h,l(this._overlayConfig(),{width:this.option("width")||200,height:this.option("height")||"auto",target:this.option("target")})),this._popup._wrapper().addClass(v)},_createPopup:function(){this._createComponent(this._$popup,d,l(this._overlayConfig(),{dragEnabled:!1,width:this.option("width")||"100%",height:this.option("height")||"auto",showCloseButton:!1,position:{my:"bottom",at:"bottom",of:o},animation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom",of:o}},to:{position:{my:"bottom",at:"bottom",of:o}}},hide:{type:"slide",duration:400,from:{position:{my:"bottom",at:"bottom",of:o}},to:{position:{my:"top",at:"bottom",of:o}}}}})),this._popup._wrapper().addClass(m)},_popupContentReadyAction:function(){this._popup.$content().append(this._$itemContainer),this._attachClickEvent(),this._attachHoldEvent(),this._prepareContent(),this._renderContent(),this._renderCancelButton()},_renderCancelButton:function(){if(!this._isPopoverMode()&&(this._$cancelButton&&this._$cancelButton.remove(),this.option("showCancelButton"))){var e=this._createActionByOption("onCancelClick")||a,t=this;this._$cancelButton=i("
").addClass(y).appendTo(this._popup&&this._popup.$content()),this._createComponent(this._$cancelButton,u,{disabled:!1,text:this.option("cancelText"),onClick:function(n){var i={event:n,cancel:!1};e(i),i.cancel||t.hide()},integrationOptions:{}})}},_attachItemClickEvent:a,_itemClickHandler:function(e){this.callBase(e),i(e.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_itemHoldHandler:function(e){this.callBase(e),i(e.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_optionChanged:function(e){switch(e.name){case"width":case"height":case"visible":case"title":this._mapPopupOption(e.name);break;case"disabled":this._renderDisabled();break;case"showTitle":this._renderPopupTitle();break;case"showCancelButton":case"onCancelClick":case"cancelText":this._renderCancelButton();break;case"target":case"usePopover":case"items":this._invalidate();break;default:this.callBase(e)}},toggle:function(e){var t=this,n=new f;return t._popup.toggle(e).done(function(){t.option("visible",e),n.resolveWith(t)}),n.promise()},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)}});s("dxActionSheet",C),e.exports=C},function(e,t,n){function i(e){"@babel/helpers - typeof";return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(2),a=n(7).getWindow(),r=n(5),s=n(40),l=n(9),u=n(4),c=n(1),d=n(0).extend,h=n(13).inArray,p=n(161),f=n(101),g=n(17),_=n(8),m=n(16),v=n(42),y=n(3).each,b=n(246),x=n(14),w=n(136),C=n(6).Deferred,k=n(288).default,S=".dx-list-item",I="dxListItemData",T="dx-dropdownlist-popup-wrapper",D="dx-skip-gesture-event",E="input",A=["startswith","contains","endwith","notcontains"],O=p.inherit({_supportedKeys:function(){var e=this.callBase();return d({},e,{tab:function(t){if(this._allowSelectItemByTab()){this._saveValueChangeEvent(t);var n=o(this._list.option("focusedElement"));n.length&&this._setSelectedElement(n)}e.tab.apply(this,arguments)},space:u.noop,home:u.noop,end:u.noop})},_allowSelectItemByTab:function(){return this.option("opened")&&"instantly"===this.option("applyValueMode")},_setSelectedElement:function(e){var t=this._valueGetter(this._list._getItemData(e));this._setValue(t)},_setValue:function(e){this.option("value",e)},_getDefaultOptions:function(){return d(this.callBase(),d(b._dataExpressionDefaultOptions(),{displayValue:void 0,searchEnabled:!1,searchMode:"contains",searchTimeout:500,minSearchLength:0,searchExpr:null,valueChangeEvent:"input change keyup",selectedItem:null,noDataText:x.format("dxCollectionWidget-noDataText"),onSelectionChanged:null,onItemClick:u.noop,showDataBeforeSearch:!1,grouped:!1,groupTemplate:"group",popupPosition:{my:"left top",at:"left bottom",offset:{h:0,v:0},collision:"flip"},popupWidthExtension:0}))},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{popupPosition:{offset:{v:-6}}}},{device:{platform:"ios"},options:{popupPosition:{offset:{v:-1}}}},{device:{platform:"generic"},options:{buttonsLocation:"bottom center"}}])},_setOptionsByReference:function(){this.callBase(),d(this._optionsByReference,{value:!0,selectedItem:!0,displayValue:!0})},_init:function(){this.callBase(),this._initDataExpressions(),this._initActions(),this._setListDataSource(),this._validateSearchMode(),this._clearSelectedItem(),this._initItems()},_initItems:function(){var e=this.option().items;e&&!e.length&&this._dataSource&&(this.option().items=this._dataSource.items())},_initActions:function(){this._initContentReadyAction(),this._initSelectionChangedAction(),this._initItemClickAction()},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new w("item",this)},_saveFocusOnWidget:function(e){this._list&&this._list.initialOption("focusStateEnabled")&&this._focusInput()},_fitIntoRange:function(e,t,n){return e>n?t:e",!0).toArray();return t},_calcNextItem:function(e){var t=this._items(),n=this._fitIntoRange(this._getSelectedIndex()+e,0,t.length-1);return t[n]},_getSelectedIndex:function(){var e=this._items(),t=this.option("selectedItem"),n=-1;return y(e,function(e,i){if(this._isValueEquals(i,t))return n=e,!1}.bind(this)),n},_createPopup:function(){this.callBase(),this._updateCustomBoundaryContainer(),this._popup._wrapper().addClass(this._popupWrapperClass());var e=this._popup.$content();r.off(e,"mouseup"),r.on(e,"mouseup",this._saveFocusOnWidget.bind(this))},_updateCustomBoundaryContainer:function(){var e=this.option("dropDownOptions.container"),t=e&&o(e);if(t&&t.length&&!c.isWindow(t.get(0))){var n=[].slice.call(t.parents());n.unshift(t.get(0)),y(n,function(e,t){return t!==o("body").get(0)&&("hidden"===a.getComputedStyle(t).overflowY?(this._$customBoundaryContainer=o(t),!1):void 0)}.bind(this))}},_popupWrapperClass:function(){return T},_renderInputValue:function(){var e=this._getCurrentValue();return this._loadInputValue(e,this._setSelectedItem.bind(this)).always(this.callBase.bind(this,e))},_loadInputValue:function(e,t){return this._loadItem(e).always(t)},_getItemFromPlain:function(e,t){var n,o;return t&&"object"!==i(e)&&(t.itemByValue||(t.itemByValue={},n=this._getPlainItems(),n.forEach(function(e){t.itemByValue[this._valueGetter(e)]=e},this)),o=t.itemByValue[e]),o||(n=this._getPlainItems(),o=u.grep(n,function(t){return this._isValueEquals(this._valueGetter(t),e)}.bind(this))[0]),o},_loadItem:function(e,t){var n=this._getItemFromPlain(e,t);return void 0!==n?(new C).resolve(n).promise():this._loadValue(e)},_getPlainItems:function(e){var t=[];e=e||this.option("items")||this._dataSource.items()||[];for(var n=0;n").attr("id",this._listId).appendTo(this._popup.$content());this._list=this._createComponent(e,f,this._listConfig()),this._refreshList(),this._setAriaTargetForList(),this._list.option("_listAttributes",{role:"combobox"}),this._renderPreventBlur(this._$list)},_renderPreventBlur:function(e){var t=_.addNamespace("mousedown","dxDropDownList");r.off(e,t),r.on(e,t,function(e){e.preventDefault()}.bind(this))},_renderOpenedState:function(){this.callBase();var e=this.option("opened")||void 0;this.setAria({activedescendant:e&&this._list.getFocusedItemId(),controls:e&&this._listId})},_setDefaultAria:function(){this.setAria({haspopup:"listbox",autocomplete:"list"})},_refreshList:function(){this._list&&this._shouldRefreshDataSource()&&this._setListDataSource()},_shouldRefreshDataSource:function(){var e=!!this._list.option("dataSource");return e!==this._needPassDataSourceToList()},_isDesktopDevice:function(){return"desktop"===m.real().deviceType},_listConfig:function(){var e={selectionMode:"single",_templates:this.option("_templates"),templateProvider:this.option("templateProvider"),noDataText:this.option("noDataText"),grouped:this.option("grouped"),onContentReady:this._listContentReadyHandler.bind(this),itemTemplate:this.option("itemTemplate"),indicateLoading:!1,keyExpr:this._getCollectionKeyExpr(),displayExpr:this._displayGetterExpr(),groupTemplate:this.option("groupTemplate"),onItemClick:this._listItemClickAction.bind(this),dataSource:this._getDataSource(),_keyboardProcessor:this._childKeyboardProcessor,hoverStateEnabled:!!this._isDesktopDevice()&&this.option("hoverStateEnabled"),focusStateEnabled:!!this._isDesktopDevice()&&this.option("focusStateEnabled")};return this._canListHaveFocus()||(e.tabIndex=null,e._keyboardProcessor=this._childKeyboardProcessor),e},_canListHaveFocus:function(){return!1},_getDataSource:function(){return this._needPassDataSourceToList()?this._dataSource:null},_dataSourceOptions:function(){return{paginate:!1}},_getGroupedOption:function(){return this.option("grouped")},_dataSourceFromUrlLoadMode:function(){return"raw"},_listContentReadyHandler:function(){this._list=this._list||this._$list.dxList("instance"),this.option("deferRendering")||this._refreshSelected(),this._dimensionChanged(),this._contentReadyAction()},_setListOption:function(e,t){this._setWidgetOption("_list",arguments)},_listItemClickAction:function(e){this._listItemClickHandler(e),this._itemClickAction(e)},_listItemClickHandler:u.noop,_setListDataSource:function(){this._list&&(this._setListOption("dataSource",this._getDataSource()),this._needPassDataSourceToList()||this._setListOption("items",[]))},_needPassDataSourceToList:function(){return this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded()},_isMinSearchLengthExceeded:function(){return this._searchValue().toString().length>=this.option("minSearchLength")},_needClearFilter:function(){return!this._canKeepDataSource()&&this._needPassDataSourceToList()},_canKeepDataSource:function(){var e,t=this._isMinSearchLengthExceeded();return(null===(e=this._dataSource)||void 0===e?void 0:e.isLoaded())&&this.option("showDataBeforeSearch")&&this.option("minSearchLength")&&!t&&!this._isLastMinSearchLengthExceeded},_searchValue:function(){return this._input().val()||""},_getSearchEvent:function(){return _.addNamespace(E,this.NAME+"Search")},_getSetFocusPolicyEvent:function(){return _.addNamespace("input",this.NAME+"FocusPolicy")},_renderEvents:function(){this.callBase(),r.on(this._input(),this._getSetFocusPolicyEvent(),this._setFocusPolicy.bind(this)),this._shouldRenderSearchEvent()&&r.on(this._input(),this._getSearchEvent(),this._searchHandler.bind(this))},_shouldRenderSearchEvent:function(){return this.option("searchEnabled")},_refreshEvents:function(){r.off(this._input(),this._getSearchEvent()),r.off(this._input(),this._getSetFocusPolicyEvent()),this.callBase()},_searchHandler:function(){if(!this._isMinSearchLengthExceeded())return void this._searchCanceled();var e=this.option("searchTimeout");e?(this._clearSearchTimer(),this._searchTimer=setTimeout(this._searchDataSource.bind(this),e)):this._searchDataSource()},_searchCanceled:function(){this._clearSearchTimer(),this._needClearFilter()&&this._filterDataSource(null),this._refreshList()},_searchDataSource:function(){this._filterDataSource(this._searchValue())},_filterDataSource:function(e){this._clearSearchTimer();var t=this._dataSource;t&&(t.searchExpr(this.option("searchExpr")||this._displayGetterExpr()),t.searchOperation(this.option("searchMode")),t.searchValue(e),t.load().done(this._dataSourceFiltered.bind(this,e)))},_clearFilter:function(){var e=this._dataSource;e&&e.searchValue()&&e.searchValue(null)},_dataSourceFiltered:function(){this._isLastMinSearchLengthExceeded=this._isMinSearchLengthExceeded(),this._refreshList(),this._refreshPopupVisibility()},_shouldOpenPopup:function(){return this._hasItemsToShow()},_refreshPopupVisibility:function(){if(!this.option("readOnly")&&this._searchValue()){var e=this._shouldOpenPopup();e&&!this._isFocused()||(this.option("opened",e),e&&this._dimensionChanged())}},_dataSourceChangedHandler:function(e){0===this._dataSource.pageIndex()?this.option().items=e:this.option().items=this.option().items.concat(e)},_hasItemsToShow:function(){var e=this._dataSource&&this._dataSource.items()||[],t=e.length,n=this._needPassDataSourceToList();return!(!n||!t)},_clearSearchTimer:function(){clearTimeout(this._searchTimer),delete this._searchTimer},_popupShowingHandler:function(){this._dimensionChanged()},_dimensionChanged:function(){this._popup&&this._updatePopupDimensions()},_updatePopupDimensions:function(){this._updatePopupWidth(),this._updatePopupHeight()},_updatePopupWidth:function(){this._setPopupOption("width",this.$element().outerWidth()+this.option("popupWidthExtension"))},_needPopupRepaint:function(){if(!this._dataSource)return!1;var e=this._dataSource.pageIndex(),t=c.isDefined(this._pageIndex)&&e<=this._pageIndex;return this._pageIndex=e,t},_updatePopupHeight:function(){this._needPopupRepaint()&&this._popup.repaint(),this._list&&this._list.updateDimensions()},_getMaxHeight:function(){var e=this.$element(),t=this._$customBoundaryContainer,n=e.offset().top-(t?t.offset().top:0),i=o(a).outerHeight(),r=t?Math.min(t.outerHeight(),i):i,s=Math.max(n,r-n-e.outerHeight());return Math.min(.5*r,s)},_clean:function(){this._list&&delete this._list,delete this._isLastMinSearchLengthExceeded,this.callBase()},_dispose:function(){this._clearSearchTimer(),this.callBase()},_setCollectionWidgetOption:function(){this._setListOption.apply(this,arguments)},_setSubmitValue:function(){var e=this.option("value"),t=this._shouldUseDisplayValue(e)?this._displayGetter(e):e;this._getSubmitElement().val(t)},_shouldUseDisplayValue:function(e){return"this"===this.option("valueExpr")&&c.isObject(e)},_optionChanged:function(e){switch(this._dataExpressionOptionChanged(e),e.name){case"hoverStateEnabled":case"focusStateEnabled":this._isDesktopDevice()&&this._setListOption(e.name,e.value),this.callBase(e);break;case"items":this.option("dataSource")||this._processDataSourceChanging();break;case"dataSource":this._processDataSourceChanging();break;case"valueExpr":this._renderValue(),this._setListOption("keyExpr",this._getCollectionKeyExpr());break;case"displayExpr":this._renderValue(),this._setListOption("displayExpr",this._displayGetterExpr());break;case"searchMode":this._validateSearchMode();break;case"minSearchLength":this._refreshList();break;case"searchEnabled":case"showDataBeforeSearch":case"searchExpr":this._invalidate();break;case"onContentReady":this._initContentReadyAction();break;case"onSelectionChanged":this._initSelectionChangedAction();break;case"onItemClick":this._initItemClickAction();break;case"grouped":case"groupTemplate":case"noDataText":this._setListOption(e.name);break;case"displayValue":this.option("text",e.value);break;case"itemTemplate":case"searchTimeout":case"popupWidthExtension":break;case"selectedItem":e.previousValue!==e.value&&this._selectionChangedAction({selectedItem:e.value});break;default:this.callBase(e)}}}).include(b,k);l("dxDropDownList",O),e.exports=O},function(e,t,n){var i=n(2),o=n(5),a=n(4),r=n(1),s=n(62),l=n(12).getPublicElement,u=n(3).each,c=n(20).compileGetter,d=n(0).extend,h=n(38),p=n(19),f=n(176),g=n(43),_=n(14),m=n(72),v=n(16),y=n(519),b=n(34),x=n(8),w=n(31),C=n(7),k=n(162),S=n(94).deviceDependentOptions,I=n(192).default,T=n(66),D=n(6).Deferred,E=n(288).default,A="dx-list",O="dx-list-item",B="."+O,P="dx-list-item-icon-container",R="dx-list-item-icon",M="dx-list-group",V="dx-list-group-header",F="dx-list-group-body",L="dx-list-collapsible-groups",H="dx-list-group-collapsed",z="dx-list-group-header-indicator",N="dx-has-next",$="dx-list-next-button",W=".dx-list-select-all",G="dxListItemData",j=70,q=c("items"),K=I.inherit({_activeStateUnit:[B,W].join(","),_supportedKeys:function(){var e=this,t=function(t){var i=n(t),a=i.is(e.option("focusedElement"));a&&(o(i,t),i=n(t)),e.option("focusedElement",l(i)),e.scrollToItem(i)},n=function(t){var n=e.scrollTop(),o=e.$element().height(),a=i(e.option("focusedElement")),r=!0;if(!a.length)return i();for(;r;){var s=a[t]();if(!s.length)break;var l=s.position().top+s.outerHeight()/2;r=ln,r&&(a=s)}return a},o=function(t,n){var i=t.position().top;"prev"===n&&(i=t.position().top-e.$element().height()+t.outerHeight()),e.scrollTo(i)};return d(this.callBase(),{leftArrow:a.noop,rightArrow:a.noop,pageUp:function(){return t("prev"),!1},pageDown:function(){return t("next"),!1}})},_getDefaultOptions:function(){return d(this.callBase(),{hoverStateEnabled:!0,pullRefreshEnabled:!1,scrollingEnabled:!0,showScrollbar:"onScroll",useNativeScrolling:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,pullingDownText:_.format("dxList-pullingDownText"),pulledDownText:_.format("dxList-pulledDownText"),refreshingText:_.format("dxList-refreshingText"),pageLoadingText:_.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:_.format("dxList-nextButtonText"),onItemSwipe:null,grouped:!1,onGroupRendered:null,collapsibleGroups:!1,groupTemplate:"group",indicateLoading:!0,activeStateEnabled:!0,_itemAttributes:{role:"option"},_listAttributes:{role:"listbox"},useInkRipple:!1,showChevronExpr:function(e){return e?e.showChevron:void 0},badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){var e=w.current();return this.callBase().concat(S(),[{device:function(){return!g.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(e){return!g.nativeScrolling&&!v.isSimulator()&&"generic"===v.real().platform&&"generic"===e.platform},options:{showScrollbar:"onHover",pageLoadMode:"nextButton"}},{device:function(){return"desktop"===v.real().deviceType&&!v.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return"win"===v.current().platform&&v.isSimulator()},options:{bounceEnabled:!1}},{device:function(){return w.isMaterial(e)},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",pageLoadingText:"",useInkRipple:!0}}])},_visibilityChanged:function(e){e&&this._updateLoadingState(!0)},_itemClass:function(){return O},_itemDataKey:function(){return G},_itemContainer:function(){return this._$container},_refreshItemElements:function(){this.option("grouped")?this._itemElementsCache=this._itemContainer().children("."+M).children("."+F).children(this._itemSelector()):this._itemElementsCache=this._itemContainer().children(this._itemSelector())},_modifyByChanges:function(){this.callBase.apply(this,arguments),this._refreshItemElements()},reorderItem:function(e,t){var n=this.callBase(e,t);return n.done(function(){this._refreshItemElements()})},deleteItem:function(e){var t=this.callBase(e);return t.done(function(){this._refreshItemElements()})},_itemElements:function(){return this._itemElementsCache},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)},_allowDynamicItemsAppend:function(){return!0},_init:function(){this.callBase(),this._$container=this.$element(),this._initScrollView(),this._feedbackShowTimeout=j,this._createGroupRenderAction()},_scrollBottomMode:function(){return"scrollBottom"===this.option("pageLoadMode")},_nextButtonMode:function(){return"nextButton"===this.option("pageLoadMode")},_dataSourceOptions:function(){var e=this._scrollBottomMode(),t=this._nextButtonMode();return d(this.callBase(),{paginate:a.ensureDefined(e||t,!0)})},_getGroupedOption:function(){return this.option("grouped")},_dataSourceFromUrlLoadMode:function(){return"raw"},_initScrollView:function(){var e=this.option("scrollingEnabled"),t=e&&this.option("pullRefreshEnabled"),n=e&&this._scrollBottomMode()&&!!this._dataSource;this._scrollView=this._createComponent(this.$element(),k,{disabled:this.option("disabled")||!e,onScroll:this._scrollHandler.bind(this),onPullDown:t?this._pullDownHandler.bind(this):null,onReachBottom:n?this._scrollBottomHandler.bind(this):null,showScrollbar:this.option("showScrollbar"),useNative:this.option("useNativeScrolling"),bounceEnabled:this.option("bounceEnabled"),scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),reachBottomText:this.option("pageLoadingText"),useKeyboard:!1}),this._$container=i(this._scrollView.content()),this._createScrollViewActions()},_createScrollViewActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._pullRefreshAction=this._createActionByOption("onPullRefresh"),this._pageLoadingAction=this._createActionByOption("onPageLoading")},_scrollHandler:function(e){this._scrollAction&&this._scrollAction(e)},_initTemplates:function(){this.callBase(),this._defaultTemplates.group=new T(function(e,t){ r.isPlainObject(t)?t.key&&e.text(t.key):e.text(String(t))},["key"],this.option("integrationOptions.watchMethod"))},_prepareDefaultItemTemplate:function(e,t){if(this.callBase(e,t),e.icon){var n=s.getImageContainer(e.icon).addClass(R),o=i("
").addClass(P);o.append(n),t.prepend(o)}},_getBindableFields:function(){return["text","html","icon"]},_updateLoadingState:function(e){var t=!e||this._isLastPage(),n=this._scrollBottomMode(),i=t||!n,o=i&&!this._isDataSourceLoading();i||this._scrollViewIsFull()?(this._scrollView.release(o),this._toggleNextButton(this._shouldRenderNextButton()&&!this._isLastPage()),this._loadIndicationSuppressed(!1)):this._infiniteDataLoading()},_shouldRenderNextButton:function(){return this._nextButtonMode()&&this._dataSource&&this._dataSource.isLoaded()},_dataSourceLoadingChangedHandler:function(e){this._loadIndicationSuppressed()||(e&&this.option("indicateLoading")?this._showLoadingIndicatorTimer=setTimeout(function(){var e=!this._itemElements().length;this._scrollView&&!e&&this._scrollView.startLoading()}.bind(this)):(clearTimeout(this._showLoadingIndicatorTimer),this._scrollView&&this._scrollView.finishLoading()))},_dataSourceChangedHandler:function(e){!this._shouldAppendItems()&&C.hasWindow()&&this._scrollView&&this._scrollView.scrollTo(0),this.callBase.apply(this,arguments)},_refreshContent:function(){this._prepareContent(),this._fireContentReadyAction()},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_loadIndicationSuppressed:function(e){return arguments.length?void(this._isLoadIndicationSuppressed=e):this._isLoadIndicationSuppressed},_scrollViewIsFull:function(){return!this._scrollView||this._scrollView.isFull()},_pullDownHandler:function(e){this._pullRefreshAction(e),this._dataSource&&!this._isDataSourceLoading()?(this._clearSelectedItems(),this._dataSource.pageIndex(0),this._dataSource.reload()):this._updateLoadingState()},_infiniteDataLoading:function(){var e=this.$element().is(":visible");!e||this._scrollViewIsFull()||this._isDataSourceLoading()||this._isLastPage()||(clearTimeout(this._loadNextPageTimer),this._loadNextPageTimer=setTimeout(this._loadNextPage.bind(this)))},_scrollBottomHandler:function(e){this._pageLoadingAction(e),this._isDataSourceLoading()||this._isLastPage()?this._updateLoadingState():this._loadNextPage()},_renderItems:function(e){this.option("grouped")?(u(e,this._renderGroup.bind(this)),this._attachGroupCollapseEvent(),this._renderEmptyMessage(),w.isMaterial()&&this.attachGroupHeaderInkRippleEvents()):this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},_attachGroupCollapseEvent:function(){var e=x.addNamespace(p.name,this.NAME),t="."+V,n=this.$element(),a=this.option("collapsibleGroups");n.toggleClass(L,a),o.off(n,e,t),a&&o.on(n,e,t,function(e){this._createAction(function(e){var t=i(e.event.currentTarget).parent();this._collapseGroupHandler(t),this.option("focusStateEnabled")&&this.option("focusedElement",l(t.find("."+O).eq(0)))}.bind(this),{validatingTargetName:"element"})({event:e})}.bind(this))},_collapseGroupHandler:function(e,t){var n=new D;if(e.hasClass(H)===t)return n.resolve();var i=e.children("."+F),o=i.outerHeight(),a=0===o?i.height("auto").outerHeight():0;return e.toggleClass(H,t),h.animate(i,{type:"custom",from:{height:o},to:{height:a},duration:200,complete:function(){this.updateDimensions(),this._updateLoadingState(),n.resolve()}.bind(this)}),n.promise()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this._initialized&&(this._renderEmptyMessage(),this._updateLoadingState())},_initMarkup:function(){this._itemElementsCache=i(),this.$element().addClass(A),this.callBase(),this.option("useInkRipple")&&this._renderInkRipple(),this.setAria("role",this.option("_listAttributes").role)},_renderInkRipple:function(){this._inkRipple=m.render()},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments);var i=this;if(this._inkRipple){var o={element:e,event:n};t?w.isMaterial()?this._inkRippleTimer=setTimeout(function(){i._inkRipple.showWave(o)},j/2):i._inkRipple.showWave(o):(clearTimeout(this._inkRippleTimer),this._inkRipple.hideWave(o))}},_postprocessRenderItem:function(e){this._refreshItemElements(),this.callBase.apply(this,arguments),this.option("onItemSwipe")&&this._attachSwipeEvent(i(e.itemElement))},_attachSwipeEvent:function(e){var t=x.addNamespace(f.end,this.NAME);o.on(e,t,this._itemSwipeEndHandler.bind(this))},_itemSwipeEndHandler:function(e){this._itemDXEventHandler(e,"onItemSwipe",{direction:e.offset<0?"left":"right"})},_nextButtonHandler:function(){var e=this._dataSource;e&&!e.isLoading()&&(this._scrollView.toggleLoading(!0),this._$nextButton.detach(),this._loadIndicationSuppressed(!0),this._loadNextPage())},_renderGroup:function(e,t){var n=i("
").addClass(M).appendTo(this._itemContainer()),o=i("
").addClass(V).appendTo(n),a=this.option("groupTemplate"),r=this._getTemplate(t.template||a,t,e,o),s={index:e,itemData:t,container:l(o)};this._createItemByTemplate(r,s),w.isMaterial()&&i("
").addClass(z).prependTo(o),this._renderingGroupIndex=e;var c=i("
").addClass(F).appendTo(n);u(q(t)||[],function(e,t){this._renderItem(e,t,c)}.bind(this)),this._groupRenderAction({groupElement:l(n),groupIndex:e,groupData:t})},downInkRippleHandler:function(e){this._toggleActiveState(i(e.currentTarget),!0,e)},upInkRippleHandler:function(e){this._toggleActiveState(i(e.currentTarget),!1)},attachGroupHeaderInkRippleEvents:function(){var e="."+V,t=this.$element();this._downInkRippleHandler=this._downInkRippleHandler||this.downInkRippleHandler.bind(this),this._upInkRippleHandler=this._upInkRippleHandler||this.upInkRippleHandler.bind(this);var n=[t,"dxpointerdown",e,this._downInkRippleHandler],i=[t,"dxpointerup dxpointerout",e,this._upInkRippleHandler];o.off.apply(o,n),o.on.apply(o,n),o.off.apply(o,i),o.on.apply(o,i)},_createGroupRenderAction:function(){this._groupRenderAction=this._createActionByOption("onGroupRendered")},_clean:function(){clearTimeout(this._inkRippleTimer),this._$nextButton&&(this._$nextButton.remove(),this._$nextButton=null),this.callBase.apply(this,arguments)},_dispose:function(){clearTimeout(this._holdTimer),clearTimeout(this._loadNextPageTimer),clearTimeout(this._showLoadingIndicatorTimer),this.callBase()},_toggleDisabledState:function(e){this.callBase(e),this._scrollView.option("disabled",e||!this.option("scrollingEnabled"))},_toggleNextButton:function(e){var t=this._dataSource,n=this._getNextButton();this.$element().toggleClass(N,e),e&&t&&t.isLoaded()&&n.appendTo(this._itemContainer()),e||n.detach()},_getNextButton:function(){return this._$nextButton||(this._$nextButton=this._createNextButton()),this._$nextButton},_createNextButton:function(){var e=i("
").addClass($),t=i("
").appendTo(e);return this._createComponent(t,b,{text:this.option("nextButtonText"),onClick:this._nextButtonHandler.bind(this),type:w.isMaterial()?"default":void 0,integrationOptions:{}}),e},_moveFocus:function(){this.callBase.apply(this,arguments),this.scrollToItem(this.option("focusedElement"))},_refresh:function(){if(C.hasWindow()){var e=this._scrollView.scrollTop();this.callBase(),e&&this._scrollView.scrollTo(e)}else this.callBase()},_optionChanged:function(e){switch(e.name){case"pageLoadMode":this._toggleNextButton(e.value),this._initScrollView();break;case"dataSource":this.callBase(e),this._initScrollView();break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"useNative":case"showScrollbar":case"bounceEnabled":case"scrollByContent":case"scrollByThumb":case"scrollingEnabled":case"pullRefreshEnabled":this._initScrollView(),this._updateLoadingState();break;case"nextButtonText":case"onItemSwipe":case"useInkRipple":this._invalidate();break;case"onScroll":case"onPullRefresh":case"onPageLoading":this._createScrollViewActions(),this._invalidate();break;case"grouped":case"collapsibleGroups":case"groupTemplate":this._invalidate();break;case"onGroupRendered":this._createGroupRenderAction();break;case"width":case"height":this.callBase(e),this._scrollView.update();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;case"visible":this.callBase(e),this._scrollView.update();break;case"rtlEnabled":this._initScrollView(),this.callBase(e);break;case"showChevronExpr":case"badgeExpr":this._invalidate();break;case"_listAttributes":break;default:this.callBase(e)}},_extendActionArgs:function(e){if(!this.option("grouped"))return this.callBase(e);var t=e.closest("."+M),n=t.find("."+O);return d(this.callBase(e),{itemIndex:{group:t.index(),item:n.index(e)}})},expandGroup:function(e){var t=new D,n=this._itemContainer().find("."+M).eq(e);return this._collapseGroupHandler(n,!1).done(function(){t.resolveWith(this)}.bind(this)),t.promise()},collapseGroup:function(e){var t=new D,n=this._itemContainer().find("."+M).eq(e);return this._collapseGroupHandler(n,!0).done(function(){t.resolveWith(this)}.bind(this)),t},updateDimensions:function(){var e=this,t=new D;return e._scrollView?e._scrollView.update().done(function(){!e._scrollViewIsFull()&&e._updateLoadingState(!0),t.resolveWith(e)}):t.resolveWith(e),t.promise()},reload:function(){this.callBase(),this.scrollTo(0),this._pullDownHandler()},repaint:function(){this.scrollTo(0),this.callBase()},scrollTop:function(){return this._scrollView.scrollOffset().top},clientHeight:function(){return this._scrollView.clientHeight()},scrollHeight:function(){return this._scrollView.scrollHeight()},scrollBy:function(e){this._scrollView.scrollBy(e)},scrollTo:function(e){this._scrollView.scrollTo(e)},scrollToItem:function(e){var t=this._editStrategy.getItemElement(e);this._scrollView.scrollToElement(t)}}).include(E);K.ItemClass=y,e.exports=K},function(e,t,n){var i=n(5),o=n(15),a=o.abstract,r=n(8),s=n(157),l=n(88),u=n(112),c=n(16).real(),d=n(58).compare,h="dxscrollinit",p="dxscrollstart",f="dxscroll",g="dxscrollend",_="dxscrollstop",m="dxscrollcancel",v=o.inherit(function(){var e=r.addNamespace("scroll","dxScrollEmitter");return{ctor:function(t){this._element=t,this._locked=!1;var n=this;this._proxiedScroll=function(e){n._scroll(e)},i.on(this._element,e,this._proxiedScroll)},_scroll:a,check:function(e,t){this._locked&&t()},dispose:function(){i.off(this._element,e,this._proxiedScroll)}}}()),y=v.inherit(function(){return{ctor:function(e,t){this.callBase(e),this._timeout=t},_scroll:function(){this._prepare(),this._forget()},_prepare:function(){this._timer&&this._clearTimer(),this._locked=!0},_clearTimer:function(){clearTimeout(this._timer),this._locked=!1,this._timer=null},_forget:function(){var e=this;this._timer=setTimeout(function(){e._clearTimer()},this._timeout)},dispose:function(){this.callBase(),this._clearTimer()}}}()),b=y.inherit(function(){var e=400;return{ctor:function(t){this.callBase(t,e),this._lastWheelDirection=null},check:function(e,t){this._checkDirectionChanged(e),this.callBase(e,t)},_checkDirectionChanged:function(e){if(!r.isDxMouseWheelEvent(e))return void(this._lastWheelDirection=null);var t=e.shiftKey||!1,n=null!==this._lastWheelDirection&&t!==this._lastWheelDirection;this._lastWheelDirection=t,this._locked=this._locked&&!n}}}()),x=y.inherit(function(){var e=400;return{ctor:function(t){this.callBase(t,e)}}}());!function(){var e=c.ios&&d(c.version,[8])>=0,t=c.android&&d(c.version,[5])>=0;(e||t)&&(x=v.inherit(function(){return{_scroll:function(){this._locked=!0;var e=this;u.cancelAnimationFrame(this._scrollFrame),this._scrollFrame=u.requestAnimationFrame(function(){e._locked=!1})},check:function(e,t){u.cancelAnimationFrame(this._scrollFrame),u.cancelAnimationFrame(this._checkFrame);var n=this,i=this.callBase;this._checkFrame=u.requestAnimationFrame(function(){i.call(n,e,t),n._locked=!1})},dispose:function(){this.callBase(),u.cancelAnimationFrame(this._scrollFrame),u.cancelAnimationFrame(this._checkFrame)}}}()))}();var w=s.inherit(function(){var e=100,t=200,n=Math.round(1e3/60);return{ctor:function(e){this.callBase.apply(this,arguments),this.direction="both",this._pointerLocker=new x(e),this._wheelLocker=new b(e)},validate:function(){return!0},configure:function(e){e.scrollTarget&&(this._pointerLocker.dispose(),this._wheelLocker.dispose(),this._pointerLocker=new x(e.scrollTarget),this._wheelLocker=new b(e.scrollTarget)),this.callBase(e)},_init:function(e){this._wheelLocker.check(e,function(){r.isDxMouseWheelEvent(e)&&this._accept(e)}.bind(this)),this._pointerLocker.check(e,function(){var t=this.isNative&&r.isMouseEvent(e);r.isDxMouseWheelEvent(e)||t||this._accept(e)}.bind(this)),this._fireEvent(h,e),this._prevEventData=r.eventData(e)},move:function(e){this.callBase.apply(this,arguments),e.isScrollingEvent=this.isNative||e.isScrollingEvent},_start:function(e){this._savedEventData=r.eventData(e),this._fireEvent(p,e),this._prevEventData=r.eventData(e)},_move:function(e){var n=r.eventData(e);this._fireEvent(f,e,{delta:r.eventDelta(this._prevEventData,n)});var i=r.eventDelta(this._savedEventData,n);i.time>t&&(this._savedEventData=this._prevEventData),this._prevEventData=r.eventData(e)},_end:function(t){var i=r.eventDelta(this._prevEventData,r.eventData(t)),o={x:0,y:0};if(!r.isDxMouseWheelEvent(t)&&i.time").addClass(n).prependTo(e),this._searchEditor=this._createComponent(this._$searchEditorElement,c.default,o))},_removeSearchBox:function(){this._$searchEditorElement&&this._$searchEditorElement.remove(),delete this._$searchEditorElement,delete this._searchEditor},_getSearchEditorOptions:function(){var e=this,t=e.option("searchEditorOptions"),n=l.default.format("Search");return(0,r.extend)({mode:"search",placeholder:n,tabIndex:e.option("tabIndex"),value:e.option("searchValue"),valueChangeEvent:"input",inputAttr:{"aria-label":n},onValueChanged:function(t){var n=e.option("searchTimeout");e._valueChangeDeferred=new p.Deferred,clearTimeout(e._valueChangeTimeout),e._valueChangeDeferred.done(function(){this.option("searchValue",t.value)}.bind(e)),t.event&&"input"===t.event.type&&n?e._valueChangeTimeout=setTimeout(function(){e._valueChangeDeferred.resolve()},n):e._valueChangeDeferred.resolve()}},t)},_getAriaTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.$element()},_focusTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.callBase()},_updateFocusState:function(e,t){this.option("searchEnabled")&&this._toggleFocusClass(t,this.$element()),this.callBase(e,t)},getOperationBySearchMode:function(e){return"equals"===e?"=":e},_cleanAria:function(e){this.setAria({role:null,activedescendant:null},e),e.attr("tabIndex",null)},_optionChanged:function(e){switch(e.name){case"searchEnabled":case"searchEditorOptions":this._cleanAria(this.option("searchEnabled")?this.$element():this._itemContainer()),this._invalidate();break;case"searchExpr":case"searchMode":case"searchValue":if(!this._dataSource)return void h.default.log("W1009");"searchMode"===e.name?this._dataSource.searchOperation(this.getOperationBySearchMode(e.value)):this._dataSource[e.name](e.value),this._dataSource.load();break;case"searchTimeout":break;default:this.callBase(e)}},focus:function(){return!this.option("focusedElement")&&this.option("searchEnabled")?void(this._searchEditor&&this._searchEditor.focus()):void this.callBase()},_refresh:function(){this._valueChangeDeferred&&this._valueChangeDeferred.resolve(),this.callBase()}}},function(e,t,n){function i(e){"@babel/helpers - typeof";return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(87),a=n(20),r=n(4),s=n(1),l=n(0).extend,u=n(86),c=n(45),d=n(69),h=n(6).Deferred,p=l({},u,{_dataExpressionDefaultOptions:function(){return{items:[],dataSource:null,itemTemplate:"item",value:null,valueExpr:"this",displayExpr:void 0}},_initDataExpressions:function(){this._compileValueGetter(),this._compileDisplayGetter(),this._initDynamicTemplates(),this._initDataSource(),this._itemsToDataSource()},_itemsToDataSource:function(){this.option("dataSource")||(this._dataSource=new c.DataSource({store:new d(this.option("items")),pageSize:0}))},_compileDisplayGetter:function(){this._displayGetter=a.compileGetter(this._displayGetterExpr())},_displayGetterExpr:function(){return this.option("displayExpr")},_compileValueGetter:function(){this._valueGetter=a.compileGetter(this._valueGetterExpr())},_valueGetterExpr:function(){return this.option("valueExpr")||"this"},_loadValue:function(e){var t=new h;return e=this._unwrappedValue(e),s.isDefined(e)?(this._loadSingle(this._valueGetterExpr(),e).done(function(n){this._isValueEquals(this._valueGetter(n),e)?t.resolve(n):t.reject()}.bind(this)).fail(function(){t.reject()}),t.promise()):t.reject().promise()},_getCurrentValue:function(){return this.option("value")},_unwrappedValue:function(e){return e=s.isDefined(e)?e:this._getCurrentValue(),e&&this._dataSource&&"this"===this._valueGetterExpr()&&(e=this._getItemKey(e)),o.unwrap(e)},_getItemKey:function(e){var t=this._dataSource.key();if(Array.isArray(t)){for(var n={},o=0,a=t.length;o").addClass(c).appendTo(this._$wrapper).append(this._$bar),this._$range.addClass(d),this._toggleStatus(this.option("showStatus"))},_createCompleteAction:function(){this._completeAction=this._createActionByOption("onComplete")},_renderStatus:function(){this._$status=i("
").addClass(p)},_renderIndeterminateState:function(){this._$segmentContainer=i("
").addClass(f);for(var e=this.option("_animatingSegmentCount"),t=0;t").addClass(g).addClass(g+"-"+(t+1)).appendTo(this._$segmentContainer);this._$segmentContainer.appendTo(this._$wrapper)},_toggleStatus:function(e){var t=this.option("statusPosition").split(" ");e?"top"===t[0]||"left"===t[0]?this._$status.prependTo(this._$wrapper):this._$status.appendTo(this._$wrapper):this._$status.detach(),this._togglePositionClass()},_togglePositionClass:function(){var e=this.option("statusPosition"),t=e.split(" ");this._$wrapper.removeClass("dx-position-top-left dx-position-top-right dx-position-bottom-left dx-position-bottom-right dx-position-left dx-position-right");var n="dx-position-"+t[0];t[1]&&(n+="-"+t[1]),this._$wrapper.addClass(n)},_toggleIndeterminateState:function(e){e?(this._renderIndeterminateState(),this._$bar.toggle(!1)):(this._$bar.toggle(!0),this._$segmentContainer.remove(),delete this._$segmentContainer)},_renderValue:function(){var e=this.option("value"),t=this.option("max");return e||0===e?(this._$segmentContainer&&this._toggleIndeterminateState(!1),e===t&&this._completeAction(),this.callBase(),void this._setStatus()):void this._toggleIndeterminateState(!0)},_setStatus:function(){var e=this.option("statusFormat");e=r(e)?e.bind(this):function(e){return e};var t=e(this._currentRatio,this.option("value"));this._$status.text(t)},_dispose:function(){this._$status.remove(),this.callBase()},_optionChanged:function(e){switch(e.name){case"statusFormat":this._setStatus();break;case"showStatus":this._toggleStatus(e.value);break;case"statusPosition":this._toggleStatus(this.option("showStatus"));break;case"onComplete":this._createCompleteAction();break;case"_animatingSegmentCount":break;default:this.callBase(e)}}});s("dxProgressBar",_),e.exports=_},function(e,t,n){var i=n(2),o=n(49),a=n(9),r=n(0).extend,s=n(7),l=n(38),u="dx-trackbar",c="dx-trackbar-container",d="dx-trackbar-range",h="dx-trackbar-wrapper",p=o.inherit({_getDefaultOptions:function(){return r(this.callBase(),{min:0,max:100,value:0})},_initMarkup:function(){this.$element().addClass(u),this._renderWrapper(),this._renderContainer(),this._renderRange(),this._renderValue(),this._setRangeStyles(),this.callBase()},_render:function(){this.callBase(),this._setRangeStyles(this._rangeStylesConfig())},_renderWrapper:function(){this._$wrapper=i("
").addClass(h).appendTo(this.$element())},_renderContainer:function(){this._$bar=i("
").addClass(c).appendTo(this._$wrapper)},_renderRange:function(){this._$range=i("
").addClass(d).appendTo(this._$bar)},_renderValue:function(){var e=this.option("value"),t=this.option("min"),n=this.option("max");if(!(t>n)){if(en)return this.option("value",n),void(this._currentRatio=1);var i=t===n?0:(e-t)/(n-t);!this._needPreventAnimation&&this._setRangeStyles({width:100*i+"%"}),this.setAria({valuemin:this.option("min"),valuemax:n,valuenow:e}),this._currentRatio=i}},_rangeStylesConfig:function(){return{width:100*this._currentRatio+"%"}},_setRangeStyles:function(e){return l.stop(this._$range),e?void(!this._needPreventAnimation&&s.hasWindow()&&l.animate(this._$range,{type:"custom",duration:100,to:e})):void this._$range.css({width:0})},_optionChanged:function(e){switch(e.name){case"value":this._renderValue(),this.callBase(e);break;case"max":case"min":this._renderValue();break;default:this.callBase(e)}},_dispose:function(){l.stop(this._$range),this.callBase()}});a("dxTrackBar",p),e.exports=p},function(e,t,n){var i=n(9),o=n(5),a=n(4).grep,r=n(0).extend,s=n(3),l=n(174),u=n(99),c=n(55),d="dx-validationsummary",h=d+"-item",p=d+"-item-data",f=c.inherit({_getDefaultOptions:function(){return r(this.callBase(),{focusStateEnabled:!1,noDataText:null})},_setOptionsByReference:function(){this.callBase(),r(this._optionsByReference,{validationGroup:!0})},_init:function(){this.callBase(),this._initGroupRegistration()},_initGroupRegistration:function(){var e=this._findGroup(),t=u.addGroup(e);this._unsubscribeGroup(),this._groupWasInit=!0,this._validationGroup=e,this.groupSubscription=this._groupValidationHandler.bind(this),t.on("validated",this.groupSubscription)},_unsubscribeGroup:function(){var e=u.getGroupConfig(this._validationGroup);e&&e.off("validated",this.groupSubscription)},_getOrderedItems:function(e,t){var n=[];return s.each(e,function(e,i){var o=a(t,function(e){if(e.validator===i)return!0})[0];o&&n.push(o)}),n},_groupValidationHandler:function(e){var t=this,n=t._getOrderedItems(e.validators,s.map(e.brokenRules,function(e){return{text:e.message,validator:e.validator}}));t.validators=e.validators,s.each(t.validators,function(e,n){if(n._validationSummary!==this){var i=t._itemValidationHandler.bind(t),o=function(){n.off("validated",i),n._validationSummary=null,i=null};n.on("validated",i),n.on("disposing",o),n._validationSummary=this}}),t.option("items",n)},_itemValidationHandler:function(e){var t,n=this.option("items"),i=e.isValid,o=!1,a=e.brokenRule&&e.brokenRule.message,r=e.validator;s.each(n,function(e,n){if(n.validator===r)return i?t=e:n.text=a,o=!0,!1}),i^o||(i?n.splice(t,1):n.push({text:a,validator:r}),n=this._getOrderedItems(this.validators,n),this.option("items",n))},_initMarkup:function(){this.$element().addClass(d),this.callBase()},_optionChanged:function(e){switch(e.name){case"validationGroup":this._initGroupRegistration();break;default:this.callBase(e)}},_itemClass:function(){return h},_itemDataKey:function(){return p},_postprocessRenderItem:function(e){o.on(e.itemElement,"click",function(){e.itemData.validator&&e.itemData.validator.focus&&e.itemData.validator.focus()})},_dispose:function(){this.callBase(),this._unsubscribeGroup()}}).include(l);i("dxValidationSummary",f),e.exports=f},function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n").html(t).appendTo(s.value());u=function(){n.remove()},l=new o(n,e)},d=function(){l&&(u(),l=null)};t.show=function(e){return d(),c(e),l.show()},t.hide=function(){return l?l.hide().done(d).promise():(new r).resolve()}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(5),s=i(r),l=n(38),u=i(l),c=n(19),d=i(c),h=n(16),p=i(h),f=n(0),g=n(4),_=n(12),m=n(3),v=i(m),y=n(1),b=n(9),x=i(b),w=n(8),C=i(w),k=n(192),S=i(k),I=n(6),T=n(66),D=i(T),E=n(62),A=n(31),O=i(A),B="dx-accordion",P="dx-accordion-wrapper",R="dx-accordion-item",M="dx-accordion-item-opened",V="dx-accordion-item-closed",F="dx-accordion-item-title",L="dx-accordion-item-body",H="dx-accordion-item-title-caption",z="dxAccordionItemData",N=S.default.inherit({_activeStateUnit:"."+R,_getDefaultOptions:function(){return(0,f.extend)(this.callBase(),{hoverStateEnabled:!0,height:void 0,itemTitleTemplate:"title",onItemTitleClick:null,selectedIndex:0,collapsible:!1,multiple:!1,animationDuration:300,deferRendering:!0,selectionByClick:!0,activeStateEnabled:!0,_itemAttributes:{role:"tab"},_animationEasing:"ease"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===p.default.real().deviceType&&!p.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return O.default.isMaterial()},options:{animationDuration:200,_animationEasing:"cubic-bezier(0.4, 0, 0.2, 1)"}}])},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_init:function(){this.callBase(),this.option("selectionRequired",!this.option("collapsible")),this.option("selectionMode",this.option("multiple")?"multiple":"single");var e=this.$element();e.addClass(B),this._$container=(0,a.default)("
").addClass(P),e.append(this._$container)},_initTemplates:function(){this.callBase(),this._defaultTemplates.title=new D.default(function(e,t){if((0,y.isPlainObject)(t)){(0,y.isDefined)(t.title)&&!(0,y.isPlainObject)(t.title)&&e.text(t.title);var n=(0,E.getImageContainer)(t.icon);n&&n.appendTo(e)}else(0,y.isDefined)(t)&&e.text(String(t));e.wrapInner((0,a.default)("
").addClass(H))},["title","icon"],this.option("integrationOptions.watchMethod"))},_initMarkup:function(){var e=this;this._deferredItems=[],this.callBase(),this.setAria({role:"tablist",multiselectable:this.option("multiple")}),(0,g.deferRender)(function(){var t=e._getSelectedItemIndices();e._renderSelection(t,[])})},_render:function(){this.callBase(),this._updateItemHeightsWrapper(!0)},_itemDataKey:function(){return z},_itemClass:function(){return R},_itemContainer:function(){return this._$container},_itemTitles:function(){return this._itemElements().find("."+F)},_itemContents:function(){return this._itemElements().find("."+L)},_getItemData:function(e){return(0,a.default)(e).parent().data(this._itemDataKey())||this.callBase.apply(this,arguments)},_executeItemRenderAction:function(e){e.type||this.callBase.apply(this,arguments)},_itemSelectHandler:function(e){(0,a.default)(e.target).closest(this._itemContents()).length||this.callBase.apply(this,arguments)},_afterItemElementDeleted:function(e,t){this._deferredItems.splice(t.itemIndex,1),this.callBase.apply(this,arguments)},_renderItemContent:function(e){var t=this.callBase((0,f.extend)({},e,{contentClass:F,templateProperty:"titleTemplate",defaultTemplateName:this.option("itemTitleTemplate")}));this._attachItemTitleClickAction(t);var n=new I.Deferred;(0,y.isDefined)(this._deferredItems[e.index])?this._deferredItems[e.index]=n:this._deferredItems.push(n),(!this.option("deferRendering")||this._getSelectedItemIndices().indexOf(e.index)>=0)&&n.resolve(), n.done(this.callBase.bind(this,(0,f.extend)({},e,{contentClass:L,container:(0,_.getPublicElement)((0,a.default)("
").appendTo((0,a.default)(t).parent()))})))},_attachItemTitleClickAction:function(e){var t=C.default.addNamespace(d.default.name,this.NAME);s.default.off(e,t),s.default.on(e,t,this._itemTitleClickHandler.bind(this))},_itemTitleClickHandler:function(e){this._itemDXEventHandler(e,"onItemTitleClick")},_renderSelection:function(e,t){this._itemElements().addClass(V),this.setAria("hidden",!0,this._itemContents()),this._updateItems(e,t)},_updateSelection:function(e,t){this._updateItems(e,t),this._updateItemHeightsWrapper(!1)},_updateItems:function(e,t){var n=this._itemElements(),i=this;v.default.each(e,function(e,t){i._deferredItems[t].resolve();var o=n.eq(t).addClass(M).removeClass(V);i.setAria("hidden",!1,o.find("."+L))}),v.default.each(t,function(e,t){var o=n.eq(t).removeClass(M);i.setAria("hidden",!0,o.find("."+L))})},_updateItemHeightsWrapper:function(e){this.option("templatesRenderAsynchronously")?this._animationTimer=setTimeout(function(){this._updateItemHeights(e)}.bind(this)):this._updateItemHeights(e)},_updateItemHeights:function(e){var t=this,n=t._deferredAnimate,i=this._splitFreeSpace(this._calculateFreeSpace());return clearTimeout(this._animationTimer),I.when.apply(a.default,[].slice.call(this._itemElements()).map(function(n){return t._updateItemHeight((0,a.default)(n),i,e)})).done(function(){n&&n.resolveWith(t)})},_updateItemHeight:function(e,t,n){var i=e.children("."+F);u.default.isAnimating(e)&&u.default.stop(e);var o=e.outerHeight(),a=e.hasClass(M)?t+i.outerHeight()||e.height("auto").outerHeight():i.outerHeight();return this._animateItem(e,o,a,n,!!t)},_animateItem:function(e,t,n,i,o){var a;return i||t===n?(e.css("height",n),a=(new I.Deferred).resolve()):a=u.default.animate(e,{type:"custom",from:{height:t},to:{height:n},duration:this.option("animationDuration"),easing:this.option("_animationEasing")}),a.done(function(){e.hasClass(M)&&!o&&e.css("height",""),e.not("."+M).addClass(V)})},_splitFreeSpace:function(e){return e?e/this.option("selectedItems").length:e},_calculateFreeSpace:function(){var e=this.option("height");if(void 0!==e&&"auto"!==e){var t=this._itemTitles(),n=0;return v.default.each(t,function(e,t){n+=(0,a.default)(t).outerHeight()}),this.$element().height()-n}},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._updateItemHeights(!0)},_clean:function(){clearTimeout(this._animationTimer),this.callBase()},_optionChanged:function(e){switch(e.name){case"animationDuration":case"onItemTitleClick":case"_animationEasing":break;case"collapsible":this.option("selectionRequired",!this.option("collapsible"));break;case"itemTitleTemplate":case"height":case"deferRendering":this._invalidate();break;case"multiple":this.option("selectionMode",e.value?"multiple":"single");break;default:this.callBase(e)}},expandItem:function(e){return this._deferredAnimate=new I.Deferred,this.selectItem(e),this._deferredAnimate.promise()},collapseItem:function(e){return this._deferredAnimate=new I.Deferred,this.unselectItem(e),this._deferredAnimate.promise()},updateDimensions:function(){return this._updateItemHeights(!1)}});(0,x.default)("dxAccordion",N),e.exports=N},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(105),a=i(o);e.exports={registerKeyboardAction:function(e,t,n,i,o){if(!t.option("useLegacyKeyboardNavigation")){var r=function(e){t.executeAction("onKeyDown",e)};t.createAction("onKeyDown"),a.default.registerKeyboardAction(e,t,n,i,o,r)}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(35),a=i(o),r=n(41);t.createGroupFilter=function(e,t){for(var n=(0,r.normalizeSortingInfo)(t.group),i=[],o=0;o1?(e>=t+n+r&&(a=parseInt((e-(t+n))/r,10)),o=t+n+r*a):e0?t:n};t.AreaItem=l.default.inherit({_getRowElement:function(e){var t=this;return t._tableElement&&t._tableElement.length>0?t._tableElement[0].rows[e]:null},_createGroupElement:function(){return(0,r.default)("
")},_createTableElement:function(){return(0,r.default)("")},_getCellText:function(e,t){var n=e.isWhiteSpace?" ":e.text||" ";return!t||n.indexOf("<")===-1&&n.indexOf(">")===-1||(n=(0,r.default)("
").text(n).html()),n},_getRowClassNames:function(){},_applyCustomStyles:function(e){e.cell.width&&e.cssArray.push("min-width:"+e.cell.width+"px"),e.cell.sorted&&e.classArray.push("dx-pivotgrid-sorted")},_getMainElementMarkup:function(){return"
"},_getCloseMainElementMarkup:function(){return""},_renderTableContent:function(e,t){var n,i,o,a,r,s,l,u,c=this,p=t.length,f=c.option("rtlEnabled"),g=[],_=c.option("encodeHtml"),m="colspan='",v="rowspan='";for(e.data("area",c._getAreaName()),e.data("data",t),e.css("width",""),g.push(c._getMainElementMarkup()),o=0;o"),(0,d.isDefined)(i.expanded)&&y.push("
"),l=this._getCellText(i,_)}else l="";y.push(""+l+""),i.sorted&&y.push(""),y.push("")}u.length&&(g.push("class='"),g.push(u.join(" ")),g.push("'")),g.push(">"),g.push(y.join("")),g.push("")}g.push(this._getCloseMainElementMarkup()),e.append(g.join("")),this._triggerOnCellPrepared(e,t)},_triggerOnCellPrepared:function(e,t){var n,i,o,a,r,s,l,d=this,h=e.find("tr"),p=d._getAreaName(),f=d.option("onCellPrepared"),g=d.component.hasEvent("cellPrepared"),_=this.component._defaultActionArgs();if(f||g)for(s=0;s0?n:i}return 0},_setRowHeight:function(e,t){var n=this._getRowElement(e);n&&(n.style.height=t+"px")},ctor:function(e){this.component=e},option:function(){return this.component.option.apply(this.component,arguments)},getRowsLength:function(){var e=this;return e._tableElement&&e._tableElement.length>0?e._tableElement[0].rows.length:0},getRowsHeight:function(){var e,t=this,n=[],i=t.getRowsLength();for(e=0;e';this._colgroupElement.html(o),this._tableWidth=n-this._groupWidth>.01?Math.ceil(n):n,i.style.width=this._tableWidth+"px",i.style.tableLayout="fixed"},resetColumnsWidth:function(){this._colgroupElement.find("col").width("auto"),this._tableElement.css({width:"",tableLayout:""})},groupWidth:function(e){return void 0===e?this._groupElement.width():e>=0?(this._groupWidth=e,this._groupElement[0].style.width=e+"px"):this._groupElement[0].style.width=e},groupHeight:function(e){return void 0===e?this._groupElement.height():(this._groupHeight=null,void(e>=0?(this._groupHeight=e,this._groupElement[0].style.height=e+"px"):this._groupElement[0].style.height=e))},groupElement:function(){return this._groupElement},tableElement:function(){return this._tableElement},element:function(){return this._rootElement},headElement:function(){return this._tableElement.find("thead")},_setTableCss:function(e){this.option("rtlEnabled")&&(e.right=e.left,delete e.left),this.tableElement().css(e)},setVirtualContentParams:function(e){this._virtualContent.css({width:e.width,height:e.height}),this.groupElement().addClass("dx-virtual-mode")},disableVirtualMode:function(){this.groupElement().removeClass("dx-virtual-mode")},_renderVirtualContent:function(){var e=this;e._virtualContent||"virtual"!==e.option("scrolling.mode")||(e._virtualContent=(0,r.default)("
").addClass("dx-virtual-content").insertBefore(e._tableElement))},reset:function(){var e=this,t=e._tableElement[0];if(e._fakeTable&&e._fakeTable.detach(),e._fakeTable=null,e.disableVirtualMode(),e.groupWidth("100%"),e.groupHeight("auto"),e.resetColumnsWidth(),t){for(var n=0;n").appendTo(n._tableElement),n._renderTableContent(n._tableElement,t),n._renderVirtualContent()},_getScrollable:function(){return this.groupElement().data("dxScrollable")},on:function(e,t){var n=this,i=n._getScrollable();return i&&i.on(e,function(e){n.option("rtlEnabled")&&(0,d.isDefined)(e.scrollOffset.left)&&(e.scrollOffset.left=i.$content().width()-i._container().width()-e.scrollOffset.left),t(e)}),this},off:function(e){var t=this._getScrollable();return t&&t.off(e),this},scrollTo:function(e){var t=this._getScrollable(),n=e;t&&(this.option("rtlEnabled")&&("column"===this._getAreaName()?n=t.$content().width()-t._container().width()-e:"data"===this._getAreaName()&&(n={x:t.$content().width()-t._container().width()-e.x,y:e.y})),t.scrollTo(n),this._virtualContent&&(this._createFakeTable(),this._moveFakeTable(e)))},updateScrollable:function(){var e=this._getScrollable();if(e)return e.update()},getColumnsCount:function(){var e,t=0,n=this._getRowElement(0);if(n){e=n.cells;for(var i=0,o=e.length;i",V=S.default.HeaderFilterView.inherit({_getSearchExpr:function(e){return e.useDefaultSearchExpr=!0,this.callBase(e)}}),F=function(e,t){var n=[],i=!!t.groupName,o="exclude"===t.filterType;t.filterValues&&(0,v.each)(t.filterValues,function(e,t){n.push(Array.isArray(t)?t.join("/"):t&&t.valueOf())}),(0,A.foreachTree)(e,function(e){var t=e[0],a=(0,A.createPath)(e),r=i?(0,v.map)(e,function(e){return e.text}).reverse().join("/"):t.text;t.value=i?a.slice(0):t.key||t.value;var s=i?a.join("/"):t.value&&t.value.valueOf();t.children&&(t.items=t.children,t.children=null),(0,k.updateHeaderFilterItemSelectionState)(t,t.key&&(0,_.inArray)(r,n)>-1||(0,_.inArray)(s,n)>-1,o)})},L=C.default.inherit(T.default).inherit(E.default).inherit(k.headerFilterMixin).inherit({_getDefaultOptions:function(){return(0,m.extend)(this.callBase(),{allowFieldDragging:!0,applyChangesMode:"instantly",state:null,headerFilter:{width:252,height:325,searchTimeout:500,texts:{emptyValue:(0,y.format)("dxDataGrid-headerFilterEmptyValue"),ok:(0,y.format)("dxDataGrid-headerFilterOK"),cancel:(0,y.format)("dxDataGrid-headerFilterCancel")}}})},_init:function(){this.callBase(),this._headerFilterView=new V(this),this._refreshDataSource(),this.subscribeToEvents()},_refreshDataSource:function(){var e=this.option("dataSource");e&&e.fields&&e.load&&(this._dataSource=e)},_optionChanged:function(e){switch(e.name){case"dataSource":this._refreshDataSource();break;case"applyChangesMode":break;case"state":if(this._skipStateChange||!this._dataSource)break;"instantly"===this.option("applyChangesMode")&&a(this._dataSource.state())!==a(e.value)?this._dataSource.state(e.value):(this._clean(!0),this._renderComponent());break;case"headerFilter":case"allowFieldDragging":this._invalidate();break;default:this.callBase(e)}},renderField:function(e,t){var n=this,i=(0,s.default)(M).addClass("dx-area-field-content").text(e.caption||e.dataField),a=(0,s.default)(M).addClass("dx-area-field").addClass("dx-area-box").data("field",e).append(i),r=o(n._dataSource,e);return"data"!==e.area&&(e.allowSorting&&n._applyColumnState({name:"sort",rootElement:a,column:{alignment:n.option("rtlEnabled")?"right":"left",sortOrder:"desc"===e.sortOrder?"desc":"asc"},showColumnLines:t}),n._applyColumnState({name:"headerFilter",rootElement:a,column:{alignment:n.option("rtlEnabled")?"right":"left",filterValues:r.filterValues,allowFiltering:r.allowFiltering&&!e.groupIndex},showColumnLines:t})),e.groupName&&a.attr("item-group",e.groupName),a},_clean:function(){},_render:function(){this.callBase(),this._headerFilterView.render(this.$element())},renderSortable:function(){var e=this;e._createComponent(e.$element(),B.default,(0,m.extend)({allowDragging:e.option("allowFieldDragging"),itemSelector:".dx-area-field",itemContainerSelector:".dx-area-field-container",groupSelector:".dx-area-fields",groupFilter:function(){var t=e._dataSource,n=(0,s.default)(this).closest(".dx-sortable"),i=n.data("dxPivotGrid"),o=n.data("dxPivotGridFieldChooser");return i?i.getDataSource()===t:!!o&&o.option("dataSource")===t},itemRender:function(e,t){var n;if(e.hasClass("dx-area-box")?(n=e.clone(),"drag"===t&&(0,v.each)(e,function(e,t){n.eq(e).css("width",parseInt((0,s.default)(t).outerWidth(),10)+R)})):n=(0,s.default)(M).addClass("dx-area-field").addClass("dx-area-box").text(e.text()),"drag"===t){var i=(0,s.default)(M);return(0,v.each)(n,function(e,t){var n=(0,s.default)("
").addClass("dx-pivotgrid-fields-container").addClass("dx-widget").append((0,s.default)(t));i.append(n)}),i.children()}return n},onDragging:function(e){var t=e.sourceElement.data("field"),n=e.targetGroup;e.cancel=!1,t.isMeasure===!0?"column"!==n&&"row"!==n&&"filter"!==n||(e.cancel=!0):t.isMeasure===!1&&"data"===n&&(e.cancel=!0)},useIndicator:!0,onChanged:function(t){var n=e._dataSource,i=t.sourceElement.data("field");t.removeSourceElement=!!t.sourceGroup,e._adjustSortableOnChangedArgs(t),i&&e._applyChanges([o(n,i)],{area:t.targetGroup,areaIndex:t.targetIndex})}},e._getSortableOptions()))},_processDemandState:function(e){var t=this,n="instantly"===t.option("applyChangesMode"),i=t._dataSource;if(n)e(i,n);else{var o=i.state(),a=t.option("state");a&&i.state(a,!0),e(i,n),i.state(o,!0)}},_applyChanges:function(e,t){var n=this;n._processDemandState(function(i,o){e.forEach(function(e){var n=e.index;i.field(n,t)}),o?i.load():n._changedHandler()})},_adjustSortableOnChangedArgs:function(e){e.removeSourceElement=!1,e.removeTargetElement=!0,e.removeSourceClass=!1},_getSortableOptions:function(){return{direction:"auto"}},subscribeToEvents:function(e){var t=this,n=function(e){var n=(0,s.default)(e.currentTarget).data("field"),i=(0,m.extend)(!0,{},o(t._dataSource,n)),a=(0,s.default)(e.target).hasClass("dx-header-filter"),r=t._dataSource,l=i.groupName?"tree":"list",u=r.paginate()&&"list"===l;a?t._headerFilterView.showHeaderFilterMenu((0,s.default)(e.currentTarget),(0,m.extend)(i,{type:l,encodeHtml:t.option("encodeHtml"),dataSource:{useDefaultSearch:!u,load:function(e){var n=e.userData;if(n.store)return n.store.load(e);var o=new P.Deferred;return r.getFieldValues(i.index,t.option("headerFilter.showRelevantValues"),u?e:void 0).done(function(t){u?o.resolve(t):(n.store=new d.default(t),n.store.load(e).done(o.resolve).fail(o.reject))}).fail(o.reject),o},postProcess:function(e){return F(e,i),e}},apply:function(){t._applyChanges([i],{filterValues:this.filterValues,filterType:this.filterType})}})):n.allowSorting&&"data"!==n.area&&t._applyChanges([n],{sortOrder:"desc"===n.sortOrder?"asc":"desc"})};return e?void u.default.on(e,p.default.name,".dx-area-field.dx-area-box",n):void u.default.on(t.$element(),p.default.name,".dx-area-field.dx-area-box",n)},_initTemplates:f.noop,addWidgetPrefix:function(e){return"dx-pivotgrid-"+e}});(0,x.default)("dxPivotGridFieldChooserBase",L),e.exports=L},function(e,t,n){var i=n(2),o=n(10),a=n(37),r=n(1),s=n(12).getPublicElement,l="tr",u={VERTICAL:"vertical",HORIZONTAL:"horizontal",insertAllDayRow:function(e,t,n){if(e[n]){var a=e[n].find(l);a.length||(a=i(o.createElement(l)),a.append(e[n].get(0))),t.appendChild(a.get?a.get(0):a)}},makeTable:function(e){var t,n=o.createElement("tbody"),u=[],c=e.groupCount?e.rowCount/e.groupCount:e.rowCount,d=0,h=e.allDayElements,p=e.groupIndex,f=e.rowCount;i(e.container).append(n),h&&(this.insertAllDayRow(h,n,0),d++);for(var g=0;g")}h&&_&&(this.insertAllDayRow(h,n,d),d++)}return u},makeGroupedTable:function(e,t,n,i,o,a,r){var s=[];return s=e===this.VERTICAL?this._makeVerticalGroupedRows(t,n,o,a):this._makeHorizontalGroupedRows(t,n,i,o,r)},makeGroupedTableFromJSON:function(e,t,n){function i(){c=o.createElement("table"),_&&(c.className=_)}function a(e){return e[f]?e[f].length:0}function r(e,t,n,i){var a={element:o.createElement(p),childCount:t};v&&(a.element.className=v);var r=o.createTextNode(e);return"function"==typeof y?y(a.element,r,n,i):a.element.appendChild(r),a}function s(e){for(var t=0;t=0;i--){var a=e[i+1],r=e[i].childCount;a&&a.childCount&&(r*=a.childCount),n.push(r)}n.reverse(),e.forEach(function(e,i){n[i]&&e.element.setAttribute("rowSpan",n[i]),t.appendChild(e.element)}),c.appendChild(t)})}var c,d=[],h=0;n=n||{};var p=n.cellTag||"td",f=n.childrenField||"children",g=n.titleField||"title",_=n.groupTableClass,m=n.groupRowClass,v=n.groupCellClass,y=n.groupCellCustomContent;return i(),s(t),u(),c},_makeVerticalGroupedRows:function(e,t,n,o){var a,r=[],s=1,l=[],u=function(e){e.template&&r.push(e.template)};for(a=0;a0&&(s=e[a-1].items.length*s);var c=this._makeGroupedRowCells(e[a],s,t,n);c.forEach(u),l.push(c)}var d=[],h=l.length,p=l[h-1].length;for(a=0;a").addClass(t.groupHeaderRowClass));for(a=h-1;a>=0;a--)for(var f=l[a].length,g=p/f,_=0;_0&&(r=e[h-1].items.length*r);var p=this._makeGroupedRowCells(e[h],r,t,o,c);l.push(i("
").addClass(t.groupRowClass).append(p.map(d)))}for(var f=l[s-1].find("th").length,g=0;g1&&1===c||a&&s>1)&&_.attr("colSpan",m)}return{elements:l,cellTemplates:u}},_makeGroupedRowCells:function(e,t,n,o,a){a=a||1,t*=a;for(var l=[],u=e.items,c=u.length,d=0;d"),f={};if(o&&o.render){var g={model:u[h],container:s(p),index:d*c+h};e.data&&(g.model.data=e.data[h]),f.template=o.render.bind(o,g)}else p.text(u[h].text),p=i("
").append(p);p.addClass(n.groupHeaderContentClass);var _;_=r.isFunction(n.groupHeaderClass)?n.groupHeaderClass(h):n.groupHeaderClass,f.element=i("
").addClass(_).append(p),l.push(f)}return l}};e.exports=u},function(e,t,n){var i=n(2),o=n(4).noop,a=n(0).extend,r=n(9),s=n(203),l=n(22),u=n(259),c=n(713),d="dx-scheduler-timeline",h="dx-scheduler-group-table",p="dx-scheduler-work-space-horizontal-grouped",f="dx-scheduler-header-panel-cell",g="dx-scheduler-header-panel-week-cell",_="dx-scheduler-header-row",m="horizontal",v=1,y=10,b=l.dateToMilliseconds,x=s.inherit({_init:function(){this.callBase(),this.$element().addClass(d),this._$sidebarTable=i("").addClass(h)},_getCellFromNextRow:function(e,t){return t?this._$focusedCell:this.callBase(e,t)},_getDefaultGroupStrategy:function(){return"vertical"},_toggleGroupingDirectionClass:function(){this.$element().toggleClass(p,this._isHorizontalGroupedWorkSpace())},_getDefaultOptions:function(){return a(this.callBase(),{groupOrientation:"vertical"})},_getRightCell:function(){var e,t=this._$focusedCell,n=this._getCellCount(),i=this._isRTL()?0:n-1,o=this._isRTL()?"prev":"next";return t.index()===i?e=t:(e=t[o](),e=this._checkForViewBounds(e)),e},_getLeftCell:function(){var e,t=this._$focusedCell,n=this._getCellCount(),i=this._isRTL()?n-1:0,o=this._isRTL()?"next":"prev";return t.index()===i?e=t:(e=t[o](),e=this._checkForViewBounds(e)),e},_getRowCount:function(){return 1},_getCellCount:function(){return this._getCellCountInDay()*this.option("intervalCount")},getGroupTableWidth:function(){return this._$sidebarTable?this._$sidebarTable.outerWidth():0},_getTotalRowCount:function(e){return this._isHorizontalGroupedWorkSpace()?this._getRowCount():(e=e||1,this._getRowCount()*e)},_getDateByIndex:function(e){var t=new Date(this._firstViewDate),n=Math.floor(e/this._getCellCountInDay());return t.setTime(this._firstViewDate.getTime()+this._calculateCellIndex(0,e)*this._getInterval()+n*this._getHiddenInterval()),t},_getFormat:function(){return"shorttime"},_needApplyLastGroupCellClass:function(){return!0},_calculateHiddenInterval:function(e,t){var n=Math.floor(t/this._getCellCountInDay());return n*this._getHiddenInterval()},_getMillisecondsOffset:function(e,t){return t=this._calculateCellIndex(e,t),this._getInterval()*t+this._calculateHiddenInterval(e,t)},_createWorkSpaceElements:function(){this._createWorkSpaceScrollableElements()},_getWorkSpaceHeight:function(){return this.option("crossScrollingEnabled")?this._$dateTable.get(0).getBoundingClientRect().height:this.$element().get(0).getBoundingClientRect().height},_dateTableScrollableConfig:function(){var e=this.callBase(),t={direction:m};return this.option("crossScrollingEnabled")?e:a(e,t)},_needCreateCrossScrolling:function(){return!0},_headerScrollableConfig:function(){var e=this.callBase();return a(e,{scrollByContent:!0})},_renderTimePanel:o,_renderAllDayPanel:o,_getTableAllDay:function(){return!1},_getDateHeaderTemplate:function(){return this.option("timeCellTemplate")},_toggleAllDayVisibility:o,_changeAllDayVisibility:o,supportAllDayRow:function(){return!1},_getGroupHeaderContainer:function(){return this._isHorizontalGroupedWorkSpace()?this._$thead:this._$sidebarTable},_insertAllDayRowsIntoDateTable:function(){return!1},_createAllDayPanelElements:o,_renderDateHeader:function(){var e=this.callBase();if(this._needRenderWeekHeader()){for(var t=new Date(this._firstViewDate),n=[],o=this._getCellCountInDay(),a=this.option("dateCellTemplate"),r=0;r"),l=this._formatWeekdayAndDay(t);if(a){var u={model:{text:l,date:new Date(t)},container:s,index:r};a.render(u)}else s.text(l);s.addClass(f).addClass(g).attr("colSpan",o),n.push(s),this._incrementDate(t)}var c=i("").addClass(_).append(n);e.before(c)}},_needRenderWeekHeader:function(){return!1},_incrementDate:function(e){e.setDate(e.getDate()+1)},_getWeekDuration:function(){return 1},_renderView:function(){this._setFirstViewDate();var e=this._renderGroupHeader();this._renderDateHeader(),this._renderAllDayPanel(),this._renderTimePanel(),this._renderDateTable(),this._shader=new c,this._updateGroupTableHeight(),this._$sidebarTable.appendTo(this._sidebarScrollable.$content()),this._applyCellTemplates(e)},_setHorizontalGroupHeaderCellsHeight:o,getIndicationWidth:function(){var e=this._getToday(),t=this.getCellWidth(),n=this._getIndicationFirstViewDate(),i=this._getHiddenInterval(),o=e.getTime()-n.getTime(),a=Math.ceil(o/b("day"))-1,r=o-a*i,s=r/this.getCellDuration();return s*t},_renderIndicator:function(e,t,n,i){var o,a=this.getIndicationWidth();if("vertical"===this.option("groupOrientation"))o=this._createIndicator(n),o.height(n.get(0).getBoundingClientRect().height),o.css("left",t?t-a:a);else for(var r=0;r=n&&e.getHours()=n&&e.getHours()>=i?p=h-(g-i*b("hour")):d||(_=c),_+=p),_},_getWeekendsCount:function(){return 0},getAllDayContainer:function(){return null},getTimePanelWidth:function(){return 0},getPositionShift:function(e){var t=this.callBase(e),n=this.getCellWidth()*e;return this.option("rtlEnabled")&&(n*=-1),n+=t.left,{top:0,left:n,cellPosition:n}},getVisibleBounds:function(){var e=this.option("rtlEnabled"),t={},n=this.getScrollable().$element(),i=this.getCellWidth(),o=e?this.getScrollableOuterWidth()-this.getScrollableScrollLeft():this.getScrollableScrollLeft(),a=o/i,r=n.width()/i,s=e?a-r:a+r,u=this._getDateByIndex(a),c=this._getDateByIndex(s);return e&&(u=this._getDateByIndex(s),c=this._getDateByIndex(a)),t.left={hours:u.getHours(),minutes:u.getMinutes()>=30?30:0,date:l.trimTime(u)},t.right={hours:c.getHours(),minutes:c.getMinutes()>=30?30:0,date:l.trimTime(c)},t},needUpdateScrollPosition:function(e,t,n,i){var o=!1;return o=this._dateWithinBounds(n,i),(en.right.hours)&&(o=!0),e===n.left.hours&&tn.right.minutes&&(o=!0),o},getIntervalDuration:function(e){return this.getCellDuration()},_dateWithinBounds:function(e,t){var n=l.trimTime(new Date(t)),i=!1;return(ne.right.date)&&(i=!0),i},_supportCompactDropDownAppointments:function(){return!1},getCellMinWidth:function(){return 0},getWorkSpaceLeftOffset:function(){return 0},scrollToTime:function(e,t,n){var i=this._getScrollCoordinates(e,t,n),o=this.getScrollable(),a=this.option("rtlEnabled")?this.getScrollableContainer().get(0).getBoundingClientRect().width:0;this.option("templatesRenderAsynchronously")?setTimeout(function(){o.scrollBy({left:i.left-o.scrollLeft()-a,top:0})}):o.scrollBy({left:i.left-o.scrollLeft()-a,top:0})}});r("dxSchedulerTimeline",x),e.exports=x},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;nthis.getDefaultCellWidth()/2}},{key:"isAllDay",value:function(){return!1}},{key:"cropAppointmentWidth",value:function(e,t){return this.instance.fire("isGroupedByDate")&&(e=t),e}},{key:"_getSortedPositions",value:function(e){for(var t=this,n=[],i=function(e){return Math.round(100*e)/100},o=function(e,t,n,o,a,r,s,l){return{i:e,j:t,top:i(n),left:i(o),bottom:i(a),right:i(r),cellPosition:s,allDay:l}},a=0,r=e.length;a1?n:0}},{key:"_isItemsCross",value:function(e,t,n){var i=Math.floor(e[n[0]]),o=Math.floor(e[n[1]]);return e[n[2]]===t[n[2]]&&(i<=t[n[0]]&&o>t[n[0]]||i=t[n[1]]||i===t[n[0]]&&o===t[n[1]])}},{key:"_getOrientation",value:function(){return["top","bottom","left"]}},{key:"_getResultPositions",value:function(e){var t,n,i,o,a=this,r=[],s=0,l=0,u={},c=this._getOrientation(),d=function e(t,n){var i=t.some(function(e){return e===n});return i?e(t,++n):n},h=function(e){u.items=[p(e)],u.left=e.left,u.right=e.right,u.top=e.top,u.bottom=e.bottom},p=function(e,t){var n=t||0;return{index:n,i:e.i,j:e.j,left:e.left,right:e.right,top:e.top,bottom:e.bottom,sortedIndex:a._skipSortedIndex(n)?null:s++}},f=function(e){e.forEach(function(e){r.push({index:e.index,count:l+1,i:e.i,j:e.j,sortedIndex:e.sortedIndex})})};for(t=0;tthis._getMaxAppointmentCountPerCell()-1}},{key:"_findIndexByKey",value:function(e,t,n,i,o){for(var a=0,r=0,s=e.length;rn-1){e.isCompact=!0,i=this._getCompactAppointmentParts(e.width);for(var o=1;oe||!e)&&(e=o),isNaN(e.getTime()))throw p.default.Error("E1032",a);return e}},{key:"endDate",value:function e(t,n,i){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],e=this.instance._getEndDate(t,o),a=this.startDate(t,!0),r=this.startDate(t,!1,n);if(r.getTime()>e.getTime()||i){var s=n?n.initialStartDate||n.startDate:a,l=n?n.startDate:a,u=this._adjustDurationByDaylightDiff(e.getTime()-a.getTime(),a,e);if(e=new Date(r.getTime()>=s.getTime()?s.getTime():r.getTime()),i&&(e=new Date(e.getTime()+u)),!g.default.sameDate(a,e)&&l.getTime()h&&(e=h);var p=new Date(new Date(e).setHours(this.instance.option("endDayHour"),0,0));e.getTime()>p.getTime()&&(e=p)}return e}},{key:"_adjustDurationByDaylightDiff",value:function(e,t,n){var i=this.instance.fire("getDaylightOffset",t,n);return this._needAdjustDuration(i)?this._calculateDurationByDaylightDiff(e,i):e}},{key:"_needAdjustDuration",value:function(e){return 0!==e}},{key:"_calculateDurationByDaylightDiff",value:function(e,t){return e+t*b("minute")}},{key:"_getAppointmentDurationInMs",value:function(e,t,n){var i;return this.instance.fire("getAppointmentDurationInMs",{startDate:e,endDate:t,allDay:n,callback:function(e){i=e}}),i}},{key:"_getMaxNeighborAppointmentCount",value:function(){var e=this.instance.fire("getMaxAppointmentsPerCell");if(e)return 0;var t=this.getCompactAppointmentDefaultWidth()+this.getCompactAppointmentLeftOffset();return Math.floor(this.getDropDownAppointmentWidth()/t)}},{key:"_markAppointmentAsVirtual",value:function(e,t){var n=this._getMaxAppointmentCountPerCellByType(t);e.count-n>this._getMaxNeighborAppointmentCount()&&(e.virtual={top:e.top,left:e.left,index:"tail"===e.appointmentReduced?e.groupIndex+"-"+e.rowIndex+"-"+e.cellIndex:e.groupIndex+"-"+e.rowIndex+"-"+e.cellIndex+"-tail",isAllDay:t})}},{key:"_getMaxAppointmentCountPerCellByType",value:function(e){var t=this._getMaxAppointmentCountPerCell();return m.default.isObject(t)?e?this._getMaxAppointmentCountPerCell().allDay:this._getMaxAppointmentCountPerCell().simple:t}},{key:"getDropDownAppointmentWidth",value:function(e,t){return this.getPositioningStrategy().getDropDownAppointmentWidth(e,t)}},{key:"getDropDownAppointmentHeight",value:function(){return this.getPositioningStrategy().getDropDownAppointmentHeight()}},{key:"getDropDownButtonAdaptiveSize",value:function(){return S}},{key:"getDefaultCellWidth",value:function(){return this._defaultWidth}},{key:"getDefaultCellHeight",value:function(){return this._defaultHeight}},{key:"getDefaultAllDayCellHeight",value:function(){return this._allDayHeight}},{key:"getCompactAppointmentDefaultWidth",value:function(){return w}},{key:"getCompactAppointmentTopOffset",value:function(e){return this.getPositioningStrategy().getCompactAppointmentTopOffset(e)}},{key:"getCompactAppointmentLeftOffset",value:function(){return this.getPositioningStrategy().getCompactAppointmentLeftOffset()}},{key:"getAppointmentDataCalculator",value:function(){}},{key:"_customizeCoordinates",value:function(e,t,n,i,o){var a,r,s=e.index,l=t/n,u=e.top+s*l,c=u+i,d=e.width,h=e.left,p=this.getCompactAppointmentTopOffset(o);return e.isCompact&&(a=this.getCompactAppointmentDefaultWidth(),r=this.getCompactAppointmentLeftOffset(),c=e.top+p,h=e.left+(s-n)*(a+r)+r,this.instance.fire("isAdaptive")&&(e.top=c,e.left=e.left+r),l=a,d=a,this._markAppointmentAsVirtual(e,o)),{height:l,width:d,top:c,left:h,empty:this._isAppointmentEmpty(t,d)}}},{key:"_isAppointmentEmpty",value:function(e,t){return e4&&void 0!==arguments[4]?arguments[4]:function(){return 0},s=[],c={start:n?t.left:t.top,end:n?t.width-t.right:t.height-t.bottom},h=!1;if(e.forEach(function(e){e&&(h=h||e.series.isStackedSeries()||e.series.isFullStackedSeries(),e.getLabels().forEach(function(e){e.isVisible()&&s.push(new d(e,n,o))}))}),h)!n&&s.reverse();else{var p=s.slice();s.sort(function(e,t){return r(e,t)||e.getInitialPosition()-t.getInitialPosition()||p.indexOf(e)-p.indexOf(t)})}return!!a(s)&&(i(s,c),l(s),s.reverse(),u(s,c),!0)}function s(e,t,n){if(e&&t){var i=e.getBoundingRect(),o=t.getBoundingRect(),a=!n||(i.oppositeStart<=o.oppositeStart&&i.oppositeEnd>o.oppositeStart||o.oppositeStart<=i.oppositeStart&&o.oppositeEnd>i.oppositeStart);return i.end>o.start&&a}}function l(e){var t,n,i;for(t=0;tr.start-(r.end-t.end))){a.toChain(o),e[n]=o=null;break}o&&o.setRollingStockInCanvas(t)}}function c(e,t){return e&&e.getBoundingRect().end>t.end}function d(e,t,n){var i=e.getBoundingRect(),o=i.x,a=i.y,r=i.x+i.width,s=i.y+i.height;return this.labels=[e],this.shiftFunction=n,this._bBox={start:t?o:a,width:t?i.width:i.height,end:t?r:s,oppositeStart:t?a:o,oppositeEnd:t?s:r},this._initialPosition=t?i.x:i.y,this}function h(e){return{nameField:e+"Name",colorField:e+"Color",indexField:e+"Index"}}function p(e){var t=h(e);return{getFormatObject:function(e){var n={};return n[t.indexField]=e.id,n[t.colorField]=e.states.normal.fill,n[t.nameField]=e.text,n},textField:t.nameField}}function f(e,t){return(e.x<=t.x&&t.x<=e.x+e.width||e.x>=t.x&&e.x<=t.x+t.width)&&(e.y<=t.y&&t.y<=e.y+e.height||e.y>=t.y&&e.y<=t.y+t.height)}var g=n(4),_=g.noop,m=n(5),v=n(1),y=n(3),b=n(0).extend,x=n(13).inArray,w=n(8),C=n(97),k=n(20),S=n(206),I=n(269),T=n(271),D=n(403),E=n(404),A=n(782),O="_reinit",B="_updateDataSource",P="_dataInit",R="_forceRender",M="_resize",V=[O,B,P,R,M],F=n(11),L=F.map,H=y.each,z=y.reverseEach,N=b,$=Array.isArray,W=v.isDefined,G=F.setCanvasValues,j=.3,q=["series","commonSeriesSettings","dataPrepareSettings","seriesSelectionMode","pointSelectionMode","synchronizeMultiAxes","resolveLabelsOverlapping"],K=["equalBarWidth","minBubbleSize","maxBubbleSize","barWidth","barGroupPadding","barGroupWidth","negativesAsZeroes","negativesAsZeros"],U=["adaptiveLayout","crosshair","resolveLabelOverlapping","adjustOnZoom","zoomingMode","scrollingMode","stickyHovering"],Y="font";d.prototype={toChain:function(e){var t=e.getBoundingRect();e.shift(t.start-this._bBox.end),this._changeBoxWidth(t.width),this.labels=this.labels.concat(e.labels)},getBoundingRect:function(){return this._bBox},shift:function(e){var t=this.shiftFunction;H(this.labels,function(n,i){var o=i.getBoundingRect(),a=t(o,e);i.hideInsideLabel(a)||i.shift(a.x,a.y)}),this._bBox.end-=e,this._bBox.start-=e},setRollingStockInCanvas:function(e){this._bBox.end>e.end&&this.shift(this._bBox.end-e.end)},getLabels:function(){return this.labels},value:function(){return this.labels[0].getData().value},getInitialPosition:function(){return this._initialPosition},_changeBoxWidth:function(e){this._bBox.end+=e,this._bBox.width+=e}};var X={resolveLabelOverlappingInOneDirection:r},Z=C.inherit({_eventsMap:{onSeriesClick:{name:"seriesClick"},onPointClick:{name:"pointClick"},onArgumentAxisClick:{name:"argumentAxisClick"},onLegendClick:{name:"legendClick"},onSeriesSelectionChanged:{name:"seriesSelectionChanged"},onPointSelectionChanged:{name:"pointSelectionChanged"},onSeriesHoverChanged:{name:"seriesHoverChanged"},onPointHoverChanged:{name:"pointHoverChanged"},onDone:{name:"done"},onZoomStart:{name:"zoomStart"},onZoomEnd:{name:"zoomEnd"}},_fontFields:["legend."+Y,"legend.title."+Y,"legend.title.subtitle."+Y,"commonSeriesSettings.label."+Y],_rootClassPrefix:"dxc",_rootClass:"dxc-chart",_initialChanges:["INIT"],_themeDependentChanges:["REFRESH_SERIES_REINIT"],_getThemeManagerOptions:function(){var e=this.callBase.apply(this,arguments);return e.options=this.option(),e},_createThemeManager:function(){var e=this.option(),t=new D.ThemeManager(this._getThemeManagerOptions());return t.setTheme(e.theme,e.rtlEnabled),t},_initCore:function(){var e=this;e._canvasClipRect=e._renderer.clipRect(),e._createHtmlStructure(),e._createLegend(),e._createTracker(),e._needHandleRenderComplete=!0,e.layoutManager=new E.LayoutManager,e._createScrollBar(),m.on(e._$element,"contextmenu",function(e){(w.isTouchEvent(e)||w.isPointerEvent(e))&&e.preventDefault()}),m.on(e._$element,"MSHoldVisual",function(e){e.preventDefault()})},_getLayoutItems:_,_layoutManagerOptions:function(){return this._themeManager.getOptions("adaptiveLayout")},_reinit:function(){var e=this;G(e._canvas),e._reinitAxes(),e._requestChange(["DATA_SOURCE","DATA_INIT","CORRECT_AXIS","FULL_RENDER"])},_correctAxes:_,_createHtmlStructure:function(){var e=this,t=e._renderer,n=t.root,i=function(){return t.g().attr({"class":"dxc-constant-lines-group"}).linkOn(n,"constant-lines")};e._constantLinesGroup={dispose:function(){this.under.dispose(),this.above.dispose()},linkOff:function(){this.under.linkOff(),this.above.linkOff()},clear:function(){this.under.linkRemove().clear(),this.above.linkRemove().clear()},linkAppend:function(){this.under.linkAppend(),this.above.linkAppend()}},e._backgroundRect=t.rect().attr({fill:"gray",opacity:1e-4}).append(n),e._panesBackgroundGroup=t.g().attr({"class":"dxc-background"}).append(n),e._stripsGroup=t.g().attr({"class":"dxc-strips-group"}).linkOn(n,"strips"),e._gridGroup=t.g().attr({"class":"dxc-grids-group"}).linkOn(n,"grids"),e._panesBorderGroup=t.g().attr({"class":"dxc-border"}).linkOn(n,"border"),e._axesGroup=t.g().attr({"class":"dxc-axes-group"}).linkOn(n,"axes"),e._labelAxesGroup=t.g().attr({"class":"dxc-strips-labels-group"}).linkOn(n,"strips-labels"),e._constantLinesGroup.under=i(),e._seriesGroup=t.g().attr({"class":"dxc-series-group"}).linkOn(n,"series"),e._constantLinesGroup.above=i(),e._scaleBreaksGroup=t.g().attr({"class":"dxc-scale-breaks"}).linkOn(n,"scale-breaks"),e._labelsGroup=t.g().attr({"class":"dxc-labels-group"}).linkOn(n,"labels"),e._crosshairCursorGroup=t.g().attr({"class":"dxc-crosshair-cursor"}).linkOn(n,"crosshair"),e._legendGroup=t.g().attr({"class":"dxc-legend","clip-path":e._getCanvasClipRectID()}).linkOn(n,"legend").linkAppend(n).enableLinks(),e._scrollBarGroup=t.g().attr({"class":"dxc-scroll-bar"}).linkOn(n,"scroll-bar")},_disposeObjectsInArray:function(e,t){H(this[e]||[],function(e,n){t&&n?H(t,function(e,t){n[t]&&n[t].dispose()}):n&&n.dispose()}),this[e]=null},_disposeCore:function(){var e=this,t=function(t){e[t]&&(e[t].dispose(),e[t]=null)},n=function(t){e[t].linkOff()},i=this._disposeObjectsInArray;e._renderer.stopAllAnimations(),i.call(e,"series"),t("_tracker"),t("_crosshair"),e.layoutManager=e._userOptions=e._canvas=e._groupsData=null,n("_stripsGroup"),n("_gridGroup"),n("_axesGroup"),n("_constantLinesGroup"),n("_labelAxesGroup"),n("_panesBorderGroup"),n("_seriesGroup"),n("_labelsGroup"),n("_crosshairCursorGroup"),n("_legendGroup"),n("_scrollBarGroup"),n("_scaleBreaksGroup"),t("_canvasClipRect"),t("_panesBackgroundGroup"),t("_backgroundRect"),t("_stripsGroup"),t("_gridGroup"),t("_axesGroup"),t("_constantLinesGroup"),t("_labelAxesGroup"),t("_panesBorderGroup"),t("_seriesGroup"),t("_labelsGroup"),t("_crosshairCursorGroup"),t("_legendGroup"),t("_scrollBarGroup"),t("_scaleBreaksGroup")},_getAnimationOptions:function(){return this._themeManager.getOptions("animation")},_getDefaultSize:function(){return{width:400,height:400}},_getOption:function(e){return this._themeManager.getOptions(e)},_applySize:function(e){this._rect=e.slice(),this._changes.has("FULL_RENDER")||this._processRefreshData(M)},_resize:function(){this._doRender(this.__renderOptions||{animate:!1,isResize:!0})},_trackerType:"ChartTracker",_createTracker:function(){var e=this;e._tracker=new A[e._trackerType]({seriesGroup:e._seriesGroup,renderer:e._renderer,tooltip:e._tooltip,legend:e._legend,eventTrigger:e._eventTrigger})},_getTrackerSettings:function(){return this._getSelectionModes()},_getSelectionModes:function(){var e=this._themeManager;return{seriesSelectionMode:e.getOptions("seriesSelectionMode"),pointSelectionMode:e.getOptions("pointSelectionMode")}},_updateTracker:function(e){var t=this;t._tracker.update(t._getTrackerSettings()),t._tracker.setCanvases({left:0,right:t._canvas.width,top:0,bottom:t._canvas.height},e)},_createCanvasFromRect:function(e){var t=this._canvas;return G({left:e[0],top:e[1],right:t.width-e[2],bottom:t.height-e[3],width:t.width,height:t.height})},_doRender:function(e){var t=this; if(0!==t._canvas.width||0!==t._canvas.height){t._resetIsReady();var n=t._prepareDrawOptions(e),i=n.recreateCanvas;t.__originalCanvas=t._canvas,t._canvas=b({},t._canvas),i?t.__currentCanvas=t._canvas:t._canvas=t.__currentCanvas,i&&t._updateCanvasClipRect(t._canvas),this._canvas=this._createCanvasFromRect(this._rect),t._renderer.stopAllAnimations(!0),t._cleanGroups();var o=new Date;t._renderElements(n),t._lastRenderingTime=new Date-o}},_layoutAxes:_,_renderElements:function(e){var t,n,i,o=this,a=o._prepareToRender(e),r=o._isRotated(),s=o._isLegendInside(),l=[];b({},o._canvas);o._renderer.lock(),e.drawLegend&&o._legend&&o._legendGroup.linkAppend(),o.layoutManager.setOptions(o._layoutManagerOptions());var u=o._getLayoutTargets();this._layoutAxes(function(t){var n=t?b({},e,{animate:!1}):e,i=o._renderAxes(n,a);o._shrinkAxes(t,i)}),o._applyClipRects(a),o._appendSeriesGroups(),o._createCrosshairCursor(),u.forEach(function(e){var t=e.canvas;l.push({left:t.left,right:t.width-t.right,top:t.top,bottom:t.height-t.bottom})}),o._scrollBar&&(t=o._argumentAxes[0].getTranslator().getBusinessRange(),"discrete"===t.axisType&&t.categories&&t.categories.length<=1||"discrete"!==t.axisType&&t.min===t.max?n=i=void 0:(n=t.minVisible,i=t.maxVisible),o._scrollBar.init(t,!o._argumentAxes[0].getOptions().valueMarginsEnabled).setPosition(n,i)),o._updateTracker(l),o._updateLegendPosition(e,s),o._applyPointMarkersAutoHiding(),o._renderSeries(e,r,s),o._renderer.unlock()},_createCrosshairCursor:_,_appendSeriesGroups:function(){this._seriesGroup.linkAppend(),this._labelsGroup.linkAppend(),this._appendAdditionalSeriesGroups()},_renderSeries:function(e,t,n){this._calculateSeriesLayout(e,t),this._renderSeriesElements(e,t,n)},_calculateSeriesLayout:function(e,t){e.hideLayoutLabels=this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),t)&&!this._themeManager.getOptions("adaptiveLayout").keepLabels,this._updateSeriesDimensions(e)},_renderSeriesElements:function(e,t,n){var i,o,a=this,r=a.series,s=r.length,l=a._themeManager.getOptions("resolveLabelOverlapping");for(i=0;i=0&&nj)&&(i=j),t.textOpacity=j),t.states={hover:n.hover,selection:n.selection,normal:N({},n.normal,{opacity:i})},t})},_getLegendOptions:function(e){return{legendData:{text:e[this._legendItemTextField],id:e.index,visible:!0},getLegendStyles:e.getLegendStyles(),visible:e.isVisible()}},_disposeSeries:function(e){var t=this;t.series&&(W(e)?(t.series[e].dispose(),t.series.splice(e,1)):(H(t.series,function(e,t){return t.dispose()}),t.series.length=0)),t.series&&t.series.length||(t.series=[])},_disposeSeriesFamilies:function(){var e=this;H(e.seriesFamilies||[],function(e,t){t.dispose()}),e.seriesFamilies=null,e._needHandleRenderComplete=!0},_simulateOptionChange:function(e,t,n){var i=this,o=k.compileSetter(e);o(i._options,t,{functionsAsIs:!0,merge:!i._getOptionsByReference()[e]}),i._notifyOptionChanged(e,t,n),i._changes.reset()},_optionChanged:function(e){this._themeManager.resetOptions(e.name),this.callBase.apply(this,arguments)},_applyChanges:function(){var e=this;e._themeManager.update(e._options),e.callBase.apply(e,arguments)},_optionChangesMap:{animation:"ANIMATION",dataSource:"DATA_SOURCE",palette:"PALETTE",paletteExtensionMode:"PALETTE",legend:"FORCE_DATA_INIT",seriesTemplate:"FORCE_DATA_INIT","export":"FORCE_RENDER",valueAxis:"AXES_AND_PANES",argumentAxis:"AXES_AND_PANES",commonAxisSettings:"AXES_AND_PANES",panes:"AXES_AND_PANES",defaultPane:"AXES_AND_PANES",useAggregation:"AXES_AND_PANES",containerBackgroundColor:"AXES_AND_PANES",rotated:"ROTATED",autoHidePointMarkers:"REFRESH_SERIES_REINIT",customizePoint:"REFRESH_SERIES_REINIT",customizeLabel:"REFRESH_SERIES_REINIT",scrollBar:"SCROLL_BAR"},_optionChangesOrder:["ROTATED","PALETTE","REFRESH_SERIES_REINIT","AXES_AND_PANES","INIT","REINIT","DATA_SOURCE","REFRESH_SERIES_DATA_INIT","DATA_INIT","FORCE_DATA_INIT","REFRESH_AXES","CORRECT_AXIS"],_customChangesOrder:["ANIMATION","REFRESH_SERIES_FAMILIES","FORCE_RENDER","VISUAL_RANGE","SCROLL_BAR","CHART_TOOLTIP","REINIT","REFRESH","FULL_RENDER"],_change_ANIMATION:function(){this._renderer.updateAnimationOptions(this._getAnimationOptions())},_change_DATA_SOURCE:function(){this._needHandleRenderComplete=!0,this._updateDataSource()},_change_PALETTE:function(){this._themeManager.updatePalette(),this._refreshSeries("DATA_INIT")},_change_REFRESH_SERIES_DATA_INIT:function(){this._refreshSeries("DATA_INIT")},_change_DATA_INIT:function(){this.series&&!this.needToPopulateSeries||this._changes.has("FORCE_DATA_INIT")||this._dataInit()},_change_FORCE_DATA_INIT:function(){this._dataInit()},_change_REFRESH_SERIES_FAMILIES:function(){this._processSeriesFamilies(),this._populateBusinessRange(),this._processRefreshData(R)},_change_FORCE_RENDER:function(){this._processRefreshData(R)},_change_AXES_AND_PANES:function(){this._refreshSeries("INIT")},_change_ROTATED:function(){this._createScrollBar(),this._refreshSeries("INIT")},_change_REFRESH_SERIES_REINIT:function(){this._refreshSeries("INIT")},_change_REFRESH_AXES:function(){var e=this;G(e._canvas),e._reinitAxes(),e._requestChange(["CORRECT_AXIS","FULL_RENDER"])},_change_SCROLL_BAR:function(){this._createScrollBar(),this._processRefreshData(R)},_change_CHART_TOOLTIP:function(){this._organizeStackPoints()},_change_REINIT:function(){this._processRefreshData(O)},_refreshSeries:function(e){this.needToPopulateSeries=!0,this._requestChange([e])},_change_CORRECT_AXIS:function(){this._correctAxes()},_doRefresh:function(){var e=this._currentRefreshData;e&&(this._currentRefreshData=null,this._renderer.stopAllAnimations(!0),this[e]())},_updateCanvasClipRect:function(e){var t=this,n=Math.max(e.width-e.left-e.right,0),i=Math.max(e.height-e.top-e.bottom,0);t._canvasClipRect.attr({x:e.left,y:e.top,width:n,height:i}),t._backgroundRect.attr({x:e.left,y:e.top,width:n,height:i})},_getCanvasClipRectID:function(){return this._canvasClipRect.id},_dataSourceChangedHandler:function(){this._changes.has("INIT")?this._requestChange(["DATA_INIT"]):this._requestChange(["FORCE_DATA_INIT"])},_dataInit:function(){this._dataSpecificInit(!0)},_processSingleSeries:function(e){e.createPoints(!1)},_handleSeriesDataUpdated:function(){var e=this;this._getVisibleSeries().some(function(e){return e.useAggregation()})&&this._populateMarginOptions(),this.series.forEach(function(t){return e._processSingleSeries(t)},this)},_dataSpecificInit:function(e){var t=this;t.series&&!t.needToPopulateSeries||(t.series=t._populateSeries()),t._repopulateSeries(),t._seriesPopulatedHandlerCore(),t._populateBusinessRange(),t._tracker.updateSeries(t.series,this._changes.has("INIT")),t._updateLegend(),e&&this._requestChange(["FULL_RENDER"])},_forceRender:function(){this._doRender({force:!0})},_repopulateSeries:function(){var e=this,t=e._themeManager,n=e._dataSourceItems(),i=t.getOptions("dataPrepareSettings"),o=t.getOptions("seriesTemplate");o&&e._populateSeries(n),e._groupSeries();var a=I.validateData(n,e._groupsData,e._incidentOccurred,i);t.resetPalette(),e.series.forEach(function(e){e.updateData(a[e.getArgumentField()])}),e._handleSeriesDataUpdated(),e._organizeStackPoints()},_organizeStackPoints:function(){var e=this,t=e._themeManager,n=t.getOptions("tooltip").shared,i={};H(e.series||[],function(t,o){e._resetStackPoints(o),n&&e._prepareStackPoints(o,i)})},_renderCompleteHandler:function(){var e=this,t=!0;e._needHandleRenderComplete&&(H(e.series,function(e,n){t=t&&n.canRenderCompleteHandle()}),t&&(e._needHandleRenderComplete=!1,e._eventTrigger("done",{target:e})))},_dataIsReady:function(){return W(this.option("dataSource"))&&this._dataIsLoaded()},_populateSeriesOptions:function(e){for(var t,n,i=this,o=i._themeManager,a=o.getOptions("seriesTemplate"),r=a?F.processSeriesTemplate(a,e||[]):i.option("series"),s=$(r)?r:r?[r]:[],l=i._getExtraOptions(),u=[],c=function(e){i._specialProcessSeries(),i._populateBusinessRange(e&&e.getValueAxis(),!0),i._renderer.stopAllAnimations(!0),i._updateLegend(),i._requestChange(["FULL_RENDER"])},d=0;d=0&&e.slice(i).forEach(function(e){Y(e[n])&&(t[n]+=e[n],e[n]=void 0)})}function o(e){e.forEach(function(e){e.valueType=e.valueAxisType=null,e.series.forEach(function(e){e.updateDataType({})}),e.valueAxis&&e.valueAxis.resetTypes(G)})}function a(e,t,n){var i=t?function(e,t){return e-t}:function(e,t){return t-e};return e.sort(function(e,t){var o=n(e),a=n(t),r=Y(o)?1:0,s=Y(a)?1:0;return r&&s?i(o,a):i(r,s)}),e}function r(e){e&&e.forEach(function(e){e.resetTypes(j)})}function s(e,t){var n=[];return e.forEach(function(e){var i=t(e);void 0!==i&&n.push(i)}),n}function l(e,t){var n=e.argumentOptions&&e.argumentOptions.categories;e.groups.forEach(function(e,n){var i=e.valueOptions&&e.valueOptions.categories;i&&(e.valueOptions.categories=s(i,t[n+1]))}),n&&(e.argumentOptions.categories=s(n,t[0]))}function u(e,t,n){return e<=0&&null!==e&&(n("E2004",[t]),e=null),e}function c(e){return e}function d(e,t){var n=t;return t===F||Q(e)?n=F:t===H||J(e)?n=H:ee(e)&&(n=L),n}function h(e,t,n,i){return e!==F||t!==$&&t!==W&&t!==N||i("E2002"),t===W?W:n||t===z||e===F?z:t===N?N:$}function p(e,t,n){e&&n(ee(e)||J(e)||Q(e)?"E2004":"E2003",[t])}function f(e,t,n){var i=e?U(e):c,o=t===W?u:c,a=t!==z?function(e){return isFinite(e)||void 0===e?e:null}:c;return function(e,t){var r=function(e){return o(e,t,n)},s=r(a(i(e)));return void 0===s&&p(e,t,n),s}}function g(e,t){var n,i,o=f(e.argumentType,e.argumentAxisType,t),a=[o],r={},s=[];e.groups.forEach(function(e,s){e.series.forEach(function(l){i=f(e.valueType,e.valueAxisType,t),n=f(L,$,t),r[l.getArgumentField()]=o,l.getValueFields().forEach(function(e){a[s+1]=i,r[e]=i}),l.getSizeField()&&(r[l.getSizeField()]=n)})});for(var u in r)s.push([u,r[u]]);return s.length&&l(e,a),s}function _(e,t){var n,i,o,a=t.length,r=q({},e);for(n=0;no));++i);return i}function y(e,t,n,o){o=o||{};var r=o.mode,s={};if(r&&"none"!==r){s[t]=String(o.groupName||"others"),s[n]=0;var l=a(e.slice(),!1,function(e){return e[n]});i(l,s,n,"smallValueThreshold"===r?v(l,n,o.threshold):o.topCount),s[n]&&e.push(s)}}function b(e,t){var n=t.groups[0]&&t.groups[0].series[0],i=n&&("pie"===n.type||"doughnut"===n.type||"donut"===n.type);i&&t.groups.forEach(function(t){t.series.forEach(function(t){y(e,t.getArgumentField(),t.getValueFields()[0],t.getOptions().smallValuesGrouping)})})}function x(e,t,n){n[e]||(t.push(e),n[e]=!0)}function w(e){var t=[],n={};return e.groups.forEach(function(e){e.series.forEach(function(e){x(e.getArgumentField(),t,n)})}),t}function C(e,t){var n=e-t;return isNaN(n)?Y(e)?Y(t)?0:-1:1:n}function k(e,t){return e.slice().sort(function(e,n){return C(e[t],n[t])})}function S(e,t){return e.slice().sort(t)}function I(e,t){return e.series.forEach(function(n){n.getValueFields().forEach(function(n){e.valueType=d(t[n],e.valueType)})}),e.valueType}function T(e){var t={};return e.forEach(function(e,n){t[e]=n}),function(e,n){return a(e.slice(),!0,function(e){return t[e[n]]})}}function D(e,t,n,i){var o,a={},r=t.argumentAxisType===z,s=r&&t.argumentOptions&&t.argumentOptions.categories,l=function(e){return e},u=n.sortingMethod;return!s&&X(u)&&(e=S(e,u)),r&&(t.categories=A(e,i,s)),s||!X(u)&&t.argumentType===F&&!n._skipArgumentSorting?l=T(t.categories):u===!0&&t.argumentType!==F&&(l=k,o=r),i.forEach(function(t){a[t]=l(e,t)}),o&&(t.categories=t.categories.sort(C)),a}function E(e,t){return e.map(function(e){return e.valueOf()}).indexOf(t.valueOf())===-1}function A(e,t,n){var i=n?n.slice():[];return t.forEach(function(t){e.forEach(function(e){var n=e[t];Y(n)&&E(i,n)&&i.push(n)})}),i}function O(e,t,n){return e.forEach(function(e){n.argumentType=d(t[e.getArgumentField()],n.argumentType)}),n.argumentType}function B(e,t,n){var i,o=[],a=[],r=t.argumentOptions&&K(t.argumentOptions.argumentType);t.groups.forEach(function(e){if(e.series.length){var n=e.valueOptions&&K(e.valueOptions.valueType);e.valueType=n,t.argumentType=r,!n&&o.push(e),!r&&a.push(e)}}),(o.length||a.length)&&(i=o.map(function(e,t){return t}),e.some(function(e){var r;if(o.forEach(function(t,n){I(t,e)&&i.indexOf(n)>=0&&i.splice(n,1)}),r||a.forEach(function(n){r=O(n.series,e,t)}),!n&&r&&0===i.length)return!0}))}function P(e,t){var n=e.argumentOptions||{},i=n&&n.categories||[],o=h(e.argumentType,n.type,!!i.length,t);e.groups.forEach(function(n){var i=n.valueOptions||{},a=i.categories||[],r=h(n.valueType,i.type,!!a.length,t);n.series.forEach(function(t){var a={};a.argumentAxisType=o,a.valueAxisType=r,e.argumentAxisType=e.argumentAxisType||a.argumentAxisType,n.valueAxisType=n.valueAxisType||a.valueAxisType,a.argumentType=e.argumentType,a.valueType=n.valueType,a.showZero=i.showZero,t.updateDataType(a)}),n.valueAxisType=n.valueAxisType||r,n.valueAxis&&(n.valueAxis.setTypes(n.valueAxisType,n.valueType,G),n.valueAxis.validate())}),e.argumentAxisType=e.argumentAxisType||o,e.argumentAxes&&e.argumentAxes.forEach(function(t){t.setTypes(e.argumentAxisType,e.argumentType,j),t.validate()})}function R(e,t){var n,i,o,a,r=[],s=Y(e),l=s&&!Z(e);if(s&&!l)for(n=0,i=e.length,o=0;n1&&!!e)},_createPoints:function(){var e=this,t=e.pointsByArgument||{},n=e._getData();e.pointsByArgument={},e._calculateErrorBars(n);var i={},o=n.reduce(function(n,o){if(e._checkData(o,i)){var a=n.length,r=e._getOldPoint(o,t,a),s=e._createPoint(o,a,r);n.push(s)}return n},[]);for(var a in i)i[a]===n.length&&e._incidentOccurred("W2002",[e.name,a]);Object.keys(t).forEach(function(n){return e._disposePoints(t[n])}),e._points=o},_removeOldSegments:function(){var e=this,t=e._segments.length;m(e._graphics.splice(t,e._graphics.length)||[],function(t,n){e._removeElement(n)}),e._trackers&&m(e._trackers.splice(t,e._trackers.length)||[],function(e,t){t.remove()})},_drawElements:function(e,t,n){var i=this,o=i._points||[],a=o[0]&&o[0].hasValue()&&i._options.closed,r={markers:i._markersGroup,errorBars:i._errorBarGroup};i._drawnPoints=[],i._graphics=i._graphics||[],i._segments=[];var s=o.reduce(function(o,a){var s=o[o.length-1];return a.translated&&!n||(a.translate(),!n&&a.setDefaultCoords()),a.hasValue()&&a.hasCoords()?(n&&i._drawPoint({point:a,groups:r,hasAnimation:e,firstDrawing:t}),s.push(a)):a.hasValue()?a.setInvisibility():s.length&&o.push([]),o},[[]]);s.forEach(function(t,n){t.length&&i._drawSegment(t,e,n,a&&n===this.length-1)},s),i._firstDrawing=!o.length,i._removeOldSegments(),e&&i._animate(t)},draw:function(e,t,n){var i=this,o=i._firstDrawing;return i._legendCallback=n||i._legendCallback,i._visible?(i._appendInGroup(),i._applyVisibleArea(),i._setGroupsSettings(e,o),!o&&i._drawElements(!1,o,!1),i._drawElements(e,o,!0),t&&i.hideLabels(),void(i.isSelected()?i._changeStyle(i.lastSelectionMode,void 0,!0):i.isHovered()&&i._changeStyle(i.lastHoverMode,void 0,!0))):(e=!1,void i._group.remove())},_setLabelGroupSettings:function(e){var t={"class":"dxc-labels","pointer-events":"none"};this._applyElementsClipRect(t),this._applyClearingSettings(t),e&&(t.opacity=.001),this._labelsGroup.attr(t).append(this._extGroups.labelsGroup)},_checkType:function(e){return!!f.mixins[e][this.type]},_checkPolarBarType:function(e,t){return"polar"===e&&t.spiderWidget&&this.type.indexOf("bar")!==-1},_resetType:function(e,t){var n,i;if(e){i=f.mixins[t][e];for(n in i)delete this[n]}},_setType:function(e,t){var n,i=f.mixins[t][e];for(n in i)this[n]=i[n]},_setPointsView:function(e,t){this.getPoints().forEach(function(n){t!==n&&n.setView(e)})},_resetPointsView:function(e,t){this.getPoints().forEach(function(n){t!==n&&n.resetView(e)})},_resetNearestPoint:function(){var e=this;e._nearestPoint&&null!==e._nearestPoint.series&&e._nearestPoint.resetView(L),e._nearestPoint=null},_setSelectedState:function(e){var t=this;t.lastSelectionMode=w(e||t._options.selectionMode),t.fullState=t.fullState|V,t._resetNearestPoint(),t._changeStyle(t.lastSelectionMode),t.lastSelectionMode!==G&&t.isHovered()&&o(t.lastHoverMode)&&t._resetPointsView(L)},_releaseSelectedState:function(){var e=this;e.fullState=e.fullState&~V,e._changeStyle(e.lastSelectionMode,z), e.lastSelectionMode!==G&&e.isHovered()&&o(e.lastHoverMode)&&e._setPointsView(L)},isFullStackedSeries:function(){return 0===this.type.indexOf("fullstacked")},isStackedSeries:function(){return 0===this.type.indexOf("stacked")},isFinancialSeries:function(){return"stock"===this.type||"candlestick"===this.type},_canChangeView:function(){return!this.isSelected()&&w(this._options.hoverMode)!==G},_changeStyle:function(e,t,n){var i=this,a=i.fullState,r=[H,L,z,z];"none"===i.lastHoverMode&&(a&=~F),"none"===i.lastSelectionMode&&(a&=~V),o(e)&&!n&&(t?i._resetPointsView(t):i._setPointsView(r[a])),i._legendCallback([W,$,N,N][a]),i._applyStyle(i._styles[r[a]])},updateHover:function(e,t){var n=this,i=n._nearestPoint,o=n.isHovered()&&n.lastHoverMode===q&&n.getNeighborPoint(e,t);o===i||n.isSelected()&&n.lastSelectionMode!==G||(n._resetNearestPoint(),o&&(o.setView(L),n._nearestPoint=o))},_getMainAxisName:function(){return this._options.rotated?"X":"Y"},areLabelsVisible:function(){return!y(this._options.maxLabelCount)||this._points.length<=this._options.maxLabelCount},getLabelVisibility:function(){return this.areLabelsVisible()&&this._options.label&&this._options.label.visible},customizePoint:function e(t,n){var i,o,a,r,s,l,u=this,c=u._options,e=c.customizePoint,d=c.customizeLabel;d&&d.call&&(i=_({seriesName:u.name},n),i.series=u,a=d.call(i,i),s=a&&!x(a),a=s?_(!0,{},c.label,a):null),e&&e.call&&(i=i||_({seriesName:u.name},n),i.series=u,r=e.call(i,i),l=r&&!x(r)),(s||l)&&(o=u._parsePointOptions(u._preparePointOptions(r),a||c.label,n,t),o.styles.useLabelCustomOptions=s,o.styles.usePointCustomOptions=l,t.updateOptions(o))},show:function(){this._visible||this._changeVisibility(!0)},hide:function(){this._visible&&this._changeVisibility(!1)},_changeVisibility:function(e){var t=this;t._visible=t._options.visible=e,t._updatePointsVisibility(),t.hidePointTooltip(),t._options.visibilityChanged(t)},_updatePointsVisibility:C,hideLabels:function(){m(this._points,function(e,t){t._label.draw(!1)})},_parsePointOptions:function(e,t,n,i){var o=this,r=o._options,s=o._createPointStyles(e,n,i),l=_({},e,{type:r.type,rotated:r.rotated,styles:s,widgetType:r.widgetType,visibilityChanged:r.visibilityChanged});return l.label=a(t,s.normal.fill),o.areErrorBarsVisible()&&(l.errorBars=r.valueErrorBar),l},_preparePointOptions:function(e){var t=this._getOptionsForPoint();return e?d(t,e):t},_getMarkerGroupOptions:function(){return _(!1,{},this._getOptionsForPoint(),{hoverStyle:{},selectionStyle:{}})},_getAggregationMethod:function(e){var t,n=this.getOptions().aggregation,i=w(n.method),o="custom"===i&&n.calculate;return t=e?function(e){var t=e.data;return t[0]}:this._aggregators[i]||this._aggregators[this._defaultAggregator],o||t},_resample:function(e,t){var n=e.interval,i=e.ticks,o=this,a=o.argumentAxisType===M||o.valueAxisType===M,r=0,s=this._getPointDataSelector(),l=o.getOptions(),u=function(e,t,n){if(t){var i=function(t){var i=t&&s(t,l);i&&o._checkData(i)&&(i.aggregationInfo=n,e.push(i))};t.length?t.forEach(i):i(t)}},c=this._getAggregationMethod(a);if(a)return t.reduce(function(e,t,i,a){if(e[1].push(t),i===a.length-1||(i+1)%n===0){var r=e[1],s={aggregationInterval:n,data:r.map(p)};u(e[0],c(s,o)),e[1]=[]}return e},[[],[]])[0];for(var d=[],h=1;h=g&&_.push(t[r]),r++;var m={intervalStart:g,intervalEnd:f,aggregationInterval:n,data:_.map(p)};u(d,c(m,o),m)}return o._endUpdateData(),d},canRenderCompleteHandle:function(){var e=this._canRenderCompleteHandle;return delete this._canRenderCompleteHandle,!!e},isHovered:function(){return!!(1&this.fullState)},isSelected:function(){return!!(2&this.fullState)},isVisible:function(){return this._visible},getAllPoints:function(){return this._createAllAggregatedPoints(),(this._points||[]).slice()},getPointByPos:function(e){return this._createAllAggregatedPoints(),(this._points||[])[e]},getVisiblePoints:function(){return(this._drawnPoints||[]).slice()},selectPoint:function(e){e.isSelected()||(l(e,this._legendCallback),this._eventPipe({action:ne,target:e}),this._eventTrigger(U,{target:e}))},deselectPoint:function(e){e.isSelected()&&(u(e,this._legendCallback),this._eventPipe({action:ie,target:e}),this._eventTrigger(U,{target:e}))},hover:function(e){var t=this,n=t._eventTrigger;t.isHovered()||(t.lastHoverMode=w(e||t._options.hoverMode),t.fullState=t.fullState|F,t._changeStyle(t.lastHoverMode,void 0,t.isSelected()&&t.lastSelectionMode!==G),n(Y,{target:t}))},clearHover:function(){var e=this,t=e._eventTrigger;e.isHovered()&&(e._resetNearestPoint(),e.fullState=e.fullState&~F,e._changeStyle(e.lastHoverMode,L,e.isSelected()&&e.lastSelectionMode!==G),t(Y,{target:e}))},hoverPoint:function(e){var t=this;e.isHovered()||(e.clearHover(),r(e,t._legendCallback),t._canChangeView()&&t._applyStyle(t._styles.hover),t._eventPipe({action:J,target:e}),t._eventTrigger(X,{target:e}))},clearPointHover:function(){var e=this;e.getPoints().some(function(t){return!!t.isHovered()&&(s(t,e._legendCallback),e._canChangeView()&&e._applyStyle(e._styles.normal),e._eventPipe({action:ee,target:t}),e._eventTrigger(X,{target:t}),!0)})},showPointTooltip:function(e){i(this._extGroups.seriesGroup,"showpointtooltip",e)},hidePointTooltip:function(e){i(this._extGroups.seriesGroup,"hidepointtooltip",e)},select:function(){var e=this;e.isSelected()||(e._setSelectedState(e._options.selectionMode),e._eventPipe({action:te,target:e}),e._group.toForeground(),e._eventTrigger(K,{target:e}))},clearSelection:function(){var e=this;e.isSelected()&&(e._releaseSelectedState(),e._eventTrigger(K,{target:e}))},getPointsByArg:function(e,t){var n=this,i=e.valueOf(),o=n.pointsByArgument[i];return o||t||!n._createAllAggregatedPoints()||(o=n.pointsByArgument[i]),o||[]},_createAllAggregatedPoints:function(){return!(!this.useAggregation()||this._useAllAggregatedPoints)&&(this.createPoints(!0),!0)},getPointsByKeys:function(e){return this.getPointsByArg(e)},notify:function(e){var t=this,n=e.action,i=t._seriesModes,o=e.target,a=o.getOptions(),r=w(a.hoverMode),s=w(a.selectionMode);n===J?t._hoverPointHandler(o,r,e.notifyLegend):n===ee?t._clearPointHoverHandler(o,r,e.notifyLegend):n===te?o!==t&&"single"===i.seriesSelectionMode&&t.clearSelection():n===ne?("single"===i.pointSelectionMode&&t.getPoints().some(function(e){return!(e===o||!e.isSelected())&&(t.deselectPoint(e),!0)}),t._selectPointHandler(o,s)):n===ie&&t._deselectPointHandler(o,s)},_selectPointHandler:function(e,t){var n=this;t===Z?e.series===n&&n._setPointsView(z,e):t===Q&&n.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(t){t!==e&&t.setView(z)})},_deselectPointHandler:function(e,t){t===Z?e.series===this&&this._resetPointsView(z,e):t===Q&&this.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(t){t!==e&&t.resetView(z)})},_hoverPointHandler:function(e,t,n){var i=this;e.series!==i&&t===Q?(i.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(e){e.setView(L)}),n&&i._legendCallback(e)):t===Z&&e.series===i&&i._setPointsView(L,e)},_clearPointHoverHandler:function(e,t,n){var i=this;t===Q?(e.series!==i&&i.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(e){e.resetView(L)}),n&&i._legendCallback(e)):t===Z&&e.series===i&&i._resetPointsView(L,e)},_deletePoints:function(){var e=this;e._disposePoints(e._points),e._points=e._drawnPoints=null},_deleteTrackers:function(){var e=this;m(e._trackers||[],function(e,t){t.remove()}),e._trackersGroup&&e._trackersGroup.dispose(),e._trackers=e._trackersGroup=null},dispose:function(){var e=this;e._deletePoints(),e._group.dispose(),e._labelsGroup&&e._labelsGroup.dispose(),e._errorBarGroup&&e._errorBarGroup.dispose(),e._deleteTrackers(),e._group=e._extGroups=e._markersGroup=e._elementsGroup=e._bordersGroup=e._labelsGroup=e._errorBarGroup=e._graphics=e._rangeData=e._renderer=e._styles=e._options=e._pointOptions=e._drawnPoints=e.pointsByArgument=e._segments=e._prevSeries=null},correctPosition:C,drawTrackers:C,getNeighborPoint:C,areErrorBarsVisible:C,getMarginOptions:function(){return this._patchMarginOptions({percentStick:this.isFullStackedSeries()})},getColor:function(){return this.getLegendStyles().normal.fill},getOpacity:function(){return this._options.opacity},getStackName:function(){return this._stackName},getBarOverlapGroup:function(){return this._options.barOverlapGroup},getPointByCoord:function(e,t){var n=this.getNeighborPoint(e,t);return n&&n.coordsIn(e,t)?n:null},getValueAxis:function(){return this._valueAxis},getArgumentAxis:function(){return this._argumentAxis},getMarkersGroup:function(){return this._markersGroup},getRenderer:function(){return this._renderer}}},function(e,t,n){function i(e,t){var n,i=1/0;return(0,p.each)(t,function(t,o){var a=e[0]-o[0],r=e[1]-o[1],s=a*a+r*r;s0&&e.stroke&&"none"!==e.stroke)}function l(e){return e&&e["stroke-width"]>0&&e.stroke&&"none"!==e.stroke}function u(e,t){var n=t.format;return e.valueText=(0,d.format)(e.value,n),e.argumentText=(0,d.format)(e.argument,t.argumentFormat),void 0!==e.percent&&(e.percentText=(0,d.format)(e.percent,{type:"percent",precision:n&&n.percentPrecision})),void 0!==e.total&&(e.totalText=(0,d.format)(e.total,n)),void 0!==e.openValue&&(e.openValueText=(0,d.format)(e.openValue,n)),void 0!==e.closeValue&&(e.closeValueText=(0,d.format)(e.closeValue,n)),void 0!==e.lowValue&&(e.lowValueText=(0,d.format)(e.lowValue,n)),void 0!==e.highValue&&(e.highValueText=(0,d.format)(e.highValue,n)),void 0!==e.reductionValue&&(e.reductionValueText=(0,d.format)(e.reductionValue,n)),t.customizeText?t.customizeText.call(e,e):e.valueText}function c(e){this._renderer=e.renderer,this._container=e.labelsGroup,this._point=e.point,this._strategy=e.strategy,this._rowCount=1}var d=n(64),h=n(11),p=n(3),f=n(0),g=Math,_=g.round,m=g.floor,v=g.abs,y=12,b=8,x=4,w={isLabelInside:function(e,t){var n=e.x+e.width/2,i=e.y+e.height/2;return t.x<=n&&n<=t.x+t.width&&t.y<=i&&i<=t.y+t.height},prepareLabelPoints:function(e,t,n,i,a){var r,s=t.x,l=s+t.width/2,u=s+t.width-1,c=t.y,d=c+t.height/2,h=c+t.height-1,p=v(i)%90===0;return r=a[0]>s&&a[0]c&&a[1]t.x+t.width||e.x+e.widtht.x+t.r||e.x+e.width=u&&u>=s||o<=u&&u<=s)&&e.push([(u-o)*(a-i)/(s-o)+i,u]):(i>=r&&r>=a||i<=r&&r<=a)&&e.push([r,(r-i)*(s-o)/(a-i)+o]),e},[])},isHorizontal:function(e,t){return e.x>t.x||t.x>e.x+e.width},getFigureCenter:C.getFigureCenter,findFigurePoint:function(e,t,n){if(!n)return[e.x,e.y];var i=t[0],o=_(e.x+(e.y-t[1])/Math.tan((0,h.degreesToRadians)(e.angle))),a=[e.x,e.y,o,t[1]];return e.x<=o&&o<=i||i<=o&&o<=e.x||(v(e.x-i)n?e.max:n}function o(e,t){return e===m?function(e,t,n){t!==n&&e.categories.push(n),e.categories.push(t)}:t?function(e,n){var o=t.calculateInterval(n,e.prevValue),a=e.interval;e.interval=(a=0||e.type.toLowerCase().indexOf("area")>=0}function c(e){var t=o(e.valueAxisType),n=e.getArgumentAxis(),i=n&&e.getArgumentAxis().visualRange()||{},a=u(e)?l:_;if(n&&n.getMarginOptions().checkInterval){var r=e.getArgumentAxis().getTranslator().getBusinessRange(),s=f(r,!1),c=r.interval;isFinite(c)&&g(i.startValue)&&g(i.endValue)&&(i.startValue=s(i.startValue,c,-1),i.endValue=s(i.endValue,c))}var h=d(i);return function(e,n,o,r){var s=n.argument;return n.hasValue()?(h(s)?(e.startCalc||(e.startCalc=!0,a(t,e,n,r[o-1],i.startValue)),t(e,n.getMinValue(),n.getMaxValue())):!i.categories&&g(i.startValue)&&s>i.startValue&&(e.startCalc||a(t,e,n,r[o-1],i.startValue),e.endCalc=!0,a(t,e,n,r[o-1],i.endValue)),e):e}}function d(e){if(e.categories){var t=e.categories.reduce(function(e,t){return e[t.valueOf()]=!0,e},{});return function(e){return g(e)&&t[e.valueOf()]}}return g(e.startValue)||g(e.endValue)?g(e.endValue)?g(e.startValue)?function(t){return t>=e.startValue&&t<=e.endValue}:function(t){return t<=e.endValue}:function(t){return t>=e.startValue}:function(){return!0}}var h=n(11),p=h.unique,f=h.getAddFunction,g=n(1).isDefined,_=n(4).noop,m="discrete";e.exports={getViewPortFilter:d,getArgumentRange:function(e){var t=e._data||[],n={};if(t.length)if(e.argumentAxisType===m)n={categories:t.map(function(e){return e.argument})};else{var i;if(t.length>1){var o=e.getArgumentAxis().calculateInterval(t[0].argument,t[1].argument),a=e.getArgumentAxis().calculateInterval(t[t.length-1].argument,t[t.length-2].argument);i=Math.min(o,a)}n={min:t[0].argument,max:t[t.length-1].argument,interval:i}}return n},getRangeData:function(e){var t=e.getPoints(),n=e.useAggregation(),i=o(e.argumentAxisType,t.length>1&&e.getArgumentAxis()),s=o(e.valueAxisType),l=c(e),u=t.reduce(function(e,t,n,o){var a=t.argument;return i(e.arg,a,a),t.hasValue()&&(s(e.val,t.getMinValue(),t.getMaxValue()),l(e.viewport,t,n,o)),e},{arg:a(e.argumentAxisType,e.argumentType,t.length?t[0].argument:void 0),val:a(e.valueAxisType,e.valueType,t.length?e.getValueRangeInitialValue():void 0),viewport:a(e.valueAxisType,e.valueType,t.length?e.getValueRangeInitialValue():void 0)});if(n){var d=this.getArgumentRange(e);if(e.argumentAxisType===m)u.arg=d;else{var h=e.getArgumentAxis().getViewport();(g(h.startValue)||g(h.length))&&i(u.arg,d.min,d.min),(g(h.endValue)||g(h.length)&&g(h.startValue))&&i(u.arg,d.max,d.max)}}return r(u.arg),r(u.val),u},getViewport:function(e){var t=e.getPoints(),n={},i=c(e);return n=a(e.valueAxisType,e.valueType,t.length?e.getValueRangeInitialValue():void 0),t.some(function(e,o){return i(n,e,o,t),n.endCalc}),n},getPointsInViewPort:function(e){var t=d(e.getArgumentAxis().visualRange()||{}),n=e.getValueAxis().visualRange()||{},i=d(n),o=e.getPoints(),a=function(e,t,o){var a=t.getMinValue(),r=t.getMaxValue(),s=i(a),l=i(r);s&&e.push(a),r!==a&&l&&e.push(r),!o||s||l||(e.length?e.push(n.endValue):e.push(n.startValue))},r=u(e)?function(e,n,i){var o=n[i],r=n[i-1],s=n[i+1];s&&t(s.argument)&&a(e[1],o,!0),r&&t(r.argument)&&a(e[1],o,!0)}:_,s=function(e,n,i){return t(n.argument)?a(e[0],n):r(e,o,i),e};return o.reduce(s,[[],[]])}}},function(e,t,n){var i=n(11).map;e.exports={logarithmic:"logarithmic",discrete:"discrete",numeric:"numeric",left:"left",right:"right",top:"top",bottom:"bottom",center:"center",horizontal:"horizontal",vertical:"vertical",convertTicksToValues:function(e){return i(e||[],function(e){return e.value})},validateOverlappingMode:function(e){return"ignore"===e||"none"===e?e:"hide"},getTicksCountInRange:function(e,t,n){var i=1;if(e.length>1)for(;i=n);i++);return i},areLabelsOverlap:function(e,t,n,i){var o=e.x>t.x,a=e.y>t.y,r=e.x,s=t.x,l=e.width,u=t.width;"left"===i?(r+=l/2,s+=u/2):"right"===i&&(r-=l/2,s-=u/2);var c=o?s+u+n>r:r+l+n>s,d=a?t.y+t.height>e.y:e.y+e.height>t.y;return c&&d}}},function(e,t,n){function i(e,t){var n,i,o,a,r="logarithmic"===t.axisType?function(e){return _(e,t.base)}:function(e){return e},s=[],l=e.length,u=0;for(a=0;at[0][n]}:function(e,t,n,i){return e>=t[t.length-1][i]},isInBreak:e?function(e,t,n,i){return e>t[i]&&e<=t[n]}:function(e,t,n,i){return e>=t[n]&&e=t[o]&&e=n[o]},getLength:e?function(e,t){return t.length-e.length}:function(e){return e.length},getBreaksSize:e?function(e,t){return t.cumulativeWidth-e.cumulativeWidth}:function(e){return e.cumulativeWidth}}}var r,s=n(0).extend,l=n(3).each,u=n(109).Range,c=n(784),d=n(785),h=n(786),p=n(787),f=n(11),g=n(1),_=f.getLog,m=f.getPower,v=g.isDefined,y=n(28).adjust,b=Math.abs,x=["width","height","left","top","bottom","right"],w=n(22).addInterval,C={to:function(e){var t=this._canvasOptions.startPoint+(this._options.conversionValue?e:Math.round(e));return t>this._canvasOptions.endPoint?this._canvasOptions.endPoint:t},from:function(e){return e-this._canvasOptions.startPoint}},k=function(e){return l(x,function(t,n){e[n]=parseInt(e[n])||0}),e},S=function(e){var t={};return e.forEach(function(e,n){t[e.valueOf()]=n}),t},I=function(e){function t(t,n){!v(e[t])&&v(e[n])&&(e[t]=e[n])}return e instanceof u||(e=new u(e)),t("minVisible","min"),t("maxVisible","max"),e};t.Translator2D=r=function(e,t,n){this.update(e,t,n)},r.prototype={constructor:r,reinit:function(){var e=this,t=e._options,n=e._businessRange,i=n.categories||[],o={},r=e._prepareCanvasOptions(),l=f.getCategoriesInfo(i,n.minVisible,n.maxVisible).categories,u=l.length;if(n.isEmpty())o=C;else switch(n.axisType){case"logarithmic":o=p;break;case"semidiscrete":o=d,r.ratioOfCanvasRange=r.canvasLength/(w(r.rangeMaxVisible,t.interval)-r.rangeMinVisible);break;case"discrete":o=c,e._categories=i,r.interval=e._getDiscreteInterval(t.addSpiderCategory?u+1:u,r),e._categoriesToPoints=S(i,r.invert),u&&(r.startPointIndex=e._categoriesToPoints[l[0].valueOf()],e.visibleCategories=l);break;default:"datetime"===n.dataType&&(o=h)}(e._oldMethods||[]).forEach(function(t){delete e[t]}),e._oldMethods=Object.keys(o),s(e,o),e._conversionValue=t.conversionValue?function(e){return e}:function(e){return Math.round(e)},e.sc={},e._checkingMethodsAboutBreaks=[a(!1),a(e.isInverted())],e._translateBreaks(),e._calculateSpecialValues()},_translateBreaks:function(){var e,t,n,i,o=this._breaks,a=this._options.breaksSize;if(void 0!==o)for(e=0,i=o.length;e0?t.canvasLength/n:t.canvasLength},_prepareCanvasOptions:function(){var e,t=this,n=t._businessRange,i=t._canvasOptions=o(n),a=t._canvas,r=t._breaks;return i.startPadding=a.startPadding||0,i.endPadding=a.endPadding||0,t._options.isHorizontal?(i.startPoint=a.left+i.startPadding,e=a.width,i.endPoint=a.width-a.right-i.endPadding,i.invert=n.invert):(i.startPoint=a.top+i.startPadding,e=a.height,i.endPoint=a.height-a.bottom-i.endPadding,i.invert=!n.invert),t.canvasLength=i.canvasLength=i.endPoint-i.startPoint,i.rangeDoubleError=Math.pow(10,m(i.rangeMax-i.rangeMin)-m(e)-2),i.ratioOfCanvasRange=i.canvasLength/(i.rangeMaxVisible-i.rangeMinVisible),void 0!==r&&(i.ratioOfCanvasRange=(i.canvasLength-r[r.length-1].cumulativeWidth)/(i.rangeMaxVisible-i.rangeMinVisible-r[r.length-1].length)),i},updateCanvas:function(e){this._canvas=k(e),this.reinit()},updateBusinessRange:function(e){var t=this,n=e.breaks||[];t._businessRange=I(e),t._breaks=n.length?i(n,t._businessRange):void 0,t.reinit()},update:function(e,t,n){var i=this;i._options=s(i._options||{},n),i._canvas=k(t),i.updateBusinessRange(e)},getBusinessRange:function(){return this._businessRange},getEventScale:function(e){return e.deltaScale||1},getCanvasVisibleArea:function(){return{min:this._canvasOptions.startPoint,max:this._canvasOptions.endPoint}},_calculateSpecialValues:function(){var e,t=this,n=t._canvasOptions,i=n.startPoint-n.startPadding,o=n.endPoint+n.endPadding,a=t._businessRange,r=a.minVisible,s=a.maxVisible,l=i+n.canvasLength/2;if(r<0&&s>0&&r!==s&&(e=t.translate(0,1)),!v(e)){var u=a.invert^(r<0&&s<=0);e=t._options.isHorizontal?u?o:i:u?i:o}t.sc={canvas_position_default:e,canvas_position_left:i,canvas_position_top:i,canvas_position_center:l,canvas_position_middle:l,canvas_position_right:o,canvas_position_bottom:o,canvas_position_start:n.invert?o:i,canvas_position_end:n.invert?i:o}},translateSpecialCase:function(e){return this.sc[e]},_calculateProjection:function(e){var t=this._canvasOptions;return t.invert?t.endPoint-e:t.startPoint+e},_calculateUnProjection:function(e){var t=this._canvasOptions;return t.invert?t.rangeMaxVisible.valueOf()-e:t.rangeMinVisible.valueOf()+e},getMinBarSize:function(e){var t=this.getCanvasVisibleArea(),n=this.from(t.min+e);return b(this.from(t.min)-(v(n)?n:this.from(t.max)))},checkMinBarSize:function(e,t,n){return b(e)=0?t:-t:e},translate:function(e,t){var n=this.translateSpecialCase(e);return v(n)?Math.round(n):isNaN(e)?null:this.to(e,t)},getInterval:function(e){var t=this._canvasOptions;return e=v(e)?e:this._businessRange.interval,e?Math.round(t.ratioOfCanvasRange*e):Math.round(t.endPoint-t.startPoint)},zoom:function(e,t,n){var i=this._canvasOptions;if(i.rangeMinVisible.valueOf()===i.rangeMaxVisible.valueOf()&&0!==e)return this.zoomZeroLengthRange(e,t);var o=i.startPoint,a=i.endPoint,r=this.isInverted(),s=(o+e)/t,l=(a+e)/t;n=n||{};var u,c,d=this.to(r?n.endValue:n.startValue),h=this.to(r?n.startValue:n.endValue);return d>s&&(l-=s-d,s=d,u=r?n.endValue:n.startValue),hc?(u=u>n.endValue?n.endValue:u,c=cn.endValue?n.endValue:c),{min:u,max:c,translate:y(e),scale:y(t)}},zoomZeroLengthRange:function(e,t){var n=this._canvasOptions,i=n.rangeMin,o=n.rangeMax,a=(o.valueOf()!==i.valueOf()?o.valueOf()-i.valueOf():b(n.rangeMinVisible.valueOf()-i.valueOf()))/n.canvasLength,r=g.isDate(o)||g.isDate(i),s="logarithmic"===this._businessRange.axisType,l=n.rangeMinVisible.valueOf()-a,u=n.rangeMaxVisible.valueOf()+a;return l=s?y(Math.pow(n.base,l)):r?new Date(l):l,u=s?y(Math.pow(n.base,u)):r?new Date(u):u,{min:l,max:u,translate:e,scale:t}},getMinScale:function(e){return e?1.1:.9},getScale:function(e,t){var n=this._canvasOptions;return n.rangeMax===n.rangeMin?1:(e=v(e)?this._fromValue(e):n.rangeMin,t=v(t)?this._fromValue(t):n.rangeMax,(n.rangeMax-n.rangeMin)/Math.abs(e-t))},isValid:function(e){var t=this._canvasOptions;return e=this._fromValue(e),null!==e&&!isNaN(e)&&e.valueOf()+t.rangeDoubleError>=t.rangeMin&&e.valueOf()-t.rangeDoubleError<=t.rangeMax},getCorrectValue:function(e,t){var n,i=this,o=i._breaks;return e=i._fromValue(e),i._breaks&&(n=i._checkValueAboutBreaks(o,e,"trFrom","trTo",i._checkingMethodsAboutBreaks[0]),n.inBreak===!0)?i._toValue(t>0?n.break.trTo:n.break.trFrom):i._toValue(e)},to:function(e,t){var n=this.getBusinessRange();if(v(n.maxVisible)&&v(n.minVisible)&&n.maxVisible.valueOf()===n.minVisible.valueOf())return v(e)&&n.maxVisible.valueOf()===e.valueOf()?this.translateSpecialCase(0===e&&this._options.shiftZeroValue?"canvas_position_default":"canvas_position_middle"):null;e=this._fromValue(e);var i=this,o=i._canvasOptions,a=i._breaks,r={length:0},s=0;return void 0!==a&&(r=i._checkValueAboutBreaks(a,e,"trFrom","trTo",i._checkingMethodsAboutBreaks[0]),s=v(r.breaksSize)?r.breaksSize:0),r.inBreak===!0?t>0?r.break.start:t<0?r.break.end:null:i._conversionValue(i._calculateProjection((e-o.rangeMinVisible-r.length)*o.ratioOfCanvasRange+s))},from:function(e,t){var n=this,i=n._breaks,o={length:0},a=n._canvasOptions,r=a.startPoint,s=0;return void 0!==i&&(o=n._checkValueAboutBreaks(i,e,"start","end",n._checkingMethodsAboutBreaks[1]),s=v(o.breaksSize)?o.breaksSize:0),o.inBreak===!0?t>0?n._toValue(o.break.trTo):t<0?n._toValue(o.break.trFrom):null:n._toValue(n._calculateUnProjection((e-r-s)/a.ratioOfCanvasRange+o.length))},isValueProlonged:!1,getRange:function(){return[this._toValue(this._canvasOptions.rangeMin),this._toValue(this._canvasOptions.rangeMax)]},getScreenRange:function(){return[this._canvasOptions.startPoint,this._canvasOptions.endPoint]},add:function(e,t,n){return this._add(e,t,(this._businessRange.invert?-1:1)*n)},_add:function(e,t,n){return this._toValue(this._fromValue(e)+t*n)},_fromValue:function(e){return null!==e?Number(e):null},_toValue:function(e){return null!==e?Number(e):null},ratioOfCanvasRange:function(){return this._canvasOptions.ratioOfCanvasRange}}},function(e,t,n){function i(e){var t,n,i=e.x,o=e.y,a=m[e.type],r=e.textWidth+2*e.horMargin,s=e.textHeight+2*e.verMargin,u=i,c=o;return t=n=e.tailLength,1&a[0]?n=Math.min(n,s/3):t=Math.min(t,r/3),{cx:l(u+a[0]*t+(a[0]+a[2])*r/2),cy:l(c+a[1]*n+(a[1]+a[3])*s/2),points:[l(i),l(o),l(i+=a[0]*(r+t)),l(o+=a[1]*(s+n)),l(i+=a[2]*r),l(o+=a[3]*s),l(i+=a[4]*r),l(o+=a[5]*s),l(i+=a[6]*(r-t)),l(o+=a[7]*(s-n))]}}var o=n(4).noop,a=n(3).each,r=isFinite,s=Number,l=Math.round,u=n(148),c=u.formatValue,d=u.getSampleText,h=n(11).patchFontOptions,p=n(0).extend,f=n(15),g=f.inherit({ctor:function(e){var t=this;a(e,function(e,n){t["_"+e]=n}),t._init()},dispose:function(){var e=this;return e._dispose(),a(e,function(t){e[t]=null}),e},getOffset:function(){return s(this._options.offset)||0}}),_=g.inherit({_init:function(){var e=this;e._rootElement=e._createRoot().linkOn(e._owner,{name:"value-indicator",after:"core"}),e._trackerElement=e._createTracker()},_dispose:function(){this._rootElement.linkOff()},_setupAnimation:function(){var e=this;e._options.animation&&(e._animation={step:function(t){e._actualValue=e._animation.start+e._animation.delta*t,e._actualPosition=e._translator.translate(e._actualValue),e._move()},duration:e._options.animation.duration>0?s(e._options.animation.duration):0,easing:e._options.animation.easing})},_runAnimation:function(e){ var t=this,n=t._animation;n.start=t._actualValue,n.delta=e-t._actualValue,t._rootElement.animate({_:0},{step:n.step,duration:n.duration,easing:n.easing})},_createRoot:function(){return this._renderer.g().attr({"class":this._className})},_createTracker:function(){return this._renderer.path([],"area")},_getTrackerSettings:o,clean:function(){var e=this;return e._animation&&e._rootElement.stopAnimation(),e._rootElement.linkRemove().clear(),e._clear(),e._tracker.detach(e._trackerElement),e._options=e.enabled=e._animation=null,e},render:function(e){var t=this;return t.type=e.type,t._options=e,t._actualValue=t._currentValue=t._translator.adjust(t._options.currentValue),t.enabled=t._isEnabled(),t.enabled&&(t._setupAnimation(),t._rootElement.attr({fill:t._options.color}).linkAppend(),t._tracker.attach(t._trackerElement,t,t._trackerInfo)),t},resize:function(e){var t=this;return t._rootElement.clear(),t._clear(),t.visible=t._isVisible(e),t.visible&&(p(t._options,e),t._actualPosition=t._translator.translate(t._actualValue),t._render(),t._trackerElement.attr(t._getTrackerSettings()),t._move()),t},value:function(e,t){var n,i=this,o=this._rootElement,a=null;return void 0===e?i._currentValue:(null===e?(a="hidden",i._currentValue=e):(n=i._translator.adjust(e),i._currentValue!==n&&r(n)&&(i._currentValue=n,i.visible&&(i._animation&&!t?i._runAnimation(n):(i._actualValue=n,i._actualPosition=i._translator.translate(n),i._move())))),o.attr({visibility:a}),i)},_isEnabled:null,_isVisible:null,_render:null,_clear:null,_move:null}),m={};m["right-bottom"]=m.rb=[0,-1,-1,0,0,1,1,0],m["bottom-right"]=m.br=[-1,0,0,-1,1,0,0,1],m["left-bottom"]=m.lb=[0,-1,1,0,0,1,-1,0],m["bottom-left"]=m.bl=[1,0,0,-1,-1,0,0,1],m["left-top"]=m.lt=[0,1,1,0,0,-1,-1,0],m["top-left"]=m.tl=[1,0,0,1,-1,0,0,-1],m["right-top"]=m.rt=[0,1,-1,0,0,-1,1,0],m["top-right"]=m.tr=[-1,0,0,1,1,0,0,-1];var v=_.inherit({_move:function(){var e=this,t=e._getTextCloudOptions(),n=c(e._actualValue,e._options.text);e._text.attr({text:n});var o=e._text.getBBox(),a=i({x:t.x,y:t.y,textWidth:o.width||n.length*e._textUnitWidth,textHeight:o.height||e._textHeight,horMargin:e._options.horizontalOffset,verMargin:e._options.verticalOffset,tailLength:e._options.arrowLength,type:t.type});e._text.attr({x:a.cx,y:a.cy+e._textVerticalOffset}),e._cloud.attr({points:a.points}),e._trackerElement&&e._trackerElement.attr({points:a.points})},_measureText:function(){var e,t,n,i,o=this;o._textVerticalOffset||(e=o._createRoot().append(o._owner),i=d(o._translator,o._options.text),t=o._renderer.text(i,0,0).attr({align:"center"}).css(h(o._options.text.font)).append(e),n=t.getBBox(),e.remove(),o._textVerticalOffset=-n.y-n.height/2,o._textWidth=n.width,o._textHeight=n.height,o._textUnitWidth=o._textWidth/i.length,o._textFullWidth=o._textWidth+2*o._options.horizontalOffset,o._textFullHeight=o._textHeight+2*o._options.verticalOffset)},_render:function(){var e=this;e._measureText(),e._cloud=e._cloud||e._renderer.path([],"area").append(e._rootElement),e._text=e._text||e._renderer.text().append(e._rootElement),e._text.attr({align:"center"}).css(h(e._options.text.font))},_clear:function(){delete this._cloud,delete this._text},getTooltipParameters:function(){var e=this._getTextCloudOptions();return{x:e.x,y:e.y,value:this._currentValue,color:this._options.color}}}),y=_.inherit({_measureText:function(){var e,t,n,i=this;i._hasText=i._isTextVisible(),i._hasText&&!i._textVerticalOffset&&(e=i._createRoot().append(i._owner),t=i._renderer.text(d(i._translator,i._options.text),0,0).attr({"class":"dxg-text",align:"center"}).css(h(i._options.text.font)).append(e),n=t.getBBox(),e.remove(),i._textVerticalOffset=-n.y-n.height/2,i._textWidth=n.width,i._textHeight=n.height)},_move:function(){var e=this;e._updateBarItemsPositions(),e._hasText&&(e._text.attr({text:c(e._actualValue,e._options.text)}),e._updateTextPosition(),e._updateLinePosition())},_updateBarItems:function(){var e,t=this,n=t._options,i=t._translator;t._setBarSides(),t._startPosition=i.translate(i.getDomainStart()),t._endPosition=i.translate(i.getDomainEnd()),t._basePosition=i.translate(n.baseValue),t._space=t._getSpace();var o=n.backgroundColor||"none";"none"!==o&&t._space>0?e=n.containerBackgroundColor||"none":(t._space=0,e="none"),t._backItem1.attr({fill:o}),t._backItem2.attr({fill:o}),t._spaceItem1.attr({fill:e}),t._spaceItem2.attr({fill:e})},_getSpace:function(){return 0},_updateTextItems:function(){var e=this;e._hasText?(e._line=e._line||e._renderer.path([],"line").attr({"class":"dxg-main-bar","stroke-linecap":"square"}).append(e._rootElement),e._text=e._text||e._renderer.text("",0,0).attr({"class":"dxg-text"}).append(e._rootElement),e._text.attr({align:e._getTextAlign()}).css(e._getFontOptions()),e._setTextItemsSides()):(e._line&&(e._line.remove(),delete e._line),e._text&&(e._text.remove(),delete e._text))},_isTextVisible:function(){return!1},_getTextAlign:function(){return"center"},_getFontOptions:function(){var e=this._options,t=e.text.font;return t&&t.color||(t=p({},t,{color:e.color})),h(t)},_updateBarItemsPositions:function(){var e=this,t=e._getPositions();e._backItem1.attr(e._buildItemSettings(t.start,t.back1)),e._backItem2.attr(e._buildItemSettings(t.back2,t.end)),e._spaceItem1.attr(e._buildItemSettings(t.back1,t.main1)),e._spaceItem2.attr(e._buildItemSettings(t.main2,t.back2)),e._mainItem.attr(e._buildItemSettings(t.main1,t.main2)),e._trackerElement&&e._trackerElement.attr(e._buildItemSettings(t.main1,t.main2))},_render:function(){var e=this;e._measureText(),e._backItem1||(e._backItem1=e._createBarItem(),e._backItem1.attr({"class":"dxg-back-bar"})),e._backItem2||(e._backItem2=e._createBarItem(),e._backItem2.attr({"class":"dxg-back-bar"})),e._spaceItem1||(e._spaceItem1=e._createBarItem(),e._spaceItem1.attr({"class":"dxg-space-bar"})),e._spaceItem2||(e._spaceItem2=e._createBarItem(),e._spaceItem2.attr({"class":"dxg-space-bar"})),e._mainItem||(e._mainItem=e._createBarItem(),e._mainItem.attr({"class":"dxg-main-bar"})),e._updateBarItems(),e._updateTextItems()},_clear:function(){var e=this;delete e._backItem1,delete e._backItem2,delete e._spaceItem1,delete e._spaceItem2,delete e._mainItem,delete e._hasText,delete e._line,delete e._text},getTooltipParameters:function(){var e=this._getTooltipPosition();return{x:e.x,y:e.y,value:this._currentValue,color:this._options.color,offset:0}}});t.BaseElement=g,t.BaseIndicator=_,t.BaseTextCloudMarker=v,t.BaseRangeBar=y},function(e,t,n){var i=n(11).patchFontOptions;t.buildRectAppearance=function(e){var t=e.border||{};return{fill:e.color,opacity:e.opacity,stroke:t.color,"stroke-width":t.width,"stroke-opacity":t.opacity,hatching:e.hatching}},t.buildTextAppearance=function(e,t){return{attr:e["stroke-width"]?{stroke:e.stroke,"stroke-width":e["stroke-width"],"stroke-opacity":e["stroke-opacity"],filter:t}:{},css:i(e.font)}}},function(e,t,n){function i(e){this._initHandlers(e)}function o(e,t){var n=t.getData(e);n>=0&&t.click({node:t.getNode(n),coords:t.getCoords(e),event:e})}function a(e,t){var n=t.getData(e);n>=0?t.getNode(n).setHover():t.widget.clearHover()}function r(e,t){var n,i=t.getData(e,!0);i>=0?(n=s(e),t.getNode(i).showTooltip([n.x,n.y])):t.widget.hideTooltip()}var s=n(8).eventData,l=n(10),u=n(19).name,c=n(23).down,d=n(23).move,h=n(5);i.prototype={constructor:i,_initHandlers:function(e){function t(t){o(t,e)}function n(t){f?f=!1:(void 0!==e.getData(t)&&(f=!0),i(t))}function i(t){a(t,e),e.widget._getOption("tooltip").enabled&&r(t,e)}var p=l.getDocument();e.getCoords=function(t){var n=s(t),i=e.widget._renderer.getRootOffset();return[n.x-i.left,n.y-i.top]},e.root.on(u,t),e.root.on(c,n),h.on(p,c,n),h.on(p,d,i),this._disposeHandlers=function(){e.root.off(u,t),e.root.off(c,n),h.off(p,c,n),h.off(p,d,i)};var f=!1},dispose:function(){this._disposeHandlers()}},e.exports.Tracker=i},function(e,t,n){function i(e){return e.split(",").slice(1).map(function(e){return e.split("").filter(function(e){return"#"===e||"0"===e}).length})}function o(e){var t=e.split(";");return 1===t.length&&t.push("-"+t[0]),t}function a(e){return e.toString().split("").reverse().join("")}function r(e){return e.indexOf("%")!==-1&&!e.match(/'[^']*%[^']*'/g)}function s(e){return e?e.length-e.replace(/[#]/g,"").length:0}function l(e){return e?e.length-e.replace(/[0]/g,"").length:0}function u(e,t,n){if(!e)return"";for(e.length>n&&(e=e.substr(0,n));e.length>t&&"0"===e.slice(-1);)e=e.substr(0,e.length-1);for(;e.length0||f,_=p[g?0:1];r(_)&&(n=100*n),g||(n=-n);var m=h(_),b=[_.substr(0,m),_.substr(m+1)],x=l(b[1]),C=x+s(b[1]),k=l(b[0]),S=s(b[0])?void 0:k,I=Math.floor(n).toString().length,T=v(C,0,w-I),D=i(b[0]).reverse(),E=y(n,T<0?0:T).split("."),A=u(a(E[0]),k,S),O=u(E[1],x,C);A=c(A,D,t.thousandsSeparator);var B=a(d(a(b[0]),A)),P=C?d(b[1],O):"",R=B+(P.match(/\d/)?t.decimalSeparator:"")+P;return R}}function f(e,t,n){var i=(t?.01:1)*parseFloat(e)||0;return n?-i:i}function g(e,t,n,i){var o,a,r,s=e;do r&&(o=a.length===r.length?"0":"1",e=i?o+e:e+o),a=r||t(f(s,n)),s=i?"1"+s:s+"1",r=t(f(s,n));while(a!==r&&(i?a.length===r.length:a.length<=r.length));if(i&&r.length>a.length){var l=t(12345).indexOf("12345")===-1;do e="1"+e;while(l&&f(e,n)<1e5)}return e}function _(e,t,n,i){var o=t(f(e,n,i)),a=e.split("."),r=a[0]+".3"+a[1].slice(1),s=f(r,n,i),l=t(s).indexOf("3")-1;return o=o.replace(/(\d)\D(\d)/g,"$1,$2"),l>=0&&(o=o.slice(0,l)+"."+o.slice(l+1)),o=o.replace(/1+/,"1").replace(/1/g,"#"),n||(o=o.replace("%","'%'")),o}function m(e){var t=".",n=e(1).indexOf("100")>=0;t=g(t,e,n,!0),t=g(t,e,n,!1);var i=_(t,e,n,!1),o=_(t,e,n,!0);return o==="-"+i?i:i+";"+o}var v=n(28).fitIntoRange,y=n(218).toFixed,b={thousandsSeparator:",",decimalSeparator:"."},x="'",w=15;t.getFormatter=p,t.getFormat=m},function(e,t,n){var i=n(84).locale,o={ar:1,bg:2,ca:3,"zh-Hans":4,cs:5,da:6,de:7,el:8,en:9,es:10,fi:11,fr:12,he:13,hu:14,is:15,it:16,ja:17,ko:18,nl:19,no:20,pl:21,pt:22,rm:23,ro:24,ru:25,hr:26,sk:27,sq:28,sv:29,th:30,tr:31,ur:32,id:33,uk:34,be:35,sl:36,et:37,lv:38,lt:39,tg:40,fa:41,vi:42,hy:43,az:44,eu:45,hsb:46,mk:47,tn:50,xh:52,zu:53,af:54,ka:55,fo:56,hi:57,mt:58,se:59,ga:60,ms:62,kk:63,ky:64,sw:65,tk:66,uz:67,tt:68,bn:69,pa:70,gu:71,or:72,ta:73,te:74,kn:75,ml:76,as:77,mr:78,sa:79,mn:80,bo:81,cy:82,km:83,lo:84,gl:86,kok:87,syr:90,si:91,iu:93,am:94,tzm:95,ne:97,fy:98,ps:99,fil:100,dv:101,ha:104,yo:106,quz:107,nso:108,ba:109,lb:110,kl:111,ig:112,ii:120,arn:122,moh:124,br:126,ug:128,mi:129,oc:130,co:131,gsw:132,sah:133,qut:134,rw:135,wo:136,prs:140,gd:145,"ar-SA":1025,"bg-BG":1026,"ca-ES":1027,"zh-TW":1028,"cs-CZ":1029,"da-DK":1030,"de-DE":1031,"el-GR":1032,"en-US":1033,"fi-FI":1035,"fr-FR":1036,"he-IL":1037,"hu-HU":1038,"is-IS":1039,"it-IT":1040,"ja-JP":1041,"ko-KR":1042,"nl-NL":1043,"nb-NO":1044,"pl-PL":1045,"pt-BR":1046,"rm-CH":1047,"ro-RO":1048,"ru-RU":1049,"hr-HR":1050,"sk-SK":1051,"sq-AL":1052,"sv-SE":1053,"th-TH":1054,"tr-TR":1055,"ur-PK":1056,"id-ID":1057,"uk-UA":1058,"be-BY":1059,"sl-SI":1060,"et-EE":1061,"lv-LV":1062,"lt-LT":1063,"tg-Cyrl-TJ":1064,"fa-IR":1065,"vi-VN":1066,"hy-AM":1067,"az-Latn-AZ":1068,"eu-ES":1069,"hsb-DE":1070,"mk-MK":1071,"tn-ZA":1074,"xh-ZA":1076,"zu-ZA":1077,"af-ZA":1078,"ka-GE":1079,"fo-FO":1080,"hi-IN":1081,"mt-MT":1082,"se-NO":1083,"ms-MY":1086,"kk-KZ":1087,"ky-KG":1088,"sw-KE":1089,"tk-TM":1090,"uz-Latn-UZ":1091,"tt-RU":1092,"bn-IN":1093,"pa-IN":1094,"gu-IN":1095,"or-IN":1096,"ta-IN":1097,"te-IN":1098,"kn-IN":1099,"ml-IN":1100,"as-IN":1101,"mr-IN":1102,"sa-IN":1103,"mn-MN":1104,"bo-CN":1105,"cy-GB":1106,"km-KH":1107,"lo-LA":1108,"gl-ES":1110,"kok-IN":1111,"syr-SY":1114,"si-LK":1115,"iu-Cans-CA":1117,"am-ET":1118,"ne-NP":1121,"fy-NL":1122,"ps-AF":1123,"fil-PH":1124,"dv-MV":1125,"ha-Latn-NG":1128,"yo-NG":1130,"quz-BO":1131,"nso-ZA":1132,"ba-RU":1133,"lb-LU":1134,"kl-GL":1135,"ig-NG":1136,"ii-CN":1144,"arn-CL":1146,"moh-CA":1148,"br-FR":1150,"ug-CN":1152,"mi-NZ":1153,"oc-FR":1154,"co-FR":1155,"gsw-FR":1156,"sah-RU":1157,"qut-GT":1158,"rw-RW":1159,"wo-SN":1160,"prs-AF":1164,"gd-GB":1169,"ar-IQ":2049,"zh-CN":2052,"de-CH":2055,"en-GB":2057,"es-MX":2058,"fr-BE":2060,"it-CH":2064,"nl-BE":2067,"nn-NO":2068,"pt-PT":2070,"sr-Latn-CS":2074,"sv-FI":2077,"az-Cyrl-AZ":2092,"dsb-DE":2094,"se-SE":2107,"ga-IE":2108,"ms-BN":2110,"uz-Cyrl-UZ":2115,"bn-BD":2117,"mn-Mong-CN":2128,"iu-Latn-CA":2141,"tzm-Latn-DZ":2143,"quz-EC":2155,"ar-EG":3073,"zh-HK":3076,"de-AT":3079,"en-AU":3081,"es-ES":3082,"fr-CA":3084,"sr-Cyrl-CS":3098,"se-FI":3131,"quz-PE":3179,"ar-LY":4097,"zh-SG":4100,"de-LU":4103,"en-CA":4105,"es-GT":4106,"fr-CH":4108,"hr-BA":4122,"smj-NO":4155,"ar-DZ":5121,"zh-MO":5124,"de-LI":5127,"en-NZ":5129,"es-CR":5130,"fr-LU":5132,"bs-Latn-BA":5146,"smj-SE":5179,"ar-MA":6145,"en-IE":6153,"es-PA":6154,"fr-MC":6156,"sr-Latn-BA":6170,"sma-NO":6203,"ar-TN":7169,"en-ZA":7177,"es-DO":7178,"sr-Cyrl-BA":7194,"sma-SE":7227,"ar-OM":8193,"en-JM":8201,"es-VE":8202,"bs-Cyrl-BA":8218,"sms-FI":8251,"ar-YE":9217,"en-029":9225,"es-CO":9226,"sr-Latn-RS":9242,"smn-FI":9275,"ar-SY":10241,"en-BZ":10249,"es-PE":10250,"sr-Cyrl-RS":10266,"ar-JO":11265,"en-TT":11273,"es-AR":11274,"sr-Latn-ME":11290,"ar-LB":12289,"en-ZW":12297,"es-EC":12298,"sr-Cyrl-ME":12314,"ar-KW":13313,"en-PH":13321,"es-CL":13322,"ar-AE":14337,"es-UY":14346,"ar-BH":15361,"es-PY":15370,"ar-QA":16385,"en-IN":16393,"es-BO":16394,"en-MY":17417,"es-SV":17418,"en-SG":18441,"es-HN":18442,"es-NI":19466,"es-PR":20490,"es-US":21514,"bs-Cyrl":25626,"bs-Latn":26650,"sr-Cyrl":27674,"sr-Latn":28698,smn:28731,"az-Cyrl":29740,sms:29755,zh:30724,nn:30740,bs:30746,"az-Latn":30764,sma:30779,"uz-Cyrl":30787,"mn-Cyrl":30800,"iu-Cans":30813,"zh-Hant":31748,nb:31764,sr:31770,"tg-Cyrl":31784,dsb:31790,smj:31803,"uz-Latn":31811,"mn-Mong":31824,"iu-Latn":31837,"tzm-Latn":31839,"ha-Latn":31848};t.getLanguageId=function(){return o[i()]}},function(e,t,n){var i=n(7).getWindow(),o=function(){var e;try{e=i.sessionStorage}catch(e){}return e};t.sessionStorage=o},function(e,t,n){var i=n(2),o=n(15),a=n(0).extend,r=n(4),s=n(1),l=n(3),u=n(38),c=n(180),d=n(6),h=d.when,p=d.Deferred,f={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},g="dx-animating",_=o.inherit({ctor:function(){this._accumulatedDelays={enter:0,leave:0},this._animations=[],this.reset()},_createAnimations:function(e,t,n,o){var a=this,r=[];n=n||{};var s=this._prepareElementAnimationConfig(t,n,o);return s&&e.each(function(){var e=a._createAnimation(i(this),s,n);e&&(e.element.addClass(g),e.setup(),r.push(e))}),r},_prepareElementAnimationConfig:function(e,t,n){var i;if("string"==typeof e){var o=e;e=c.presets.getPreset(o)}if(e)if(s.isFunction(e[n]))i=e[n];else{if(i=a({skipElementInitialStyles:!0,cleanupWhen:this._completePromise},e,t),!i.type||"css"===i.type){var r="dx-"+n,l=(i.extraCssClasses?" "+i.extraCssClasses:"")+f[i.direction];i.type="css",i.from=(i.from||r)+l,i.to=i.to||r+"-active"}i.staggerDelay=i.staggerDelay||0,i.delay=i.delay||0,i.staggerDelay&&(i.delay+=this._accumulatedDelays[n],this._accumulatedDelays[n]+=i.staggerDelay)}else i=void 0;return i},_createAnimation:function(e,t,n){var i;return s.isPlainObject(t)?i=u.createAnimation(e,t):s.isFunction(t)&&(i=t(e,n)),i},_startAnimations:function(){for(var e=this._animations,t=0;t=0)n=this.changeItemSelectionWhenShiftKeyPressed(e,i);else if(t.control){this._resetItemSelectionWhenShiftKeyPressed();var s=this._selectionStrategy.isItemDataSelected(a);"single"===this.options.mode&&this.clearSelectedItems(),s?this._removeSelectedItem(r):this._addSelectedItem(a,r),n=!0}else{this._resetItemSelectionWhenShiftKeyPressed();var l=this._selectionStrategy.equalKeys(this.options.selectedItemKeys[0],r);1===this.options.selectedItemKeys.length&&l||(this._setSelectedItems([r],[a]),n=!0)}return n?(this._focusedItemIndex=e,this.onSelectionChanged(),!0):void 0},isDataItem:function(e){return this.options.isSelectableItem(e)},isSelectable:function(){return"single"===this.options.mode||"multiple"===this.options.mode},isItemDataSelected:function(e){return this._selectionStrategy.isItemDataSelected(e)},isItemSelected:function(e){return this._selectionStrategy.isItemKeySelected(e)},_resetItemSelectionWhenShiftKeyPressed:function(){delete this._shiftFocusedItemIndex},_resetFocusedItemIndex:function(){this._focusedItemIndex=-1},changeItemSelectionWhenShiftKeyPressed:function(e,t){var n,i,o=!1,a=this.options.keyOf,r=t[this._focusedItemIndex],s=this.options.getItemData(r),u=a(s),c=r&&this.isItemDataSelected(s);l(this._shiftFocusedItemIndex)||(this._shiftFocusedItemIndex=this._focusedItemIndex);var d,h;if(this._shiftFocusedItemIndex!==this._focusedItemIndex)for(n=this._focusedItemIndex0&&i.push(t?"and":"or"),r=a.isString(n)?u(n,e):c(n,e),i.push(r)}),i&&1===i.length&&(i=i[0]),i}},this.getCombinedFilter=function(e,n){var i=this.getExpr(e),o=i;return t&&n&&(i?(o=[],o.push(i),o.push(n)):o=n),o};var n,r=function(e){if(!n){n={};for(var t=0;t":"=",n]},c=function(e,n){for(var i=[],o=0,a=e.length;o0&&i.push(t?"or":"and"),i.push(l)}return i}};t.SelectionFilterCreator=r},function(e,t,n){var i=n(28),o=n(3),a=n(21),r=n(8),s=n(114),l=n(88),u="dx",c="transform",d="translate",h="zoom",p="pinch",f="rotate",g="start",_="",m="end",v=[],y=function(e,t){v.push({name:e,args:t})};y(c,{scale:!0,deltaScale:!0,rotation:!0,deltaRotation:!0,translation:!0,deltaTranslation:!0}),y(d,{translation:!0,deltaTranslation:!0}),y(h,{scale:!0,deltaScale:!0}),y(p,{scale:!0,deltaScale:!0}),y(f,{rotation:!0,deltaRotation:!0});var b=function(e,t){return{x:t.pageX-e.pageX,y:-t.pageY+e.pageY,centerX:.5*(t.pageX+e.pageX),centerY:.5*(t.pageY+e.pageY)}},x=function(e){var t=e.pointers;return b(t[0],t[1])},w=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},C=function(e,t){return w(e)/w(t)},k=function(e,t){var n=e.x*t.x+e.y*t.y,o=w(e)*w(t);if(0===o)return 0;var a=i.sign(e.x*t.y-t.x*e.y),r=Math.acos(i.fitIntoRange(n/o,-1,1));return a*r},S=function(e,t){return{x:e.centerX-t.centerX,y:e.centerY-t.centerY}},I=s.inherit({configure:function(e,t){t.indexOf(h)>-1&&a.log("W0005",t,"15.1","Use '"+t.replace(h,p)+"' event instead"),this.callBase(e)},validatePointers:function(e){return r.hasTouches(e)>1},start:function(e){this._accept(e);var t=x(e);this._startVector=t,this._prevVector=t,this._fireEventAliases(g,e)},move:function(e){var t=x(e),n=this._getEventArgs(t);this._fireEventAliases(_,e,n),this._prevVector=t},end:function(e){var t=this._getEventArgs(this._prevVector);this._fireEventAliases(m,e,t)},_getEventArgs:function(e){return{scale:C(e,this._startVector),deltaScale:C(e,this._prevVector),rotation:k(e,this._startVector),deltaRotation:k(e,this._prevVector),translation:S(e,this._startVector),deltaTranslation:S(e,this._prevVector)}},_fireEventAliases:function(e,t,n){n=n||{},o.each(v,function(i,a){var r={};o.each(a.args,function(e){e in n&&(r[e]=n[e])}),this._fireEvent(u+a.name+e,t,r)}.bind(this))}}),T=v.reduce(function(e,t){return[g,_,m].forEach(function(n){e.push(u+t.name+n)}),e},[]);l({emitter:I,events:T}),o.each(T,function(e,n){t[n.substring(u.length)]=n})},function(e,t,n){e.exports={_waitAsyncTemplates:function(e){if(this._options.templatesRenderAsynchronously){this._asyncTemplatesTimers=this._asyncTemplatesTimers||[];var t=setTimeout(function(){e.call(this),clearTimeout(t)}.bind(this));this._asyncTemplatesTimers.push(t)}else e.call(this)},_cleanAsyncTemplatesTimer:function(){for(var e=this._asyncTemplatesTimers||[],t=0;t0?"&":"?";return this._endpointUrl+i+n}},{key:"_getQueryString",value:function(e){for(var t=[],n=Object.keys(e),i=0;i0}}]),t}(y.FileProvider);e.exports=k},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(31),s=i(r),l=n(4),u=i(l),c=n(1),d=n(9),h=i(d),p=n(13),f=n(0),g=n(3),_=n(497),m=i(_),v=n(76),y=i(v),b=n(66),x=i(b),w=n(38),C=i(w),k="dx-toolbar",S="dx-toolbar-before",I="dx-toolbar-center",T="dx-toolbar-after",D="dx-toolbar-bottom",E="dx-toolbar-mini",A="dx-toolbar-item",O="dx-toolbar-label",B="dx-toolbar-button",P="dx-toolbar-items-container",R="dx-toolbar-group",M="dx-toolbar-compact",V="."+O,F="text",L="default",H="dxToolbarItemDataKey",z=m.default.inherit({compactMode:!1,ctor:function(e,t){this._userOptions=t||{},this.callBase(e,t)},_getSynchronizableOptionsForCreateComponent:function(){return this.callBase().filter(function(e){return"disabled"!==e})},_initTemplates:function(){this.callBase();var e=new x.default(function(e,t,n){(0,c.isPlainObject)(t)?(t.text&&e.text(t.text).wrapInner("
"),t.html&&e.html(t.html),"dxButton"===t.widget&&(this.option("useFlatButtons")&&(t.options=t.options||{},t.options.stylingMode=t.options.stylingMode||F),this.option("useDefaultButtons")&&(t.options=t.options||{},t.options.type=t.options.type||L))):e.text(String(t)),this._getTemplate("dx-polymorph-widget").render({container:e,model:n,parent:this})}.bind(this),["text","html","widget","options"],this.option("integrationOptions.watchMethod"));this._defaultTemplates.item=e,this._defaultTemplates.menuItem=e},_getDefaultOptions:function(){return(0,f.extend)(this.callBase(),{renderAs:"topToolbar",grouped:!1,useFlatButtons:!1,useDefaultButtons:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return s.default.isMaterial()},options:{useFlatButtons:!0}}])},_itemContainer:function(){return this._$toolbarItemsContainer.find(["."+S,"."+I,"."+T].join(","))},_itemClass:function(){return A},_itemDataKey:function(){return H},_buttonClass:function(){return B},_dimensionChanged:function(){this._arrangeItems(),this._applyCompactMode()},_initMarkup:function(){this._renderToolbar(),this._renderSections(),this.callBase(),this.setAria("role","toolbar")},_waitParentAnimationFinished:function(){var e=this.$element(),t=15;return new y.default(function(n){var i=function(){var t=!0;return e.parents().each(function(e,n){if(C.default.isAnimating((0,a.default)(n)))return t=!1,!1}),t&&n(),t},o=function e(){setTimeout(function(){return i()||e()},t)};e.width()>0&&i()||o()})},_render:function(){this.callBase(),this._renderItemsAsync(),s.default.isMaterial()&&y.default.all([this._waitParentAnimationFinished(),this._checkWebFontForLabelsLoaded()]).then(this._dimensionChanged.bind(this))},_postProcessRenderItems:function(){this._arrangeItems()},_renderToolbar:function(){this.$element().addClass(k).toggleClass(D,"bottomToolbar"===this.option("renderAs")),this._$toolbarItemsContainer=(0,a.default)("
").addClass(P).appendTo(this.$element())},_renderSections:function(){var e=this._$toolbarItemsContainer,t=this;(0,g.each)(["before","center","after"],function(){var n="dx-toolbar-"+this,i=e.find("."+n);i.length||(t["_$"+this+"Section"]=i=(0,a.default)("
").addClass(n).appendTo(e))})},_checkWebFontForLabelsLoaded:function(){var e=this.$element().find(V),t=[];return e.each(function(e,n){var i=(0,a.default)(n).text(),o=(0,a.default)(n).css("fontWeight");t.push(s.default.waitWebFont(i,o))}),y.default.all(t)},_arrangeItems:function(e){e=e||this.$element().width(),this._$centerSection.css({margin:"0 auto","float":"none"});var t=this._$beforeSection.get(0).getBoundingClientRect(),n=this._$afterSection.get(0).getBoundingClientRect();this._alignCenterSection(t,n,e);var i=this._$toolbarItemsContainer.find(V).eq(0),o=i.parent();if(i.length){var r=t.width?t.width:i.position().left,s=o.hasClass(S)?0:r,l=o.hasClass(T)?0:n.width,u=0;o.children().not(V).each(function(){u+=(0,a.default)(this).outerWidth()});var c=e-u,d=Math.max(c-s-l,0);if(o.hasClass(S))this._alignSection(this._$beforeSection,d);else{var h=i.outerWidth()-i.width();i.css("maxWidth",d-h)}}},_alignCenterSection:function(e,t,n){this._alignSection(this._$centerSection,n-e.width-t.width);var i=this.option("rtlEnabled"),o=i?t:e,a=i?e:t,r=this._$centerSection.get(0).getBoundingClientRect();(o.right>r.left||r.right>a.left)&&this._$centerSection.css({marginLeft:o.width,marginRight:a.width,"float":o.width>a.width?"none":"right"})},_alignSection:function(e,t){var n=e.find(V),i=n.toArray();t-=this._getCurrentLabelsPaddings(i);var o=this._getCurrentLabelsWidth(i),a=Math.abs(o-t);te.width()&&e.addClass(M)},_getCurrentLabelsWidth:function(e){var t=0;return e.forEach(function(e,n){t+=(0,a.default)(e).outerWidth()}),t},_getCurrentLabelsPaddings:function(e){var t=0;return e.forEach(function(e,n){t+=(0,a.default)(e).outerWidth()-(0,a.default)(e).width()}),t},_renderItem:function(e,t,n,i){var o=t.location||"center",a=n||this["_$"+o+"Section"],r=!(!t.text&&!t.html),s=this.callBase(e,t,a,i);return s.toggleClass(this._buttonClass(),!r).toggleClass(O,r).addClass(t.cssClass),s},_renderGroupedItems:function(){var e=this;(0,g.each)(this.option("items"),function(t,n){var i=n.items,o=(0,a.default)("
").addClass(R),r=n.location||"center";i&&i.length&&((0,g.each)(i,function(t,n){e._renderItem(t,n,o,null)}),e._$toolbarItemsContainer.find(".dx-toolbar-"+r).append(o))})},_renderItems:function(e){var t=this.option("grouped")&&e.length&&e[0].items;t?this._renderGroupedItems():this.callBase(e)},_getToolbarItems:function(){return this.option("items")||[]},_renderContentImpl:function(){var e=this._getToolbarItems();this.$element().toggleClass(E,0===e.length),this._renderedItemsCount?this._renderItems(e.slice(this._renderedItemsCount)):this._renderItems(e),this._applyCompactMode()},_renderEmptyMessage:u.default.noop,_clean:function(){this._$toolbarItemsContainer.children().empty(),this.$element().empty()},_visibilityChanged:function(e){e&&this._arrangeItems()},_isVisible:function(){return this.$element().width()>0&&this.$element().height()>0},_getIndexByItem:function(e){return(0,p.inArray)(e,this._getToolbarItems())},_itemOptionChanged:function(e,t,n){this.callBase.apply(this,[e,t,n]),this._arrangeItems()},_optionChanged:function(e){var t=e.name;switch(t){case"width":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"renderAs":case"useFlatButtons":case"useDefaultButtons":this._invalidate();break;case"compactMode":this._applyCompactMode();break;case"grouped":break;default:this.callBase.apply(this,arguments)}}});(0,h.default)("dxToolbarBase",z),e.exports=z},function(e,t,n){var i=n(2),o=n(110),a=n(77),r=n(0).extend,s=n(1).isPlainObject,l=n(293),u=null,c=function(e,t,n){var c=s(e)?e:{message:e},d=c.onHidden;r(c,{type:t,displayTime:n,onHidden:function(e){i(e.element).remove(),new o(d,{context:e.model}).execute(arguments)}}),u=i("
").appendTo(a.value()),new l(u,c).show()};e.exports=c},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(10),r=n(5),s=n(47).add,l=n(4),u=n(1),c=n(0).extend,d=n(13).inArray,h=n(23),p=n(9),f=n(60),g=n(31),_="dx-toast",m=_+"-",v=m+"wrapper",y=m+"content",b=m+"message",x=m+"icon",w="dxToast",C=["info","warning","error","success"],k=[],S=8e3,I=null,T={top:{my:"top",at:"top",of:null,offset:"0 0"},bottom:{my:"bottom",at:"bottom",of:null,offset:"0 -20"},center:{my:"center",at:"center",of:null,offset:"0 0"},right:{my:"center right",at:"center right",of:null,offset:"0 0"},left:{my:"center left",at:"center left",of:null,offset:"0 0"}};s(function(){r.subscribeGlobal(a.getDocument(),h.down,function(e){for(var t=k.length-1;t>=0;t--)if(!k[t]._proxiedDocumentDownHandler(e))return})});var D=f.inherit({_getDefaultOptions:function(){return c(this.callBase(),{message:"",type:"info",displayTime:2e3,position:"bottom center",animation:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,to:0}},shading:!1,height:"auto",closeOnBackButton:!1,closeOnSwipe:!0,closeOnClick:!1,resizeEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{position:"top center",width:function(){return i(o).width()}}},{device:function(e){return"win"===e.platform&&e.version&&10===e.version[0]},options:{position:"bottom right",width:"auto"}},{device:{platform:"android"},options:{closeOnOutsideClick:!0,width:"auto",position:{at:"bottom left",my:"bottom left",offset:"20 -20"},animation:{show:{type:"slide",duration:200,from:{position:{my:"top",at:"bottom",of:o}}},hide:{type:"slide",duration:200,to:{position:{my:"top",at:"bottom",of:o}}}}}},{device:function(e){var t="phone"===e.deviceType,n="android"===e.platform,i="win"===e.platform&&e.version&&10===e.version[0];return t&&(n||i)},options:{width:function(){return i(o).width()},position:{at:"bottom center",my:"bottom center",offset:"0 0"}}},{device:function(){return g.isMaterial()},options:{minWidth:344,maxWidth:568,displayTime:4e3}}])},_init:function(){this.callBase(),this._posStringToObject()},_renderContentImpl:function(){this.option("message")&&(this._message=i("
").addClass(b).text(this.option("message")).appendTo(this.$content())),this.setAria("role","alert",this._message),d(this.option("type").toLowerCase(),C)>-1&&this.$content().prepend(i("
").addClass(x)),this.callBase()},_render:function(){this.callBase(),this.$element().addClass(_),this._wrapper().addClass(v),this._$content.addClass(m+String(this.option("type")).toLowerCase()),this.$content().addClass(y),this._toggleCloseEvents("Swipe"),this._toggleCloseEvents("Click")},_renderScrollTerminator:l.noop,_toggleCloseEvents:function(e){var t="dx"+e.toLowerCase();r.off(this._$content,t),this.option("closeOn"+e)&&r.on(this._$content,t,this.hide.bind(this))},_posStringToObject:function(){if(u.isString(this.option("position"))){var e=this.option("position").split(" ")[0],t=this.option("position").split(" ")[1];switch(this.option("position",c({},T[e])),t){case"center":case"left":case"right":this.option("position").at+=" "+t,this.option("position").my+=" "+t}}},_show:function(){return I&&I!==this&&(clearTimeout(I._hideTimeout),I.hide()),I=this,this.callBase.apply(this,arguments).done(function(){clearTimeout(this._hideTimeout),this._hideTimeout=setTimeout(this.hide.bind(this),this.option("displayTime"))}.bind(this))},_hide:function(){return I=null,this.callBase.apply(this,arguments)},_overlayStack:function(){return k},_zIndexInitValue:function(){return this.callBase()+S},_dispose:function(){clearTimeout(this._hideTimeout),I=null,this.callBase()},_optionChanged:function(e){switch(e.name){case"type":this._$content.removeClass(m+e.previousValue),this._$content.addClass(m+String(e.value).toLowerCase());break;case"message":this._message&&this._message.text(e.value);break;case"closeOnSwipe":this._toggleCloseEvents("Swipe");break;case"closeOnClick":this._toggleCloseEvents("Click");break;case"displayTime":case"position":break;default:this.callBase(e)}}});p(w,D),e.exports=D},function(e,t,n){function i(e){"@babel/helpers - typeof";return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n").appendTo((0,T.getSwatchContainer)(a.$element()));k.default.off(r,"click"),k.default.on(r,"click",function(){e._clickHandler()});var s=this.initialOption("indent")+this.initialOption("childIndent")*o,l=30;a._options.position={of:this.$content(),at:"center",my:"center",offset:{x:0,y:-s}},a._options.animation.show.delay=l*o,a._options.animation.hide.delay=l*(n-o),a._options.actionComponent=a,this._actionItems.push(this._createComponent(r,E.default,V(a)))}}},{key:"_setPosition",value:function(){this._hide(),this._show()}},{key:"_optionChanged",value:function(e){switch(e.name){case"actions":this._renderIcon(),this._renderCloseIcon(),this._renderClick(),this._renderActions();break;case"maxSpeedDialActionCount":this._renderActions();break;case"closeIcon":this._renderCloseIcon();break;case"position":(0,w.equalByValue)(e.value,e.previousValue)||this._setPosition();break;default:l(_(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}(E.default);t.initAction=function(e){delete e._options.onInitializing;var t=!1;if(M){var n=M.option("actions");if(n.forEach(function(n){if(n._options.id===e._options.id)return t=!0,e}),t)1===n.length?M.option((0,x.extend)({},V(n[0]),{actions:n,visible:!0,position:M._getDefaultOptions().position})):M.option({actions:n,position:M._getDefaultOptions().position});else{if(n.length>=M.option("maxSpeedDialActionCount"))return e.dispose(),void I.default.log("W1014");n.push(e),M.option((0,x.extend)(M._getDefaultOptions(),{actions:n}))}}else{var i=(0,v.default)("
").appendTo((0,T.getSwatchContainer)(e.$element()));M=e._createComponent(i,F,(0,x.extend)({},V(e),{actions:[e],visible:!0}))}},t.disposeAction=function(e){if(M){var t=M.option("actions"),n=t.length;t=t.filter(function(t){return t._options.id!==e}),n!==t.length&&(t.length?1===t.length?M.option((0,x.extend)({},V(t[0]),{actions:t,visible:!0,position:M._getDefaultOptions().position})):M.option({actions:t}):(M.dispose(),M.$element().remove(),M=null))}},t.repaint=function(){if(M){var e=1===M.option("actions").length?M.option("actions")[0].option("icon"):M._getDefaultOptions().icon;M.option({actions:M.option("actions"),icon:e,closeIcon:M._getDefaultOptions().closeIcon,position:M._getDefaultOptions().position,maxSpeedDialActionCount:M._getDefaultOptions().maxSpeedDialActionCount})}}},function(e,t,n){var i=n(9),o=n(503);i("dxTextEditor",o),e.exports=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(1),s=n(26),l=i(s),u=n(16),c=i(u),d=n(10),h=i(d),p=c.default.real(),f=p.ios,g=p.mac,_=l.default.msie||f||g,m=function(e){var t;try{t={start:e.selectionStart,end:e.selectionEnd}}catch(e){t={start:0,end:0}}return t},v=function(e,t){if(h.default.getBody().contains(e))try{e.selectionStart=t.start,e.selectionEnd=t.end}catch(e){}},y=function(e,t){return e=(0,a.default)(e).get(0),(0,r.isDefined)(t)?void(_&&h.default.getActiveElement()!==e||v(e,t)):m(e)};e.exports=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n11)t=e.hasClass("edge-autofilled");else if(d.default.webkit){var n=e.get(0);t=n&&n.matches(":-webkit-autofill")}return t}},{key:"runWithoutEventProcessing",value:function(e){var t=this._keyPressHandled;this._keyPressHandled=!0,e(),this._keyPressHandled=t}},{key:"_backspaceHandler",value:function(){}},{key:"_delHandler",value:function(e){var t=this.editor;this._keyPressHandled=!0,t._maskKeyHandler(e,function(){return!t._hasSelection()&&t._handleKey(_)})}},{key:"clean",value:function(){this._clearDragTimer(),clearTimeout(this._backspaceHandlerTimeout),clearTimeout(this._caretTimeout),clearTimeout(this._inputHandlerTimer)}}]),e}();t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(8),s=n(0),l=n(512),u=i(l),c=n(14),d=n(513),h=i(d),p=n(243),f=i(p),g="dx-list-item-selected",_="dx-list-item-response-wait",m=f.default.inherit({_supportedKeys:function(){var e=this,t=this,n=this.callBase(),i=function(e){t.option("allowItemDeleting")&&(e.preventDefault(),t.deleteItem(t.option("focusedElement")))},o=function(i,o){var a=e._editStrategy,r=e.option("focusedElement"),s=a.getNormalizedIndex(r),l=s===e._getLastItemIndex();if(!l||!e._isDataSourceLoading())if(i.shiftKey&&t.option("allowItemReordering")){var u=s+(o?-1:1),c=a.getItemElement(u);e.reorderItem(r,c),e.scrollToItem(r),i.preventDefault()}else{var d=e._editProvider,h=d.handleKeyboardEvents(s,o);h||(o?n.upArrow(i):n.downArrow(i))}},a=function(e){this._editProvider.handleEnterPressing()||n.enter.apply(this,arguments)},r=function(e){this._editProvider.handleEnterPressing()||n.space.apply(this,arguments)};return(0,s.extend)({},n,{del:i,upArrow:function(e){return o(e,!0)},downArrow:o,enter:a,space:r})},_updateSelection:function(){this._editProvider.afterItemsRendered(),this.callBase()},_getLastItemIndex:function(){return this._itemElements().length-1},_refreshItemElements:function(){this.callBase();var e=this._editProvider.getExcludedItemSelectors();e.length&&(this._itemElementsCache=this._itemElementsCache.not(e))},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{showSelectionControls:!1,selectionMode:"none",selectAllMode:"page",onSelectAllValueChanged:null,selectAllText:(0,c.format)("dxList-selectAll"),menuItems:[],menuMode:"context",allowItemDeleting:!1,itemDeleteMode:"static",allowItemReordering:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"ios"===e.platform},options:{menuMode:"slide",itemDeleteMode:"slideItem"}},{device:{platform:"android"},options:{itemDeleteMode:"swipe"}},{device:{platform:"win"},options:{itemDeleteMode:"context"}}])},_init:function(){this.callBase(),this._initEditProvider()},_initDataSource:function(){this.callBase(),this._isPageSelectAll()||this._dataSource&&this._dataSource.requireTotalCount(!0)},_isPageSelectAll:function(){return"page"===this.option("selectAllMode")},_initEditProvider:function(){this._editProvider=new h.default(this)},_disposeEditProvider:function(){this._editProvider&&this._editProvider.dispose()},_refreshEditProvider:function(){this._disposeEditProvider(),this._initEditProvider()},_initEditStrategy:function(){this.option("grouped")?this._editStrategy=new u.default(this):this.callBase()},_initMarkup:function(){this._refreshEditProvider(),this.callBase()},_renderItems:function(){this.callBase.apply(this,arguments),this._editProvider.afterItemsRendered()},_selectedItemClass:function(){return g},_itemResponseWaitClass:function(){return _},_itemClickHandler:function(e){var t=(0,a.default)(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *")){var n=this._editProvider.handleClick(t,e);n||this.callBase.apply(this,arguments)}},_shouldFireContextMenuEvent:function(){return this.callBase.apply(this,arguments)||this._editProvider.contextMenuHandlerExists()},_itemHoldHandler:function(e){var t=(0,a.default)(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *")){var n=(0,r.isTouchEvent)(e)&&this._editProvider.handleContextMenu(t,e);return n?void(e.handledByEditProvider=!0):void this.callBase.apply(this,arguments)}},_itemContextMenuHandler:function(e){var t=(0,a.default)(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *")){var n=!e.handledByEditProvider&&this._editProvider.handleContextMenu(t,e);return n?void e.preventDefault():void this.callBase.apply(this,arguments)}},_postprocessRenderItem:function(e){this.callBase.apply(this,arguments),this._editProvider.modifyItemElement(e)},_clean:function(){this._disposeEditProvider(),this.callBase()},focusListItem:function(e){var t=this._editStrategy.getItemElement(e);this.option("focusedElement",t),this.focus(),this.scrollToItem(this.option("focusedElement"))},_optionChanged:function(e){switch(e.name){case"selectAllMode": this._initDataSource(),this._dataSource.pageIndex(0),this._dataSource.load();break;case"grouped":this._clearSelectedItems(),delete this._renderingGroupIndex,this._initEditStrategy(),this.callBase(e);break;case"showSelectionControls":case"menuItems":case"menuMode":case"allowItemDeleting":case"itemDeleteMode":case"allowItemReordering":case"selectAllText":this._invalidate();break;case"onSelectAllValueChanged":break;default:this.callBase(e)}},selectAll:function(){return this._selection.selectAll(this._isPageSelectAll())},unselectAll:function(){return this._selection.deselectAll(this._isPageSelectAll())},isSelectAll:function(){return this._selection.getSelectAllState(this._isPageSelectAll())},getFlatIndexByItemElement:function(e){return this._itemElements().index(e)},getItemElementByFlatIndex:function(e){var t=this._itemElements();return e<0||e>=t.length?(0,a.default)():t.eq(e)},getItemByIndex:function(e){return this._editStrategy.getItemDataByIndex(e)}});e.exports=m},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(141),s=r.abstract,l=n(8),u=n(23),c=n(129),d="dxListEditDecorator",h=l.addNamespace(u.down,d),p=l.addNamespace(c.active,d),f="dx-list-item-content",g="dx-list-switchable-delete-ready",_="dx-list-switchable-menu-shield-positioning",m="dx-list-switchable-delete-top-shield",v="dx-list-switchable-delete-bottom-shield",y="dx-list-switchable-menu-item-shield-positioning",b="dx-list-switchable-delete-item-content-shield",x="dx-list-switchable-delete-button-container",w=r.inherit({_init:function(){this._$topShield=i("
").addClass(m),this._$bottomShield=i("
").addClass(v),this._$itemContentShield=i("
").addClass(b),o.on(this._$topShield,h,this._cancelDeleteReadyItem.bind(this)),o.on(this._$bottomShield,h,this._cancelDeleteReadyItem.bind(this)),this._list.$element().append(this._$topShield.toggle(!1)).append(this._$bottomShield.toggle(!1))},handleClick:function(){return this._cancelDeleteReadyItem()},_cancelDeleteReadyItem:function(){return!!this._$readyToDeleteItem&&(this._cancelDelete(this._$readyToDeleteItem),!0)},_cancelDelete:function(e){this._toggleDeleteReady(e,!1)},_toggleDeleteReady:function(e,t){void 0===t&&(t=!this._isReadyToDelete(e)),this._toggleShields(e,t),this._toggleScrolling(t),this._cacheReadyToDeleteItem(e,t),this._animateToggleDelete(e,t)},_isReadyToDelete:function(e){return e.hasClass(g)},_toggleShields:function(e,t){this._list.$element().toggleClass(_,t),this._$topShield.toggle(t),this._$bottomShield.toggle(t),t&&this._updateShieldsHeight(e),this._toggleContentShield(e,t)},_updateShieldsHeight:function(e){var t=this._list.$element(),n=t.offset().top,i=t.outerHeight(),o=e.offset().top,a=e.outerHeight(),r=o-n,s=i-a-r;this._$topShield.height(Math.max(r,0)),this._$bottomShield.height(Math.max(s,0))},_toggleContentShield:function(e,t){t?e.find("."+f).first().append(this._$itemContentShield):this._$itemContentShield.detach()},_toggleScrolling:function(e){var t=this._list.$element().dxScrollView("instance");e?t.on("start",this._cancelScrolling):t.off("start",this._cancelScrolling)},_cancelScrolling:function(e){e.event.cancel=!0},_cacheReadyToDeleteItem:function(e,t){t?this._$readyToDeleteItem=e:delete this._$readyToDeleteItem},_animateToggleDelete:function(e,t){t?(this._enablePositioning(e),this._prepareDeleteReady(e),this._animatePrepareDeleteReady(e),o.off(e,u.up)):(this._forgetDeleteReady(e),this._animateForgetDeleteReady(e).done(this._disablePositioning.bind(this,e)))},_enablePositioning:function(e){e.addClass(y),o.on(e,p,a),o.one(e,u.up,this._disablePositioning.bind(this,e))},_disablePositioning:function(e){e.removeClass(y),o.off(e,p)},_prepareDeleteReady:function(e){e.addClass(g)},_forgetDeleteReady:function(e){e.removeClass(g)},_animatePrepareDeleteReady:s,_animateForgetDeleteReady:s,_getDeleteButtonContainer:function(e){return e=e||this._$readyToDeleteItem,e.children("."+x)},_deleteItem:function(e){e=e||this._$readyToDeleteItem,this._getDeleteButtonContainer(e).detach(),e.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(e).always(this._cancelDelete.bind(this,e))},_isRtlEnabled:function(){return this._list.option("rtlEnabled")},dispose:function(){this._$topShield&&this._$topShield.remove(),this._$bottomShield&&this._$bottomShield.remove(),this.callBase.apply(this,arguments)}});e.exports=w},function(e,t,n){var i={_menuEnabled:function(){return!!this._menuItems().length},_menuItems:function(){return this._list.option("menuItems")},_deleteEnabled:function(){return this._list.option("allowItemDeleting")},_fireMenuAction:function(e,t){this._list._itemEventHandlerByHandler(e,t,{},{excludeValidators:["disabled","readOnly"]})}};e.exports=i},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(10),s=i(r),l=n(5),u=i(l),c=n(47),d=i(c),h=n(27),p=i(h),f=n(18),g=i(f),_=n(8),m=i(_),v=n(4),y=i(v),b=n(1),x=n(0),w=n(23),C=i(w),k="dxScrollbar",S="dx-scrollable-scrollbar",I="".concat(S,"-active"),T="dx-scrollable-scroll",D="dx-scrollable-scroll-content",E="dx-scrollbar-hoverable",A="horizontal",O=15,B={onScroll:"onScroll",onHover:"onHover",always:"always",never:"never"},P=g.default.inherit({_getDefaultOptions:function(){return(0,x.extend)(this.callBase(),{direction:null,visible:!1,activeStateEnabled:!1,visibilityMode:B.onScroll,containerSize:0,contentSize:0,expandable:!0,scaleRatio:1})},_init:function(){this.callBase(),this._isHovered=!1},_initMarkup:function(){this._renderThumb(),this.callBase()},_render:function(){this.callBase(),this._renderDirection(),this._update(),this._attachPointerDownHandler(),this.option("hoverStateEnabled",this._isHoverMode()),this.$element().toggleClass(E,this.option("hoverStateEnabled"))},_renderThumb:function(){this._$thumb=(0,a.default)("
").addClass(T),(0,a.default)("
").addClass(D).appendTo(this._$thumb),this.$element().addClass(S).append(this._$thumb)},isThumb:function(e){return!!this.$element().find(e).length},_isHoverMode:function(){var e=this.option("visibilityMode");return(e===B.onHover||e===B.always)&&this.option("expandable")},_renderDirection:function(){var e=this.option("direction");this.$element().addClass("dx-scrollbar-"+e),this._dimension=e===A?"width":"height",this._prop=e===A?"left":"top"},_attachPointerDownHandler:function(){u.default.on(this._$thumb,m.default.addNamespace(C.default.down,k),this.feedbackOn.bind(this))},feedbackOn:function(){this.$element().addClass(I),R=this},feedbackOff:function(){this.$element().removeClass(I),R=null},cursorEnter:function(){this._isHovered=!0,this._needScrollbar()&&this.option("visible",!0)},cursorLeave:function(){this._isHovered=!1,this.option("visible",!1)},_renderDimensions:function(){this._$thumb.css({width:this.option("width"),height:this.option("height")})},_toggleVisibility:function(e){this.option("visibilityMode")===B.onScroll&&this._$thumb.css("opacity"),e=this._adjustVisibility(e),this.option().visible=e,this._$thumb.toggleClass("dx-state-invisible",!e)},_adjustVisibility:function(e){if(this._baseContainerToContentRatio&&!this._needScrollbar())return!1;switch(this.option("visibilityMode")){case B.onScroll:break;case B.onHover:e=e||!!this._isHovered;break;case B.never:e=!1;break;case B.always:e=!0}return e},moveTo:function(e){if(!this._isHidden()){(0,b.isPlainObject)(e)&&(e=e[this._prop]||0);var t={};t[this._prop]=this._calculateScrollBarPosition(e),p.default.move(this._$thumb,t)}},_calculateScrollBarPosition:function(e){return-e*this._thumbRatio},_update:function(){var e=Math.round(this.option("containerSize")),t=Math.round(this.option("contentSize")),n=Math.round(this.option("baseContainerSize")),i=Math.round(this.option("baseContentSize"));isNaN(n)&&(n=e,i=t),this._baseContainerToContentRatio=i?n/i:n,this._realContainerToContentRatio=t?e/t:e;var o=Math.round(Math.max(Math.round(e*this._realContainerToContentRatio),O));this._thumbRatio=(e-o)/(this.option("scaleRatio")*(t-e)),this.option(this._dimension,o/this.option("scaleRatio")),this.$element().css("display",this._needScrollbar()?"":"none")},_isHidden:function(){return this.option("visibilityMode")===B.never},_needScrollbar:function(){return!this._isHidden()&&this._baseContainerToContentRatio<1},containerToContentRatio:function(){return this._realContainerToContentRatio},_normalizeSize:function(e){return(0,b.isPlainObject)(e)?e[this._dimension]||0:e},_clean:function(){this.callBase(),this===R&&(R=null),u.default.off(this._$thumb,"."+k)},_optionChanged:function(e){if(!this._isHidden())switch(e.name){case"containerSize":case"contentSize":this.option()[e.name]=this._normalizeSize(e.value),this._update();break;case"baseContentSize":case"baseContainerSize":this._update();break;case"visibilityMode":case"direction":this._invalidate();break;case"scaleRatio":this._update();break;default:this.callBase.apply(this,arguments)}},update:y.default.deferRenderer(function(){this._adjustVisibility()&&this.option("visible",!0)})}),R=null;d.default.add(function(){u.default.subscribeGlobal(s.default.getDocument(),m.default.addNamespace(C.default.up,k),function(){R&&R.feedbackOff()})}),e.exports=P},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o,a,r=n(2),s=i(r),l=n(10),u=i(l),c=n(5),d=i(c),h=n(33),p=n(0),f=n(7),g=n(3),_=n(1),m=n(27),v=i(m),y=n(15),b=i(y),x=n(303),w=i(x),C=n(16),k=i(C),S=n(8),I=n(4),T=n(301),D=i(T),E=n(6),A=k.default.real,O="win"===A.platform||"android"===A.platform,B="dxSimulatedScrollable",P="dxScrollableStrategy",R=B+"Cursor",M=B+"Keyboard",V="dx-scrollable-simulated",F="dx-scrollable-scrollbars-hidden",L="dx-scrollable-scrollbars-alwaysvisible",H="dx-scrollable-scrollbar",z="vertical",N="horizontal",$=O?.95:.92,W=.5,G=1,j=Math.round(1e3/60),q=40,K=500,U=G/5,Y=O?300:400,X=Y/j,Z=(1-Math.pow($,X))/(1-$),Q={PAGE_UP:"pageUp",PAGE_DOWN:"pageDown",END:"end",HOME:"home",LEFT:"leftArrow",UP:"upArrow",RIGHT:"rightArrow",DOWN:"downArrow",TAB:"tab"},J=w.default.inherit({ctor:function(e){this.callBase(),this.scroller=e},VELOCITY_LIMIT:G,_isFinished:function(){return Math.abs(this.scroller._velocity)<=this.VELOCITY_LIMIT},_step:function(){this.scroller._scrollStep(this.scroller._velocity),this.scroller._velocity*=this._acceleration()},_acceleration:function(){return this.scroller._inBounds()?$:W},_complete:function(){this.scroller._scrollComplete()},_stop:function(){this.scroller._stopComplete()}}),ee=J.inherit({VELOCITY_LIMIT:U,_isFinished:function(){return this.scroller._crossBoundOnNextStep()||this.callBase()},_acceleration:function(){return $},_complete:function(){this.scroller._move(this.scroller._bounceLocation),this.callBase()}}),te=b.default.inherit({ctor:function(e){this._initOptions(e),this._initAnimators(),this._initScrollbar()},_initOptions:function(e){var t=this;this._location=0,this._topReached=!1,this._bottomReached=!1,this._axis=e.direction===N?"x":"y",this._prop=e.direction===N?"left":"top",this._dimension=e.direction===N?"width":"height",this._scrollProp=e.direction===N?"scrollLeft":"scrollTop",(0,g.each)(e,function(e,n){t["_"+e]=n})},_initAnimators:function(){this._inertiaAnimator=new J(this),this._bounceAnimator=new ee(this)},_initScrollbar:function(){this._scrollbar=new D.default((0,s.default)("
").appendTo(this._$container),{direction:this._direction,visible:this._scrollByThumb,visibilityMode:this._visibilityModeNormalize(this._scrollbarVisible),expandable:this._scrollByThumb}),this._$scrollbar=this._scrollbar.$element()},_visibilityModeNormalize:function(e){return e===!0?"onScroll":e===!1?"never":e},_scrollStep:function(e){var t=this._location;this._location+=e,this._suppressBounce(),this._move(),Math.abs(t-this._location)<1||d.default.triggerHandler(this._$container,{type:"scroll"})},_suppressBounce:function(){this._bounceEnabled||this._inBounds(this._location)||(this._velocity=0,this._location=this._boundLocation())},_boundLocation:function(e){return e=void 0!==e?e:this._location,Math.max(Math.min(e,this._maxOffset),this._minOffset)},_move:function(e){this._location=void 0!==e?e*this._getScaleRatio():this._location,this._moveContent(),this._moveScrollbar()},_moveContent:function(){var e=this._location;this._$container[this._scrollProp](-e/this._getScaleRatio()),this._moveContentByTranslator(e)},_getScaleRatio:function(){if((0,f.hasWindow)()&&!this._scaleRatio){var e=this._$element.get(0),t=this._getRealDimension(e,this._dimension),n=this._getBaseDimension(e,this._dimension);this._scaleRatio=Math.round(t/n*100)/100}return this._scaleRatio||1},_getRealDimension:function(e,t){return Math.round(e.getBoundingClientRect()[t])},_getBaseDimension:function(e,t){var n="offset"+(0,h.titleize)(t);return e[n]},_moveContentByTranslator:function(e){var t,n=-this._maxScrollPropValue;if(t=e>0?e:e<=n?e-n:e%1,this._translateOffset!==t){var i={};return i[this._prop]=t,this._translateOffset=t,0===t?void v.default.resetPosition(this._$content):void v.default.move(this._$content,i)}},_moveScrollbar:function(){this._scrollbar.moveTo(this._location)},_scrollComplete:function(){this._inBounds()&&(this._hideScrollbar(),this._completeDeferred&&this._completeDeferred.resolve()),this._scrollToBounds()},_scrollToBounds:function(){this._inBounds()||(this._bounceAction(),this._setupBounce(),this._bounceAnimator.start())},_setupBounce:function(){var e=this._bounceLocation=this._boundLocation(),t=e-this._location;this._velocity=t/Z},_inBounds:function(e){return e=void 0!==e?e:this._location,this._boundLocation(e)===e},_crossBoundOnNextStep:function(){var e=this._location,t=e+this._velocity;return e=this._minOffset||e>this._maxOffset&&t<=this._maxOffset},_initHandler:function(e){return this._stopDeferred=new E.Deferred,this._stopScrolling(),this._prepareThumbScrolling(e),this._stopDeferred.promise()},_stopScrolling:(0,I.deferRenderer)(function(){this._hideScrollbar(),this._inertiaAnimator.stop(),this._bounceAnimator.stop()}),_prepareThumbScrolling:function(e){if(!(0,S.isDxMouseWheelEvent)(e.originalEvent)){var t=(0,s.default)(e.originalEvent.target),n=this._isScrollbar(t);n&&this._moveToMouseLocation(e),this._thumbScrolling=n||this._isThumb(t),this._crossThumbScrolling=!this._thumbScrolling&&this._isAnyThumbScrolling(t),this._thumbScrolling&&this._scrollbar.feedbackOn()}},_isThumbScrollingHandler:function(e){return this._isThumb(e)},_moveToMouseLocation:function(e){var t=e["page"+this._axis.toUpperCase()]-this._$element.offset()[this._prop],n=this._location+t/this._containerToContentRatio()-this._$container.height()/2;this._scrollStep(-Math.round(n))},_stopComplete:function(){this._stopDeferred&&this._stopDeferred.resolve()},_startHandler:function(){this._showScrollbar()},_moveHandler:function(e){this._crossThumbScrolling||(this._thumbScrolling&&(e[this._axis]=-Math.round(e[this._axis]/this._containerToContentRatio())),this._scrollBy(e))},_scrollBy:function(e){e=e[this._axis],this._inBounds()||(e*=W),this._scrollStep(e)},_scrollByHandler:function(e){this._scrollBy(e),this._scrollComplete()},_containerToContentRatio:function(){return this._scrollbar.containerToContentRatio()},_endHandler:function(e){return this._completeDeferred=new E.Deferred,this._velocity=e[this._axis],this._inertiaHandler(),this._resetThumbScrolling(),this._completeDeferred.promise()},_inertiaHandler:function(){this._suppressInertia(),this._inertiaAnimator.start()},_suppressInertia:function(){this._inertiaEnabled&&!this._thumbScrolling||(this._velocity=0)},_resetThumbScrolling:function(){this._thumbScrolling=!1,this._crossThumbScrolling=!1},_stopHandler:function(){this._thumbScrolling&&this._scrollComplete(),this._resetThumbScrolling(),this._scrollToBounds()},_disposeHandler:function(){this._stopScrolling(),this._$scrollbar.remove()},_updateHandler:function(){this._update(),this._moveToBounds()},_update:function(){var e=this;return this._stopScrolling(),(0,I.deferUpdate)(function(){e._resetScaleRatio(),e._updateLocation(),e._updateBounds(),e._updateScrollbar(),(0,I.deferRender)(function(){e._moveScrollbar(),e._scrollbar.update()})})},_resetScaleRatio:function(){this._scaleRatio=null},_updateLocation:function(){this._location=(v.default.locate(this._$content)[this._prop]-this._$container[this._scrollProp]())*this._getScaleRatio()},_updateBounds:function(){this._maxOffset=Math.round(this._getMaxOffset()),this._minOffset=Math.round(this._getMinOffset())},_getMaxOffset:function(){return 0},_getMinOffset:function(){return this._maxScrollPropValue=Math.max(this._contentSize()-this._containerSize(),0),-this._maxScrollPropValue},_updateScrollbar:(0,I.deferUpdater)(function(){var e=this,t=this._containerSize(),n=this._contentSize(),i=this._getBaseDimension(this._$container.get(0),this._dimension),o=this._getBaseDimension(this._$content.get(0),this._dimension);(0,I.deferRender)(function(){e._scrollbar.option({containerSize:t,contentSize:n,baseContainerSize:i,baseContentSize:o,scaleRatio:e._getScaleRatio()})})}),_moveToBounds:(0,I.deferRenderer)((0,I.deferUpdater)((0,I.deferRenderer)(function(){var e=this._boundLocation(),t=e!==this._location;this._location=e,this._move(),t&&this._scrollAction()}))),_createActionsHandler:function(e){this._scrollAction=e.scroll,this._bounceAction=e.bounce},_showScrollbar:function(){this._scrollbar.option("visible",!0)},_hideScrollbar:function(){this._scrollbar.option("visible",!1)},_containerSize:function(){return this._getRealDimension(this._$container.get(0),this._dimension)},_contentSize:function(){var e="hidden"===this._$content.css("overflow"+this._axis.toUpperCase()),t=this._getRealDimension(this._$content.get(0),this._dimension);if(!e){var n=this._$content[0]["scroll"+(0,h.titleize)(this._dimension)]*this._getScaleRatio();t=Math.max(n,t)}return t},_validateEvent:function(e){var t=(0,s.default)(e.originalEvent.target);return this._isThumb(t)||this._isScrollbar(t)||this._isContent(t)},_isThumb:function(e){return this._scrollByThumb&&this._scrollbar.isThumb(e)},_isScrollbar:function(e){return this._scrollByThumb&&e&&e.is(this._$scrollbar)},_isContent:function(e){return this._scrollByContent&&!!e.closest(this._$element).length},_reachedMin:function(){return this._location<=this._minOffset},_reachedMax:function(){return this._location>=this._maxOffset},_cursorEnterHandler:function(){this._resetScaleRatio(),this._updateScrollbar(),this._scrollbar.cursorEnter()},_cursorLeaveHandler:function(){this._scrollbar.cursorLeave()},dispose:I.noop}),ne=b.default.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.$element(),this._$container=e._$container,this._$wrapper=e._$wrapper,this._$content=e._$content,this.option=e.option.bind(e),this._createActionByOption=e._createActionByOption.bind(e),this._isLocked=e._isLocked.bind(e),this._isDirection=e._isDirection.bind(e),this._allowedDirection=e._allowedDirection.bind(e)},render:function(){this._$element.addClass(V),this._createScrollers(),this.option("useKeyboard")&&this._$container.prop("tabIndex",0),this._attachKeyboardHandler(),this._attachCursorHandlers()},_createScrollers:function(){this._scrollers={},this._isDirection(N)&&this._createScroller(N),this._isDirection(z)&&this._createScroller(z),this._$element.toggleClass(L,"always"===this.option("showScrollbar")),this._$element.toggleClass(F,!this.option("showScrollbar"))},_createScroller:function(e){this._scrollers[e]=new te(this._scrollerOptions(e))},_scrollerOptions:function(e){return{direction:e,$content:this._$content,$container:this._$container,$wrapper:this._$wrapper,$element:this._$element,scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),scrollbarVisible:this.option("showScrollbar"),bounceEnabled:this.option("bounceEnabled"),inertiaEnabled:this.option("inertiaEnabled"),isAnyThumbScrolling:this._isAnyThumbScrolling.bind(this)}},_applyScaleRatio:function(e){for(var t in this._scrollers){var n=this._getPropByDirection(t);if((0,_.isDefined)(e[n])){var i=this._scrollers[t];e[n]*=i._getScaleRatio()}}return e},_isAnyThumbScrolling:function(e){var t=!1;return this._eventHandler("isThumbScrolling",e).done(function(e,n){t=e||n}),t},handleInit:function(e){this._suppressDirections(e),this._eventForUserAction=e,this._eventHandler("init",e).done(this._stopAction)},_suppressDirections:function(e){return(0,S.isDxMouseWheelEvent)(e.originalEvent)?void this._prepareDirections(!0):(this._prepareDirections(),void this._eachScroller(function(t,n){var i=t._validateEvent(e);this._validDirections[n]=i}))},_prepareDirections:function(e){e=e||!1,this._validDirections={},this._validDirections[N]=e,this._validDirections[z]=e},_eachScroller:function(e){e=e.bind(this),(0,g.each)(this._scrollers,function(t,n){e(n,t)})},handleStart:function(e){this._eventForUserAction=e,this._eventHandler("start").done(this._startAction)},_saveActive:function(){a=this},_resetActive:function(){a===this&&(a=null)},handleMove:function(e){return this._isLocked()?(e.cancel=!0,void this._resetActive()):(this._saveActive(),e.preventDefault&&e.preventDefault(),this._adjustDistance(e,e.delta),this._eventForUserAction=e,void this._eventHandler("move",e.delta))},_adjustDistance:function(e,t){t.x*=this._validDirections[N],t.y*=this._validDirections[z];var n=this._tryGetDevicePixelRatio();n&&(0,S.isDxMouseWheelEvent)(e.originalEvent)&&(t.x=Math.round(t.x/n*100)/100,t.y=Math.round(t.y/n*100)/100)},_tryGetDevicePixelRatio:function(){if((0,f.hasWindow)())return(0,f.getWindow)().devicePixelRatio},handleEnd:function(e){return this._resetActive(),this._refreshCursorState(e.originalEvent&&e.originalEvent.target),this._adjustDistance(e,e.velocity),this._eventForUserAction=e,this._eventHandler("end",e.velocity).done(this._endAction)},handleCancel:function(e){return this._resetActive(),this._eventForUserAction=e,this._eventHandler("end",{x:0,y:0})},handleStop:function(){this._resetActive(),this._eventHandler("stop")},handleScroll:function(){this._scrollAction()},_attachKeyboardHandler:function(){d.default.off(this._$element,".".concat(M)),!this.option("disabled")&&this.option("useKeyboard")&&d.default.on(this._$element,(0,S.addNamespace)("keydown",M),this._keyDownHandler.bind(this))},_keyDownHandler:function(e){var t=this;if(clearTimeout(this._updateHandlerTimeout),this._updateHandlerTimeout=setTimeout(function(){(0,S.normalizeKeyName)(e)===Q.TAB&&t._eachScroller(function(e){e._updateHandler()})}),this._$container.is(u.default.getActiveElement())){var n=!0;switch((0,S.normalizeKeyName)(e)){case Q.DOWN:this._scrollByLine({y:1});break;case Q.UP:this._scrollByLine({y:-1});break;case Q.RIGHT:this._scrollByLine({x:1});break;case Q.LEFT:this._scrollByLine({x:-1});break;case Q.PAGE_DOWN:this._scrollByPage(1);break;case Q.PAGE_UP:this._scrollByPage(-1);break;case Q.HOME:this._scrollToHome();break;case Q.END:this._scrollToEnd();break;default:n=!1}n&&(e.stopPropagation(),e.preventDefault())}},_scrollByLine:function(e){var t=this._tryGetDevicePixelRatio(),n=q;t&&(n=Math.abs(n/t*100)/100),this.scrollBy({top:(e.y||0)*-n,left:(e.x||0)*-n})},_scrollByPage:function(e){var t=this._wheelProp(),n=this._dimensionByProp(t),i={};i[t]=e*-this._$container[n](),this.scrollBy(i)},_dimensionByProp:function(e){return"left"===e?"width":"height"},_getPropByDirection:function(e){return e===N?"left":"top"},_scrollToHome:function(){var e=this._wheelProp(),t={};t[e]=0,this._component.scrollTo(t)},_scrollToEnd:function(){var e=this._wheelProp(),t=this._dimensionByProp(e),n={};n[e]=this._$content[t]()-this._$container[t](),this._component.scrollTo(n)},createActions:function(){this._startAction=this._createActionHandler("onStart"),this._stopAction=this._createActionHandler("onStop"),this._endAction=this._createActionHandler("onEnd"),this._updateAction=this._createActionHandler("onUpdated"),this._createScrollerActions()},_createScrollerActions:function(){this._scrollAction=this._createActionHandler("onScroll"),this._bounceAction=this._createActionHandler("onBounce"),this._eventHandler("createActions",{scroll:this._scrollAction,bounce:this._bounceAction})},_createActionHandler:function(e){var t=arguments,n=this,i=this._createActionByOption(e);return function(){i((0,p.extend)(n._createActionArgs(),t))}},_createActionArgs:function(){var e=this._scrollers[N],t=this._scrollers[z],n=this.location();return this._scrollOffset={top:t&&-n.top,left:e&&-n.left},{event:this._eventForUserAction,scrollOffset:this._scrollOffset,reachedLeft:e&&e._reachedMax(),reachedRight:e&&e._reachedMin(),reachedTop:t&&t._reachedMax(),reachedBottom:t&&t._reachedMin()}},_eventHandler:function(e){var t=[].slice.call(arguments).slice(1),n=(0,g.map)(this._scrollers,function(n){return n["_"+e+"Handler"].apply(n,t)});return E.when.apply(s.default,n).promise()},location:function e(){var e=v.default.locate(this._$content);return e.top-=this._$container.scrollTop(),e.left-=this._$container.scrollLeft(),e},disabledChanged:function(){this._attachCursorHandlers()},_attachCursorHandlers:function(){d.default.off(this._$element,".".concat(R)),!this.option("disabled")&&this._isHoverMode()&&(d.default.on(this._$element,(0,S.addNamespace)("mouseenter",R),this._cursorEnterHandler.bind(this)),d.default.on(this._$element,(0,S.addNamespace)("mouseleave",R),this._cursorLeaveHandler.bind(this)))},_isHoverMode:function(){return"onHover"===this.option("showScrollbar")},_cursorEnterHandler:function(e){e=e||{},e.originalEvent=e.originalEvent||{},a||e.originalEvent._hoverHandled||(o&&o._cursorLeaveHandler(),o=this,this._eventHandler("cursorEnter"),e.originalEvent._hoverHandled=!0)},_cursorLeaveHandler:function(e){o===this&&a!==o&&(this._eventHandler("cursorLeave"),o=null,this._refreshCursorState(e&&e.relatedTarget))},_refreshCursorState:function(e){if(this._isHoverMode()||e&&!a){var t=(0,s.default)(e),n=t.closest(".".concat(V,":not(.dx-state-disabled)")),i=n.length&&n.data(P);o&&o!==i&&o._cursorLeaveHandler(),i&&i._cursorEnterHandler()}},update:function(){var e=this,t=this._eventHandler("update").done(this._updateAction);return(0,E.when)(t,(0,I.deferUpdate)(function(){var t=e._allowedDirections();return(0,I.deferRender)(function(){var n=t.vertical?"pan-x":"";n=t.horizontal?"pan-y":n,n=t.vertical&&t.horizontal?"none":n,e._$container.css("touchAction",n)}),(0,E.when)().promise()}))},_allowedDirections:function(){var e=this.option("bounceEnabled"),t=this._scrollers[z],n=this._scrollers[N];return{vertical:t&&(t._minOffset<0||e),horizontal:n&&(n._minOffset<0||e)}},updateBounds:function(){this._scrollers[N]&&this._scrollers[N]._updateBounds()},scrollBy:function(e){var t=this._scrollers[z],n=this._scrollers[N];t&&(e.top=t._boundLocation(e.top+t._location)-t._location),n&&(e.left=n._boundLocation(e.left+n._location)-n._location),this._prepareDirections(!0),this._startAction(),this._eventHandler("scrollBy",{x:e.left,y:e.top}),this._endAction()},validate:function(e){return!this.option("disabled")&&(!!this.option("bounceEnabled")||((0,S.isDxMouseWheelEvent)(e)?this._validateWheel(e):this._validateMove(e)))},_validateWheel:function(e){var t=this,n=this._scrollers[this._wheelDirection(e)],i=n._reachedMin(),o=n._reachedMax(),a=!i||!o,r=!i&&!o,s=i&&e.delta>0,l=o&&e.delta<0,u=a&&(r||s||l);return u=u||void 0!==this._validateWheelTimer,u&&(clearTimeout(this._validateWheelTimer),this._validateWheelTimer=setTimeout(function(){t._validateWheelTimer=void 0},K)),u},_validateMove:function(e){return!(!this.option("scrollByContent")&&!(0,s.default)(e.target).closest(".".concat(H)).length)&&this._allowedDirection()},getDirection:function(e){return(0,S.isDxMouseWheelEvent)(e)?this._wheelDirection(e):this._allowedDirection()},_wheelProp:function(){return this._wheelDirection()===N?"left":"top"},_wheelDirection:function(e){switch(this.option("direction")){case N:return N;case z:return z;default:return e&&e.shiftKey?N:z}},verticalOffset:function(){return 0},dispose:function(){this._resetActive(),o===this&&(o=null),this._eventHandler("dispose"),this._detachEventHandlers(),this._$element.removeClass(V),this._eventForUserAction=null,clearTimeout(this._validateWheelTimer),clearTimeout(this._updateHandlerTimeout)},_detachEventHandlers:function(){d.default.off(this._$element,".".concat(R)),d.default.off(this._$container,".".concat(M))}});t.SimulatedStrategy=ne,t.Scroller=te},function(e,t,n){var i=n(4).noop,o=n(15),a=o.abstract,r=n(112),s=o.inherit({ctor:function(){this._finished=!0,this._stopped=!1,this._proxiedStepCore=this._stepCore.bind(this)},start:function(){this._stopped=!1,this._finished=!1,this._stepCore()},stop:function(){this._stopped=!0,r.cancelAnimationFrame(this._stepAnimationFrame)},_stepCore:function(){return this._isStopped()?void this._stop():this._isFinished()?(this._finished=!0,void this._complete()):(this._step(),void(this._stepAnimationFrame=r.requestAnimationFrame(this._proxiedStepCore)))},_step:a,_isFinished:i,_stop:i,_complete:i,_isStopped:function(){return this._stopped},inProgress:function(){return!(this._stopped||this._finished)}});e.exports=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.findChanges=void 0;var i=n(1),o=function(e,t){var n=t(e);if((0,i.isObject)(n))try{return JSON.stringify(n)}catch(e){return n}return n},a=function(e,t,n,i){var a=o(e,i);return t[n[a]]};t.findChanges=function(e,t,n,i){var r={},s={},l=0,u=0,c=[];e.forEach(function(e,t){var i=o(e,n);r[i]=t}),t.forEach(function(e,t){var i=o(e,n);s[i]=t});for(var d=Math.max(e.length,t.length),h=0;h").addClass(y).appendTo(this.$element()),n=this.option("selectedItems"),i={selectionMode:this.option("selectionMode"), items:this.option("items"),keyExpr:this.option("keyExpr"),itemTemplate:this._getTemplateByOption("itemTemplate"),scrollingEnabled:!1,selectedItemKeys:this.option("selectedItemKeys"),focusStateEnabled:this.option("focusStateEnabled"),accessKey:this.option("accessKey"),tabIndex:this.option("tabIndex"),noDataText:"",selectionRequired:!1,onItemRendered:function(t){var n=e.option("width");(0,g.isDefined)(n)&&(0,a.default)(t.itemElement).addClass(C)},onSelectionChanged:function(t){e._syncSelectionOptions(),e._fireSelectionChangeEvent(t.addedItems,t.removedItems)},onItemClick:function(t){e._itemClickAction(t)}};(0,g.isDefined)(n)&&n.length&&(i.selectedItems=n),this._buttonsCollection=this._createComponent(t,S,i)},_syncSelectionOptions:function(){this._setOptionSilent("selectedItems",this._buttonsCollection.option("selectedItems")),this._setOptionSilent("selectedItemKeys",this._buttonsCollection.option("selectedItemKeys"))},_optionChanged:function(e){switch(e.name){case"stylingMode":case"selectionMode":case"keyExpr":case"itemTemplate":case"items":case"activeStateEnabled":case"focusStateEnabled":case"hoverStateEnabled":case"tabIndex":this._invalidate();break;case"selectedItemKeys":case"selectedItems":this._buttonsCollection.option(e.name,e.value);break;case"onItemClick":this._createItemClickAction();break;case"onSelectionChanged":break;case"width":this.callBase(e),this._buttonsCollection.itemElements().toggleClass(C,!!e.value);break;default:this.callBase(e)}}});(0,p.default)("dxButtonGroup",I),e.exports=I},function(e,t,n){e.exports=n(533)},function(e,t,n){var i=n(2),o=n(5),a=n(27),r=n(0).extend,s=n(90),l=n(14),u=n(16),c=n(9),d=n(49),h=n(117),p=n(92),f=n(308),g=n(19),_="dx-colorview",m="dx-colorview-container",v="dx-colorview-container-row",y="dx-colorview-container-cell",b="dx-colorview-palette",x="dx-colorview-palette-cell",w="dx-colorview-palette-handle",C="dx-colorview-palette-gradient",k="dx-colorview-palette-gradient-white",S="dx-colorview-palette-gradient-black",I="dx-colorview-hue-scale",T="dx-colorview-hue-scale-cell",D="dx-colorview-hue-scale-handle",E="dx-colorview-hue-scale-wrapper",A="dx-colorview-controls-container",O="dx-colorview-label-red",B="dx-colorview-label-green",P="dx-colorview-label-blue",R="dx-colorview-label-hex",M="dx-colorview-alpha-channel-scale",V="dx-colorview-alpha-channel-row",F="dx-colorview-alpha-channel-wrapper",L="dx-colorview-alpha-channel-label",H="dx-colorview-alpha-channel-handle",z="dx-colorview-alpha-channel-cell",N="dx-colorview-alpha-channel-border",$="dx-colorview-color-preview",W="dx-colorview-color-preview-container",G="dx-colorview-color-preview-container-inner",j="dx-colorview-color-preview-color-current",q="dx-colorview-color-preview-color-new",K=d.inherit({_supportedKeys:function(){var e=this.option("rtlEnabled"),t=this,n=function(e){var n=100/t._paletteWidth;return e.shiftKey&&(n*=t.option("keyStep")),n=n>1?n:1,Math.round(n)},i=function(e){var n=t._currentColor.hsv.s+e;n>100?n=100:n<0&&(n=0),t._currentColor.hsv.s=n,l()},o=function(e){var n=100/t._paletteHeight;return e.shiftKey&&(n*=t.option("keyStep")),n=n>1?n:1,Math.round(n)},s=function(e){var n=t._currentColor.hsv.v+e;n>100?n=100:n<0&&(n=0),t._currentColor.hsv.v=n,l()},l=function(){t._placePaletteHandle(),t._updateColorFromHsv(t._currentColor.hsv.h,t._currentColor.hsv.s,t._currentColor.hsv.v)},u=function(e){var n=360/(t._hueScaleWrapperHeight-t._hueScaleHandleHeight);return e.shiftKey&&(n*=t.option("keyStep")),n=n>1?n:1},c=function(e){t._currentColor.hsv.h+=e,t._placeHueScaleHandle();var n=a.locate(t._$hueScaleHandle);t._updateColorHue(n.top+t._hueScaleHandleHeight/2)},d=function(n){var i=1/t._alphaChannelScaleWorkWidth;return n.shiftKey&&(i*=t.option("keyStep")),i=i>.01?i:.01,i=e?-i:i},h=function(e){t._currentColor.a+=e,t._placeAlphaChannelHandle();var n=a.locate(t._$alphaChannelHandle);t._calculateColorTransparencyByScaleWidth(n.left+t._alphaChannelHandleWidth/2)};return r(this.callBase(),{upArrow:function(e){e.preventDefault(),e.stopPropagation(),e.ctrlKey?this._currentColor.hsv.h<=360&&!this._isTopColorHue&&c(u(e)):this._currentColor.hsv.v<100&&s(o(e))},downArrow:function(e){e.preventDefault(),e.stopPropagation(),e.ctrlKey?this._currentColor.hsv.h>=0&&(this._isTopColorHue&&(this._currentColor.hsv.h=360),c(-u(e))):this._currentColor.hsv.v>0&&s(-o(e))},rightArrow:function(t){t.preventDefault(),t.stopPropagation(),t.ctrlKey?(e?this._currentColor.a<1:this._currentColor.a>0&&this.option("editAlphaChannel"))&&h(-d(t)):this._currentColor.hsv.s<100&&i(n(t))},leftArrow:function(t){t.preventDefault(),t.stopPropagation(),t.ctrlKey?(e?this._currentColor.a>0:this._currentColor.a<1&&this.option("editAlphaChannel"))&&h(d(t)):this._currentColor.hsv.s>0&&i(-n(t))},enter:function(e){this._fireEnterKeyPressed(e)}})},_getDefaultOptions:function(){return r(this.callBase(),{value:null,matchValue:null,onEnterKeyPressed:void 0,editAlphaChannel:!1,keyStep:1,stylingMode:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===u.real().deviceType&&!u.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initColorAndOpacity(),this._initEnterKeyPressedAction()},_initEnterKeyPressedAction:function(){this._onEnterKeyPressedAction=this._createActionByOption("onEnterKeyPressed")},_fireEnterKeyPressed:function(e){this._onEnterKeyPressedAction&&this._onEnterKeyPressedAction({event:e})},_initColorAndOpacity:function(){this._setCurrentColor(this.option("value"))},_setCurrentColor:function(e){e=e||"#000000";var t=new s(e);t.colorIsInvalid?this.option("value",this._currentColor.baseColor):this._currentColor&&this._makeRgba(this._currentColor)===this._makeRgba(t)||(this._currentColor=t,this._$currentColor&&this._makeTransparentBackground(this._$currentColor,t))},_setBaseColor:function(e){var t=e||"#000000",n=new s(t);if(!n.colorIsInvalid){var i=this._makeRgba(this.option("matchValue")!==this._makeRgba(n));i&&this._$baseColor&&this._makeTransparentBackground(this._$baseColor,n)}},_initMarkup:function(){this.callBase(),this.$element().addClass(_),this._renderColorPickerContainer()},_render:function(){this.callBase(),this._renderPalette(),this._renderHueScale(),this._renderControlsContainer(),this._renderControls(),this._renderAlphaChannelElements()},_makeTransparentBackground:function(e,t){t instanceof s||(t=new s(t)),e.css("backgroundColor",this._makeRgba(t))},_makeRgba:function(e){return e instanceof s||(e=new s(e)),"rgba("+[e.r,e.g,e.b,e.a].join(", ")+")"},_renderValue:function(){this.callBase(this.option("editAlphaChannel")?this._makeRgba(this._currentColor):this.option("value"))},_renderColorPickerContainer:function(){var e=this.$element();this._$colorPickerContainer=i("
").addClass(m).appendTo(e),this._renderHtmlRows()},_renderHtmlRows:function(e){var t=this._$colorPickerContainer.find("."+v),n=t.length,o=this.option("editAlphaChannel")?2:1,a=n-o;if(a>0&&t.eq(-1).remove(),a<0){a=Math.abs(a);var r,s=[];for(r=0;r").addClass(v));if(n)for(r=0;r").addClass(y).addClass(n).appendTo(t.find("."+v).eq(e))},_renderPalette:function(){var e=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,x),t=i("
").addClass([C,k].join(" ")),n=i("
").addClass([C,S].join(" "));this._$palette=i("
").addClass(b).css("backgroundColor",this._currentColor.getPureColor().toHex()).appendTo(e),this._paletteHeight=this._$palette.height(),this._paletteWidth=this._$palette.width(),this._renderPaletteHandle(),this._$palette.append([t,n])},_renderPaletteHandle:function(){this._$paletteHandle=i("
").addClass(w).appendTo(this._$palette),this._createComponent(this._$paletteHandle,f,{area:this._$palette,allowMoveByClick:!0,boundOffset:function(){return-this._paletteHandleHeight/2}.bind(this),onDrag:function(){var e=a.locate(this._$paletteHandle);this._updateByDrag=!0,this._updateColorFromHsv(this._currentColor.hsv.h,this._calculateColorSaturation(e),this._calculateColorValue(e))}.bind(this)}),this._paletteHandleWidth=this._$paletteHandle.width(),this._paletteHandleHeight=this._$paletteHandle.height(),this._placePaletteHandle()},_placePaletteHandle:function(){a.move(this._$paletteHandle,{left:Math.round(this._paletteWidth*this._currentColor.hsv.s/100-this._paletteHandleWidth/2),top:Math.round(this._paletteHeight-this._paletteHeight*this._currentColor.hsv.v/100-this._paletteHandleHeight/2)})},_calculateColorValue:function(e){var t=Math.floor(e.top+this._paletteHandleHeight/2);return 100-Math.round(100*t/this._paletteHeight)},_calculateColorSaturation:function(e){var t=Math.floor(e.left+this._paletteHandleWidth/2);return Math.round(100*t/this._paletteWidth)},_updateColorFromHsv:function(e,t,n){var i=this._currentColor.a;this._currentColor=new s("hsv("+[e,t,n].join(",")+")"),this._currentColor.a=i,this._updateColorParamsAndColorPreview(),this.applyColor()},_renderHueScale:function(){var e=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,T);this._$hueScaleWrapper=i("
").addClass(E).appendTo(e),this._$hueScale=i("
").addClass(I).appendTo(this._$hueScaleWrapper),this._hueScaleHeight=this._$hueScale.height(),this._hueScaleWrapperHeight=this._$hueScaleWrapper.outerHeight(),this._renderHueScaleHandle()},_renderHueScaleHandle:function(){this._$hueScaleHandle=i("
").addClass(D).appendTo(this._$hueScaleWrapper),this._createComponent(this._$hueScaleHandle,f,{area:this._$hueScaleWrapper,allowMoveByClick:!0,direction:"vertical",onDrag:function(){this._updateByDrag=!0,this._updateColorHue(a.locate(this._$hueScaleHandle).top+this._hueScaleHandleHeight/2)}.bind(this)}),this._hueScaleHandleHeight=this._$hueScaleHandle.height(),this._placeHueScaleHandle()},_placeHueScaleHandle:function(){var e=this._hueScaleWrapperHeight,t=this._hueScaleHandleHeight,n=(e-t)*(360-this._currentColor.hsv.h)/360;e=360&&(this._isTopColorHue=!0,t=0),this._updateColorFromHsv(t,n,i),this._$palette.css("backgroundColor",this._currentColor.getPureColor().toHex())},_renderControlsContainer:function(){var e=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer);this._$controlsContainer=i("
").addClass(A).appendTo(e)},_renderControls:function(){this._renderColorsPreview(),this._renderRgbInputs(),this._renderHexInput()},_renderColorsPreview:function(){var e=i("
").addClass(W).appendTo(this._$controlsContainer),t=i("
").addClass(G).appendTo(e);this._$currentColor=i("
").addClass([$,q].join(" ")),this._$baseColor=i("
").addClass([$,j].join(" ")),this._makeTransparentBackground(this._$baseColor,this.option("matchValue")),this._makeTransparentBackground(this._$currentColor,this._currentColor),t.append([this._$baseColor,this._$currentColor])},_renderAlphaChannelElements:function(){this.option("editAlphaChannel")&&(this._$colorPickerContainer.find("."+v).eq(1).addClass(V),this._renderAlphaChannelScale(),this._renderAlphaChannelInput())},_renderRgbInputs:function(){this._rgbInputsWithLabels=[this._renderEditorWithLabel({editorType:h,value:this._currentColor.r,onValueChanged:this._updateColor.bind(this,!1),labelText:"R",labelAriaText:l.format("dxColorView-ariaRed"),labelClass:O}),this._renderEditorWithLabel({editorType:h,value:this._currentColor.g,onValueChanged:this._updateColor.bind(this,!1),labelText:"G",labelAriaText:l.format("dxColorView-ariaGreen"),labelClass:B}),this._renderEditorWithLabel({editorType:h,value:this._currentColor.b,onValueChanged:this._updateColor.bind(this,!1),labelText:"B",labelAriaText:l.format("dxColorView-ariaBlue"),labelClass:P})],this._$controlsContainer.append(this._rgbInputsWithLabels),this._rgbInputs=[this._rgbInputsWithLabels[0].find(".dx-numberbox").dxNumberBox("instance"),this._rgbInputsWithLabels[1].find(".dx-numberbox").dxNumberBox("instance"),this._rgbInputsWithLabels[2].find(".dx-numberbox").dxNumberBox("instance")]},_renderEditorWithLabel:function(e){var t=i("
"),n=i("