UNPKG

3.56 MBJavaScriptView Raw
1/*!
2* DevExtreme (dx.all.js)
3* Version: 19.1.5 (build 19226-0309)
4* Build date: Wed Aug 14 2019
5*
6* Copyright (c) 2012 - 2019 Developer Express Inc. ALL RIGHTS RESERVED
7* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
8*/
9"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=855)}([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<arguments.length;n++){var a=arguments[n];if(null!=a)for(var r in a){var s,l=t[r],u=a[r],c=!1;"__proto__"!==r&&t!==u&&(o&&u&&(i(u)||(c=Array.isArray(u)))?(s=c?l&&Array.isArray(l)?l:[]:l&&i(l)?l:{},t[r]=e(o,s,u)):void 0!==u&&(t[r]=u))}}return t};t.extend=a,t.extendFromObject=o},function(e,t,n){var 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},o={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string","[object Null]":"null"},a=function(e){var t=Object.prototype.toString.call(e);return"object"===("undefined"==typeof e?"undefined":i(e))?o[t]||"object":"undefined"==typeof e?"undefined":i(e)},r=function(e){return"boolean"==typeof e},s=function(e){return h(e)&&e.toString().indexOf("e")!==-1},l=function(e){return"date"===a(e)},u=function(e){return null!==e&&void 0!==e},c=function(e){return"function"==typeof e},d=function(e){return"string"==typeof e},h=function(e){return"number"==typeof e&&isFinite(e)||!isNaN(e-parseFloat(e))},p=function(e){return"object"===a(e)},f=function(e){var t;for(t in e)return!1;return!0},g=function(e){if(!e||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e),n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&Object.toString.call(n)===Object.toString.call(Object)},_=function(e){return["object","array","function"].indexOf(a(e))===-1},m=function(e){return null!=e&&e===e.window},v=function(e){return!(!e.jquery&&!e.dxRenderer)},y=function(e){return e&&c(e.then)},x=function(e){return e&&c(e.done)&&c(e.fail)};t.isBoolean=r,t.isExponential=s,t.isDate=l,t.isDefined=u,t.isFunction=c,t.isString=d,t.isNumeric=h,t.isObject=p,t.isEmptyObject=f,t.isPlainObject=g,t.isPrimitive=_,t.isWindow=m,t.isRenderer=v,t.isPromise=y,t.isDeferred=x,t.type=a},function(e,t,n){var i=n(213);e.exports=i.get()},function(e,t,n){var i=function(e,t){if(Array.isArray(e))return e.map(t);var n=[];for(var i in e)n.push(t(e[i],i));return n},o=function(e,t){if(e){if("length"in e)for(var n=0;n<e.length&&t.call(e[n],n,e[n])!==!1;n++);else for(var i in e)if(t.call(e[i],i,e[i])===!1)break;return e}},a=function(e,t){if(e&&"length"in e&&0!==e.length)for(var n=e.length-1;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}}var 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},a=n(28),r=i(a),s=n(43),l=i(s),u=n(6),c=n(3),d=n(20),h=n(1),p=function(e,t){return(0,h.isDefined)(e)?e:t},f=function(e,t){var n=new u.Deferred,i=t||this,o=void 0,a={promise:n.promise(),abort:function(){clearTimeout(o),n.rejectWith(i)}},r=function(){var t=e.call(i);t&&t.done&&(0,h.isFunction)(t.done)?t.done(function(){n.resolveWith(i)}):n.resolveWith(i)};return o=(arguments[2]||setTimeout)(r,"number"==typeof t?t:0),a},g=[],_=[],m=[],v=void 0,y=function(e,t,n){if(v&&v!==e)return g.push(t),_.push(e),n=n||new u.Deferred,m.push(n),n;var i=v,o=m.length;v=e;var a=t();return a||(m.length>o?a=u.when.apply(this,m.slice(o)):n&&n.resolve()),v=i,n&&a&&a.done&&a.done(n.resolve).fail(n.reject),!v&&g.length&&("render"===_.shift()?x:b)(g.shift(),m.shift()),a||(0,u.when)()},x=function(e,t){return y("render",e,t)},b=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,c.each)(t,function(t,a){var r=0,s=n?n(a):a;(0,c.each)(e,function(e,t){var n=s[e];if(void 0!==n)return S(n,t)?void r++:(r=-1,!1)}),r<o||(r>o&&(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,c.each)(e,function(e,i){if(i!==t[e])return n=!0,!1}),!n}return e===t},I=function(e){switch("undefined"==typeof e?"undefined":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,h.isString)(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9_]/g);return n&&(0,c.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<e.length;i++)if(!P(e[i],t[i],n+1))return!1;return!0},A=function(e,t,n){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&!P(e[i],t[i],n+1))return!1;for(var o in t)if(!(o in e))return!1;return!0},O=function(e,t){var n=I(e),i=t?parseFloat(n&&n[0]):parseInt(n&&n[0],10),o=t?parseFloat(n&&n[1]):parseInt(n&&n[1],10);return isFinite(i)||(i=0),isFinite(o)||(o=i),{h:i,v:o}},B=3,P=function(e,t,n){return n=n||0,e=(0,d.toComparable)(e,!0),t=(0,d.toComparable)(t,!0),e===t||n>=B||((0,h.isObject)(e)&&(0,h.isObject)(t)?A(e,t,n):!(!Array.isArray(e)||!Array.isArray(t))&&E(e,t,n))},M=function(e){if(e instanceof l.default)return e.toString();if((0,h.isObject)(e)||Array.isArray(e))try{var t=JSON.stringify(e);return"{}"===t?e:t}catch(t){return e}return e},R=function(e){return e.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},V=function(e){var t=(0,r.default)().serverDecimalSeparator;return(0,h.isDefined)(e)&&(e=e.toString().replace(".",t)),e},F=function(){},L=function(){return(new u.Deferred).resolve().promise()},H=function(e,t,n){for(var i=[],o=void 0,a=!n,r=0;r<e.length;r++)o=!!t(e[r],r),o===a&&i.push(e[r]);return i};t.ensureDefined=p,t.executeAsync=f,t.deferRender=x,t.deferRenderer=w,t.deferUpdate=b,t.deferUpdater=C,t.pairToObject=O,t.splitPair=I,t.findBestMatches=k,t.normalizeKey=T,t.denormalizeKey=D,t.equalByValue=P,t.getKeyHash=M,t.escapeRegExp=R,t.applyServerDecimalSeparator=V,t.noop=F,t.asyncNoop=L,t.grep=H},function(e,t,n){var i,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},a=n(113),r=n(0).extend,s=n(11),l=n(7),u=l.getWindow(),c=n(52),d=n(1),h=n(25),p=d.isWindow,f=d.isFunction,g=d.isString,_=n(21),m=n(177),v=n(214),y="dxEmptyEventType",x={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},b={focusin:"focus",focusout:"blur"},w=["blur","focusout","focus","focusin","load"],C=["touchmove","wheel","mousewheel"],k=function(e,t){return!p(e)&&"#document"!==e.nodeName&&s.elementMatches(e,t)},S=new m,I=0,T=function(){var e={};return a.add(function(t,n){e[t]=n}),{getField:function(t,n){return e[t]&&e[t][n]},callMethod:function(t,n,i,o){return e[t]&&e[t][n]&&e[t][n].apply(i,o)}}}(),D=function e(t,n){var i=t[0];if(i)if(s.isNode(i)||p(i))n.apply(z,t);else{if(g(i)||!("length"in i))throw _.Error("E0025");var o=Array.prototype.slice.call(t,0);Array.prototype.forEach.call(i,function(t){o[0]=t,e(o,n)})}},E=function(e){return function(){D(arguments,e)}},A=function(e,t){var n=S.get(e);t=t||"";var o=t.split("."),a=o.slice(1),r=!!o[0];t=o[0]||y,n||(n={},S.set(e,n)),n[t]||(n[t]={handleObjects:[],nativeHandler:null});var l=n[t];return{addHandler:function(n,o,u){var c=function(i,o){var a,r,s=[i],l=i.currentTarget,c=i.relatedTarget;t in x&&(a=c&&l&&(c===l||l.contains(c))),void 0!==o&&s.push(o),T.callMethod(t,"handle",e,[i,u]),a||(r=n.apply(l,s)),r===!1&&(i.preventDefault(),i.stopPropagation())},d=function(t,n){if(!i||t.type!==i)if(t.data=u,t.delegateTarget=e,o)for(var a=t.target;a&&a!==e;)k(a,o)&&(t.currentTarget=a,c(t,n)),a=a.parentNode;else t.currentTarget=t.delegateTarget||t.target,c(t,n)},h={handler:n,wrappedHandler:d,selector:o,type:t,data:u,namespace:a.join("."),namespaces:a,guid:++I};l.handleObjects.push(h);var p,f=1===l.handleObjects.length,g=f&&r;g&&(g=!T.callMethod(t,"setup",e,[u,a,n])),g&&(l.nativeHandler=O(t),C.indexOf(t)>-1&&(p={passive:!1}),l.removeListener=s.listen(e,x[t]||t,l.nativeHandler,p)),T.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&&!B(n.namespaces,a)||i&&n.handler!==i||o&&n.selector!==o;return r||(s=n.handler,T.callMethod(t,"remove",e,[n])),r});var l=!r.handleObjects.length,u=l&&t!==y;u&&(T.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&&S.delete(e)},callHandlers:function(e,t){var i=!1,o=function(n){i||a.length&&!B(n.namespaces,a)||(n.wrappedHandler(e,t),i=e.isImmediatePropagationStopped())};l.handleObjects.forEach(o),a.length&&n[y]&&n[y].handleObjects.forEach(o)}}},O=function(e){return function(t,n){var i=A(this,e);t=z.Event(t),i.callHandlers(t,n)}},B=function(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])<0)return!1;return!0},P=function(e){return function(t,n,i,o,a){a||(a=o,o=void 0),"string"!=typeof i&&(o=i,i=void 0),a||"string"!=typeof n||(a=o||i,i=void 0,o=void 0),e(t,n,i,o,a)}},M=function(e){return function(t,n,i,o){"function"==typeof i&&(o=i,i=void 0),e(t,n,i,o)}},R=function(e){return function(t,n,i){"string"==typeof n&&(n={type:n}),n.target||(n.target=t),n.currentTarget=t,n.delegateTarget||(n.delegateTarget=t),!n.type&&n.originalEvent&&(n.type=n.originalEvent.type),e(t,n instanceof z.Event?n:z.Event(n),i)}},V=function(e){return function(t,n){return this instanceof z.Event?(t||(t={}),"string"==typeof t&&(t={type:t}),n||(n={}),void e.call(this,t,n)):new z.Event(t,n)}},F=function(e){var t=function(t,n){if(n&&n.indexOf(" ")>-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"===("undefined"==typeof n?"undefined":o(n))){var i=Array.prototype.slice.call(arguments,0);for(var a in n)i[1]=a,i[i.length-1]=n[a],t.apply(this,i)}else t.apply(this,arguments)}},L=function(e,t){var n=b[e]||e,o=function(e,t){return"click"===e&&"a"===t.localName};o(e,t)||f(t[n])&&(i=e,t[n](),i=void 0)},H=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},z=c({on:E(P(F(function(e,t,n,i,o){var a=A(e,t);a.addHandler(o,n,i)}))),one:E(P(function(e,t,n,i,o){var a=function i(){z.off(e,t,n,i),o.apply(this,arguments)};z.on(e,t,n,i,a)})),off:E(M(F(function(e,t,n,i){var o=A(e,t);o.removeHandler(i,n)}))),trigger:E(R(function(e,t,n){var i=t.type,o=A(e,t.type);T.callMethod(i,"trigger",e,[t,n]),o.callHandlers(t,n);var a=T.getField(i,"noBubble")||t.isPropagationStopped()||w.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=A(s[c],t.type);d.callHandlers(r(t,{currentTarget:s[c]}),n),c++}}(e.nodeType||p(e))&&(T.callMethod(i,"_default",e,[t,n]),L(i,e))})),triggerHandler:E(R(function(e,t,n){var i=A(e,t.type);i.callHandlers(t,n)}))}),N=function(e){e&&(z.Event=e,z.Event.prototype=e.prototype)};N(V(function(e,t){var n=this,i=!1,o=!1,a=!1;r(n,e),(e instanceof z.Event||l.hasWindow()&&e instanceof u.Event)&&(n.originalEvent=e,n.currentTarget=void 0),e instanceof z.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()}}),$("which",H,n),0===e.type.indexOf("touch")&&(delete t.pageX,delete t.pageY),r(n,t),n.guid=++I}));var $=function(e,t,n){Object.defineProperty(n||z.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($);var W=h(),G=h();z.set=function(e){W.fire(),z.inject(e),N(e.Event),G.fire()},z.subscribeGlobal=function(){D(arguments,P(function(){var e=arguments;z.on.apply(this,e),W.add(function(){var t=Array.prototype.slice.call(e,0);t.splice(3,1),z.off.apply(this,t)}),G.add(function(){z.on.apply(this,e)})}))},z.forcePassiveFalseEventNames=C,e.exports=z},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(i){var r="done"===i?e:t;this[i](function(){if(!r)return void n["done"===i?"resolve":"reject"].apply(this,arguments);var e=r&&r.apply(this,arguments);a(e)?e.done(n.resolve).fail(n.reject):o(e)?e.then(n.resolve,n.reject):n.resolve.apply(this,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;s<e.length;s++)a(e[s])?e[s].promise().done(r(s)).fail(o.reject):i++;return i===e.length&&o.resolveWith(n,e),o.promise()};t.setStrategy=function(e){u=e.Deferred,c=e.when},t.Deferred=function(){return new u},t.when=function(){return c.apply(this,arguments)}},function(e,t,n){var i=n(11),o="undefined"!=typeof window,a=o&&window;a||(a={},a.window=a),e.exports={hasWindow:function(){return o},getWindow:function(){return a},hasProperty:function(e){return this.hasWindow()&&e in a},defaultScreenFactorFunc:function(e){return e<768?"xs":e<992?"sm":e<1200?"md":"lg"},getCurrentScreenFactor:function(e){var t=e||this.defaultScreenFactorFunc,n=i.getDocumentElement().clientWidth;return t(n)},getNavigator:function(){return this.hasWindow()?a.navigator:{userAgent:""}}}},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(21),u=i(l),c=n(64),d=n(0),h=n(3),p={backspace:"backspace",tab:"tab",enter:"enter",escape:"escape",pageup:"pageUp",pagedown:"pageDown",end:"end",home:"home",arrowleft:"leftArrow",arrowup:"upArrow",arrowright:"rightArrow",arrowdown:"downArrow","delete":"del"," ":"space",f:"F",a:"A","*":"asterisk","-":"minus",alt:"alt",control:"control",shift:"shift",left:"leftArrow",up:"upArrow",right:"rightArrow",down:"downArrow",multiply:"asterisk",spacebar:"space",del:"del",subtract:"minus"},f={8:"backspace",9:"tab",13:"enter",27:"escape",33:"pageUp",34:"pageDown",35:"end",36:"home",37:"leftArrow",38:"upArrow",39:"rightArrow",40:"downArrow",46:"del",32:"space",70:"F",65:"A",106:"asterisk",109:"minus",189:"minus",173:"minus",16:"shift",17:"control",18:"alt"},g=function(){var e={dx:/^dx/i,mouse:/(mouse|wheel)/i,touch:/^touch/i,keyboard:/^key/i,pointer:/^(ms)?pointer/i};return function(t){var n="other";return(0,h.each)(e,function(e){if(this.test(t.type))return n=e,!1}),n}}(),_=function(e){return"dx"===g(e)},m=function(e){return"mouse"===g(e)},v=function(e){return"touch"===g(e)},y=function(e){return"pointer"===g(e)},x=function(e){return m(e)||(y(e)||_(e))&&"mouse"===e.pointerType},b=function(e){return e&&"dxmousewheel"===e.type},w=function(e){return v(e)||(y(e)||_(e))&&"touch"===e.pointerType},C=function(e){return"keyboard"===g(e)},k=function(e){return 0===e.screenX&&!e.offsetX&&0===e.pageX},S=function(e){return{x:e.pageX,y:e.pageY,time:e.timeStamp}},I=function(e,t){return{x:t.x-e.x,y:t.y-e.y,time:t.time-e.time||1}},T=function(e){return v(e)?(e.originalEvent.touches||[]).length:_(e)?(e.pointers||[]).length:0},D=function(e){var t=e.target,n=(0,a.default)(t),i=n.is("input, textarea, select");if(n.is(".dx-skip-gesture-event *, .dx-skip-gesture-event"))return!0;if(b(e)){if(n.is("textarea")&&n.hasClass("dx-texteditor-input"))return!1;var o=t.isContentEditable||t.hasAttribute("contenteditable"),r=n.closest("div[contenteditable='true']").is(":focus"),s=n.is("input[type='number'], textarea, select")&&n.is(":focus");return s||o&&r}return x(e)?i||e.which>1: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},M=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(" "))},R=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:x,isDxMouseWheelEvent:b,isTouchEvent:w,isKeyboardEvent:C,isFakeClickEvent:k,hasTouches:T,eventData:S,eventDelta:I,needSkipEvent:D,createEvent:B,fireEvent:P,addNamespace:M,setEventFixMethod:A,normalizeKeyName:R,getChar:V}},function(e,t,n){var i=n(2),o=n(149),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,t){for(var n,i=0,o=e.length,a=[];i<o;)n=t(e[i],i),null!==n&&a.push(n),i++;return a}function o(e,t){return i(t,function(t){return e[t]?e[t]:null})}function a(e,t,n,i){var o=i;return v(t,function(t,i){e[i]&&(e[i]-=n,o-=n)}),o}function r(e){return String(e).toLowerCase()}function s(e){return e&&(e.originalTop=e.top,e.originalBottom=e.bottom,e.originalLeft=e.left,e.originalRight=e.right),e}function l(e){return-D<e&&e<+D?e:0}function u(e){var t=l(R(e.x)),n=l(R(e.y)),i=l(V(e.width+e.x)),o=l(V(e.height+e.y)),a={x:t,y:n,width:i-t,height:o-n};return a.isEmpty=!(a.x||a.y||a.width||a.height),a}function c(e,t,n){var i=H(O(n*E).toFixed(3)),o=H(B(n*E).toFixed(3)),a=e.width/2,r=e.height/2,s=e.x+a,l=e.y+r,c=P(a*i)+P(r*o),d=P(a*o)+P(r*i),h=t[0]+(s-t[0])*i+(l-t[1])*o,p=t[1]-(s-t[0])*o+(l-t[1])*i;return u({x:h-c,y:p-d,width:2*c,height:2*d})}function d(e){return Array.isArray(e)?{startValue:e[0],endValue:e[1]}:e||{}}function h(e,t){return t?e:[e.startValue,e.endValue]}function p(e,t){return"datetime"===e.dataType?function(e,t){var n=arguments.length>2&&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(b(d))if(s)"datetime"!==e.dataType||w(d)||(d=x(d)),r&&!a||!r&&!a?(b(i.max)&&(c=c>i.max?i.max:c),u=l(c,d,-1)):a&&!r&&(b(i.min)&&(u=u<i.min?i.min:u),c=l(u,d));else if(d=parseInt(d),!isNaN(d)&&isFinite(d))if(d--,r||a){if(a&&!r){var f=t.getCategoriesInfo(h,u,void 0);c=f.categories[d]}else if(!a&&r){var g=t.getCategoriesInfo(h,void 0,c);u=g.categories[g.categories.length-1-d]}}else c=h[h.length-1],u=h[h.length-1-d];return s&&(b(i.max)&&c>i.max&&(c=i.max),b(i.min)&&u<i.min&&(u=i.min)),{startValue:u,endValue:c}}var g=n(4).noop,_=n(1),m=n(0).extend,v=n(3).each,y=n(29).adjust,x=n(22).dateToMilliseconds,b=_.isDefined,w=_.isNumeric,C=_.isExponential,k=Math,S=k.round,I=Math.sqrt,T=Math.PI,D=1e10,E=T/180,A=Math.LN10,O=Math.cos,B=Math.sin,P=Math.abs,M=Math.log,R=Math.floor,V=Math.ceil,F=Math.max,L=isNaN,H=Number,z=NaN,N=function(e,t){return e?Math.log(e)/Math.log(t):z},$=function(e){return y(N(e,10))},W=function(e,t){return Math.pow(t,e)},G=function(e){return(e%360+360)%360},j=function(e){return 90-e},q=function(e){return T*e/180},K=function(e){var t=q(e);return{cos:O(t),sin:B(t)}},U=1e-14,Y=function(e,t,n,i){var o=n-e,a=i-t;return Math.sqrt(a*a+o*o)},X=function(e){var t,n=P(e);return L(n)?z:n>0?(n=M(n)/A,t=V(n),t-n<U?t:R(n)):0},Z=function(e,t,n){var i,o=F(X(e),X(t)),a=-X(P(t-e)/n);return L(o)||L(a)?null:(P(o)<=4?(i="fixedPoint",a<0&&(a=0),a>4&&(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;++t)i[r(e[t])]=1;return function(e,t){var n=r(e);return i[n]?n:t}},patchFontOptions:function(e){var t={};return v(e||{},function(e,n){/^(cursor|opacity)$/i.test(e)||(e="color"===e?"fill":"font-"+e),t[e]=n}),t},convertPolarToXY:function(e,t,n,i){var o,a=90;return n=b(n)?n+t-a:0,o=K(n),{x:S(e.x+i*o.cos),y:S(e.y+i*o.sin)}},convertXYToPolar:function(e,t,n){var i=Y(e.x,e.y,t,n),o=k.atan2(n-e.y,t-e.x);return{phi:S(G(180*o/k.PI)),r:S(i)}},processSeriesTemplate:function(e,t){var n,o,a,r=_.isFunction(e.customizeSeries)?e.customizeSeries:g,s=e.nameField,l={},u=[],c=0;for(t=t||[],o=t.length;c<o;c++)a=t[c],s in a&&(n=l[a[s]],n||(n=l[a[s]]={name:a[s],nameFieldValue:a[s]},u.push(n.name)));return i(u,function(e){var t=l[e];return m(t,r.call(null,t.name))})},getCategoriesInfo:function(e,t,n){if(0===e.length)return{categories:[]};t=b(t)?t:e[0],n=b(n)?n:e[e.length-1];var o,a,r,s=i(e,function(e){return b(e)?e.valueOf():null}),l=s.indexOf(t.valueOf()),u=s.indexOf(n.valueOf()),c=!1;return l<0&&(l=0),u<0&&(u=e.length-1),u<l&&(a=u,u=l,l=a,c=!0),o=e.slice(l,u+1),r=o.length-1,{categories:o,start:o[c?r:0],end:o[c?0:r],inverted:c}},setCanvasValues:s,updatePanesCanvases:function(e,t,n){var i=0;v(e,function(e,t){t.weight=t.weight||1,i+=t.weight});var o=0,a=e.padding||10,r=n?t.width-t.left-t.right:t.height-t.top-t.bottom,l=(r-a*(e.length-1))/i,u=n?"left":"top",c=n?"right":"bottom";v(e,function(e,n){var i=S(n.weight*l);n.canvas=n.canvas||{},m(n.canvas,t),n.canvas[u]=t[u]+o,n.canvas[c]=t[c]+(r-i-o),o=o+i+a,s(n.canvas)})},unique:function(e){var t={};return i(e,function(e){var n=t[e]?null:e;return t[e]=!0,n})},map:i,getVerticallyShiftedAngularCoords:function(e,t,n){var i=e.x+e.width/2>=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="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},o=n(52),a=n(4).noop,r={querySelectorAll:function(e,t){return e.querySelectorAll(t)},elementMatches:function(e,t){var n=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(t){var n=e.document||e.ownerDocument;if(!n)return!1;for(var i=this.querySelectorAll(n,t),o=0;o<i.length;o++)if(i[o]===e)return!0}.bind(this);return n.call(e,t)},createElement:function(e,t){return t=t||this._document,t.createElement(e)},createElementNS:function(e,t,n){return n=n||this._document,n.createElementNS(e,t)},createTextNode:function(e,t){return t=t||this._document,t.createTextNode(e)},isNode:function(e){return"object"===("undefined"==typeof e?"undefined":i(e))&&"nodeType"in e},isElementNode:function(e){return e&&e.nodeType===Node.ELEMENT_NODE},isTextNode:function(e){return e&&e.nodeType===Node.TEXT_NODE},isDocument:function(e){return e&&e.nodeType===Node.DOCUMENT_NODE},removeElement:function(e){var t=e&&e.parentNode;t&&t.removeChild(e)},insertElement:function(e,t,n){e&&t&&e!==t&&(n?e.insertBefore(t,n):e.appendChild(t))},getAttribute:function(e,t){return e.getAttribute(t)},setAttribute:function(e,t,n){e.setAttribute(t,n)},removeAttribute:function(e,t){e.removeAttribute(t)},setProperty:function(e,t,n){e[t]=n},setText:function(e,t){e&&(e.textContent=t)},setClass:function(e,t,n){if(1===e.nodeType&&t)if(e.classList)n?e.classList.add(t):e.classList.remove(t);else{var i,o="string"==typeof e.className,a=o?e.className:this.getAttribute(e,"class")||"",r=a.split(" "),s=r.indexOf(t);n&&s<0&&(i=a?a+" "+t:t),!n&&s>=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)}):a}};e.exports=o(r)},function(e,t,n){var i,o=n(2),a=n(28),r=n(11),s=n(7),l=s.getWindow(),u=n(5),c=n(13).inArray,d=n(1),h=d.isDefined,p=d.isRenderer,f=n(215),g=function(){var e=r.getActiveElement();e&&e!==r.getBody()&&e.blur&&e.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<a.length;r++)u.triggerHandler(a[r],e)}},y=function(){var e=0;return function(t){return(t||"")+e++}}(),x="data-options",b=function(e){var t=o(e).attr(x)||"";return a().optionsParser(t)},w=function(e,t){var n=[],i="["+x+"]",a=e.find(i).add(e.filter(i));return a.each(function(e,i){var a=o(i),r=b(i);for(var s in r)(!t||c(s,t)>-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("<div>");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("<div>").append(e),e.html())},S=function e(t){var n=h(t)&&(t.nodeType||p(t))?o(t):o("<div>").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)}),t.setPublicElementWrapper=E,t.resetActiveElement=g,t.createMarkupFromString=C,t.triggerShownEvent=v("dxshown"),t.triggerHidingEvent=v("dxhiding"),t.triggerResizeEvent=v("dxresize"),t.getElementOptions=b,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},function(e,t,n){var i=n(1).isDefined,o=n(3).each,a=n(48),r=n(28),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;n<t.length;n++)e[e.length]=t[n];return e},f=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n];
10};t.isEmpty=s,t.wrapToArray=l,t.intersection=u,t.removeDuplicates=c,t.normalizeIndexes=d,t.inArray=h,t.merge=p,t.find=f},function(e,t,n){var i=n(2),o=n(52),a=n(0).extend,r=n(3).each,s=n(45).format,l=n(32).humanize,u=n(84);n(84);var c="-",d=a(!0,{},n(446)),h=n(447),p=function(e){var t=h[e];return t?"root"!==t&&t:e.substr(0,e.lastIndexOf(c))},f=function(e,t){return e[t]||{}},g=function(e,t,n){for(var i,o=f(e,t)[n];!o&&!i;)t=p(t),t?o=f(e,t)[n]:i=!0;return o},_={},m=o({_dictionary:d,load:function(e){a(!0,this._dictionary,e)},_localizablePrefix:"@",setup:function(e){this._localizablePrefix=e},localizeString:function(e){var t=this,n=new RegExp("(^|[^a-zA-Z_0-9"+t._localizablePrefix+"-]+)("+t._localizablePrefix+"{1,2})([a-zA-Z_0-9-]+)","g"),i=t._localizablePrefix+t._localizablePrefix;return e.replace(n,function(e,n,o,a){var r,s=t._localizablePrefix+a;return o!==i&&(r=t.format(a)),r||(_[a]=l(a)),n+(r||s)})},_messageLoaded:function(e,t){return void 0!==g(this._dictionary,t||u.locale(),e)},localizeNode:function(e){var t=this;i(e).each(function(e,n){n.nodeType&&(3===n.nodeType?n.nodeValue=t.localizeString(n.nodeValue):i(n).is("iframe")||(r(n.attributes||[],function(e,n){if("string"==typeof n.value){var i=t.localizeString(n.value);n.value!==i&&(n.value=i)}}),i(n).contents().each(function(e,n){t.localizeNode(n)})))})},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(e){return e?_:a({},_,this.getMessagesByLocales()[u.locale()])},getFormatter:function(e){return this._getFormatterBase(e)||this._getFormatterBase(e,"en")},_getFormatterBase:function(e,t){var n=g(this._dictionary,t||u.locale(),e);if(n)return function(){var e=1===arguments.length&&Array.isArray(arguments[0])?arguments[0].slice(0):Array.prototype.slice.call(arguments,0);return e.unshift(n),s.apply(this,e)}},format:function(e){var t=this.getFormatter(e),n=Array.prototype.slice.call(arguments,1);return t&&t.apply(this,n)||""}});e.exports=m},function(e,t,n){var i=n(21),o=n(1),a=function(e,t,n){return function(){var i=this.callBase;this.callBase=e[t];try{return n.apply(this,arguments)}finally{this.callBase=i}}},r=function(e){var t=function(){};return t.prototype=e.prototype,new t},s=function(e){var t,n,i,o=this;if(!e)return o;for(n in e)i=e[n],t="function"==typeof o.prototype[n]&&"function"==typeof i,o.prototype[n]=t?a(o.parent.prototype,n,i):i;return o},l=function(){var e,t,n,i=this,o=Object.prototype.hasOwnProperty.bind(i),a=!o("_includedCtors")&&!o("_includedPostCtors");for(a&&(i._includedCtors=i._includedCtors.slice(0),i._includedPostCtors=i._includedPostCtors.slice(0)),n=0;n<arguments.length;n++){e=arguments[n],e.ctor&&i._includedCtors.push(e.ctor),e.postCtor&&i._includedPostCtors.push(e.postCtor);for(t in e)"ctor"!==t&&"postCtor"!==t&&(i.prototype[t]=e[t])}return i},u=function(e){return this.parent===e||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(e)},c=function(){throw i.Error("E0001")},d=function(){var e=Object.prototype.hasOwnProperty;return function(t,n){for(var i in t){if(!e.call(t,i))return;n[i]=t[i]}}}(),h=function(){};h.inherit=function(e){var t=function(){if(!this||o.isWindow(this)||"function"!=typeof this.constructor)throw i.Error("E0003");var e,t=this,n=t.ctor,a=t.constructor._includedCtors,r=t.constructor._includedPostCtors;for(e=0;e<a.length;e++)a[e].call(t);for(n&&n.apply(t,arguments),e=0;e<r.length;e++)r[e].call(t)};return t.prototype=r(this),d(this,t),t.inherit=this.inherit,t.abstract=c,t.redefine=s,t.include=l,t.subclassOf=u,t.parent=this,t._includedCtors=this._includedCtors?this._includedCtors.slice(0):[],t._includedPostCtors=this._includedPostCtors?this._includedPostCtors.slice(0):[],t.prototype.constructor=t,t.redefine(e),t},h.abstract=c,e.exports=h},function(e,t,n){var i=n(2),o=n(7),a=o.getNavigator(),r=o.getWindow(),s=n(0).extend,l=n(1).isPlainObject,u=n(3).each,c=n(15),d=n(21),h=n(25),p=n(126),f=n(79),g=n(280).sessionStorage,_=n(75),m=n(28),v={iPhone:"iPhone",iPhone5:"iPhone",iPhone6:"iPhone",iPhone6plus:"iPhone",iPad:"iPad",iPadMini:"iPad Mini",androidPhone:"Android Mobile",androidTablet:"Android",win8:"MSAppHost",win8Phone:"Windows Phone 8.0",msSurface:"Windows ARM Tablet PC",desktop:"desktop",win10Phone:"Windows Phone 10.0",win10:"MSAppHost/3.0"},y={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,win:!1,generic:!0,grade:"A",mac:!1},x={win:function(e){var t=/windows phone/i.test(e)||e.match(/WPDesktop/),n=!t&&/Windows(.*)arm(.*)Tablet PC/i.test(e),i=!t&&!n&&/msapphost/i.test(e);if(t||n||i){var o=e.match(/windows phone (\d+).(\d+)/i)||e.match(/windows nt (\d+).(\d+)/i),a=[];return o?a.push(parseInt(o[1],10),parseInt(o[2],10)):(o=e.match(/msapphost(\/(\d+).(\d+))?/i),o&&a.push(3===parseInt(o[2],10)?10:8)),{deviceType:t?"phone":n?"tablet":"desktop",platform:"win",version:a,grade:"A"}}},ios:function(e){if(/ip(hone|od|ad)/i.test(e)){var t=/ip(hone|od)/i.test(e),n=e.match(/os (\d+)_(\d+)_?(\d+)?/i),i=n?[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3]||0,10)]:[],o=480===r.screen.height,a=o?"B":"A";return{deviceType:t?"phone":"tablet",platform:"ios",version:i,grade:a}}},android:function(e){if(/android|htc_|silk/i.test(e)){var t=/mobile/i.test(e),n=e.match(/android (\d+)\.?(\d+)?\.?(\d+)?/i),i=n?[parseInt(n[1],10),parseInt(n[2]||0,10),parseInt(n[3]||0,10)]:[],o=i.length>1&&(i[0]<4||4===i[0]&&i[1]<4),a=o?"B":"A";return{deviceType:t?"phone":"tablet",platform:"android",version:i,grade:a}}}},b=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(x,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 b;_.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(11),f=n(16),g=n(66),_=n(460),m=n(71),v=n(85),y=n(111),x=n(134),b=n(159),w=n(64),C=n(8),k=n(135),S=n(129),I=n(19),T=n(32),D="UIFeedback",E="dx-widget",A="dx-state-active",O="dx-state-disabled",B="dx-state-invisible",P="dx-state-hover",M="dx-state-focused",R=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("<div>"),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:R,_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){return null==e?new y:e instanceof x?this._defaultTemplates[e.name]:e instanceof m?e:d.isFunction(e.render)&&!d.isRenderer(e)?this._addOneRenderedCall(e):e.nodeType||d.isRenderer(e)?t(i(e)):"string"==typeof e?this._renderIntegrationTemplate(e)||this._defaultTemplates[e]||t(e):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._focusTarget(),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._focusTarget();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._focusTarget(),r,function(e){i(e.target).is(w.focusable)||e.preventDefault()})}},_refreshFocusEvent:function(){this._detachFocusEvents(),this._attachFocusEvents()},_focusInHandler:function(e){var t=this;t._createActionByOption("onFocusIn",{beforeExecute:function(){t._updateFocusState(e,!0)},excludeValidators:["readOnly"]})({event:e})},_focusOutHandler:function(e){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(M,e)},_hasFocusClass:function(e){var t=i(e||this._focusTarget());return t.hasClass(M)},_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 b({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(11),s=n(12),l=n(112),u=n(8),c=n(24),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,i=!e.which||1===e.which;i&&!s&&r(e.target)&&n&&(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<t.length;s++){if(!a){if(null==a&&o)return n.defaultValue;break}var l=t[s];if(o&&r.isObject(a)&&!(l in a))return n.defaultValue;var u=_(a[l],n);!i&&r.isFunction(u)&&(u=u.call(a)),a=u}return a}}return Array.isArray(e)?v(e):r.isFunction(e)?e:void 0},v=function(e){for(var t={},n=0,i=e.length;n<i;n++){var o=e[n];t[o]=m(o)}return function(e,n){var i;return s(t,function(t){var o,a,r,s,l,u=this(e,n);if(void 0!==u){for(o=i||(i={}),a=t.split("."),s=a.length-1,l=0;l<s;l++)r=a[l],r in o||(o[r]={}),o=o[r];o[a[s]]=u}}),i}},y=function(e,t,n,i){if(r.isDefined(n))return n;var o={};return f(e,t,o,i),o},x=function(e){e=h(e||"this").split(".");var t=e.length-1;return function(n,i,o){o=g(o);var s=_(n,o);e.forEach(function(e,n){var l=p(s,e,o),u=!o.functionsAsIs&&r.isFunction(l)&&!c(l);n===t?o.merge&&r.isPlainObject(i)&&(!r.isDefined(l)||r.isPlainObject(l))?(l=y(s,e,l,o),a.deepExtendArraySafe(l,i,!1,!0)):u?s[e](i):f(s,e,i,o):(l=y(s,e,l,o),u&&(l=l.call(s)),s=l)})}},b=function(e,t){return e instanceof Date?e.getTime():e&&e instanceof o&&e.valueOf?e.valueOf():t||"string"!=typeof e?e:e.toLowerCase()};t.compileGetter=m,t.compileSetter=x,t.toComparable=b},function(e,t,n){var i=n(125);e.exports=i({E0001:"Method is not implemented",E0002:"Member name collision: {0}",E0003:"A class must be instantiated using the 'new' keyword",E0004:"The NAME property of the component is not specified",E0005:"Unknown device",E0006:"Unknown endpoint key is requested",E0007:"'Invalidate' method is called outside the update transaction",E0008:"Type of the option name is not appropriate to create an action",E0009:"Component '{0}' has not been initialized for an element",E0010:"Animation configuration with the '{0}' type requires '{1}' configuration as {2}",E0011:"Unknown animation type '{0}'",E0012:"jQuery version is too old. Please upgrade jQuery to 1.10.0 or later",E0013:"KnockoutJS version is too old. Please upgrade KnockoutJS to 2.3.0 or later",E0014:"The 'release' method shouldn't be called for an unlocked Lock object",E0015:"Queued task returned an unexpected result",E0017:"Event namespace is not defined",E0018:"DevExpress.ui.DevExpressPopup widget is required",E0020:"Template engine '{0}' is not supported",
11E0021:"Unknown theme is set: {0}",E0022:"LINK[rel=DevExpress-theme] tags must go before DevExpress included scripts",E0023:"Template name is not specified",E0024:"DevExtreme bundle already included",E0025:"Unexpected argument type",E0100:"Unknown validation type is detected",E0101:"Misconfigured range validation rule is detected",E0102:"Misconfigured comparison validation rule is detected",E0110:"Unknown validation group is detected",E0120:"Adapter for a DevExpressValidator component cannot be configured",E0121:"The 'customItem' field of the 'onCustomItemCreating' function's parameter should contain a custom item or Promise that is resolved after the item is created.",W0000:"'{0}' is deprecated in {1}. {2}",W0001:"{0} - '{1}' option is deprecated in {2}. {3}",W0002:"{0} - '{1}' method is deprecated in {2}. {3}",W0003:"{0} - '{1}' property is deprecated in {2}. {3}",W0004:"Timeout for theme loading is over: {0}",W0005:"'{0}' event is deprecated in {1}. {2}",W0006:"Invalid recurrence rule: '{0}'",W0007:"'{0}' Globalize culture is not defined",W0008:"Invalid view name: '{0}'",W0009:"Invalid time zone name: '{0}'",W0010:"{0} is deprecated in {1}. {2}",W0011:"Number parsing is invoked while the parser is not defined",W0012:"Date parsing is invoked while the parser is not defined",W0013:"'{0}' file is deprecated in {1}. {2}",W0014:"{0} - '{1}' type is deprecated in {2}. {3}",W0015:"Instead of returning a value from the '{0}' function, write it into the '{1}' field of the function's parameter.",W0016:'The "{0}" option does not accept the "{1}" value since v.{2}. {3}.'})},function(e,t,n){function i(e){return b[x(e)]||""}function o(e,t,n){var i=new Date(e.getTime()),o=c(t)?z(t.toLowerCase()):a.isNumeric(t)?m(t):t;return o.years&&i.setFullYear(i.getFullYear()+o.years*n),o.quarters&&i.setMonth(i.getMonth()+3*o.quarters*n),o.months&&i.setMonth(i.getMonth()+o.months*n),o.weeks&&i.setDate(i.getDate()+7*o.weeks*n),o.days&&i.setDate(i.getDate()+o.days*n),o.hours&&i.setTime(i.getTime()+36e5*o.hours*n),o.minutes&&i.setTime(i.getTime()+6e4*o.minutes*n),o.seconds&&i.setTime(i.getTime()+1e3*o.seconds*n),o.milliseconds&&i.setTime(i.getTime()+o.milliseconds*n),i}var a=n(1),r=n(29).adjust,s=n(3).each,l=n(32).camelize,u=a.isObject,c=a.isString,d=a.isDate,h=a.isDefined,p=["millisecond","second","minute","hour","day","week","month","quarter","year"],f=function e(t){switch(t){case"millisecond":return 1;case"second":return 1e3*e("millisecond");case"minute":return 60*e("second");case"hour":return 60*e("minute");case"day":return 24*e("hour");case"week":return 7*e("day");case"month":return 30*e("day");case"quarter":return 3*e("month");case"year":return 365*e("day");default:return 0}},g=function(e,t,n){var i=t.getTime()-e.getTime(),o=f(n)||1;return Math.floor(i/o)},_=function(e,t){var n=x(e);switch(n){case"millisecond":return"second";case"second":return"minute";case"minute":return"hour";case"hour":return"day";case"day":return t?"week":"month";case"week":return"month";case"month":return"quarter";case"quarter":return"year";case"year":return"year";default:return 0}},m=function(e){var t,n,i,o=["millisecond","second","minute","hour","day","month","year"],a={};for(t=o.length-1;t>=0;t--)i=o[t],n=Math.floor(e/f(i)),n>0&&(a[i+"s"]=n,e-=y(i,n));return a},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},x=function(e){var t,n=-1;return c(e)?e:u(e)?(s(e,function(e,i){for(t=0;t<p.length;t++)i&&(e===p[t]+"s"||e===p[t])&&n<t&&(n=t)}),p[n]):""},b={millisecond:"millisecond",second:"longtime",minute:"shorttime",hour:"shorttime",day:"day",week:"day",month:"month",quarter:"quarter",year:"year"},w=function(e){return Math.floor(e/3)},C=function(e){return 3*w(e)},k=function(e,t,n,i){e=new Date(e.getTime());var o,a,r=new Date(e.getTime()),s=x(t);switch(s){case"second":e=new Date(1e3*Math.floor(r.getTime()/1e3));break;case"minute":e=new Date(6e4*Math.floor(r.getTime()/6e4));break;case"hour":e=new Date(36e5*Math.floor(r.getTime()/36e5));break;case"year":e.setMonth(0);case"month":e.setDate(1);case"day":e.setHours(0,0,0,0);break;case"week":e=Z(e,i||0),e.setHours(0,0,0,0);break;case"quarter":o=C(e.getMonth()),a=e.getMonth(),e.setDate(1),e.setHours(0,0,0,0),a!==o&&e.setMonth(o)}return n&&"hour"!==s&&"minute"!==s&&"second"!==s&&ie(r,e),e},S=function(e){return le.correctDateWithUnitBeginning(e,"day")},I=function(e){var t=le.trimTime(e);return t.setDate(t.getDate()+1),new Date(t.getTime()-1)},T=function(e,t){var n,i=0;return n={year:e.getFullYear()!==t.getFullYear(),month:e.getMonth()!==t.getMonth(),day:e.getDate()!==t.getDate(),hour:e.getHours()!==t.getHours(),minute:e.getMinutes()!==t.getMinutes(),second:e.getSeconds()!==t.getSeconds(),millisecond:e.getMilliseconds()!==t.getMilliseconds()},s(n,function(e,t){t&&i++}),0===i&&0!==ae(e,t)&&(n.hour=!0,i++),n.count=i,n},D=function(e,t,n){var i=n?-1:1;return d(e)?o(e,t,i):r(e+t*i,t)},E=function(e,t,n){var i,o=[];for(o.push(d(e)?new Date(e.getTime()):e),i=e;i<t;)i=D(i,n),o.push(i);return o},A=function(e,t){return"month"===e?new Date(t.getFullYear(),t.getMonth(),1):"year"===e?new Date(t.getFullYear(),0,t.getDate()):"decade"===e?new Date(K(t),t.getMonth(),t.getDate()):"century"===e?new Date(q(t),t.getMonth(),t.getDate()):void 0},O=function(e,t){return"month"===e?new Date(t.getFullYear(),t.getMonth(),M(t)):"year"===e?new Date(t.getFullYear(),11,t.getDate()):"decade"===e?new Date(K(t)+9,t.getMonth(),t.getDate()):"century"===e?new Date(q(t)+90,t.getMonth(),t.getDate()):void 0},B=function(e,t){var n=new Date(t.getFullYear(),t.getMonth(),1);return"month"===e?n:(n.setMonth(0),"year"===e?n:("decade"===e&&n.setFullYear(K(t)),"century"===e&&n.setFullYear(q(t)),n))},P=function(e,t){var n=new Date(t);return n.setDate(M(t)),"month"===e?n:(n.setMonth(11),n.setDate(M(n)),"year"===e?n:("decade"===e&&n.setFullYear(K(t)+9),"century"===e&&n.setFullYear(q(t)+99),n))},M=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0);return t.getDate()},R=function(e,t,n){return le[l("same "+e)](t,n)},V=function(e){switch(e){case"month":return"year";case"year":return"decade";case"decade":return"century"}},F=function(e){switch(e){case"century":return"decade";case"decade":return"year";case"year":return"month"}},L=function(e){var t=1;return"year"===e&&(t=12),"decade"===e&&(t=120),"century"===e&&(t=1200),t},H=function(e){var t=1;return"decade"===e&&(t=12),"century"===e&&(t=120),t},z=function(e){var t={};switch(e){case"year":t.years=1;break;case"month":t.months=1;break;case"quarter":t.months=3;break;case"week":t.weeks=1;break;case"day":t.days=1;break;case"hour":t.hours=1;break;case"minute":t.minutes=1;break;case"second":t.seconds=1;break;case"millisecond":t.milliseconds=1}return t},N=function(e,t){return $(e,t)&&e.getDate()===t.getDate()},$=function(e,t){return W(e,t)&&e.getMonth()===t.getMonth()},W=function(e,t){return e&&t&&e.getFullYear()===t.getFullYear()},G=function(e,t){if(h(e)&&h(t)){var n=e.getFullYear()-e.getFullYear()%10,i=t.getFullYear()-t.getFullYear()%10;return e&&t&&n===i}},j=function(e,t){if(h(e)&&h(t)){var n=e.getFullYear()-e.getFullYear()%100,i=t.getFullYear()-t.getFullYear()%100;return e&&t&&n===i}},q=function(e){return e&&e.getFullYear()-e.getFullYear()%100},K=function(e){return e&&e.getFullYear()-e.getFullYear()%10},U=function(){return"yyyy/MM/dd"},Y=function(e){if(h(e)){var t=new Date(e.getFullYear(),e.getMonth(),1);return t}},X=function(e){if(h(e)){var t=new Date(e.getFullYear(),e.getMonth()+1,0);return t}},Z=function(e,t){var n=(e.getDay()-t+7)%7,i=new Date(e);return i.setDate(e.getDate()-n),i},Q=function(e,t){var n=le.getDatesInterval(e,t,"day"),i=new Date(e);return n>=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.minutes||e.getHours()<n.hours)&&i.setHours(n.hours,n.minutes,0,0),i},ne=function(e,t,n){var i=e;return h(e)?(h(t)&&e<t&&(i=t),h(n)&&e>n&&(i=n),i):e},ie=function(e,t){if(h(e)){var n,i,o=t.getHours()-e.getHours();0!==o&&(n=1===o||o===-23?-1:1,i=new Date(t.getTime()+36e5*n),(n>0||i.getDate()===t.getDate())&&t.setTime(i.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){for(var i=new Date(e.getTime()),o=[];i<t;)o.push(new Date(i.getTime())),i=this.addInterval(i,n);return o},le={dateUnitIntervals:p,convertMillisecondsToDateUnits:m,dateToMilliseconds:v,getNextDateUnit:_,convertDateUnitToMilliseconds:y,getDateUnitInterval:x,getDateFormatByTickInterval:i,getDatesDifferences:T,correctDateWithUnitBeginning:k,trimTime:S,setToDayEnd:I,roundDateByStartDayHour:te,dateTimeFromDecimal:ee,addDateInterval:o,addInterval:D,getSequenceByInterval:E,getDateIntervalByString:z,sameDate:N,sameMonthAndYear:$,sameMonth:$,sameYear:W,sameDecade:G,sameCentury:j,sameView:R,getDifferenceInMonth:L,getDifferenceInMonthForCells:H,getFirstYearInDecade:K,getFirstDecadeInCentury:q,getShortDateFormat:U,getViewFirstCellDate:A,getViewLastCellDate:O,getViewDown:F,getViewUp:V,getLastMonthDay:M,getLastMonthDate:X,getFirstMonthDate:Y,getFirstWeekDate:Z,normalizeDateByWeek:Q,getQuarter:w,getFirstQuarterMonth:C,dateInRange:J,roundToHour:oe,normalizeDate:ne,getViewMinBoundaryDate:B,getViewMaxBoundaryDate:P,fixTimezoneGap:ie,getTimezonesDifference:ae,makeDate:re,getDatesInterval:g,getDatesOfInterval:se};e.exports=le},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(0),a=n(36),r=i(a),s=n(39),l=i(s);(0,o.extend)(t,l.default,r.default,{modules:[]})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(42),a=i(o),r=n(3),s=n(26),l=i(s),u=n(16),c=i(u),d=n(67),h=i(d),p=n(226),f=i(p),g=n(443),_=i(g),m=n(228),v=i(m),y=n(444),x=i(y),b=function(e,t,n){if(e.pointerEvents&&n.msie)return _.default;var i=t.tablet,o=t.phone;return!e.touch||i||o?e.touch?f.default:v.default:x.default},w=b(a.default,c.default.real(),l.default);(0,r.each)(w.map,function(e,t){(0,h.default)(e,new w(e,t))});var C={down:"dxpointerdown",up:"dxpointerup",move:"dxpointermove",cancel:"dxpointercancel",enter:"dxpointerenter",leave:"dxpointerleave",over:"dxpointerover",out:"dxpointerout"};e.exports=C},function(e,t,n){var i=function(e){this._options=e||{},this._list=[],this._queue=[],this._firing=!1,this._fired=!1,this._firingIndexes=[]};i.prototype._fireCore=function(e,t){var n=this._firingIndexes,i=this._list,o=this._options.stopOnFalse,a=n.length;for(n[a]=0;n[a]<i.length;n[a]++){var r=i[n[a]].apply(e,t);if(r===!1&&o)break}n.pop()},i.prototype.add=function(e){return"function"!=typeof e||this._options.unique&&this.has(e)||this._list.push(e),this},i.prototype.remove=function(e){var t=this._list,n=this._firingIndexes,i=t.indexOf(e);if(i>-1&&(t.splice(i,1),this._firing&&n.length))for(var o=0;o<n.length;o++)i<=n[o]&&n[o]--;return this},i.prototype.has=function(e){var t=this._list;return e?t.indexOf(e)>-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=/(safari)/i,d=/(mozilla)(?:.*? rv:([\w.]+))/,h=function(e){e=e.toLowerCase();var t={},n=s.exec(e)||l.exec(e)||u.exec(e)||e.indexOf("compatible")<0&&d.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+)/i.exec(e),o=o&&o[1]):c.exec(e)&&(i="safari",o=/Version\/([0-9.]+)/i.exec(e),o=o&&o[1])),"trident"!==i&&"edge"!==i||(i="msie"),i&&(t[i]=!0,t.version=o),t};e.exports=i({_fromUA:h},h(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 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 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,a=r(t||0)+2,s=e.toString().split("."),l=e,c=Math.abs(e),d=u(e),h=c>1?10:0;return 1===s.length?e:(d||(u(t)&&(a=s[0].length+i(t)),e=c,e=e-Math.floor(e)+h),a=o()&&i(e)>6||a>7?15:7,d||(n=parseFloat(e.toPrecision(a)).toString().split("."),n[0]!==h.toString())?parseFloat(l.toPrecision(a)):parseFloat(s[0]+"."+n[1]))}function r(e){var t,n,i=e.toString();return i.indexOf(".")<0?0:(t=i.split("."),n=t[1].indexOf("e"),n>=0?n:t[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)<o){if(e=t,t=n,n=i,Math.abs(e)<o)return e=t,t=n,Math.abs(e)<o?[]:[-t/e];var a=t*t-4*e*n;return Math.abs(a)<o?[-t/(2*e)]:a>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)<o)r=[s(-c,3)];else if(Math.abs(c)<o)r=[0].concat(u<0?[Math.sqrt(-u),-Math.sqrt(-u)]:[]);else{var d=c*c/4+u*u*u/27;if(Math.abs(d)<o)r=[-1.5*c/u,3*c/u];else if(d>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<r.length;f++)r[f]-=t/(3*e);return r}var u=n(1).isExponential,c=function(e){return 0===e?0:e/Math.abs(e)},d=function(e,t,n){var i=!t&&0!==t,o=!n&&0!==n;return i&&(t=o?e:Math.min(e,n)),o&&(n=i?e:Math.max(e,t)),Math.min(Math.max(e,t),n)},h=function(e,t,n){return e>=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=n(39),r=i(a);(0,o.extend)(t,r.default,{modules:[],foreachNodes:function(e,t){for(var n=0;n<e.length;n++)t(e[n])!==!1&&e[n].hasChildren&&e[n].children.length&&this.foreachNodes(e[n].children,t)}})},function(e,t,n){function i(){if(!P.hasWindow())return null;var e,t=O("<div>",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("<link rel=stylesheet>"),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()}x(),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()&&M.devicePixelRatio;if(t&&!(t<2)){var n=O("<div>");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 x(){v()&&V.log("W0010","The 'ios7' theme","19.1","Use the 'generic' theme instead.")}function b(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(){b(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(11),P=n(7),M=P.getWindow(),R=n(6).Deferred,V=n(17),F=n(12),L=n(47),H=L.add,z=n(3).each,N=n(16),$=n(75),W=n(230),G=$.value,j=n(82),q=$.changeCallback,K="link[rel=dx-theme]",U="data-theme",Y="data-active",X="dx-hairlines",Z="dx.",Q=new R;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=b,t.waitWebFont=w,t.resetTheme=function(){S&&S.attr("href","about:blank"),T=null,D=null}},function(e,t,n){var i=n(3).map,o=function(e){return void 0===e||null===e?"":String(e)},a=function(e){return o(e).charAt(0).toUpperCase()+e.substr(1)},r=function(e){return o(e).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},s=function(e){return i(r(e),function(e){return e.toLowerCase()}).join("-")},l=function(e){return s(e).replace(/-/g,"_")},u=function(e,t){return i(r(e),function(e,n){return e=e.toLowerCase(),(t||n>0)&&(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;t<e.length;t++)n=e.charAt(t),a=n===n.toUpperCase()&&"-"!==n&&")"!==n||n in h,"_"===n||"."===n?(n=" ",a=!0):0===t?(n=n.toUpperCase(),a=!0):!o&&a&&i.length>0&&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(52),o=n(1).isString,a=n(3),r=n(13).inArray,s=n(218).getFormatter,l=n(184).getFormat,u=n(210).getParser,c=n(219),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;a<i.length;a++)if(i[a]!==o[a])return!isNaN(parseInt(i[a]))},format:function(e,t){if(e){if(!t)return e;var n;if("function"==typeof t)n=t;else if(t.formatter)n=t.formatter;else if(t=t.type||t,o(t))return t=p[t.toLowerCase()]||t,d.convertDigits(s(t,this)(e));if(n)return n(e)}},parse:function(e,t){var n,i,o,a=this;if(e){if(!t)return this.parse(e,"shortdate");if(t.parser)return t.parser(e);if("string"!=typeof t||p[t.toLowerCase()]){o=function(e){var n=a.format(e,t);return d.convertDigits(n,!0)};try{i=l(o)}catch(e){}}else i=t;if(i)return e=d.convertDigits(e,!0),u(i,this)(e);if(h.log("W0012"),n=new Date(e),n&&!isNaN(n.getTime()))return n}},firstDayOfWeekIndex:function(){return 0}});e.exports=g},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",x="dx-button-has-text",b="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("<span>").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("<div>").addClass(y).appendTo(e),e.toggleClass(b,!!t.icon).toggleClass(w,!!t.icon&&this.option("iconPosition")!==E).toggleClass(x,!!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("<input>").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(b)||"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){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){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(45),d=n(3),h=n(0),p=n(20),f=n(190),g=i(f),_=n(40),m=n(63),v=i(m),y=n(48),x=n(7),b=n(5),w=i(b),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,t,n=arguments[1],o=this.calculateCellValue(n);return(0,s.isDefined)(o)?i(this.dataType)?(t=arguments[0],D[t](o)):"number"===this.dataType?(e=arguments[0],Math.floor(Number(o)/e)*e):void 0:null},n=function(e,t){return(0,s.isFunction)(e)&&(0,s.isFunction)(t)&&e.originalCallback&&t.originalCallback?e.originalCallback===t.originalCallback: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();
12i.length||(i=(0,a.default)("<span>").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,x.getWindow)());return e.height()>t.height()?{of:t,boundary:e,collision:"fit"}:{of:e}},container:t},i),o._loadPanel=o._createComponent((0,a.default)("<div>").appendTo(t),g.default,i)):o._loadPanel=null},getIndexByKey:function(e,t,n){var i,o=-1;if(void 0!==e&&Array.isArray(t)){n=arguments.length<=2?"key":n;for(var a=0;a<t.length;a++)if(i=(0,s.isDefined)(n)?t[a][n]:t[a],(0,r.equalByValue)(e,i)){o=a;break}}return o},combineFilters:function(e,t){var n,i=[];for(t=t||"and",n=0;n<e.length;n++)e[n]&&(i.length&&i.push(t),i.push(e[n]));if(1===i.length&&(i=i[0]),i.length)return i},checkChanges:function(e,t){var n,i=0;for(n=0;n<t.length;n++)e[t[n]]&&i++;return e.length&&e.length===i},equalFilterParameters:function(t,n){var i;if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;for(i=0;i<t.length;i++)if(!e.exports.equalFilterParameters(t[i],n[i]))return!1;return!0}return(0,s.isFunction)(t)&&t.columnIndex>=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){var i,o,a="(";for(i=0;i<t.length;i++)o=t[i],a+=(i>0?", ":"")+e.exports.getSummaryText(o,n);return a+=")"},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||[];var t,n;for(t=(0,_.normalizeSortingInfo)(e),n=0;n<e.length;n++)e&&e[n]&&void 0!==e[n].isExpanded&&(t[n].isExpanded=e[n].isExpanded),e&&e[n]&&void 0!==e[n].groupInterval&&(t[n].groupInterval=e[n].groupInterval);return t},getFormatByDataType:function(e){switch(e){case"date":return"shortDate";case"datetime":return"shortDateShortTime"}},getHeaderFilterGroupParameters:function(e,n){var i=[],o=e.dataField||e.name,a=(0,u.getGroupInterval)(e);return a?((0,d.each)(a,function(r,s){i.push(n?{selector:o,groupInterval:s,isExpanded:r<a.length-1}:t.bind(e,s))}),i):(n?i=[{selector:o,isExpanded:!1}]:(i=function t(n){var t=e.calculateCellValue(n);return void 0!==t&&""!==t||(t=null),t},e.sortingMethod&&(i=[{selector:i,compare:e.sortingMethod.bind(e)}])),i)},equalSortParameters:function(t,i,o){var a;if(t=e.exports.normalizeSortingInfo(t),i=e.exports.normalizeSortingInfo(i),Array.isArray(t)&&Array.isArray(i)){if(t.length!==i.length)return!1;for(a=0;a<t.length;a++)if(!n(t[a].selector,i[a].selector)||t[a].desc!==i[a].desc||t[a].groupInterval!==i[a].groupInterval||!o&&Boolean(t[a].isExpanded)!==Boolean(i[a].isExpanded))return!1;return!0}return(!t||!t.length)==(!i||!i.length)},getPointsByColumns:function(e,t,n,i){var o,a,r,s,l,u,c=e.length,d=!1,h=i||0,p=[];for(a=0;a<=c;a++)a<c&&(r=e.eq(a),s=r.offset(),u="rtl"===r.css("direction")),o={index:h,x:s?s.left+(!n&&u^a===c?r[0].getBoundingClientRect().width:0):0,y:s?s.top+(n&&a===c?r[0].getBoundingClientRect().height:0):0,columnIndex:h},!n&&a>0&&(l=e.eq(a-1).offset(),l.top<o.y&&(o.y=l.top)),t&&(d=t(o)),d||p.push(o),h++;return p},createObjectWithChanges:function(e,t){var n=e?Object.create(Object.getPrototypeOf(e)):{},i=(0,h.extendFromObject)({},e);return(0,y.deepExtendArraySafe)(n,i,!0,!0),(0,y.deepExtendArraySafe)(n,t,!0,!0)},getExpandCellTemplate:function(){return{allowRenderToDetachedContainer:!0,render:function(e,t){var n,i=(0,a.default)(e);!(0,s.isDefined)(t.value)||t.data&&t.data.isContinuation||t.row.inserted?o(i):(n=t.component.getView("rowsView"),i.addClass(I).addClass(C),(0,a.default)("<div>").addClass(t.value?k:S).appendTo(i),n.setAria("label",t.value?n.localize("dxDataGrid-ariaCollapse"):n.localize("dxDataGrid-ariaExpand"),i))}}},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}}}()},function(e,t,n){var i,o=n(177),a=n(11),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<e.length;t++)r.off(e[t]),l.delete(e[t])}}),t.setDataStrategy=h,t.getDataStrategy=function(){return i},t.data=function(){return i.data.apply(this,arguments)},t.strategyChanging=u,t.beforeCleanData=function(e){c=e},t.afterCleanData=function(e){d=e},t.cleanData=function(e){return i.cleanData.call(this,e)},t.removeData=function(e,t){return i.removeData.call(this,e,t)},t.cleanDataRecursive=function(e,t){if(a.isElementNode(e)){var n=e.getElementsByTagName("*");i.cleanData(n),t&&i.cleanData([e])}}},function(e,t,n){var 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},o=n(2),a=n(7).getWindow(),r=n(5),s=n(21),l=n(12).getPublicElement,u=n(0).extend,c=n(1),d=n(3),h=n(27),p=n(225),f=n(112),g=n(42),_=n(76),m=n(131),v=n(8),y=n(6),x=y.when,b=y.Deferred,w=v.addNamespace(m,"dxFX"),C=c.isFunction,k=c.isPlainObject,S=n(4).noop,I=/^([+-])=(.*)/i,T="dxAnimData",D="dxAnimQueue",E="transform",A={initAnimation:function(e,t){e.css({transitionProperty:"none"}),"string"==typeof t.from?e.addClass(t.from):ue(e,t.from);var n=this,i=new b,o=t.cleanupWhen;t.transitionAnimation={deferred:i,finish:function(){n._finishTransition(e),o?x(i,o).always(function(){n._cleanup(e,t)}):n._cleanup(e,t),i.resolveWith(e,[t,e])}},this._completeAnimationCallback(e,t).done(function(){t.transitionAnimation.finish()}).fail(function(){i.rejectWith(e,[t,e])}),t.duration||t.transitionAnimation.finish(),e.css("transform")},animate:function(e,t){return this._startAnimation(e,t),t.transitionAnimation.deferred.promise()},_completeAnimationCallback:function(e,t){var n,i,o=this,a=Date.now()+t.delay,s=new b,l=new b,u=new b,c=g.transitionEndEventName()+".dxFX";return t.transitionAnimation.cleanup=function(){clearTimeout(n),clearTimeout(i),r.off(e,c),r.off(e,w)},r.one(e,c,function(){Date.now()-a>=t.duration&&l.reject()}),r.off(e,w),r.on(e,w,function(){o.stop(e,t),s.reject()}),i=setTimeout(function(){n=setTimeout(function(){u.reject()},t.duration+t.delay+de._simulatedTransitionEndDelay),x(l,u).fail(function(){s.resolve()}.bind(this))}),s.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 b,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)+\([^)]*\)\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"===("undefined"==typeof t?"undefined":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 b).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]},M=function(e,t,n,i){d.each(["from","to"],function(){if(!n(e[this]))throw s.Error("E0010",t,this,i)})},R=function(e,t){return M(e,t,function(e){return k(e)},"a plain object")},V=function(e,t){return M(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){R(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){R(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 b};return C(a.validateConfig)&&a.validateConfig(i),Q(s),s},ee=function(e,t){var n=o(e);if(!n.length)return(new b).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),x=n(7),b="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){var n;return(0,p.isFunction)(e)?(n=this.component._createAction(e.bind(this),t),function(e){n({event:e})}):(this._actions[e]=this.component._createActionByOption(e,t),void(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===b?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,x.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)("<div>").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){var n,i=this.modules;for(n=0;n<i.length;n++)if(i[n].name===e)return;t.name=e,i.push(t),delete this.controllerTypes,delete this.viewTypes},registerModulesOrder:function(e){this.modulesOrder=e},unregisterModule:function(e){this.modules=(0,h.grep)(this.modules,function(t){return t.name!==e}),delete this.controllerTypes,delete this.viewTypes},processModules:T,callModuleItemsMethod:D}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e){return/^(or|\|\||\|)$/i.test(e)}function r(e){return/^(and|&&|&)$/i.test(e)}function s(e,t){var n,i;return function(){var o=this;return i=arguments,n||(n=setTimeout(function(){n=void 0,i&&e.call(o,i)},(0,u.isFunction)(t)?t():t)),n}}function l(e,t){var n=[],i=s(function(){e.call(this,n),n=[]},t);return function(e){if(Array.isArray(e)){var t;(t=n).push.apply(t,o(e))}return i.call(this,n)}}var u=n(1),c=i(u),d=n(11),h=i(d),p=n(47),f=n(7),g=n(3),_=n(20),m=n(6),v="DEVEXTREME_XHR_ERROR_UNLOAD",y=function(e){return[e[0],e.length<3?"=":String(e[1]).toLowerCase(),e.length<2||e[e.length-1]]},x=function(e){return Array.isArray(e)||(e=[e]),(0,g.map)(e,function(e){var t={selector:(0,u.isFunction)(e)||"string"==typeof e?e:e.getter||e.field||e.selector,desc:!(!e.desc&&"d"!==String(e.dir).charAt(0).toLowerCase())};return e.compare&&(t.compare=e.compare),t})},b=function(){var e,t={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"},n=function(e){var n=t[e];return n?n:e};return(0,p.add)(function(){var t=(0,f.getWindow)();h.default.listen(t,"beforeunload",function(){e=!0})}),function(t,i){return e?v:t.status<400?n(i):t.statusText}}(),w={count:{seed:0,step:function(e){return 1+e}},sum:{seed:0,step:function(e,t){return e+t}},min:{step:function(e,t){return t<e?t:e}},max:{step:function(e,t){return t>e?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}}},C=function(){var e,t=0,n=function(){0===t&&(e=new m.Deferred),t++},i=function(){t--,t<1&&e.resolve()},o=function(){var n=0===t?(new m.Deferred).resolve():e;return n.promise()},a=function(){t=0,e&&e.resolve()};return{obtain:n,release:i,promise:o,reset:a}}(),k=function(e,t,n){if(Array.isArray(e)){for(var i,o=(0,g.map)(t,function(e,t){return t}),a=0;a<o.length;a++)if(i=o[a],(0,_.toComparable)(t[i],!0)!=(0,_.toComparable)(n[i],!0))return!1;return!0}return(0,_.toComparable)(t,!0)==(0,_.toComparable)(n,!0)},S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",I=function(e){function t(e){return S.charAt(e)}Array.isArray(e)||(e=T(String(e)));for(var n="",i=0;i<e.length;i+=3){var o=e[i],a=e[i+1],r=e[i+2];n+=(0,g.map)([o>>2,(3&o)<<4|a>>4,isNaN(a)?64:(15&a)<<2|r>>6,isNaN(r)?64:63&r],t).join("")}return n},T=function(e){var t,n,i=[];for(n=0;n<e.length;n++)t=e.charCodeAt(n),t<128?i.push(t):t<2048?i.push(192+(t>>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},D=function(e){return"!"===e[0]&&Array.isArray(e[1])},E=function(e){return"and"===e||"or"===e},A=function(e){var t=e[0],n=e[1];return!!Array.isArray(t)||!(!c.default.isFunction(t)||!(Array.isArray(n)||c.default.isFunction(n)||E(n)))},O=function(){var e=new m.Deferred;return e.resolve.apply(e,arguments).promise()},B=function(){var e=new m.Deferred;return e.reject.apply(e,arguments).promise()},P={XHR_ERROR_UNLOAD:v,normalizeBinaryCriterion:y,normalizeSortingInfo:x,errorMessageFromXhr:b,aggregators:w,keysEqual:k,throttleChanges:l,trivialPromise:O,rejectedPromise:B,isDisjunctiveOperator:a,isConjunctiveOperator:r,processRequestResultLock:C,isUnaryOperation:D,isGroupCriterion:A,base64_encode:I};e.exports=P},function(e,t,n){var i=n(152),o=n(466),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(11),r=n(4),s=n(70),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),x={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MsTransitionEnd",transition:"transitionend"},b=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 b("transition")}),t.transitionEndEventName=(0,l.default)(function(){return x[f.default.styleProp("transition")]}),t.animation=(0,l.default)(function(){return b("animation")}),t.nativeScrolling=w(),t.styleProp=f.default.styleProp,t.stylePropPrefix=f.default.stylePropPrefix,t.supportProp=b,t.inputType=C},function(e,t,n){var i=n(15),o=i.inherit({ctor:function(e){e&&(e=String(e)),this._value=this._normalize(e||this._generate())},_normalize:function(e){for(e=e.replace(/[^a-f0-9]/gi,"").toLowerCase();e.length<32;)e+="0";return[e.substr(0,8),e.substr(8,4),e.substr(12,4),e.substr(16,4),e.substr(20,12)].join("-")},_generate:function(){for(var e="",t=0;t<32;t++)e+=Math.round(15*Math.random()).toString(16);return e},toString:function(){return this._value},valueOf:function(){return this._value},toJSON:function(){return this._value}});e.exports=o},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 x(t)}function i(e){var t=e.type;return delete e.type,v.create(t,e)}function o(e){return new x({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(40),m=n(133),v=n(91),y=n(68),x=n(136),b=n(79),w=n(35).errors,C=n(13),k=n(224),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,
13void 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,n=this.isLoading();this._loadingCount+=e,t=this.isLoading(),n^t&&this.fireEvent("loadingChanged",[t])},_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 x&&!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(!n._disposed&&o(i))return n._loadFromStore(t,i)}var t,n=this,i=new T;return this._scheduleLoadCallbacks(i),this._scheduleFailCallbacks(i),this._scheduleChangedCallbacks(i),t=this._createLoadOperation(i),this.fireEvent("customizeStoreLoadOptions",[t]),this._loadQueue.add(function(){return"number"==typeof t.delay?n._delayedLoadTask=h.executeAsync(e,t.delay):e(),i.promise()}),i.promise({operationId:t.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 x&&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.length<o._pageSize)&&(o._isLastPage=!0),s.requireTotalCount&&!isFinite(r.totalCount)?i():n())},_applyMapFunction:function(e){return this._mapFunc?l(e,this._mapFunc,this.group()):e},_applyPostProcessFunction:function(e){return this._postProcessFunc?this._postProcessFunc(e):e}}).include(b);t.DataSource=P,t.normalizeDataSourceOptions=a,t.normalizeLoadResult=u},function(e,t,n){var 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},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],"&amp;").replace(e[1],"&quot;").replace(e[2],"&#39;").replace(e[3],"&lt;").replace(e[4],"&gt;")}}(),r=function(e){switch("undefined"==typeof e?"undefined":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<a.length;r++)t=new RegExp("\\{"+r+"\\}","gm"),n=a[r],"string"===o.type(n)&&n.indexOf("$")>=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){var i=n(2),o=n(7).getWindow(),a=n(27),r=n(32).camelize,s=n(4).noop,l=n(12).getPublicElement,u=n(3).each,c=n(1).isDefined,d=n(13).inArray,h=n(0).extend,p=n(26),f=n(58).compare,g=n(14),_=n(16),m=n(9),v=n(34),y=n(31),x=n(60),b=n(111),w=n(12),C=n(173),k=n(7);n(290);var S="dx-popup",I="dx-popup-wrapper",T="dx-popup-fullscreen",D="dx-popup-fullscreen-width",E="dx-popup-normal",A="dx-popup-content",O="dx-popup-draggable",B="dx-popup-title",P="dx-closebutton",M="dx-popup-bottom",R="dx-template-wrapper",V="dx-popup-flex-height",F="dx-popup-inherit-height",L=["cancel","clear","done"],H="default",z="normal",N="text",$="contained",W=p.msie&&11===parseInt(p.version),G=p.safari&&f(p.version,[11])<0,j={"static":"",inherit:F,flex:V},q=function(e){var t=_.current(),n=t.platform,i="bottom",o="before";if("ios"===n)switch(e){case"cancel":i="top";break;case"clear":i="top",o="after";break;case"done":o="after"}else if("win"===n)o="after";else if("android"===n&&t.version&&parseInt(t.version[0])>4)switch(e){case"cancel":o="after";break;case"done":o="after"}else"android"===n&&(o="center");return{toolbar:i,location:o}},K=x.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("<div>").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 b(this),this._defaultTemplates.bottom=new b(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("<div>").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 b;if(r){var s=h(o,{items:t,rtlEnabled:this.option("rtlEnabled"),useDefaultButtons:this.option("useDefaultToolbarButtons"),useFlatButtons:this.option("useFlatToolbarButtons")});this._getTemplate("dx-polymorph-widget").render({container:n,model:{widget:"dxToolbarBase",options:s}});var u=n.children("div");return n.replaceWith(u),u}var c=i(a.render({container:l(n)}));return c.hasClass(R)&&(n.replaceWith(c),n=c),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("<div>").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("<div>").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("<div>").addClass(M).insertAfter(this.$content());this._$bottom=this._renderTemplateByType("bottomTemplate",e,t,{compactMode:!0}).addClass(M),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"})},_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=t.getBoundingClientRect().height-s;n={height:Math.max(0,l),minHeight:"auto",maxHeight:"auto"}}}else{var u=i(this._getContainer()).get(0),c=C.addOffsetToMaxHeight(o,-s,u),d=C.addOffsetToMinHeight(a,-s,u);n={height:"auto",minHeight:d,maxHeight:c}}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")},_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())},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.search(".options")!==-1;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._toggleSafariScrolling(!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(11),o=n(52),a=n(7),r=n(70),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:e<t?-1:e>t?1:0}),o=0;o<a.length;o++)n=a[o],t(n,e[n])},s=function(e,t,n,i){!i&&o.isWrapped(e[t])?o.assign(e[t],n):e[t]=n},l=function e(t,n,o,a){var r,l;for(var u in n)if(r=t[u],l=n[u],"__proto__"!==u&&t!==l){if(i.isPlainObject(l)){var c=o?i.isObject(r):i.isPlainObject(r);l=e(c?r:{},l,o,a)}void 0!==l&&r!==l&&s(t,u,l,a)}return t};t.clone=a,t.orderEach=r,t.deepExtendArraySafe=l},function(e,t,n){var i=n(2),o=n(37),a=n(25),r=n(4),s=n(7),l=n(98).getDefaultAlignment,u=n(0).extend,c=n(18),d=n(174),h=n(60),p="dx-state-readonly",f="dx-invalid",g="dx-invalid-message",_="dx-invalid-message-auto",m="dx-invalid-message-always",v="dx-validation-target",y=100,x=c.inherit({ctor:function(){this.showValidationMessageTimeout=null,this.callBase.apply(this,arguments)},_init:function(){this.callBase(),this.validationRequest=a(),this._initInnerOptionCache("validationTooltipOptions");var e=this.$element();e&&o.data(e[0],v,this)},_getDefaultOptions:function(){return u(this.callBase(),{value:null,name:"",onValueChanged:null,readOnly:!1,isValid:!0,validationError:null,validationMessageMode:"auto",validationBoundary:void 0,validationMessageOffset:{h:0,v:0},validationTooltipOptions:{}})},_attachKeyboardEvents:function(){this.option("readOnly")||(this.callBase(),this._keyboardProcessor&&this._attachChildKeyboardEvents())},_attachChildKeyboardEvents:r.noop,_setOptionsByReference:function(){this.callBase(),u(this._optionsByReference,{validationError:!0})},_createValueChangeAction:function(){this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})},_suppressValueChangeAction:function(){this._valueChangeActionSuppressed=!0},_resumeValueChangeAction:function(){this._valueChangeActionSuppressed=!1},_initMarkup:function(){this._toggleReadOnlyState(),this._setSubmitElementName(this.option("name")),this.callBase(),this._renderValidationState()},_raiseValueChangeAction:function(e,t){this._valueChangeAction||this._createValueChangeAction(),this._valueChangeAction(this._valueChangeArgs(e,t))},_valueChangeArgs:function(e,t){return{value:e,previousValue:t,event:this._valueChangeEventInstance}},_saveValueChangeEvent:function(e){this._valueChangeEventInstance=e},_focusInHandler:function(e){var t=this,n="auto"===this.option("validationMessageMode");return this._canValueBeChangedByClick()&&n&&(this._$validationMessage&&this._$validationMessage.removeClass(_),clearTimeout(this.showValidationMessageTimeout),this.showValidationMessageTimeout=setTimeout(function(){return t._$validationMessage&&t._$validationMessage.addClass(_)},150)),this.callBase(e)},_canValueBeChangedByClick:function(){return!1},_renderValidationState:function(){var e=this.option("isValid"),t=this.option("validationError"),n=this.option("validationMessageMode"),o=this.$element();o.toggleClass(f,!e),this.setAria("invalid",!e||void 0),s.hasWindow()&&(this._$validationMessage&&(this._$validationMessage.remove(),this._$validationMessage=null),!e&&t&&t.message&&(this._$validationMessage=i("<div>").addClass(g).html(t.message).appendTo(o),this._validationMessage=this._createComponent(this._$validationMessage,h,u({integrationOptions:{},templatesRenderAsynchronously:!1,target:this._getValidationMessageTarget(),shading:!1,width:"auto",height:"auto",container:o,position:this._getValidationMessagePosition("below"),closeOnOutsideClick:!1,closeOnTargetScroll:!1,animation:null,visible:!0,propagateOutsideClick:!0,_checkParentVisibility:!1},this._getInnerOptionsCache("validationTooltipOptions"))),this._$validationMessage.toggleClass(_,"auto"===n).toggleClass(m,"always"===n),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(y,this._getValidationMessageTarget().outerWidth());this._validationMessage.option("maxWidth",e)}},_getValidationMessageTarget:function(){return this.$element()},_getValidationMessagePosition:function(e){var t=this.option("rtlEnabled"),n=l(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(){this.$element().toggleClass(p,!!this.option("readOnly")),this.setAria("readonly",this.option("readOnly")||void 0)},_dispose:function(){var e=this.$element()[0];o.data(e,v,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":this._valueChangeActionSuppressed||(this._raiseValueChangeAction(e.value,e.previousValue),this._saveValueChangeEvent(void 0)),e.value!=e.previousValue&&this.validationRequest.fire({value:e.value,editor:this});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(d);e.exports=x},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())||x;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&&(x=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 x,b=n(0).extend,w=n(3).each,C=n(10),k=n(31),S={},I={},T={},D=b,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){var i=function(){function e(e,t){var n=[],i=!0,o=!1,a=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done)&&(n.push(r.value),!t||n.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=n(52),a=n(13).inArray,r=n(4).escapeRegExp,s=n(3).each,l=n(1).isPlainObject,u=n(278),c=n(28),d=n(21),h=n(217).toFixed,p=4,f=10,g=["currency","fixedpoint","exponential","percent","decimal"],_={1:"K",2:"M",3:"B",4:"T"},m={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},v=o({numericFormats:g,defaultLargeNumberFormatPostfixes:_,_parseNumberFormatString:function(e){var t,n={};if(e&&"string"==typeof e)return t=e.toLowerCase().split(" "),s(t,function(e,t){a(t,g)>-1?n.formatType=t:t in m&&(n.power=m[t])}),n.power&&!n.formatType&&(n.formatType="fixedpoint"),n.formatType?n: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||a<i);)a++,o/=t;else if(o>0&&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,o;return"auto"===t.power&&(t.power=this._calculateNumberPower(e,1e3,0,p)),t.power&&(e=this._getNumberByPower(e,t.power,1e3)),i=this.defaultLargeNumberFormatPostfixes[t.power]||"",o=this._formatNumberCore(e,t.formatType,n),o=o.replace(/(\d|.$)(\D*)$/,"$1"+i+"$2")},_formatNumberExponential:function(e,t){var n,i=this._calculateNumberPower(e,f),o=this._getNumberByPower(e,i,f);return void 0===t.precision&&(t.precision=1),o.toFixed(t.precision||0)>=f&&(i++,o/=f),n=(i>=0?"+":"")+i.toString(),this._formatNumberCore(o,"fixedpoint",t)+"E"+n},_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.length<t;)o="0"+o;return i+o},_addGroupSeparators:function(e){var t=e.toString().split(".");return t[0].replace(/\B(?=(\d{3})+(?!\d))/g,c().thousandsSeparator)+(t[1]?c().decimalSeparator+t[1]:"")},_formatNumberCore:function(e,t,n){return"exponential"===t?this._formatNumberExponential(e,n):("decimal"!==t&&null!==n.precision&&(n.precision=n.precision||0),"percent"===t&&(e=100*e),void 0!==n.precision&&(e="decimal"===t?this._addZeroes(e,n.precision):null===n.precision?e.toPrecision():h(e,n.precision)),e="decimal"!==t?this._addGroupSeparators(e):e.toString().replace(".",c().decimalSeparator),"percent"===t&&(e+="%"),e)},_normalizeFormat:function(e){return e?"function"==typeof e?e:(l(e)||(e={type:e}),e):{}},_getSeparators:function(){return{decimalSeparator:this.getDecimalSeparator(),thousandsSeparator:this.getThousandsSeparator()}},getThousandsSeparator:function(){return this.format(1e4,"fixedPoint")[2]},getDecimalSeparator:function(){return this.format(1.2,{type:"fixedPoint",precision:1})[1]},convertDigits:function(e,t){var n=this.format(90,"decimal");if("string"!=typeof e||"0"===n[1])return e;var i=t?n[1]:"0",o=t?"0":n[1],a=t?n[0]:"9",r=new RegExp("["+i+"-"+a+"]","g");return e.replace(r,function(e){return String.fromCharCode(e.charCodeAt(0)+(o.charCodeAt(0)-i.charCodeAt(0)))})},getSign:function(e,t){if("-"===e.replace(/[^0-9-]/g,"").charAt(0))return-1;if(!t)return 1;var n=this._getSeparators(),i=new RegExp("[0-9"+r(n.decimalSeparator+n.thousandsSeparator)+"]+","g"),o=this.format(-1,t).replace(i,"1"),a=e.replace(i,"1");return a===o?-1:1},format:function(e,t){if("number"!=typeof e)return e;if("number"==typeof t)return e;if(t=t&&t.formatter||t,"function"==typeof t)return t(e);t=this._normalizeFormat(t),t.type||(t.type="decimal");var n=this._parseNumberFormatString(t.type);return n?this._formatNumber(e,n,t):this.convertDigits(u.getFormatter(t.type,this._getSeparators())(e))},parse:function(e,t){if(e){if(t&&t.parser)return t.parser(e);e=this.convertDigits(e,!0),t&&"string"!=typeof t&&d.log("W0011");var n=this.getDecimalSeparator(),i=new RegExp("[^0-9"+r(n)+"]","g"),o=e.replace(i,"").replace(n,".").replace(/\.$/g,"");if("."===o||""===o)return null;if(this._calcSignificantDigits(o)>15)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<e.length;n++)if("0"!==e[n]){t=n;break}return t>-1?e.length-t:0},s=0;return o&&(s+=r(o.split(""))),
14a&&(s+=r(a.split("").reverse())),s}});e.exports=v},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){var i=n(2),o=n(5),a=n(465),r=n(17),s=n(0).extend,l=n(3).each,u=n(4).noop,c=n(1).isDefined,d=n(187),h=n(20).compileGetter,p=n(44),f=p.DataSource,g=p.normalizeLoadResult,_=n(283),m=n(6),v=m.when,y=m.Deferred,x="dxItemDeleting",b=-1,w=function(e){return e!==b},C=a.inherit({_setOptionsByReference:function(){this.callBase(),s(this._optionsByReference,{selectedItem:!0})},_getDefaultOptions:function(){return s(this.callBase(),{selectionMode:"none",selectionRequired:!1,selectionByClick:!0,selectedItems:[],selectedItemKeys:[],maxFilterLengthInRequest:1500,keyExpr:null,selectedIndex:b,selectedItem:null,onSelectionChanged:null,onItemReordered:null,onItemDeleting:null,onItemDeleted:null})},ctor:function(e,t){this._userOptions=t||{},this.callBase(e,t)},_init:function(){this._initEditStrategy(),this.callBase(),this._initKeyGetter(),this._initSelectionModule(),"multi"===this.option("selectionMode")&&this._showDeprecatedSelectionMode()},_initKeyGetter:function(){this._keyGetter=h(this.option("keyExpr"))},_getKeysByItems:function(e){return this._editStrategy.getKeysByItems(e)},_getItemsByKeys:function(e,t){return this._editStrategy.getItemsByKeys(e,t)},_getKeyByIndex:function(e){return this._editStrategy.getKeyByIndex(e)},_getIndexByKey:function(e){return this._editStrategy.getIndexByKey(e)},_getIndexByItemData:function(e){return this._editStrategy.getIndexByItemData(e)},_isKeySpecified:function(){return!(!this._dataSource||!this._dataSource.key())},_getCombinedFilter:function(){return this._dataSource&&this._dataSource.filter()},key:function(){return this.option("keyExpr")?this.option("keyExpr"):this._dataSource&&this._dataSource.key()},keyOf:function(e){var t=e,n=this._dataSource&&this._dataSource.store();return this.option("keyExpr")?t=this._keyGetter(e):n&&(t=n.keyOf(e)),t},_initSelectionModule:function(){var e=this,t=e._editStrategy.itemsGetter;this._selection=new _({mode:this.option("selectionMode"),maxFilterLengthInRequest:this.option("maxFilterLengthInRequest"),equalByReference:!this._isKeySpecified(),onSelectionChanged:function(t){(t.addedItemKeys.length||t.removedItemKeys.length)&&(e.option("selectedItems",e._getItemsByKeys(t.selectedItemKeys,t.selectedItems)),e._updateSelectedItems(t))},filter:e._getCombinedFilter.bind(e),totalCount:function(){var t=e.option("items"),n=e._dataSource;return n&&n.totalCount()>=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=g(t).data;e._dataSource._applyMapFunction(n)}}):(new y).resolve(this.plainItems())},dataFields:function(){return e._dataSource&&e._dataSource.select()},plainItems:t.bind(e._editStrategy)})},_initEditStrategy:function(){var e=d;this._editStrategy=new e(this)},_getSelectedItemIndices:function(e){var t=this,n=[];return e=e||this._selection.getSelectedItemKeys(),t._editStrategy.beginCache(),l(e,function(e,i){var o=t._getIndexByKey(i);w(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();var t=this._getSelectedItemIndices();this._renderSelection(t,[])},_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;switch(e){case"selectedIndex":t=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),c(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":var i=this.option("selectedItems")||[];if(n=this._editStrategy.getIndexByItemData(i[0]),this.option("selectionRequired")&&!w(n))return this._syncSelectionOptions("selectedIndex");this._setOptionSilent("selectedItem",i[0]),this._setOptionSilent("selectedIndex",n),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems(i));break;case"selectedItem":if(t=this.option("selectedItem"),n=this._editStrategy.getIndexByItemData(t),this.option("selectionRequired")&&!w(n))return this._syncSelectionOptions("selectedIndex");c(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",b));break;case"selectedItemKeys":var o=this.option("selectedItemKeys");if(this.option("selectionRequired")){var a=this._getIndexByKey(o[0]);if(!w(a))return this._syncSelectionOptions("selectedIndex")}return this._selection.setSelection(o)}return(new y).resolve().promise()},_chooseSelectOption:function(){var e="selectedIndex",t=function(e){var t=this.option(e),n=c(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;n<t.length;n++)if(e[n]!==t[n])return!1;return!0},_normalizeSelectedItems:function(){if("none"===this.option("selectionMode"))this._setOptionSilent("selectedItems",[]),this._syncSelectionOptions("selectedItems");else if("single"===this.option("selectionMode")){var e=this.option("selectedItems");if(e.length>1||!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 y).resolve().promise()},_renderSelection:u,_itemClickHandler:function(e){this._createAction(function(e){this._itemSelectHandler(e.event)}.bind(this),{validatingTargetName:"itemElement"})({itemElement:i(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=i(e.itemElement),n=this._editStrategy.getNormalizedIndex(t),o=this._isItemSelected(n);this._processSelectableItem(t,o)}},_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=[],l=[];for(t._editStrategy.beginCache(),r=0;r<n.length;r++)a=t._getIndexByKey(n[r]),s.push(a),t._addSelection(a);for(r=0;r<i.length;r++)a=t._getIndexByKey(i[r]),l.push(a),t._removeSelection(a);t._editStrategy.endCache(),t._updateSelection(s,l)}v(o).done(function(){t._fireSelectionChangeEvent(e.addedItems,e.removedItems)})}},_fireSelectionChangeEvent:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:e,removedItems:t})},_updateSelection:function(){this._renderSelection.apply(this,arguments)},_setAriaSelected:function(e,t){this.setAria("selected",t,e)},_removeSelection:function(e){var t=this._editStrategy.getItemElement(e);w(e)&&(this._processSelectableItem(t,!1),o.triggerHandler(t,"stateChanged",!1))},_showDeprecatedSelectionMode:function(){r.log("W0001",this.NAME,"selectionMode: 'multi'","16.1","Use selectionMode: 'multiple' instead"),this.option("selectionMode","multiple")},_addSelection:function(e){var t=this._editStrategy.getItemElement(e);w(e)&&(this._processSelectableItem(t,!0),o.triggerHandler(t,"stateChanged",!0))},_isItemSelected:function(e){var t=this._getKeyByIndex(e);return this._selection.isItemSelected(t)},_optionChanged:function(e){var t=this;switch(e.name){case"selectionMode":"multi"===e.value?this._showDeprecatedSelectionMode():this._invalidate();break;case"dataSource":(!e.value||Array.isArray(e.value)&&!e.value.length)&&this.option("selectedItemKeys",[]),this.callBase(e);break;case"selectedIndex":case"selectedItem":case"selectedItems":case"selectedItemKeys":this._syncSelectionOptions(e.name).done(function(){return t._normalizeSelectedItems()});break;case"keyExpr":this._initKeyGetter();break;case"selectionRequired":this._normalizeSelectedItems();break;case"selectionByClick":case"onSelectionChanged":case"onItemDeleting":case"onItemDeleted":case"onItemReordered":case"maxFilterLengthInRequest":break;default:this.callBase(e)}},_clearSelectedItems:function(){this._setOptionSilent("selectedItems",[]),this._syncSelectionOptions("selectedItems")},_waitDeletingPrepare:function(e){if(e.data(x))return(new y).resolve().promise();e.data(x,!0);var t=new y,n={cancel:!1},i=this._itemEventHandler(e,"onItemDeleting",n,{excludeValidators:["disabled","readOnly"]});return v(i).always(function(o){var a=!i,r=!a&&"resolved"===i.state(),s=!!arguments.length,l=a||r&&!s||r&&o;v(m.fromPromise(n.cancel)).always(function(){e.data(x,!1)}).done(function(e){l&&!e?t.resolve():t.reject()}).fail(t.reject)}.bind(this)),t.promise()},_deleteItemFromDS:function(e){if(!this._dataSource)return(new y).resolve().promise();var t=new y,n=this.option("disabled"),i=this._dataSource.store();if(this.option("disabled",!0),!i.remove)throw r.Error("E1011");return i.remove(i.keyOf(this._getItemData(e))).done(function(e){void 0!==e?t.resolve():t.reject()}).fail(function(){t.reject()}),t.always(function(){this.option("disabled",n)}.bind(this)),t},_tryRefreshLastPage:function(){var e=new y;return this._isLastPage()||this.option("grouped")?e.resolve():this._refreshLastPage().done(function(){e.resolve()}),e.promise()},_refreshLastPage:function(){return this._expectLastItemLoading(),this._dataSource.load()},_updateSelectionAfterDelete:function(e){var t=this._getKeyByIndex(e);this._selection.deselect([t])},_updateIndicesAfterIndex:function(e){for(var t=this._itemElements(),n=e+1;n<t.length;n++)i(t[n]).data(this._itemIndexKey(),n-1)},_simulateOptionChange:function(e){var t=this.option(e);t instanceof f||this._optionChangedAction({name:e,fullName:e,value:t})},isItemSelected:function(e){return this._isItemSelected(this._editStrategy.getNormalizedIndex(e))},selectItem:function(e){if("none"!==this.option("selectionMode")){var t=this._editStrategy.getNormalizedIndex(e);if(w(t)){var n=this._getKeyByIndex(t);if(!this._selection.isItemSelected(n))if("single"===this.option("selectionMode"))this._selection.setSelection([n]);else{var i=this.option("selectedItemKeys");i.push(n),this._selection.setSelection(i)}}}},unselectItem:function(e){var t=this._editStrategy.getNormalizedIndex(e);if(w(t)){var n=this._selection.getSelectedItemKeys();if(!(this.option("selectionRequired")&&n.length<=1)){var i=this._getKeyByIndex(t);this._selection.isItemSelected(i)&&this._selection.deselect([i])}}},_deleteItemElementByIndex:function(e){this._updateSelectionAfterDelete(e),this._updateIndicesAfterIndex(e),this._editStrategy.deleteItemAtIndex(e)},_afterItemElementDeleted:function(e,t){var n=this._dataSource?"dataSource":"items";this._simulateOptionChange(n),this._itemEventHandler(e,"onItemDeleted",t,{beforeExecute:function(){e.remove()},excludeValidators:["disabled","readOnly"]}),this._renderEmptyMessage()},deleteItem:function(e){var t=this,n=new y,i=this._editStrategy.getItemElement(e),o=this._editStrategy.getNormalizedIndex(e),a=this._itemResponseWaitClass();return w(o)?this._waitDeletingPrepare(i).done(function(){i.addClass(a);var e=t._extendActionArgs(i);t._deleteItemFromDS(i).done(function(){t._deleteItemElementByIndex(o),t._afterItemElementDeleted(i,e),t._tryRefreshLastPage().done(function(){n.resolveWith(t)})}).fail(function(){i.removeClass(a),n.rejectWith(t)})}).fail(function(){n.rejectWith(t)}):n.rejectWith(t),n.promise()},reorderItem:function(e,t){var n=new y,i=this,o=this._editStrategy,a=o.getItemElement(e),r=o.getItemElement(t),s=o.getNormalizedIndex(e),l=o.getNormalizedIndex(t),u=this._dataSource?"dataSource":"items",c=w(s)&&w(l)&&s!==l;return c?n.resolveWith(this):n.rejectWith(this),n.promise().done(function(){r[o.itemPlacementFunc(s,l)](a),o.moveItemAtIndexToIndex(s,l),this._updateIndicesAfterIndex(s),i.option("selectedItems",i._getItemsByKeys(i._selection.getSelectedItemKeys(),i._selection.getSelectedItems())),"items"===u&&i._simulateOptionChange(u),i._itemEventHandler(a,"onItemReordered",{fromIndex:o.getIndex(s),toIndex:o.getIndex(l)},{excludeValidators:["disabled","readOnly"]})})}});e.exports=C},function(e,t,n){var i=n(2),o=n(37),a=n(13).wrapToArray,r=n(13).inArray,s=n(3),l=n(12).contains,u=n(67),c=n(8),d=n(157),h=n(88),p="dxdragstart",f="dxdrag",g="dxdragend",_="dxdragenter",m="dxdragleave",v="dxdrop",y="dxDragEventsCount",x=[],b=[],w=[],C={setup:function(e,t){var n=r(e,x)!==-1;n||(x.push(e),b.push([]),w.push(t||{}))},add:function(e,t){var n=r(e,x);this.updateEventsCounter(e,t.type,1);var i=t.selector;r(i,b[n])===-1&&b[n].push(i)},updateEventsCounter:function(e,t,n){if([_,m,v].indexOf(t)>-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,x);x.splice(n,1),b.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),x),n=b[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),x);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?[]:x));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(x,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.pageX<o.left)return!1;if(n.pageY<o.top)return!1;var a=T(e,t);return!(n.pageX>o.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(28),o=n(218).getFormatter,a=n(219),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<g.length;o++)n[o]&&(i+=g[o]||n[o]);return"Z"===n[12]&&(i+="'Z'"),n[14]&&(i+=n[15]?"xxx":n[16]?"xx":"x"),i}if(n=e.match(f))return n[3]?"HH:mm:ss":"HH:mm"}},x=function(e){return"number"==typeof e?new Date(e):m(e,!i().forceIsoDateParsing)},b=function(e,t){return t?l(e)?t===c?e&&e.valueOf?e.valueOf():null:o(t,a)(e):null:e},w=function(e){if("number"==typeof e)return c;if(s(e)){var t;return i().forceIsoDateParsing&&(t=y(e)),t?t:e.indexOf(":")>=0?h:d}return e?null:void 0};e.exports={dateParser:m,deserializeDate:x,serializeDate:b,getDateSerializationFormat:w}},function(e,t,n){var i=n(6).Deferred,o=n(11),a=n(437),r=n(7),s=r.getWindow(),l=n(0).extendFromObject,u=n(1).isDefined,c=n(82),d=n(52),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("&")},x=function(e){var t=o.createElement("script");for(var n in e)t[n]=e[n];return t},b=function(e){e.parentNode.removeChild(e)},w=function(e){return o.getHead().appendChild(e)},C=function(e){var t=x({text:e});w(t),b(t)},k=function(e){var t=x({src:e});return new c(function(e,n){var i={load:e,error:n},a=function(e){i[e.type](),b(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()},M=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},R=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=M(e),x=B(e,y),b=x.url,w=x.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(b).then(S,C),r}if(e.crossDomain&&!("withCredentials"in n))return o.reject(n,p),r;if(n.open(P(e),b,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:R})},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;a<o;a++){var r=parseInt(e[a]||0,10),s=parseInt(t[a]||0,10);if(r<s)return-1;if(r>s)return 1}return 0}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(){return u||(u=a()),u}function a(){var e=(0,l.getWindow)(),t=e&&e.Quill||n(563);if(!t)throw s.default.Error("E1041","Quill");return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getQuill=void 0;var r=n(17),s=i(r),l=n(7),u=void 0;t.getQuill=o},function(e,t,n){e.exports=n(462)},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*<svg[^>]*>(.|\r\n|\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)("<img>").attr("src",e).addClass(r);case"fontIcon":return(0,a.default)("<i>").addClass(r+" "+e);case"dxIcon":return(0,a.default)("<i>").addClass(r+" "+r+"-"+e);case"svg":return(0,a.default)("<i>").addClass(r+" "+s).append(e);default:return null}};t.getImageSourceType=l,t.getImageContainer=u},function(e,t,n){var i=n(1),o=n(22),a=n(51),r=n(33),s=n(52);n(148),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,n,i,a;if(e.length>1)for(n=o.getDatesDifferences(e[0],e[1]),a=1;a<e.length-1;a++)i=o.getDatesDifferences(e[a],e[a+1]),n.count<i.count&&(n=i);else n={year:!0,month:!0,day:!0,hour:e[0].getHours()>0,minute:e[0].getMinutes()>0,second:e[0].getSeconds()>0,millisecond:e[0].getMilliseconds()>0};return t=this.getDateFormatByDifferences(n)},getDateFormatByTickInterval:function(e,t,n){var a,r,s,l={week:"day"},u=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}},c=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)};return n=i.isString(n)?n.toLowerCase():n,r=o.getDatesDifferences(e,t),e!==t&&c(r,e>t?t:e,e>t?e:t),s=o.getDateUnitInterval(r),u(r,s,!0),s=o.getDateUnitInterval(n||"second"),u(r,s,!1),r[l[s]||s]=!0,a=this.getDateFormatByDifferences(r)}})},function(e,t,n){var i=n(2),o=n(11),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(131),s=n(3),l=n(1).isPrimitive,u=function(){var e=function(e,i,o,a,r){var s,u;return s=t(e,i,function(e){return u&&u(),l(e)?void r(e):void(u=n(e,i,o,a,function(e){r(e)}))}),function(){u&&u(),s&&s()}},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){var i=n(2),o=n(5),a=n(7),r=n(0).extend,s=n(28),l=n(21),u=n(12).getPublicElement,c=n(126),d=n(4),h=n(3).each,p=n(1),f=n(13).inArray,g=n(127),_=n(37),m=n(132),v=m.abstract,y="dx-rtl",x="dx-visibility-change-handler",b="VisibilityChange",w=m.inherit({_getDefaultOptions:function(){return r(this.callBase(),{width:void 0,height:void 0,rtlEnabled:s().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}})},ctor:function(e,t){this._$element=i(e),g.attachInstanceToElement(this._$element,this,this._dispose),this._synchronizableOptionsForCreateComponent=["rtlEnabled","disabled"],this.callBase(t)},_visibilityChanged:v,_dimensionChanged:v,_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);c.add(e)}},_isDimensionChangeSupported:function(){return this._dimensionChanged!==v},_renderComponent:function(){this._initMarkup(),a.hasWindow()&&this._render()},_initMarkup:function(){this._renderElementAttributes(),this._toggleRTLDirection(this.option("rtlEnabled")),this._renderVisibilityChange(),this._renderDimensions()},_render:function(){this._attachVisibilityChangeHandlers()},_renderElementAttributes:function(){var e=r({},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(x)},_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:n,height:i})},_isCssUpdateRequired:function(e,t,n){return!!(n||t||e.style.width||e.style.height)},_attachDimensionChangeHandlers:function(){var e=this,t="dxresize."+this.NAME+b;o.off(e.$element(),t),o.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(),o.off(e.$element(),t),o.on(e.$element(),t,function(){e._checkVisibilityChanged("hiding")}),o.off(e.$element(),n),o.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!==v&&a.hasWindow()},_clean:d.noop,_modelByElement:function(){var e=this.option("modelByElement")||d.noop;return e(this.$element())},_invalidate:function(){if(!this._updateLockCount)throw l.Error("E0007");this._requireRefresh=!0},_refresh:function(){this._clean(),this._renderComponent()},_dispose:function(){this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback:function(){this._isDimensionChangeSupported()&&c.remove(this._windowResizeCallBack)},_toggleRTLDirection:function(e){
15this.$element().toggleClass(y,e)},_createComponent:function(e,t,n){var o=this;n=n||{};var a=d.grep(this._synchronizableOptionsForCreateComponent,function(e){return!(e in n)}),s=o.option("nestedComponentOptions")||d.noop;o._extendConfig(n,r({integrationOptions:this.option("integrationOptions"),rtlEnabled:this.option("rtlEnabled"),disabled:this.option("disabled")},s(this)));var l;if(p.isString(t)){var u=i(e)[t](n);l=u[t]("instance")}else e&&(l=t.getInstance(e),l?l.option(n):l=new t(e,n));if(l){var c=function(e){f(e.name,a)>=0&&l.option(e.name,e.value)};o.on("optionChanged",c),l.on("disposing",function(){o.off("optionChanged",c)})}return l},_extendConfig:function(e,t){h(t,function(t,n){e[t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:n})},_defaultActionConfig:function(){return r(this.callBase(),{context:this._modelByElement(this.$element())})},_defaultActionArgs:function(){var e=this._modelByElement(this.$element());return r(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 u(this.$element())},dispose:function(){var e=this.$element().get(0);_.cleanDataRecursive(e,!0),e.textContent="",this._removeAttributes(e),this._removeClasses(e)}});w.getInstance=function(e){return g.getInstanceByElement(i(e),this)},w.defaultOptions=function(e){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(e)},e.exports=w},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(40),a=n(41),r=i(a),s=n(35),l=n(91),u=i(l),c=n(133),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=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(2),o=n(11),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:b.bind(this,t)}},f=function(e){var t=e.children("."+o);return 0===t.length&&(t=i("<div>").addClass(o).appendTo(e)),t},g=function(e,t){for(var n=f(e),o=n.children("."+a).toArray(),r=o.length;r<t;r++){var s=i("<div>").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),x(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}},x=function(e){e.removeClass(s).css("transitionDuration","")},b=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(x.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,l,u=[],c=i.nodes,d=t.length,h=0;for(r=0;r<d;++r)s=t[r],o=new b.default,o._id=c.length,o.ctx=i.ctx,o.parent=e,o.level=n,o.index=u.length,o.data=s,i.buildNode(o),c.push(o),u.push(o),l=s[i.itemsField],l&&l.length&&a(o,l,n+1,i),s[i.valueField]>0&&(o.value=Number(s[i.valueField])),h+=o.value;e.nodes=u,e.value=h}function r(e,t,n){var i,o,a=t.nodes,s=a.length;for(o=0;o<s;++o)i=a[o],n(e,i),i.isNode()&&r(e,i,n)}function s(e,t){t.color=t.data[e.colorField]||e.getColor(t)||t.parent.color,t.updateStyles(),t.tile=!t.ctx.forceReset&&t.tile||O[Number(t.isNode())](e,t),t.applyState()}function l(e,t){var n=e.renderer.simpleRect().append(e.group);return e.setTrackerData(t,n),n}function u(e,t){var n=e.renderer.simpleRect().append(e.group),i=e.renderer.simpleRect().append(e.group);return e.setTrackerData(t,i),{outer:n,inner:i}}function c(e,t){t.updateLabelStyle(),t.labelState.visible&&d(e,t,t.labelState,t.labelParams)}function d(e,t,n,i){var o=t.data[e.labelField];t.label=o?String(o):null,o=t.customLabel||t.label,o&&(t.text=e.renderer.text(o).attr(n.attr).css(n.css).append(e.group),e.setTrackerData(t,t.text))}function h(e,t){var n,i=t.nodes,o=[],a=[],r=0,s=o.length=a.length=i.length;for(n=0;n<s;++n)r+=i[n].value,o[n]={value:i[n].value,i:n};for(r>0&&e.algorithm({items:o.slice(),sum:r,rect:t.innerRect.slice(),isRotated:1&i[0].level,directions:e.directions}),n=0;n<s;++n)a[n]=o[n].rect||B;t.rects=a}function p(e,t){var n,i=t.parent.rects[t.index],o=e.rectOffsets;t.isNode()?(_(t.tile.outer,g(i,t.parent.innerRect,o.headerEdge,o.headerInner)),i=f(i,e.groupPadding),n=Math.min(e.headerHeight,i[3]-i[1]),t.rect=[i[0],i[1],i[2],i[1]+n],_(t.tile.inner,f(t.rect,o.headerEdge)),i[1]+=n,t.innerRect=i,h(e,t)):(t.rect=i,_(t.tile,g(i,t.parent.innerRect,o.tileEdge,o.tileInner)))}function f(e,t){return[e[0]+t,e[1]+t,e[2]-t,e[3]-t]}function g(e,t,n,i){return[e[0]+(e[0]===t[0]?n:+i),e[1]+(e[1]===t[1]?n:+i),e[2]-(e[2]===t[2]?n:-i),e[3]-(e[3]===t[3]?n:-i)]}function _(e,t){e.attr({x:t[0],y:t[1],width:D(t[2]-t[0],0),height:D(t[3]-t[1],0)})}function m(e,t){t.text&&t.labelState.visible&&v(t,t.labelParams)}function v(e,t){var n=e.rect,i=e.text,o=i.getBBox(),a=t.paddingLeftRight,r=t.paddingTopBottom,s=n[2]-n[0]-2*a,l=o.height+r<=n[3]-n[1],u=o.width<=s,c=t.resolveLabelOverflow,d=t.groupLabelOverflow,h=t.tileLabelOverflow,p=t.tileLabelWordWrap;(0,I.isDefined)(c)?"ellipsis"===c&&l&&(i.setMaxSize(s,void 0,{wordWrap:"none",textOverflow:"ellipsis"}),u||(o=i.getBBox(),u=o.width<=s)):(u=!0,l=!0,i.setMaxSize(s,n[3]-n[1]-r,e.isNode()?{textOverflow:d,wordWrap:"none"}:{textOverflow:h,wordWrap:p,hideOverflowEllipsis:!0})),i.attr({visibility:l&&u?"visible":"hidden"}),l&&u&&i.move(t.rtlEnabled?n[2]-a-o.x-o.width:n[0]+a-o.x,n[1]+r-o.y)}var y=n(276),x=n(170),b=i(x),w=n(123),C=n(124),k=n(10),S=n(4),I=n(1),T=n(0),D=Math.max,E={lefttoprightbottom:[1,1],leftbottomrighttop:[1,-1],righttopleftbottom:[-1,1],rightbottomlefttop:[-1,-1]};n(419),n(123).setDefaultAlgorithm("squarified"),n(421),n(124).setDefaultColorizer("discrete");var A=n(97).inherit({_handlers:{beginBuildNodes:S.noop,buildNode:S.noop,endBuildNodes:S.noop,setTrackerData:S.noop,calculateState:function(e){return(0,y.buildRectAppearance)(e)}},_rootClass:"dxtm-tree-map",_rootClassPrefix:"dxtm",_getDefaultSize:function(){return{width:400,height:400}},_setDeprecatedOptions:function(){this.callBase.apply(this,arguments),(0,T.extend)(this._deprecatedOptions,{resolveLabelOverflow:{since:"19.1",message:"Use the 'tile.label.overflow' and 'group.label.textOverflow' option instead"}})},_themeSection:"treeMap",_fontFields:["tile.label.font","group.label.font"],_init:function(){var e=this;e._rectOffsets={},e._handlers=Object.create(e._handlers),e._context={suspend:function(){e._applyingChanges||e._suspendChanges()},resume:function(){e._applyingChanges||e._resumeChanges()},change:function(t){e._change(t)},settings:[{},{}],calculateState:e._handlers.calculateState,calculateLabelState:y.buildTextAppearance},e._root=e._topNode={nodes:[]},e.callBase.apply(e,arguments)},_initialChanges:["DATA_SOURCE"],_initCore:function(){var e=this,t=e._renderer;e._createProxyType(),e._tilesGroup=t.g().linkOn(t.root,"tiles").linkAppend(),e._labelsGroup=t.g().linkOn(t.root,"labels").linkAppend()},_createProxyType:S.noop,_disposeCore:function(){var e=this;e._filter&&e._filter.dispose(),e._labelsGroup.linkOff(),e._tilesGroup.linkOff()},_applySize:function(e){this._tilingRect=e.slice(),this._change(["TILING"])},_optionChangesMap:{dataSource:"DATA_SOURCE",valueField:"NODES_CREATE",childrenField:"NODES_CREATE",colorField:"TILES",colorizer:"TILES",labelField:"LABELS",tile:"TILE_SETTINGS",group:"GROUP_SETTINGS",maxDepth:"MAX_DEPTH",layoutAlgorithm:"TILING",layoutDirection:"TILING",resolveLabelOverflow:"LABEL_OVERFLOW"},_themeDependentChanges:["TILE_SETTINGS","GROUP_SETTINGS","MAX_DEPTH"],_changeDataSource:function(){var e=this;e._isDataExpected=e._isSyncData=!0,e._updateDataSource(),e._isSyncData=!1,e._isDataExpected&&e._suspendChanges()},_dataSourceChangedHandler:function(){var e=this;e._isDataExpected?(e._isDataExpected=!1,e._change(["NODES_CREATE"]),e._isSyncData||e._resumeChanges()):e._requestChange(["NODES_CREATE"])},_optionChangesOrder:["DATA_SOURCE","TILE_SETTINGS","GROUP_SETTINGS","MAX_DEPTH","LABEL_OVERFLOW"],_change_DATA_SOURCE:function(){this._changeDataSource()},_change_TILE_SETTINGS:function(){this._changeTileSettings()},_change_GROUP_SETTINGS:function(){this._changeGroupSettings()},_change_LABEL_OVERFLOW:function(){this._changeTileSettings(),this._changeGroupSettings()},_change_MAX_DEPTH:function(){this._changeMaxDepth()},_customChangesOrder:["NODES_CREATE","NODES_RESET","TILES","LABELS","TILING","LABELS_LAYOUT"],_change_NODES_CREATE:function(){this._buildNodes()},_change_NODES_RESET:function(){this._resetNodes()},_change_TILES:function(){this._applyTilesAppearance()},_change_LABELS:function(){this._applyLabelsAppearance()},_change_TILING:function(){this._performTiling()},_change_LABELS_LAYOUT:function(){this._performLabelsLayout()},_applyChanges:function(){var e=this;e.callBase.apply(e,arguments),e._isDataExpected||e._drawn(),e._context.forceReset=!1},_buildNodes:function(){var e,t=this,n=t._root=t._topNode=new b.default;n._id=0,n.parent={},n.data={},n.level=n.index=-1,n.ctx=t._context,n.label=null,t._nodes=[n],t._handlers.beginBuildNodes(),e=t._processDataSourceItems(t._dataSourceItems()||[]),a(n,e.items,0,{itemsField:!e.isPlain&&t._getOption("childrenField",!0)||"items",valueField:t._getOption("valueField",!0)||"value",buildNode:t._handlers.buildNode,ctx:t._context,nodes:t._nodes}),t._onNodesCreated(),t._handlers.endBuildNodes(),t._change(["NODES_RESET"])},_onNodesCreated:S.noop,_processDataSourceItems:function(e){return{items:e,isPlain:!1}},_changeTileSettings:function(){var e=this,t=e._getOption("tile"),n=e._rectOffsets,i=o(t.border.width),a=i/2,r=1&i?.5:0,s=t.label,l=e._context.settings[0];e._change(["TILES","LABELS"]),l.state=e._handlers.calculateState(t),e._filter=e._filter||e._renderer.shadowFilter("-50%","-50%","200%","200%"),e._filter.attr(s.shadow),e._calculateLabelSettings(l,s,e._filter.id),n.tileEdge===a&&n.tileInner===r||(n.tileEdge=a,n.tileInner=r,e._change(["TILING"]))},_changeGroupSettings:function(){var e=this,t=e._getOption("group"),n=t.label,i=e._rectOffsets,a=o(t.border.width),r=a/2,s=1&a?.5:0,l=0,u=o(t.padding),c=e._context.settings[1];e._change(["TILES","LABELS"]),c.state=e._handlers.calculateState(t),e._calculateLabelSettings(c,n),l=t.headerHeight>=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,n=this._renderer,i=this._textForCalculations||n.text("0",0,0);return this._textForCalculations=i,i.css((0,k.patchFontOptions)(e)).append(n.root),t=i.getBBox(),i.remove(),t}}),O=[l,u],B=[0,0,0,0];n(9)("dxTreeMap",A),e.exports=A,A.addPlugin(n(145).plugin)},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,"</",e,">"):o.push(" />"),o.join("")}};t.default=o},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(11),c=n(1).isWindow,d=n(0).extend,h=n(26),p=n(27),f=n(42),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},x=function(e){return a.pairToObject(e)},b=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.myLocation<t.min&&(n+=t.min-e.myLocation),e.myLocation>t.max&&(n+=e.myLocation-t.max),n},S=function(e,t,n){return t.myLocation<n.min?"h"===e?"left":"top":t.myLocation>n.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.myLocation<t.min&&(e.myLocation=t.min,n=!0),e.fit=n},flip:function(e,t){if(e.flip=!1,("center"!==e.myAlign||"center"!==e.atAlign)&&(e.myLocation<t.min||e.myLocation>t.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("<div>").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=x(t.offset),_=b(t.collision),m=t.boundary,w=x(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(53),o=n(28),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,d,h;for(r=r||0,c=r;c<n.length;c++){if(e&&c>r&&c%1e4===0&&new Date-y>=300)return y=new Date,d=new m.Deferred,setTimeout(l(d,c,!1),0),d;if(u=n[c],!s){if(a.unshift(u),o&&i(a,c)===!1)return;if(u.children&&(h=t(u.children,i,o,a),e&&h))return d=new m.Deferred,h.done(l(d,c,!0)),d}if(s=!1,!o&&i(a,c)===!1)return;a.shift(),n[c]!==u&&c--}};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(33),p=n(63),f=n(44),g=n(68),_=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){var n,i;if(e&&(0,s.isDefined)(t))for(n=0;n<e.length;n++)if(i=e[n],i.name===t||i.caption===t||i.dataField===t||i.index===t)return n;return-1},t.formatValue=function(e,t){var n={value:e,valueText:(0,p.format)(e,t.format)||""};return t.customizeText?t.customizeText.call(t,n):n.valueText},t.getCompareFunction=function(e){return function(t,n){var i=0,o=e(t),a=e(n),r=(0,s.isDefined)(o),l=(0,s.isDefined)(a);return r&&l&&(o>a?i=1:o<a&&(i=-1)),r&&!l&&(i=1),!r&&l&&(i=-1),i}},t.createPath=function(e){var t,n=[];for(t=e.length-1;t>=0;t--)n.push(e[t].key||e[t].value);return n},t.foreachDataLevel=function e(t,n,i,o){var a,r;for(i=i||0,o=o||"children",t.length&&n(t,i),r=0;r<t.length;r++)a=t[r],a[o]&&a[o].length&&e(a[o],n,i+1,o)},t.mergeArraysByMaxValue=function(e,t){var n,i=[];for(n=0;n<e.length;n++)i.push(Math.max(e[n]||0,t[n]||0));return i},t.getExpandedLevel=function(e,t){var n=e[t],i=0,o=("columns"===t?e.columnExpandedPaths:e.rowExpandedPaths)||[];for(e.headerName===t?i=e.path.length:e.headerName&&e.headerName!==t&&e.oppositePath?i=e.oppositePath.length:(0,c.each)(o,function(e,t){i=Math.max(i,t.length)});n[i+1]&&n[i].expanded;)i++;return i},t.discoverObjectFields=function(e,n){var i=t.getFieldsDataType(n);return r(e,e[0],"",i)},t.getFieldsDataType=function(e){var t={};return(0,c.each)(e,function(e,n){t[n.dataField]=t[n.dataField]||n.dataType}),t};var x={month:function(e){return(0,h.getMonthNames)()[e-1]},quarter:function(e){return(0,h.format)(new Date(2e3,3*e-1),"quarter")},dayOfWeek:function(e){return(0,h.getDayNames)()[e]}};t.setDefaultFieldValueFormatting=function(e){if("date"===e.dataType)e.format||v(e,"format",x[e.groupInterval]);else if("number"===e.dataType){var t=(0,s.isNumeric)(e.groupInterval)&&e.groupInterval>0&&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;i<t.length;i++)n.push((0,d.extend)({},e[i],{groupIndex:null,groupName:null,filterType:"include",filterValues:[t[i]]}));return n},t.storeDrillDownMixin={createDrillDownDataSource:function(e,t){function n(e){return function(t){var n;return i?n=i[e](t):(n=new m.Deferred,(0,m.when)(o).done(function(o){i=new _.default(o),i[e](t).done(n.resolve).fail(n.reject)}).fail(n.reject)),n}}var i,o=this.getDrillDownItems(e,t),a=new f.DataSource({load:n("load"),totalCount:n("totalCount"),key:this.key()});return a}},t.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){var i=n(441),o=n(3).each,a=n(1).isPlainObject;e.exports={ctor:function(){this._events={},this.setEventsStrategy(new i(this))},setEventsStrategy:function(e){"function"==typeof e&&(e=e(this)),this._eventsStrategy=e},hasEvent:function(e){return this._eventsStrategy.hasEvent(e)},fireEvent:function(e,t){return this._eventsStrategy.fireEvent(e,t),this},on:function(e,t){return a(e)?o(e,function(e,t){this.on(e,t)}.bind(this)):this._eventsStrategy.on(e,t),this},off:function(e,t){return this._eventsStrategy.off(e,t),this},_disposeEvents:function(){this._eventsStrategy.dispose()}}},function(e,t,n){function i(e,t){return e=e.groupBy(t[0].selector),t.length>1&&(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(152),c=n(40).normalizeSortingInfo;e.exports={multiLevelGroup:i,arrangeSortingInfo:o,queryByOptions:a}},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){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(32).camelize,o=n(70),a=n(1),r=n(11),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;o<a;o++){var r=s[o],l=r+e,u=i(l);if(n=t(u,r),void 0===n&&(n=t(l,r)),void 0!==n)break}return n||""},d=function(e){if(e in u())return e;var t=e;e=e.charAt(0).toUpperCase()+e.substr(1);for(var n=1;n<s.length;n++){var i=s[n].toLowerCase()+e;if(i in u())return i}return t},h=function(e){return c(e,function(e,t){if(e in u())return l[t]})},p=["fillOpacity","columnCount","flexGrow","flexShrink","fontWeight","lineHeight","opacity","zIndex","zoom"],f=function(e,t){return a.isNumeric(t)&&p.indexOf(e)===-1&&(t+="px"),t},g=function(e,t,n){if(e){n=a.isNumeric(n)?n+="px":n;for(var i=0;i<e.length;++i)e[i].style[t]=n}},_=function(e,t){g(e,"width",t)},m=function(e,t){g(e,"height",t)};t.styleProp=d,t.stylePropPrefix=h,t.normalizeStyleProp=f,t.setWidth=_,t.setHeight=m},function(e,t,n){var i=n(52);e.exports=i({locale:function(){var e="en";return function(t){return t?void(e=t):e}}()})},function(e,t,n){var i=n(71),o=n(12),a=i.inherit({ctor:function(e){this._render=e},_renderCore:function(e){return o.normalizeTemplateElement(this._render(e))}});e.exports=a},function(e,t,n){var i=n(44).DataSource,o=n(0).extend,a=n(44).normalizeDataSourceOptions,r="_dataSourceOptions",s="_dataSourceChangedHandler",l="_dataSourceLoadErrorHandler",u="_dataSourceLoadingChangedHandler",c="_dataSourceFromUrlLoadMode",d="_getSpecificDataSourceOption",h={postCtor:function(){this.on("disposing",function(){this._disposeDataSource()}.bind(this))},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var e,t,n=d in this?this[d]():this.option("dataSource");this._disposeDataSource(),n&&(n instanceof i?(this._isSharedDataSource=!0,this._dataSource=n):(e=r in this?this[r]():{},t=this._dataSourceType?this._dataSourceType():i,n=a(n,{fromUrlLoadMode:c in this&&this[c]()}),this._dataSource=new t(o(!0,{},e,n))),this._addDataSourceHandlers())},_addDataSourceHandlers:function(){s in this&&this._addDataSourceChangeHandler(),l in this&&this._addDataSourceLoadErrorHandler(),u in this&&this._addDataSourceLoadingChangedHandler(),this._addReadyWatcher()},_addReadyWatcher:function(){this._dataSource.on("loadingChanged",function(e){this._ready&&this._ready(!e)}.bind(this))},_addDataSourceChangeHandler:function(){var e=this._dataSource;this._proxiedDataSourceChangedHandler=function(t){this[s](e.items(),t)}.bind(this),e.on("changed",this._proxiedDataSourceChangedHandler)},_addDataSourceLoadErrorHandler:function(){this._proxiedDataSourceLoadErrorHandler=this[l].bind(this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)},_addDataSourceLoadingChangedHandler:function(){this._proxiedDataSourceLoadingChangedHandler=this[u].bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)},_loadDataSource:function(){if(this._dataSource){var e=this._dataSource;e.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():e.load()}},_loadSingle:function(e,t){return e="this"===e?this._dataSource.key()||"this":e,this._dataSource.loadSingle(e,t)},_isLastPage:function(){return!this._dataSource||this._dataSource.isLastPage()||!this._dataSource._pageSize},_isDataSourceLoading:function(){return this._dataSource&&this._dataSource.isLoading()},_disposeDataSource:function(){this._dataSource&&(this._isSharedDataSource?(delete this._isSharedDataSource,this._proxiedDataSourceChangedHandler&&this._dataSource.off("changed",this._proxiedDataSourceChangedHandler),this._proxiedDataSourceLoadErrorHandler&&this._dataSource.off("loadError",this._proxiedDataSourceLoadErrorHandler),this._proxiedDataSourceLoadingChangedHandler&&this._dataSource.off("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)):this._dataSource.dispose(),delete this._dataSource,delete this._proxiedDataSourceChangedHandler,delete this._proxiedDataSourceLoadErrorHandler,delete this._proxiedDataSourceLoadingChangedHandler)},getDataSource:function(){return this._dataSource||null}};e.exports=h},function(e,t,n){var i=n(81).logger,o=n(52);e.exports=o({isWrapped:function(){return!1},isWritableWrapped:function(){return!1},wrap:function(e){return e},unwrap:function(e){
16return e},assign:function(){i.error("Method 'assign' should not be used for not wrapped variables. Use 'isWrapped' method for ensuring.")}})},function(e,t,n){var i=n(2),o=n(47),a=n(11),r=n(5),s=n(37),l=n(15),u=n(0).extend,c=n(13).inArray,d=n(3).each,h=n(67),p=n(8),f=n(24),g=n(128),_="dxEventManager",m="dxEmitter",v=l.inherit({ctor:function(){this._attachHandlers(),this.reset(),this._proxiedCancelHandler=this._cancelHandler.bind(this),this._proxiedAcceptHandler=this._acceptHandler.bind(this)},_attachHandlers:function(){o.add(function(){var e=a.getDocument();r.subscribeGlobal(e,p.addNamespace(f.down,_),this._pointerDownHandler.bind(this)),r.subscribeGlobal(e,p.addNamespace(f.move,_),this._pointerMoveHandler.bind(this)),r.subscribeGlobal(e,p.addNamespace([f.up,f.cancel].join(" "),_),this._pointerUpHandler.bind(this)),r.subscribeGlobal(e,p.addNamespace(g.name,_),this._mouseWheelHandler.bind(this))}.bind(this))},_eachEmitter:function(e){for(var t=this._activeEmitters||[],n=0;t.length>n;){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,x="dxEmitterSubscription",b=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,x)||{},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,x,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,x),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=b},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;n<i;++n)if(t=v[n].re.exec(e))return v[n].process(t);return null}function a(e,t,n){return t=t||0,n=n||255,e<0||isNaN(e)?t:e>n?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<n&&(i+=360);break;case t:i=60*((n-e)/l)+120;break;case n:i=60*((e-t)/l)+240}return o*=100,a*=100/255,{h:Math.round(i),s:Math.round(o),v:Math.round(a)}}function l(e,t,n){var i,o,a,r,s,l,u,c;switch(r=Math.floor(e%360/60),a=(100-t)*n/100,s=(n-a)*(e%60/60),o=a+s,i=n-s,r){case 0:l=n,u=o,c=a;break;case 1:l=i,u=n,c=a;break;case 2:l=a,u=n,c=o;break;case 3:l=a,u=i,c=n;break;case 4:l=o,u=a,c=n;break;case 5:l=n,u=a,c=i}return[Math.round(2.55*l),Math.round(2.55*u),Math.round(2.55*c)]}function u(e,t,n,i){var o=Math.max(e,t,n);switch(o){case e:return(t-n)/i+(t<n?6:0);case t:return(n-e)/i+2;case n:return(e-t)/i+4}}function c(e,t,n){e=g(e,255),t=g(t,255),n=g(n,255);var i,o,a=Math.max(e,t,n),r=Math.min(e,t,n),s=a+r,l=s/2;if(a===r)i=o=0;else{var c=a-r;o=l>.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||e<t||e>n||"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(79),r=n(3).each,s=n(35),l=n(40),u=n(20).compileGetter,c=n(80),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(500)},function(e,t,n){var i=n(2),o=n(7),a=o.getNavigator(),r=n(42),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("<div>").addClass(p),this.$element().append(this._$wrapper)},_renderIndicatorContent:function(){this._$content=i("<div>").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("<div>").addClass(g),this._$content.append(this._$indicator);for(var t=this.option("_animatingSegmentCount");t>=0;--t){var n=i("<div>").addClass(_).addClass(_+t);e&&n.append(i("<div>").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){var i=n(2),o=n(5),a=n(42),r=n(26),s=n(4),l=n(1),u=n(0).extend,c=n(12).getPublicElement,d=n(7),h=d.getNavigator(),p=n(11),f=n(16),g=n(9),_=n(66),m=n(64),v=n(8),y=n(303),x=n(301),b=n(189),w=n(6).when,C="dxScrollable",k="dxScrollableStrategy",S="dx-scrollable",I="dx-scrollable-disabled",T="dx-scrollable-container",D="dx-scrollable-wrapper",E="dx-scrollable-content",A="dx-scrollable-customizable-scrollbars",O="vertical",B="horizontal",P="both",M=function(){return[{device:function(){return!a.nativeScrolling},options:{useNative:!1}},{device:function(e){return!f.isSimulator()&&"generic"===f.real().platform&&"generic"===e.platform},options:{bounceEnabled:!1,scrollByThumb:!0,scrollByContent:a.touch,showScrollbar:"onHover"}}]},R=_.inherit({_getDefaultOptions:function(){return u(this.callBase(),{disabled:!1,onScroll:null,direction:O,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(M(),[{device:function(){return a.nativeScrolling&&"android"===f.real().platform&&!r.mozilla},options:{useSimulatedScrollbar:!0}},{device:function(){return"ios"===f.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(S),t=this._$container=i("<div>").addClass(T),n=this._$wrapper=i("<div>").addClass(D),a=this._$content=i("<div>").addClass(E);p.hasDocumentProperty("onbeforeactivate")&&r.msie&&r.version<12&&o.on(e,v.addNamespace("beforeactivate",C),function(e){i(e.target).is(m.focusable)||e.preventDefault()}),a.append(e.contents()).appendTo(t),t.appendTo(n),n.appendTo(e)},_dimensionChanged:function(){this.update()},_attachNativeScrollbarsCustomizationCss:function(){"desktop"!==f.real().deviceType||h.platform.indexOf("Mac")>-1&&r.webkit||this.$element().addClass(A)},_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,t=e.option("rtlEnabled");this._updateBounds(),t&&this.option("direction")!==O&&s.deferUpdate(function(){var t=e.scrollWidth()-e.clientWidth();s.deferRender(function(){e.scrollTo({left:t})})})},_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};o.off(this._$wrapper,"."+C),o.on(this._$wrapper,v.addNamespace(y.init,C),t,this._initHandler.bind(this)),o.on(this._$wrapper,v.addNamespace(y.start,C),e.handleStart.bind(e)),o.on(this._$wrapper,v.addNamespace(y.move,C),e.handleMove.bind(e)),o.on(this._$wrapper,v.addNamespace(y.end,C),e.handleEnd.bind(e)),o.on(this._$wrapper,v.addNamespace(y.cancel,C),e.handleCancel.bind(e)),o.on(this._$wrapper,v.addNamespace(y.stop,C),e.handleStop.bind(e)),o.off(this._$container,"."+C),o.on(this._$container,v.addNamespace("scroll",C),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(I,this.option("disabled")),this.option("disabled")?this._lock():this._unlock()},_renderDirection:function(){this.$element().removeClass("dx-scrollable-"+B).removeClass("dx-scrollable-"+O).removeClass("dx-scrollable-"+P).addClass("dx-scrollable-"+this.option("direction"))},_renderStrategy:function(){this._createStrategy(),this._strategy.render(),this.$element().data(k,this._strategy)},_createStrategy:function(){this._strategy=this.option("useNative")?new b(this):new x.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&&d.hasWindow()){var t=this.scrollOffset();t[e]=0,this.scrollTo(t)}},_getInactiveProp:function(){var e=this.option("direction");return e===O?"left":e===B?"top":void 0},_location:function(){return this._strategy.location()},_normalizeLocation:function(e){if(l.isPlainObject(e)){var t=s.ensureDefined(e.left,e.x),n=s.ensureDefined(e.top,e.y);return{left:l.isDefined(t)?-t:void 0,top:l.isDefined(n)?-n:void 0}}var i=this.option("direction");return{left:i!==O?-e:void 0,top:i!==B?-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===O?t!==B:e===B?t!==O:t===e},_updateAllowedDirection:function(){var e=this._strategy._allowedDirections();this._isDirection(P)&&e.vertical&&e.horizontal?this._allowedDirectionValue=P:this._isDirection(B)&&e.horizontal?this._allowedDirectionValue=B:this._isDirection(O)&&e.vertical?this._allowedDirectionValue=O:this._allowedDirectionValue=null},_allowedDirection:function(){return this._allowedDirectionValue},_container:function(){return this._$container},$content:function(){return this._$content},content:function(){return c(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 w(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-s.ensureDefined(e.left,t.left),top:t.top-s.ensureDefined(e.top,t.top)});(n.top||n.left)&&this._strategy.scrollBy(n)},scrollToElement:function(e,t){t=t||{};var n=i(e),o=this.$content().find(e).length,a=n.parents("."+S).length-n.parents("."+E).length===0;if(o&&a){var r={top:0,left:0},s=this.option("direction");s!==O&&(r.left=this._scrollToElementPosition(n,B,t)),s!==B&&(r.top=this._scrollToElementPosition(n,O,t)),this.scrollTo(r)}},_scrollToElementPosition:function(e,t,n){var i=t===O,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()}});g(C,R),e.exports=R,e.exports.deviceDependentOptions=M},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(11),_=n(72),m=n(14),v=n(9),y=n(241),x=".dx-state-disabled",b="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(){t.escape&&t.escape.apply(this,arguments),this._cancelEditing()},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(),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(b),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(x).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.isLastPage(),i=t===this._items().length-1;!n&&i&&e>0?(this._popup||this._createPopup(),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)},_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){
17c(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(),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(){this.option("readOnly")||this._loadItemDeferred&&this._loadItemDeferred.always(function(){var e=this.option("selectedItem");return this.option("acceptCustomValue")?void this._updateField(e):this.option("searchEnabled")&&!this._searchValue()&&this.option("allowClearing")?void this._clearTextValue():void(this._isValueEqualInputText()||this._renderInputValue().always(function(t){var n=o.ensureDefined(t,e);this._setSelectedItem(n),this._updateField(n),this._clearFilter()}.bind(this)))}.bind(this))},_focusOutHandler:function(e){this.callBase(e),this._restoreInputText()},_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(){this.option("acceptCustomValue")&&this._isCustomItemSelected()&&this._customItemAddedHandler()},_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(){var e=this._searchValue(),t=this._createCustomItem(e);if(void 0===t)throw this._renderValue(),f.Error("E0121");s(t)?d.fromPromise(t).done(this._setCustomItem.bind(this)).fail(this._setCustomItem.bind(this,null)):this._setCustomItem(t)},_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"selectedItem":e.previousValue!==e.value&&this.callBase(e);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-R,o=B+M+H+n*L,a={rect:{width:R-2*H,height:L,x:i+H,y:o},text:{x:i+(e.rtl?R-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+R)+" "+(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:x.default.format("vizExport-printingButtonText"),itemIndex:n.length})),n=t.formats.reduce(function(n,i){return n.push(c(e,t,{type:"exporting",text:x.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(10),m=n(172),v=i(m),y=n(14),x=i(y),b=n(1),w=n(50),C=i(w),k=n(135),S=i(k),I=n(24),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]],M=4,R=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,b.isDefined)(t.margin)?t.margin:z,t.backgroundColor=(0,b.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="'+(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:"<svg "+o+'height="'+s+'" width="'+l+'" version="1.1" xmlns="http://www.w3.org/2000/svg">'+i.items.map(function(e){return'<g transform="translate('+r(e)+","+a(e)+')">'+e.markup+"</g>"}).join("")+"</svg>",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(-R+B,B+M,R,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(x.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,"+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(11),g=n(1),_=n(3).each,m=n(156),v=n(126),y=n(45).format,x=n(1).isObject,b=n(0).extend,w=n(265),C=Math.floor,k=n(66),S=n(143),I=n(10).parseScalar,T=n(766),D=T.log,E=n(168),A=n(768),O=n(16),B=n(5),P="rtlEnabled",M="dx-sized-element",R=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,M),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 b(this.callBase(),{onIncidentOccurred:s})},_useLinks:!0,_init:function(){var e,t=this;t._$element.children("."+M).remove(),t.callBase.apply(t,arguments),t._changesLocker=0,t._optionChangedLocker=0,t._changes=S.changes(),t._suspendChanges(),t._themeManager=t._createThemeManager(),t._themeManager.setCallback(function(){t._requestChange(t._themeDependentChanges)}),t._renderElementAttributes(),t._initRenderer(),e=t._useLinks&&t._renderer.root,e&&e.enableLinks().virtualLink("core").virtualLink("peripheral"),t._renderVisibilityChange(),t._attachVisibilityChangeHandlers(),t._toggleParentsScrollSubscription(this._isVisible()),t._initEventTrigger(),t._incidentOccurred=V(t.NAME,t._eventTrigger),t._layout=new A,e&&e.linkAfter("core"),t._initPlugins(),t._initCore(),e&&e.linkAfter(),t._change(t._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;e<o;++e)n.has(i[e])&&t["_change_"+i[e]]()},_optionChangesOrder:["EVENTS","THEME","RENDERER","RESIZE_HANDLER"],_layoutChangesOrder:["ELEMENT_ATTR","CONTAINER_SIZE","LAYOUT"],_customChangesOrder:["DISABLED"],_change_EVENTS:function(){this._eventTrigger.applyChanges()},_change_THEME:function(){this._setThemeAndRtl()},_change_RENDERER:function(){this._setRendererOptions()},_change_RESIZE_HANDLER:function(){this._setupResizeHandler()},_change_ELEMENT_ATTR:function(){this._renderElementAttributes(),this._change(["CONTAINER_SIZE"])},_change_CONTAINER_SIZE:function(){this._updateSize()},_change_LAYOUT:function(){this._setContentSize()},_change_DISABLED:function(){var e=this._renderer,t=e.root;this.option("disabled")?(this._initDisabledState=t.attr("pointer-events"),t.attr({"pointer-events":"none",filter:e.getGrayScaleFilter().id})):"none"===t.attr("pointer-events")&&t.attr({"pointer-events":g.isDefined(this._initDisabledState)?this._initDisabledState:null,filter:null})},_themeDependentChanges:["RENDERER"],_initRenderer:function(){var e=this;e._canvas=e._calculateCanvas(),e._renderer=new E.Renderer({cssClass:e._rootClassPrefix+" "+e._rootClass,pathModified:e.option("pathModified"),container:e._$element[0]}),e._renderer.resize(e._canvas.width,e._canvas.height)},_disposeRenderer:function(){this._renderer.dispose()},_getAnimationOptions:h,render:function(){this._requestChange(["CONTAINER_SIZE"]);var e=this._isVisible();this._toggleParentsScrollSubscription(e),!e&&this._stopCurrentHandling()},_toggleParentsScrollSubscription:function(e){var t=d(this._renderer.root.element).parents(),n="scroll.viz_widgets";"generic"===O.real().platform&&(t=t.add(p.getWindow())),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(){this._stopCurrentHandling()}.bind(this),B.off(d().add(this._$prevRootParents),n,this._proxiedTargetParentsScrollHandler),e&&(B.on(t,n,this._proxiedTargetParentsScrollHandler),this._$prevRootParents=t)},_stopCurrentHandling:h,_dispose:function(){var e=this;e.callBase.apply(e,arguments),e._toggleParentsScrollSubscription(!1),e._removeResizeHandler(),e._layout.dispose(),e._eventTrigger.dispose(),e._disposeCore(),e._disposePlugins(),e._disposeRenderer(),e._themeManager.dispose(),e._themeManager=e._renderer=e._eventTrigger=null},_initEventTrigger:function(){var e=this;e._eventTrigger=c(e._eventsMap,function(t){return e._createActionByOption(t)})},_calculateCanvas:function(){var e=this,t=e.option("size")||{},n=e.option("margin")||{},i=e._getDefaultSize()||{},o=!u(t.width)&&p.hasWindow()?e._$element.width():0,a=!u(t.height)&&p.hasWindow()?e._$element.height():0,r={width:t.width<=0?0:C(l([t.width,o,i.width])),height:t.height<=0?0:C(l([t.height,a,i.height])),left:l([n.left,i.left]),top:l([n.top,i.top]),right:l([n.right,i.right]),bottom:l([n.bottom,i.bottom])};return(r.width-r.left-r.right<=0||r.height-r.top-r.bottom<=0)&&(r={width:0,height:0}),r},_updateSize:function(){var e=this,t=e._calculateCanvas();e._renderer.fixPlacement(),(a(e._canvas,t)||e.__forceRender)&&(e._canvas=t,e._recreateSizeDependentObjects(!0),e._renderer.resize(t.width,t.height),e._change(["LAYOUT"]))},_recreateSizeDependentObjects:h,_getMinSize:function(){return[0,0]},_getAlignmentRect:h,_setContentSize:function(){var e,t=this._canvas,n=this._layout,i=t.width>0&&t.height>0?[t.left,t.top,t.width-t.right,t.height-t.bottom]:[0,0,0,0];i=n.forward(i,this._getMinSize()),e=this._applySize(i)||i,n.backward(e,this._getAlignmentRect()||e)},_getOption:function(e,t){var n=this._themeManager.theme(e),i=this.option(e);return t?void 0!==i?i:n:b(!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||x(e))?(t._optionsQueue=t._optionsQueue||[],void t._optionsQueue.push(t._getActionForUpdating(arguments))):R.apply(t,arguments)},_getActionForUpdating:function(e){var t=this;return t._deprecatedOptionsSuppressed?function(){t._suppressDeprecatedWarnings(),R.apply(t,e),t._resumeDeprecatedWarnings()}:function(){R.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){var i=n(28),o=function(e){var t=e||i().rtlEnabled;return t?"right":"left"};t.getDefaultAlignment=o},function(e,t,n){var i=n(15),o=n(0).extend,a=n(13).inArray,r=n(3).each,s=n(79),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<n;case"<=":return e<=n}}}),x=p.inherit({NAME:"pattern",_validate:function(e,t){if(t.ignoreEmptyValue!==!1&&this._isValueEmpty(e))return!0;var n=t.pattern;return c.isString(n)&&(n=new RegExp(n)),n.test(e)}}),b=p.inherit({NAME:"email",_validate:function(e,t){return!(t.ignoreEmptyValue===!1||!this._isValueEmpty(e))||w.pattern.validate(e,o({},t,{pattern:/^[\d\w._-]+@([\d\w._-]+\.)+[\w]+$/i}))}}),w={
18required:new f,numeric:new g,range:new _,stringLength:new m,custom:new v,compare:new y,pattern:new x,email:new b},C=i.inherit({ctor:function(e){this.group=e,this.validators=[]},validate:function(){var e={isValid:!0,brokenRules:[],validators:[]};return r(this.validators,function(t,n){var i=n.validate();e.isValid=e.isValid&&i.isValid,i.brokenRule&&e.brokenRules.push(i.brokenRule),e.validators.push(n)}),this.fireEvent("validated",[{validators:e.validators,brokenRules:e.brokenRules,isValid:e.isValid}]),e},reset:function(){r(this.validators,function(e,t){t.reset()})}}).include(s),k={groups:[],getGroupConfig:function(e){var t=u.grep(this.groups,function(t){return t.group===e});if(t.length)return t[0]},initGroups:function(){this.groups=[],this.addGroup()},addGroup:function(e){var t=this.getGroupConfig(e);return t||(t=new C(e),this.groups.push(t)),t},removeGroup:function(e){var t=this.getGroupConfig(e),n=a(t,this.groups);return n>-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,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 o(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 a(e){return/^(?:[a-z]+:)?\/\//i.test(e)}function r(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 s="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},l=n(15),u=n(0).extend,c=n(1),d=n(3),h=n(3).each,p=n(57),f=n(43),g=c.isDefined,_=c.isPlainObject,m=n(4).grep,v=n(6).Deferred,y=n(35).errors,x=n(40),b=/^(\{{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<t;)e=n?e+"0":"0"+e;return e},D=function(e){var t=[];for(var n in e)t.push(n+"="+e[n]);return t.join("&")},E=function(e,t,n){function o(t){return JSON.stringify(t,function(t,n){if(!(this[t]instanceof Date))return n;switch(n=i(this[t]),e){case 2:return n.substr(0,n.length-1);case 3:case 4:return n;default:throw y.Error("E4002")}})}t=u({async:!0,method:"get",url:"",params:{},payload:null,headers:{},timeout:3e4},t),n=n||{};var a=n.beforeSend;a&&a(t);var r=(t.method||"get").toLowerCase(),s="get"===r,l=s&&n.jsonp,c=u({},t.params),d=s?c:o(t.payload),h=!s&&D(c),p=t.url,f=!s&&k;return h&&(p+=(p.indexOf("?")>-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,s=E(t,n,i);return p.sendRequest(s).always(function(n,l){var u,c={deserializeDates:i.deserializeDates,fieldTypes:i.fieldTypes},d=P(n,l,c,s),h=d.error,p=d.data,f=d.nextUrl;h?h.message!==x.XHR_ERROR_UNLOAD&&o.reject(h):i.countOnly?isFinite(d.count)?o.resolve(d.count):o.reject(new y.Error("E4018")):f&&!i.isPaged?(a(f)||(f=r(s.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=x.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))?M(e,t):R(e,t),F(o,n),o):{data:e}},M=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")}},R=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(i,a){if(null!==a&&"object"===("undefined"==typeof a?"undefined":s(a)))"results"in a&&(t[i]=a.results),e(t[i],n);else if("string"==typeof a){var r=n.fieldTypes,l=!r||"String"!==r[i];if(l&&b.test(a)&&(t[i]=new f(a)),n.deserializeDates!==!1)if(a.match(w)){var u=new Date(Number(RegExp.$1)+60*RegExp.$2*1e3);t[i]=new Date(u.valueOf()+60*u.getTimezoneOffset()*1e3)}else C.test(a)&&(t[i]=new Date(o(t[i]).valueOf()))}})},L=function(e){return"datetime'"+i(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?i(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(509),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,x=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("<div>").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("<input>").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("<span>").addClass(p).prependTo(this._$container)},_renderText:function(){var e=this.option("text");return e?(this._$text||(this._$text=i("<span>").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",x),e.exports=x},function(e,t,n){e.exports=n(330)},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);C=(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="'+e+'"][tabindex]'):i.find("[tabindex]")}function s(e){for(var t in e){var n=e[t],i=void 0;if(i=(0,c.default)(n).first(),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-datagrid-rowsview .dx-datagrid-content .dx-row > td",y=".dx-treelist-rowsview .dx-treelist-content .dx-row > td",x={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 input",".dx-treelist-headers .dx-treelist-filter-row .dx-editor-cell input"],rowsView:[v+"[tabindex]",""+v,y+"[tabindex]",""+y],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]"]},b=!1,w=!1,C=null;e.exports={hiddenFocus:function(e){w=!0,e.focus(),w=!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(){b=!0,s.removeClass(_)}),h.default.on(n,"focusin",i,function(){b||w||s.addClass(_),b=!1})}},restoreFocus:function(e){if(!e.option("useLegacyKeyboardNavigation")&&C){var t=C.viewInstance;if(t){var n=r(C.ariaLabel,t.element()),i=n.eq(C.index);C=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(x),a=o.indexOf(e);a>=0&&a<o.length;){a="upArrow"===i?--a:++a;var r=o[a],l=x[r],u=s(l);if(u&&u.length){u.attr("tabindex",t.option("tabindex")||0),h.default.trigger(u,"focus"),u.removeClass(m);break}}},setTabIndex:function(e,t){e.option("useLegacyKeyboardnavigation")||t.attr("tabindex",e.option("tabindex")||0)}}},function(e,t,n){function i(e){return!!(e&&String(e).length>0)}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.width||e[3]-e[1]<t.height}function l(e){this._params=e,this._group=e.renderer.g().attr({"class":e.cssClass}).linkOn(e.root||e.renderer.root,"title"),this._hasText=!1}function u(e){var t=d(e)?{text:e}:e||{};return t.subtitle=d(t.subtitle)?{text:t.subtitle}:t.subtitle||{},t}var c=Number,d=n(1).isString,h=n(0).extend,p=n(10).patchFontOptions,f=n(10).enumParser(["left","center","right"]),g=n(10).enumParser(["top","bottom"]),_=10;h(l.prototype,n(266).LayoutElement.prototype,{dispose:function(){var e=this;e._group.linkRemove(),e._group.linkOff(),e._titleElement&&(e._clipRect.dispose(),e._titleElement=e._subtitleElement=e._clipRect=null),e._params=e._group=e._options=null},_updateOptions:function(e){this._options=e,this._options.horizontalAlignment=f(e.horizontalAlignment,"center"),this._options.verticalAlignment=g(e.verticalAlignment,"top"),this._options.margin=r(e.margin)},_updateStructure:function(){var e=this,t=e._params.renderer,n=e._group,o=e._options,a=o.horizontalAlignment;e._titleElement||(e._titleElement=t.text().append(n),e._subtitleElement=t.text(),e._clipRect=t.clipRect(),n.attr({"clip-path":e._clipRect.id})),e._titleElement.attr({align:a,"class":o.cssClass}),e._subtitleElement.attr({align:a,"class":o.subtitle.cssClass}),n.linkAppend(),i(o.subtitle.text)?e._subtitleElement.append(n):e._subtitleElement.remove()},_updateTexts:function(){var e,t,n=this,o=n._options,a=o.subtitle,r=n._titleElement,s=n._subtitleElement,l="A";r.attr({text:l,y:0}).css(p(o.font)),e=r.getBBox(),n._baseLineCorrection=e.height+e.y,r.attr({text:o.text}),e=r.getBBox(),t=-e.y,r.attr({y:t}),i(a.text)&&s.attr({text:a.text,y:0}).css(p(a.font))},_shiftSubtitle:function(){var e=this,t=e._titleElement.getBBox(),n=e._subtitleElement,i=e._options.subtitle.offset;n.move(0,t.y+t.height-n.getBBox().y-i)},_updateBoundingRectAlignment:function(){var e=this._boundingRect,t=this._options;e.verticalAlignment=t.verticalAlignment,e.horizontalAlignment=t.horizontalAlignment,e.cutLayoutSide=t.verticalAlignment,e.cutSide="vertical",e.position={horizontal:t.horizontalAlignment,vertical:t.verticalAlignment}},hasText:function(){return this._hasText},update:function(e,t){var n=this,o=h(!0,{},e,u(t)),a=i(o.text),r=a||a!==n._hasText;return n._baseLineCorrection=0,n._updateOptions(o),n._boundingRect={},a?(n._updateStructure(),n._updateTexts()):n._group.linkRemove(),n._updateBoundingRect(),n._updateBoundingRectAlignment(),n._hasText=a,r},draw:function(e,t){var n=this;return n._hasText&&(n._group.linkAppend(),n._correctTitleLength(e),n._group.getBBox().height>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,t=this,n=t._options,i=n.margin,o=t._boundingRect;e=t._hasText?t._group.getBBox():{width:0,height:0,x:0,y:0,isEmpty:!0},e.isEmpty||(e.height+=i.top+i.bottom-t._baseLineCorrection,e.width+=i.left+i.right,e.x-=i.left,e.y+=t._baseLineCorrection-i.top),n.placeholderSize>0&&(e.height=n.placeholderSize),o.height=e.height,o.width=e.width,o.x=e.x,o.y=e.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,[M,P,A,O,B])!==-1}function r(e,t){return o(x(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(271),g=n(1),_=n(10),m=n(4).noop,v=g.isDefined,y=g.isString,x=_.map,b=_.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",M="fixed",R="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(b(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},getErrorBarRangeCorrector:function(){var e,t;return this.areErrorBarsVisible()&&(e=b(this._options.valueErrorBar.displayMode),t=function(t){var n=t.lowError,i=t.highError;switch(e){case"low":return[n];case"high":return[i];case"none":return[];default:return[n,i]}}),t},getValueRangeInitialValue:function(){},_getRangeData:function(){return f.getRangeData(this)},_getPointDataSelector:function(){var e=this,t=this.getValueFields()[0],n=this.getArgumentField(),i=this.getTagField(),o=this.areErrorBarsVisible(),a=void 0,r=void 0;if(o){var s=this._options.valueErrorBar;a=s.lowValueField||E,r=s.highValueField||D}return function(s){var l={value:e._processEmptyValue(s[t]),argument:s[n],tag:s[i],data:s};return o&&(l.lowError=s[a],l.highError=s[r]),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 e<t}),max:u(function(e,t){return e>t})},_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=b(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 M: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 R:s=function(e,t){t.lowError=t.data[g],t.highError=t.data[_]};break;default:switch(n=x(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;s<r.length;s++){var l=r[s],u=l[o]===e?l[a]:void 0;if(this.checkAxisVisibleAreaCoord(!t,u)){n=u;break}}return n},getNearestPointsByCoord:function(e,t){var n=this,i=n.getOptions().rotated,o=!t&&!i||t&&i,a=o?"vy":"vx",r=n.getVisiblePoints(),s=n.getPoints(),l=[];return n.isVisible()&&s.length>0&&(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<a.length)&&!r);Array.isArray(r)&&(n=C(r[0][l]-s),p(r,function(e,t){var i=C(t[l]-s);n>=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,i=this;i._eventTrigger=e.eventTrigger,i._widgetRoot=e.widgetRoot,
19i._wrapper=(0,f.default)("<div>").css({position:"absolute",overflow:"hidden",pointerEvents:"none"}).addClass(e.cssClass),i._renderer=t=new _.default.Renderer({pathModified:e.pathModified,container:i._wrapper[0]}),n=t.root,n.attr({"pointer-events":"none"}),i._text=t.text(void 0,0,0),i._textGroupHtml=(0,f.default)("<div>").css({position:"absolute",padding:0,margin:0,border:"0px solid transparent"}).appendTo(i._wrapper),i._textHtml=(0,f.default)("<div>").css({position:"relative",display:"inline-block",padding:0,margin:0,border:"0px solid transparent"}).appendTo(i._textGroupHtml)}var s=n(11),l=i(s),u=n(7),c=i(u),d=n(32),h=i(d),p=n(2),f=i(p),g=n(168),_=i(g),m=n(1),v=i(m),y=n(0),x=n(10),b=i(x),w=n(63),C=n(403),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=b.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):(o.html(""),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=void 0,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()),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 b.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=T.pageXOffset||n.scrollLeft||0,o=T.pageYOffset||n.scrollTop||0,a={left:i,top:o,width:n.clientWidth||0,height:n.clientHeight||0,right:0,bottom:0};return e!==l.default.getBody()&&(i=S(a.left,a.left+t.left),o=S(a.top,a.top+t.top),a.width=I(t.width,a.width)+i+a.left,a.height=I(t.height,a.height)+o+a.top,a.left=i,a.top=o),a}},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 t<e}function o(e,t){return t>e}function a(e,t,n,i){var o=u(t);u(e)?o&&i(e,t)&&n(t):o&&n(t)}var r,s=n(1),l=n(0).extend,u=s.isDefined,c=s.isDate,d=s.isFunction,h=n(10).unique,p="min",f="max",g="minVisible",_="maxVisible",m="base",v="axisType";r=t.Range=function(e){e&&l(this,e)},r.prototype={constructor:r,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)},l=function(e,n,i){a(t[e],t[n],function(n){u(t[e])&&(t[e]=n)},i)},c=function(n){t[n]=t[n]||e[n]};return c("invert"),c(v),c("dataType"),c("isSpacedMargin"),c("checkMinDataVisibility"),c("checkMaxDataVisibility"),"logarithmic"===t[v]?c(m):t[m]=void 0,s(p,i),s(f,o),"discrete"===t[v]?(c(g),c(_)):(s(g,i),s(_,o)),s("interval",i),l(p,g,i),l(p,_,i),l(f,_,o),l(f,g,o),void 0===n?t.categories=r:t.categories=r?h(n.concat(r)):n,t},isEmpty:function(){return!(u(this[p])&&u(this[f])||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[v]||c(t[f])||c(t[p])?t:(e(p,f),e(g,_),t)},sortCategories:function(e){if(e!==!1&&this.categories)if(Array.isArray(e))this.categories=e.slice(0).concat(this.categories.filter(function(t){return t&&e.indexOf(t.valueOf())===-1}));else{var t=!d(e);t&&"string"!==this.dataType?e=function(e,t){return e.valueOf()-t.valueOf()}:t&&(e=!1),e&&this.categories.sort(e)}}}},function(e,t,n){var i=n(2),o=n(28),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<t.excludeValidators.length;i++)n[t.excludeValidators[i]]=!0},execute:function(){var e={action:this._action,args:Array.prototype.slice.call(arguments),context:this._context,component:this._component,validatingTargetName:this._validatingTargetName,cancel:!1,handled:!1},t=this._beforeExecute,n=this._afterExecute,i=e.args[0]||{};if("jQueryEvent"in i||!i.event||!o().useJQuery||Object.defineProperty(i,"jQueryEvent",{get:function(){return u.log("W0003","Handler argument","jQueryEvent","17.2","Use the 'event' field instead"),i.event},set:function(e){u.log("W0003","Handler argument","jQueryEvent","17.2","Use the 'event' field instead"),i.event=e}}),this._validateAction(e)&&(t&&t.call(this._context,e),!e.cancel)){var a=this._executeAction(e);if(!i.cancel)return n&&n.call(this._context,e),a}},_validateAction:function(e){var t=this._excludeValidators,n=c.executors;for(var i in n)if(!t[i]){var o=n[i];if(o.validate&&o.validate(e),e.cancel)return!1}return!0},_executeAction:function(e){var t,n=c.executors;for(var i in n){var o=n[i];if(o.execute&&o.execute(e),e.handled){t=e.result;break}}return t}});c.executors={},c.registerExecutor=function(e,t){return r.isPlainObject(e)?void s(e,c.registerExecutor):void(c.executors[e]=t)},c.unregisterExecutor=function(){var e=[].slice.call(arguments);s(e,function(){delete c.executors[this]})},c.registerExecutor({undefined:{execute:function(e){e.action||(e.result=void 0,e.handled=!0)}},func:{execute:function(e){r.isFunction(e.action)&&(e.result=e.action.call(e.context,e.args[0]),e.handled=!0)}}});var d=function(e){return function(t){if(t.args.length){var n=t.args[0],o=n[t.validatingTargetName]||n.element;o&&e(i(o))&&(t.cancel=!0)}}};c.registerExecutor({disabled:{validate:d(function(e){return e.is(".dx-state-disabled, .dx-state-disabled *")})},readOnly:{validate:d(function(e){return e.is(".dx-state-readonly, .dx-state-readonly *")})}}),e.exports=c},function(e,t,n){var i=n(2),o=n(71),a=o.inherit({_renderCore:function(){return i()}});e.exports=a},function(e,t,n){var i=n(7),o=i.hasWindow()?i.getWindow():{},a=n(70),r=1e3/60,s=function(e){return setTimeout(e,r)},l=function(e){clearTimeout(e)},u=a(function(){var e=o.requestAnimationFrame||o.webkitRequestAnimationFrame||o.mozRequestAnimationFrame||o.oRequestAnimationFrame||o.msRequestAnimationFrame,t=o.cancelAnimationFrame||o.webkitCancelAnimationFrame||o.mozCancelAnimationFrame||o.oCancelAnimationFrame||o.msCancelAnimationFrame;if(e&&t&&(s=e,l=t),e&&!t){var n={};s=function(t){var i=e.call(o,function(){try{if(i in n)return;t.apply(this,arguments)}finally{delete n[i]}});return i},l=function(e){n[e]=!0}}});t.requestAnimationFrame=function(){return u(),s.apply(o,arguments)},t.cancelAnimationFrame=function(){u(),l.apply(o,arguments)}},function(e,t,n){var i=n(178);e.exports=new i},function(e,t,n){var i=n(2),o=n(4).noop,a=n(15),r=n(25),s=n(0).extend,l=n(8),u=a.inherit({ctor:function(e){this._$element=i(e),this._cancelCallback=r(),this._acceptCallback=r()},getElement:function(){return this._$element},validate:function(e){return!l.isDxMouseWheelEvent(e)},validatePointers:function(e){return 1===l.hasTouches(e)},allowInterruptionByMouseWheel:function(){return!0},configure:function(e){s(this,e)},addCancelCallback:function(e){this._cancelCallback.add(e)},removeCancelCallback:function(){this._cancelCallback.empty()},_cancel:function(e){this._cancelCallback.fire(this,e)},addAcceptCallback:function(e){this._acceptCallback.add(e)},removeAcceptCallback:function(){this._acceptCallback.empty()},_accept:function(e){this._acceptCallback.fire(this,e)},_requestAccept:function(e){this._acceptRequestEvent=e},_forgetAccept:function(){this._accept(this._acceptRequestEvent),this._acceptRequestEvent=null},start:o,move:o,end:o,cancel:o,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(e,t,n){var i=s({type:e,originalEvent:t,target:this._getEmitterTarget(t),delegateTarget:this.getElement().get(0)},n);return t=l.fireEvent(i),t.cancel&&this._cancel(t),t},_getEmitterTarget:function(e){return(this.delegateSelector?i(e.target).closest(this.delegateSelector):this.getElement()).get(0)},dispose:o});e.exports=u},function(e,t,n){var i=n(69),o=n(84);if(i&&i.load){var a={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11965 $"},likelySubtags:{en:"en-Latn-US",de:"de-Latn-DE",ru:"ru-Cyrl-RU",ja:"ja-Jpan-JP"}}};i.locale()||(i.load(a),i.locale("en")),o.inject({locale:function(e){return e?void i.locale(e):i.locale().locale}})}},function(e,t,n){var i=n(3),o="/",a=function(e){var t=e.lastIndexOf(".");return t!==-1?e.substr(t):""},r=function(e){var t=e.lastIndexOf(o);return t!==-1?e.substr(t+o.length):e},s=function(e){var t=e.lastIndexOf(o);return t!==-1?e.substr(0,t):""},l=function(e,t){var n=e.split(o);if(t)for(var i=0;i<n.length;i++)n[i]=u(0===i?"":n[i-1],n[i]);return n},u=function(){var e="";return(0,i.each)(arguments,function(t,n){n&&(e&&(e+=o),e+=n)}),e},c=function(e){for(var t=["B","KB","MB","GB","TB"],n=0,i=e;i>=1024&&n<=t.length-1;)i/=1024,n++;return i=Math.round(10*i)/10,i+" "+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(532)},function(e,t,n){var 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},o=n(2),a=n(56),r=n(1).isDate,s=n(3).each,l=n(33),u=function(){return["year","day","month","day"]},c=6e4,d=60*c*24,h=365*d,p=function(e){var t="undefined"==typeof e?"undefined":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("<div>").addClass("dx-dateview-formatter-container");return o("<span>").text(e).addClass("dx-dateview-value-formatter").appendTo(n),o("<span>").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("<input>").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;t<e.length;++t)e[t].length>i&&(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=x(e);return[-t,0,0,-t,t,0,0,t,-t,0]}function a(e){var t=x(e),n=y(t/2),i=x(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(270),f=l,g=n(1).isDefined,_=n(10).normalizeEnum,m=Math,v=m.round,y=m.floor,x=m.ceil,b=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||b,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||b,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.maxX<t.x+o.width&&(t.x=a.x-r-o.width),i.minY>t.y&&(t.y=i.minY),i.maxY<t.y+o.height&&(t.y=i.maxY-o.height)):(i.minX>t.x&&(t.x=i.minX),i.maxX<t.x+o.width&&(t.x=i.maxX-o.width),i.minY>t.y&&(t.y=a.y+a.height+r),i.maxY<t.y+o.height&&(t.y=a.y-o.height-r))),t},_addLabelAlignmentAndOffset:function(e,t){var n=e.getBoundingRect(),i=e.getLayoutOptions();return this._options.rotated||("left"===i.alignment?t.x+=n.width/2:"right"===i.alignment&&(t.x-=n.width/2)),t.x+=i.horizontalOffset,t.y+=i.verticalOffset,t},_getLabelCoords:function(e){return this._getLabelCoordOfPosition(e,this._getLabelPosition(e.pointPosition))},_getLabelCoordOfPosition:function(e,t){var n=this,i=e.getBoundingRect(),o=n._getGraphicBBox(e.pointPosition),a=C,r=o.height/2-i.height/2,s=o.width/2-i.width/2,l=o.x,u=o.y;switch(t){case"left":l-=i.width+a,u+=r;break;case"right":l+=o.width+a,u+=r;break;case"top":l+=s,u-=i.height+a;break;case"bottom":l+=s,u+=o.height+a;break;case"inside":l+=s,u+=r}return{x:l,y:u}},_drawMarker:function(e,t,n){var i=this,o=i._options,a=i._getTranslates(n),r=i._getStyle();i.graphic=i._createMarker(e,t,o.image,f({translateX:a.x,translateY:a.y,points:i._populatePointShape(o.symbol,r.r)},r))},_getErrorBarSettings:function(){return{visibility:"visible"}},_getErrorBarBaseEdgeLength:function(){return 2*this.getPointRadius()},_drawErrorBar:function(e,t){if(this._options.errorBars){var n,i=this,o=i._options,a=o.errorBars,r=[],s=i._errorBarPos,l=i._highErrorCoord,c=i._lowErrorCoord,d=_(a.displayMode),h="high"===d,p="low"===d,f=(h||!g(c))&&g(l)&&!p,m=(p||!g(l))&&g(c)&&!h,v=a.edgeLength;v<=1&&v>0&&(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,t=this,n=h.navigator,i=t._options.styles.normal.r;return e=d.hasProperty("ontouchstart")||n.msPointerEnabled&&n.msMaxTouchPoints||n.pointerEnabled&&n.maxTouchPoints?20:6,t._options.trackerR=i<e?e:i,t._options.trackerR},_translateErrorBars:function(){var e=this,t=e._options,n=t.rotated,i=t.errorBars,o=e._getValTranslator();i&&(g(e.lowError)&&(e._lowErrorCoord=o.translate(e.lowError)),g(e.highError)&&(e._highErrorCoord=o.translate(e.highError)),e._errorBarPos=y(n?e.vy:e.vx),e._baseErrorBarPos="stdDeviation"===i.type?e._lowErrorCoord+(e._highErrorCoord-e._lowErrorCoord)/2:n?e.vx:e.vy)},_translate:function(){var e=this,t=e._getValTranslator(),n=e._getArgTranslator();e._options.rotated?(e.vx=e.x=t.translate(e.value),e.vy=e.y=n.translate(e.argument),e.minX=t.translate(e.minValue),e.defaultX=t.translate(k)):(e.vy=e.y=t.translate(e.value),e.vx=e.x=n.translate(e.argument),e.minY=t.translate(e.minValue),e.defaultY=t.translate(k)),e._translateErrorBars(),e._calculateVisibility(e.x,e.y)},_updateData:function(e){var t=this;t.value=t.properValue=t.initialValue=t.originalValue=e.value,t.minValue=t.initialMinValue=t.originalMinValue=g(e.minValue)?e.minValue:k},_getImageSettings:function(e){return{href:e.url||e.toString(),width:e.width||b,height:e.height||w}},getCrosshairData:function(){var e=this,t=e._options.rotated,n=e.properValue,i=e.argument;return{x:e.vx,y:e.vy,xValue:t?n:i,yValue:t?i:n,axis:e.series.axis}},getPointRadius:function(){var e,t=this._getStyle(),n=this._options,i=t.r,o=n.symbol,a="square"===o,r="triangle"===o||"triangleDown"===o||"triangleUp"===o;return n.visible&&!n.image&&i?(e=t["stroke-width"]/2,(a||r?1.4*i:i)+e):0},_updateMarker:function(e,t){var n,i=this,o=i._options,a=o.image,r=i.isVisible()?{}:{visibility:"hidden"};n=i._checkImage(a)?f({},{visibility:t.visibility},r,i._getImageSettings(a)):f({},t,r,{points:i._populatePointShape(o.symbol,t.r)}),e||(n.translateX=i.x,n.translateY=i.y),i.graphic.attr(n).sharp()},_getLabelFormatObject:function(){var e=this;return{argument:e.initialArgument,value:e.initialValue,originalArgument:e.originalArgument,originalValue:e.originalValue,seriesName:e.series.name,lowErrorValue:e.lowError,highErrorValue:e.highError,point:e}},_getLabelPosition:function(){var e=this._options.rotated;return this.initialValue>0?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?this.value:this.lowError,o="low"===n?this.value:this.highError;return i<o?i:o}return this.value},getMaxValue:function(e){var t=this._options.errorBars;if(t&&!e){var n=t.displayMode,i="high"===n?this.value:this.lowError,o="low"===n?this.value:this.highError;return i>o?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(10).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(10).normalizeEnum,r=Math.round,s={};
20t.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]<e[3]-e[1]?0:1};t.getStaticSideIndex=u,t.buildSidesData=function(e,t,n){var i=void 0!==n?n:u(e),o=1-i,a=t[i],r=t[o],s=l[a],c=l[r];return{staticSide:e[2+i]-e[i],variedSide:e[2+o]-e[o],static1:i+s[0],static2:i+s[1],varied1:o+c[0],varied2:o+c[1],staticDir:a,variedDir:r}},t.calculateRectangles=function(e,t,n,i,o){var a,s,l,u,c=[0,0,0,0],d=i.static1,h=i.static2,p=n[d],f=i.staticDir,g=i.staticSide,_=o.sum;for(c[i.varied1]=n[i.varied1],c[i.varied2]=n[i.varied1]+i.variedDir*o.side,a=t,s=t+o.count;a<s;++a)l=c.slice(),l[d]=p,u=r(g*e[a].value/_)||0,_-=e[a].value,g-=u,p+=f*u,l[h]=p,e[a].rect=l;n[i.varied1]=c[i.varied2]}},function(e,t,n){function i(e){return function(t){return t.isNode()?void 0:e(t)}}function o(e){return function(t){var n=!t.isNode()&&t.parent;return n?n._groupColor=n._groupColor||e(n):void 0}}function a(e){return e.value}function r(e){return function(t){return Number(t.data[e])}}var s,l=n(10).normalizeEnum,u=n(4).noop,c={};t.getColorizer=function(e,t,n){var a=l(e.type||s),r=c[a]&&c[a](e,t,n);return r?(e.colorizeGroups?o:i)(r):u},t.addColorizer=function(e,t){c[e]=t},t.setDefaultColorizer=function(e){s=e},t.createColorCodeGetter=function(e){return e.colorCodeField?r(e.colorCodeField):a}},function(e,t,n){var i=n(0).extend,o=n(81),a=n(45),r=n(156),s="http://js.devexpress.com/error/"+r.split(".").slice(0,2).join("_")+"/";e.exports=function(e,t){var n={ERROR_MESSAGES:i(t,e),Error:function(){return c([].slice.call(arguments))},log:function(e){var t="log";/^E\d+$/.test(e)?t="error":/^W\d+$/.test(e)&&(t="warn"),o.logger[t]("log"===t?e:r([].slice.call(arguments)))}},r=function(e){var t=e[0];return e=e.slice(1),u(t,l(t,e))},l=function(e,t){return t=[n.ERROR_MESSAGES[e]].concat(t),a.format.apply(this,t).replace(/\.*\s*?$/,"")},u=function(e,t){return a.format.apply(this,["{0} - {1}. See:\n{2}",e,t,d(e)])},c=function(e){var t,n,o,a;return t=e[0],e=e.slice(1),n=l(t,e),a=d(t),o=u(t,n),i(new Error(o),{__id:t,__details:n,url:a})},d=function(e){return s+e};return n}},function(e,t,n){var i=n(7),o=n(11),a=n(25),r=n(47),s=n(70),l=function(){var e,t=a(),n=t.add,l=t.remove;if(!i.hasWindow())return t;var u,c=function(){var e=o.getDocumentElement();return{width:e.clientWidth,height:e.clientHeight}},d=function(){var n=c();if(n.width!==e.width||n.height!==e.height){var i;n.width===e.width&&(i="height"),n.height===e.height&&(i="width"),e=n,t.fire(i)}},h=s(function(){e=c()});return t.add=function(){var e=n.apply(t,arguments);return h(),r.add(function(){!u&&t.has()&&(u=o.listen(i.getWindow(),"resize",d))}),e},t.remove=function(){var e=l.apply(t,arguments);return!t.has()&&u&&(u(),u=void 0),e},t}();e.exports=l},function(e,t,n){var i=n(37),o=n(5),a=n(177),r=n(1).isDefined,s=n(131),l="dxComponents",u="dxPrivateComponent",c=new a,d=0,h=t.name=function(e,t){if(r(t))return void c.set(e,t);if(!c.has(e)){var n=u+d++;return c.set(e,n),n}return c.get(e)};t.attachInstanceToElement=function(e,t,n){var a=i.data(e.get(0)),r=h(t.constructor);a[r]=t,n&&o.one(e,s,function(){n.call(t)}),a[l]||(a[l]=[]),a[l].push(r)},t.getInstanceByElement=function(e,t){var n=h(t);return i.data(e.get(0),n)}},function(e,t,n){var i=n(2),o=n(5),a=n(11),r=n(70),s=n(67),l=n(8),u="dxmousewheel",c="dxWheel",d=r(function(){return a.hasDocumentProperty("onwheel")?"wheel":"mousewheel"}),h={setup:function(e){var t=i(e);o.on(t,l.addNamespace(d(),c),h._wheelHandler.bind(h))},teardown:function(e){o.off(e,"."+c)},_wheelHandler:function(e){var t=this._getWheelDelta(e.originalEvent);l.fireEvent({type:u,originalEvent:e,delta:t,pointerType:"mouse"}),e.stopPropagation()},_getWheelDelta:function(e){return e.wheelDelta?e.wheelDelta:30*-e.deltaY}};s(u,h),t.name=u},function(e,t,n){var i,o=n(15),a=n(4),r=n(12).contains,s=n(16),l=n(8),u=n(24),c=n(114),d=n(88),h="dxactive",p="dxinactive",f=30,g=400,_=o.inherit({ctor:function(e,t){this._timeout=e,this._fire=t},start:function(){var e=this;this._schedule(function(){e.force()})},_schedule:function(e){this.stop(),this._timer=setTimeout(e,this._timeout)},stop:function(){clearTimeout(this._timer)},force:function(){this._fired||(this.stop(),this._fire(),this._fired=!0)},fired:function(){return this._fired}}),m=c.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new _(0,a.noop),this._inactive=new _(0,a.noop)},configure:function(e,t){switch(t){case h:e.activeTimeout=e.timeout;break;case p:e.inactiveTimeout=e.timeout}this.callBase(e)},start:function(e){if(i){var t=r(this.getElement().get(0),i.getElement().get(0)),n=!i._active.fired();if(t&&n)return void this._cancel();i._inactive.force()}i=this,this._initEvents(e),this._active.start()},_initEvents:function(e){var t=this,n=this._getEmitterTarget(e),o=l.isMouseEvent(e),r=s.isSimulator(),u=r||!o,c=a.ensureDefined(this.activeTimeout,f),d=a.ensureDefined(this.inactiveTimeout,g);this._active=new _(u?c:0,function(){t._fireEvent(h,e,{target:n})}),this._inactive=new _(u?d:0,function(){t._fireEvent(p,e,{target:n}),i=null})},cancel:function(e){this.end(e)},end:function(e){var t=e.type!==u.up;t?this._active.stop():this._active.force(),this._inactive.start(),t&&this._inactive.force()},dispose:function(){this._active.stop(),this._inactive.stop(),this.callBase()},lockInactive:function(){return this._active.force(),this._inactive.stop(),i=null,this._cancel(),this._inactive.force.bind(this._inactive)}});m.lock=function(e){var t=i?i.lockInactive():a.noop;e.done(t)},d({emitter:m,events:[h,p]}),t.lock=m.lock,t.active=h,t.inactive=p},function(e,t,n){var i=n(7),o=i.getWindow(),a=o.DevExpress=o.DevExpress||{},r=a.errors=n(21);if(a._DEVEXTREME_BUNDLE_INITIALIZED)throw r.Error("E0024");a._DEVEXTREME_BUNDLE_INITIALIZED=!0,a.clientExporter=n(172),a.excelExporter=n(439),a.VERSION=n(156),a.Class=n(15),a.DOMComponent=n(66),a.registerComponent=n(9),a.devices=n(16),a.Color=n(90);var s=n(112);a.EventsMixin=n(79),a.utils={},a.utils.requestAnimationFrame=s.requestAnimationFrame,a.utils.cancelAnimationFrame=s.cancelAnimationFrame,a.utils.initMobileViewport=n(442).initMobileViewport,a.utils.extendFromObject=n(0).extendFromObject,a.utils.createComponents=n(12).createComponents,a.utils.triggerShownEvent=n(12).triggerShownEvent,a.utils.triggerHidingEvent=n(12).triggerHidingEvent,a.utils.resetActiveElement=n(12).resetActiveElement,a.utils.findBestMatches=n(4).findBestMatches,a.createQueue=n(224).create,a.utils.dom=n(12),a.utils.common=n(4),a.utils.date=n(22),a.utils.browser=n(26),a.utils.inflector=n(32),a.utils.iterator=n(3),a.utils.readyCallbacks=n(47),a.utils.resizeCallbacks=n(126),a.utils.console=n(81),a.utils.string=n(45),a.utils.support=n(42),a.utils.ajax=n(57),a.viewPort=n(75).value,a.hideTopOverlay=n(211),a.formatHelper=n(63),a.config=n(28),a.animationPresets=n(179).presets,a.fx=n(38),a.TransitionExecutor=n(281).TransitionExecutor,a.AnimationPresetCollection=n(179).PresetCollection,a.events=n(282),a.events.click=n(19),a.events.utils=n(8),a.events.GestureEmitter=n(157),a.localization=n(445),e.exports=a},function(e,t,n){var i=n(2),o=n(37).beforeCleanData,a=n(5),r=n(67),s="dxremove",l="dxRemoveEvent";o(function(e){e=[].slice.call(e);for(var t=0;t<e.length;t++){var n=i(e[t]);n.prop(l)&&(n[0][l]=null,a.triggerHandler(n,s))}}),r(s,{noBubble:!0,setup:function(e){i(e).prop(l,!0)}}),e.exports=s},function(e,t,n){function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a="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},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(28),l=n(11),u=n(0).extend,c=n(15),d=n(110),h=n(21),p=n(20),f=n(4),g=n(1),_=n(6),m=_.Deferred,v=_.when,y=n(25),x=n(79),b=n(127),w=n(16),C=g.isFunction,k=f.noop,S={},I={},T=function(){function e(){o(this,e),this._postponedOperations={}}return r(e,[{key:"add",value:function(e,t,n){if(e in this._postponedOperations)n&&this._postponedOperations[e].promises.push(n);else{var i=new m;this._postponedOperations[e]={fn:t,completePromise:i,promises:n?[n]:[]}}return this._postponedOperations[e].completePromise.promise()}},{key:"callPostponedOperations",value:function(){for(var e in this._postponedOperations){var t=this._postponedOperations[e];g.isDefined(t)&&(t.promises&&t.promises.length?v.apply(void 0,i(t.promises)).done(t.fn).then(t.completePromise.resolve):t.fn().done(t.completePromise.resolve))}this._postponedOperations={}}}]),e}(),D=c.inherit({_setDeprecatedOptions:function(){this._deprecatedOptions={}},_getDeprecatedOptions:function(){return this._deprecatedOptions},_getOptionAliasesByName:function(e){var t=this;return Object.keys(this._deprecatedOptions).filter(function(n){return e===t._deprecatedOptions[n].alias})},_getDefaultOptions:function(){return{onInitialized:null,onOptionChanged:null,onDisposing:null,defaultOptionsRules:null}},_setDefaultOptions:function(){this._options=this._getDefaultOptions()},_defaultOptionsRules:function(){return[]},_setOptionsByDevice:function(e){var t=this._defaultOptionsRules();Array.isArray(e)&&(t=t.concat(e));var n=this._convertRulesToOptions(t);u(!0,this._options,n);for(var i in this._optionsByReference)Object.prototype.hasOwnProperty.call(n,i)&&(this._options[i]=n[i])},_convertRulesToOptions:function(e){for(var t={},n=w.current(),i=function(e,t){var n=[];return Array.prototype.push.call(n,t),1===n.length&&g.isEmptyObject(n[0])||f.findBestMatches(e,n).length>0},o=0;o<e.length;o++){var a,r=e[o],s=r.device||{};a=C(s)?s(n):i(n,s),a&&u(t,r.options)}return t},_isInitialOptionValue:function(e){var t=this.option(e),n=this.initialOption(e),i=C(t)&&C(n)?t.toString()===n.toString():f.equalByValue(t,n);return i},_setOptionsByReference:function(){this._optionsByReference={}},_getOptionsByReference:function(){return this._optionsByReference},ctor:function(e){this.NAME=b.name(this.constructor),e=e||{},e.eventsStrategy&&this.setEventsStrategy(e.eventsStrategy),this._options={},this._updateLockCount=0,this._optionChangedCallbacks=e._optionChangedCallbacks||y(),this._disposingCallbacks=e._disposingCallbacks||y(),this.postponedOperations=new T,this.beginUpdate();try{this._suppressDeprecatedWarnings(),this._setOptionsByReference(),this._setDeprecatedOptions(),this._setDefaultOptions(),e&&e.onInitializing&&e.onInitializing.apply(this,[e]),this._setOptionsByDevice(e.defaultOptionsRules),this._resumeDeprecatedWarnings(),this._initOptions(e)}finally{this.endUpdate()}},_initOptions:function(e){this.option(e)},_optionValuesEqual:function(e,t,n){if(t=p.toComparable(t,!0),n=p.toComparable(n,!0),t&&n&&g.isRenderer(t)&&g.isRenderer(n))return n.is(t);var i=t!==t,o=n!==n;return!(!i||!o)||!(null!==t&&"object"===("undefined"==typeof t?"undefined":a(t))&&!l.isElementNode(t))&&t===n},_init:function(){this._createOptionChangedAction(),this.on("disposing",function(e){this._disposingCallbacks.fireWith(this,[e])}.bind(this))},_createOptionChangedAction:function(){this._optionChangedAction=this._createActionByOption("onOptionChanged",{excludeValidators:["disabled","readOnly"]})},_createDisposingAction:function(){this._disposingAction=this._createActionByOption("onDisposing",{excludeValidators:["disabled","readOnly"]})},_optionChanged:function(e){switch(e.name){case"onDisposing":case"onInitialized":break;case"onOptionChanged":this._createOptionChangedAction();break;case"defaultOptionsRules":}},_dispose:function(){this._optionChangedCallbacks.empty(),this._createDisposingAction(),this._disposingAction(),this._disposeEvents(),this._disposed=!0},instance:function(){return this},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){if(this._updateLockCount=Math.max(this._updateLockCount-1,0),!this._updateLockCount&&(this.postponedOperations.callPostponedOperations(),!this._initializing&&!this._initialized)){this._initializing=!0;try{this._init()}finally{this._initializing=!1,this._updateLockCount++,this._createActionByOption("onInitialized",{excludeValidators:["disabled","readOnly"]})(),this._updateLockCount--,this._initialized=!0}}},_logWarningIfDeprecated:function(e){var t=this._deprecatedOptions[e];t&&!this._deprecatedOptionsSuppressed&&this._logDeprecatedWarning(e,t)},_logDeprecatedWarningCount:0,_logDeprecatedWarning:function(e,t){var n=t.message||"Use the '"+t.alias+"' option instead";h.log("W0001",this.NAME,e,t.since,n),++this._logDeprecatedWarningCount},_suppressDeprecatedWarnings:function(){this._deprecatedOptionsSuppressed=!0},_resumeDeprecatedWarnings:function(){this._deprecatedOptionsSuppressed=!1},_optionChanging:k,_notifyOptionChanged:function(e,t,n){var i=this;if(this._initialized)for(var o=[e].concat(i._getOptionAliasesByName(e)),a=0;a<o.length;a++){var r=o[a],s={name:r.split(/[.[]/)[0],fullName:r,value:t,previousValue:n};i._optionChangedCallbacks.fireWith(i,[u(i._defaultActionArgs(),s)]),i._optionChangedAction(u({},s)),i._disposed||this._cancelOptionChange===s.name||i._optionChanged(s)}},initialOption:function(e){var t,n=this._initialized;return this._initialOptions||(t=this._options,this._options={},this._initialized=!1,this._setDefaultOptions(),this._setOptionsByDevice(t.defaultOptionsRules),this._initialOptions=this._options,this._options=t,this._initialized=n),this._initialOptions[e]},_defaultActionConfig:function(){return{context:this,component:this}},_defaultActionArgs:function(){return{component:this}},_createAction:function(e,t){var n,i=this;return function(o){return arguments.length||(o={}),g.isPlainObject(o)||(o={actionValue:o}),n=n||new d(e,u(t,i._defaultActionConfig())),n.execute.call(n,u(o,i._defaultActionArgs()))}},_createActionByOption:function(e,t){var n,i,o,a=this,r=function(){if(!i){if(t=t||{},"string"!=typeof e)throw h.Error("E0008");0===e.indexOf("on")&&(i=a._getEventName(e)),o=a.option(e)}if(n||o||t.beforeExecute||t.afterExecute||a.hasEvent(i)){if(!n){var r=t.beforeExecute;t.beforeExecute=function(e){r&&r.apply(a,arguments),a.fireEvent(i,e.args)},a._suppressDeprecatedWarnings(),n=a._createAction(o,t),a._resumeDeprecatedWarnings()}if(s().wrapActionsBeforeExecute){var l=a.option("beforeActionExecute")||k,u=l(a,n,t)||n;return u.apply(a,arguments)}return n.apply(a,arguments)}};if(!s().wrapActionsBeforeExecute){var l=a.option("onActionCreated")||k;r=l(a,r,t)||r}return r},_getEventName:function(e){return e.charAt(2).toLowerCase()+e.substr(3)},hasActionSubscription:function(e){return!!this.option(e)||this.hasEvent(this._getEventName(e))},isOptionDeprecated:function(e){var t=this._getDeprecatedOptions();return Object.prototype.hasOwnProperty.call(t,e)},_setOptionSilent:function(e,t){this._cancelOptionChange=e,this.option(e,t),this._cancelOptionChange=!1},option:function(){var e=function(e,t){var n;if(t){if(!e._cachedDeprecateNames){e._cachedDeprecateNames=[];for(var i in e._deprecatedOptions)e._cachedDeprecateNames.push(i)}for(var o=0;o<e._cachedDeprecateNames.length;o++)if(e._cachedDeprecateNames[o]===t){n=e._deprecatedOptions[t];break}if(n){e._logWarningIfDeprecated(t);var a=n.alias;a&&(t=a)}}return t},t=function(e){var t=e.split(".");return t.pop(),t.join(".")},n=function(e){var t=e.split(".");return t[t.length-1]},i=function(e,t,n){var i=S[t];return i||(i=S[t]=p.compileGetter(t)),i(e,{functionsAsIs:!0,unwrapObservables:n})},o=function(e,o){delete e[o];var a=t(o),r=n(o),s=a?i(e,a,!1):e;s&&delete s[r]},a=function(e,o,a){var r,s="";do s&&(s="."+s),s=n(o)+s,o=t(o),r=o?i(e,o,!1):e;while(!r);r[s]=a},r=function(t,n,i,r){if(i){var s=e(t,i);s&&s!==i&&(a(n,s,r),o(n,i))}},s=function e(t,n,i,o){if(g.isPlainObject(o))for(var a in o)e(t,n,i+"."+a,o[a]);r(t,n,i,o)},l=function(e,t,n){I[t]||(I[t]=p.compileSetter(t));var i=t.split(/[.[]/);I[t](e._options,n,{functionsAsIs:!0,merge:!e._getOptionsByReference()[t],unwrapObservables:i.length>1&&!!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"!==g.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 C(n)?n.bind(t)():n}}).include(x);e.exports=D,e.exports.PostponedOperations=T},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n,i="string"==typeof t?t.split():t.slice();i.length;)if(n=i.shift(),n in e)return!0;return!1}function a(e,t,n,i){var o,r;if(i){for(var s=0;s<t.length;s++)if(o=t[s].items||t[s].collapsedItems||[],r=a(e,o||[],n,i-1))return r}else if(g(e,t,n)>=0)return t}function r(e,t,n,i){return i?a(e,t,n,i)||[]:t}function s(e,t){if(e.key()&&!t._dataByKeyMap){for(var n={},i=0,o=t.length;i<o;i++)n[JSON.stringify(e.keyOf(t[i]))]=t[i];t._dataByKeyMap=n}}function l(e,t){if(e._dataByKeyMap)return e._dataByKeyMap[JSON.stringify(t)]}function u(e,t){return!e._dataByKeyMap||e._dataByKeyMap[JSON.stringify(t)]}function c(e,t,n){e._dataByKeyMap&&(e._dataByKeyMap[JSON.stringify(t)]=n)}function d(e,t,n,i,o){n.forEach(function(n){var a="insert"===n.type?t:r(e,t,n.key,i);switch(s(e,a),n.type){case"update":h(e,a,n.key,n.data,!0);break;case"insert":p(e,a,n.data,o&&(0,m.isDefined)(n.index)?n.index:-1,!0);break;case"remove":f(e,a,n.key,!0)}})}function h(e,t,n,i,a){var r,s=!0,u=e.key();if(u){if(o(i,u)&&!(0,I.keysEqual)(u,n,e.keyOf(i)))return!a&&(0,I.rejectedPromise)(C.errors.Error("E4017"));if(r=l(t,n),!r){var c=g(e,t,n);if(c<0)return!a&&(0,I.rejectedPromise)(C.errors.Error("E4009"));r=t[c]}}else r=n;if(S.default.deepExtendArraySafe(r,i,s),!a)return(0,y.default)().useLegacyStoreResult?(0,I.trivialPromise)(n,i):(0,I.trivialPromise)(r,n)}function p(e,t,n,i,o){var a,r,s=e.key();if(r=(0,m.isPlainObject)(n)?(0,w.extend)({},n):n,s){if(a=e.keyOf(r),void 0===a||"object"===("undefined"==typeof a?"undefined":_(a))&&(0,m.isEmptyObject)(a)){if(Array.isArray(s))throw C.errors.Error("E4007");a=r[s]=String(new b.default)}else if(void 0!==t[g(e,t,a)])return!o&&(0,I.rejectedPromise)(C.errors.Error("E4008"))}else a=r;if(i>=0?t.splice(i,0,r):t.push(r),c(t,a,r),!o)return(0,I.trivialPromise)((0,y.default)().useLegacyStoreResult?n:r,a)}function f(e,t,n,i){var o=g(e,t,n);if(o>-1&&t.splice(o,1),!i)return(0,I.trivialPromise)(n)}function g(e,t,n){var i=e.key();if(!u(t,n))return-1;for(var o=0,a=t.length;o<a;o++)if((0,I.keysEqual)(i,e.keyOf(t[o]),n))return o;return-1}var _="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},m=n(1),v=n(28),y=i(v),x=n(43),b=i(x),w=n(0),C=n(35),k=n(48),S=i(k),I=n(40);e.exports.applyBatch=d,e.exports.update=h,e.exports.insert=p,e.exports.remove=f,e.exports.indexByKey=g},function(e,t,n){var i=n(71);e.exports=i.inherit({ctor:function(e){this.name=e}})},function(e,t,n){var i=n(5),o=n(37),a=n(15),r=n(16),s=n(67),l=n(8),u=n(24),c="dxHoverStart",d="dxhoverstart",h=l.addNamespace(u.enter,c),p="dxHoverEnd",f="dxhoverend",g=l.addNamespace(u.leave,p),_=a.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(e){o.data(e,this._handlerArrayKeyPath,{})},add:function(e,t){var n=this,a=function(e){n._handler(e)};i.on(e,this._originalEventName,t.selector,a),o.data(e,this._handlerArrayKeyPath)[t.guid]=a},_handler:function(e){l.isTouchEvent(e)||r.isSimulator()||l.fireEvent({type:this._eventName,originalEvent:e,delegateTarget:e.delegateTarget})},remove:function(e,t){var n=o.data(e,this._handlerArrayKeyPath)[t.guid];i.off(e,this._originalEventName,t.selector,n)},teardown:function(e){o.removeData(e,this._handlerArrayKeyPath)}}),m=_.inherit({ctor:function(){this._eventNamespace=c,this._eventName=d,this._originalEventName=h,this.callBase()},_handler:function(e){var t=e.pointers||[];t.length||this.callBase(e)}}),v=_.inherit({ctor:function(){this._eventNamespace=p,this._eventName=f,this._originalEventName=g,this.callBase()}});s(d,new m),s(f,new v),t.start=d,t.end=f},function(e,t,n){function i(e){return e&&m(e.then)}function o(e){return(new k).resolve(e).promise()}function a(e,t){if(!m(t))throw y.Error("E4011",e)}function r(e){throw y.Error("E4012",e)}function s(e){function t(e){var t=e[0],n=e[1];return t&&t.getResponseHeader?g.errorMessageFromXhr(t,n):null}return function(n){var i;i=n instanceof Error?n:new Error(t(arguments)||n&&String(n)||"Unknown error"),i.message!==g.XHR_ERROR_UNLOAD&&e.reject(i)}}function l(e,t){var n,s=e._loadFunc;return a(D,s),n=s.apply(e,[t]),Array.isArray(n)?n=o(n):null===n||void 0===n?n=o([]):i(n)||r(D),I(n)}function u(e,t){var n,a=e._totalCountFunc;if(!m(a))throw y.Error("E4021");return n=a.apply(e,[t]),i(n)||(n=Number(n),isFinite(n)||r(T),n=o(n)),I(n)}function c(e,t,n){var r,s=e._byKeyFunc;return a(E,s),r=s.apply(e,[t,n]),i(r)||(r=o(r)),I(r)}function d(e,t,n,i){if(t.__rawData)i(t.__rawData);else{var o=t.__rawDataPromise||l(t,n);t._cacheRawData&&(t.__rawDataPromise=o),o.always(function(){delete t.__rawDataPromise}).done(function(e){t._cacheRawData&&(t.__rawData=e),i(e)}).fail(s(e))}}function h(e,t,n,i){n=n||{};var o={};"userData"in n&&(o.userData=n.userData),d(e,t,o,function(o){var a,r,s,l,u=b(o,{errorHandler:t._errorHandler}),c=[];i||(a=w(u,n),a===u?s=o.slice(0):c.push(a.enumerate().done(function(e){s=e}))),(n.requireTotalCount||i)&&(r=w(u,n,!0),r===u?l=o.length:c.push(r.count().done(function(e){l=e}))),S.apply(f,c).done(function(){i?e.resolve(l):n.requireTotalCount?e.resolve(s,{totalCount:l}):e.resolve(s)}).fail(function(t){e.reject(t)})})}function p(e,t,n){d(e,t,{},function(i){for(var o,a=t.key(),r=0,s=i.length;r<s;r++)if(o=i[r],g.keysEqual(a,t.keyOf(i[r]),n))return void e.resolve(o);e.reject(y.Error("E4009"))})}var f=n(2),g=n(40),_=n(133),m=n(1).isFunction,v=n(28),y=n(35).errors,x=n(91),b=n(152),w=n(80).queryByOptions,C=n(6),k=C.Deferred,S=C.when,I=C.fromPromise,T="totalCount",D="load",E="byKey",A="insert",O="update",B="remove",P=x.inherit({ctor:function(e){e=e||{},this.callBase(e),this._useDefaultSearch=!!e.useDefaultSearch||"raw"===e.loadMode,this._loadMode=e.loadMode,this._cacheRawData=e.cacheRawData!==!1,this._loadFunc=e[D],this._totalCountFunc=e[T],this._byKeyFunc=e[E],this._insertFunc=e[A],this._updateFunc=e[O],this._removeFunc=e[B]},createQuery:function(){throw y.Error("E4010")},clearRawDataCache:function(){delete this.__rawData},_totalCountImpl:function(e){var t=new k;return"raw"!==this._loadMode||this._totalCountFunc?(u(this,e).done(function(e){t.resolve(Number(e))}).fail(s(t)),t=this._addFailHandlers(t)):h(t,this,e,!0),t.promise()},_pushImpl:function(e){this.__rawData&&_.applyBatch(this,this.__rawData,e)},_loadImpl:function(e){var t=new k;return"raw"===this._loadMode?h(t,this,e,!1):(l(this,e).done(function(e,n){t.resolve(e,n)}).fail(s(t)),t=this._addFailHandlers(t)),t.promise()},_byKeyImpl:function(e,t){var n=new k;return this._byKeyViaLoad()?(this._requireKey(),p(n,this,e)):c(this,e,t).done(function(e){n.resolve(e)}).fail(s(n)),n.promise()},_byKeyViaLoad:function(){return"raw"===this._loadMode&&!this._byKeyFunc},_insertImpl:function(e){var t,n=this,r=n._insertFunc,l=new k;return a(A,r),t=r.apply(n,[e]),i(t)||(t=o(t)),I(t).done(function(t){v().useLegacyStoreResult?l.resolve(e,t):l.resolve(t||e,n.keyOf(t))}).fail(s(l)),l.promise()},_updateImpl:function(e,t){var n,r=this._updateFunc,l=new k;return a(O,r),n=r.apply(this,[e,t]),i(n)||(n=o(n)),I(n).done(function(n){v().useLegacyStoreResult?l.resolve(e,t):l.resolve(n||t,e)}).fail(s(l)),l.promise()},_removeImpl:function(e){var t,n=this._removeFunc,r=new k;return a(B,n),t=n.apply(this,[e]),i(t)||(t=o()),I(t).done(function(){r.resolve(e)}).fail(s(r)),r.promise()}});e.exports=P},function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(20),r=n(116),s=n(4),l=n(56),u=n(3),c=2e5,d=function(){function e(t){i(this,e),t=(0,s.ensureDefined)(t,{}),this._nameGetter=(0,a.compileGetter)(this._getNameExpr(t)),this._isDirGetter=(0,a.compileGetter)(this._getIsDirExpr(t)),this._sizeGetter=(0,a.compileGetter)(t.sizeExpr||"size"),this._dateModifiedGetter=(0,a.compileGetter)(t.dateModifiedExpr||"dateModified"),this._thumbnailGetter=(0,a.compileGetter)(t.thumbnailExpr||"thumbnail")}return o(e,[{key:"getFolders",value:function(e){return this.getItems(e,"folder")}},{key:"getFiles",value:function(e){return this.getItems(e,"file")}},{key:"getItems",value:function(e,t){return[]}},{key:"renameItem",value:function(e,t){}},{key:"createFolder",value:function(e,t){}},{key:"deleteItems",value:function(e){}},{key:"moveItems",value:function(e,t){}},{key:"copyItems",value:function(e,t){}},{key:"initiateFileUpload",value:function(e){}},{key:"uploadFileChunk",value:function(e,t){}},{key:"finalizeFileUpload",value:function(e){}},{key:"abortFileUpload",value:function(e){}},{key:"getFileUploadChunkSize",value:function(){return c}},{key:"_getItemsByType",value:function(e,t){return this.getItems(e).filter(function(e){return e.isDirectory===t})}},{key:"_convertDataObjectsToFileItems",value:function(e,t,n){var i=this,o="folder"===n,a=[];return(0,u.each)(e,function(e,r){var s=i._createFileItem(r,t);n&&s.isDirectory!==o||a.push(s)}),a}},{key:"_createFileItem",value:function(e,t){var n=new h(t,this._nameGetter(e),(!!this._isDirGetter(e)));return n.size=this._sizeGetter(e),void 0===n.size&&(n.size=0),n.dateModified=(0,l.deserializeDate)(this._dateModifiedGetter(e)),void 0===n.dateModified&&(n.dateModified=new Date),n.isDirectory&&(n.hasSubDirs=this._hasSubDirs(e)),n.thumbnail=this._thumbnailGetter(e)||"",n.dataItem=e,n}},{key:"_hasSubDirs",value:function(e){return!0}},{key:"_getNameExpr",value:function(e){return e.nameExpr||"name"}},{key:"_getIsDirExpr",value:function(e){return e.isDirectoryExpr||"isDirectory"}}]),e}(),h=function(){function e(t,n,o){i(this,e),this.parentPath=t,this.name=n,this.relativeName=(0,r.pathCombine)(this.parentPath,n),this.isDirectory=o||!1,this.size=0,this.dateModified=new Date,this.thumbnail="",this.tooltipText=""}return o(e,[{key:"getExtension",value:function(){return this.isDirectory?"":(0,r.getFileExtension)(this.name)}},{key:"getParent",value:function(){return this.isRoot()?null:new e((0,r.getParentPath)(this.parentPath),(0,r.getName)(this.parentPath),(!0))}},{key:"isRoot",value:function(){return!this.relativeName}},{key:"equals",value:function(e){return e&&this.relativeName===e.relativeName}},{key:"createClone",value:function(){var t=new e(this.parentPath,this.name,this.isDirectory);return t.size=this.size,t.dateModified=this.dateModified,t.thumbnail=this.thumbnail,t.tooltipText=this.tooltipText,t.hasSubDirs=this.hasSubDirs,t.dataItem=this.dataItem,t}}]),e}();e.exports.FileProvider=d,e.exports.FileManagerItem=h},function(e,t,n){var 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},o=n(2),a=n(7),r=a.getWindow(),s=n(11),l=n(5),u=n(9),c=n(4),d=n(0).extend,h=n(27),p=n(76),f=n(1),g=n(29),_=n(8),m=n(46),v="dx-popover",y="dx-popover-wrapper",x="dx-popover-arrow",b="dx-popover-without-title",w={left:"right",top:"bottom",right:"left",bottom:"top",center:"center"},C={left:-1,top:-1,center:0,right:1,bottom:1},k={top:{my:"bottom center",at:"top center",collision:"fit flip"},bottom:{my:"top center",at:"bottom center",collision:"fit flip"},right:{my:"left center",at:"right center",collision:"flip fit"},left:{my:"right center",at:"left center",collision:"flip fit"}},S={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},I=function(e,t){var n=e.option(t);return T(n)},T=function(e){return f.isObject(e)?e.name:e},D=function(e,t){var n=e.option(t);return f.isObject(n)&&n.delay},E=function(e,t){var n,i,a,r,u=e.option("target"),c=I(e,t+"Event");c&&!e.option("disabled")&&(r=_.addNamespace(c,e.NAME),i=e._createAction(function(){n=D(e,t+"Event"),this._clearEventTimeout("hide"===t),n?this._timeouts[t]=setTimeout(function(){e[t]()},n):e[t]()}.bind(e),{validatingTargetName:"target"}),a=function(e){i({event:e,target:o(e.currentTarget)})},u.jquery||u.nodeType||f.isWindow(u)?(e["_"+t+"EventHandler"]=void 0,l.on(u,r,a)):(e["_"+t+"EventHandler"]=a,l.on(s.getDocument(),r,u,a)))},A=function(e,t,n,i){var a=i||I(e,n+"Event");a&&(a=_.addNamespace(a,e.NAME),e["_"+n+"EventHandler"]?l.off(s.getDocument(),a,t,e["_"+n+"EventHandler"]):l.off(o(t),a))},O=m.inherit({_getDefaultOptions:function(){return d(this.callBase(),{target:r,shading:!1,position:"bottom",closeOnOutsideClick:!0,animation:{show:{type:"fade",from:0,to:1},hide:{type:"fade",to:0}},showTitle:!1,width:"auto",height:"auto",dragEnabled:!1,resizeEnabled:!1,fullScreen:!1,closeOnTargetScroll:!0,arrowPosition:"",arrowOffset:0,boundaryOffset:{h:10,v:10}})},_defaultOptionsRules:function(){return[{device:{platform:"ios"},options:{arrowPosition:{boundaryOffset:{h:20,v:-10},collision:"fit"}}},{device:function(){return!a.hasWindow()},options:{animation:null}}]},_init:function(){this.callBase(),this._renderArrow(),this._timeouts={},this.$element().addClass(v),this._wrapper().addClass(y)},_render:function(){this.callBase.apply(this,arguments),this._detachEvents(this.option("target")),this._attachEvents()},_detachEvents:function(e){A(this,e,"show"),A(this,e,"hide")},_attachEvents:function(){E(this,"show"),E(this,"hide")},_renderArrow:function(){this._$arrow=o("<div>").addClass(x).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)&&d(e.to,{position:this._getContainerPosition()}),this.callBase.apply(this,arguments)},_stopAnimation:function(){this.callBase.apply(this,arguments)},_renderTitle:function(){this._wrapper().toggleClass(b,!this.option("showTitle")),this.callBase()},_renderPosition:function(){this.callBase(),this._renderOverlayPosition()},_renderOverlayBoundaryOffset:c.noop,_renderOverlayPosition:function(){this._resetOverlayPosition(),this._updateContentSize();var e=this._getContainerPosition(),t=p.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),h.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=p.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=c.pairToObject(this._position.offset||""),t=e.h,n=e.v,i=this._isVerticalSide(),o=this._isHorizontalSide();
21if(i||o){var a=this._isPopoverInside(),r=(a?-1:1)*C[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 d({},this._position,{offset:t+" "+n})},_getContentBorderWidth:function(e){var t=this._$content.css(S[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()?w[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(w[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=p.offset(a)||{top:0,left:0},s=p.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](),f=Math.max(u,d),_=Math.min(u+c,d+h);t="start"===this.option("arrowPosition")?f-u:"end"===this.option("arrowPosition")?_-u-l:(f+_)/2-u-l/2;var m=this._getContentBorderWidth(e),v=g.fitIntoRange(t-m+this.option("arrowOffset"),m,c-l-2*m);this._$arrow.css(n,v)},_isPopoverInside:function(){var e=this._transformStringPosition(this.option("position"),k),t=p.setup.normalizeAlign(e.my),n=p.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})},_normalizePosition:function(){var e=d({},this._transformStringPosition(this.option("position"),k));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=p.setup.normalizeAlign(e.my),n=p.setup.normalizeAlign(e.at),i=C[t.h]===C[n.h]&&C[t.v]===C[n.v]?-1:1,o=Math.abs(C[t.h]-i*C[n.h]),a=Math.abs(C[t.v]-i*C[n.v]);return o>a?n.h:n.v},_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?"show":"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=T(e.previousValue);this.hide(),A(this,this.option("target"),t,n),E(this,t);break;case"visible":this._clearEventTimeout(e.value),this.callBase(e);break;default:this.callBase(e)}},show:function(e){return e&&this.option("target",e),this.callBase()}});u("dxPopover",O),e.exports=O},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(555)},function(e,t,n){e.exports=n(350)},function(e,t,n){var i=n(21),o=n(0).extend,a=n(3).each,r=n(13).inArray,s=n(22),l=s.dateToMilliseconds,u=4,c={secondly:"seconds",minutely:"minutes",hourly:"hours",daily:"days",weekly:"weeks",monthly:"months",yearly:"years"},d={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);h(n,1,-1);var i=n.getDate();i>=Math.abs(t)?h(e,1,t):h(e,2,t)}else e.setDate(t),D(e,t)},byday:function(e,t,n,i,o){var a=t;"DAILY"!==i&&"WEEKLY"!==i||!(o&&t>=o||!o&&0===t)||(a=7),t+=_[n]>a?7:0,e.setDate(e.getDate()-e.getDay()+t)},byweekno:function(e,t,n){var i=new Date(e),o=new Date(i.setMonth(0,1)),a=o.getDay()-_[n],r=o.getTime()-a*l("day"),s=a+1;s>u?e.setTime(r+7*t*l("day")):e.setTime(r+7*(t-1)*l("day"));var c=(e.getTimezoneOffset()-o.getTimezoneOffset())*l("minute");c&&e.setTime(e.getTime()+c)},byyearday:function(e,t){e.setMonth(0,1),e.setDate(t)}},h=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)},p={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,i=new Date(e),o=u-i.getDay()+_[t]-1,a=l("day");e.getDay()<_[t]&&(o-=7),i.setHours(0,0,0),i.setDate(i.getDate()+o);var r=new Date(i.getFullYear(),0,1),s=(r.getTimezoneOffset()-i.getTimezoneOffset())*l("minute");return n=1+(i-r+s)/a,Math.ceil(n/7)},byyearday:function(e){var t=new Date(e.getFullYear(),0,0),n=e.getTimezoneOffset()-t.getTimezoneOffset(),i=e-t-n*l("minute"),o=l("day");return Math.floor(i/o)}},f=["freq","interval","byday","byweekno","byyearday","bymonth","bymonthday","count","until","byhour","byminute","bysecond","bysetpos","wkst"],g=["DAILY","WEEKLY","MONTHLY","YEARLY","SECONDLY","MINUTELY","HOURLY"],_={SU:0,MO:1,TU:2,WE:3,TH:4,FR:5,SA:6},m={0:"SU",1:"MO",2:"TU",3:"WE",4:"TH",5:"FR",6:"SA"},v=function(){return(new Date).getTimezoneOffset()},y=function(e){var t=[];return e.rule&&(t=k(e)),!!t.length},x=function(e){var t=e.interval,n=e.freq,i={},o=c[n.toLowerCase()];return"MONTHLY"===n&&e.byday&&(o=c.daily),i[o]=t,i},b=function(e,t){for(var n=[],i=0,o=e.length;i<o;i++)n[i]=W(e[i],t);return n},w=function(e,t){var n=!1;if(!t)return n;for(var i=t.split(","),o=b(i,e),a=/\d{8}$/,r=0,s=o.length;r<s;r++)if(i[r].match(a)){var l=A(e,o[r]);0===l.years&&0===l.months&&0===l.days&&(n=!0)}else e.getTime()===o[r].getTime()&&(n=!0);return n},C=function(e,t,n,i,o){var a,r=!0;return n=n.getTime(),i.until&&i.until.getTime()<n&&(n=i.until.getTime()),i.count&&o===i.count&&(r=!1),a=e.getTime()<=n,a&&r},k=function(e){var t,n=[],i=O(e.rule),o={},r=i.rule,s=e.start;if(!i.isValid||!r.freq)return n;r.interval=x(r),t=K(r,e.firstDayOfWeek);var u=e.end?e.end.getTime()-e.start.getTime():l("day"),c={exception:e.exception,min:e.min,dateRules:t,rule:r,recurrenceStartDate:s,recurrenceEndDate:e.end,duration:u};if(t.length&&r.count){var d=0;Q(t,new Date(s),new Date(s),r).forEach(function(t,n){t<e.max&&(d++,o=S(d,o,t,n,c,!0))})}else Z(t,new Date(s),r).forEach(function(t,n){for(var i=0;C(t,s,e.max,r,i);)i++,o=S(i,o,t,n,c),t=E(t,s,r,n)});return r.bysetpos&&a(o,function(e,t){o[e]=T(t,r.bysetpos)}),a(o,function(e,t){n=n.concat(t)}),n.sort(function(e,t){return e-t}),n},S=function(e,t,n,i,o,a){return t[e]||(t[e]=[]),I(n,i,o,a)&&t[e].push(n),t},I=function(e,t,n,i){if(!w(e,n.exception)){var o=s.sameDate(e,n.recurrenceEndDate)&&n.recurrenceEndDate.getTime()>e.getTime()?n.recurrenceEndDate.getTime()-e.getTime():n.duration;if(e.getTime()>=n.recurrenceStartDate.getTime()&&e.getTime()+o>n.min.getTime())return i||ee(e,[n.dateRules[t]],n.rule.wkst)}return!1},T=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},D=function(e,t){e.getDate()!==t&&e.setDate(t)},E=function(e,t,n,i){var o=new Date(e),a=!0;if(e=s.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),d.bymonthday(o,r),e=o,a=!1)),a&&D(e,r)}if("YEARLY"===n.freq){if(n.byyearday){var l=Number(n.byyearday.split(",")[i]);d.byyearday(e,l)}var u=K(n);for(var c in u[i])d[c]&&d[c](e,u[i][c],n.wkst)}return e},A=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()}},O=function(e){var t={rule:{},isValid:!1};return e&&(t.rule=$(e),t.isValid=P(t.rule,e)),t},B=[],P=function(e,t){return!(z(e)||r(e.freq,g)===-1||R(e)||L(e)||H(e)||V(e)||F(e)||M(e))||(N(t),!1)},M=function(e){var t=!1,n=e.until;return void 0===n||n instanceof Date||(t=!0),t},R=function(e){var t=!1,n=e.count;return n&&"string"==typeof n&&(t=!0),t},V=function(e){var t=!1,n=e.bymonthday;return n&&isNaN(parseInt(n))&&(t=!0),t},F=function e(t){var e=!1,n=t.bymonth;return n&&isNaN(parseInt(n))&&(e=!0),e},L=function(e){var t=!1,n=e.interval;return n&&"string"==typeof n&&(t=!0),t},H=function(e){var t=j(e),n=!1;return a(t,function(e,t){if(!Object.prototype.hasOwnProperty.call(_,t))return n=!0,!1}),n},z=function(e){var t=!1;return a(e,function(e){if(r(e,f)===-1)return t=!0,!1}),t},N=function(e){r(e,B)===-1&&(i.log("W0006",e),B.push(e))},$=function(e){for(var t={},n=e.split(";"),i=0,o=n.length;i<o;i++){var a=n[i].split("="),r=a[0].toLowerCase(),s=a[1];t[r]=s}var l=parseInt(t.count);if(isNaN(l)||(t.count=l),t.interval){var u=parseInt(t.interval);isNaN(u)||(t.interval=u)}else t.interval=1;return t.freq&&t.until&&(t.until=W(t.until)),t},W=function(e,t){if("string"!=typeof e)return e;var n=e.match(/(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2}))?(Z)?/);if(!n)return null;var i=void 0!==n[8],o=t?t.getTimezoneOffset():ne.getTimeZoneOffset(),a=new(Function.prototype.bind.apply(Date,G(n)));return o=6e4*o,i&&(a=new Date(a.getTime()-o)),a},G=function(e){return e.shift(),void 0===e[3]?e.splice(3):(e.splice(3,1),e.splice(6)),e[1]--,e.unshift(null),e},j=function(e){var t=[];return e.byday&&(t=Array.isArray(e.byday)?e.byday:e.byday.split(",")),t},q=function(e){var t=6e4*ne.getTimeZoneOffset();return e=new Date(e.getTime()+t),e.getFullYear()+("0"+(e.getMonth()+1)).slice(-2)+("0"+e.getDate()).slice(-2)+"T"+("0"+e.getHours()).slice(-2)+("0"+e.getMinutes()).slice(-2)+("0"+e.getSeconds()).slice(-2)+"Z"},K=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=[];if(t&&(e.fdow=t),e.wkst||(t?e.wkst=m[t]:e.wkst="MO"),e.byweekno&&!e.byday){for(var i=Object.keys(_),o=0;o<_[e.wkst];o++)i.push(i.shift());e.byday=i.join(",")}for(var a in d)if(e[a]){var r=e[a].split(","),s=U(a,r);n=n.length?X(s,n):s}return n},U=function(e,t){for(var n=[],i=0,o=t.length;i<o;i++){var a={};a[e]=Y(e,t[i]),n.push(a)}return n},Y=function(e,t){var n=parseInt(t);return"bymonth"===e&&(n-=1),"byday"===e&&(n=_[t]),n},X=function(e,t){for(var n=[],i=0,a=e.length;i<a;i++)for(var r=0,s=t.length;r<s;r++)n.push(o({},e[i],t[r]));return n},Z=function(e,t,n){for(var i=[],o=0,a=e.length;o<a;o++){var r=e[o],s=new Date(t);for(var l in r)d[l]&&d[l](s,r[l],n.wkst,n.freq,n.fdow);Array.isArray(s)?i=i.concat(s):i.push(new Date(s))}return i.length||i.push(t),i},Q=function(e,t,n,i){for(var o=[],a=i.count,r=0,l=J(t,e);r<a;){for(var u=Z(e,l,i),c=[],d=0;d<u.length;d++)u[d].getTime()>=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;d<c.length;d++)o.push(c[d]);var f=i.interval;"days"===Object.keys(f)[0]&&(f={weeks:1}),l=s.addInterval(l,f)}return o},J=function(e,t){var n=new Date(e);return t.length&&t[0].byday?n.setDate(n.getDate()-n.getDay()+t[0].byday):n.setDate(1),n},ee=function(e,t,n){for(var i=!1,o=0;o<t.length;o++){var a=t[o],r=!0;for(var s in a){var l="bymonthday"===s&&a[s]<0;p[s]&&!l&&a[s]!==p[s](e,n)&&(r=!1)}i=i||r}return i||!t.length},te=function(e){if(e&&e.freq){var t="";for(var n in e){var i=e[n];"interval"===n&&i<2||("until"===n&&(i=q(i)),t+=n+"="+i+";")}return t=t.substring(0,t.length-1),t.toUpperCase()}},ne={getRecurrenceString:te,getRecurrenceRule:O,getAsciiStringByDate:q,getDatesByRecurrence:k,dateInRecurrenceRange:y,getDateByAsciiString:W,daysFromByDayRule:j,getTimeZoneOffset:v};e.exports=ne},function(e,t,n){function i(){this.reset()}function o(e,t){return e!==t?d({},e,t):d({},e)}function a(e,t){return e!==t?e.concat(t):e.slice()}function r(e){e._totalChangesOrder=e._optionChangesOrder.concat(e._layoutChangesOrder,e._customChangesOrder)}function s(e){var t=this.prototype,n=e.code;t["_change_"+n]=e.handler,e.isThemeDependent&&t._themeDependentChanges.push(n),e.option&&(t._optionChangesMap[e.option]=n),(e.isOptionChange?t._optionChangesOrder:t._customChangesOrder).push(n),r(t)}function l(){var e=function e(){var t,n,i=e._chain.length;for(t=0;t<i;++t)n=e._chain[t].apply(this,arguments);return n};return e._chain=[],e.add=function(t){e._chain.push(t)},e.copy=function(t){e._chain=t._chain.slice()},e}function u(e,t,n){var i=e[t];i?i.add?(Object.prototype.hasOwnProperty.call(e,t)===!1&&(i=l(),i.copy(e[t])),i.add(n)):(i=l(),i.add(e[t]),i.add(n)):i=n,e[t]=i}function c(e){var t=this.prototype;t._plugins.push(e),e.fontFields&&t._fontFields.push.apply(t._fontFields,e.fontFields),e.members&&d(this.prototype,e.members),e.customize&&e.customize(this),e.extenders&&Object.keys(e.extenders).forEach(function(n){var i=e.extenders[n];u(t,n,i)},this)}var d=n(0).extend,h=n(7),p=n(4).noop,f=!h.hasWindow();i.prototype={constructor:i,add:function(e){var t,n=e.length,i=this._flags;for(t=0;t<n;++t)i[e[t]]=1;this._k+=n},has:function(e){return this._flags[e]>0},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;l<s.length;l++){var u=s[l],c=void 0;if(c=t?u.getCenterCoord()[a[1]]===e?u[r]:void 0:u[a]===e?u[r]:void 0,this.checkAxisVisibleAreaCoord(!t,c)){n=c;break}}return n}}),t.polar.bar=u({},l,d,{_animatePoints:function(e,t,n){n(this._drawnPoints,t)},_setGroupsSettings:s._setGroupsSettings,_drawPoint:function(e,t,n){s._drawPoint.call(this,e,t,n)},_parsePointStyle:function(e){var t=d._parsePointStyle.apply(this,arguments);return t.opacity=e.opacity,t},_createGroups:s._createGroups,_setMarkerGroupSettings:function(){var e,t=this,n=t._createPointStyles(t._getMarkerGroupOptions()).normal;n.class="dxc-markers",t._applyMarkerClipRect(n),e=u({},n),delete e.opacity,t._markersGroup.attr(e)},_createLegendState:r._createLegendState})},function(e,t,n){var i,o=n(4).noop,a=n(86),r=a.postCtor,s={_dataSourceLoadErrorHandler:function(){this._dataSourceChangedHandler()},_dataSourceOptions:function(){return{paginate:!1}},_updateDataSource:function(){this._refreshDataSource(),this.option("dataSource")||this._dataSourceChangedHandler()},_dataIsLoaded:function(){return!this._dataSource||this._dataSource.isLoaded()},_dataSourceItems:function(){return this._dataSource&&this._dataSource.items()}};for(i in a)"postCtor"!==i&&(s[i]=a[i]);t.plugin={name:"data_source",init:function(){r.call(this)},dispose:o,members:s}},function(e,t,n){function i(e,t){var n,i,o,a=e.length;for(n=0;n<a;++n)if(i=e[n]!==e[n],o=t[n]!==t[n],!(i&&o||e[n]===t[n]))return!1;return!0}var o=Number,a=n(10).getAppropriateFormat,r=n(0).extend,s=n(412),l=r,u=n(97),c=n(796),d=n(797),h=u.inherit({_rootClassPrefix:"dxg",_themeSection:"gauge",_createThemeManager:function(){return new c.ThemeManager(this._getThemeManagerOptions())},_initCore:function(){var e=this,t=e._renderer.root;e._valueChangingLocker=0,e._translator=e._factory.createTranslator(),e._tracker=e._factory.createTracker({renderer:e._renderer,container:t}),e._setTrackerCallbacks()},_beginValueChanging:function(){this._resetIsReady(),this._onBeginUpdate(),++this._valueChangingLocker},_endValueChanging:function(){0===--this._valueChangingLocker&&this._drawn()},_setTrackerCallbacks:function(){var e=this,t=e._renderer,n=e._tooltip;e._tracker.setCallbacks({"tooltip-show":function(e,i){var o=e.getTooltipParameters(),a=t.getRootOffset(),r=l({value:o.value,valueText:n.formatValue(o.value),color:o.color},i);return n.show(r,{x:o.x+a.left,y:o.y+a.top,offset:o.offset},{target:i})},"tooltip-hide":function(){return n.hide()}})},_dispose:function(){this._cleanCore(),this.callBase.apply(this,arguments)},_disposeCore:function(){var e=this;e._themeManager.dispose(),e._tracker.dispose(),e._translator=e._tracker=null},_cleanCore:function(){var e=this;e._tracker.deactivate(),e._cleanContent()},_renderCore:function(){var e=this;e._isValidDomain&&(e._renderContent(),e._tracker.setTooltipState(e._tooltip.isEnabled()),e._tracker.activate(),e._noAnimation=!1)},_applyChanges:function(){this.callBase.apply(this,arguments),this._resizing=this._noAnimation=!1},_setContentSize:function(){var e=this;e._resizing=e._noAnimation=2===e._changes.count(),e.callBase.apply(e,arguments)},_applySize:function(e){var t=this;t._innerRect={left:e[0],top:e[1],right:e[2],bottom:e[3]};var n=t._layout._cache;return t._cleanCore(),t._renderCore(),t._layout._cache=t._layout._cache||n,[e[0],t._innerRect.top,e[2],t._innerRect.bottom]},_initialChanges:["DOMAIN"],_themeDependentChanges:["DOMAIN"],_optionChangesMap:{subtitle:"MOSTLY_TOTAL",indicator:"MOSTLY_TOTAL",geometry:"MOSTLY_TOTAL",animation:"MOSTLY_TOTAL",startValue:"DOMAIN",endValue:"DOMAIN"},_optionChangesOrder:["DOMAIN","MOSTLY_TOTAL"],_change_DOMAIN:function(){this._setupDomain()},_change_MOSTLY_TOTAL:function(){this._applyMostlyTotalChange()},_setupDomain:function(){var e=this;e._setupDomainCore(),e._isValidDomain=isFinite(1/(e._translator.getDomain()[1]-e._translator.getDomain()[0])),e._isValidDomain||e._incidentOccurred("W2301"),e._change(["MOSTLY_TOTAL"])},_applyMostlyTotalChange:function(){var e=this;e._setupCodomain(),e._setupAnimationSettings(),e._setupDefaultFormat(),e._change(["LAYOUT"])},_setupAnimationSettings:function(){var e=this,t=e.option("animation");e._animationSettings=null,(void 0===t||t)&&(t=l({enabled:!0,duration:1e3,easing:"easeOutCubic"},t),t.enabled&&t.duration>0&&(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(63).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;n<a;++n)t.push(i[n].proxy),o(i[n],t)}function a(e,t){for(var n=t-e.value;e;)e.value+=n,e=e.parent}function r(e,t){var n=e.ctx.calculateLabelState(t);return"visible"in t&&(n.visible=!!t.visible),n}var s=n(73).prototype,l=n(170).prototype,u=n(0).extend;s._eventsMap.onNodesInitialized={name:"nodesInitialized"},s._eventsMap.onNodesRendering={name:"nodesRendering"},s._createProxyType=function(){function e(e){var t=this;e.proxy=t,t._id=e._id,t.level=e.level,t.index=e.index,t.data=e.data}var t,n=this;e.prototype={constructor:e,getParent:function(){return t[this._id].parent.proxy||null},getChild:function(e){var n=t[this._id].nodes;return n?n[e].proxy:null},getChildrenCount:function(){var e=t[this._id].nodes;return e?e.length:0},getAllChildren:function(){var e,n=t[this._id].nodes,i=n&&n.length,o=[];for(e=0;e<i;++e)o.push(n[e].proxy);return o},getAllNodes:function(){var e=[];return o(t[this._id],e),e},isLeaf:function(){return!t[this._id].isNode()},isActive:function(){return t[this._id].isActive()},value:function(e){var n,o=t[this._id];return void 0!==e?(a(o,e>0?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(11),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(75),a="dx-swatch-",r=function(e){var t=i(e),n=t.closest('[class^="'+a+'"], [class*=" '+a+'"]'),r=o.value();if(!n.length)return r;var s=new RegExp("(\\s|^)("+a+".*?)(\\s|$)"),l=n[0].className.match(s)[2],u=r.children("."+l);return u.length||(u=i("<div>").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(35),c=n(40),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+1<this.array.length&&(this.index++,!0)},current:function(){return this.array[this.index]},reset:function(){this.index=-1},toArray:function(){return this.array.slice(0)},countable:function(){return!0},count:function(){return this.array.length}}),p=d.inherit({ctor:function(e){this.iter=e},next:function(){return this.iter.next()},current:function(){return this.iter.current()},reset:function(){return this.iter.reset()}}),f=p.inherit({ctor:function(e,t){this.callBase(e),this.index=-1,this.mapper=t},current:function(){return this.mapper(this.callBase(),this.index)},next:function(){var e=this.callBase();return e&&this.index++,e}}),g=function(e,t){return e=s(e),t=s(t),null===e&&null!==t?-1:null!==e&&null===t?1:void 0===e&&void 0!==t?1:void 0!==e&&void 0===t?-1:e<t?-1:e>t?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;o<a;o++){var r=this.rules[o],s=r.getter(e),l=r.getter(t),u=r.compare||g,c=u(s,l);if(c)return r.desc?-c:c}return n-i}}),m=function(){function e(e,n,i){return function(o){o=s(e(o));var a=t(n)?o===n:o==n;return i&&(a=!a),a}}function t(e){return""===e||0===e||e===!1}function n(e){var t=e[0],n=m(e[1]);if("!"===t)return function(e){return!n(e)};throw u.errors.Error("E4003",t)}var i=function(e){var t=[],n=!1,i=!1;return a.each(e,function(){if(Array.isArray(this)||o.isFunction(this)){if(t.length>1&&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<t.length;o++)if(t[o](e)!==n){i=!n;break}return i}},l=function(e){return o.isDefined(e)?e.toString():"";
22},d=function(t){t=c.normalizeBinaryCriterion(t);var n=r(t[0]),i=t[1],o=t[2];switch(o=s(o),i.toLowerCase()){case"=":return e(n,o);case"<>":return e(n,o,!0);case">":return function(e){return s(n(e))>o};case"<":return function(e){return s(n(e))<o};case">=":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);return!(t.length<i.length)&&t.lastIndexOf(o)===t.length-o.length};case"contains":return function(e){return s(l(n(e))).indexOf(o)>-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]}}))}}}),x=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()}}),b=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<this.skip&&this.iter.next();)this.pos++;return this.pos++,this.iter.next()},reset:function(){this.callBase(),this.pos=0},countable:function(){return this.iter.countable()},count:function(){return Math.min(this.iter.count()-this.skip,this.take)}}),w=function e(t,n){n=n||{},t instanceof d||(t=new h(t));var i=function(e){var t=n.errorHandler;t&&t(e),u._errorHandler(e)},a=function(e){var n,o=(new l).fail(i),a=e.step,r=e.finalize;try{t.reset(),n="seed"in e?e.seed:t.next()?t.current():NaN;for(var s=n;t.next();)s=a(s,t.current());o.resolve(r?r(s):s)}catch(e){o.reject(e)}return o.promise()},s=function(e,t,n){return a(arguments.length<2?{step:arguments[0]}:{seed:e,step:t,finalize:n})},p=function(e){return a(c.aggregators[e])},f=function(e){return o.isFunction(e)||Array.isArray(e)||(e=[].slice.call(arguments)),m(new x(t,e))},g=function(e){return f(r(e))},m=function(t){return e(t,n)};return{toArray:function(){return t.toArray()},enumerate:function(){var e=(new l).fail(i);try{e.resolve(t.toArray())}catch(t){e.reject(t)}return e.promise()},sortBy:function(e,n,i){return m(new _(t,e,n,i))},thenBy:function(e,n,i){if(t instanceof _)return m(t.thenBy(e,n,i));throw u.errors.Error("E4004")},filter:function(e){return Array.isArray(e)||(e=[].slice.call(arguments)),m(new v(t,e))},slice:function(e,n){return void 0===n&&(n=Number.MAX_VALUE),m(new b(t,e,n))},select:f,groupBy:function(e){return m(new y(t,e))},aggregate:s,count:function(){if(t.countable()){var e=(new l).fail(i);try{e.resolve(t.count())}catch(t){e.reject(t)}return e.promise()}return p("count")},sum:function(e){return e?g(e).sum():p("sum")},min:function(e){return e?g(e).min():p("min")},max:function(e){return e?g(e).max():p("max")},avg:function(e){return e?g(e).avg():p("avg")}}};e.exports=w},function(e,t,n){var i=n(2),o=n(15),a=n(3).each,r=n(127),s="dx-state-invisible",l="dx-state-disabled",u="dx-item-content-placeholder",c=function(e,t,n){var i=function(){var e;return function(t){e!==t&&(n(t,e),e=t)}}();return{dispose:e(t,i),force:function(){i(t())}}},d=o.inherit({ctor:function(e,t,n){this._$element=e,this._options=t,this._rawData=n,r.attachInstanceToElement(e,this,this._dispose),this._render()},_render:function(){var e=i("<div>").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)},_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(11),r=n(15),s=n(67),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._lastClickTimeStamp<p?(u.fireEvent({type:c,target:o.closestCommonParent(this._firstClickTarget,e.target),originalEvent:e}),this._forgetLastClick()):(this._firstClickTarget=e.target,this._lastClickTimeStamp=t)},remove:function(){this._handlerCount--,this._handlerCount<=0&&(this._forgetLastClick(),i.off(a.getDocument(),h))}});s(c,new f),t.name=c},function(e,t,n){var i=n(1),o=n(3),a=n(28),r=n(0).extend,s=n(181),l=n(100),u=l.serializePropName,c=n(35).errors,d=n(40),h=i.isFunction,p=2,f=function(){var e,t,n,s=function(e){return function(t,n){return t+" "+e+" "+n}},h=function(e,n){return function(i,o){var a=[e,"("];return t&&(i=i.indexOf("tolower(")===-1?"tolower("+i+")":i,o=o.toLowerCase()),n?a.push(o,",",i):a.push(i,",",o),a.push(")"),a.join("")}},p={"=":s("eq"),"<>":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<e.length;n++)if("select"===e[n].name){t=n;break}if(!(t<0)&&h(e[t].args[0])){var i=e[1+t];i&&"slice"===i.name&&(e[1+t]=e[t],e[t]=i)}}var n,i,o,a,s=[],c=[],d=e.expand,g=e.version||p,_=function(){return i||void 0!==o},m=function e(t){for(var n=0;n<t.length;n++){if(h(t[n]))return!0;if(Array.isArray(t[n])&&e(t[n]))return!0}return!1},v=function(){var t={};if(a||(s.length&&(t.$orderby=s.join(",")),i&&(t.$skip=i),void 0!==o&&(t.$top=o),t.$select=l.generateSelect(g,n)||void 0,t.$expand=l.generateExpand(g,d,n)||void 0),c.length){var r=c.length<2?c[0]:c,u=e&&e.fieldTypes,h=e&&e.filterToLower;t.$filter=f(r,g,u,h)}return a&&(t.$top=0),(e.requireTotalCount||a)&&(4!==g?t.$inlinecount="allpages":t.$count="true"),t};return{optimize:function(e){t(e)},exec:function(t){return l.sendRequest(g,{url:t,params:r(v(),e&&e.params)},{beforeSend:e.beforeSend,jsonp:e.jsonp,withCredentials:e.withCredentials,countOnly:a,deserializeDates:e.deserializeDates,fieldTypes:e.fieldTypes,isPaged:isFinite(o)})},multiSort:function(e){var t;if(_())return!1;for(var n=0;n<e.length;n++){var i,o=e[n][0],a=!!e[n][1];if("string"!=typeof o)return!1;i=u(o),a&&(i+=" desc"),t=t||[],t.push(i)}s=t},slice:function(e,t){return!_()&&(i=e,void(o=t))},filter:function(e){return!_()&&(Array.isArray(e)||(e=[].slice.call(arguments)),!m(e)&&(c.length&&c.push("and"),void c.push(e)))},select:function(e){return!n&&!h(e)&&(Array.isArray(e)||(e=[].slice.call(arguments)),void(n=e))},count:function(){a=!0}}};s.odata=g,t.odata=g},function(e,t,n){e.exports="19.1.5"},function(e,t,n){var i=n(2),o=n(5),a=n(16),r=n(83),s=n(70),l=n(12),u=n(47),c=u.add,d=n(29),h=n(4).noop,p=n(1).isDefined,f=n(8),g=n(114),_=d.sign,m=Math.abs,v=0,y=1,x=2,b=10,w=0,C=180,k=function(){return r.styleProp("pointer-events")},S=s(function(){var e="dx-gesture-cover",t="generic"===a.real().platform;if(!k()||!t)return h;var n=i("<div>").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!==x},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=x,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===x&&(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:b},_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){var t=this._stage===x;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===x?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=b,T.touchBoundary=function(e){return p(e)?void(b=e):b},e.exports=T},function(e,t,n){var i=n(176),o=n(5),a=n(66),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){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=this._focusTarget&&this._focusTarget!==e.target&&(0,c.inArray)(e.target,this._focusTarget)<0,n=this._isComposingJustFinished&&229===e.which||this._isComposing||t;if(this._isComposingJustFinished=!1,n)return!1;var i={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},o=this._handler&&this._handler.call(this._context,i);o&&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(42),r=n(16),s=n(15),l=n(67),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){var i=n(2),o=n(286),a=n(5),r=n(43),s=n(9),l=n(4),u=n(12),c=n(64).focused,d=n(3).each,h=n(1).isDefined,p=n(0).extend,f=n(12).getPublicElement,g=n(17),_=n(76),m=n(98).getDefaultAlignment,v=n(499).default,y=n(14),x=n(8),b=n(92),w=n(19),C=n(85),k=n(46),S="dx-dropdowneditor",I="dx-dropdowneditor-input-wrapper",T="dx-dropdowneditor-icon",D="dx-dropdowneditor-overlay",E="dx-dropdowneditor-overlay-flipped",A="dx-dropdowneditor-active",O="dx-dropdowneditor-field-clickable",B="dx-dropdowneditor-field-template-wrapper",P=b.inherit({_supportedKeys:function(){var e=function(e){return!!this.option("opened")&&(e.preventDefault(),!0)};return p({},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&&a.trigger(t,"focus"),e.preventDefault()}},escape:function(e){this.option("opened")&&e.preventDefault(),this.close()},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},home:e,end:e})},_getDefaultButtons:function(){return this.callBase().concat([{name:"dropDown",Ctor:v}])},_getDefaultOptions:function(){return p(this.callBase(),{value:null,onOpened:null,onClosed:null,opened:!1,acceptCustomValue:!0,applyValueMode:"instantly",deferRendering:!0,activeStateEnabled:!0,dropDownButtonTemplate:"dropDownButton",fieldTemplate:null,contentTemplate:null,openOnFieldClick:!1,showDropDownButton:!0,buttons:void 0,dropDownOptions:{},popupPosition:this._getDefaultPopupPosition(),onPopupInitialized:null,applyButtonText:y.format("OK"),cancelButtonText:y.format("Cancel"),buttonsLocation:"default",showPopupTitle:!1,useHiddenSubmitElement:!1})},_getDefaultPopupPosition:function(){var e=m(this.option("rtlEnabled"));return{offset:{h:0,v:-1},my:e+" top",at:e+" 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("."+I)},_init:function(){this.callBase(),this._initVisibilityActions(),this._initPopupInitializedAction(),this._initInnerOptionCache("dropDownOptions")},_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(S),this.setAria("role","combobox")},_render:function(){this.callBase(),this._renderOpenHandler(),this._renderOpenedState()},_renderContentImpl:function(){this.option("deferRendering")||this._createPopup()},_renderInput:function(){this.callBase(),this.$element().wrapInner(i("<div>").addClass(I)),this._$container=this.$element().children().eq(0),this.setAria({haspopup:"true",autocomplete:"list"})},_readOnlyPropValue:function(){return!this.option("acceptCustomValue")||this.callBase()},_cleanFocusState:function(){this.callBase(),this.option("fieldTemplate")&&a.off(this._input(),"focusin focusout beforeactivate")},_getFieldTemplate:function(){return this.option("fieldTemplate")&&this._getTemplateByOption("fieldTemplate")},_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,o=c(this._input()),r=this._$container;this._disposeKeyboardProcessor();var s=this._$beforeButtonsContainer&&this._$beforeButtonsContainer[0].parentNode,l=this._$afterButtonsContainer&&this._$afterButtonsContainer[0].parentNode;s&&s.removeChild(this._$beforeButtonsContainer[0]),l&&l.removeChild(this._$afterButtonsContainer[0]),this._detachFocusEvents(),r.empty();var d=i("<div>").addClass(B).appendTo(r);e.render({model:t,container:u.getPublicElement(d),onRendered:function(){var e=n._input();if(!e.length)throw g.Error("E1010");n._refreshEvents(),n._refreshValueChangeEvent(),n._renderFocusState(),o&&a.trigger(e,"focus")}}),r.prepend(this._$beforeButtonsContainer),r.append(this._$afterButtonsContainer)},_fieldRenderData:function(){return this.option("value")},_initTemplates:function(){this.callBase(),this._defaultTemplates.dropDownButton=new C(function(e){var t=i("<div>").addClass(T);i(e.container).append(t)},this)},_renderOpenHandler:function(){var e=this,t=e._inputWrapper(),n=x.addNamespace(w.name,e.NAME),i=e.option("openOnFieldClick");a.off(t,n),a.on(t,n,e._getInputClickHandler(i)),e.$element().toggleClass(O,i),i&&(e._openOnFieldClickAction=e._createAction(e._openHandler.bind(e)))},_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")&&!c(this._input())&&a.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(A,e),this._setPopupOption("visible",e),this.setAria({expanded:e,owns:(e||void 0)&&this._popupContentId})},_createPopup:function(){this._$popup||(this._$popup=i("<div>").addClass(D).addClass(this.option("customOverlayCssClass")).appendTo(this.$element()),this._renderPopup(),this._renderPopupContent())},_renderPopup:function(){this._popup=this._createComponent(this._$popup,k,p(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._popupContentId="dx-"+new r,this.setAria("id",this._popupContentId,this._popup.$content()),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_contentReadyHandler:l.noop,_popupConfig:function(){return{onInitialized:this._popupInitializedHandler(),position:p(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}},_popupInitializedHandler:function(){if(this.option("onPopupInitialized"))return function(e){this._popupInitializedAction({popup:e.component})}.bind(this)},_popupPositionedHandler:function(e){e.position&&this._popup.overlayContent().toggleClass(E,e.position.v.flip)},_popupShowingHandler:l.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=_.setup(this.$element()).top,n=_.setup(this._popup.$content()).top;e=t+this.option("popupPosition").offset.v>n?"below":"above"}return this.callBase(e)},_renderPopupContent:function(){var e=this._getTemplateByOption("contentTemplate");if(e&&this.option("contentTemplate")){var t=this._popup.$content(),n={value:this._fieldRenderData(),component:this};t.empty(),e.render({container:u.getPublicElement(t),model:n})}},_closeOutsideDropDownHandler:function(e){var t=e.target,n=i(t),o=this.getButton("dropDown"),a=o&&o.$element(),r=!!n.closest(this.$element()).length,s=!!n.closest(a).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=i(e.currentTarget);(e.shiftKey&&t.is(this._getFirstPopupElement())||!e.shiftKey&&t.is(this._getLastPopupElement()))&&(a.trigger(this._input(),"focus"),e.preventDefault())},_popupElementEscHandler:function(){a.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=l.splitPair(t);d(n,function(e,t){p(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:l.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=i("<input>").attr("type","hidden").appendTo(this.$element()))},_setSubmitValue:function(){this._getSubmitElement().val(this.option("value"))},_getSubmitElement:function(){return this.option("useHiddenSubmitElement")?this._$submitElement: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":h(e.value)?this._renderField():this._invalidate();break;case"contentTemplate":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;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)},field:function(){return f(this._input())},content:function(){return this._popup?this._popup.content():null}}).include(o);s("dxDropDownEditor",P),e.exports=P},function(e,t,n){e.exports=n(518)},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(571),d=n(572),h=n(290),p=n(134),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<n;){var o=t.eq(-1);n-=o.outerWidth(),o.addClass(m),t.splice(-1,1)}}},_getMenuItems:function(){var e=this,t=r(this.option("items")||[],function(t){return e._isMenuItem(t)}),n=this._itemContainer().children("."+g+"."+m).not(".dx-state-invisible");this._restoreItems=this._restoreItems||[];var o=[].slice.call(n).map(function(t){var n=e._getItemData(t),o=i(t).children(),a=o.children();return s({menuItemTemplate:function(){e._restoreItems.push({container:o,item:a});var t=i("<div>").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},
23_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(326),e.exports.show=n(251).show,e.exports.hide=n(251).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,c,d,h=(""+n).split("/"),p=Number(h[h.length-1]);u=l[h.length-1],c=[s,">=",p],d=[s,"<",p+u];var f=[c,"and",d];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(11),s=i(r),l=n(7),u=n(5),c=i(u),d=n(37),h=i(d),p=n(19),f=i(p),g=n(154),_=i(g),m=n(26),v=i(m),y=n(4),x=n(83),b=i(x),w=n(12),C=n(1),k=i(C),S=n(3),I=i(S),T=n(0),D=n(98),E=n(16),A=i(E),O=n(39),B=i(O),P=n(36),M=n(335),R=i(M),V="scroll-container",F="group-space",L="content",H="table",z="table-fixed",N="content-fixed",$="dx-row",W="dx-group-row",G="dx-master-detail-row",j="filter-row",q="cell-updated-animation",K="0.0001px",U="dxCellHintVisible",Y="dx-field-item-content",X={render:function(e){e.container.append(e.content)}},Z=function(e,t,n){function i(e){return setTimeout(function(){o=r=null},e)}var o,r,s;c.default.on(t,"touchstart touchend",".dx-row",function(e){clearTimeout(s),"touchstart"===e.type?(o=e.target,r=e.currentTarget,s=i(1e3)):s=i()}),c.default.on(t,n.name,".dx-row",{useNative:e._isNativeClick()},e.createAction(function(t){var i=t.event;o&&(i.target=o,i.currentTarget=r),(0,a.default)(i.target).closest("a").length||(t.rowIndex=e.getRowIndex(i.currentTarget),t.rowIndex>=0&&(t.rowElement=(0,w.getPublicElement)((0,a.default)(i.currentTarget)),t.columns=e.getColumns(),"dxclick"===n.name?e._rowClick(t):e._rowDblClick(t)))}))},Q=function(e,t){Z(e,t,f.default)},J=function(e,t){Z(e,t,_.default)},ee=function(e){return"auto"===e?"":k.default.isNumeric(e)?e+"px":e},te=function(e,t,n){e.style.width=e.style.maxWidth="auto"===t.width?"":n},ne=function(e,t){if(e&&t){var n,i,o=e.attributes,a=t.attributes;for(i=0;i<o.length;i++)n=o[i].nodeName,t.hasAttribute(n)||e.removeAttribute(n);for(i=0;i<a.length;i++)e.setAttribute(a[i].nodeName,a[i].nodeValue)}};t.ColumnsView=B.default.View.inherit(R.default).inherit({_createScrollableOptions:function(){var e=this,t=e.option("scrolling"),n=e.option("scrolling.useNative"),i=(0,T.extend)({pushBackValue:0},t,{direction:"both",bounceEnabled:!1,useKeyboard:!1});return void 0===n&&(n=!0),"auto"===n?(delete i.useNative,delete i.useSimulatedScrollbar):(i.useNative=!!n,i.useSimulatedScrollbar=!n),i},_updateCell:function(e,t){t.rowType&&this._cellPrepared(e,t)},_createCell:function(e){var t=e.column,n=t.alignment||(0,D.getDefaultAlignment)(this.option("rtlEnabled")),i=s.default.createElement("td");i.style.textAlign=n;var o=(0,a.default)(i);return"data"===e.rowType&&t.headerId&&this.setAria("describedby",t.headerId,o),!k.default.isDefined(t.groupIndex)&&t.cssClass&&o.addClass(t.cssClass),"expand"===t.command&&(o.addClass(t.cssClass),o.addClass(this.addWidgetPrefix(F))),t.colspan>1?o.attr("colSpan",t.colspan):t.isBand||"auto"===t.visibleWidth||this.option("legacyRendering")||!this.option("columnAutoWidth")||((t.width||t.minWidth)&&(i.style.minWidth=ee(t.minWidth||t.width)),t.width&&te(i,t,ee(t.width))),o},_createRow:function(e){var t=(0,a.default)("<tr>").addClass($);return this.setAria("role","row",t),t},_createTable:function(e,t){var n=this,i=(0,a.default)("<table>").addClass(n.addWidgetPrefix(H)).addClass(n.addWidgetPrefix(z));if(e&&!t?(i.append(n._createColGroup(e)),A.default.real().ios&&i.append((0,a.default)("<thead>").append("<tr>")),n.setAria("role","presentation",i)):n.setAria("hidden",!0,i),this.setAria("role","presentation",(0,a.default)("<tbody>").appendTo(i)),t)return i;v.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,i=e.event,o=(0,a.default)(i.target),r=(0,a.default)(i.currentTarget),s=r.parent(),l=s.hasClass("dx-data-row"),u=s.hasClass("dx-header-row"),c=s.hasClass(W),d=s.hasClass(G),h=s.hasClass(n.addWidgetPrefix(j)),p=n._columnsController.getVisibleColumns(),f=s.data("options"),g=r.index(),_=f&&f.cells&&f.cells[g],m=_?_.column:p[g],y=v.default.msie?1:0;d||h||l&&(!l||!m||m.cellTemplate)||u&&(!u||!m||m.headerCellTemplate)||c&&(!c||!m||void 0!==m.groupIndex&&m.groupCellTemplate)||(o.data(U)&&(o.removeAttr("title"),o.data(U,!1)),t=o[0].scrollWidth-o[0].clientWidth-y,t>0&&!k.default.isDefined(o.attr("title"))&&(o.attr("title",o.text()),o.data(U,!0)))}));var o=function(e){var t,i,o=(0,a.default)(e.currentTarget),r=(0,a.default)(e.target).closest("."+Y),s=o.parent().data("options"),l=s&&s.cells&&s.cells[o.index()];if(o.closest("table").is(e.delegateTarget))return i=(0,T.extend)({},l,{cellElement:(0,w.getPublicElement)(o),event:e,eventType:e.type}),r.length&&(t=r.data("dx-form-item"),t.column&&(i.column=t.column,i.columnIndex=n._columnsController.getVisibleIndex(i.column.index))),i};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,f.default.name,".dx-row > td",function(e){var t=o(e);t&&n.executeAction("onCellClick",t)}),c.default.on(i,_.default.name,".dx-row > td",function(e){var t=o(e);t&&n.executeAction("onCellDblClick",t)}),Q(n,i),J(n,i),i},_isNativeClick:y.noop,_rowClick:y.noop,_rowDblClick:y.noop,_createColGroup:function(e){var t,n,i,o=(0,a.default)("<colgroup>");for(t=0;t<e.length;t++)for(i=e[t].colspan||1,n=0;n<i;n++)o.append(this._createCol(e[t]));return o},_createCol:function(e){var t=e.visibleWidth||e.width;"adaptiveHidden"===t&&(t=K);var n=(0,a.default)("<col>");return b.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,i=new Date;e.length;){n=e.shift();var o=n.options,r=o.model,l=s.default.getDocument();if(t&&!(0,a.default)(o.container).closest(l).length||(n.template.render(o),r&&r.column&&this._updateCell(o.container,r)),t&&new Date-i>30){this._renderDelayedTemplatesCoreAsync(e);break}}},_processTemplate:function(e){var t,n,i=this;return e&&e.render&&!k.default.isRenderer(e)?n={allowRenderToDetachedContainer:e.allowRenderToDetachedContainer,render:function(t){e.render(t.container,t.model)}}:k.default.isFunction(e)?n={render:function(t){var n=e((0,w.getPublicElement)(t.container),t.model);n&&(n.nodeType||k.default.isRenderer(n))&&t.container.append(n)}}:(t=k.default.isString(e)?e:(0,a.default)(e).attr("id"),t?(i._templatesCache[t]||(i._templatesCache[t]=i.getTemplate(e)),n=i._templatesCache[t]):n=i.getTemplate(e)),n},renderTemplate:function(e,t,n,i){var o,a=this,r=a._processTemplate(t,n),s=n.column,l="data"===n.rowType;if(r){if(n.component=a.component,o=s&&(s.renderAsync&&l||a.option("renderAsync")&&(s.renderAsync!==!1&&(s.command||s.showEditorAlways)&&l||"filter"===n.rowType)),(r.allowRenderToDetachedContainer||i)&&!o)return r.render({container:e,model:n}),!0;a._delayedTemplates.push({template:r,options:{container:e,model:n},async:o})}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)("<tbody>").addClass(t.attr("class"));return this.setAria("role","presentation",i),i.append(t)}return t},_appendRow:function(e,t,n){n=n||X,n.render({content:t,container:e})},_resizeCore:function(){var e=this,t=e._scrollLeft;t>=0&&(e._scrollLeft=0,e.scrollTo({left:t}))},_renderCore:function(e){var t=this.element().parent();t&&!t.parent().length||this.renderDelayedTemplates(e)},_renderTable:function(e){e=e||{};var t,n=this;e.columns=n._columnsController.getVisibleColumns();var i=e.change&&e.change.changeType;return t=n._createTable(e.columns,"append"===i||"prepend"===i||"update"===i),n._renderRows(t,e),t},_renderRows:function(e,t){var n,i=this,o=i._getRows(t.change),a=t.change&&t.change.columnIndices||[];for(n=0;n<o.length;n++)i._renderRow(e,(0,T.extend)({row:o[n],columnIndices:a[n]},t))},_renderRow:function(e,t){var n,i,o=this;t.columnIndices||(t.row.cells=[]),n=o._createRow(t.row),i=o._wrapRowIfNeed(e,n),o._renderCells(n,t),o._appendRow(e,i);var a=(0,T.extend)({columns:t.columns},t.row);o._addWatchMethod(a,t.row),o._rowPrepared(i,a)},_renderCells:function(e,t){var n,i=this,o=0,a=t.row,r=t.columns;for(n=0;n<r.length;n++)(!t.columnIndices||t.columnIndices.indexOf(n)>=0)&&i._renderCell(e,(0,T.extend)({column:r[n],columnIndex:o,value:a.values&&a.values[o],oldValue:a.oldValues&&a.oldValues[o]},t)),r[n].colspan>1?o+=r[n].colspan:o++},_updateCells:function(e,t,n){var i=e.children(),o=t.children(),a=this.option("highlightChanges"),r=this.addWidgetPrefix(q);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)}),ne(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,i=this,o=i._getCellOptions(t);return t.columnIndices?t.row.cells&&(t.row.cells[o.columnIndex]=o):t.row.cells.push(o),n=i._createCell(o),i._setCellAriaAttributes(n,o),i._renderCellContent(n,o),e.get(0).appendChild(n.get(0)),n},_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,w.getPublicElement)((0,a.default)(e)),this.executeAction("onCellPrepared",t)},_rowPrepared:function(e,t){h.default.data(e.get(0),"options",t),t.rowElement=(0,w.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=I.default.map(n,function(e){var t=e.visibleWidth||e.width;return k.default.isDefined(t)?t:"auto"});return void this.setColumnWidths(i)}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:y.noop,_handleDataChanged:function(){},callbackNames:function(){return["scrollChanged"]},scrollTo:function(e){var t=this,n=t.element(),i=n&&n.children("."+t.addWidgetPrefix(V)).not("."+t.addWidgetPrefix(N));t._skipScrollChanged=!1,k.default.isDefined(e)&&k.default.isDefined(e.left)&&t._scrollLeft!==e.left&&(t._scrollLeft=e.left,i&&i.scrollLeft(Math.round(e.left)),t._skipScrollChanged=!0)},_wrapTableInScrollContainer:function(e){var t,n=this;return t=(0,a.default)("<div>"),c.default.on(t,"scroll",function(){!n._skipScrollChanged&&n.scrollChanged.fire({left:t.scrollLeft()},n.name),n._skipScrollChanged=!1}),t.addClass(n.addWidgetPrefix(L)).addClass(n.addWidgetPrefix(V)).append(e).appendTo(n.element()),n.setAria("role","presentation",t),t},_updateContent:function(e){this._setTableElement(e),this._wrapTableInScrollContainer(e)},_findContentElement:y.noop,_getWidths:function(e){var t,n,i=[],o=this.option("legacyRendering");return e&&I.default.each(e,function(e,a){t=a.offsetWidth,a.getBoundingClientRect&&(n=a.getBoundingClientRect(),n.width>t-1&&(t=o?Math.ceil(n.width):n.width)),i.push(t)}),i},getColumnWidths:function(e){var t,n,i=this,o=[];if((this.option("forceApplyBindings")||y.noop)(),e=e||i._getTableElement()){t=e.children("tbody").children();for(var a=0;a<t.length;a++){var r=t.eq(a),s="none"!==r.get(0).style.display&&!r.hasClass("dx-state-invisible");if(!r.is("."+W)&&!r.is("."+G)&&s){n=r.children("td");break}}o=i._getWidths(n)}return o},getVisibleColumnIndex:function(e,t){return e},setColumnWidths:function(e,t,n,i){var o,a,r,s,l,u=this.option("columnAutoWidth"),c=this.option("legacyRendering");if(t=t||this._getTableElement(),t&&t.length&&e)for(l=0,o=t.children("colgroup").children("col"),b.default.setWidth(o,"auto"),n=n||this.getColumns(null,t),a=0;a<n.length;a++){if(!c&&u&&!i&&(r=n[a].width,r&&!n[a].command)){r=n[a].visibleWidth||r,r=ee(r),s=ee(n[a].minWidth||r);for(var d=d||t.children().children(".dx-row").not("."+W).not("."+G),h=0;h<d.length;h++){var p=this.getVisibleColumnIndex(a,h),f=d[h].cells[p];f&&(te(f,n[a],r),f.style.minWidth=s)}}n[a].colspan?l+=n[a].colspan:(r=e[l],"adaptiveHidden"===r&&(r=K),"number"==typeof r&&(r=r.toFixed(3)+"px"),b.default.setWidth(o.eq(l),k.default.isDefined(r)?r:"auto"),l++)}},getCellElements:function(e){return this._getCellElementsCore(e)},_getCellElementsCore:function(e){var t=this._getRowElements().eq(e);return t.children()},_getCellElement:function(e,t){var n,i=this,o=i.getCellElements(e),a=i._getVisibleColumnIndex(o,e,t);if(o.length&&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(I.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,w.getPublicElement)(this._getCellElement(e,t))},getRowElement:function(e){var t=this._getRowElement(e),n=[];if(t&&!(0,w.getPublicElement)(t).get)for(var i=0;i<t.length;i++)n.push(t[i]);else n=t;return n},_getVisibleColumnIndex:function(e,t,n){var i;return k.default.isString(n)?(i=this._columnsController.columnOption(n,"index"),this._columnsController.getVisibleIndex(i)):n},getColumnElements:function(){},getColumns:function(e){return this._columnsController.getVisibleColumns(e)},getCell:function(e,t){var n,i=t||this._getRowElements();if(i.length>0&&e.rowIndex>=0&&("virtual"!==this.option("scrolling.mode")&&(e.rowIndex=e.rowIndex<i.length?e.rowIndex:i.length-1),n=this.getCellElements(e.rowIndex),n&&n.length>0))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?V||P:(e=(0,C.normalizeEnum)(e),void(V=e in R?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=b(e,t.themeDefault);var n,i=t.type;return A(e)?e.slice(0):(O(e)&&(n=R[(0,C.normalizeEnum)(e)]),n||(n=R[a()]),i?n[i].slice(0):n)}function l(e,t){var n,i={};A(t)?i.simpleSet=t.slice(0):t&&(i.simpleSet=A(t.simpleSet)?t.simpleSet.slice(0):void 0,i.indicatingSet=A(t.indicatingSet)?t.indicatingSet.slice(0):void 0,i.gradientSet=A(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,C.normalizeEnum)(e),(0,k.extend)(R[n]=R[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?B: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;i<e;i++)n.push(this.getColor(i));return n},reset:function(){o.reset(),n()}}}function h(e,t){function n(e,t,n){var i=new E(e).hsl,o=i.l/100,a=n-1/n,r=o-.5*a,s=o+.5*a,l=(n-1)/2,u=t-l;return r<Math.min(.5,.9*o)&&(r=Math.min(.5,.9*o)),s>Math.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,E.prototype.fromHSL(i).toHex()}return{getColor:function(t,i){var o=e.length,a=T((i-1)/o+1),r=e[t%o];return a>1?n(r,T(t/o),a):r},generateColors:function(e){var n=[];e=e||t.count;for(var i=0;i<e;i++)n.push(this.getColor(i,e));return n},reset:function(){}}}function p(e,t){function n(e,t,n,i){for(var o,a,r=Math.floor(e/t),s=e-t*r,l=n;l<n+e;)a=r,s>0&&(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<t;n++){var o=e[n];if(!o){var a=e[n-1];if(!a)continue;var r=i(e,n,t),s=new E(r[0]);a=new E(a);for(var l=0;l<r[1];l++,n++)e[n]=a.blend(s,(l+1)/(r[1]+1)).toHex()}}return e}function a(i){if(i<=r)return e;var a=[],s=r-2,l=0,u=[];u=t.keepLastColorInEnd?n(i-2,s,1,[0,i-1]):n(i-1,r-1,1,[0]);for(var c=0;c<i;c++)u.indexOf(c)>-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;o<e-r;o++)i.push(i[o]);return i}return r>0?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;n<o;++n)i.push(_(e[n],t));return i}function _(e,t){var n=new E(e).alter(t),i=m(n);return(i>200||i<55)&&(n=new E(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=T(t),i=D(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 E(e[i]));if(o>0)for(i=0;i<=o;++i)n(i/o);else n(.5);return s}function x(e,t){var n=s(e,{type:"gradientSet",themeDefault:t}),i=new E(n[0]),o=new E(n[1]);return{getColor:function(e){return 0<=e&&e<=1?i.blend(o,e).toHex():null}}}function b(e,t){var n=e||(void 0===V?t:a());return"default"===n&&I.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=x;var C=n(10),k=n(0),S=n(21),I=i(S),T=Math.floor,D=Math.ceil,E=n(90),A=Array.isArray,O=n(1).isString,B=50,P="material",M={simpleSet:["#5f8b95","#ba4d51","#af8a53","#955f71","#859666","#7e688c"],indicatingSet:["#a3b97c","#e1b676","#ec7f83"],gradientSet:["#5f8b95","#ba4d51"],accentColor:"#ba4d51"},R=(w={},o(w,P,{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),V=void 0},function(e,t,n){function i(e){0===ct().backupCounter&&Ce.getBody().appendChild(ct().backupContainer),++ct().backupCounter,e.append({element:ct().backupContainer})}function o(e,t){e.append({element:t}),--ct().backupCounter,0===ct().backupCounter&&Ce.getBody().removeChild(ct().backupContainer)}function a(e){return e&&"string"!=typeof e}function r(e){return Ce.createElementNS("http://www.w3.org/2000/svg",e)}function s(e,t){return null!==e?"url("+(t?Ie.location.href.split("#")[0]:"")+"#"+e+")":e}function l(e,t){var n;for(n in t)e[n]=t[n];return e}function u(e,t){return e=e.toString().split("e"),e=Re(+(e[0]+"e"+(e[1]?+e[1]+t:t))),e=e.toString().split("e"),+(e[0]+"e"+(e[1]?+e[1]-t:-t))}function c(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t||{left:0,top:0}}function d(e,t,n,i,o,a){var r,s=!0,l=u(a,3)-u(o,3);return l&&(Le(l)%360===0&&(o=0,a=360,r=!0,a-=.01),o>360&&(o%=360),a>360&&(a%=360),o>a&&(o-=360),s=!1),o*=je,a*=je,[e,t,Be(i,n),Pe(i,n),Fe(o),Ve(o),Fe(a),Ve(a),r,Me(Le(a-o)/He)%2?"1":"0",s]}function h(e,t){var n=[["M",0,0]];switch(t){case"line":n=p(e);break;case"area":n=p(e,!0);break;case"bezier":n=f(e);break;case"bezierarea":n=f(e,!0)}return n}function p(e,t){return g(e,_,t)}function f(e,t){return g(e,m,t)}function g(e,t,n){var i,o,a=[];if(e[0]&&e[0].length)for(i=0,o=e.length;i<o;++i)t(e[i],n,a);else t(e,n,a);return a}function _(e,t,n){var i=0,o=n.length,a=o,r=(e||[]).length;if(r){if(void 0!==e[0].x)for(;i<r;)n[a++]=["L",e[i].x,e[i++].y];else for(;i<r;)n[a++]=["L",e[i++],e[i++]];n[o][0]="M"}else n[a]=["M",0,0];return t&&n.push(["Z"]),n}function m(e,t,n){var i,o=n.length,a=(e||[]).length;if(a)if(void 0!==e[0].x)for(n[o++]=["M",e[0].x,e[0].y],i=1;i<a;)n[o++]=["C",e[i].x,e[i++].y,e[i].x,e[i++].y,e[i].x,e[i++].y];else for(n[o++]=["M",e[0],e[1]],i=2;i<a;)n[o++]=["C",e[i++],e[i++],e[i++],e[i++],e[i++],e[i++]];else n[o]=["M",0,0];return t&&n.push(["Z"]),n}function v(e){var t,n,i,o,a=[],r=0,s=e.length;for(t=0;t<s;++t)for(n=e[t],i=0,o=n.length;i<o;++i)a[r++]=n[i];return a.join(" ")}function y(e,t,n){var i,o,a=e.length,r=t.length,s=n.indexOf("area")!==-1?w:b;if(0===a)for(i=0;i<r;i++)e.push(t[i].slice(0));else a<r?s(e,t,n):a>r&&(o=t.slice(0),s(t,e,n));return o}function x(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 b(e,t,n){var i=e[e.length-1].slice(),o=e.length;for(x(i,n);o<t.length;o++)e[o]=i.slice(0)}function w(e,t,n){var i,o,a,r,s=e.length,l=t.length;if((s-1)%2===0&&(l-1)%2===0){i=(s-1)/2-1,o=e.slice(0,i+1),a=o[o.length-1].slice(0),r=e.slice(i+1)[0].slice(0),x(a,n),x(r,n);for(var u=i;u<(l-1)/2-1;u++)e.splice(u+1,0,a),e.splice(u+3,0,r)}}function C(e,t){var n,i,o=e._styles,a="";t=t||{};for(n in t)i=t[n],ze(i)&&(i+="number"!=typeof i||Xe[n]?"":"px",o[n]=""!==i?i:null);for(n in o)i=o[n],i&&(a+=n+":"+i+";");return a&&e.element.setAttribute("style",a),e}function k(e,t){var n=e.element,i=e.attr(t);i&&i.indexOf("DevExpress")!==-1&&(n.removeAttribute(t),n.setAttribute(t,s(i,e.renderer.pathModified)))}function S(e,t){t=t||{};var n,i,o,r,u,c,d=e._settings,h={},p=e.element,f=e.renderer,g=f.rtl;if(!a(t))return t in d?d[t]:t in ut?ut[t]:0;l(h,t);for(n in h)if(i=h[n],void 0!==i){if(d[n]=i,"align"===n)n="text-anchor",i={left:g?"end":"start",center:"middle",right:g?"start":"end"}[i]||null;else{if("dashStyle"===n){r=!0;continue}if(n===Je)r=!0;else if(!i||"fill"!==n&&"clip-path"!==n&&"filter"!==n||i.indexOf("DevExpress")===-1){if(/^(translate(X|Y)|rotate[XY]?|scale(X|Y)|sharp|sharpDirection)$/i.test(n)){o=!0;continue}/^(x|y|d)$/i.test(n)&&(o=!0)}else e._addFixIRICallback(),i=s(i,f.pathModified)}null===i?p.removeAttribute(n):p.setAttribute(n,i)}if(r&&"dashStyle"in d)if(i=d.dashStyle,u=("_originalSW"in e?e._originalSW:d[Je])||1,n="stroke-dasharray",i=null===i?"":$e(i),""===i||"solid"===i||i===at)e.element.removeAttribute(n);else{for(i=i.replace(/longdash/g,"8,3,").replace(/dash/g,"4,3,").replace(/dot/g,"1,3,").replace(/,$/,"").split(","),c=i.length;c--;)i[c]=qe(i[c])*u;e.element.setAttribute(n,i.join(","))}return o&&e._applyTransformation(),e}function I(e){var t,n=this;return a(e)&&(e=l({},e),t=e.segments,"points"in e&&(t=h(e.points,n.type),delete e.points),t&&(e.d=v(t),
24n.segments=t,delete e.segments)),S(n,e)}function T(e){var t,n,i,o,r,s,u=this._settings;return a(e)&&(e=l({},e),("x"in e||"y"in e||"innerRadius"in e||"outerRadius"in e||"startAngle"in e||"endAngle"in e)&&(u.x=t="x"in e?e.x:u.x,delete e.x,u.y=n="y"in e?e.y:u.y,delete e.y,u.innerRadius=i="innerRadius"in e?e.innerRadius:u.innerRadius,delete e.innerRadius,u.outerRadius=o="outerRadius"in e?e.outerRadius:u.outerRadius,delete e.outerRadius,u.startAngle=r="startAngle"in e?e.startAngle:u.startAngle,delete e.startAngle,u.endAngle=s="endAngle"in e?e.endAngle:u.endAngle,delete e.endAngle,e.d=pt.apply(null,d(t,n,i,o,r,s)))),S(this,e)}function D(e){var t,n,i,o,r,s,u,c=this;return a(e)&&(e=l({},e),void 0===e.x&&void 0===e.y&&void 0===e.width&&void 0===e.height&&void 0===e[Je]||(t=void 0!==e.x?c._originalX=e.x:c._originalX||0,n=void 0!==e.y?c._originalY=e.y:c._originalY||0,i=void 0!==e.width?c._originalWidth=e.width:c._originalWidth||0,o=void 0!==e.height?c._originalHeight=e.height:c._originalHeight||0,r=void 0!==e[Je]?c._originalSW=e[Je]:c._originalSW,s=~~((i<o?i:o)/2),u=(r||0)<s?r||0:s,e.x=t+u/2,e.y=n+u/2,e.width=i-u,e.height=o-u,((r||0)!==u||!(0===u&&void 0===r))&&(e[Je]=u)),"sharp"in e&&delete e.sharp),S(c,e)}function E(e){var t,n,i,o,r=this;return a(e)?(e=l({},e),t=r._settings,i=ze(t[Qe])&&ze(t[Je]),void 0!==e[Ze]&&(t[Ze]=e[Ze],delete e[Ze],n=!0),void 0!==e[Qe]&&(t[Qe]=e[Qe],delete e[Qe]),void 0!==e[Je]&&(t[Je]=e[Je],delete e[Je]),void 0!==e[et]&&(t[et]=e[et],delete e[et]),o=ze(t[Qe])&&ze(t[Je]),S(r,e),n=n||o!==i&&t[Ze],n&&(ee(r,t.text,o),r._hasEllipsis=!1),(n||void 0!==e.x||void 0!==e.y)&&ie(r),o&&ae(r),r):S(r,e)}function A(e){return e=e||{},C(this,e),tt in e&&ie(this),this}function O(e,t,n,i,o){var a,r,s,u,c;if(void 0!==n.wholeText)e.push({value:n.wholeText,style:i,className:o,line:t,height:i[tt]||0});else if("BR"===n.tagName)++t;else if(Ce.isElementNode(n)){switch(l(a={},i),n.tagName){case"B":case"STRONG":a[it]="bold";break;case"I":case"EM":a[nt]="italic";break;case"U":a[ot]="underline"}for(r=n.style,r.color&&(a.fill=r.color),r.fontSize&&(a[tt]=r.fontSize),r.fontStyle&&(a[nt]=r.fontStyle),r.fontWeight&&(a[it]=r.fontWeight),r.textDecoration&&(a[ot]=r.textDecoration),s=0,c=n.childNodes,u=c.length;s<u;++s)t=O(e,t,c[s],a,n.className||o)}return t}function B(e){var t,n,i,o=e[0];for(t=1,n=e.length;t<n;++t)i=e[t],i.line===o.line?(o.height=oe(o.height,i.height),o.inherits=o.inherits||0===Ke(i.height),i.height=NaN):o=i}function P(e){var t=/(?:(<[a-z0-9]+\s*))([\s\S]*?)(>|\/>)/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 M(e){var t=[],n=Ce.createElement("div");return n.innerHTML=e.replace(/\r/g,"").replace(/\n/g,"<br/>"),O(t,0,n,{},""),B(t),t}function R(e){for(var t=e.replace(/\r/g,"").split(/\n/g),n=0,i=[];n<t.length;n++)i.push({value:t[n].trim(),height:0,line:n});return i}function V(e,t,n){var i,o,a;for(i=0,o=e.length;i<o;++i)a=e[i],a[n]=r("tspan"),a[n].appendChild(Ce.createTextNode(a.value)),a.style&&C({element:a[n],_styles:{}},a.style),a.className&&a[n].setAttribute("class",a.className),t.appendChild(a[n])}function F(){this._hasEllipsis&&this.attr({text:this._settings.text})}function L(e){var t,n,i,o,a,r,s,l,u,c=this,d=!1;if(F.call(c),l=c.renderer.text(st).attr(c._styles).append(c.renderer.root),u=l.getBBox().width,c._getElementBBox().width>e)for(e-u<0?e=0:e-=u,t=W(c.element,c._texts,e),n=0,i=t.length;n<i;++n)if(o=t[n].parts,1!==t[n].commonLength)for(a=0,r=o.length;a<r;++a)s=o[a],ze(s.endIndex)?(Q(s,s.endIndex),d=!0):s.startBox>e&&J(s);return l.remove(),c._hasEllipsis=d,d}function H(e){var t=void 0;return e&&(t=e.cloneNode(),t.removeAttribute("y"),t.removeAttribute("x")),t||e}function z(e,t){var n,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=this,r=[],s=!1,l=!1,u=e;F.call(a),n=a.renderer.text(st).attr(a._styles).append(a.renderer.root),i=n.getBBox().width;var c=a._getElementBBox(),d=c.width,h=c.height;return(d>e||t&&h>t)&&(e-i<0?u=0:u-=i,r=Z(a.element,a._texts,e,u,o,t),r=X(r,u,o,t,parseFloat(this._getLineHeight())),this._texts=r.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),s=!0,this._texts?ie(this):(this.element.textContent="",l=!0)),n.remove(),a._hasEllipsis=s,{rowCount:r.length,textChanged:s,textIsEmpty:l}}function N(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 $(e){return e.value.length?e.tspan.getSubStringLength(0,e.value.length):0}function W(e,t,n){var i,o,a,r,s,l=[];if(t)for(i=0,o=t.length;i<o;++i)a=t[i],l[a.line]?(a.startBox=r,l[a.line].parts.push(a),l[a.line].commonLength+=a.value.length):(a.startBox=r=0,l.push({commonLength:a.value.length,parts:[a]})),s=r+a.tspan.getSubStringLength(0,a.value.length),a.endIndex=N(a,n,r,s),r=s;else a={value:e.textContent,tspan:e},a.startBox=r=0,s=r+$(a),a.endIndex=N(a,n,r,s),l=[{commonLength:e.textContent.length,parts:[a]}];return l}function G(e,t){for(var n=e.startBox>0?[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;)o++;return i[o]}function j(e,t){for(var n=0;n<e.value.length-1;n++)if(e.startBox+e.tspan.getSubStringLength(0,n+1)>t)return n}function q(e,t){var n=t.hideOverflowEllipsis;return n&&0===e?"":st}function K(e,t,n){var i=q(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){Q(e,o,i);break}1===o&&Q(e,0,i)}}function U(e,t,n,i){var o=e.value,a=void 0;"none"!==i.wordWrap&&(a="normal"===i.wordWrap?G(e,t):j(e,t));var r=[],s=void 0;if(isFinite(a)){Q(e,a,"");var u=" "===o[a]?1:0,c=o.slice(a+u);if(c.length){var d=H(e.tspan);if(d.textContent=c,e.tspan.parentNode.appendChild(d),s=l(l({},e),{value:c,startBox:0,height:0,tspan:d,stroke:H(e.stroke),endBox:d.getSubStringLength(0,c.length)}),s.stroke&&(s.stroke.textContent=c),s.endBox>t&&(r=U(s,t,n,i),!r.length))return[]}}if(e.value.length){if("ellipsis"===i.textOverflow&&e.tspan.getSubStringLength(0,e.value.length)>t&&K(e,n,i),"hide"===i.textOverflow&&e.tspan.getSubStringLength(0,e.value.length)>t)return[]}else e.tspan.parentNode.removeChild(e.tspan);var h=[];return s&&h.push(s),[{commonLength:o.length,parts:h}].concat(r)}function Y(e,t){return e.parts.reduce(function(e,n){return Math.max(e,ne(n,t))},0)}function X(e,t,n,i,o){var a=n.textOverflow;if(!isFinite(i)||0===Number(i)||"none"===a)return e;var r=e.reduce(function(e,r,s,l){var u=be(e,2),c=u[0],d=u[1],h=Y(r,o);if(d+=h,d<i)c.push(r);else if(r.parts.forEach(function(e){J(e)}),"ellipsis"===a){var p=l[s-1];if(p){var f=p.parts[p.parts.length-1];f.hasEllipsis||(0===t||f.endBox<t?Q(f,f.value.length,q(t,n)):K(f,t,n))}}return[c,d]},[[],0]);return"hide"===a&&r[1]>i?(r[0].forEach(function(e){e.parts.forEach(function(e){J(e)})}),[]):r[0]}function Z(e,t,n,i,o){if(!t){var a=e.textContent,r={value:a,height:0,line:0};e.textContent="",V([r],e,"tspan"),t=[r]}return t.reduce(function(e,t){var a=be(e,5),r=a[0],s=a[1],l=a[2],u=a[3],c=a[4],d=r[r.length-1];if(u)return[r,s,l,u];if(d&&t.line===c){if(t.startBox=s,s>i&&"none"===o.wordWrap&&"ellipsis"===o.textOverflow)return J(t),[r,s,l,u,c];d.parts.push(t),d.commonLength+=t.value.length}else t.startBox=s=0,r.push({commonLength:t.value.length,parts:[t]});if(t.endBox=l=s+$(t),s=l,ze(n)&&l>n){var h=U(t,n,i,o);h.length?r=r.concat(h.filter(function(e){return e.parts.length>0})):(r=[],u=!0)}return[r,s,l,u,t.line]},[[],0,0,!1,0])[0]}function Q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:st,i=e.value.substr(0,t)+n;e.value=e.tspan.textContent=i,e.stroke&&(e.stroke.textContent=i),n===st&&(e.hasEllipsis=!0)}function J(e){e.tspan.parentNode&&e.tspan.parentNode.removeChild(e.tspan),e.stroke&&e.stroke.parentNode&&e.stroke.parentNode.removeChild(e.stroke)}function ee(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=R(t):n&&(i=[{value:t.trim(),height:0}]):(o=P(t),i=M(o)),i?i.length&&(e._texts=i,n&&V(i,e.element,Qe),V(i,e.element,"tspan")):e.element.appendChild(Ce.createTextNode(t)))}function te(e,t,n){e.tspan.setAttribute(t,n),e.stroke&&e.stroke.setAttribute(t,n)}function ne(e,t){return e.inherits?oe(e.height,t):e.height||t}function ie(e){if(e._texts){var t,n,i=e._texts,o=e._settings.x,a=e._getLineHeight(),r=i[0];for(te(r,"x",o),te(r,"y",e._settings.y),t=1,n=i.length;t<n;++t)if(r=i[t],Ke(r.height)>=0){te(r,"x",o);var s=ne(r,a);te(r,"dy",s)}}}function oe(e,t){var n=Ke(e),i=Ke(t),o=n||rt,a=i||rt;return o>a?isNaN(n)?o:e:isNaN(i)?a:t}function ae(e){if(e._texts){var t,n,i,o=e._texts,a=e._settings[Qe],r=e._settings[Je],s=e._settings[et]||1;for(n=0,i=o.length;n<i;++n)t=o[n].stroke,t.setAttribute(Qe,a),t.setAttribute(Je,r),t.setAttribute(et,s),t.setAttribute("stroke-linejoin","round")}}function re(e,t,n,i){n=n||{};var o,a,r=e.renderer,s=e._settings,u={},c={translateX:0,translateY:0,scaleX:1,scaleY:1,rotate:0,rotateX:0,rotateY:0};if(i&&(n.complete=i),r.animationEnabled()){for(o in t)a=t[o],/^(translate(X|Y)|rotate[XY]?|scale(X|Y))$/i.test(o)?(u.transform=u.transform||{from:{},to:{}},u.transform.from[o]=o in s?Number(s[o].toFixed(3)):c[o],u.transform.to[o]=a):"arc"===o||"segments"===o?u[o]=a:u[o]={from:o in s?s[o]:parseFloat(e.element.getAttribute(o)||0),to:a};r.animateElement(e,u,l(l({},r._animation),n))}else n.step&&n.step.call(e,1,1),n.complete&&n.complete.call(e),e.attr(t);return e}function se(e,t,n){var i,o,a=this,r=a.segments||[];return a.renderer.animationEnabled()&&"points"in e&&(i=h(e.points,a.type),o=y(r,i,a.type),e.segments={from:r,to:i,end:o},delete e.points),re(a,e,t,n)}function le(e,t,n){var i=this,o=i._settings,a={from:{},to:{}};return i.renderer.animationEnabled()&&("x"in e||"y"in e||"innerRadius"in e||"outerRadius"in e||"startAngle"in e||"endAngle"in e)&&(a.from.x=o.x||0,a.from.y=o.y||0,a.from.innerRadius=o.innerRadius||0,a.from.outerRadius=o.outerRadius||0,a.from.startAngle=o.startAngle||0,a.from.endAngle=o.endAngle||0,a.to.x="x"in e?e.x:o.x,delete e.x,a.to.y="y"in e?e.y:o.y,delete e.y,a.to.innerRadius="innerRadius"in e?e.innerRadius:o.innerRadius,delete e.innerRadius,a.to.outerRadius="outerRadius"in e?e.outerRadius:o.outerRadius,delete e.outerRadius,a.to.startAngle="startAngle"in e?e.startAngle:o.startAngle,delete e.startAngle,a.to.endAngle="endAngle"in e?e.endAngle:o.endAngle,delete e.endAngle,e.arc=a),re(i,e,t,n)}function ue(e,t){var n={is:!1,name:t.name||t,after:t.after};return e?n.to=e:n.virtual=!0,n}function ce(e,t,n){var i=this;i.renderer=e,i.element=r(t),i._settings={},i._styles={},"path"===t&&(i.type=n||"line")}function de(e){ft.remove(e)}function he(e,t){ce.call(this,e,"path",t)}function pe(e){ce.call(this,e,"path","arc")}function fe(e){ce.call(this,e,"rect")}function ge(e){ce.call(this,e,"text"),this.css({"white-space":"pre"})}function _e(e,t){var n,i;for(n=t;i=e[n];++n)i._link.i=n}function me(e,t){var n,i,o=t._links,a=e._link.after=e._link.after||t._linkAfter;if(a){for(n=0;(i=o[n])&&i._link.name!==a;++n);if(i)for(++n;(i=o[n])&&i._link.after===a;++n);}else n=o.length;o.splice(n,0,e),_e(o,n)}function ve(e){var t,n=e._link.to._links;for(t=0;n[t]!==e;++t);n.splice(t,1),_e(n,t)}function ye(e){var t=this;t.root=t._createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",fill:at,stroke:at,"stroke-width":0}).attr({"class":e.cssClass}).css({"line-height":"normal","-ms-user-select":at,"-moz-user-select":at,"-webkit-user-select":at,"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)",display:"block",overflow:"hidden"}),t._init(),t.pathModified=!!e.pathModified,t._$container=we(e.container),t.root.append({element:e.container}),t.fixPlacement(),t._locker=0,t._backed=!1}function xe(e,t){return"@"+e+"::"+t.step+":"+t.width+":"+t.opacity+":"+t.direction}var be=function(){function e(e,t){var n=[],i=!0,o=!1,a=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done)&&(n.push(r.value),!t||n.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),we=n(2),Ce=n(11),ke=n(7),Se=n(70),Ie=ke.getWindow(),Te=n(5),De=n(26),Ee=n(185).getSvgMarkup,Ae=n(767),Oe=Math,Be=Oe.min,Pe=Oe.max,Me=Oe.floor,Re=Oe.round,Ve=Oe.sin,Fe=Oe.cos,Le=Oe.abs,He=Oe.PI,ze=n(1).isDefined,Ne=n(10),$e=Ne.normalizeEnum,We=Ne.normalizeBBox,Ge=Ne.rotateBBox,je=He/180,qe=parseInt,Ke=parseFloat,Ue=.5,Ye=5,Xe={"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,widows:!0,"z-index":!0,zoom:!0},Ze="text",Qe="stroke",Je="stroke-width",et="stroke-opacity",tt="font-size",nt="font-style",it="font-weight",ot="text-decoration",at="none",rt=12,st="...",lt=function(){return Object.create?function(e){return Object.create(e)}:function(e){var t=function(){};return t.prototype=e,new t}}(),ut={scaleX:1,scaleY:1,"pointer-events":""},ct=Se(function(){var e=Ce.createElement("div"),t=0;return e.style.left="-9999px",e.style.position="absolute",{backupContainer:e,backupCounter:t}}),dt=function(){var e=1;return function(){return"DevExpress_"+e++}}(),ht={full:at,lefttop:"xMinYMin",leftcenter:"xMinYMid",leftbottom:"xMinYMax",centertop:"xMidYMin",center:"xMidYMid",centerbottom:"xMidYMax",righttop:"xMaxYMin",rightcenter:"xMaxYMid",rightbottom:"xMaxYMax"},pt=function(e,t,n,i,o,a,r,s,l,u){return["M",(e+i*o).toFixed(Ye),(t-i*a).toFixed(Ye),"A",i.toFixed(Ye),i.toFixed(Ye),0,u,0,(e+i*r).toFixed(Ye),(t-i*s).toFixed(Ye),l?"M":"L",(e+n*r).toFixed(5),(t-n*s).toFixed(Ye),"A",n.toFixed(Ye),n.toFixed(Ye),0,u,1,(e+n*o).toFixed(Ye),(t-n*a).toFixed(Ye),"Z"].join(" ")};t.SvgElement=ce,ce.prototype={constructor:ce,_getJQElement:function(){return this._$element||(this._$element=we(this.element))},_addFixIRICallback:function(){var e=this,t=function(){k(e,"fill"),k(e,"clip-path"),k(e,"filter")};e.element._fixFuncIri=t,t.renderer=e.renderer,ft.add(t),e._addFixIRICallback=function(){}},_clearChildrenFuncIri:function(){var e=function e(t){var n;for(n=0;n<t.childNodes.length;n++)de(t.childNodes[n]._fixFuncIri),e(t.childNodes[n])};e(this.element)},dispose:function(){return de(this.element._fixFuncIri),this._clearChildrenFuncIri(),this._getJQElement().remove(),this},append:function(e){return(e||this.renderer.root).element.appendChild(this.element),this},remove:function(){var e=this.element;return e.parentNode&&e.parentNode.removeChild(e),this},enableLinks:function(){return this._links=[],this},virtualLink:function(e){return me({_link:ue(null,e)},this),this},linkAfter:function(e){return this._linkAfter=e,this},linkOn:function(e,t){return this._link=ue(e,t),me(this,e),this},linkOff:function(){return ve(this),this._link=null,this},linkAppend:function(){var e,t,n=this._link,i=n.to._links;for(e=n.i+1;(t=i[e])&&!t._link.is;++e);return this._insert(n.to,t),n.is=!0,this},_insert:function(e,t){e.element.insertBefore(this.element,t?t.element:null)},linkRemove:function(){return this.remove(),this._link.is=!1,this},clear:function(){return this._clearChildrenFuncIri(),this._getJQElement().empty(),this},toBackground:function(){var e=this.element,t=e.parentNode;return t&&t.insertBefore(e,t.firstChild),this},toForeground:function(){var e=this.element,t=e.parentNode;return t&&t.appendChild(e),this},attr:function(e){return S(this,e)},smartAttr:function(e){var t=this;return e.hatching&&"none"!==$e(e.hatching.direction)?(e=l({},e),e.fill=t._hatching=t.renderer.lockHatching(e.fill,e.hatching,t._hatching),delete e.hatching):t._hatching&&(t.renderer.releaseHatching(t._hatching),t._hatching=null),t.attr(e)},css:function(e){return C(this,e)},animate:function(e,t,n){return re(this,e,t,n)},sharp:function(e,t){return this.attr({sharp:e||!0,sharpDirection:t})},_applyTransformation:function(){var e=this._settings,t=void 0,n=void 0,i=void 0,o=void 0,a=[],r=e.sharp,s=e.sharpDirection||1,l=e[Je]%2,u=!l||"h"!==r&&r!==!0?0:Ue*s,c=!l||"v"!==r&&r!==!0?0:Ue*s;a.push("translate("+((e.translateX||0)+u)+","+((e.translateY||0)+c)+")"),e.rotate&&(i="rotateX"in e?e.rotateX:e.x,o="rotateY"in e?e.rotateY:e.y,a.push("rotate("+e.rotate+","+(i||0)+","+(o||0)+")")),t=ze(e.scaleX),n=ze(e.scaleY),(t||n)&&a.push("scale("+(t?e.scaleX:1)+","+(n?e.scaleY:1)+")"),a.length&&this.element.setAttribute("transform",a.join(" "))},move:function(e,t,n,i){var o={};return ze(e)&&(o.translateX=e),ze(t)&&(o.translateY=t),n?this.animate(o,i):this.attr(o),this},rotate:function(e,t,n,i,o){var a={rotate:e||0};return ze(t)&&(a.rotateX=t),ze(n)&&(a.rotateY=n),i?this.animate(a,o):this.attr(a),this},_getElementBBox:function(){var e,t=this.element;try{e=t.getBBox&&t.getBBox()}catch(e){}return e||{x:0,y:0,width:t.offsetWidth||0,height:t.offsetHeight||0}},getBBox:function(){var e=this._settings,t=this._getElementBBox();return t=e.rotate?Ge(t,[("rotateX"in e?e.rotateX:e.x)||0,("rotateY"in e?e.rotateY:e.y)||0],-e.rotate):We(t)},markup:function(){return Ee(this.element)},getOffset:function(){return this._getJQElement().offset()},stopAnimation:function(e){var t=this.animation;return t&&t.stop(e),this},setTitle:function(e){var t=r("title");t.textContent=e||"",this.element.appendChild(t)},data:function(e,t){var n,i=this.element;if(void 0!==t)i[e]=t;else for(n in e)i[n]=e[n];return this},on:function(){var e=[this._getJQElement()];return e.push.apply(e,arguments),Te.on.apply(Te,e),this},off:function(){var e=[this._getJQElement()];return e.push.apply(e,arguments),Te.off.apply(Te,e),this},trigger:function(){var e=[this._getJQElement()];return e.push.apply(e,arguments),Te.trigger.apply(Te,e),this}},t.PathSvgElement=he,he.prototype=lt(ce.prototype),l(he.prototype,{constructor:he,attr:I,animate:se}),t.ArcSvgElement=pe,pe.prototype=lt(ce.prototype),l(pe.prototype,{constructor:pe,attr:T,animate:le}),t.RectSvgElement=fe,fe.prototype=lt(ce.prototype),l(fe.prototype,{constructor:fe,attr:D}),t.TextSvgElement=ge,ge.prototype=lt(ce.prototype),l(ge.prototype,{constructor:ge,attr:E,css:A,applyEllipsis:L,setMaxSize:z,restoreText:F,_getLineHeight:function(){return isNaN(Ke(this._styles[tt]))?rt:this._styles[tt]}}),t.Renderer=ye,ye.prototype={constructor:ye,_init:function(){var e=this;e._defs=e._createElement("defs").append(e.root),e._animationController=new Ae.AnimationController(e.root.element),e._animation={enabled:!0,duration:1e3,easing:"easeOutCubic"}},fixPlacement:function(){if(De.mozilla||De.msie){var e=c(this._$container.get(0)),t=u(e.left%1,2),n=u(e.top%1,2);De.msie?this.root.css({transform:"translate("+-t+"px,"+-n+"px)"}):De.mozilla&&this.root.move(-t,-n)}},removePlacementFix:function(){(De.mozilla||De.msie)&&(De.msie?this.root.css({transform:""}):De.mozilla&&this.root.attr({transform:null}))},setOptions:function(e){var t=this;return t.rtl=!!e.rtl,t.encodeHtml=!!e.encodeHtml,t.updateAnimationOptions(e.animation||{}),t.root.attr({direction:t.rtl?"rtl":"ltr"}),t},_createElement:function(e,n,i){var o=new t.SvgElement(this,e,i);return n&&o.attr(n),o},lock:function(){var e=this;return 0===e._locker&&(e._backed=!e._$container.is(":visible"),e._backed&&i(e.root)),++e._locker,e},unlock:function(){var e=this;return--e._locker,0===e._locker&&(e._backed&&(o(e.root,e._$container[0]),e.fixPlacement()),e._backed=!1),e},resize:function(e,t){return e>=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(),ft.removeByRenderer(t);for(e in t)t[e]=null;return t},animationEnabled:function(){return!!this._animation.enabled},updateAnimationOptions:function(e){return l(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:ht[$e(r)]||at});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,n=dt(),i=this;return t=i._createElement("linearGradient",{id:n}).append(i._defs),t.id=n,e.forEach(function(e){i._createElement("stop",{offset:e.offset,"stop-color":e["stop-color"]}).append(t)}),t},pattern:function e(n,i,o){i=i||{};var a,r,e,s,l,u=this,c=i.step||6,d=c/2,h=1.5*c;return a=o||dt(),r="right"===$e(i.direction)?"M "+d+" "+-d+" L "+-d+" "+d+" M 0 "+c+" L "+c+" 0 M "+h+" "+d+" L "+d+" "+h:"M 0 0 L "+c+" "+c+" M "+-d+" "+d+" L "+d+" "+h+" M "+d+" "+-d+" L "+h+" "+d,e=u._createElement("pattern",{id:a,width:c,height:c,patternUnits:"userSpaceOnUse"}).append(u._defs),e.id=a,s=u.rect(0,0,c,c).attr({fill:n,opacity:i.opacity}).append(e),l=new t.PathSvgElement(this).attr({d:r,"stroke-width":i.width||1,stroke:n}).append(e),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=dt(),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=dt(),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),S(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=dt(),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=dt(),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:dt()},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=xe(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 ft=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(){ft.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(207),l=s.chart.line,u=s.polar.line,c=n(10).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.length?i:a.length-1-i;t&&n.x===e[o].defaultX&&n.x===s-r.getAxisShift()&&(n.x+=u),!t&&n.y===e[o].defaultY&&n.y===s-r.getAxisShift()&&(n.y+=u)}})}return{line:o,area:a,singlePointSegment:o!==e}},_processSinglePointsAreaSegment:function(e,t){if(e&&1===e.length){var n=e[0],i=o.clone(n);return i[t?"y":"x"]+=1,i.argument=null,[n,i]}return e}});t.polar.area=d({},u,p,{_prepareSegment:function(e,t,n){return n&&u._closeSegment.call(this,e),f._prepareSegment.call(this,e)},_processSinglePointsAreaSegment:function(e){return s.polar.line._prepareSegment.call(this,e).line}}),t.chart.steparea=d({},f,{_prepareSegment:function(e,t){var n=s.chart.stepline;return e=f._processSinglePointsAreaSegment(e,t),f._prepareSegment.call(this,n._calculateStepLinePoints.call(this,e),t)},getSeriesPairCoord:s.chart.stepline.getSeriesPairCoord}),t.chart.splinearea=d({},f,{_areaPointsToSplineAreaPoints:function(e){var t=e[e.length/2-1],n=e[e.length/2];e.splice(e.length/2,0,{x:t.x,y:t.y},{x:n.x,y:n.y})},_prepareSegment:function(e,t){var n=f._processSinglePointsAreaSegment(e,t),i=f._prepareSegment.call(this,h(n,t));return this._areaPointsToSplineAreaPoints(i.area),i.singlePointSegment=n!==e,i},_getDefaultSegment:function(e){var t=f._getDefaultSegment(e);return this._areaPointsToSplineAreaPoints(t.area),t},_createMainElement:function(e,t){return this._renderer.path(e,"bezierarea").attr(t)},_createBorderElement:s.chart.spline._createMainElement,getSeriesPairCoord:s.chart.spline.getSeriesPairCoord,getNearestPointsByCoord:s.chart.spline.getNearestPointsByCoord,obtainCubicBezierTCoef:s.chart.spline.obtainCubicBezierTCoef})},function(e,t,n){function i(){}function o(e,t){e.smartAttr(t)}function a(e,t){e.outer.attr({stroke:t.stroke,"stroke-width":t["stroke-width"],"stroke-opacity":t["stroke-opacity"]}),e.inner.smartAttr({fill:t.fill,opacity:t.opacity,hatching:t.hatching})}var r=n(0).extend;r(i.prototype,{value:0,isNode:function(){return!!(this.nodes&&this.level<this.ctx.maxLevel)},isActive:function(){var e=this.ctx;return this.level>=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(130);n(229),n(458),n(473),n(115),n(482),n(182),n(483),n(484),n(19),n(160),n(154),n(55),n(89),n(135),n(24),n(176),n(285),e.exports=i},function(e,t,n){var i=n(183).fileSaver,o=n(429),a=n(223),r=n(436),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,void 0,t.forceProxy)})},t.fileSaver=i,t.excel={creator:o.ExcelCreator,getData:o.getData,formatConverter:n(216)},t.image={creator:a.imageCreator,getData:a.getData,testFormats:a.testFormats},t.pdf={getData:n(438).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)";
25},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(29).fitIntoRange,f=n(66),g=n(8),_=n(55),m=c.isPlainObject,v=c.isFunction,y=n(12),x="dxResizable",b="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,x),A=g.addNamespace(_.move,x),O=g.addNamespace(_.end,x),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(b)},_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("<div>");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(x,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){var i=n(132),o=n(3).each,a=n(0).extend,r=n(16),s=n(38),l={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},u="preset_",c=i.inherit({ctor:function(){this.callBase.apply(this,arguments),this._registeredPresets=[],this.resetToDefaults()},_getDefaultOptions:function(){return a(this.callBase(),{defaultAnimationDuration:400,defaultAnimationDelay:0,defaultStaggerAnimationDuration:300,defaultStaggerAnimationDelay:40,defaultStaggerAnimationStartDelay:500})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return e.phone},options:{defaultStaggerAnimationDuration:350,defaultStaggerAnimationDelay:50,defaultStaggerAnimationStartDelay:0}},{device:function(){return r.current().android||r.real.android},options:{defaultAnimationDelay:100}}])},_getPresetOptionName:function(e){return u+e},_createAndroidSlideAnimationConfig:function(e,t){var n=this,i=function(e){return{type:"slide",delay:void 0===e.delay?n.option("defaultAnimationDelay"):e.delay,duration:void 0===e.duration?n.option("defaultAnimationDuration"):e.duration}};return{enter:function(n,o){var a=n.parent().width()*t,r=o.direction,l=i(o);return l.to={left:0,opacity:1},"forward"===r?l.from={left:a,opacity:e}:"backward"===r?l.from={left:-a,opacity:e}:l.from={left:0,opacity:0},s.createAnimation(n,l)},leave:function(n,o){var a=n.parent().width()*t,r=o.direction,l=i(o);return l.from={left:0,opacity:1},"forward"===r?l.to={left:-a,opacity:e}:"backward"===r?l.to={left:a,opacity:e}:l.to={left:0,opacity:0},s.createAnimation(n,l)}}},_createOpenDoorConfig:function(){var e=this,t=function(t){return{type:"css",extraCssClasses:"dx-opendoor-animation",delay:void 0===t.delay?e.option("defaultAnimationDelay"):t.delay,duration:void 0===t.duration?e.option("defaultAnimationDuration"):t.duration}};return{enter:function(e,n){var i=n.direction,o=t(n);return o.delay="none"===i?o.delay:o.duration,o.from="dx-enter dx-opendoor-animation"+l[i],o.to="dx-enter-active",s.createAnimation(e,o)},leave:function(e,n){var i=n.direction,o=t(n);return o.from="dx-leave dx-opendoor-animation"+l[i],o.to="dx-leave-active",s.createAnimation(e,o)}}},_createWinPopConfig:function(){var e=this,t={type:"css",extraCssClasses:"dx-win-pop-animation",duration:e.option("defaultAnimationDuration")};return{enter:function(n,i){var o=t,a=i.direction;return o.delay="none"===a?e.option("defaultAnimationDelay"):e.option("defaultAnimationDuration")/2,o.from="dx-enter dx-win-pop-animation"+l[a],o.to="dx-enter-active",s.createAnimation(n,o)},leave:function(n,i){var o=t,a=i.direction;return o.delay=e.option("defaultAnimationDelay"),o.from="dx-leave dx-win-pop-animation"+l[a],o.to="dx-leave-active",s.createAnimation(n,o)}}},resetToDefaults:function(){this.clear(),this.registerDefaultPresets(),this.applyChanges()},clear:function(e){var t=this,n=[];o(this._registeredPresets,function(i,o){e&&e!==o.name?n.push(o):t.option(t._getPresetOptionName(o.name),void 0)}),this._registeredPresets=n,this.applyChanges()},registerPreset:function(e,t){this._registeredPresets.push({name:e,config:t})},applyChanges:function(){var e=this,t=[];o(this._registeredPresets,function(n,i){var o={device:i.config.device,options:{}};o.options[e._getPresetOptionName(i.name)]=i.config.animation,t.push(o)}),this._setOptionsByDevice(t)},getPreset:function(e){for(var t=e;"string"==typeof t;)t=this.option(this._getPresetOptionName(t));return t},registerDefaultPresets:function(){this.registerPreset("pop",{animation:{extraCssClasses:"dx-android-pop-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("openDoor",{animation:this._createOpenDoorConfig()}),this.registerPreset("win-pop",{animation:this._createWinPopConfig()}),this.registerPreset("fade",{animation:{extraCssClasses:"dx-fade-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("slide",{device:function(){return r.current().android||r.real.android},animation:this._createAndroidSlideAnimationConfig(1,1)}),this.registerPreset("slide",{device:function(){return!r.current().android&&!r.real.android},animation:{extraCssClasses:"dx-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-slide",{animation:{extraCssClasses:"dx-ios7-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("overflow",{animation:{extraCssClasses:"dx-overflow-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return!r.current().android&&!r.real.android},animation:{extraCssClasses:"dx-ios7-toolbar-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return r.current().android||r.real.android},animation:this._createAndroidSlideAnimationConfig(0,.4)}),this.registerPreset("stagger-fade",{animation:{extraCssClasses:"dx-fade-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-slide",{animation:{extraCssClasses:"dx-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-slide",{animation:{extraCssClasses:"dx-fade-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-drop",{animation:{extraCssClasses:"dx-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-drop",{animation:{extraCssClasses:"dx-fade-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-rise",{animation:{extraCssClasses:"dx-fade-rise-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-3d-drop",{animation:{extraCssClasses:"dx-3d-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-zoom",{animation:{extraCssClasses:"dx-fade-zoom-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}})}});t.PresetCollection=c;var d=new c;t.presets=d},function(e,t,n){var i=n(231);e.exports=i.module("dx",[])},function(e,t,n){e.exports={}},function(e,t,n){var 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};n(115);var o=n(69),a=n(51),r=n(21);if(n(69),o&&o.formatNumber){var s={main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},numbers:{defaultNumberingSystem:"latn",otherNumberingSystems:{"native":"latn"},minimumGroupingDigits:"1","symbols-numberSystem-latn":{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"\xd7",perMille:"\u2030",infinity:"\u221e",nan:"NaN",timeSeparator:":"},"decimalFormats-numberSystem-latn":{standard:"#,##0.###","long":{decimalFormat:{"1000-count-one":"0 thousand","1000-count-other":"0 thousand","10000-count-one":"00 thousand","10000-count-other":"00 thousand","100000-count-one":"000 thousand","100000-count-other":"000 thousand","1000000-count-one":"0 million","1000000-count-other":"0 million","10000000-count-one":"00 million","10000000-count-other":"00 million","100000000-count-one":"000 million","100000000-count-other":"000 million","1000000000-count-one":"0 billion","1000000000-count-other":"0 billion","10000000000-count-one":"00 billion","10000000000-count-other":"00 billion","100000000000-count-one":"000 billion","100000000000-count-other":"000 billion","1000000000000-count-one":"0 trillion","1000000000000-count-other":"0 trillion","10000000000000-count-one":"00 trillion","10000000000000-count-other":"00 trillion","100000000000000-count-one":"000 trillion","100000000000000-count-other":"000 trillion"}},"short":{decimalFormat:{"1000-count-one":"0K","1000-count-other":"0K","10000-count-one":"00K","10000-count-other":"00K","100000-count-one":"000K","100000-count-other":"000K","1000000-count-one":"0M","1000000-count-other":"0M","10000000-count-one":"00M","10000000-count-other":"00M","100000000-count-one":"000M","100000000-count-other":"000M","1000000000-count-one":"0B","1000000000-count-other":"0B","10000000000-count-one":"00B","10000000000-count-other":"00B","100000000000-count-one":"000B","100000000000-count-other":"000B","1000000000000-count-one":"0T","1000000000000-count-other":"0T","10000000000000-count-one":"00T","10000000000000-count-other":"00T","100000000000000-count-one":"000T","100000000000000-count-other":"000T"}}},"scientificFormats-numberSystem-latn":{standard:"#E0"},"percentFormats-numberSystem-latn":{standard:"#,##0%"},"currencyFormats-numberSystem-latn":{currencySpacing:{beforeCurrency:{currencyMatch:"[:^S:]",surroundingMatch:"[:digit:]",insertBetween:"\xa0"},afterCurrency:{currencyMatch:"[:^S:]",surroundingMatch:"[:digit:]",insertBetween:"\xa0"}},standard:"\xa4#,##0.00",accounting:"\xa4#,##0.00;(\xa4#,##0.00)","short":{standard:{"1000-count-one":"\xa40K","1000-count-other":"\xa40K","10000-count-one":"\xa400K","10000-count-other":"\xa400K","100000-count-one":"\xa4000K","100000-count-other":"\xa4000K","1000000-count-one":"\xa40M","1000000-count-other":"\xa40M","10000000-count-one":"\xa400M","10000000-count-other":"\xa400M","100000000-count-one":"\xa4000M","100000000-count-other":"\xa4000M","1000000000-count-one":"\xa40B","1000000000-count-other":"\xa40B","10000000000-count-one":"\xa400B","10000000000-count-other":"\xa400B","100000000000-count-one":"\xa4000B","100000000000-count-other":"\xa4000B","1000000000000-count-one":"\xa40T","1000000000000-count-other":"\xa40T","10000000000000-count-one":"\xa400T","10000000000000-count-other":"\xa400T","100000000000000-count-one":"\xa4000T","100000000000000-count-other":"\xa4000T"}},"unitPattern-count-one":"{0} {1}","unitPattern-count-other":"{0} {1}"},"miscPatterns-numberSystem-latn":{atLeast:"{0}+",range:"{0}\u2013{1}"}}}}};"en"===o.locale().locale&&(o.load(s),o.locale("en"));var l={},u=function(e){var t,n;return n="object"===("undefined"==typeof e?"undefined":i(e))?o.locale().locale+":"+JSON.stringify(e):o.locale().locale+":"+e,t=l[n],t||(t=l[n]=o.numberFormatter(e)),t},c={_formatNumberCore:function(e,t,n){return"exponential"===t?this.callBase.apply(this,arguments):u(this._normalizeFormatConfig(t,n,e))(e)},_normalizeFormatConfig:function(e,t,n){var i;return i="decimal"===e?{minimumIntegerDigits:t.precision||1,useGrouping:!1,minimumFractionDigits:0,maximumFractionDigits:20,round:n<0?"ceil":"floor"}:this._getPrecisionConfig(t.precision),"percent"===e&&(i.style="percent"),i},_getPrecisionConfig:function(e){var t;return t=null===e?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:e||0,maximumFractionDigits:e||0}},format:function(e,t){return"number"!=typeof e?e:(t=this._normalizeFormat(t),t&&("function"==typeof t||t.type||t.formatter)?this.callBase.apply(this,arguments):u(t)(e))},parse:function(e,t){if(e){if(t&&(t.parser||"string"==typeof t))return this.callBase.apply(this,arguments);t&&r.log("W0011");var n=o.parseNumber(e);return isNaN(n)&&(n=this.callBase.apply(this,arguments)),n}}};a.inject(c)}},function(e,t,n){var i=n(2),o=n(11),a=n(7),r=a.getWindow(),s=a.getNavigator(),l=n(5),u=n(17),c=n(1),d={EXCEL:"xlsx",CSS:"css",PNG:"png",JPEG:"jpeg",GIF:"gif",SVG:"svg",PDF:"pdf"},h=t.MIME_TYPES={CSS:"text/css",EXCEL:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PNG:"image/png",JPEG:"image/jpeg",GIF:"image/gif",SVG:"image/svg+xml",PDF:"application/pdf"};t.fileSaver={_revokeObjectURLTimeout:3e4,_getDataUri:function(e,t){return"data:"+h[e]+";base64,"+t},_linkDownloader:function(e,t,n){var a=o.createElement("a"),r={download:e,href:t};return l.on(i(a),"click",function(){i(a).remove(),n&&n.apply(this,arguments)}),o.getBody().appendChild(a),i(a).css({display:"none"}).text("load").attr(r)[0].click(),a},_formDownloader:function(e,t,n,o){var a={method:"post",action:e,enctype:"multipart/form-data"},r=i("<form>").css({display:"none"}).attr(a);r.append('<input type="hidden" name="fileName" value="'+t+'" />'),r.append('<input type="hidden" name="contentType" value="'+n+'" />'),r.append('<input type="hidden" name="data" value="'+o+'" />'),r.appendTo("body"),l.trigger(r,"submit"),l.trigger(r,"submit")&&r.remove()},_saveByProxy:function(e,t,n,i){return this._formDownloader(e,t,h[n],i)},_winJSBlobSave:function(e,t,n){var i=new Windows.Storage.Pickers.FileSavePicker;i.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary,i.fileTypeChoices.insert(h[n],["."+d[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()})})})})},_saveBlobAs:function(e,t,n,i){var o=this;if(o._blobSaved=!1,c.isDefined(s.msSaveOrOpenBlob))s.msSaveOrOpenBlob(n,e),o._blobSaved=!0;else if(c.isDefined(r.WinJS))o._winJSBlobSave(n,e,t),o._blobSaved=!0;else{var a=r.URL||r.webkitURL||r.mozURL||r.msURL||r.oURL;if(c.isDefined(a)){var l=a.createObjectURL(n),u=o._revokeObjectURLTimeout,d=function(e){setTimeout(function(){a.revokeObjectURL(l)},u)};return o._linkDownloader(e,l,d)}}},saveAs:function(e,t,n,i,o,a){e+="."+d[t],a?this._saveByProxy(i,e,t,n):c.isFunction(r.Blob)?this._saveBlobAs(e,t,n,o):c.isDefined(i)&&!c.isDefined(s.userAgent.match(/iPad/i))?this._saveByProxy(i,e,t,n):(c.isDefined(s.userAgent.match(/iPad/i))||u.log("E1034"),this._linkDownloader(e,this._getDataUri(t,n),o))}}},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&&t<a+10},s=function(e,t,n){var i=e[t],a=e[t-1],s=e[t+1];if(!n){if("."===i||" "===i&&"."===a)return!0;if("-"===i&&!r(s))return!0}return o.indexOf(i)<0&&n===r(i)},l=function(e,t){if(!r(e[t]))for(;t>0&&!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;o<e.length;o++)if(n.indexOf(o)<0&&t.filter(u).length){o=l(e,o);do{if(i=r(e[o]),!a.length&&!i&&r(t[0][o]))break;a.push(o),n.unshift(o),o++}while(e[o]&&s(e,o,i));break}return 1!==a.length||"0"!==e[n[0]-1]&&"\u0660"!==e[n[0]-1]||n.unshift(n[0]-1),a},c=function(e,t,n,i){var o=t[0],a=o<i.length?i[o]:o;return t.forEach(function(t,i){e=e.substr(0,a+i)+(n.length>1?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<i.length;o++)i[o]--;e=e.substr(0,s)+e.substr(s+1)}for(a=t[t.length-1]+1,s=a<i.length?i[a]:a;t.length<l;){for(t.push(t[t.length-1]+1),o=a;o<i.length;o++)i[o]++;e=e.substr(0,s)+" "+e.substr(s)}}return e=c(e,t,n,i)},h=function(e,t){return Array.isArray(e)?e.map(function(e){return(t(e)||"").toString()}):(t(e)||"").toString()},p=/[a-zA-Z]/g,f=function(e,t,n,i){var o=t.split("").map(function(e,t){return n.indexOf(t)<0&&(e.match(p)||"'"===e)?i[t]:-1});return e=e.split("").map(function(e,t){var n=e,i=o.indexOf(t)>=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("<svg",'<svg xmlns:xlink="http://www.w3.org/1999/xlink"')),e=e.replace(/xmlns="[\s\S]*?"/gi,function(e){return t?(t=!1,e):""}),e.replace(/xmlns:NS1="[\s\S]*?"/gi,"").replace(/NS1:xmlns:xlink="([\s\S]*?)"/gi,'xmlns:xlink="$1"')}function a(e){return e.replace(/&quot;/gi,"&#34;").replace(/&amp;/gi,"&#38;").replace(/&apos;/gi,"&#39;").replace(/&lt;/gi,"&#60;").replace(/&gt;/gi,"&#62;").replace(/&nbsp;/gi,"&#160;").replace(/&shy;/gi,"&#173;")}var r=n(11),s=n(7).getWindow(),l=n(2);t.getSvgMarkup=function(e,t){return o(a(i(e,t)))},t.getSvgElement=function(e){return r.isNode(e)?e:(new s.DOMParser).parseFromString(e,"image/svg+xml").childNodes[0]}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(1),a=n(21),r=i(a),s={},l=void 0,u=function(e,t){s[e]=t},c=function(e){if((0,o.isString)(e)){if(l=s[e],!l)throw r.default.Error("E0020",e)}else l=e},d=function(){return l};e.exports.setTemplateEngine=c,e.exports.getCurrentTemplateEngine=d,e.exports.registerTemplateEngine=u},function(e,t,n){var 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},o=n(13).inArray,a=n(467),r=a.inherit({_getPlainItems:function(){return this._collectionWidget.option("items")||[]},getIndexByItemData:function(e){var t=this._collectionWidget.keyOf.bind(this._collectionWidget);return t?this.getIndexByKey(t(e)):o(e,this._getPlainItems())},getItemDataByIndex:function(e){return this._getPlainItems()[e]},deleteItemAtIndex:function(e){this._getPlainItems().splice(e,1)},itemsGetter:function(){return this._getPlainItems()},getKeysByItems:function(e){var t=this._collectionWidget.keyOf.bind(this._collectionWidget),n=e;if(t){n=[];for(var i=0;i<e.length;i++)n.push(t(e[i]))}return n},getIndexByKey:function(e){var t=this._cache,n=t&&t.keys||this.getKeysByItems(this._getPlainItems());if(t&&!t.keys&&(t.keys=n),"object"!==("undefined"==typeof e?"undefined":i(e)))return n.indexOf(e);for(var o=0,a=n.length;o<a;o++)if(this._equalKeys(e,n[o]))return o;return-1},getItemsByKeys:function(e,t){return(t||e).slice()},moveItemAtIndexToIndex:function(e,t){var n=this._getPlainItems(),i=n[e];n.splice(e,1),n.splice(t,0,i)},_isItemIndex:function(e){return"number"==typeof e&&Math.round(e)===e},_getNormalizedItemIndex:function(e){return this._collectionWidget._itemElements().index(e)},_normalizeItemIndex:function(e){return e},_denormalizeItemIndex:function(e){return e},_getItemByNormalizedIndex:function(e){return e>-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")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(2),s=i(r),l=function(){function e(t,n,i){o(this,e),this.instance=null,this.$container=null,this.$placeMarker=null,this.editor=n,this.name=t,this.options=i||{}}return a(e,[{key:"_addPlaceMarker",value:function(e){this.$placeMarker=(0,s.default)("<div>").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";
26}},{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=l},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(300),m=i(_),v="dxNativeScrollable",y="dx-scrollable-native",x="dx-scrollable-scrollbar-simulated",b="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(b,!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(x),this._renderScrollbar(w),this._renderScrollbar(C)},_renderScrollbar:function(e){this._isDirection(e)&&(this._scrollbars[e]=new m.default((0,a.default)("<div>").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();return{event:this._eventForUserAction,scrollOffset:{top:-e.top,left:-e.left},reachedLeft:this._isDirection(C)?e.left>=0:void 0,reachedRight:this._isDirection(C)?e.left<=this._containerSize.width-this._componentContentSize.width:void 0,reachedTop:this._isDirection(w)?e.top>=0:void 0,reachedBottom:this._isDirection(w)?e.top<=this._containerSize.height-this._componentContentSize.height: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(-t.top-e.top+this.option("pushBackValue")),this._$container.scrollLeft(-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=this._$container.get(0),n=void 0;return n=e.delta>0?e.shiftKey?!t.scrollLeft:!t.scrollTop:e.shiftKey?t.clientWidth+t.scrollLeft>=t.scrollWidth:t.clientHeight+t.scrollTop>=t.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("<div>").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("<div>").addClass(g).text(e);this._$contentWrapper.append(t)}}},_renderLoadIndicator:function(){this._$contentWrapper&&this.option("showIndicator")&&(this._$indicator=i("<div>").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}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),a=i(o),r=n(54),s=i(r),l=n(0),u=n(1),c=n(133),d=i(c),h=n(40),p=n(6),f=n(304),g=n(11);t.default=s.default.inherit({_getDefaultOptions:function(){return(0,l.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,a.default)(),i=this.key();return this.itemElements().each(function(o,r){var s=(0,a.default)(r),l=t._getItemData(s);if(i?(0,h.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){try{return JSON.stringify(e)===JSON.stringify(t)}catch(n){return e===t}},_partialRefresh:function(){if(this.option("repaintChangesOnly")){var e=(0,f.findChanges)(this._itemsCache,this._editStrategy.itemsGetter(),this.keyOf.bind(this),this._isItemEquals);if(e&&this._itemsCache.length)return this._modifyByChanges(e,!0),this._renderEmptyMessage(),!0;this._refreshItemsCache()}return!1},_refreshItemsCache:function(){if(this.option("repaintChangesOnly"))try{this._itemsCache=(0,l.extend)(!0,[],this._editStrategy.itemsGetter())}catch(e){this._itemsCache=(0,l.extend)([],this._editStrategy.itemsGetter())}},_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[d.default.indexByKey(e,t,n.key)];a&&d.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,p.when)(i||d.default.insert(e,t,n.data,n.index)).done(function(){o._beforeItemElementInserted(n),o._renderItem((0,u.isDefined)(n.index)?n.index:t.length,n.data),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)},_removeByChange:function(e,t,n,i){var o=this,a=i?n.index:d.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["_"+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,g.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){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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(5),h=i(d),p=n(9),f=i(p),g=n(0),_=n(4),m=n(7),v=i(m),y=n(32),x=i(y),b=n(1),w=n(83),C=i(w),k=n(3),S=n(26),I=i(S),T=n(153),D=i(T),E=n(16),A=i(E),O=n(54),B=i(O),P="dx-box",M=".dx-box",R="dx-box-item",V="dxBoxItemData",F={row:"minWidth",col:"minHeight"},L={row:"maxWidth",col:"maxHeight"},H=1,z={start:"flex-start",end:"flex-end",center:"center","space-between":"space-between","space-around":"space-around"},N={start:"flex-start",end:"flex-end",center:"center",stretch:"stretch"},$={row:"row",col:"column"},W=function(e,t,n){if(n=C.default.normalizeStyleProp(t,n),e.style[C.default.styleProp(t)]=n,!v.default.hasWindow()){if(""===n||!(0,b.isDefined)(n))return;var i=x.default.dasherize(t),o=i+": "+n+";";e.attributes.style?e.attributes.style.value.indexOf(o)<0&&(e.attributes.style.value+=" "+o):e.setAttribute("style",o)}},G="dxBox",j="dxupdate."+G,q="dx-box-fallback-item",K={row:"nowrap",col:"normal"},U={row:"width",col:"height"},Y={row:"height",col:"width"},X={row:"marginLeft",col:"marginTop"},Z={row:"marginRight",col:"marginBottom"},Q={row:"marginTop",col:"marginLeft"},J={row:"marginBottom",col:"marginRight"},ee={marginLeft:"marginRight",marginRight:"marginLeft"},te=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_renderVisible",value:function(e,n){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_renderVisible",this).call(this,e),(0,b.isDefined)(n)&&this._options.fireItemStateChangedAction({name:"visible",state:e,oldState:n})}}]),t}(D.default),ne=function(){function e(t,n){o(this,e),this._$element=t,this._option=n,this.initSize=_.noop,this.update=_.noop}return s(e,[{key:"renderBox",value:function(){this._$element.css({display:C.default.stylePropPrefix("flexDirection")+"flex"}),W(this._$element.get(0),"flexDirection",$[this._option("direction")])}},{key:"renderAlign",value:function(){this._$element.css({justifyContent:this._normalizedAlign()})}},{key:"_normalizedAlign",value:function(){var e=this._option("align");return e in z?z[e]:e}},{key:"renderCrossAlign",value:function(){this._$element.css({alignItems:this._normalizedCrossAlign()})}},{key:"_normalizedCrossAlign",value:function(){var e=this._option("crossAlign");return e in N?N[e]:e}},{key:"renderItems",value:function(e){var t=C.default.stylePropPrefix("flexDirection"),n=this._option("direction");(0,k.each)(e,function(){var e=(0,c.default)(this),i=e.data(V);e.css({display:t+"flex"}).css(L[n],i.maxSize||"none").css(F[n],i.minSize||"0"),W(e.get(0),"flexBasis",i.baseSize||0),W(e.get(0),"flexGrow",i.ratio),W(e.get(0),"flexShrink",(0,b.isDefined)(i.shrink)?i.shrink:H),e.children().each(function(e,t){(0,c.default)(t).css({width:"auto",height:"auto",display:C.default.stylePropPrefix("flexDirection")+"flex",flexBasis:0}),W(t,"flexGrow",1),W(t,"flexDirection",(0,c.default)(t)[0].style.flexDirection||"column")})})}}]),e}(),ie=function(){function e(t,n){o(this,e),this._$element=t,this._option=n}return s(e,[{key:"renderBox",value:function(){this._$element.css({fontSize:0,whiteSpace:K[this._option("direction")],verticalAlign:"top"}),h.default.off(this._$element,j),h.default.on(this._$element,j,this.update.bind(this))}},{key:"renderAlign",value:function(){var e=this._$items;if(e){var t=this._option("align"),n=this.totalItemSize,i=this._option("direction"),o=this._$element[U[i]](),a=o-n,r=0;switch(this._setItemsMargins(e,i,0),t){case"start":break;case"end":r=a,e.first().css(this._chooseMarginSide(X[i]),r);break;case"center":r=.5*a,e.first().css(this._chooseMarginSide(X[i]),r),e.last().css(this._chooseMarginSide(Z[i]),r);break;case"space-between":r=.5*a/(e.length-1),this._setItemsMargins(e,i,r),e.first().css(this._chooseMarginSide(X[i]),0),e.last().css(this._chooseMarginSide(Z[i]),0);break;case"space-around":r=.5*a/e.length,this._setItemsMargins(e,i,r)}}}},{key:"_setItemsMargins",value:function(e,t,n){e.css(this._chooseMarginSide(X[t]),n).css(this._chooseMarginSide(Z[t]),n)}},{key:"renderCrossAlign",value:function(){var e=this._$items;if(e){var t=this._option("crossAlign"),n=this._option("direction"),i=this._$element[Y[n]](),o=this;switch(t){case"start":break;case"end":(0,k.each)(e,function(){var e=(0,c.default)(this),t=e[Y[n]](),a=i-t;e.css(o._chooseMarginSide(Q[n]),a)});break;case"center":(0,k.each)(e,function(){var e=(0,c.default)(this),t=e[Y[n]](),a=.5*(i-t);e.css(o._chooseMarginSide(Q[n]),a).css(o._chooseMarginSide(J[n]),a)});break;case"stretch":e.css(o._chooseMarginSide(Q[n]),0).css(o._chooseMarginSide(J[n]),0).css(Y[n],"100%")}}}},{key:"_chooseMarginSide",value:function(e){return this._option("rtlEnabled")?ee[e]||e:e}},{key:"renderItems",value:function(e){var t=this;this._$items=e;var n=this._option("direction"),i=0,o=0,a=0;(0,k.each)(e,function(e,r){var s=(0,c.default)(r);s.css({display:"inline-block",verticalAlign:"top"}),s[U[n]]("auto"),s.removeClass(q);var l=s.data(V),u=l.ratio||0,d=t._baseSize(s),h=(0,b.isDefined)(l.shrink)?l.shrink:H;i+=u,o+=h*d,a+=d});var r=this._boxSize()-a,s=function(e){var n=e.data(V),a=t._baseSize(e),s=r>=0?n.ratio||0:((0,b.isDefined)(n.shrink)?n.shrink:H)*a,l=r>=0?i:o,u=l?Math.round(r*s/l):0;return a+u},l=0;(0,k.each)(e,function(e,t){var i=(0,c.default)(t),o=(0,c.default)(t).data(V),a=s(i);l+=a,i.css(L[n],o.maxSize||"none").css(F[n],o.minSize||"0").css(U[n],a),i.addClass(q)}),this.totalItemSize=l}},{key:"_baseSize",value:function(e){var t=(0,c.default)(e).data(V);return null==t.baseSize?0:"auto"===t.baseSize?this._contentSize(e):this._parseSize(t.baseSize)}},{key:"_contentSize",value:function(e){return(0,c.default)(e)[U[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,k.each)(this._$items,function(n,i){t+=e._baseSize(i)}),t}},{key:"initSize",value:function(){this._boxSize(this._$element[U[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(M).each(function(){e===(0,c.default)(this).parent().closest(M).get(0)&&h.default.triggerHandler(this,j)})}}}]),e}(),oe=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_getDefaultOptions",value:function(){return(0,g.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(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.__proto__||Object.getPrototypeOf(t.prototype),"_defaultOptionsRules",this).call(this).concat([{device:function e(){var e=A.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||I.default.msie||t||n},options:{_layoutStrategy:"fallback"}}])}},{key:"_itemClass",value:function(){return R}},{key:"_itemDataKey",value:function(){return V}},{key:"_itemElements",value:function(){return this._itemContainer().children(this._itemSelector())}},{key:"_init",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this.$element().addClass(P+"-"+this.option("_layoutStrategy")),this._initLayout(),this._initBoxQueue()}},{key:"_initLayout",value:function(){this._layout="fallback"===this.option("_layoutStrategy")?new ie(this.$element(),this.option.bind(this)):new ne(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(P),this._layout.renderBox(),l(t.prototype.__proto__||Object.getPrototypeOf(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.__proto__||Object.getPrototypeOf(t.prototype),"_renderItems",this).call(this,e);this._queueIsNotEmpty();){var i=this._shiftItemFromQueue();this._createComponent(i.$item,t,(0,g.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.__proto__||Object.getPrototypeOf(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,c.default)():l(t.prototype.__proto__||Object.getPrototypeOf(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.__proto__||Object.getPrototypeOf(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.__proto__||Object.getPrototypeOf(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.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_itemOptions",value:function(){var e=this,n=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_itemOptions",this).call(this);return n.fireItemStateChangedAction=function(t){e._onItemStateChanged(t)},n}},{key:"repaint",value:function(){this._dimensionChanged()}}]),t}(B.default);oe.ItemClass=te,(0,f.default)("dxBox",oe),e.exports=oe},function(e,t,n){e.exports=n(538)},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(15),s=n(33),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("<div>"),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,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,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")}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(2),s=i(r),l=n(38),u=i(l),c=n(6),d=n(32),h={moveTo:function(e){var t=e.$element,n=e.position,i=e.direction||"left",o={},a=void 0;"right"===i&&(o.transform="translate("+n+"px, 0px)",a="custom"),"left"===i&&(o.left=n,a="slide"),"top"!==i&&"bottom"!==i||(o.top=n,a="slide"),u.default.animate(t,{type:a,to:o,duration:e.duration,complete:e.complete})},margin:function e(t){var n=t.$element,e=t.margin,i=t.direction||"left",o={};o["margin"+(0,d.camelize)(i,!0)]=e,u.default.animate(n,{to:o,duration:t.duration,complete:t.complete})},fade:function(e,t,n,i){u.default.animate(e,{type:"fade",to:t.to,from:t.from,duration:n,complete:i})},size:function e(t){var n=t.$element,e=t.size,i=t.direction||"left",o=t.marginTop||0,a=t.duration,r={};"right"===i||"left"===i?r.width=e:r.height=e,"bottom"===i&&(r.marginTop=o),u.default.animate(n,{to:r,duration:a,complete:t.complete})},complete:function(e){u.default.stop(e,!0)}},p=function(){function e(t){o(this,e),this._drawer=t}return a(e,[{key:"getDrawerInstance",value:function(){return this._drawer}},{key:"renderPanel",value:function(e,t){e&&e.render({container:this.getDrawerInstance().content(),onRendered:function(){t.resolve()}})}},{key:"renderPosition",value:function(e,t){var n=this.getDrawerInstance(),i=n.option("revealMode");this.prepareAnimationDeferreds(t);var o=this.getPositionRenderingConfig(e);this.useDefaultAnimation()?this.defaultPositionRendering(o,e,t):("slide"===i&&this.slidePositionRendering(o,e,t),"expand"===i&&this.expandPositionRendering(o,e,t))}},{key:"prepareAnimationDeferreds",value:function(e){var t=this.getDrawerInstance();this._contentAnimation=new c.Deferred,this._panelAnimation=new c.Deferred,this._shaderAnimation=new c.Deferred,t._animations.push(this._contentAnimation,this._panelAnimation,this._shaderAnimation),e?c.when.apply(s.default,t._animations).done(function(){t._animationCompleteHandler()}):t.resizeContent()}},{key:"getPositionRenderingConfig",value:function(e){var t=this.getDrawerInstance();return{direction:t.getDrawerPosition(),$panel:(0,s.default)(t.content()),$content:(0,s.default)(t.viewContent()),defaultAnimationConfig:this._defaultAnimationConfig(),size:this._getPanelSize(e)}}},{key:"useDefaultAnimation",value:function(){return!1}},{key:"_elementsAnimationCompleteHandler",value:function(){this._contentAnimation.resolve(),this._panelAnimation.resolve()}},{key:"_defaultAnimationConfig",value:function(){var e=this;return{complete:function(){e._elementsAnimationCompleteHandler()}}}},{key:"_getPanelOffset",value:function(e){var t=this.getDrawerInstance(),n=t.isHorizontalDirection()?t.getRealPanelWidth():t.getRealPanelHeight();return e?-(n-t.getMaxSize()):-(n-t.getMinSize())}},{key:"_getPanelSize",value:function(e){return e?this.getDrawerInstance().getMaxSize():this.getDrawerInstance().getMinSize()}},{key:"renderShaderVisibility",value:function(e,t,n){var i=this,o=this._getFadeConfig(e),a=this.getDrawerInstance();t?h.fade((0,s.default)(a._$shader),o,n,function(){i._drawer._toggleShaderVisibility(e),i._shaderAnimation.resolve()}):(a._toggleShaderVisibility(e),a._$shader.css("opacity",o.to))}},{key:"_getFadeConfig",value:function(e){return e?{to:1,from:0}:{to:0,from:1}}},{key:"getPanelContent",value:function(){return(0,s.default)(this.getDrawerInstance().content())}},{key:"getWidth",value:function(){return this.getDrawerInstance().$element().get(0).getBoundingClientRect().width}},{key:"setPanelSize",value:function(e){var t=this.getDrawerInstance(),n=this._getPanelSize(t.option("opened"));t.isHorizontalDirection()?(0,s.default)(t.content()).width(e?t.getRealPanelWidth():n):(0,s.default)(t.content()).height(e?t.getRealPanelHeight():n)}},{key:"needOrderContent",value:function(){return!1}}]),e}();e.exports=p,e.exports.animation=h},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(16),r=n(9),s=n(0).extend,l=n(18),u=n(34),c=n(138),d=n(86),h=n(101),p=n(31),f=n(134),g="dx-dropdownmenu",_="dx-dropdownmenu-popup",m="dx-dropdownmenu-popup-wrapper",v="dx-dropdownmenu-list",y="dx-dropdownmenu-button",x={
27popupWidth:"width",popupHeight:"height",popupMaxHeight:"maxHeight",popupAutoResizeEnabled:"autoResizeEnabled"},b={buttonIcon:"icon",buttonText:"text",buttonWidth:"width",buttonHeight:"height",buttonTemplate:"template"},w=l.inherit({_supportedKeys:function(){var e={};return this.option("opened")&&this._list.option("focusedElement")||(e=this._button._supportedKeys()),s(this.callBase(),e,{tab:function(){this._popup&&this._popup.hide()}})},_getDefaultOptions:function(){return s(this.callBase(),{items:[],onItemClick:null,dataSource:null,itemTemplate:"item",buttonText:"",buttonIcon:"overflow",buttonWidth:void 0,buttonHeight:void 0,buttonTemplate:"content",onButtonClick:null,usePopover:!1,popupWidth:"auto",popupHeight:"auto",activeStateEnabled:!0,hoverStateEnabled:!0,opened:!1,deferRendering:!1,popupPosition:{my:"top center",at:"bottom center",collision:"fit flip",offset:{v:1}},popupAnimation:void 0,onItemRendered:null,menuWidget:h,popupMaxHeight:void 0,closeOnClick:!0,useInkRipple:!1,container:void 0,popupAutoResizeEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{usePopover:!0}},{device:{platform:"generic"},options:{popupPosition:{offset:{v:4}}}},{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:{platform:"android"},options:{popupPosition:{my:"top "+(this.option("rtlEnabled")?"left":"right"),at:"top "+(this.option("rtlEnabled")?"left":"right"),collision:"flipfit"},popupAnimation:{show:{type:"pop",duration:200,from:{scale:0},to:{scale:1}},hide:{type:"pop",duration:200,from:{scale:1},to:{scale:0}}}}},{device:function(){return p.isMaterial()},options:{useInkRipple:!0}}])},_initOptions:function(e){"android"===a.current().platform&&(e.popupPosition||(e.popupPosition={at:(e.usePopover?"bottom ":"top ")+(e.rtlEnabled?"left":"right")})),this.callBase(e)},_dataSourceOptions:function(){return{paginate:!1}},_init:function(){this.callBase(),this.$element().addClass(g),this._initDataSource(),this._initItemClickAction(),this._initButtonClickAction()},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initButtonClickAction:function(){this._buttonClickAction=this._createActionByOption("onButtonClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new f("content",this)},_initMarkup:function(){this._renderButton(),this.callBase()},_render:function(){this.callBase(),this.setAria({role:"menubar",haspopup:!0,expanded:this.option("opened")})},_renderContentImpl:function(){this.option("opened")&&this._renderPopup()},_clean:function(){this._cleanFocusState(),this._popup&&(this._popup.$element().remove(),delete this._$popup)},_renderButton:function(){var e=this.$element().addClass(y),t=this._buttonOptions();this._button=this._createComponent(e,u,t)},_toggleActiveState:function(e,t,n){this._button._toggleActiveState(e,t,n)},_buttonOptions:function(){return{text:this.option("buttonText"),icon:this.option("buttonIcon"),width:this.option("buttonWidth"),height:this.option("buttonHeight"),useInkRipple:this.option("useInkRipple"),template:this.option("buttonTemplate"),focusStateEnabled:!1,onClick:function(e){this.option("opened",!this.option("opened")),this._buttonClickAction(e)}.bind(this)}},_toggleMenuVisibility:function(e){var t=void 0===e?!this._popup.option("visible"):e;e&&this._renderPopup(),this._popup.toggle(t),this.setAria("expanded",t)},_renderPopup:function(){if(!this._$popup){var e=this._$popup=i("<div>").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(b[t],n),this._renderPopup();break;case"popupWidth":case"popupHeight":case"popupMaxHeight":case"popupAutoResizeEnabled":this._popup.option(x[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(66),s=n(0).extend,l=n(3).map,u=n(174),c=n(99),d=n(557),h=n(9),p="dx-validator",f=r.inherit({_getDefaultOptions:function(){return s(this.callBase(),{validationRules:[]})},_init:function(){this.callBase(),this._initGroupRegistration(),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.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()},_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};t.reset(),this._resetValidationRules(),this._applyValidationResult(n,t)},_applyValidationResult:function(e,t){var n=this._createActionByOption("onValidated");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){var i=n(2),o=n(5),a=n(16),r=n(9),s=n(34),l=n(72),u=n(8),c=n(0).extend,d=n(1).isPlainObject,h=n(24),p=n(3),f=n(316),g=n(31),_=n(89),m=n(94),v=n(191).default,y=n(62),x=n(65),b="dx-tabs",w="dx-tabs-wrapper",C="dx-tabs-expanded",k="dx-tabs-stretched",S="dx-tabs-scrollable",I="dx-tabs-nav-buttons",T="dx-overflow-hidden",D="dx-tab",E="dx-tab-selected",A="dx-tabs-nav-button",O="dx-tabs-nav-button-left",B="dx-tabs-nav-button-right",P="dx-tab-text",M="dxTabData",R="chevronnext",V="chevronprev",F=100,L=5,H=300,z=30,N=v.inherit({_activeStateUnit:"."+D,_getDefaultOptions:function(){return c(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=g.current();return this.callBase().concat([{device:function(){return"generic"!==a.real().platform},options:{showNavButtons:!1}},{device:{platform:"generic"},options:{scrollByContent:!1}},{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return g.isMaterial(e)},options:{useInkRipple:!0,selectOnFocus:!1}}])},_init:function(){this.callBase(),this.setAria("role","tablist"),this.$element().addClass(b),this._renderWrapper(),this._renderMultiple(),this._feedbackHideTimeout=F},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new x(function(e,t){d(t)?this._prepareDefaultItemTemplate(t,e):e.text(String(t));var n=y.getImageContainer(t.icon);e.wrapInner(i("<span>").addClass(P)),n&&n.prependTo(e)}.bind(this),["text","html","icon"],this.option("integrationOptions.watchMethod"))},_itemClass:function(){return D},_selectedItemClass:function(){return E},_itemDataKey:function(){return M},_initMarkup:function(){this.callBase(),this.setAria("role","tab",this.itemElements()),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass(T)},_render:function(){this.callBase(),this._renderScrolling()},_renderScrolling:function(){var e=[k,C,T];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(k),this.$element().removeClass(I).addClass(C))},_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=[];p.each(e,function(e,t){n.push(i(t).outerWidth(!0))});var o=Math.max.apply(null,n);return o>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=l.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=i("<div>").addClass(w),this.$element().append(this._$wrapper)},_itemContainer:function(){return this._$wrapper},_renderScrollable:function(){var e=this.$element().wrapInner(i("<div>").addClass(S)).children();this._scrollable=this._createComponent(e,m,{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(I,this.option("showNavButtons")),this.option("showNavButtons")){var e=this.option("rtlEnabled");this._leftButton=this._createNavButton(-z,e?R:V);var t=this._leftButton.$element();t.addClass(O),this.$element().prepend(t),this._rightButton=this._createNavButton(z,e?V:R);var n=this._rightButton.$element();n.addClass(B),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,a=n._createAction(function(){n._holdInterval=setInterval(function(){n._updateScrollPosition(e,L)},L)}),r=u.addNamespace(_.name,"dxNavButton"),l=u.addNamespace(h.up,"dxNavButton"),c=u.addNamespace(h.out,"dxNavButton"),d=this._createComponent(i("<div>").addClass(A),s,{focusStateEnabled:!1,icon:t,onClick:function(){n._updateScrollPosition(e,1)},integrationOptions:{}}),p=d.$element();return o.on(p,r,{timeout:H},function(e){a({event:e})}.bind(this)),o.on(p,l,function(){n._clearInterval()}),o.on(p,c,function(){n._clearInterval()}),d},_clearInterval:function(){this._holdInterval&&clearInterval(this._holdInterval)},_renderSelection: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)}}});N.ItemClass=f,r("dxTabs",N),e.exports=N,e.exports.getTabsExpandedClass=C},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(337),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||Ae[e.dataType];return pe.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<e.length;n++)Array.isArray(e[n])||(e[n]=t)};return t=o(t),a(i,t),e}function c(e,t){var n=h(e);return t.filter(function(e){return e.value===n})[0]}function d(e){if(D(e))return Ie;for(var t="",n=0;n<e.length;n++){var i=e[n];if(!Array.isArray(i)){if(t&&t!==i)throw new re.errors.Error("E4019");"!"!==i&&(t=i)}}return t}function h(e){var t=r(e),n=d(t);return n||(n=Ie),t!==e&&(n="!"+n),n}function p(e){return e.lookup&&Oe||Ee[e.dataType||ke]}function f(e){return Array.isArray(e)&&e.length}function g(e){var t=f(e.filterOperations)?e.filterOperations:p(e);return(0,fe.extend)([],t)}function _(e,t){var n=Ce.default.getNameByFilterOperation(e);return t&&t[n]?t[n]:n}function m(e,t){for(var n=0;n<t.length;n++)if(t[n].value===e)return t[n];throw new ue.default.Error("E1048",e)}function v(e,t){var n=e.filter(function(e){return e.name===t});return n.length?n[0]:null}function y(e,t,n){var i=g(e);return n.forEach(function(t){if(!e.filterOperations&&i.indexOf(t.name)===-1){var n=t&&t.dataTypes;n&&n.indexOf(e.dataType||ke)>=0&&i.push(t.name)}}),i.map(function(e){var i=v(n,e);return i?{icon:i.icon||Se,text:i.caption||_e.default.captionize(i.name),value:i.name,isCustom:!0}:{icon:Ce.default.getIconByFilterOperation(e)||Se,text:_(e,t),value:e}})}function x(e){return e.defaultFilterOperation||g(e)[0]}function b(e,t){var n=[e.dataField,"",""],i=x(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;n<t.length;n++){if(t[n].name===e)return t[n];if(t[n].dataField.toLowerCase()===e.toLowerCase())return t[n]}var i=j(t,!0).filter(function(t){return t.dataField.toLowerCase()===e.toLowerCase()});if(i.length>0)return i[0];throw new ue.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()||Ie,i=[],o=0;o<e.length;o++)T(e[o])?(i.push(B(e[o],t)),i.push(n)):D(e[o])&&(i.push(O(e[o],t)),i.push(n));return 0===i.length&&i.push(n),i}function A(e,t){var n=v(t,e[1]);return n&&n.name===e[1]}function O(e,t){return A(e,t)?e:(e.length<3&&(e[2]=e[1],e[1]=Te),e)}function B(e,t){return e?(e=(0,fe.extend)(!0,[],e),D(e)?[O(e,t),Ie]:a(e)?["!",D(e[1])?[O(e[1],t),Ie]:a(e[1])?[B(e[1],t),Ie]:E(e[1],t)]:E(e,t)):[Ie]}function P(e){return e.reduce(function(e,t){if((0,se.isDefined)(t.dataField)){var n={};for(var i in t)t[i]&&Be.indexOf(i)>-1&&(n[i]=t[i]);n.defaultCalculateFilterExpression=de.default.defaultCalculateFilterExpression,(0,se.isDefined)(n.dataType)||(n.dataType=ke),e.push(n)}return e},[])}function M(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.calculateFilterExpression?o.calculateFilterExpression.apply(o,[a[2],a[1],i]):o.defaultCalculateFilterExpression.apply(o,[a[2],a[1],i])}function R(e,t,n,i){if(!(0,se.isDefined)(e))return null;if(a(e)){var o=R(e[1],t,n,i);return["!",o]}var s=r(e);if(D(s))return M(s,t,n,i)||null;for(var l=void 0,u=h(s),c=[],d=0;d<s.length;d++)T(s[d])?(l=R(s[d],t,n,i),l&&(d&&c.push(u),c.push(l))):D(s[d])&&(l=M(s[d],t,n,i),l&&(d&&c.push(u),c.push(l)));return c.length?c:null}function V(e){var t,n=r(e);if(0===n.length)return null;var i=[];for(t=0;t<n.length;t++)if(T(n[t])){var o=V(n[t]);o?n[t]=o:i.push(n[t])}else D(n[t])&&(Z(n[t])||i.push(n[t]));for(t=0;t<i.length;t++)w(n,i[t]);return 1===n.length?null:(n.splice(n.length-1,1),1===n.length&&(e=s(e,n[0])),0===e.length?null:e)}function F(e,t,n){if(""===t)return void n("");var i=e.lookup;if(i.items)n(i.calculateCellValue(t)||"");else{var o=new be.DataSource(i.dataSource);o.loadSingle(i.valueExpr,t).done(function(e){n(e?i.displayExpr?e[i.displayExpr]:e:"")}).fail(function(){n("")})}}function L(e,t,n,i){var a;return a=t===!0?e.trueText||xe.default.format("dxDataGrid-trueText"):t===!1?e.falseText||xe.default.format("dxDataGrid-falseText"):o(e,t),e.customizeText&&(a=e.customizeText.call(e,{value:t,valueText:a,target:i})),n&&n.customizeText&&(a=n.customizeText.call(n,{value:t,valueText:a,field:e,target:i})),a}function H(e,t,n,i){return t.map(function(t){return L(e,t,n,i)})}function z(e){return""===e||null===e}function N(e,t,n){var i=arguments.length>3&&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=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.some(function(e){return!z(e)})?t.map(function(e){return z(e)?"?":e}):"";o.resolve(i)}),o}return L(e,t,n,i)}function $(e,t){return e.some(function(e){return e.dataField===t})}function W(e,t,n){var i=n.dataField;q(i)&&(n.parentId=K(i),$(t,n.parentId)||$(e,n.parentId)||W(e,t,{dataType:"object",dataField:n.parentId,caption:G(n.parentId,!0),filterOperations:["isblank","isnotblank"]})),t.push(n)}function G(e,t){var n="";if(t)e=e.substring(e.lastIndexOf(".")+1);else if(q(e))return e.split(".").forEach(function(e,t,i){n+=_e.default.captionize(e),t!==i.length-1&&(n+=".")}),n;return _e.default.captionize(e)}function j(e,t){for(var n=[],i=0;i<e.length;i++){var o=(0,fe.extend)(!0,{caption:G(e[i].dataField,t)},e[i]);t?W(e,n,o):n.push(o)}return n}function q(e){return e.lastIndexOf(".")!==-1}function K(e){return e.substring(0,e.lastIndexOf("."))}function U(e,t){if(q(e.dataField))for(var n=K(e.dataField),i=0;i<t.length;i++)if(t[i].dataField===n)return U(t[i],t)+"."+e.caption;return e.caption}function Y(e,t,n){var i=v(n,t);return i?(i.hasValue===!1?(e[1]=t,e.length=2):(e[1]=t,e[2]=""),e):("isblank"===t?(e[1]=Te,e[2]=null):"isnotblank"===t?(e[1]=De,e[2]=null):(i=v(n,e[1]),(i||2===e.length||null===e[2])&&(e[2]=""),e[1]=t),e)}function X(e){var t;return t=null===e[2]?e[1]===Te?"isblank":"isnotblank":e[1]}function Z(e){return""!==e[2]}function Q(e,t){var n=(0,fe.extend)(!0,[],e),i=-1;return n.some(function(e,t){if("between"===e.name)return i=t,!0}),i!==-1?n[i]=(0,fe.extend)(ve.default.getConfig(t),n[i]):n.unshift(ve.default.getConfig(t)),n}function J(e,t){return e[0]===t}function ee(e,t){if(!e||0===e.length)return null;if(D(e)){var n=J(e,t);return n?null:e}return te(e,[t],!1)}function te(e,t,n){var i=[];return e.forEach(function(e){D(e)?J(e,t[0])?n?(i.push(t),n=!1):i.splice(i.length-1,1):i.push(e):(i.length||T(e))&&i.push(e)}),0===i.length?null:(n&&(i.push(Ie),i.push(t)),1===i.length?i[0]:i)}function ne(e,t){if(null===e||0===e.length)return t;if(D(e))return J(e,t[0])?t:[e,Ie,t];var n=h(e);return n!==Ie?[t,"and",e]:te(e,t,!0)}function ie(e,t){if(null===e||0===e.length)return[];if(D(e))return J(e,t)?[e]:[];var n=h(e);if(n!==Ie)return[];var i=e.filter(function(e){return D(e)&&J(e,t)});return i}function oe(e,t){return null!==e&&0!==e.length&&(D(e)?e[0]===t:e.some(function(e){return(D(e)||T(e))&&oe(e,t)}))}var ae=n(6),re=n(35),se=n(1),le=n(17),ue=i(le),ce=n(165),de=i(ce),he=n(63),pe=i(he),fe=n(0),ge=n(32),_e=i(ge),me=n(631),ve=i(me),ye=n(14),xe=i(ye),be=n(44),we=n(632),Ce=i(we),ke="string",Se="icon-none",Ie="and",Te="=",De="<>",Ee={number:["=","<>","<",">","<=",">=","isblank","isnotblank"],string:["contains","notcontains","startswith","endswith","=","<>","isblank","isnotblank"],date:["=","<>","<",">","<=",">=","isblank","isnotblank"],datetime:["=","<>","<",">","<=",">=","isblank","isnotblank"],"boolean":["=","<>","isblank","isnotblank"],object:["isblank","isnotblank"]},Ae={date:"shortDate",datetime:"shortDateShortTime"},Oe=["=","<>","isblank","isnotblank"],Be=["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=b,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=x,t.getCurrentValueText=N,t.getCurrentLookupValueText=F,t.getFilterOperations=g,t.getCaptionByOperation=_,t.getOperationValue=X,t.getFilterExpression=R,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(44),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),x=i(y),b=n(79),w=i(b),C=n(32),k=n(684),S=n(685),I=i(S),T=n(380),D=n(686),E=n(78),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=x.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,o;return(0,f.isPlainObject)(t)&&t.load?i=e(t,n):(t&&!t.store&&(t={store:t}),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 x.default&&(i=o)),i}function n(e,t,n){for(var i=0;i<n;i++)if(!e[i]||!t[i]||e[i].index!==t[i].index)return!1;return!0}function i(e,t,i,o){var a=[],r=t&&t[i]||[],s=o&&o[i]||[];return(0,E.foreachTree)(e[i],function(e){var t=e[0],i=(0,E.createPath)(e);t.children&&r[i.length-1]&&!r[i.length-1].expanded&&i.length<r.length&&(!o||n(r,s,i.length))&&a.push(i.slice())},!0),a}function o(e,t,n,i){return t?(0,m.each)(i,function(i,o){if(n)e[o]=t[o];else{if(("summaryType"===o||"summaryDisplayMode"===o)&&void 0===t[o])return;(0,E.setFieldProperty)(e,o,t[o])}}):a(e,i),e}function d(e,t){var n=[];return(0,m.each)(e,function(e,i){n.push(o({dataField:i.dataField,name:i.name},i,!0,t))}),n}function y(e){return e.name?e.name:e.dataField+""}function b(e,t){var n=[];return(0,m.each)(e||[],function(e,i){y(i)===t&&n.push(i)}),n}function w(e,t){return e=e||[],(0,m.each)(t,function(t,n){o(n,e[t],!1,O),r(n,B)}),t}function C(e,t){e=e||[];var n,i={};return(0,m.each)(t,function(e,o){n=y(o),i[n]||(i[n]=b(t,y(o)))}),(0,m.each)(i,function(t,n){w(b(e,t),n)}),t}function S(e,t){return e.filter(function(e){return e.groupName===t.groupName&&(0,f.isNumeric)(e.groupIndex)&&e.visible!==!1}).map(function(e){return(0,g.extend)(e,{areaIndex:t.areaIndex,area:t.area,expanded:(0,f.isDefined)(e.expanded)?e.expanded:t.expanded,dataField:e.dataField||t.dataField,dataType:e.dataType||t.dataType,sortBy:e.sortBy||t.sortBy,sortOrder:e.sortOrder||t.sortOrder,sortBySummaryField:e.sortBySummaryField||t.sortBySummaryField,sortBySummaryPath:e.sortBySummaryPath||t.sortBySummaryPath,visible:e.visible||t.visible,showTotals:(0,f.isDefined)(e.showTotals)?e.showTotals:t.showTotals,showGrandTotals:(0,f.isDefined)(e.showGrandTotals)?e.showGrandTotals:t.showGrandTotals})}).sort(function(e,t){return e.groupIndex-t.groupIndex})}function M(e){e.sort(function(e,t){return e.areaIndex-t.areaIndex||e.groupIndex-t.groupIndex})}function R(e,t){var n="data"===t||e.visible!==!1;return e.area===t&&!(0,f.isDefined)(e.groupIndex)&&n}function V(e,t){var n=e.groupName||"";return(e.dataField||n)+(e.groupInterval?n+e.groupInterval:"NOGROUP")+(t?"":n)}function F(e,t,n){var i=[],o={},r={},s=[],l=(0,E.getFieldsDataType)(e);return t?((0,m.each)(t,function(e,t){o[V(t,n)]=t}),(0,m.each)(e,function(e,t){var s,u=V(t,n),c=o[u]||r[u];c?(c._initProperties&&a(c,P),s=(0,g.extend)({},c,t,{_initProperties:null})):o[u]=s=t,(0,g.extend)(s,{dataType:l[t.dataField]}),delete o[u],r[u]=c,i.push(s)}),n&&(0,m.each)(o,function(e,t){i.push(t)})):i=e,i.push.apply(i,s),i}function L(e){var t,n=new v.Deferred,i=e._store,o=i&&i.getFields(e._fields);return(0,v.when)(o).done(function(i){e._storeFields=i,t=F(e._fields,i,e._retrieveFields),n.resolve(t)}).fail(n.reject),n}function H(e,t){var n=null,i=(t||[]).join(".");return i.length&&(0,E.foreachTree)(e,function(e){var t=e[0],o=(0,E.createPath)(e).join("."),a=(0,m.map)(e,function(e){return e.text}).reverse().join(".");if(i===o||t.key&&a===i)return n=e[0].index,!1}),n}function z(e,t,n,i){var o=t.values,a=(0,E.findField)(n.values,e.sortBySummaryField),r="rows"===i,s=r?t.columns:t.rows,l=r?t.grandTotalRowIndex:t.grandTotalColumnIndex,u=e.sortBySummaryPath||[],c=u.length?H(s,u):l;if(o&&o.length&&a>=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={};
28return(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(){R(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,o,a=-1;if(t)for(i=0;i<t.length;i++)o=t[i],void 0!==o.index&&(a=Math.max(a,o.index)),o.children?a=Math.max(a,e(o.children)):o.collapsedChildren&&(a=Math.max(a,e(o.collapsedChildren)));return(0,f.isDefined)(n)&&(a=Math.max(a,n)),a},Z=function(e,t,n,i){var o,a=X(n)+1,r=X(e,i)+1,s=[],l=!1,u=new v.Deferred;if(t.children&&t.children.length===n.length)for(var c=0;c<n.length;c++){var d=n[c];void 0!==d.index&&(void 0===t.children[c].index?(d.index=s[d.index]=r++,t.children[c]=d):s[d.index]=t.children[c].index)}else{for(l=!0,o=0;o<a;o++)s[o]=r++;t.children=n}return(0,v.when)((0,E.foreachTreeAsync)(t.children,function(e){l&&(e[0].index=s[e[0].index])})).done(function(){u.resolve(s)}),u},Q=function(e,t,n){var i=new v.Deferred,o=n>=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,s,l,u,c=e.values;if(t)for(o=0;o<=t.length;o++)if(r=t[o],l=n[o],(0,f.isDefined)(l)||(l=e.grandTotalRowIndex),r&&(0,f.isDefined)(l))for(c[l]||(c[l]=[]),a=0;a<=r.length;a++)s=r[a],u=i[a],(0,f.isDefined)(u)||(u=e.grandTotalColumnIndex),(0,f.isDefined)(s)&&(0,f.isDefined)(u)&&(c[l][u]=s)};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,i=[];return t||"data"===e?(i=U(this._fields,e),M(i)):(n=this._descriptions||{},i=n[A[e]]||[]),i},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,o=this,a=o._fields,e=a&&a[(0,f.isNumeric)(t)?t:(0,E.findField)(a,t)];return e&&n&&((0,m.each)(n,function(t,n){var o=(0,_.inArray)(t,O)<0;if((0,E.setFieldProperty)(e,t,n,o),"sortOrder"===t){i=e.levels||[];for(var a=0;a<i.length;a++)i[a][t]=n}}),r(e,B),o._descriptions=o._createDescriptions(e),o._isFieldsModified=!0,o.fireEvent("fieldChanged",[e])),e},getFieldValues:function(e,t,n){var i,o=this,a=this._fields&&this._fields[e],r=this.store(),s=[],l={columns:s,rows:[],values:this.getAreaFields("data"),filters:t?this._fields.filter(function(e){return e!==a&&e.area&&e.filterValues&&e.filterValues.length}):[],skipValues:!0},u=new v.Deferred;return n&&(i=n.searchValue,l.columnSkip=n.skip,l.columnTake=n.take),a&&r?((0,m.each)(a.levels||[a],function(){s.push((0,g.extend)({},this,{expanded:!0,filterValues:null,sortOrder:"asc",sortBySummaryField:null,searchValue:i}))}),r.load(l).done(function(e){l.columnSkip&&(e.columns=e.columns.slice(l.columnSkip)),l.columnTake&&(e.columns=e.columns.slice(0,l.columnTake)),q(l,e),l.columnTake||o._sort(l,e),u.resolve(e.columns)}).fail(u)):u.reject(),u},reload:function(){return this.load({reload:!0})},filter:function(){var e=this._store;return e.filter.apply(e,arguments)},load:function(e){function t(){n._delayedLoadTask=void 0,n._descriptions?n._loadCore(e,i):(0,v.when)(L(n)).done(function(t){n._fieldsPrepared(t),n._loadCore(e,i)}).fail(i.reject).fail(n._loadErrorHandler)}var n=this,i=new v.Deferred;return e=e||{},n.beginLoading(),i.fail(function(e){n.fireEvent("loadError",[e])}).always(function(){n.endLoading()}),n.store()?n._delayedLoadTask=(0,p.executeAsync)(t):t(),i},createDrillDownDataSource:function(e){return this._store.createDrillDownDataSource(this._descriptions,e)},_createDescriptions:function(e){var t=this,n=t.fields(),i={rows:[],columns:[],values:[],filters:[]};(0,m.each)(["row","column","data","filter"],function(t,i){(0,_.normalizeIndexes)(U(n,i),"areaIndex",e)}),(0,m.each)(n||[],function(e,t){var o=A[t.area],a=i[o],r=t.groupName;r&&!(0,f.isNumeric)(t.groupIndex)&&(t.levels=S(n,t)),!a||r&&(0,f.isNumeric)(t.groupIndex)||t.visible===!1&&"data"!==t.area&&"filter"!==t.area||(t.levels&&a!==i.filters&&a!==i.values?(a.push.apply(a,t.levels),t.filterValues&&t.filterValues.length&&i.filters.push(t)):a.push(t))}),(0,m.each)(i,function(e,t){M(t)});var o={};return(0,m.each)(i.values,function(e,t){var a=t.calculateSummaryValue;if((0,f.isFunction)(a)){var r=(0,D.createMockSummaryCell)(i,n,o);a(r)}}),i},_fieldsPrepared:function(e){var t=this;t._fields=e,(0,m.each)(e,function(e,t){t.index=e,r(t,P)});var n=d(e,["caption"]);t.fireEvent("fieldsPrepared",[e]);for(var i=0;i<e.length;i++)e[i].caption!==n[i].caption&&(0,E.setFieldProperty)(e[i],"caption",e[i].caption,!0);t._descriptions=t._createDescriptions()},isLoading:function(){return this._loadingCount>0},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,n=this.isLoading();this._loadingCount+=e,t=this.isLoading(),n^t&&this.fireEvent("loadingChanged",[t])},_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<e[o]+e[i];d++)r[d]&&l.push(r[d].index);return l.every(function(e){if(void 0!==e)return"row"===t?(a[e]||[])[n]:(a[n]||[])[e]})},_processPagingCacheByArea:function(e,t,n){var i,o=n+"Take",a=n+"Skip",r=this._data[n+"s"],s="row"===n?"column":"row";if(e[o]){if(e.path&&e.area===n){var l=Y(r,e.path);r=l&&l.children||[]}if(e.oppositePath&&e.area===s){var u=Y(r,e.oppositePath);r=u&&u.children||[]}do if(i=r[e[a]],i&&void 0!==i.index){if(!this._hasPagingValues(e,s,i.index))break;e[a]++,e[o]--}while(i&&void 0!==i.index&&e[o]);if(e[o]){var c=Math.floor(e[a]/t)*t,d=Math.ceil((e[a]+e[o])/t)*t;e[a]=c,e[o]=d-c}}},_processPagingCache:function(e){var t=this._pageSize;if(!(t<0))for(var n=0;n<e.length;n++)this._processPagingCacheByArea(e[n],t,"row"),this._processPagingCacheByArea(e[n],t,"column")},_loadCore:function(e,t){var n=this,o=this._store,a=this._descriptions,r=e.reload||this.paginate()&&n._isFieldsModified,s=this.paginate(),l=A[e.area];if(e=e||{},o){(0,g.extend)(e,a),e.columnExpandedPaths=e.columnExpandedPaths||i(this._data,e,"columns",n._lastLoadOptions),e.rowExpandedPaths=e.rowExpandedPaths||i(this._data,e,"rows",n._lastLoadOptions),s&&(e.pageSize=this._pageSize),l&&(e.headerName=l),n.beginLoading(),t.always(function(){n.endLoading()});var c=[e];if(n.fireEvent("customizeStoreLoadOptions",[c,r]),r||n._processPagingCache(c),c=c.filter(function(e){return!(e.rows.length&&0===e.rowTake||e.columns.length&&0===e.columnTake)}),!c.length)return void n._update(t);var d=c.map(function(e){return o.load(e)});v.when.apply(null,d).done(function(){for(var e=arguments,i=0;i<e.length;i++){var o=c[i],a=e[i],l=i===e.length-1;o.path?n.applyPartialDataSource(o.area,o.path,a,!!l&&t,o.oppositePath):s&&!r&&u(n._data)?n.mergePartialDataSource(a,!!l&&t):((0,g.extend)(n._data,a),n._lastLoadOptions=o,n._update(!!l&&t))}}).fail(t.reject)}else n._update(t)},_sort:function(e,t,n){var i=this._store;i&&!this._paginate&&G(e,t,n)},paginate:function(){return this._paginate&&this._store&&this._store.supportPaging()},isEmpty:function(){var e=this.getAreaFields("data"),t=this.getData();return!e.length||!t.values.length},_update:function(e){var t=this,n=t._descriptions,i=t._data,o=n.values,a=s(o);return(0,v.when)(q(n,i),K(i.rows),K(i.columns)).done(function(){a&&(t._sort(n,i,a),!t.isEmpty()&&(0,D.applyDisplaySummaryMode)(n,i)),t._sort(n,i),!t.isEmpty()&&l(o)&&(0,D.applyRunningTotal)(n,i),t._data=i,e!==!1&&(0,v.when)(e).done(function(){t._isFieldsModified=!1,t.fireEvent("changed"),(0,f.isDefined)(t._data.grandTotalRowIndex)&&(i.grandTotalRowIndex=t._data.grandTotalRowIndex),(0,f.isDefined)(t._data.grandTotalColumnIndex)&&(i.grandTotalColumnIndex=t._data.grandTotalColumnIndex)}),e&&e.resolve(t._data)}),e},store:function(){return this._store},collapseHeaderItem:function(e,t){var n=this,i="column"===e?n._data.columns:n._data.rows,o=Y(i,t),a=n.getAreaFields(e)[t.length-1];return!(!o||!o.children)&&(n.fireEvent("expandValueChanging",[{area:e,path:t,expanded:!1}]),a&&(a.expanded=!1),o.collapsedChildren=o.children,delete o.children,n._update(),n.paginate()&&n.load(),!0)},collapseAll:function(e){var t=this,n=!1,i=this.field(e)||{},o=[(0,_.inArray)(i,this.getAreaFields(i.area))];i.expanded=!1,i&&i.levels&&(o=[],i.levels.forEach(function(e){o.push((0,_.inArray)(e,t.getAreaFields(i.area))),e.expanded=!1})),(0,E.foreachTree)(this._data[i.area+"s"],function(e){var t=e[0],i=(0,E.createPath)(e);t&&t.children&&o.indexOf(i.length-1)!==-1&&(t.collapsedChildren=t.children,delete t.children,n=!0)},!0),n&&this._update()},expandAll:function(e){var t=this.field(e);t&&t.area&&(t.expanded=!0,t&&t.levels&&t.levels.forEach(function(e){e.expanded=!0}),this.load())},expandHeaderItem:function(e,t){var n,i,o=this,a="column"===e?o._data.columns:o._data.rows,r=Y(a,t);return!(!r||r.children)&&(n=!!r.collapsedChildren,i={area:e,path:t,expanded:!0,needExpandData:!n},o.fireEvent("expandValueChanging",[i]),n?(r.children=r.collapsedChildren,delete r.collapsedChildren,o._update()):o.load(i),n)},mergePartialDataSource:function(e,t){var n,i,o=this,a=o._data;e&&e.values&&(e.rows=e.rows||[],e.columns=e.columns||[],n=Q(a.rows,e.rows,a.grandTotalColumnIndex),i=Q(a.columns,e.columns,a.grandTotalColumnIndex),(0,v.when)(n,i).done(function(n,i){(n.length||i.length)&&J(a,e.values,n,i),o._update(t)}))},applyPartialDataSource:function(e,t,n,i,o){var a,r,s,l,u=this,c=u._data,d="column"===e?c.columns:c.rows,h="column"===e?c.rows:c.columns;n&&n.values&&(n.rows=n.rows||[],n.columns=n.columns||[],a=Y(d,t),r=o&&Y(h,o),a&&("column"===e?(l=Z(d,a,n.columns,c.grandTotalColumnIndex),s=r?Z(h,r,n.rows,c.grandTotalRowIndex):Q(c.rows,n.rows,c.grandTotalRowIndex)):(s=Z(d,a,n.rows,c.grandTotalRowIndex),l=r?Z(h,r,n.columns,c.grandTotalColumnIndex):Q(c.columns,n.columns,c.grandTotalColumnIndex)),(0,v.when)(s,l).done(function(t,o){("row"===e&&t.length||"column"===e&&o.length)&&J(c,n.values,t,o),u._update(i)})))},dispose:function(){var e=this,t=e._delayedLoadTask;this._disposeEvents(),t&&t.abort(),this._isDisposed=!0},isDisposed:function(){return!!this._isDisposed}}}()).include(w.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(384),s=i(r),l=n(9),u=i(l),c=n(22),d=i(c),h=n(0),p=n(7),f=i(p),g=d.default.dateToMilliseconds,_="dx-scheduler-date-time-indicator",m="dx-scheduler-time-panel-current-time-cell",v="dx-scheduler-header-panel-current-time-cell",y=s.default.inherit({_getToday:function(){var e=this.option("indicatorTime")||new Date;return this.invoke("convertDateByTimezone",e)||e},_needRenderDateTimeIndicator:function(){var e=this._getToday(),t=d.default.trimTime(this.getEndViewDate());return d.default.dateInRange(e,this._firstViewDate,new Date(t.getTime()+g("day")))},needRenderDateTimeIndication:function(){if(!f.default.hasWindow())return!1;var e=this._getToday();return e>=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<i;o++){var a=this._createIndicator(n);a.width(this.getCellWidth()),this._groupedStrategy.shiftIndicator(a,e,t,o)}},_createIndicator:function(e){var t=(0,a.default)("<div>").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<i?t:i},getIndicatorOffset:function(e){var t=this._getIndicatorDuration()-1,n=t*this.getRoundedCellWidth(e,e*this._getCellCount(),t);return n},_getIndicatorDuration:function(){var e=this._getToday(),t=new Date(this._firstViewDate),n=e.getTime()-t.getTime();return"workWeek"===this.option("type")&&(n-=this._getWeekendsCount(Math.round(n/g("day")))*g("day")),Math.ceil((n+1)/g("day"))},getIndicationHeight:function(){var e=this._getToday(),t=this.getCellHeight(),n=new Date(this._firstViewDate);this._needRenderDateTimeIndicator()&&n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate());var i=e.getTime()-n.getTime(),o=i/this.getCellDuration();return o*t},_dispose:function(){this._clearIndicatorUpdateInterval(),this.callBase.apply(this,arguments)},_refreshDateTimeIndication:function(){this._cleanDateTimeIndicator(),this._shader&&this._shader.clean(),this._renderDateTimeIndication()},_isCurrentTime:function(e){if(this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator()){var t=this._getToday(),n=!1;e=new Date(e),e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate());var i=new Date(e),o=new Date(e);return d.default.sameDate(t,e)&&(i=i.setMilliseconds(e.getMilliseconds()-this.getCellDuration()+1),o=o.setMilliseconds(e.getMilliseconds()+this.getCellDuration()),n=d.default.dateInRange(t,i,o)),n}},_isCurrentTimeHeaderCell:function(e){var t=!1;if(this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator()){var n=this._getDateByIndex(e),i=this.option("indicatorTime")||new Date;t=d.default.sameDate(n,i)}return t},_getTimeCellClass:function(e){var t=this._getTimeCellDate(e),n=this.callBase(e);return this._isCurrentTime(t)?n+" "+m:n},_getHeaderPanelCellClass:function(e){var t=this.callBase(e);return this._isCurrentTimeHeaderCell(e)?t+" "+v:t},_cleanView:function(){this.callBase(),this._cleanDateTimeIndicator()},_dimensionChanged:function(){this.callBase(),this._refreshDateTimeIndication()},_cleanDateTimeIndicator:function(){this.$element().find("."+_).remove()},_cleanWorkSpace:function(){this.callBase(),this._renderDateTimeIndication(),this._setIndicationUpdateInterval()},_optionChanged:function(e){switch(e.name){case"showCurrentTimeIndicator":case"indicatorTime":this._cleanWorkSpace();break;case"indicatorUpdateInterval":this._setIndicationUpdateInterval();break;case"showAllDayPanel":this.callBase(e),this._refreshDateTimeIndication();break;case"allDayExpanded":this.callBase(e),this._refreshDateTimeIndication();break;case"crossScrollingEnabled":this.callBase(e),this._refreshDateTimeIndication();break;case"shadeUntilCurrentTime":this._refreshDateTimeIndication();break;default:this.callBase(e)}},_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{showCurrentTimeIndicator:!0,indicatorTime:new Date,indicatorUpdateInterval:5*g("minute"),shadeUntilCurrentTime:!0})}});(0,u.default)("dxSchedulerWorkSpace",y),e.exports=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(6),a=n(4),r=n(1),s=i(r),l={NoAccess:0,FileExists:1,FileNotFound:2,DirectoryExists:3,Other:32767},u=function(e,t,n){t=t||a.noop,n=n||a.noop,Array.isArray(e)||(e=[e]);var i=e.map(function(e,i){return(0,o.when)(e).then(function(){s.default.isFunction(t)&&t()},function(e){e||(e={}),e.index=i,s.default.isFunction(n)&&n(e)})});return o.when.apply(null,i)};e.exports=u,e.exports.ErrorCode=l},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(){return u||(u=a()),u}function a(){var e=(0,l.getWindow)(),t=e&&e.DevExpress&&e.DevExpress.diagram||n(746);if(!t)throw s.default.Error("E1041","devexpress-diagram");return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getDiagram=void 0;var r=n(17),s=i(r),l=n(7),u=void 0;t.getDiagram=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(e){var n=e.fill;return{fill:n===ne?t:n,hatching:W({},e.hatching,{step:q,width:j})}}}function a(e){var t=e.margin;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 x(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 b(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;t<o;t++)for(a[t]=[],n=0;n<i;n++)a[t][n]=e[n][t];return a}function C(e){switch(e){case X:case Z:return K;case Y:return U;case U:return Y}}function k(e){return e.horizontalAlignment===K?K:e.itemTextPosition===U?Y:e.itemTextPosition===Y?U:K}var S=n(10),I=n(0),T=n(266),D=n(1),E=n(106),A=i(E),O=n(48),B=n(4),P=Number,M=Math,R=M.round,V=M.max,F=M.min,L=M.ceil,H=D.isDefined,z=D.isFunction,N=S.enumParser,$=S.normalizeEnum,W=I.extend,G=10,j=2,q=5,K="center",U="right",Y="left",X="top",Z="bottom",Q="horizontal",J="vertical",ee="inside",te="outside",ne="none",ie="height",oe="width",ae=N([Y,K,U]),re=N([X,Z]),se=N([J,Q]),le=N([Y,U,X,Z]),ue=N([te,ee]),ce=N([Y,K,U]),de=function(e){return h(e)?d:c},he=t.Legend=function(e){var t=this;t._renderer=e.renderer,t._legendGroup=e.group,t._backgroundClass=e.backgroundClass,t._itemGroupClass=e.itemGroupClass,t._textField=e.textField,t._getCustomizeObject=e.getFormatObject,t._titleGroupClass=e.titleGroupClass,t._allowInsidePosition=e.allowInsidePosition},pe=he.prototype=(0,O.clone)(T.LayoutElement.prototype);(0,I.extend)(pe,{constructor:he,getOptions:function(){return this._options},update:function(e,t){var n=arguments.length>2&&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 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)&&i<a);n._applyItemPosition(t,o)},_createLines:function(e,t){this._items.forEach(function(n,i){var o,a,r=x(e,t,i),s={width:n.labelBBox.width,height:n.labelBBox.height,element:n.label,bBox:n.labelBBox,pos:y(t),itemIndex:i},l={width:n.markerSize,height:n.markerSize,element:n.marker,pos:{horizontal:K,vertical:K},bBox:{width:n.markerSize,height:n.markerSize,x:0,y:0},itemIndex:i},u=t.markerOffset?"altOffset":"offset";t.inverseLabelPosition?(o=s,a=l):(o=l,a=s),o[u]=t.labelOffset,r.secondLine.push(o),r.firstLine.push(a)})},_alignLines:function(e,t){function n(e){b(e,o)}var i,o=t.altMeasure;if(e.forEach(function(e){return b(e,o)}),o=t.measure,t.itemsAlignment){if(t.markerOffset)for(i=0;i<e.length;)w([e[i++],e[i++]]).forEach(n)}else w(e).forEach(n)},_applyItemPosition:function(e,t){var n=this,i={x:0,y:0},o=m(e,t);e.forEach(function(e){var a=e[0],r=a.altOffset||t.altSpacing;i[t.direction]=v(e,t,o),e.forEach(function(e){var o=e.offset||t.spacing,a=new T.WrapperLayoutElement(e.element,e.bBox),r={x:i.x,y:i.y,width:e.width,height:e.height},s=new T.WrapperLayoutElement(null,r),l=n._items[e.itemIndex];a.position({of:s,my:e.pos,at:e.pos}),l.bBoxes.push(s),i[t.direction]+=e[t.measure]+o}),i[t.altDirection]+=a[t.altMeasure]+r}),this._items.forEach(function(e){var t=s(e.bBoxes[0].getLayoutOptions(),e.bBoxes[1].getLayoutOptions()),i=n._options.columnItemSpacing/2,o=n._options.rowItemSpacing/2;e.tracker.left=t.left-i,e.tracker.right=t.right+i,e.tracker.top=t.top-o,e.tracker.bottom=t.bottom+o})},_getItemsLayoutOptions:function(){var e=this,t=e._options,n=t.orientation,i={itemsAlignment:t.itemsAlignment,orientation:t.orientation},o=e._size.width-(e._background?2*t.paddingLeftRight:0),a=e._size.height-(e._background?2*t.paddingTopBottom:0);return n===Q?(i.length=o,i.spacing=t.columnItemSpacing,i.direction="x",i.measure=oe,i.altMeasure=ie,i.altDirection="y",i.altSpacing=t.rowItemSpacing,i.countItem=t.columnCount,i.altCountItem=t.rowCount,i.marginTextLabel=4,i.labelOffset=7,t.itemTextPosition!==Z&&t.itemTextPosition!==X||(i.labelOffset=4,i.markerOffset=!0)):(i.length=a,i.spacing=t.rowItemSpacing,i.direction="y",i.measure=ie,i.altMeasure=oe,i.altDirection="x",i.altSpacing=t.columnItemSpacing,i.countItem=t.rowCount,i.altCountItem=t.columnCount,i.marginTextLabel=7,i.labelOffset=4,t.itemTextPosition!==U&&t.itemTextPosition!==Y||(i.labelOffset=7,i.markerOffset=!0)),i.countItem||(i.altCountItem?i.countItem=L(e._items.length/i.altCountItem):i.countItem=e._items.length),t.itemTextPosition!==X&&t.itemTextPosition!==Y||(i.inverseLabelPosition=!0),i.itemTextPosition=t.itemTextPosition,i.altCountItem=i.altCountItem||L(e._items.length/i.countItem),i},_adjustBackgroundSettings:function(e){if(this._background){var t=e.border,n=this._calculateTotalBox(),i={x:R(n.x-e.paddingLeftRight),y:R(n.y-e.paddingTopBottom),width:R(n.width)+2*e.paddingLeftRight,height:R(n.height),opacity:e.backgroundOpacity};t.visible&&t.width&&t.color&&t.color!==ne&&(i["stroke-width"]=t.width,i.stroke=t.color,i["stroke-opacity"]=t.opacity,i.dashStyle=t.dashStyle,i.rx=t.cornerRadius||0,i.ry=t.cornerRadius||0),this._background.attr(i)}},_setBoundingRect:function(e){if(this._insideLegendGroup){var t=this._calculateTotalBox();t.height+=e.top+e.bottom,t.widthWithoutMargins=t.width,t.width+=e.left+e.right,t.x-=e.left,t.y-=e.top,this._boundingRect=t}},_calculateTotalBox:function(){var e=this._markersGroup.getBBox(),t=this._title.getCorrectedLayoutOptions(),n=this._insideLegendGroup.getBBox(),i=this._background?2*this._options.paddingTopBottom:0;return n.height=e.height+t.height+i,t.width>n.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<n.length;o++)if(p(n[o].tracker,e,t))return n[o].tracker;return null},dispose:function(){var e=this;return e._title&&e._title.dispose(),e._legendGroup=e._insideLegendGroup=e._title=e._renderer=e._options=e._data=e._items=null,e},layoutOptions:function(){if(!this.getOptions().visible)return null;var e=this.getLayoutOptions();return{horizontalAlignment:this._options.horizontalAlignment,verticalAlignment:this._options.verticalAlignment,side:e.cutSide,priority:1,position:this.getPosition()}},measure:function(e){this.draw(e[0],e[1]);var t=this.getLayoutOptions();return[t.width,t.height]},move:function(e){this.shift(e[0],e[1])},freeSpace:function(){this._options._incidentOccurred("W2104"),this.erase()}}),t.plugin={name:"legend",init:function(){
29var e=this,n=this._renderer.g().attr({"class":this._rootClassPrefix+"-legend"}).enableLinks().append(e._renderer.root);e._legend=new t.Legend({renderer:e._renderer,group:n,itemGroupClass:this._rootClassPrefix+"-item",titleGroupClass:this._rootClassPrefix+"-title",textField:"text",getFormatObject:function(e){return{item:e.item,text:e.text}}}),e._layout.add(e._legend)},extenders:{_applyTilesAppearance:function(){var e=this;this._items.forEach(function(t){e._applyLegendItemStyle(t.id,t.getState())})},_buildNodes:function(){this._createLegendItems()}},members:{_applyLegendItemStyle:function(e,t){var n=this._legend;switch(t){case"hover":n.applyHover(e);break;case"selection":n.applySelected(e);break;default:n.resetItem(e)}},_createLegendItems:function(){this._legend.update(this._getLegendData(),this._getOption("legend"),this._themeManager.theme("legend").title)&&this._requestChange(["LAYOUT"])}},dispose:function(){this._legend.dispose()},customize:function(e){e.prototype._proxyData.push(function(e,t){if(this._legend.coordsIn(e,t)){var n=this._legend.getItemByCoord(e,t);if(n)return{id:n.id,type:"legend"}}}),e.addChange({code:"LEGEND",handler:function(){this._createLegendItems()},isThemeDependent:!0,option:"legend",isOptionChange:!0})}}},function(e,t,n){var i=n(0).extend,o=i,a=Math,r=a.floor,s=a.abs,l=n(121),u="canvas_position_default",c=9,d=4,h="right",p="left",f="top",g="bottom";e.exports=o({},l,{correctCoordinates:function(e){var t=this,n=r(e.offset-e.width/2);t._options.rotated?(t.height=e.width,t.yCorrection=n,t.xCorrection=null):(t.width=e.width,t.xCorrection=n,t.yCorrection=null)},_getGraphicBBox:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},_getLabelConnector:function(e){return this._getGraphicBBox(e)},_getLabelPosition:function(){var e,t=this,n=t.initialValue,i=t._getValTranslator().getBusinessRange().invert,o="discrete"===t.series.valueAxisType,a=t.series.isFullStackedSeries(),r=!o&&(n>=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.height<n.y||t.x>n.x+n.width||t.x+i.width<n.x)&&(e.draw(!1),!0)},_moveLabelOnCanvas:function(e,t,n){var i=e.x,o=e.y;return t.minX>i&&(i=t.minX),t.maxX<i+n.width&&(i=t.maxX-n.width),t.minY>o&&(o=t.minY),t.maxY<o+n.height&&(o=t.maxY-n.height),{x:i,y:o}},_showForZeroValues:function(){return this._options.label.showForZeroValues||this.initialValue},_drawMarker:function(e,t,n){var i=this,o=i._getStyle(),a=i._options.cornerRadius,r=i._options.rotated,s=i.getMarkerCoords(),l=s.x,u=s.y,c=s.width,d=s.height;n&&(r?(c=0,l=i.defaultX):(d=0,u=i.defaultY)),i.graphic=e.rect(l,u,c,d).attr({rx:a,ry:a}).smartAttr(o).data({"chart-data-point":i}).append(t)},_getSettingsForTracker:function(){var e=this,t=e.y,n=e.height,i=e.x,o=e.width;return e._options.rotated?1===o&&(o=c,i-=d):1===n&&(n=c,t-=d),{x:i,y:t,width:o,height:n}},getGraphicSettings:function(){var e=this.graphic;return{x:e.attr("x"),y:e.attr("y"),height:e.attr("height"),width:e.attr("width")}},_getEdgeTooltipParams:function(){var e=this.value>=0,t=void 0,n=void 0,i=this._getValTranslator().getBusinessRange().invert,o=this.x,a=this.y,r=this.width,s=this.height;return this._options.rotated?(n=a+s/2,t=i?e?o:o+r:e?o+r:o):(t=o+r/2,n=i?e?a+s:a:e?a:a+s),{x:t,y:n,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:e<t?t:e>n?n:e},_getErrorBarBaseEdgeLength:function(){return this._options.rotated?this.height:this.width},_translateErrorBars:function(e){l._translateErrorBars.call(this),(this._errorBarPos<e[0]||this._errorBarPos>e[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=t<n?t:n,i._calculateVisibility(o?t:e,o?e:t,i.width,i.height),i[a]=null===t?t:t+(i[a+"Correction"]||0),i["min"+a.toUpperCase()]=null===n?n:n+(i[a+"Correction"]||0),i["default"+a.toUpperCase()]=h.translate(u),i._translateErrorBars(p),i.inVisibleArea&&null!==i[r]&&(i[r]<p[0]&&(i[c]=i[c]-(p[0]-i[r]),i[r]=p[0]),i[r]+i[c]>p[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(10),p=n(29),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;r<o.length;r++){var s=o[r],l=(s[1].vy-s[0].vy)/(s[1].vx-s[0].vx),u=s[0].vy-s[0].vx*l,c=void 0;if(c=s[1].vx-s[0].vx===0?a?s[0].vy:s[0].vx:a?l*e+u:(e-u)/l,this.checkAxisVisibleAreaCoord(!t,c)){i=c;break}}return i}},x=t.chart.line=m({},s,y,{getPointCenterByArg:function(e){var t=this.getArgumentAxis().getTranslator().translate(e);return{x:t,y:t}}});t.chart.stepline=m({},x,{_calculateStepLinePoints:function(e){var t=[],n=this._options.rotated?"x":"y";return v(e,function(e,i){var o=void 0;if(!e)return void t.push(i);var a=t[t.length-1][n];a!==i[n]&&(o=u.clone(i),o[n]=a,t.push(o)),t.push(i)}),t},_prepareSegment:function(e){return x._prepareSegment(this._calculateStepLinePoints(e))},getSeriesPairCoord:function(e,t){for(var n=void 0,i=this._options.rotated,o=!t&&!i||t&&i,a=o?"vy":"vx",r=o?"vx":"vy",s=this.getNearestPointsByCoord(e,t),l=0;l<s.length;l++){var u=s[l],c=void 0;if(c=t?e!==u[1][a]?u[0][r]:u[1][r]:e===u[0][a]?u[0][r]:u[1][r],this.checkAxisVisibleAreaCoord(!t,c)){n=c;break}}return n}}),t.chart.spline=m({},x,{_calculateBezierPoints:function(e,t){var n=[],o=e,a=function(e,t,n){return e>t&&n>e||e<t&&n<e?e:n};return 1!==o.length?o.forEach(function(e,r){var s,l,u,c,d,h,p,f,g,_,m,v,y,x,b,w,C,k,S,I=o[r-1],T=o[r+1],D=.5;if(!r||r===o.length-1)return void n.push(e,e);if(d=e.x,h=e.y,p=I.x,f=T.x,g=I.y,_=T.y,m=!!(!t&&(h<=I.y&&h<=T.y||h>=I.y&&h>=T.y)||t&&(d<=I.x&&d<=T.x||d>=I.x&&d>=T.x)))t?(u=s=d,c=(h+T.y)/2,l=(h+I.y)/2):(c=l=h,u=(d+T.x)/2,s=(d+I.x)/2);else{if(x=_-g,b=p-f,w=g*f-p*_,t){if(!x)return void n.push(e,e,e);k=h,C=-1*(b*k+w)/x,S=C-d,p-=S,f-=S}else{if(!b)return void n.push(e,e,e);C=d,k=-1*(x*C+w)/b,S=k-h,g-=S,_-=S}u=(d+D*f)/(1+D),c=(h+D*_)/(1+D),s=(d+D*p)/(1+D),l=(h+D*g)/(1+D)}t?(s=a(I.x,d,s),u=a(T.x,d,u)):(l=a(I.y,h,l),c=a(T.y,h,c)),v=i(e,s,l),y=i(e,u,c),n.push(v,e,y)}):n.push(o[0]),n},_prepareSegment:function(e,t){return x._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;f<h.length;f++){var g=p(f);if("break"===g)break}return i},getNearestPointsByCoord:function(e,t){var n=this,i=n.getOptions().rotated,o=!t&&!i||t&&i,a=o?"vy":"vx",r=n.getVisiblePoints(),s=n.getPoints(),l=n._segments.length>0?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 x._prepareSegment.call(this,e);for(i=1;i<e.length;i++)o=o.concat(this._getTangentPoints(e[i],e[i-1],a));return o.length||(o=e),{line:o}},_getRemainingAngle:function(e){var t=f(e);return e>=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,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=[];s<l;++s)u.push(i(r[s],o[s]));e[t]=u}function s(e){void 0===e.option(V)&&void 0===e.option(F)&&void 0!==e.option("valueIndicators")&&(l(e),u(e))}function l(e){e.value=e.subvalues=M,e._setupValue=e._setupSubvalues=e._updateValueIndicator=e._updateSubvalueIndicators=null}function u(e){e._indicatorValues=[],r(e,"_indicatorValues",e.option("valueIndicators")),e._valueIndicators=[];var t=e._applyMostlyTotalChange;e._applyMostlyTotalChange=function(){r(this,"_indicatorValues",this.option("valueIndicators")),t.call(this)},e._updateActiveElements=c,e._prepareValueIndicators=d,e._disposeValueIndicators=h,e._cleanValueIndicators=p,e.indicatorValue=f}function c(){var e=this;P(e._valueIndicators,function(t,n){n.value(e._indicatorValues[n.index],e._noAnimation)})}function d(){var e,t=this,n=t._valueIndicators||[],i=t.option("valueIndicators"),o=[],a=0;for(e=w(i)?i.length:0;a<e;++a)o.push(i[a]);for(e=n.length;a<e;++a)o.push(null);var r=[];return P(o,function(e,i){var o=n[e];if(!i)return void(o&&o.dispose());var a=t._prepareIndicatorSettings(i,"valueIndicatorType");o&&o.type!==a.type&&(o.dispose(),o=null),o||(o=t._createIndicator(a.type,t._renderer.root,"dxg-value-indicator","value-indicator",e,!0)),o&&(o.index=e,o.render(a),r.push(o))}),t._valueIndicators=r,t._valueIndicators}function h(){P(this._valueIndicators,function(e,t){t.dispose()}),this._valueIndicators=null}function p(){P(this._valueIndicators,function(e,t){t.clean()})}function f(e,t){return g(this,this._valueIndicators,this._indicatorValues,e,t)}function g(e,t,n,o,a){return void 0!==a?(void 0!==n[o]&&(n[o]=i(a,n[o]),t[o]&&t[o].value(n[o])),e):n[o]}function _(e){this._parameters=e,this._indicators=[]}var m=n(146).dxBaseGauge,v=n(1),y=n(3).each,x=n(0).extend,b=v.isDefined,w=Array.isArray,C=v.isNumeric,k=n(272),S=n(10).map,I=n(10).normalizeEnum,T=n(146).compareArrays,D=isFinite,E=Number,A=Math.min,O=Math.max,B=x,P=y,M=n(4).noop,R=90,V="value",F="subvalues",L=5,H=[1,2,5];t.dxGauge=m.inherit({_initCore:function(){var e=this,t=e._renderer;e._setupValue(e.option(V)),e.__subvalues=o(e.option(F)),e._setupSubvalues(e.__subvalues),s(e),e.callBase.apply(e,arguments),e._rangeContainer=new e._factory.RangeContainer({renderer:t,container:t.root,translator:e._translator,themeManager:e._themeManager}),e._initScale()},_fontFields:["scale.label.font","valueIndicators.rangebar.text.font","valueIndicators.textcloud.text.font","indicator.text.font"],_initScale:function(){var e=this;e._scaleGroup=e._renderer.g().attr({"class":"dxg-scale"}).linkOn(e._renderer.root,"scale"),e._scale=new k.Axis({incidentOccurred:e._incidentOccurred,renderer:e._renderer,axesContainerGroup:e._scaleGroup,axisType:e._scaleTypes.type,drawingType:e._scaleTypes.drawingType,widgetClass:"dxg"})},_disposeCore:function(){var e=this;e.callBase.apply(e,arguments),e._scale.dispose(),e._scaleGroup.linkOff(),e._rangeContainer.dispose(),e._disposeValueIndicators(),e._scale=e._scaleGroup=e._rangeContainer=null},_disposeValueIndicators:function(){var e=this;e._valueIndicator&&e._valueIndicator.dispose(),e._subvalueIndicatorsSet&&e._subvalueIndicatorsSet.dispose(),e._valueIndicator=e._subvalueIndicatorsSet=null},_setupDomainCore:function(){var e=this,t=e.option("scale")||{},n=e.option("startValue"),i=e.option("endValue");n=C(n)?E(n):C(t.startValue)?E(t.startValue):0,i=C(i)?E(i):C(t.endValue)?E(t.endValue):100,e._baseValue=n<i?n:i,e._translator.setDomain(n,i)},_cleanContent:function(){var e=this;e._rangeContainer.clean(),e._cleanValueIndicators()},_measureScale:function(e){var t,n,i,o,a,r,s=this,l=e.tick,u=l.visible&&l.length>0&&l.width>0,c=e.minorTick,d=c.visible&&c.length>0&&c.width>0,h=e.label,p=Number(h.indentFromTick);return u||d||h.visible?(t=s._scale.measureLabels(x({},s._canvas)),n=s._getScaleLayoutValue(),i={min:n,max:n},o=s._getTicksCoefficients(e),a=o.inner,r=o.outer,u&&(i.min=A(i.min,n-a*l.length),i.max=O(i.max,n+r*l.length)),d&&(i.min=A(i.min,n-a*c.length),i.max=O(i.max,n+r*c.length)),h.visible&&s._correctScaleIndents(i,p,t),i):{}},_renderContent:function(){var e,t=this,n=t._prepareScaleSettings();t._rangeContainer.render(B(t._getOption("rangeContainer"),{vertical:t._area.vertical})),t._renderScale(n),e=S([t._rangeContainer].concat(t._prepareValueIndicators()),function(e){return e&&e.enabled?e:null}),t._applyMainLayout(e,t._measureScale(n)),P(e,function(e,n){n.resize(t._getElementLayout(n.getOffset()))}),t._shiftScale(t._getElementLayout(0),n),t._beginValueChanging(),t._updateActiveElements(),t._endValueChanging()},_prepareScaleSettings:function(){var e=this,t=e.option("scale"),n=x(!0,{},e._themeManager.theme("scale"),t);return n.label.indentFromAxis=0,n.isHorizontal=!e._area.vertical,n.forceUserTickInterval|=b(t)&&b(t.tickInterval)&&!b(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=R-a[0],e.endAngle=R-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(x({},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,t,n=this,i=n._subvalueIndicatorsSet,o=n._prepareIndicatorSettings(n.option("subvalueIndicator")||{},"subvalueIndicatorType");i||(i=n._subvalueIndicatorsSet=n._createSubvalueIndicatorsSet()),e=o.type!==i.type,i.type=o.type,t=n._createIndicator(o.type,n._renderer.root),t&&(t.dispose(),i.render(o,e))},_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=[];t<n;++t)a.push(i(r[t],this.__subvalues[t]));this.__subvalues=a}},_updateValueIndicator:function(){var e=this;e._valueIndicator&&e._valueIndicator.value(e.__value,e._noAnimation)},_updateSubvalueIndicators:function(){var e=this;e._subvalueIndicatorsSet&&e._subvalueIndicatorsSet.values(e.__subvalues,e._noAnimation)},value:function(e){return void 0!==e?(this._changeValue(e),this):this.__value},subvalues:function(e){return void 0!==e?(this._changeSubvalues(e),this):null!==this.__subvalues?this.__subvalues.slice():void 0},_changeValue:function(e){var t=this;t._setupValue(e),t._beginValueChanging(),t._updateValueIndicator(),t.__value!==t.option(V)&&t.option(V,t.__value),t._endValueChanging()},_changeSubvalues:function(e){var t=this;null!==t.__subvalues?(t._setupSubvalues(e),t._beginValueChanging(),t._updateSubvalueIndicators(),t._endValueChanging()):(t.__subvalues=o(e),t._setContentSize(),t._renderContent()),T(t.__subvalues,t.option(F))||t.option(F,t.__subvalues)},_optionChangesMap:{scale:"DOMAIN",rangeContainer:"MOSTLY_TOTAL",valueIndicator:"MOSTLY_TOTAL",subvalueIndicator:"MOSTLY_TOTAL",containerBackgroundColor:"MOSTLY_TOTAL",value:"VALUE",subvalues:"SUBVALUES",valueIndicators:"MOSTLY_TOTAL"},_customChangesOrder:["VALUE","SUBVALUES"],_change_VALUE:function(){this._changeValue(this.option(V))},_change_SUBVALUES:function(){this._changeSubvalues(this.option(F))},_applyMainLayout:null,_getElementLayout:null,_createIndicator:function(e,t,n,i,o,a){var r=this,s=r._factory.createIndicator({renderer:r._renderer,translator:r._translator,owner:t,tracker:r._tracker,className:n},e,a);return s&&(s.type=e,s._trackerInfo={type:i,index:o}),s},_getApproximateScreenRange:null}),_.prototype={constructor:_,dispose:function(){var e=this;return P(e._indicators,function(e,t){t.dispose()}),e._parameters=e._options=e._indicators=e._colorPalette=e._palette=null,e},clean:function(){var e=this;return e._sample&&e._sample.clean().dispose(),P(e._indicators,function(e,t){t.clean()}),e._sample=e._options=e._palette=null,e},render:function(e,t){var n=this;return n._options=e,n._sample=n._parameters.createIndicator(n.type),n._sample.render(e),n.enabled=n._sample.enabled,n._palette=b(e.palette)?n._parameters.createPalette(e.palette):null,n.enabled&&(n._generatePalette(n._indicators.length),n._indicators=S(n._indicators,function(e,i){return t&&(e.dispose(),e=n._parameters.createIndicator(n.type,i)),e.render(n._getIndicatorOptions(i)),e})),n},getOffset:function(){return this._sample.getOffset()},resize:function(e){var t=this;return t._layout=e,P(t._indicators,function(t,n){n.resize(e)}),t},measure:function(e){return this._sample.measure(e)},_getIndicatorOptions:function(e){var t=this._options;return this._colorPalette&&(t=B({},t,{color:this._colorPalette[e]})),t},_generatePalette:function(e){var t=this,n=null;t._palette&&(t._palette.reset(),n=t._palette.generateColors(e,{repeat:!0})),t._colorPalette=n},_adjustIndicatorsCount:function(e){var t,n,i,o=this,a=o._indicators,r=a.length;if(r>e){for(t=e,n=r;t<n;++t)a[t].clean().dispose();o._indicators=a.slice(0,e),o._generatePalette(a.length)}else if(r<e)for(o._generatePalette(e),t=r,n=e;t<n;++t)i=o._parameters.createIndicator(o.type,t),i.render(o._getIndicatorOptions(t)).resize(o._layout),a.push(i)},values:function(e,t){var n=this;if(n.enabled)return void 0!==e?(w(e)||(e=D(e)?[Number(e)]:null),e&&(n._adjustIndicatorsCount(e.length),P(n._indicators,function(n,i){i.value(e[n],t)})),n):S(n._indicators,function(e){return e.value()})}},t.createIndicatorCreator=function(e){return function(t,n,i){var o=e[I(n)]||!i&&e._default;return o?new o(t):null}}},function(e,t,n){var i=n(405).smartFormatter,o=n(1).isFunction,a=24,r=4,s=". . .",l={trackerSettings:{fill:"grey",stroke:"grey",opacity:1e-4},animationSettings:{duration:250}},u={emptySliderMarkerText:s,pointerSize:r},c=function(e,t,n,a,r,s){var l={value:e,valueText:i(e,{labelOptions:t,ticks:n?n.ticks:[],tickInterval:n?n.tickInterval:void 0,dataType:a,type:r,logarithmBase:s})};return String(o(t.customizeText)?t.customizeText.call(l,l):l.valueText)};t.utils=l,t.consts=u,t.formatValue=c,t.HEIGHT_COMPACT_MODE=a},function(e,t,n){var i=n(4).escapeRegExp,o={3:"abbreviated",4:"wide",5:"narrow"},a=function(e,t){return e>2?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){var n=e.getHours();t||12!==n?t&&12!==n&&e.setHours(n+12):e.setHours(0)},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;i<t;i++)n+=e;return n},g=function(e,t){for(var n,o="",a="",s=[],l=function(){a&&(s.push("'"+a+"'"),o+=i(a)+")",a="")},u=0;u<e.length;u++){var c=e[u],d="'"===c,h=r[c];if(!d||(n=!n,"'"===e[u-1]))if(h&&!n){var g=p(e,u),_=f(c,g);l(),s.push(_),o+="("+h(g,t)+")",u+=g-1}else a||(o+="("),a+=c}return l(),{patterns:s,regexp:new RegExp("^"+o+"$","i")}},_=function(){return h},m=function(e,t,n,i){var o=t[0],a=h[o],r=c[o];if(a&&r){var s=r(n,t.length,i);e[a]?e[a](s):a(e,s)}},v=function(e,t,n){var i=h[t],o="g"+i.substr(1);e[i](n[o]())},y=function(e){return e.map(function(e){return"'"===e[0]?"":"H"===e[0]?"h":e[0]})},x=function(e){var t=e.map(function(e){return d.indexOf(e)});return Math.max.apply(Math,t)},b=function(e){var t=e.filter(function(e){return d.indexOf(e)<0});return d.concat(t)},w=function(e,t){var n=g(e,t);return function(e){var i=n.regexp.exec(e);if(i){var o=new Date,a=new Date(o.getFullYear(),0,1),r=y(n.patterns),s=x(r),l=b(r);return l.forEach(function(e,l){if(e&&!(l<d.length&&l>s)){var u=r.indexOf(e);u>=0?m(a,n.patterns[u],i[u+1],t):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(235);o.odata=n(488),e.exports=o},function(e,t,n){var i=n(37),o=n(11),a=n(7),r=a.getWindow(),s=n(1),l=n(83),u=n(173),c=n(215),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;n<this.length;n++){var i=d(this[n]);i[e].apply(i,t)}return this},f=function(e,t,n){void 0!==n&&null!==n?o.setAttribute(e,t,n):o.removeAttribute(e,t)};h.prototype.show=function(){return this.toggle(!0)},h.prototype.hide=function(){return this.toggle(!1)},h.prototype.toggle=function(e){return this[0]&&this.toggleClass("dx-state-invisible",!e),this},h.prototype.attr=function(e,t){if(this.length>1&&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<t.length;n++)if(this[0].classList){if(this[0].classList.contains(t[n]))return!0}else{var i=s.isString(this[0].className)?this[0].className:o.getAttribute(this[0],"class");if((i||"").split(" ").indexOf(t[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<n.length;i++)o.setClass(this[0],n[i],t);return this},["width","height","outerWidth","outerHeight","innerWidth","innerHeight"].forEach(function(e){var t=e.toLowerCase().indexOf("width")>=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){
30var 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;n<e.length;n++){var i=e[n],a=this[0],r="TABLE"===a.tagName&&"TR"===i.tagName;r&&a.tBodies&&a.tBodies.length&&(a=a.tBodies[0]),o.insertElement(a,i.nodeType?i:i[0],t)}}},_=function(e,t){if(this[0]&&this[0].style&&!(null===t||"number"==typeof t&&isNaN(t))){e=l.styleProp(e);for(var n=0;n<this.length;n++)this[n].style[e]=l.normalizeStyleProp(e,t)}};h.prototype.css=function(e,t){if(s.isString(e)){if(2!==arguments.length){if(!this[0])return;e=l.styleProp(e);var n=r.getComputedStyle(this[0])[e]||this[0].style[e];return s.isNumeric(n)?n.toString():n}_.call(this,e,t)}else if(s.isPlainObject(e))for(var i in e)_.call(this,i,e[i]);return this},h.prototype.prepend=function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.prepend(arguments[t]);return this}return g.apply(this,[e,this[0].firstChild]),this},h.prototype.append=function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.append(arguments[t]);return this}return g.apply(this,[e]),this},h.prototype.prependTo=function(e){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.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<this.length;t++)e.push(this[t].cloneNode(!0));return d(e)},h.prototype.text=function(e){if(!arguments.length){for(var t="",n=0;n<this.length;n++)t+=this[n]&&this[n].textContent||"";return t}var a=s.isFunction(e)?e():e;return i.cleanDataRecursive(this[0],!1),o.setText(this[0],s.isDefined(a)?a:""),this},h.prototype.val=function(e){return 1===arguments.length?this.prop("value",s.isDefined(e)?e:""):this.prop("value")},h.prototype.contents=function(){if(!this[0])return d();var e=[];return e.push.apply(e,this[0].childNodes),d(e)},h.prototype.find=function(e){var t=d();if(!e)return t;var n,i=[];if("string"==typeof e)for(e=e.trim(),n=0;n<this.length;n++){var a=this[n];if(o.isElementNode(a)){var r=a.getAttribute("id"),s=r||"dx-query-children";r||f(a,"id",s),s="[id='"+s+"'] ";var l=s+e.replace(/([^\\])(,)/g,"$1, "+s);i.push.apply(i,o.querySelectorAll(a,l)),f(a,"id",r)}else o.isDocument(a)&&i.push.apply(i,o.querySelectorAll(a,e))}else for(n=0;n<this.length;n++)e=o.isNode(e)?e:e[0],this[n]!==e&&this[n].contains(e)&&i.push(e);return t.add(i)};var m=function(e,t){return!t.nodeType||!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)};h.prototype.filter=function(e){if(!e)return d();if(":visible"===e)return this.filter(m);if(":hidden"===e)return this.filter(function(e,t){return!m(e,t)});for(var t=[],n=0;n<this.length;n++){var i=this[n];if(o.isElementNode(i)&&"string"===s.type(e))o.elementMatches(i,e)&&t.push(i);else if(o.isNode(e)||s.isWindow(e))e===i&&t.push(i);else if(s.isFunction(e))e.call(i,n,i)&&t.push(i);else for(var a=0;a<e.length;a++)e[a]===i&&t.push(i)}return d(t)},h.prototype.not=function(e){for(var t=[],n=this.filter(e).toArray(),i=0;i<this.length;i++)n.indexOf(this[i])===-1&&t.push(this[i]);return d(t)},h.prototype.is=function(e){return!!this.filter(e).length},h.prototype.children=function(e){for(var t=[],n=0;n<this.length;n++)for(var i=this[n]?this[n].childNodes:[],a=0;a<i.length;a++)o.isElementNode(i[a])&&t.push(i[a]);return t=d(t),e?t.filter(e):t},h.prototype.siblings=function(){var e=this[0];if(!e||!e.parentNode)return d();for(var t=[],n=e.parentNode.childNodes||[],i=0;i<n.length;i++){var a=n[i];o.isElementNode(a)&&a!==e&&t.push(a)}return d(t)},h.prototype.each=function(e){for(var t=0;t<this.length&&e.call(this[t],t,this[t])!==!1;t++);},h.prototype.index=function(e){return e?(e=d(e),this.toArray().indexOf(e[0])):this.parent().children().index(this)},h.prototype.get=function(e){return this[e<0?this.length+e:e]},h.prototype.eq=function(e){return e=e<0?this.length+e:e,d(this[e])},h.prototype.first=function(){return this.eq(0)},h.prototype.last=function(){return this.eq(-1)},h.prototype.parent=function(e){if(!this[0])return d();var t=d(this[0].parentNode);return!e||t.is(e)?t:d()},h.prototype.parents=function(e){for(var t=[],n=this.parent();n&&n[0]&&!o.isDocument(n[0]);)o.isElementNode(n[0])&&(!e||e&&n.is(e))&&t.push(n.get(0)),n=n.parent();return d(t)},h.prototype.closest=function(e){if(this.is(e))return this;for(var t=this.parent();t&&t.length;){if(t.is(e))return t;t=t.parent()}return d()},h.prototype.next=function(e){if(!this[0])return d();var t=d(this[0].nextSibling);if(!arguments.length)return t;for(;t&&t.length;){if(t.is(e))return t;t=t.next()}return d()},h.prototype.prev=function(){return this[0]?d(this[0].previousSibling):d()},h.prototype.add=function(e){for(var t=d(e),n=this.toArray(),i=0;i<t.length;i++){var o=t[i];n.indexOf(o)===-1&&n.push(o)}return d(n)};var v=[];h.prototype.splice=function(){return d(v.splice.apply(this,arguments))},h.prototype.slice=function(){return d(v.slice.apply(this,arguments))},h.prototype.toArray=function(){return v.slice.call(this)};var y=function(e){return s.isWindow(e)?e:e.defaultView};h.prototype.offset=function(){if(this[0]){if(!this[0].getClientRects().length)return{top:0,left:0};var e=this[0].getBoundingClientRect(),t=y(this[0].ownerDocument),n=this[0].ownerDocument.documentElement;return{top:e.top+t.pageYOffset-n.clientTop,left:e.left+t.pageXOffset-n.clientLeft}}},h.prototype.offsetParent=function(){if(!this[0])return d();for(var e=d(this[0].offsetParent);e[0]&&"static"===e.css("position");)e=d(e[0].offsetParent);return e=e[0]?e:d(o.getDocumentElement())},h.prototype.position=function(){if(this[0]){var e,t=parseFloat(this.css("marginTop")),n=parseFloat(this.css("marginLeft"));if("fixed"===this.css("position"))return e=this[0].getBoundingClientRect(),{top:e.top-t,left:e.left-n};e=this.offset();var i=this.offsetParent(),o={top:0,left:0};return"HTML"!==i[0].nodeName&&(o=i.offset()),o={top:o.top+parseFloat(i.css("borderTopWidth")),left:o.left+parseFloat(i.css("borderLeftWidth"))},{top:e.top-o.top-t,left:e.left-o.left-n}}},[{name:"scrollLeft",offsetProp:"pageXOffset",scrollWindow:function(e,t){e.scrollTo(t,e.pageYOffset)}},{name:"scrollTop",offsetProp:"pageYOffset",scrollWindow:function(e,t){e.scrollTo(e.pageXOffset,t)}}].forEach(function(e){var t=e.name;h.prototype[t]=function(n){if(this[0]){var i=y(this[0]);return void 0===n?i?i[e.offsetProp]:this[0][t]:(i?e.scrollWindow(i,n):this[0][t]=n,this)}}}),h.prototype.data=function(e,t){if(this[0])return arguments.length<2?i.data.call(d,this[0],e):(i.data.call(d,this[0],e,t),this)},h.prototype.removeData=function(e){return this[0]&&i.removeData(this[0],e),this};var x=function(){return d.apply(this,arguments)};Object.defineProperty(x,"fn",{enumerable:!0,configurable:!0,get:function(){return d.fn},set:function(e){d.fn=e}}),e.exports={set:function(e){d=e},get:function(){return x}}},function(e,t,n){var i=["pageX","pageY","screenX","screenY","clientX","clientY"],o=function(e,t){if(t[e]&&!t.touches||!t.touches)return t[e];var n=t.touches.length?t.touches:t.changedTouches;if(n.length)return n[0][e]};e.exports=function(e){i.forEach(function(t){e(t,function(e){return o(t,e)})},this)}},function(e,t,n){var i=n(13).merge,o=n(11),a=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,r={"default":{tagsCount:0,startTags:"",endTags:""},thead:{tagsCount:1,startTags:"<table>",endTags:"</table>"},td:{tagsCount:3,startTags:"<table><tbody><tr>",endTags:"</tr></tbody></table>"},col:{tagsCount:2,startTags:"<table><colgroup>",endTags:"</colgroup></table>"},tr:{tagsCount:2,startTags:"<table><tbody>",endTags:"</tbody></table>"}};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;c<u.tagsCount;c++)n=n.lastChild;return i([],n.childNodes)},l=function(e){var t=a.exec(e);return t&&t[1]in r};t.parseHTML=s,t.isTablePart=l},function(e,t,n){var i=n(1),o=n(45),a=n(51),r=n(33),s=n(184).getFormat,l=n(279).getLanguageId,u={quarter:"shortDate",quarterAndYear:"shortDate",minute:"longTime",millisecond:"longTime"},c=1632,d={thousands:"#,##0{0},&quot;K&quot;",millions:"#,##0{0},,&quot;M&quot;",billions:"#,##0{0},,,&quot;B&quot;",trillions:"#,##0{0},,,,&quot;T&quot;",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "},h=/a+/g,p=/E/g,f=/dE+/g,g=/L/g,_=/h/g,m=/\//g,v=/\[/g,y=/]/g,x=/./g;n(148);var b=e.exports={_applyPrecision:function(e,t){var n,i;if(t>0){for(n="decimal"!==e?".":"",i=0;i<t;i++)n+="0";return n}return""},_getCurrencyFormat:function(e){return a.getOpenXmlCurrencyFormat(e)},_hasArabicDigits:function(e){for(var t,n=0;n<e.length;n++)if(t=e.charCodeAt(n),t>=c&&t<c+10)return!0;return!1},_convertDateFormatToOpenXml:function(e){return e.replace(m,"\\/").split("'").map(function(e,t){return t%2===0?e.replace(h,"AM/PM").replace(f,"d").replace(p,"d").replace(g,"M").replace(_,"H").replace(v,"\\[").replace(y,"\\]"):e?e.replace(x,"\\$&"):"'"}).join("")},_convertDateFormat:function(e){e=u[e&&e.type||e]||e;var t=this,n=(r.format(new Date(2009,8,8,6,5,4),e)||"").toString(),i=s(function(t){return r.format(t,e)});return i&&(i=t._convertDateFormatToOpenXml(i),i=t._getLanguageInfo(n)+i),i},_getLanguageInfo:function(e){var t=l(),n=t?t.toString(16):"",i="";if(this._hasArabicDigits(e)){for(;n.length<3;)n="0"+n;i="[$-2010"+n+"]"}else n&&(i="[$-"+n+"]");return i},_convertNumberFormat:function(e,t,n){var i,a="currency"===e?this._getCurrencyFormat(n):d[e.toLowerCase()];return a&&(i=o.format(a,this._applyPrecision(e,t))),i},convertFormat:function(e,t,n,o){if(i.isDefined(e)){if("date"===n)return b._convertDateFormat(e);if(i.isString(e)&&d[e.toLowerCase()])return b._convertNumberFormat(e,t,o)}}}},function(e,t,n){function i(e){var t=(0,r.sign)(e);return t*Math.round(Math.abs(e))}function o(e,t){var n=Math.pow(s,t),o=n*s,a=i(e*o)/s;return i(a)/n}function a(e,t){var n=t||0,i=n>0?o.apply(void 0,arguments):e;return i.toFixed(n)}Object.defineProperty(t,"__esModule",{value:!0}),t.toFixed=void 0;var r=n(29),s=10;t.toFixed=a},function(e,t,n){function i(e,t){for(;e.length<t;)e="0"+e;return e}var o={3:"abbreviated",4:"wide",5:"narrow"},a={y:function(e,t,n){var o=e[n?"getUTCFullYear":"getFullYear"]();return 2===t&&(o%=100),i(o.toString(),t)},M:function(e,t,n,a){var r=e[n?"getUTCMonth":"getMonth"](),s=o[t];return s?a.getMonthNames(s,"format")[r]:i((r+1).toString(),Math.min(t,2))},L:function(e,t,n,a){var r=e[n?"getUTCMonth":"getMonth"](),s=o[t];return s?a.getMonthNames(s,"standalone")[r]:i((r+1).toString(),Math.min(t,2))},Q:function(e,t,n,a){var r=e[n?"getUTCMonth":"getMonth"](),s=Math.floor(r/3),l=o[t];return l?a.getQuarterNames(l)[s]:i((s+1).toString(),Math.min(t,2))},E:function(e,t,n,i){var a=e[n?"getUTCDay":"getDay"](),r=o[t<3?3:t];return i.getDayNames(r)[a]},a:function(e,t,n,i){var a=e[n?"getUTCHours":"getHours"](),r=a<12?0:1,s=o[t];return i.getPeriodNames(s)[r]},d:function(e,t,n){return i(e[n?"getUTCDate":"getDate"]().toString(),Math.min(t,2))},H:function(e,t,n){return i(e[n?"getUTCHours":"getHours"]().toString(),Math.min(t,2))},h:function(e,t,n){var o=e[n?"getUTCHours":"getHours"]();return i((o%12||12).toString(),Math.min(t,2))},m:function(e,t,n){return i(e[n?"getUTCMinutes":"getMinutes"]().toString(),Math.min(t,2))},s:function(e,t,n){return i(e[n?"getUTCSeconds":"getSeconds"]().toString(),Math.min(t,2))},S:function(e,t,n){return i(e[n?"getUTCMilliseconds":"getMilliseconds"]().toString(),3).substr(0,t)},x:function(e,t,n){var o=n?0:e.getTimezoneOffset(),a=o>0?"-":"+",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;i<e.length;i++)r=e[i],o=a[r],s=r===e[i+1],l++,s||(o&&!c&&(d+=o(n,l,h,t)),l=0),r!==u||s?!c&&o||(d+=r):c=!c,r===u&&s&&i++;return d}};e.exports.getFormatter=r},function(e,t,n){var i=n(3),o=["January","February","March","April","May","June","July","August","September","October","November","December"],a=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],r=["AM","PM"],s=["Q1","Q2","Q3","Q4"],l=function(e,t){var n={abbreviated:3,"short":2,narrow:1};return i.map(e,function(e){return e.substr(0,n[t])})};e.exports={getMonthNames:function(e){return l(o,e)},getDayNames:function(e){return l(a,e)},getQuarterNames:function(e){return s},getPeriodNames:function(e){return r}}},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(74),r=i(a),s=n(434),l=i(s),u={tryCreateTag:function(e){var t=null;return(0,o.isDefined)(e)&&(t={patternFill:l.default.tryCreateTag(e.patternFill)},u.isEmpty(t)&&(t=null)),t},tryCreateFillFromSimpleFormat:function(){var e=arguments.length>0&&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(74),r=i(a),s={_tryConvertColor:function(e){if("string"!=typeof e)return e;var t=void 0;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(74),r=i(a),s=n(221),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,M.default)("<canvas>")[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,ue),i=Z.atob(n.substring(("data:"+t+";base64,").length));return i}function r(e,t,n,i,o,a,r,s){var l,u,c,d,h,p,f=(e+n)/2,g=(t+i)/2,_=oe(t-i,e-n),m=a?1:-1;_+=90*(J/180)*(r?1:-1),l=ne(ie(n-e,2)+ie(i-t,2))/2,u=ne(te(ie(o,2)-ie(l,2))),c=f+m*(u*ae(_)),d=g+m*(u*re(_)),h=oe(t-d,e-c),p=oe(i-d,n-c),s.arc(c,d,o,h,p,!r)}function s(e){var t,n=fe(e.attributes||{}),i=(0,$.extend)({},n,{text:e.textContent.replace(/\s+/g," "),textAlign:"middle"===n["text-anchor"]?"center":n["text-anchor"]}),o=n.transform;return o&&(t=o.match(/translate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/),t&&(t=t[0].match(/-*\d+([.]\d+)*/g),i.translateX=le(t[0]),i.translateY=t[1]?le(t[1]):0),t=o.match(/rotate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*,*\s*-*\d+([.]\d+)*)*/),t&&(t=t[0].match(/-*\d+([.]\d+)*/g),i.rotationAngle=le(t[0]),i.rotationX=t[1]&&le(t[1]),i.rotationY=t[2]&&le(t[2]))),d(e,i),i}function l(e,t){var n=t.x,i=t.y,o=t.width,a=t.height,r=t.rx;r?(r=ee(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 X.Deferred,o=new Z.Image;return o.onload=function(){e.save(),e.globalAlpha=t.globalAlpha,b(e,t),w(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,a=t.replace(/,/g," ").split(/([A-Z])/i).filter(function(e){return""!==e}),s=0;do switch(n=(a[s+1]||"").trim().split(" "),a[s]){case"M":e.moveTo(le(n[0]),le(n[1])),s+=2;break;case"L":for(var l=0;l<n.length/2;l++)e.lineTo(le(n[2*l]),le(n[2*l+1]));s+=2;break;case"C":e.bezierCurveTo(le(n[0]),le(n[1]),le(n[2]),le(n[3]),le(n[4]),le(n[5])),s+=2;break;case"a":i=a[s-1].trim().split(" "),o=i.length-1,r(le(i[o-1]),le(i[o]),le(i[o-1])+le(n[5]),le(i[o])+le(n[6]),le(n[0]),le(n[3]),le(n[4]),e),s+=2;break;case"A":i=a[s-1].trim().split(" "),o=i.length-1,r(le(i[o-1]),le(i[o]),le(n[5]),le(n[6]),le(n[0]),le(n[3]),le(n[4]),e),s+=2;break;case"Z":e.closePath(),s+=1}while(s<a.length)}function d(e,t){var n,i=e.style||{};for(n in i)""!==i[n]&&(t[(0,Y.camelize)(n)]=i[n]);G.default.isElementNode(e)&&q.default.contains(G.default.getBody(),e)&&(i=Z.getComputedStyle(e),["fill","stroke","stroke-width","font-family","font-size","font-style","font-weight"].forEach(function(e){e in i&&""!==i[e]&&(t[(0,Y.camelize)(e)]=i[e])}),["opacity","fill-opacity","stroke-opacity"].forEach(function(e){e in i&&""!==i[e]&&"1"!==i[e]&&(t[e]=le(i[e]))})),t.textDecoration=t.textDecoration||t.textDecorationLine,t.globalAlpha=t.opacity||t.globalAlpha}function h(e){var t=e&&e.match(/url\(.*#(.*?)["']?\)/i);return t&&t[1]}function p(e,t){var n=[];t.fontSize=t.fontSize||de,t.fontFamily||he,t.fill=t.fill||pe,t.fontStyle&&n.push(t.fontStyle),t.fontWeight&&n.push(t.fontWeight),n.push(t.fontSize),n.push(t.fontFamily),e.font=n.join(" "),e.textAlign=t.textAlign,e.fillStyle=t.fill,e.globalAlpha=t.globalAlpha}function f(e,t,n){p(e,t),x(e,t,n),t.text&&e.fillText(t.text,t.x||0,t.y||0),D(e,t,!0),g(e,t,n)}function g(e,t,n){if(t.textDecoration&&"none"!==t.textDecoration){var i=t.x,o=e.measureText(t.text).width,a=parseInt(t.fontSize,10),r=a*ce<1?1:a*ce,s=t.y;switch(t.textDecoration){case"line-through":s-=a/3+r/2;break;case"overline":s-=a-r;break;case"underline":s+=r}e.rect(i,s,o,r),A(e,t,n),D(e,t)}}function _(e){e.strokeOpacity=void 0!==e["stroke-opacity"]?e["stroke-opacity"]:1,e.fillOpacity=void 0!==e["fill-opacity"]?e["fill-opacity"]:1,void 0!==e.opacity&&(e.strokeOpacity*=e.opacity,e.fillOpacity*=e.opacity)}function m(e){for(var t=e.childNodes,n=0;n<t.length;n++)if("tspan"===t[n].tagName)return!0;return!1}function v(e,t,n,i){for(var o,a=[],r=0,l=0;l<e.length;l++){var u=e[l];if(void 0===u.tagName)y(u,t,n,i);else if("tspan"===u.tagName||"text"===u.tagName){var c=s(u),d=(0,$.extend)({},n,c);if("tspan"===u.tagName&&m(u)){v(u.childNodes,t,d,i);continue}d.textAlign="start",o&&void 0===c.x||(o={elements:[],options:[],widths:[],offsets:[]},a.push(o)),void 0!==c.y&&(r=0),void 0!==c.dy&&(r+=parseFloat(c.dy)),o.elements.push(u),o.options.push(d),o.offsets.push(r),p(t,d),o.widths.push(t.measureText(d.text).width)}}a.forEach(function(e){var o=e.widths.reduce(function(e,t){return e+t},0),a=0,r=0;"center"===n.textAlign&&(a=o/2),"end"===n.textAlign&&(a=o),e.options.forEach(function(t,n){var i=e.widths[n];t.x=t.x-a+r,t.y+=e.offsets[n],r+=i}),e.elements.forEach(function(n,o){v(n.childNodes,t,e.options[o],i)})})}function y(e,t,n,i){var o=e.tagName,a="text"===o||"tspan"===o||void 0===o,r="image"===o,d=(0,$.extend)({},n,s(e));if("hidden"!==d.visibility&&!d["hidden-for-export"]){t.save(),!r&&b(t,d),w(t,d,i),_(d);var h=void 0;switch(t.beginPath(),e.tagName){case void 0:f(t,d,i);break;case"text":case"tspan":v(e.childNodes,t,d,i);break;case"image":h=u(t,d,i);break;case"path":c(t,d.d);break;case"rect":l(t,d),t.closePath();break;case"circle":t.arc(d.cx,d.cy,d.r,0,2*J,1)}return a||(x(t,d,i),A(t,d,i),D(t,d)),t.restore(),h}}function x(e,t,n){var i,o=h(t.filter);o&&(i=n.filters[o],i||(i={offsetX:0,offsetY:0,blur:0,color:"#000"}),e.shadowOffsetX=i.offsetX,e.shadowOffsetY=i.offsetY,e.shadowColor=i.color,e.shadowBlur=i.blur)}function b(e,t){e.translate(t.translateX||0,t.translateY||0),delete t.translateX,delete t.translateY,t.rotationAngle&&(e.translate(t.rotationX||0,t.rotationY||0),e.rotate(t.rotationAngle*J/180),e.translate(-(t.rotationX||0),-(t.rotationY||0)),delete t.rotationAngle,delete t.rotationX,delete t.rotationY)}function w(e,t,n){t["clip-path"]&&(y(n.clipPaths[h(t["clip-path"])],e,{},n),e.clip(),delete t["clip-path"])}function C(e,t){var n=new V.default(e);return"rgba("+n.r+","+n.g+","+n.b+","+t+")"}function k(e){var t,n,i={};return se(e.childNodes,function(e,o){var a=o.attributes;if(a.result)switch(a.result.value){case"gaussianBlurResult":i.blur=le(a.stdDeviation.value);break;case"offsetResult":i.offsetX=le(a.dx.value),i.offsetY=le(a.dy.value);break;case"floodResult":t=a["flood-color"]?a["flood-color"].value:"#000",n=a["flood-opacity"]?a["flood-opacity"].value:1,i.color=C(t,n)}}),i}function S(e,t){function n(){S(Array.prototype.slice.call(e,1),t,i)}var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new X.Deferred;if(0===e.length)return i.resolve();var o=t(e[0]);return(0,F.isPromise)(o)?o.then(n):n(),i}function I(e,t,n,i){return S(e,function(e){switch(e.tagName&&e.tagName.toLowerCase()){case"g":case"svg":var o=(0,$.extend)({},n,s(e));t.save(),b(t,o),w(t,o,i);var a=function(){t.restore()},r=I(e.childNodes,t,o,i);return(0,F.isPromise)(r)?r.then(a):a(),r;case"defs":return I(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]=k(e);break;default:return y(e,t,n,i)}})}function T(e,t){var n=t["stroke-dasharray"]&&t["stroke-dasharray"].match(/(\d+)/g);n&&n.length&&(n=N.default.map(n,function(e){return le(e)}),e.setLineDash(n))}function D(e,t,n){var i=t.stroke;i&&"none"!==i&&0!==t["stroke-width"]&&(T(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 E(e,t,n){var i=n.patterns[h(t)],a=s(i),r=o(a.width,a.height,0),l=r.getContext("2d");return I(i.childNodes,l,a,n),e.createPattern(r,"repeat")}function A(e,t,n){var i=t.fill;i&&"none"!==i&&(e.fillStyle=i.search(/url/)===-1?i:E(e,i,n),e.globalAlpha=t.fillOpacity,e.fill(),e.globalAlpha=1)}function O(e,t,n,i,o){e.fillStyle=i||"#ffffff",e.fillRect(-o,-o,t+2*o,n+2*o)}function B(e,t,n,i,a){var r=o(t,n,a),s=r.getContext("2d"),l=H.default.getSvgElement(e);return s.translate(a,a),G.default.getBody().appendChild(r),l.attributes.direction&&(r.dir=l.attributes.direction.textContent),O(s,t,n,i,a),I(l.childNodes,s,{},{clipPaths:{},patterns:{},filters:{}}).then(function(){return G.default.getBody().removeChild(r),r})}var P=n(2),M=i(P),R=n(90),V=i(R),F=n(1),L=n(185),H=i(L),z=n(3),N=i(z),$=n(0),W=n(11),G=i(W),j=n(12),q=i(j),K=n(7),U=i(K),Y=n(32),X=n(6),Z=U.default.getWindow(),Q=Math,J=Q.PI,ee=Q.min,te=Q.abs,ne=Q.sqrt,ie=Q.pow,oe=Q.atan2,ae=Q.cos,re=Q.sin,se=N.default.each,le=Number,ue=1,ce=.05,de="10px",he="sans-serif",pe="#000",fe=function(e){var t,n={};return N.default.each(e,function(e,i){t=i.textContent,isFinite(t)&&(t=le(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,F.isFunction)(t.__parseAttributesFn)&&(fe=t.__parseAttributesFn);var s=new X.Deferred;return B(e,i,o,r,t.margin).then(function(e){s.resolve(a(e,n))}),s},getData:function(e,n){var i=this,o=new X.Deferred;return t.imageCreator.getImageData(e,n).then(function(e){var t="image/"+n.format,a=(0,F.isFunction)(Z.Blob)&&!n.forceProxy?i._getBlob(e,t):i._getBase64(e);o.resolve(a)}),o},_getBlob:function(e,t){var n,i=new Uint8Array(e.length);for(n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return new Z.Blob([i.buffer],{type:t})},_getBase64:function(e){return Z.btoa(e)}},t.getData=function(e,n,i){return t.imageCreator.getData(e,n).then(i)},t.testFormats=function(e){var t=o(100,100,0);return e.reduce(function(e,n){var i=("image/"+n).toLowerCase();return t.toDataURL(i).indexOf(i)!==-1?e.supported.push(n):e.unsupported.push(n),e},{supported:[],unsupported:[]})}},function(e,t,n){function i(e){function t(){for(;r.length;){s=!0;var e=r.shift(),n=e();if(void 0!==n){if(n.then)return void a(n).always(t);throw o.Error("E0015")}}s=!1}function n(n,i){e?(r[0]&&i&&i(r[0]),r=[n]):r.push(n),s||t()}function i(){return s}var r=[],s=!1;return{add:n,busy:i}}var o=n(21),a=n(6).when;t.create=i,t.enqueue=i().add},function(e,t,n){var i=n(1).isFunction,o=/cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,a={linear:"cubic-bezier(0, 0, 1, 1)",swing:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",ease:"cubic-bezier(0.25, 0.1, 0.25, 1)","ease-in":"cubic-bezier(0.42, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.58, 1)","ease-in-out":"cubic-bezier(0.42, 0, 0.58, 1)"},r=function(e,t,n,i){var o=3*e,a=3*(n-e)-o,r=1-o-a,s=3*t,l=3*(i-t)-s,u=1-s-l,c=function(e){return e*(o+e*(a+e*r))},d=function(e){return e*(s+e*(l+e*u))},h=function(e){for(var t,n=e,i=0;i<14&&(t=c(n)-e,!(Math.abs(t)<.001));)n-=t/p(n),i++;return n},p=function(e){return o+e*(2*a+3*e*r)};return function(e){return d(h(e))}},s={},l=function(e){e=a[e]||e;var t,n=e.match(o);n||(t="linear",n=a[t].match(o)),n=n.slice(1,5);for(var l=0;l<n.length;l++)n[l]=parseFloat(n[l]);var u=t||"cubicbezier_"+n.join("_").replace(/\./g,"p");return i(s[u])||(s[u]=function(e,t,i,o,a){return o*r(n[0],n[1],n[2],n[3])(t/a)+i}),u};t.setEasing=function(e){s=e},t.getEasing=function(e){return s[e]},t.convertTransitionTimingFuncToEasing=l},function(e,t,n){var i=n(16),o=n(0).extend,a=n(3).each,r=n(150),s={dxpointerdown:"touchstart",dxpointermove:"touchmove",dxpointerup:"touchend",dxpointercancel:"touchcancel",dxpointerover:"",dxpointerout:"",dxpointerenter:"",dxpointerleave:""},l=function(e){var t=[];return a(e.touches,function(e,n){t.push(o({pointerId:n.identifier},n))}),{pointers:t,pointerId:e.changedTouches[0].identifier}},u=function(e){return"ios"===i.real().platform&&("dxpointerdown"===e||"dxpointerup"===e)},c=r.inherit({ctor:function(){this.callBase.apply(this,arguments),this._pointerId=0},_handler:function(e){if(u(this._eventName)){var t=e.changedTouches[0];if(this._pointerId===t.identifier&&0!==this._pointerId)return;this._pointerId=t.identifier}return this.callBase.apply(this,arguments)},_fireEvent:function(e){return this.callBase(o(l(e.originalEvent),e))}});c.map=s,c.normalize=l,e.exports=c},function(e,t,n){var i=n(3).each,o=n(47),a=n(11),r=function(e,t){o.add(function(){e.split(" ").forEach(function(e){a.listen(a.getDocument(),e,t,!0)})})},s=function(e,t,n){n=n||function(){};var o=[],a=function(e){var n=-1;return i(o,function(i,o){return!t(e,o)||(n=i,!1)}),n},s=function(e){a(e)===-1&&(n(e),o.push(e))},l=function(e){var t=a(e);t>-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(150),r=n(227),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(53),o=n(58).compare,a=n(125),r=n(77)();if(r&&o(i.fn.jquery,[1,10])<0)throw a.Error("E0012");
31n(448),n(449),n(450),n(451),n(452),n(453),n(454),n(455),n(456),n(457)},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(41),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){var o=encodeURI(JSON.stringify(e)).length,r=this.options.maxFilterLengthInRequest&&o>this.options.maxFilterLengthInRequest,s=new l,u={filter:r?void 0:e,select:r?this.options.dataFields():n||this.options.dataFields()};return e&&0===e.length?s.resolve([]):this.options.load(u).done(function(n){var o=a.isPlainObject(n)?n.data:n;t?o=o.filter(t):r&&(o=i(o).filter(e).toArray()),s.resolve(o)}).fail(s.reject.bind(s)),s},updateSelectedItemKeyHash:function(e){for(var t=0;t<e.length;t++){var n=r(e[t]);if(!a.isObject(n)){this.options.keyHashIndices[n]=this.options.keyHashIndices[n]||[];var i=this.options.keyHashIndices[n];i.push(t)}}},_isAnyItemSelected:function(e){for(var t=0;t<e.length;t++)if(this.options.isItemSelected(e[t]))return;return!1},_getFullSelectAllState:function(){var e=this.options.plainItems(),t=this.options.filter(),n=this.options.selectedItems;t&&(n=i(n).filter(t).toArray());var o=n.length;return o?o>=this.options.totalCount()||void 0:this._isAnyItemSelected(e)},_getVisibleSelectAllState:function(){for(var e=this.options.plainItems(),t=!1,n=!1,i=0;i<e.length;i++){var o=e[i],a=this.options.getItemData(o),r=this.options.keyOf(a);this.options.isSelectableItem(o)&&(this.isItemKeySelected(r)?t=!0:n=!0)}return!!t&&(!n||void 0)}})},function(e,t,n){var i=n(61),o=function e(t){var n=i.contextFor(t);return!n&&t.parentNode?e(t.parentNode):t};e.exports.getClosestNodeWithContext=o},function(e,t,n){var i=n(130);e.exports=i.data=i.data||{},Object.defineProperty(i.data,"errorHandler",{get:function(){return n(35).errorHandler},set:function(e){n(35).errorHandler=e}}),Object.defineProperty(i.data,"_errorHandler",{get:function(){return n(35)._errorHandler},set:function(e){n(35)._errorHandler=e}}),i.data.DataSource=n(485),i.data.query=n(41),i.data.Store=n(91),i.data.ArrayStore=n(68),i.data.CustomStore=n(136),i.data.LocalStore=n(486),i.data.base64_encode=n(40).base64_encode,i.data.Guid=n(43),i.data.utils={},i.data.utils.compileGetter=n(20).compileGetter,i.data.utils.compileSetter=n(20).compileSetter,i.EndpointSelector=n(487),i.data.queryImpl=n(41).queryImpl,i.data.queryAdapters=n(181);var o=n(40);i.data.utils.normalizeBinaryCriterion=o.normalizeBinaryCriterion,i.data.utils.normalizeSortingInfo=o.normalizeSortingInfo,i.data.utils.errorMessageFromXhr=o.errorMessageFromXhr,i.data.utils.aggregators=o.aggregators,i.data.utils.keysEqual=o.keysEqual,i.data.utils.isDisjunctiveOperator=o.isDisjunctiveOperator,i.data.utils.isConjunctiveOperator=o.isConjunctiveOperator,i.data.utils.processRequestResultLock=o.processRequestResultLock,i.data.utils.toComparable=n(20).toComparable,i.data.utils.multiLevelGroup=n(80).multiLevelGroup,i.data.utils.arrangeSortingInfo=n(80).arrangeSortingInfo,i.data.utils.normalizeDataSourceOptions=n(44).normalizeDataSourceOptions},function(e,t,n){var i=n(3).each,o=n(11),a=n(7).getWindow(),r=n(70),s="dxproxy.devexpress.com:8000",l={},u=r(function(){var e=o.createElement("a"),t=["protocol","hostname","port","pathname","search","hash"],n=function(e){return"/"!==e.charAt(0)&&(e="/"+e),e};return function(o){e.href=o;var a={};return i(t,function(){a[this]=e[this]}),a.pathname=n(a.pathname),a}}),c=function(e){var t=u();return t(e)},d=function(){return a.location.pathname.split("/")[1]};e.exports={parseUrl:c,isProxyUsed:function(){return a.location.host===s},formatProxyUrl:function(e){var t=c(e);if(!/^(localhost$|127\.)/i.test(t.hostname))return e;var n=s+"/"+d()+"_"+t.port;l[n]=t.hostname+":"+t.port;var i="http://"+n+t.pathname+t.search;return i},formatLocalUrl:function(e){if(e.indexOf(s)<0)return e;var t=e;for(var n in l)if(Object.prototype.hasOwnProperty.call(l,n)&&e.indexOf(n)>=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(28),s=n(100),l=n(236),u=n(35).errors,c=n(41),d=n(91),h=n(238),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),n.$select=s.generateSelect(this._version,t.select)),this._sendRequest(this._byKeyUrl(e),"GET",n)},createQuery:function(e){var t,n;if(e=e||{},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},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<i.length;o++){var a=i[o];t[a]=s.convertPrimitiveValue(n[a],e[a])}}else n[i]&&(t=s.convertPrimitiveValue(n[i],e));return t},_byKeyUrl:function(e,t){var n=t?l.formatLocalUrl(this._url):this._url,i=this._convertKey(e);return n+"("+encodeURIComponent(s.serializeKey(i,this._version))+")"}},"odata").include(h.SharedMethods);e.exports=m},function(e,t,n){var i=n(45),o=n(3),a=n(100);n(155);var r=2,s=function(e,t){return i.format("{0}({1})",e,o.map(t||{},function(e,t){return i.format("{0}={1}",t,e)}).join(","))},l=function(e,t){if(!e)return e;var n={};return o.each(e,function(e,i){n[e]=a.serializeValue(i,t)}),n},u={_extractServiceOptions:function(e){e=e||{},this._url=String(e.url).replace(/\/+$/,""),this._beforeSend=e.beforeSend,this._jsonp=e.jsonp,this._version=e.version||r,this._withCredentials=e.withCredentials,this._deserializeDates=e.deserializeDates,this._filterToLower=e.filterToLower},_sendRequest:function(e,t,n,i){return a.sendRequest(this.version(),{url:e,method:t,params:n||{},payload:i},{beforeSend:this._beforeSend,jsonp:this._jsonp,withCredentials:this._withCredentials,deserializeDates:this._deserializeDates})},version:function(){return this._version}};t.SharedMethods=u,t.escapeServiceOperationParams=l,t.formatFunctionInvocationUrl=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(132),s=i(r),l=n(110),u=i(l),c=n(16),d=i(c),h=n(28),p=i(h),f=n(12),g=n(6),_=n(1),m=n(3),v=n(0),y=n(7),x=n(5),b=n(75),w=n(14),C=i(w),k=n(17),S=i(k),I=n(46),T=i(I),D=n(4),E=(0,y.getWindow)(),A={text:"OK",onClick:function(){return!0}},O="dx-dialog",B=O+"-wrapper",P=O+"-root",M=O+"-content",R=O+"-message",V=O+"-buttons",F=O+"-button",L="dx-button",H=s.default.inherit({ctor:function(e,t){this.callBase(t)},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{width:276}},{device:{platform:"android"},options:{lWidth:"60%",pWidth:"80%"}}])}});t.FakeDialogComponent=H,t.title="",t.custom=function(e){function n(){return k.show(),o.promise()}function i(e){o.resolve(e),k.hide().done(function(){k.$element().remove()})}var o=new g.Deferred,r=(new H).option();e=(0,v.extend)(r,e);var s=(0,a.default)("<div>").addClass(O).appendTo((0,b.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)("<div>").addClass(R).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(M).append(y)},onShowing:function(e){e.component.bottomToolbar().addClass(V).find("."+L).addClass(F),(0,f.resetActiveElement)()},onShown:function(e){var t=e.component.bottomToolbar().find("."+L).first();(0,x.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(54),d=n(46),h=n(138),p=n(65),f=n(6).Deferred,g="dx-actionsheet",_="dx-actionsheet-container",m="dx-actionsheet-popup-wrapper",v="dx-actionsheet-popover-wrapper",y="dx-actionsheet-cancel",x="dx-actionsheet-item",b="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("<div>"),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 x},_itemDataKey:function(){return b},_toggleVisibility:a,_renderDimensions:a,_initMarkup:function(){this.callBase(),this.$element().addClass(g),this._createItemContainer()},_render:function(){this._renderPopup()},_createItemContainer:function(){this._$itemContainer=i("<div>").addClass(_),this._renderDisabled()},_renderDisabled:function(){this._$itemContainer.toggleClass("dx-state-disabled",this.option("disabled"))},_renderPopup:function(){this._$popup=i("<div>").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("<div>").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){var 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},o=n(2),a=n(7).getWindow(),r=n(5),s=n(43),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(41),y=n(3).each,x=n(244),b=n(14),w=n(134),C=n(6).Deferred,k=n(287).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(x._dataExpressionDefaultOptions(),{displayValue:void 0,searchEnabled:!1,searchMode:"contains",searchTimeout:500,minSearchLength:0,searchExpr:null,valueChangeEvent:"input change keyup",selectedItem:null,noDataText:b.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<t?n:e},_items:function(){var e=this._getPlainItems(!this._list&&this._dataSource.items()),t=new v(e).filter("disabled","<>",!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&&!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)},_loadItem:function(e,t){var n,o;return t&&"object"!==("undefined"==typeof e?"undefined":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]),void 0!==o?(new C).resolve(o).promise():this._loadValue(e)},_getPlainItems:function(e){var t=[];e=e||this.option("items")||[];for(var n=0;n<e.length;n++)e[n]&&e[n].items?t=t.concat(e[n].items):t.push(e[n]);return t},_setSelectedItem:function(e){var t=this._displayValue(e);this.option("selectedItem",u.ensureDefined(e,null)),this.option("displayValue",t)},_displayValue:function(e){return this._displayGetter(e)},_refreshSelected:function(){var e={};this._listItemElements().each(function(t,n){var i=o(n),a=this._valueGetter(i.data(I)),r=this._isSelectedValue(a,e);r?this._list.selectItem(i):this._list.unselectItem(i)}.bind(this))},_popupShownHandler:function(){this.callBase(),this._setFocusPolicy()},_setFocusPolicy:function(){this.option("focusStateEnabled")&&this._list&&this._list.option("focusedElement",null)},_isSelectedValue:function(e){return this._isValueEquals(e,this.option("value"))},_validateSearchMode:function(){var e=this.option("searchMode"),t=e.toLowerCase();if(h(t,A)<0)throw g.Error("E1019",e)},_clearSelectedItem:function(){this.option("selectedItem",null)},_processDataSourceChanging:function(){this._setListDataSource(),this._renderInputValue().fail(function(){this._isCustomValueAllowed()||this._clearSelectedItem()}.bind(this))},_isCustomValueAllowed:function(){return this.option("displayCustomValue")},reset:function(){this.callBase(),this._clearFilter(),this._clearSelectedItem()},_listItemElements:function(){return this._$list?this._$list.find(S):o()},_popupConfig:function(){var e=this;return d(this.callBase(),{templatesRenderAsynchronously:!1,width:this.option("width"),onShowing:function(){e.$element().addClass(D)},onHidden:function(){e.$element().removeClass(D)},height:"auto",autoResizeEnabled:!1,maxHeight:this._getMaxHeight.bind(this)})},_renderPopupContent:function(){this._renderList()},_attachChildKeyboardEvents:function(){this._childKeyboardProcessor=this._keyboardProcessor.attachChildProcessor(),this._setListOption("_keyboardProcessor",this._childKeyboardProcessor)},_fireContentReadyAction:u.noop,_setAriaTargetForList:function(){this._list._getAriaTarget=this._getAriaTarget.bind(this)},_renderList:function(){this._listId="dx-"+(new s)._value;var e=this._$list=o("<div>").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(),owns:e&&this._listId})},_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"),tabIndex:null,onItemClick:this._listItemClickAction.bind(this),dataSource:this._getDataSource(),_keyboardProcessor:this._childKeyboardProcessor,hoverStateEnabled:!!this._isDesktopDevice()&&this.option("hoverStateEnabled"),focusStateEnabled:!!this._isDesktopDevice()&&this.option("focusStateEnabled")};return e},_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")},_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._needPassDataSourceToList()&&this._filterDataSource(null),this._refreshList()},_searchDataSource:function(){this._filterDataSource(this._searchValue())},_filterDataSource:function(e){this._clearSearchTimer();var t=this._dataSource;return 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._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=(t||o(a)).outerHeight(),r=Math.max(n,i-n-e.outerHeight());return Math.min(.5*i,r)},_clean:function(){this._list&&delete this._list,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":this._selectionChangedAction({selectedItem:e.value});break;default:this.callBase(e)}}}).include(x,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(42),_=n(14),m=n(72),v=n(16),y=n(517),x=n(34),b=n(8),w=n(31),C=n(7),k=n(162),S=n(94).deviceDependentOptions,I=n(191).default,T=n(65),D=n(6).Deferred,E=n(287).default,A="dx-list",O="dx-list-item",B="."+O,P="dx-list-item-icon-container",M="dx-list-item-icon",R="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=l<o+n&&l>n,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()),
32e.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("."+R).children("."+F).children(this._itemSelector()):this._itemElementsCache=this._itemContainer().children(this._itemSelector())},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(M),o=i("<div>").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=b.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=b.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("<div>").addClass(R).appendTo(this._itemContainer()),o=i("<div>").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("<div>").addClass(z).prependTo(o),this._renderingGroupIndex=e;var c=i("<div>").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})},attachGroupHeaderInkRippleEvents:function(){var e=this,t="."+V,n=this.$element();o.on(n,"dxpointerdown",t,function(t){e._toggleActiveState(i(t.currentTarget),!0,t)}),o.on(n,"dxpointerup dxhoverend",t,function(t){e._toggleActiveState(i(t.currentTarget),!1)})},_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("<div>").addClass($),t=i("<div>").appendTo(e);return this._createComponent(t,x,{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("."+R),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("."+R).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("."+R).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){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(0),s=n(14),l=i(s),u=n(92),c=i(u),d=n(17),h=i(d),p=n(6);e.exports={_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{searchMode:"",searchExpr:null,searchValue:"",searchEnabled:!1,searchEditorOptions:{}})},_initMarkup:function(){this._renderSearch(),this.callBase()},_renderSearch:function(){var e,t=this.$element(),n=this.option("searchEnabled"),i=this._addWidgetPrefix("search"),o=this._addWidgetPrefix("with-search");return n?(e=this._getSearchEditorOptions(),void(this._searchEditor?this._searchEditor.option(e):(t.addClass(o),this._$searchEditorElement=(0,a.default)("<div>").addClass(i).prependTo(t),this._searchEditor=this._createComponent(this._$searchEditorElement,c.default,e)))):(t.removeClass(o),void this._removeSearchBox())},_removeSearchBox:function(){this._$searchEditorElement&&this._$searchEditorElement.remove(),delete this._$searchEditorElement,delete this._searchEditor},_getSearchEditorOptions:function(){var e=this,t=e.option("searchEditorOptions");return(0,r.extend)({mode:"search",placeholder:l.default.format("Search"),tabIndex:e.option("tabIndex"),value:e.option("searchValue"),valueChangeEvent:"input",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){var 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},o=n(87),a=n(20),r=n(4),s=n(1),l=n(0).extend,u=n(86),c=n(44),d=n(68),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<a;o++)n[t[o]]=e[t[o]];return n}return t&&"object"===("undefined"==typeof e?"undefined":i(e))&&(e=e[t]),e},_isValueEquals:function(e,t){var n=this._dataSource&&this._dataSource.key(),i=s.isDefined,o=this._compareValues(e,t);return!o&&n&&i(e)&&i(t)&&(o=Array.isArray(n)?this._compareByCompositeKey(e,t,n):this._compareByKey(e,t,n)),o},_compareByCompositeKey:function(e,t,n){var i=s.isObject;if(!i(e)||!i(t))return!1;for(var o=0,a=n.length;o<a;o++)if(e[n[o]]!==t[n[o]])return!1;return!0},_compareByKey:function(e,t,n){var i=r.ensureDefined,a=o.unwrap,s=i(a(e[n]),e),l=i(a(t[n]),t);return this._compareValues(s,l)},_compareValues:function(e,t){return a.toComparable(e,!0)===a.toComparable(t,!0)},_initDynamicTemplates:r.noop,_setCollectionWidgetItemTemplate:function(){this._initDynamicTemplates(),this._setCollectionWidgetOption("itemTemplate",this.option("itemTemplate"))},_getCollectionKeyExpr:function(){var e=this.option("valueExpr"),t=s.isString(e)&&"this"!==e||s.isFunction(e);return t?e:null},_dataExpressionOptionChanged:function(e){switch(e.name){case"items":this._itemsToDataSource(),this._setCollectionWidgetOption("items");break;case"dataSource":this._initDataSource();break;case"itemTemplate":this._setCollectionWidgetItemTemplate();break;case"valueExpr":this._compileValueGetter();break;case"displayExpr":this._compileDisplayGetter(),this._initDynamicTemplates(),this._setCollectionWidgetOption("displayExpr")}}});e.exports=p},function(e,t,n){e.exports=n(527)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getElementMaxHeightByWindow=void 0;var o=n(2),a=i(o),r=n(7),s=.9;t.getElementMaxHeightByWindow=function(e){var t=(0,r.getWindow)(),n=e.offset().top-(0,a.default)(t).scrollTop(),i=(0,a.default)(t).innerHeight()-n-e.outerHeight();return Math.max(n,i)*s}},function(e,t,n){var i=n(2),o=n(248),a=n(0).extend,r=n(1).isFunction,s=n(9),l="dx-progressbar",u="dx-progressbar-container",c="dx-progressbar-range-container",d="dx-progressbar-range",h="dx-progressbar-wrapper",p="dx-progressbar-status",f="dx-progressbar-animating-container",g="dx-progressbar-animating-segment",_=o.inherit({_getDefaultOptions:function(){return a(this.callBase(),{value:0,statusFormat:function(e){return"Progress: "+Math.round(100*e)+"%"},showStatus:!0,onComplete:null,activeStateEnabled:!1,statusPosition:"bottom left",_animatingSegmentCount:0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"win"},options:{_animatingSegmentCount:5}},{device:function(e){return"android"===e.platform},options:{_animatingSegmentCount:2}}])},_initMarkup:function(){this._renderStatus(),this._createCompleteAction(),this.callBase(),this.$element().addClass(l),this._$wrapper.addClass(h),this._$bar.addClass(u),this.setAria("role","progressbar"),i("<div>").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("<div>").addClass(p)},_renderIndeterminateState:function(){this._$segmentContainer=i("<div>").addClass(f);for(var e=this.option("_animatingSegmentCount"),t=0;t<e;t++)i("<div>").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("<div>").addClass(h).appendTo(this.$element())},_renderContainer:function(){this._$bar=i("<div>").addClass(c).appendTo(this._$wrapper)},_renderRange:function(){this._$range=i("<div>").addClass(d).appendTo(this._$bar)},_renderValue:function(){var e=this.option("value"),t=this.option("min"),n=this.option("max");if(!(t>n)){if(e<t)return this.option("value",t),void(this._currentRatio=0);if(e>n)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(54),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")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(){function e(){i(this,e),this._converters={}}return o(e,[{key:"addConverter",value:function(e,t){this._converters[e]=t}},{key:"getConverter",value:function(e){return this._converters[e]}}]),e}(),r=new a;t.default=r},function(e,t,n){var i=n(2),o=n(326),a=n(0).extend,r=n(6).Deferred,s=n(75),l=null,u=null,c=function(e){e=a({position:"top"},e);var t=e.content;delete e.content;var n=i("<div>").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){var i=n(2),o=n(5),a=n(38),r=n(19),s=n(16),l=n(0).extend,u=n(12).getPublicElement,c=n(3),d=n(1).isPlainObject,h=n(9),p=n(8),f=n(191).default,g=n(6),_=g.when,m=g.Deferred,v=n(65),y=n(62),x=n(1).isDefined,b=n(31),w="dx-accordion",C="dx-accordion-wrapper",k="dx-accordion-item",S="dx-accordion-item-opened",I="dx-accordion-item-closed",T="dx-accordion-item-title",D="dx-accordion-item-body",E="dx-accordion-item-title-caption",A="dxAccordionItemData",O=f.inherit({_activeStateUnit:"."+k,_getDefaultOptions:function(){return l(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"===s.real().deviceType&&!s.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return b.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(w),this._$container=i("<div>").addClass(C),e.append(this._$container)},_initTemplates:function(){this.callBase(),this._defaultTemplates.title=new v(function(e,t){var n=i("<div>").addClass(E).appendTo(e);d(t)?(t.title&&n.text(t.title),n.append(y.getImageContainer(t.icon))):n.text(String(t))},["title","icon"],this.option("integrationOptions.watchMethod"))},_initMarkup:function(){this._deferredItems=[],this.callBase(),this.setAria({role:"tablist",multiselectable:this.option("multiple")})},_render:function(){this.callBase(),this._updateItemHeightsWrapper(!0)},_itemDataKey:function(){return A},_itemClass:function(){return k},_itemContainer:function(){return this._$container},_itemTitles:function(){return this._itemElements().find("."+T)},_itemContents:function(){return this._itemElements().find("."+D)},_getItemData:function(e){return i(e).parent().data(this._itemDataKey())||this.callBase.apply(this,arguments)},_executeItemRenderAction:function(e){e.type||this.callBase.apply(this,arguments)},_itemSelectHandler:function(e){i(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(l({},e,{contentClass:T,templateProperty:"titleTemplate",defaultTemplateName:this.option("itemTitleTemplate")}));this._attachItemTitleClickAction(t);var n=new m;x(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,l({},e,{contentClass:D,container:u(i("<div>").appendTo(i(t).parent()))})))},_attachItemTitleClickAction:function(e){var t=p.addNamespace(r.name,this.NAME);o.off(e,t),o.on(e,t,this._itemTitleClickHandler.bind(this))},_itemTitleClickHandler:function(e){this._itemDXEventHandler(e,"onItemTitleClick")},_renderSelection:function(e,t){this._itemElements().addClass(I),this.setAria("hidden",!0,this._itemContents()),this._updateItems(e,t)},_updateSelection:function(e,t){this._updateItems(e,t),
33this._updateItemHeightsWrapper(!1)},_updateItems:function(e,t){var n=this._itemElements(),i=this;c.each(e,function(e,t){i._deferredItems[t].resolve();var o=n.eq(t).addClass(S).removeClass(I);i.setAria("hidden",!1,o.find("."+D))}),c.each(t,function(e,t){var o=n.eq(t).removeClass(S);i.setAria("hidden",!0,o.find("."+D))})},_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,o=this._splitFreeSpace(this._calculateFreeSpace());return clearTimeout(this._animationTimer),_.apply(i,[].slice.call(this._itemElements()).map(function(n){return t._updateItemHeight(i(n),o,e)})).done(function(){n&&n.resolveWith(t)})},_updateItemHeight:function(e,t,n){var i=e.children("."+T);a.isAnimating(e)&&a.stop(e);var o=e.outerHeight(),r=e.hasClass(S)?t+i.outerHeight()||e.height("auto").outerHeight():i.outerHeight();return this._animateItem(e,o,r,n,!!t)},_animateItem:function(e,t,n,i,o){var r;return i||t===n?(e.css("height",n),r=(new m).resolve()):r=a.animate(e,{type:"custom",from:{height:t},to:{height:n},duration:this.option("animationDuration"),easing:this.option("_animationEasing")}),r.done(function(){e.hasClass(S)&&!o&&e.css("height",""),e.not("."+S).addClass(I)})},_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 c.each(t,function(e,t){n+=i(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 m,this.selectItem(e),this._deferredAnimate.promise()},collapseItem:function(e){return this._deferredAnimate=new m,this.unselectItem(e),this._deferredAnimate.promise()},updateDimensions:function(){return this._updateItemHeights(!1)}});h("dxAccordion",O),e.exports=O},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(36),a=i(o),r=n(40);t.createGroupFilter=function(e,t){var n,i=(0,r.normalizeSortingInfo)(t.group),o=[];for(n=0;n<e.length;n++)o.push([i[n].selector,"=",e[n]]);return t.filter&&o.push(t.filter),a.default.combineFilters(o)}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,i){var o=0,a=0,r=n/2;return e+i-(t+n)>1?(e>=t+n+r&&(a=parseInt((e-(t+n))/r,10)),o=t+n+r*a):e<t?(e<=t-r&&(a=parseInt((e-(t-r))/r,10)),o=t-(n-r*a)):o=t,o}var a=n(2),r=i(a),s=n(15),l=i(s),u=n(12),c=n(0),d=n(1),h="dx-expand",p=function(e){var t=0,n=e.offsetWidth;if(e.getBoundingClientRect){var i=e.getBoundingClientRect();t=i.width,t||(t=i.right-i.left),t<=n-1&&(t=n)}return t>0?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)("<div>")},_createTableElement:function(){return(0,r.default)("<table>")},_getCellText:function(e,t){var n=e.isWhiteSpace?"&nbsp":e.text||"&nbsp";return!t||n.indexOf("<")===-1&&n.indexOf(">")===-1||(n=(0,r.default)("<div>").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"<tbody>"},_getCloseMainElementMarkup:function(){return"</tbody>"},_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<p;o++){n=t[o];var y=[];for(u=[],g.push("<tr "),a=0;a<n.length;a++){if(i=n[a],this._getRowClassNames(o,i,u),y.push("<td "),i){i.rowspan&&y.push(v+(i.rowspan||1)+"'"),i.colspan&&y.push(m+(i.colspan||1)+"'");var x={cellElement:s,cell:i,cellsCount:n.length,cellIndex:a,rowElement:r,rowIndex:o,rowsCount:p,rtlEnabled:f,classArray:[],cssArray:[]};c._applyCustomStyles(x),x.cssArray.length&&(y.push("style='"),y.push(x.cssArray.join(";")),y.push("'")),x.classArray.length&&(y.push("class='"),y.push(x.classArray.join(" ")),y.push("'")),y.push(">"),(0,d.isDefined)(i.expanded)&&y.push("<div class='dx-expand-icon-container'><span class='"+h+"'></span></div>"),l=this._getCellText(i,_)}else l="";y.push("<span "),(0,d.isDefined)(i.wordWrapEnabled)&&y.push("style='white-space:",i.wordWrapEnabled?"normal":"nowrap",";'"),y.push(">"+l+"</span>"),i.sorted&&y.push("<span class='dx-icon-sorted'></span>"),y.push("</td>")}u.length&&(g.push("class='"),g.push(u.join(" ")),g.push("'")),g.push(">"),g.push(y.join("")),g.push("</tr>")}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;s<t.length;s++)for(a=t[s],n=h.eq(s),l=0;l<a.length;l++)r=a[l],i=n.children().eq(l),o={area:p,rowIndex:s,columnIndex:l,cellElement:(0,u.getPublicElement)(i),cell:r},g?d.component._trigger("onCellPrepared",o):f((0,c.extend)(o,_))},_getRowHeight:function(e){var t=this._getRowElement(e),n=0,i=t.offsetHeight;if(t&&t.lastChild){if(t.getBoundingClientRect){var o=t.getBoundingClientRect();n=o.height,n<=i-1&&(n=i)}return n>0?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<i;e++)n.push(t._getRowHeight(e));return n},setRowsHeight:function(e){var t,n=this,i=0,o=e.length;for(t=0;t<o;t++)i+=e[t],n._setRowHeight(t,e[t]);this._tableHeight=i,this._tableElement[0].style.height=i+"px"},getColumnsWidth:function(){var e,t,n,i,o=this.getRowsLength(),a=[],r=[],s=function(e,t,n,i,o){var a,r;for(a=0;a<i;a++)for(r=0;r<o;r++)e[t+a]=e[t+a]||[],e[t+a][n+r]=!0};if(o)for(e=0;e<o;e++)for(a[e]=a[e]||[],t=this._getRowElement(e),n=0;n<t.cells.length;n++){for(i=0;a[e][i];i++);s(a,e,i,t.cells[n].rowSpan,t.cells[n].colSpan),1===t.cells[n].colSpan&&(r[i]=r[i]||p(t.cells[n]))}return r},setColumnsWidth:function(e){var t,n=0,i=this._tableElement[0],o="",a=this.getColumnsCount(),r=[];for(t=0;t<a;t++)r.push(e[t]||0);for(t=a;t<e.length&&e;t++)r[a-1]+=e[t];for(t=0;t<a;t++)n+=r[t],o+='<col style="width: '+r[t]+'px">';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)("<div>").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<t.rows.length;n++)t.rows[n].style.height="";t.style.height="",t.style.width="100%"}},_updateFakeTableVisibility:function(){var e=this,t=e.tableElement()[0],n=e.option("rtlEnabled")?"right":"left",i=e._fakeTable[0];t.style.top===i.style.top&&i.style[n]===t.style[n]?e._fakeTable.addClass("dx-hidden"):e._fakeTable.removeClass("dx-hidden")},_moveFakeTableHorizontally:function(e){var t=this,n=t.option("rtlEnabled"),i=n?"right":"left",a=parseFloat(t.tableElement()[0].style[i]),r=o(e,a,t._tableWidth,t._groupWidth);parseFloat(t._fakeTable[0].style[i])!==r&&(t._fakeTable[0].style[i]=r+"px")},_moveFakeTableTop:function(e){var t=this,n=parseFloat(t.tableElement()[0].style.top),i=o(e,n,t._tableHeight,t._groupHeight);parseFloat(t._fakeTable[0].style.top)!==i&&(t._fakeTable[0].style.top=i+"px")},_moveFakeTable:function(){this._updateFakeTableVisibility()},_createFakeTable:function(){var e=this;e._fakeTable||(e._fakeTable=e.tableElement().clone().addClass("dx-pivot-grid-fake-table").appendTo(e._virtualContent))},render:function(e,t){var n=this;if(n._tableElement){try{n._tableElement[0].innerHTML=""}catch(e){n._tableElement.empty()}n._tableElement.attr("style","")}else n._groupElement=n._createGroupElement(),n._tableElement=n._createTableElement(),n._tableElement.appendTo(n._groupElement),n._groupElement.appendTo(e),n._rootElement=e;n._colgroupElement=(0,r.default)("<colgroup>").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<o;++i)t+=e[i].colSpan}return t},getData:function(){var e=this._tableElement;return e?e.data("data"):[]}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=t;return(0,g.isDefined)(t.groupIndex)&&(n=e.getAreaFields(t.area,!0)[t.areaIndex]),n}function a(e){return e=e||{},JSON.stringify([e.fields,e.columnExpandedPaths,e.rowExpandedPaths])}var r=n(2),s=i(r),l=n(5),u=i(l),c=n(68),d=i(c),h=n(19),p=i(h),f=n(4),g=n(1),_=n(13),m=n(0),v=n(3),y=n(14),x=n(9),b=i(x),w=n(18),C=i(w),k=n(363),S=i(k),I=n(335),T=i(I),D=n(340),E=i(D),A=n(78),O=n(690),B=i(O),P=n(6),M=1,R="<div>",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,a=e[0],r=(0,A.createPath)(e),s=i?(0,v.map)(e,function(e){return e.text}).reverse().join("/"):a.text;a.value=i?r.slice(0):a.key||a.value,t=i?r.join("/"):a.value&&a.value.valueOf(),a.children&&(a.items=a.children,a.children=null),(0,k.updateHeaderFilterItemSelectionState)(a,a.key&&(0,_.inArray)(s,n)>-1||(0,_.inArray)(t,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)(R).addClass("dx-area-field-content").text(e.caption||e.dataField),a=(0,s.default)(R).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)+M)})):n=(0,s.default)(R).addClass("dx-area-field").addClass("dx-area-box").text(e.text()),"drag"===t){var i=(0,s.default)(R);return(0,v.each)(n,function(e,t){var n=(0,s.default)("<div>").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,b.default)("dxPivotGridFieldChooserBase",L),e.exports=L},function(e,t,n){var i=n(2),o=n(11),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<f;g++){t=o.createElement(l),n.appendChild(t);var _=(g+1)%c===0;e.rowClass&&(t.className=e.rowClass);for(var m=0;m<e.cellCount;m++){var v=o.createElement("td");t.appendChild(v),e.cellClass&&(r.isFunction(e.cellClass)?v.className=e.cellClass(g,m):v.className=e.cellClass);var y,x,b;if(e.getCellData&&(y=e.getCellData(v,g,m,p),x=y.key,b=y.value,x&&a.data(v,x,b)),e.cellTemplate&&e.cellTemplate.render){var w={model:{text:e.getCellText?e.getCellText(g,m):"",date:e.getCellDate?e.getCellDate(g):void 0},container:s(i(v)),index:g*e.cellCount+m};b&&(b.startDate&&(w.model.startDate=b.startDate),b.endDate&&(w.model.endDate=b.endDate),b.groups&&(w.model.groups=b.groups),b.allDay&&(w.model.allDay=b.allDay)),u.push(e.cellTemplate.render.bind(e.cellTemplate,w))}else e.getCellText&&(v.innerHTML="<div>"+e.getCellText(g,m)+"</div>")}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<e.length;t++){var n=a(e[t]),i=r(e[t][g],n,t,e[t]);d[h]||(d[h]=[]),d[h].push(i),n?s(e[t][f]):h++}}function u(){d.forEach(function(e){var t=o.createElement(l);m&&(t.className=m);for(var n=[],i=e.length-1;i>=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;a<e.length;a++){a>0&&(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<p;a++)d.push(i("<tr>").addClass(t.groupHeaderRowClass));for(a=h-1;a>=0;a--)for(var f=l[a].length,g=p/f,_=0;_<f;_++){var m=_*g,v=d[m];v.prepend(l[a][_].element.attr("rowSpan",g))}return{elements:d,cellTemplates:r}},_makeHorizontalGroupedRows:function(e,t,n,o,a){for(var r=1,s=e.length,l=[],u=[],c=a?n:1,d=function(e){return e.template&&u.push(e.template),e.element},h=0;h<s;h++){h>0&&(r=e[h-1].items.length*r);var p=this._makeGroupedRowCells(e[h],r,t,o,c);l.push(i("<tr>").addClass(t.groupRowClass).append(p.map(d)))}for(var f=l[s-1].find("th").length,g=0;g<s;g++){var _=l[g].find("th"),m=f/_.length;a||(m*=n),(m>1&&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<t;d++)for(var h=0;h<c;h++){var p=i("<div>"),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("<div>").append(p);p.addClass(n.groupHeaderContentClass);var _;_=r.isFunction(n.groupHeaderClass)?n.groupHeaderClass(h):n.groupHeaderClass,f.element=i("<th>").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(202),l=n(22),u=n(257),c=n(710),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=l.dateToMilliseconds,x=s.inherit({_init:function(){this.callBase(),this.$element().addClass(d),this._$sidebarTable=i("<table>").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,t=this.callBase(),n={direction:m,onStart:function(){this._headerScrollable&&(e=this._headerScrollable.option("onScroll"),this._headerScrollable.option("onScroll",void 0))}.bind(this),onScroll:function(e){this._headerScrollable&&this._headerScrollable.scrollTo({left:e.scrollOffset.left})}.bind(this),onEnd:function(t){this._headerScrollable&&this._headerScrollable.option("onScroll",e)}.bind(this)};return this.option("crossScrollingEnabled")?t:a(t,n)},_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<this._getWeekDuration()*this.option("intervalCount");r++){var s=i("<th>"),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("<tr>").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/y("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<i;r++){var s=this._getCellCount()*this.getCellWidth()*r;o=this._createIndicator(n),o.height(n.get(0).getBoundingClientRect().height),o.css("left",t?t-a-s:a+s)}},_isVerticalShader:function(){return!1},_isCurrentTimeHeaderCell:function(e){var t=!1;if(this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator()){var n=this._getDateByIndex(e),i=this._getToday();if(n=new Date(n),l.sameDate(i,n)){var o=new Date(n),a=new Date(n);a=a.setMilliseconds(n.getMilliseconds()+this.getCellDuration()),t=l.dateInRange(i,o,a)}}return t},_cleanView:function(){this.callBase(),this._$sidebarTable.empty()},_visibilityChanged:function(e){this.callBase(e)},_setTableSizes:function(){var e=this.getCellHeight(),t=this._getWorkSpaceMinHeight(),n=this._$sidebarTable.find("tr"),i=e*n.length;i<t&&(i=t),this._$sidebarTable.height(i),this._$dateTable.height(i),this.callBase()},_getWorkSpaceMinHeight:function(){var e=this._getWorkSpaceHeight(),t=this.$element().outerHeight(!0)-this.getHeaderPanelHeight()-2*v-1;return e<t&&(e=t),e},_makeGroupRows:function(e,t){var n="vertical"===this.option("groupOrientation")?u.VERTICAL:u.HORIZONTAL;return u.makeGroupedTable(n,e,{groupRowClass:this._getGroupRowClass(),groupHeaderRowClass:this._getGroupRowClass(),groupHeaderClass:this._getGroupHeaderClass.bind(this),groupHeaderContentClass:this._getGroupHeaderContentClass()},this._getCellCount()||1,this.option("resourceCellTemplate"),this._getTotalRowCount(this._getGroupCount()),t)},_ensureGroupHeaderCellsHeight:function(e){var t=this._calculateMinCellHeight();return e<t?t:e},_calculateMinCellHeight:function(){var e=this._getDateTable(),t="."+this._getDateTableRowClass();return e.get(0).getBoundingClientRect().height/e.find(t).length-2*v},_getCellCoordinatesByIndex:function(e){return{cellIndex:e%this._getCellCount(),rowIndex:0}},_getCellByCoordinates:function(e,t){var n=this._groupedStrategy.prepareCellIndexes(e,t);return this._$dateTable.find("tr").eq(n.rowIndex).find("td").eq(n.cellIndex)},_getWorkSpaceWidth:function(){return this._$dateTable.outerWidth(!0)},_getGroupIndexByCell:function(e){return e.parent().index()},_getIndicationFirstViewDate:function(){return new Date(this._firstViewDate)},_getIntervalBetween:function(e,t){var n=this.option("startDayHour"),i=this.option("endDayHour"),o=this.getStartViewDate(),a=o.getTime(),r=(24-i+n)*y("hour"),s=l.getTimezonesDifference(o,e),u=e.getTime(),c=u-a-s,d=Math.floor(c/y("day")),h=c-d*y("day"),p=0,f=this._getCellCountInDay()*(d-this._getWeekendsCount(d)),g=u-l.trimTime(new Date(e)).getTime(),_=f*this.option("hoursInterval")*y("hour");return t||(e.getHours()<n?p=h-r+g:e.getHours()>=n&&e.getHours()<i?p=h:e.getHours()>=n&&e.getHours()>=i?p=h-(g-i*y("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),(e<n.left.hours||e>n.right.hours)&&(o=!0),e===n.left.hours&&t<n.left.minutes&&(o=!0),e===n.right.hours&&t>n.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(n<e.left.date||n>e.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")}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(389),s=i(r),l=n(720),u=i(l),c=n(0),d=n(17),h=i(d),p=n(22),f=i(p),g=n(1),_=i(g),m=n(31),v=i(m),y=f.default.dateToMilliseconds,x=2,b=15,w=20,C=18,k=28,S=function(){function e(t){o(this,e),this.instance=t,
34this._initPositioningStrategy()}return a(e,[{key:"_initPositioningStrategy",value:function(){this._positioningStrategy=this.instance.fire("isAdaptive")?new u.default(this):new s.default(this)}},{key:"getPositioningStrategy",value:function(){return this._positioningStrategy}},{key:"getAppointmentMinSize",value:function(){return x}},{key:"keepAppointmentSettings",value:function(){return!1}},{key:"getDeltaTime",value:function(){}},{key:"getAppointmentGeometry",value:function(e){return e}},{key:"needCorrectAppointmentDates",value:function(){return!0}},{key:"getDirection",value:function(){return"horizontal"}},{key:"createTaskPositionMap",value:function(e){delete this._maxAppointmentCountPerCell;var t=e&&e.length;if(t){this._defaultWidth=this.instance._cellWidth,this._defaultHeight=this.instance._cellHeight,this._allDayHeight=this.instance._allDayCellHeight;for(var n=[],i=0;i<t;i++){var o=this._getItemPosition(e[i]);this._isRtl()&&(o=this._correctRtlCoordinates(o)),n.push(o)}var a=this._getSortedPositions(n),r=this._getResultPositions(a);return this._getExtendedPositionMap(n,r)}}},{key:"_getDeltaWidth",value:function(e,t){var n=this.instance.fire("getResizableStep")||this.getAppointmentMinSize(),i=t.width;return Math.round((e.width-i)/n)}},{key:"_correctRtlCoordinates",value:function(e){var t=e[0].width||this._getAppointmentMaxWidth();return e[0].appointmentReduced||(e[0].left-=t),this._correctRtlCoordinatesParts(e,t),e}},{key:"_correctRtlCoordinatesParts",value:function(){}},{key:"_getAppointmentMaxWidth",value:function(){return this.getDefaultCellWidth()}},{key:"_getItemPosition",value:function(e){for(var t=this._getAppointmentCoordinates(e),n=this.isAllDay(e),i=[],o=new Date(this.instance.fire("getField","startDate",e)),a=!!this.instance.fire("getField","recurrenceRule",e),r=0;r<t.length;r++){var s=this.calculateAppointmentHeight(e,t[r],a),l=this.calculateAppointmentWidth(e,t[r],a),u=l,d=null,h=[],p=t[r].rowIndex,f=t[r].cellIndex;if(this._needVerifyItemSize()||n){var g=t[r].hMax;this.isAppointmentGreaterThan(g,{left:t[r].left,width:l})&&(d="head",p=t[r].rowIndex,f=t[r].cellIndex,u=this._reduceMultiWeekAppointment(l,{left:t[r].left,right:g}),h=this._getAppointmentParts({sourceAppointmentWidth:l,reducedWidth:u,height:s},t[r],o),this._isRtl()&&(t[r].left=g))}(0,c.extend)(t[r],{height:s,width:u,allDay:n,rowIndex:p,cellIndex:f,appointmentReduced:d}),i=this._getAppointmentPartsPosition(h,t[r],i)}return i}},{key:"_getAppointmentPartsPosition",value:function(e,t,n){return e.length?(e.unshift(t),n=n.concat(e)):n.push(t),n}},{key:"_getAppointmentCoordinates",value:function(e){var t=[{top:0,left:0}];return this.instance.fire("needCoordinates",{startDate:this.startDate(e),originalStartDate:this.startDate(e,!0),appointmentData:e,callback:function(e){t=e}}),t}},{key:"_isRtl",value:function(){return this.instance.option("rtlEnabled")}},{key:"_getAppointmentParts",value:function(){return[]}},{key:"_getCompactAppointmentParts",value:function(e){var t=this.getDefaultCellWidth()||this.getAppointmentMinSize();return Math.round(e/t)}},{key:"_reduceMultiWeekAppointment",value:function(e,t){return e=this._isRtl()?Math.floor(t.left-t.right):t.right-Math.floor(t.left)}},{key:"calculateAppointmentHeight",value:function(){return 0}},{key:"calculateAppointmentWidth",value:function(){return 0}},{key:"isAppointmentGreaterThan",value:function(e,t){var n=t.left+t.width-e;return this._isRtl()&&(n=e+t.width-t.left),n>this.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=[],n=0,i=0,o=e.length;i<o;i++)for(var a=0,r=e[i].length;a<r;a++){var s=e[i][a],l={i:i,j:a,top:s.top,left:s.left,cellPosition:s.cellPosition,isStart:!0,allDay:s.allDay,__tmpIndex:n};n++;var u={i:i,j:a,top:s.top+s.height,left:s.left+s.width,cellPosition:s.cellPosition,isStart:!1,allDay:s.allDay,__tmpIndex:n};t.push(l,u),n++}return t.sort(function(e,t){return this._sortCondition(e,t)}.bind(this)),t}},{key:"_fixUnstableSorting",value:function(e,t,n){if(0===e){if(t.__tmpIndex<n.__tmpIndex)return-1;if(t.__tmpIndex>n.__tmpIndex)return 1}return e}},{key:"_sortCondition",value:function(){}},{key:"_rowCondition",value:function(e,t){var n=this._isSomeEdge(e,t),i=this._normalizeCondition(e.left,t.left,n),o=this._normalizeCondition(e.top,t.top,n);return i?i:o?o:e.isStart-t.isStart}},{key:"_columnCondition",value:function(e,t){var n=this._isSomeEdge(e,t),i=this._normalizeCondition(e.left,t.left,n),o=this._normalizeCondition(e.top,t.top,n);return o?o:i?i:e.isStart-t.isStart}},{key:"_isSomeEdge",value:function(e,t){return e.i===t.i&&e.j===t.j}},{key:"_normalizeCondition",value:function(e,t,n){var i=e-t;return n||Math.abs(i)>1?i:0}},{key:"_getResultPositions",value:function(e){for(var t,n=[],i=[],o=[],a=[],r=0,s=0,l=0;l<e.length;l++){var u,c=e[l];if(c.isStart){for(t=void 0,u=0;u<i.length;u++)if(!i[u]){t=u,i[u]=!0;break}if(void 0===t)for(t=i.length,i.push(!0),u=0;u<n.length;u++)n[u].count++;n.push({index:t,count:i.length,i:c.i,j:c.j,sortedIndex:this._skipSortedIndex(t)?null:s++}),r<i.length&&(r=i.length)}else{var d=this._findIndexByKey(n,"i","j",c.i,c.j),h=n[d];if(n.splice(d,1),i[h.index]=!1,a.push(h),!n.length){i=[];for(var p=0;p<a.length;p++)a[p].count=r;a=[],r=0}o.push(h)}}return o.sort(function(e,t){var n=e.j-t.j,i=e.i-t.i;return i?i:n})}},{key:"_skipSortedIndex",value:function(e){return this.instance.fire("getMaxAppointmentsPerCell")&&e>this._getMaxAppointmentCountPerCell()-1}},{key:"_findIndexByKey",value:function(e,t,n,i,o){for(var a=0,r=0,s=e.length;r<s;r++)if(e[r][t]===i&&e[r][n]===o){a=r;break}return a}},{key:"_getExtendedPositionMap",value:function(e,t){for(var n=0,i=[],o=0,a=e.length;o<a;o++){for(var r=[],s=0,l=e[o].length;s<l;s++)e[o][s].index=t[n].index,e[o][s].sortedIndex=t[n].sortedIndex,e[o][s].count=t[n++].count,r.push(e[o][s]),this._checkLongCompactAppointment(e[o][s],r);i.push(r)}return i}},{key:"_checkLongCompactAppointment",value:function(){}},{key:"_splitLongCompactAppointment",value:function(e,t){var n=this._getMaxAppointmentCountPerCellByType(e.allDay),i=0;if(void 0!==n&&e.index>n-1){e.isCompact=!0,i=this._getCompactAppointmentParts(e.width);for(var o=1;o<i;o++){var a=(0,c.extend)(!0,{},e);a.left=this._getCompactLeftCoordinate(e.left,o),a.cellIndex=a.cellIndex+o,a.sortedIndex=null,t.push(a)}}return t}},{key:"startDate",value:function e(t,n,i){var e=i&&i.startDate,o=this.instance._getStartDate(t,n),a=this.instance.fire("getField","text",t);if((e&&o>e||!e)&&(e=o),isNaN(e.getTime()))throw h.default.Error("E1032",a);return e}},{key:"endDate",value:function e(t,n,i){var e=this.instance._getEndDate(t),o=this.startDate(t,!0),a=this.startDate(t,!1,n);if(a.getTime()>e.getTime()||i){var r=n?n.initialStartDate||n.startDate:o,s=n?n.startDate:o,l=e.getTime()-o.getTime();if(l=this._adjustDurationByDaylightDiff(l,o,e),e=new Date(a.getTime()>=r.getTime()?r.getTime():a.getTime()),i&&(e=new Date(e.getTime()+l)),!f.default.sameDate(o,e)&&s.getTime()<a.getTime()){var u=f.default.trimTime(e).getTime()-s.getTime(),c=l-u||l;e=new Date(f.default.trimTime(a).getTime()+c)}}if(!this.isAllDay(t)){var d=f.default.roundToHour(this.instance.fire("getEndViewDate"));e>d&&(e=d)}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*y("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:e.groupIndex+"-"+e.rowIndex+"-"+e.cellIndex,isAllDay:t})}},{key:"_getMaxAppointmentCountPerCellByType",value:function(e){var t=this._getMaxAppointmentCountPerCell();return _.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 k}},{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 b}},{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 e<this._getAppointmentMinHeight()||t<this._getAppointmentMinWidth()}},{key:"_calculateGeometryConfig",value:function(e){var t=this.instance.fire("getMaxAppointmentsPerCell"),n=this._getOffsets(),i=this._getAppointmentDefaultOffset(),o=this._getAppointmentCount(t,e),a=this._getDefaultRatio(e,o),r=this._getMaxHeight();(0,g.isNumeric)(o)||(o=e.count,a=(r-n.unlimited)/r);var s=(1-a)*r;return("auto"===t||(0,g.isNumeric)(t))&&(a=1,r-=i,s=i),{height:a*r,appointmentCountPerCell:o,offset:s}}},{key:"_getAppointmentCount",value:function(){}},{key:"_getDefaultRatio",value:function(){}},{key:"_getOffsets",value:function(){}},{key:"_getMaxHeight",value:function(){}},{key:"_needVerifyItemSize",value:function(){return!1}},{key:"needSeparateAppointment",value:function(e){return this.instance.fire("isGroupedByDate")&&e}},{key:"_getMaxAppointmentCountPerCell",value:function(){if(!this._maxAppointmentCountPerCell){var e,t=this.instance.fire("getMaxAppointmentsPerCell");t||(e=2),(0,g.isNumeric)(t)&&(e=t),"auto"===t&&(e=this._getDynamicAppointmentCountPerCell()),"unlimited"===t&&(e=void 0),this._maxAppointmentCountPerCell=e}return this._maxAppointmentCountPerCell}},{key:"_getDynamicAppointmentCountPerCell",value:function(){return this.getPositioningStrategy().getDynamicAppointmentCountPerCell()}},{key:"hasAllDayAppointments",value:function(){return!1}},{key:"_isCompactTheme",value:function(){return"compact"===(v.default.current()||"").split(".").pop()}},{key:"_getAppointmentDefaultOffset",value:function(){return this.getPositioningStrategy().getAppointmentDefaultOffset()}},{key:"_getAppointmentDefaultHeight",value:function(){return this._getAppointmentHeightByTheme()}},{key:"_getAppointmentMinHeight",value:function(){return this._getAppointmentDefaultHeight()}},{key:"_getAppointmentHeightByTheme",value:function(){return this._isCompactTheme()?C:w}},{key:"_getAppointmentDefaultWidth",value:function(){return this.getPositioningStrategy()._getAppointmentDefaultWidth()}},{key:"_getAppointmentMinWidth",value:function(){return this._getAppointmentDefaultWidth()}},{key:"_needVerticalGroupBounds",value:function(){return!1}},{key:"_needHorizontalGroupBounds",value:function(){return!1}}]),e}();e.exports=S},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(18),h=i(d),p=n(5),f=i(p),g=n(8),_=i(g),m=n(24),v=i(m),y=_.default.addNamespace(v.default.up,"dxDiagramPanel"),x=".dx-textbox",b=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_init",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this._createOnPointerUpAction()}},{key:"_render",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_render",this).call(this),this._attachPointerUpEvent()}},{key:"_attachPointerUpEvent",value:function(){var e=this;f.default.off(this.$element(),y),f.default.on(this.$element(),y,function(t){(0,c.default)(t.target).closest(x).length||e._onPointerUpAction()})}},{key:"_createOnPointerUpAction",value:function(){this._onPointerUpAction=this._createActionByOption("onPointerUp")}},{key:"_optionChanged",value:function(e){switch(e.name){case"onPointerUp":this._createOnPointerUpAction();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}(h.default);e.exports=b},function(e,t,n){var i=n(204),o=n(183),a=n(1),r=n(7),s={widget:"separator"},l={SMALL_SELECT:"dx-diagram-select-sm",BUTTON_SELECT:"dx-diagram-select-b",BUTTON_COLOR:"dx-diagram-color-b"},u={getToolbar:function(){var e=this,t=(0,i.getDiagram)(),n=t.DiagramCommand;return[{command:n.Undo,hint:"Undo",icon:"undo",text:"Undo"},{command:n.Redo,hint:"Redo",icon:"redo",text:"Redo"},s,{command:n.FontName,beginGroup:!0,widget:"dxSelectBox",items:["Arial","Arial Black","Helvetica","Times New Roman","Courier New","Courier","Verdana","Georgia","Comic Sans MS","Trebuchet MS"]},{command:n.FontSize,widget:"dxSelectBox",items:["8pt","9pt","10pt","11pt","12pt","14pt","16pt","18pt","20pt","22pt","24pt","26pt","28pt","36pt","48pt","72pt"],cssClass:l.SMALL_SELECT},s,{command:n.Bold,hint:"Bold",text:"Bold",icon:"bold"},{command:n.Italic,hint:"Italic",text:"Italic",icon:"italic"},{command:n.Underline,hint:"Underline",text:"Underline",icon:"underline"},s,{command:n.FontColor,text:"Text Color",widget:"dxColorBox",icon:"dx-icon dx-icon-color",cssClass:l.BUTTON_COLOR},{command:n.StrokeColor,text:"Line Color",widget:"dxColorBox",icon:"dx-icon dx-icon-background",cssClass:l.BUTTON_COLOR},{command:n.FillColor,text:"Fill Color",widget:"dxColorBox",icon:"dx-diagram-i dx-diagram-i-button-fill",cssClass:l.BUTTON_COLOR},s,{command:n.TextLeftAlign,hint:"Align Left",text:"Align Left",icon:"alignleft",beginGroup:!0},{command:n.TextCenterAlign,hint:"Align Center",text:"Center",icon:"aligncenter"},{command:n.TextRightAlign,hint:"Align Right",text:"Align Right",icon:"alignright"},s,{command:n.ConnectorLineOption,widget:"dxSelectBox",hint:"Line Type",items:[{value:0,icon:"dx-diagram-i-connector-straight dx-diagram-i",hint:"Straight"},{value:1,icon:"dx-diagram-i-connector-orthogonal dx-diagram-i",hint:"Orthogonal"}],displayExpr:"name",valueExpr:"value",cssClass:l.BUTTON_SELECT},{command:n.ConnectorStartLineEnding,widget:"dxSelectBox",items:[{value:0,icon:"dx-diagram-i-connector-begin-none dx-diagram-i",hint:"None"},{value:1,icon:"dx-diagram-i-connector-begin-arrow dx-diagram-i",hint:"Arrow"}],displayExpr:"name",valueExpr:"value",hint:"Line Start",cssClass:l.BUTTON_SELECT},{command:n.ConnectorEndLineEnding,widget:"dxSelectBox",items:[{value:0,icon:"dx-diagram-i-connector-end-none dx-diagram-i",hint:"None"},{value:1,icon:"dx-diagram-i-connector-end-arrow dx-diagram-i",hint:"Arrow"}],displayExpr:"name",valueExpr:"value",hint:"Line End",cssClass:l.BUTTON_SELECT},s,{widget:"dxButton",icon:"export",text:"Export",items:[{command:n.ExportSvg,text:"Export to SVG",getParameter:function(t){return function(n){return e._exportTo(t,n,"SVG","image/svg+xml")}}},{command:n.ExportPng,text:"Export to PNG",getParameter:function(t){return function(n){return e._exportTo(t,n,"PNG","image/png")}}},{command:n.ExportJpg,text:"Export to JPEG",getParameter:function(t){return function(n){return e._exportTo(t,n,"JPEG","image/jpeg")}}}]},{widget:"dxButton",text:"Auto Layout",showText:"always",items:[{text:"Tree",items:[{command:n.AutoLayoutTreeVertical,text:"Vertical"},{command:n.AutoLayoutTreeHorizontal,text:"Horizontal"}]},{text:"Layered",items:[{command:n.AutoLayoutLayeredVertical,text:"Vertical"},{command:n.AutoLayoutLayeredHorizontal,text:"Horizontal"}]}]},{command:n.Fullscreen,hint:"Fullscreen",text:"Fullscreen",icon:"dx-diagram-i dx-diagram-i-button-fullscreen",cssClass:l.BUTTON_COLOR}]},getOptions:function(){var e=(0,i.getDiagram)(),t=e.DiagramCommand;return[{command:t.Units,text:"Units",widget:"dxSelectBox"},{command:t.PageSize,text:"Page Size",widget:"dxSelectBox",getValue:function(e){return JSON.parse(e)},setValue:function(e){return JSON.stringify(e)}},{command:t.PageLandscape,text:"Page Landscape",widget:"dxCheckBox"},{command:t.PageColor,text:"Page Color",widget:"dxColorBox",beginGroup:!0},{command:t.ShowGrid,text:"Show Grid",widget:"dxCheckBox",beginGroup:!0},{command:t.SnapToGrid,text:"Snap to Grid",widget:"dxCheckBox"},{command:t.GridSize,text:"Grid Size",widget:"dxSelectBox"},{command:t.ZoomLevel,text:"Zoom Level",widget:"dxSelectBox",beginGroup:!0}]},getContextMenu:function(){var e=(0,i.getDiagram)(),t=e.DiagramCommand;return[{command:t.Cut,text:"Cut"},{command:t.Copy,text:"Copy"},{command:t.Paste,text:"Paste"},{command:t.SelectAll,text:"Select All",beginGroup:!0},{command:t.Delete,text:"Delete",beginGroup:!0},{command:t.BringToFront,text:"Bring to Front",beginGroup:!0},{command:t.SendToBack,text:"Send to Back"},{command:t.Lock,text:"Lock",beginGroup:!0},{command:t.Unlock,text:"Unlock"}]},_exportTo:function(e,t,n,i){var s=(0,r.getWindow)();if(s&&s.atob&&(0,a.isFunction)(s.Blob)){var l=this._getBlobByDataURI(s,t,i),u=e.option("export");o.fileSaver.saveAs(u.fileName||"foo",n,l,u.proxyURL)}},_getBlobByDataURI:function(e,t,n){for(var i=e.atob(t.split(",")[1]),o=new ArrayBuffer(i.length),a=new Uint8Array(o),r=0;r<i.length;r++)a[r]=i.charCodeAt(r);var s=new DataView(o);return new e.Blob([s],{type:n})}};e.exports=u},function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(204),r=function(){function e(t){i(this,e);var n=(0,a.getDiagram)(),o=n.EventDispatcher;this.onChanged=new o,this._owner=t}return o(e,[{key:"raiseBarCommandExecuted",value:function(e,t){this.onChanged.raise("NotifyBarCommandExecuted",parseInt(e),t)}},{key:"getCommandKeys",value:function(){throw"Not Implemented"}},{key:"setItemValue",value:function(e,t){}},{key:"setItemEnabled",value:function(e,t){}},{key:"setItemVisible",value:function(e,t){}},{key:"setEnabled",value:function(e){}},{key:"setItemSubItems",value:function(e,t){}},{key:"isVisible",value:function(){return!0}}]),e}();e.exports=r},function(e,t,n){e.exports=n(96)},function(e,t,n){function i(e,t){var n=t.end-t.start,i=0;for(e.forEach(function(e){i+=e.getBoundingRect().width});n<i;)i-=o(e)}function o(e){var t,n;return t=e.reduce(function(e,t,n){if(!t)return e;var i=t.value();return i<e.value?{value:i,rollingStock:t,index:n}:e},{rollingStock:void 0,value:1/0,index:void 0}),t.rollingStock.getLabels()[0].draw(!1),n=t.rollingStock.getBoundingRect().width,e[t.index]=null,n}function a(e){var t,n,i,o,a=!1;for(t=0,i=e.length-1;t<i;t++){for(n=t+1,o=e.length;n<o;n++)if(t!==n&&s(e[t],e[n],!0)){a=!0;break}if(a)break}return a}function r(e,t,n,o){var r=arguments.length>4&&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;t<e.length-1;t++)n=i||e[t],s(n,e[t+1])?(n.toChain(e[t+1]),e[t+1]=null,i=n):i=e[t+1]||n}function u(e,t){var n,i,o,a,r,s;for(n=0;n<e.length;n++){if(o=e[n],c(o,t))for(r=o.getBoundingRect(),i=n+1;i<e.length;i++)if(a=e[i],a&&(s=a.getBoundingRect(),s.end>r.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),x=n(0).extend,b=n(13).inArray,w=n(8),C=n(97),k=n(20),S=n(205),I=n(267),T=n(269),D=n(401),E=n(402),A=n(779),O="_reinit",B="_updateDataSource",P="_dataInit",M="_forceRender",R="_resize",V=[O,B,P,M,R],F=n(10),L=F.map,H=y.each,z=y.reverseEach,N=x,$=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(R)},_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,n,i=this;if(0!==i._canvas.width||0!==i._canvas.height){i._resetIsReady(),t=i._prepareDrawOptions(e),n=t.recreateCanvas,i.__originalCanvas=i._canvas,i._canvas=x({},i._canvas),n?i.__currentCanvas=i._canvas:i._canvas=i.__currentCanvas,n&&i._updateCanvasClipRect(i._canvas),this._canvas=this._createCanvasFromRect(this._rect),i._renderer.stopAllAnimations(!0),i._cleanGroups();var o=new Date;i._renderElements(t),i._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=[];x({},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?x({},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<s;i++)o=r[i],a._applyExtraSettings(o,e),o.draw(e.animate&&o.getPoints().length<=e.animationPointsLimit&&a._renderer.animationEnabled(),e.hideLayoutLabels,a._getLegendCallBack(o));
35"none"===l?a._adjustSeriesLabels(!1):a._locateLabels(l),a._renderTrackers(n),a._tracker.repairTooltip(),a._clearCanvas(),a._renderExtraElements(),a._drawn(),a._renderCompleteHandler()},_locateLabels:function(e){this._resolveLabelOverlapping(e)},_renderExtraElements:function(){},_clearCanvas:function(){this._canvas=this.__originalCanvas},_resolveLabelOverlapping:function(e){var t;switch(e){case"stack":t=this._resolveLabelOverlappingStack;break;case"hide":t=this._resolveLabelOverlappingHide;break;case"shift":t=this._resolveLabelOverlappingShift}return v.isFunction(t)&&t.call(this)},_getVisibleSeries:function(){return g.grep(this.getAllSeries(),function(e){return e.isVisible()})},_resolveLabelOverlappingHide:function(){var e,t,n,i,o,a,r,s=[],l=this._getVisibleSeries();for(o=0;o<l.length;o++)for(r=l[o].getVisiblePoints(),a=0;a<r.length;a++)s.push.apply(s,r[a].getLabels());for(o=0;o<s.length;o++)if(e=s[o],e.isVisible())for(n=e.getBoundingRect(),a=o+1;a<s.length;a++)t=s[a],i=t.getBoundingRect(),f(n,i)&&t.draw(!1)},_cleanGroups:function(){var e=this;e._stripsGroup.linkRemove().clear(),e._gridGroup.linkRemove().clear(),e._axesGroup.linkRemove().clear(),e._constantLinesGroup.above.clear(),e._labelAxesGroup.linkRemove().clear(),e._labelsGroup.linkRemove().clear(),e._crosshairCursorGroup.linkRemove().clear(),e._scaleBreaksGroup.linkRemove().clear()},_allowLegendInsidePosition:function(){return!1},_updateLegendPosition:_,_createLegend:function(){var e=this,t=p(e._legendDataField);e._legend=new S.Legend({renderer:e._renderer,group:e._legendGroup,backgroundClass:"dxc-border",itemGroupClass:"dxc-item",titleGroupClass:"dxc-title",textField:t.textField,getFormatObject:t.getFormatObject,allowInsidePosition:e._allowLegendInsidePosition()}),e._updateLegend(),e._layout.add(e._legend)},_updateLegend:function(){var e=this,t=e._themeManager,n=t.getOptions("legend"),i=e._getLegendData();n.containerBackgroundColor=t.getOptions("containerBackgroundColor"),n._incidentOccurred=e._incidentOccurred,e._legend.update(i,n,t.theme("legend").title),this._change(["LAYOUT"])},_prepareDrawOptions:function(e){var t,n=this._getAnimationOptions();return t=x({},{force:!1,adjustAxes:!0,drawLegend:!0,drawTitle:!0,animate:n.enabled,animationPointsLimit:n.maxPointCountSupported},e,this.__renderOptions),W(t.recreateCanvas)||(t.recreateCanvas=t.adjustAxes&&t.drawLegend&&t.drawTitle),t},_processRefreshData:function(e){var t=b(this._currentRefreshData,V),n=b(e,V);(!this._currentRefreshData||t>=0&&n<t)&&(this._currentRefreshData=e),this._requestChange(["REFRESH"])},_getLegendData:function(){return L(this._getLegendTargets(),function(e){var t=e.legendData,n=e.getLegendStyles,i=n.normal.opacity;return e.visible||((!W(i)||i>j)&&(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(M)},_change_FORCE_RENDER:function(){this._processRefreshData(M)},_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(M)},_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,n,i=this;t=Math.max(e.width-e.left-e.right,0),n=Math.max(e.height-e.top-e.bottom,0),i._canvasClipRect.attr({x:e.left,y:e.top,width:t,height:n}),i._backgroundRect.attr({x:e.left,y:e.top,width:t,height:n})},_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,t=this,n=t._themeManager,i=t._dataSourceItems(),o=n.getOptions("dataPrepareSettings"),a=n.getOptions("seriesTemplate");a&&t._populateSeries(i),t._groupSeries(),e=I.validateData(i,t._groupsData,t._incidentOccurred,o),n.resetPalette(),t.series.forEach(function(t){t.updateData(e[t.getArgumentField()])}),t._handleSeriesDataUpdated(),t._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=this,n=t._themeManager,i=n.getOptions("seriesTemplate"),o=i?F.processSeriesTemplate(i,e||[]):t.option("series"),a=$(o)?o:o?[o]:[],r=t._getExtraOptions(),s=void 0,l=void 0,u=[],c=function(e){t._specialProcessSeries(),t._populateBusinessRange(e&&e.getValueAxis()),t._renderer.stopAllAnimations(!0),t._updateLegend(),t._requestChange(["FULL_RENDER"])},d=0;d<a.length;d++)s=N(!0,{},a[d],r),s.name||(s.name="Series "+(d+1).toString()),s.rotated=t._isRotated(),s.customizePoint=n.getOptions("customizePoint"),s.customizeLabel=n.getOptions("customizeLabel"),s.visibilityChanged=c,s.incidentOccurred=t._incidentOccurred,l=n.getOptions("series",s,a.length),t._checkPaneName(l)&&u.push(l);return u},_populateSeries:function(e){var t=this,n=[],i=t._incidentOccurred,o=t._populateSeriesOptions(e),a=void 0,r=0;t.needToPopulateSeries=!1,H(o,function(e,i){var o=t.series&&t.series.filter(function(e){return e.name===i.name&&n.map(function(e){return e.series}).indexOf(e)===-1})[0];o&&o.type===i.type?n.push({series:o,options:i}):(n.push({options:i}),r++)}),t._tracker.clearHover(),z(t.series,function(e,i){n.some(function(e){return i===e.series})||(t._disposeSeries(e),r++)}),t.series=[],r>0&&t._disposeSeriesFamilies(),t._themeManager.resetPalette();var s=function(e){t.series.forEach(function(t){t.notify(e)})};return H(n,function(e,n){var o=n.options,r={commonSeriesModes:t._getSelectionModes(),argumentAxis:t.getArgumentAxis(),valueAxis:t._getValueAxis(o.pane,o.axis)};n.series?(a=n.series,a.updateOptions(o,r)):a=new T.Series(N({renderer:t._renderer,seriesGroup:t._seriesGroup,labelsGroup:t._labelsGroup,eventTrigger:t._eventTrigger,eventPipe:s,incidentOccurred:i},r),o),a.isUpdated?(a.index=t.series.length,t.series.push(a)):i("E2101",[o.type])}),t.series},getAllSeries:function(){return(this.series||[]).slice()},getSeriesByName:function(e){var t=null;return H(this.series,function(n,i){if(i.name===e)return t=i,!1}),t},getSeriesByPos:function(e){return(this.series||[])[e]},clearSelection:function(){this._tracker.clearSelection()},hideTooltip:function(){this._tracker._hideTooltip()},clearHover:function(){this._tracker.clearHover()},render:function(e){var t=this;return t.__renderOptions=e,t.__forceRender=e&&e.force,t.callBase.apply(t,arguments),t.__renderOptions=t.__forceRender=null,t},refresh:function(){this._disposeSeries(),this._disposeSeriesFamilies(),this._requestChange(["CONTAINER_SIZE","REFRESH_SERIES_REINIT"])},_getMinSize:function(){var e=this._layoutManagerOptions();return[e.width,e.height]},_change_REFRESH:function(){this._changes.has("INIT")?this._currentRefreshData=null:this._doRefresh()},_change_FULL_RENDER:function(){this._forceRender()},_change_INIT:function(){this._reinit()},_stopCurrentHandling:function(){this._tracker.stopCurrentHandling()}});q.forEach(function(e){Z.prototype._optionChangesMap[e]="REFRESH_SERIES_DATA_INIT"}),U.forEach(function(e){Z.prototype._optionChangesMap[e]="FORCE_RENDER"}),K.forEach(function(e){Z.prototype._optionChangesMap[e]="REFRESH_SERIES_FAMILIES"}),t.overlapping=X,t.BaseChart=Z,Z.addPlugin(n(96).plugin),Z.addPlugin(n(106).plugin),Z.addPlugin(n(108).plugin),Z.addPlugin(n(122).plugin),Z.addPlugin(n(145).plugin);var Q=Z.prototype._change_TITLE;Z.prototype._change_TITLE=function(){Q.apply(this,arguments),this._change(["FORCE_RENDER"])};var J=Z.prototype._change_TOOLTIP;Z.prototype._change_TOOLTIP=function(){J.apply(this,arguments),this._change(["CHART_TOOLTIP"])}},function(e,t,n){function i(e,t){var n=e;return t&&_(t.split("."),function(e,t){return n=n[t]}),n}var o=n(15),a=n(0).extend,r=n(1),s=n(3).each,l=n(167),u=r.isString,c=n(10).parseScalar,d=n(50),h=d.getTheme,p=d.addCacheItem,f=d.removeCacheItem,g=a,_=s;n(756),n(757),n(758),n(759),n(760),n(761),n(762),n(763),n(764),n(765),t.BaseThemeManager=o.inherit({ctor:function(e){this._themeSection=e.themeSection,this._fontFields=e.fontFields||[],p(this)},dispose:function(){var e=this;return f(e),e._callback=e._theme=e._font=null,e},setCallback:function(e){return this._callback=e,this},setTheme:function(e,t){return this._current=e,this._rtl=t,this.refresh()},refresh:function(){var e=this,t=e._current||{},n=h(t.name||t);return e._themeName=n.name,e._defaultPalette=n.defaultPalette,e._font=g({},n.font,t.font),e._themeSection&&_(e._themeSection.split("."),function(e,t){n=g(!0,{},n[t])}),e._theme=g(!0,{},n,u(t)?{}:t),e._initializeTheme(),c(e._rtl,e._theme.rtlEnabled)&&g(!0,e._theme,e._theme._rtl),e._callback(),e},theme:function(e){return i(this._theme,e)},themeName:function(){return this._themeName},createPalette:function(e,t){return l.createPalette(e,t,this._defaultPalette)},createDiscretePalette:function(e,t){return l.getDiscretePalette(e,t,this._defaultPalette)},createGradientPalette:function(e){return l.getGradientPalette(e,this._defaultPalette)},getAccentColor:function(e){return l.getAccentColor(e,this._defaultPalette)},_initializeTheme:function(){var e=this;_(e._fontFields||[],function(t,n){e._initializeFont(i(e._theme,n))})},_initializeFont:function(e){g(e,this._font,g({},e))}})},function(e,t,n){function i(e){this._options=e}function o(e,t){this._renderElement=e,this._cacheBBox=t}var a=n(4).noop,r=Math.round,s=n(48),l={horizontal:0,vertical:0},u={center:.5,right:1,bottom:1,left:0,top:0};i.prototype={constructor:i,position:function(e){var t=this,n=e.of.getLayoutOptions(),i=t.getLayoutOptions(),o=e.at,a=e.my,s=e.offset||l,c=-u[a.horizontal]*i.width+n.x+u[o.horizontal]*n.width+parseInt(s.horizontal),d=-u[a.vertical]*i.height+n.y+u[o.vertical]*n.height+parseInt(s.vertical);t.shift(r(c),r(d))},getLayoutOptions:a};var c=o.prototype=s.clone(i.prototype);c.constructor=o,c.getLayoutOptions=function(){return this._cacheBBox||this._renderElement.getBBox()},c.shift=function(e,t){var n=this.getLayoutOptions();this._renderElement.move(r(e-n.x),r(t-n.y))},t.LayoutElement=i,t.WrapperLayoutElement=o},function(e,t,n){function i(e,t,n,i){i>=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;n<a;++n)i=t[n][0],o=e[i],r[i]=t[n][1](o,i);return r}function m(e,t){var n,i=[],o=e.length;for(i.length=o,n=0;n<o;++n)i[n]=_(e[n],t);return i}function v(e,t,n){var i,o,a=e.length;for(i=0;i<a&&(o=e[i][t],!(Y(o)&&n>o));++i);return i}function y(e,t,n,o){o=o||{};var r,s=o.mode,l={};s&&"none"!==s&&(l[t]=String(o.groupName||"others"),l[n]=0,r=a(e.slice(),!1,function(e){return e[n]}),i(r,l,n,"smallValueThreshold"===s?v(r,n,o.threshold):o.topCount),l[n]&&e.push(l))}function x(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 b(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){b(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 M(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;n<i;++n)a=e[n],te(a)?r[o++]=a:a&&(l=!0);return l&&t("E2001"),r}function R(e,t,n,i){var a;return e=M(e,n),t.argumentType=t.argumentAxisType=null,o(t.groups),r(t.argumentAxes),B(e,t,i.checkTypeForAllData),P(t,n),i.convertToAxisDataType&&(e=m(e,g(t,n))),x(e,t),a=D(e,t,i,w(t))}var V=n(1),F="string",L="numeric",H="datetime",z="discrete",N="semidiscrete",$="continuous",W="logarithmic",G="valueType",j="argumentType",q=n(0).extend,K=n(10).enumParser([F,L,H]),U=n(268).getParser,Y=V.isDefined,X=V.isFunction,Z=Array.isArray,Q=V.isString,J=V.isDate,ee=V.isNumeric,te=V.isObject;t.validateData=R},function(e,t,n){function i(e){return"numeric"===e||"datetime"===e||"string"===e?e:""}var o=n(4).noop,a=n(56),r=n(1).isDefined,s={string:function(e){return r(e)?""+e:e},numeric:function(e){if(!r(e))return e;var t=Number(e);return isNaN(t)&&(t=void 0),t},datetime:function(e){if(!r(e))return e;var t,n=Number(e);return t=isNaN(n)?a.deserializeDate(e):new Date(n),isNaN(Number(t))&&(t=void 0),t}};e.exports={correctValueType:i,getParser:function(e){return s[i(e)]||o}}},function(e,t,n){function i(e,t,n){e&&e.trigger(t,n)}function o(e){return e=w(e),e===j||e===Z}function a(e,t){var n=e||{},i=_({},n.font)||{},o=n.border||{},a=n.connector||{},r={fill:n.backgroundColor||t,"stroke-width":o.visible?o.width||0:0,stroke:o.visible&&o.width?o.color:"none",dashStyle:o.dashStyle},s={stroke:a.visible&&a.width?a.color||t:"none","stroke-width":a.visible?a.width||0:0};return i.color="none"===n.backgroundColor&&"#ffffff"===w(i.color)&&"inside"!==n.position?t:i.color,{alignment:n.alignment,format:n.format,argumentFormat:n.argumentFormat,customizeText:g.isFunction(n.customizeText)?n.customizeText:void 0,attributes:{font:i},visible:0!==i.size&&n.visible,showForZeroValues:n.showForZeroValues,horizontalOffset:n.horizontalOffset,verticalOffset:n.verticalOffset,radialOffset:n.radialOffset,background:r,position:n.position,connector:s,rotationAngle:n.rotationAngle,wordWrap:n.wordWrap,textOverflow:n.textOverflow,cssClass:n.cssClass}}function r(e,t){e.fullState|=F,e.applyView(t)}function s(e,t){e.fullState&=~F,e.applyView(t),e.releaseHoverState()}function l(e,t){e.fullState|=V,e.applyView(t)}function u(e,t){e.fullState&=~V,e.applyView(t)}function c(e,t){var n=_({},e,t);return n.border=_({},e&&e.border,t&&t.border),n}function d(e,t){var n=c(e,t);return n.image=_(!0,{},e.image,t.image),n.selectionStyle=c(e.selectionStyle,t.selectionStyle),n.hoverStyle=c(e.hoverStyle,t.hoverStyle),n}function h(e,t){var n=this;n.fullState=0,n._extGroups=e,n._renderer=e.renderer,n._group=e.renderer.g().attr({"class":"dxc-series"}),n._eventTrigger=e.eventTrigger,n._eventPipe=e.eventPipe,n._incidentOccurred=e.incidentOccurred,n._legendCallback=C,n.updateOptions(t,e)}function p(e){return e.data}var f={},g=n(1),_=n(0).extend,m=n(3).each,v=n(769),y=g.isDefined,x=n(10),b=g.isEmptyObject,w=x.normalizeEnum,C=n(4).noop,k=n(120).states,S=n(271),I=n(107),T=n(207),D=n(169),E=n(144),A=n(774),O=n(775),B=n(776),P=n(777),M=n(778),R="discrete",V=k.selectedMark,F=k.hoverMark,L=k.hover,H=k.normal,z=k.selection,N=k.applySelected,$=k.applyHover,W=k.resetItem,G="none",j="includepoints",q="nearestpoint",K="seriesSelectionChanged",U="pointSelectionChanged",Y="seriesHoverChanged",X="pointHoverChanged",Z="allseriespoints",Q="allargumentpoints",J="pointHover",ee="clearPointHover",te="seriesSelect",ne="pointSelect",ie="pointDeselect",oe=function(){return{arg:{},val:{}}};f.mixins={chart:{},pie:{},polar:{}},f.mixins.chart.scatter=I.chart,f.mixins.polar.scatter=I.polar,_(f.mixins.pie,B),_(f.mixins.chart,T.chart,D.chart,E.chart,A.chart,O.chart,P,M.chart),_(f.mixins.polar,T.polar,D.polar,E.polar,A.polar,O.polar,M.polar),t.Series=h,t.mixins=f.mixins,h.prototype={constructor:h,_createLegendState:C,getLegendStyles:function(){return this._styles.legendStyles},_createStyles:function(e){var t=this,n=e.mainSeriesColor;t._styles={normal:t._parseStyle(e,n,n),hover:t._parseStyle(e.hoverStyle||{},n,n),selection:t._parseStyle(e.selectionStyle||{},n,n),legendStyles:{normal:t._createLegendState(e,n),hover:t._createLegendState(e.hoverStyle||{},n),selection:t._createLegendState(e.selectionStyle||{},n)}}},setClippingParams:function(e,t,n){this._paneClipRectID=e,this._widePaneClipRectID=t,this._forceClipping=n},applyClip:function(){this._group.attr({"clip-path":this._paneClipRectID})},resetClip:function(){this._group.attr({"clip-path":null})},getTagField:function(){return this._options.tagField||"tag"},getValueFields:C,getSizeField:C,getArgumentField:C,getPoints:function(){return this._points},getPointsInViewPort:function(){return S.getPointsInViewPort(this)},_createPoint:function(e,t,n){e.index=t;var i,a=this,r=a.pointsByArgument,s=a._getCreatingPointOptions(e),l=e.argument.valueOf(),u=n;return u?u.update(e,s):(u=new v.Point(a,e,s),a.isSelected()&&o(a.lastSelectionMode)&&u.setView(z)),i=r[l],i?i.push(u):r[l]=[u],u.hasValue()&&a.customizePoint(u,e),u},getRangeData:function(){return this._visible?this._getRangeData():oe()},getArgumentRange:function(){return this._visible?S.getArgumentRange(this):oe()},getViewport:function(){return S.getViewport(this)},_deleteGroup:function(e){var t=this[e];t&&(t.dispose(),this[e]=null)},updateOptions:function(e,t){var n=this,i=e.widgetType,o=n.type,a=e.type;return n.type=a&&w(a.toString()),!n._checkType(i)||n._checkPolarBarType(i,e)?(n.dispose(),void(n.isUpdated=!1)):(o!==n.type?(n._firstDrawing=!0,n._resetType(o,i),n._setType(n.type,i)):n._defineDrawingState(),n._options=e,n._pointOptions=null,n.name=e.name,n.pane=e.pane,n.tag=e.tag,t&&(n._seriesModes=t.commonSeriesModes||n._seriesModes,n._valueAxis=t.valueAxis||n._valueAxis,n.axis=n._valueAxis&&n._valueAxis.name,n._argumentAxis=t.argumentAxis||n._argumentAxis),n._createStyles(e),n._stackName=null,n._updateOptions(e),n._visible=e.visible,n.isUpdated=!0,n.stack=e.stack,n.barOverlapGroup=e.barOverlapGroup,n._createGroups(),void(n._processEmptyValue=e.ignoreEmptyPoints?function(e){return null===e?void 0:e}:function(e){return e}))},_defineDrawingState:function(){this._firstDrawing=!0},_disposePoints:function(e){m(e||[],function(e,t){t.dispose()})},getErrorBarRangeCorrector:C,updateDataType:function(e){var t=this;return t.argumentType=e.argumentType,t.valueType=e.valueType,t.argumentAxisType=e.argumentAxisType,t.valueAxisType=e.valueAxisType,t.showZero=e.showZero,t},getOptions:function(){return this._options},_getOldPoint:function(e,t,n){var i=e.argument&&e.argument.valueOf(),o=(t[i]||[])[0];return o&&t[i].splice(0,1),o},updateData:function(e){var t=this,n=t._options,i=n.nameField;e=e||[],e.length&&(t._canRenderCompleteHandle=!0);var o=this._getPointDataSelector(),a=0;t._data=e.reduce(function(e,t,r){var s=o(t);return y(s.argument)?i&&t[i]!==n.nameFieldValue||(s.index=r,e.push(s)):a++,e},[]),a&&a===e.length&&t._incidentOccurred("W2002",[t.name,t.getArgumentField()]),t._endUpdateData()},_getData:function(){var e=this._data||[];return this.useAggregation()&&(e=this._resample(this.getArgumentAxis().getAggregationInfo(this._useAllAggregatedPoints,this.argumentAxisType!==R?this.getArgumentRange():{}),e)),e},useAggregation:function(){var e=this.getOptions().aggregation;return e&&e.enabled},autoHidePointMarkersEnabled:C,usePointsToDefineAutoHiding:C,createPoints:function(e){this._normalizeUsingAllAggregatedPoints(e),this._createPoints()},_normalizeUsingAllAggregatedPoints:function(e){this._useAllAggregatedPoints=this.useAggregation()&&(this.argumentAxisType===R||(this._data||[]).length>1&&!!e)},_createPoints:function(){var e,t=this,n=t.pointsByArgument||{},i=t._getData();t.pointsByArgument={},t._calculateErrorBars(i);var o={};e=i.reduce(function(e,i){if(t._checkData(i,o)){var a=e.length,r=t._getOldPoint(i,n,a),s=t._createPoint(i,a,r);e.push(s)}return e},[]);for(var a in o)o[a]===i.length&&t._incidentOccurred("W2002",[t.name,a]);Object.keys(n).forEach(function(e){return t._disposePoints(n[e])}),t._points=e},_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,o=this,a=o._points||[],r=a[0]&&a[0].hasValue()&&o._options.closed,s={markers:o._markersGroup,errorBars:o._errorBarGroup};o._drawnPoints=[],o._graphics=o._graphics||[],o._segments=[],i=a.reduce(function(i,a){var r=i[i.length-1];return a.translated&&!n||(a.translate(),!n&&a.setDefaultCoords()),a.hasValue()&&a.hasCoords()?(n&&o._drawPoint({point:a,groups:s,hasAnimation:e,firstDrawing:t}),r.push(a)):a.hasValue()?a.setInvisibility():r.length&&i.push([]),i},[[]]),i.forEach(function(t,n){t.length&&o._drawSegment(t,e,n,r&&n===this.length-1)},i),o._firstDrawing=!a.length,o._removeOldSegments(),e&&o._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"};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&&!b(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&&!b(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),
36l},_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=this.getOptions().aggregation,n=w(t.method),i="custom"===n&&t.calculate,o=void 0;return o=e?function(e){var t=e.data;return t[0]}:this._aggregators[n]||this._aggregators[this._defaultAggregator],i||o},_resample:function(e,t){var n=e.interval,i=e.ticks,o=this,a=o.argumentAxisType===R||o.valueAxisType===R,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<i.length;h++){for(var f=i[h],g=i[h-1],_=[];t[r]&&t[r].argument<f;)t[r].argument>=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;s<i&&(i=s,n=o)}),[m(n[0]),m(n[1])]}function o(e,t,n){return(t-e[0+n])/(e[2+n]-e[0+n])*(e[3-n]-e[1-n])+e[1-n]}function a(e){return void 0!==e.angle&&k||void 0!==e.r&&C||w}function r(e,t){e[t]&&e[t].dispose(),e[t]=null}function s(e){return e&&(e.fill&&"none"!==e.fill||e["stroke-width"]>0&&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(63),h=n(10),p=n(3),f=n(0),g=Math,_=g.round,m=g.floor,v=g.abs,y=12,x=8,b=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]<u?p?[[a[0],v(a[1]-c)<v(a[1]-h)?c:h]]:[[a[0],o([s,c,u,h],a[0],0)]]:a[1]>c&&a[1]<h?p?[[v(a[0]-s)<v(a[0]-u)?s:u,a[1]]]:[[o([s,c,u,h],a[1],1),a[1]]]:p?[[s,c],[n?s:l,n?d:c],[u,c],[s,h],[n?u:l,n?d:h],[u,h]]:[[l,d]]},isHorizontal:function(e,t){return e.x>t.x+t.width||e.x+e.width<t.x},getFigureCenter:function(e){return[m(e.x+e.width/2),m(e.y+e.height/2)]},findFigurePoint:function(e,t){var n=w.getFigureCenter(e),o=i(t,[[e.x,n[1]],[n[0],e.y+e.height],[e.x+e.width,n[1]],[n[0],e.y]]);return o},adjustPoints:function(e){var t=v(e[1]-e[3])<=1,n=v(e[0]-e[2])<=1;return n&&(e[0]=e[2]),t&&(e[1]=e[3]),e}},C={isLabelInside:function(){return!1},prepareLabelPoints:w.prepareLabelPoints,isHorizontal:function(e,t){return e.x>t.x+t.r||e.x+e.width<t.x-t.r},getFigureCenter:function(e){return[e.x,e.y]},findFigurePoint:function(e,t){var n=Math.atan2(e.y-t[1],t[0]-e.x);return[_(e.x+e.r*Math.cos(n)),_(e.y-e.r*Math.sin(n))]},adjustPoints:w.adjustPoints},k={isLabelInside:function(e,t,n){return!n},prepareLabelPoints:function(e,t,n,i){var o=e.x,a=o+e.width,r=o+_(e.width/2),s=e.y,l=s+e.height,u=s+_(e.height/2),c=[[[o,s],[a,s]],[[a,s],[a,l]],[[a,l],[o,l]],[[o,l],[o,s]]],d=(0,h.getCosAndSin)(i);return c=0===i?n?[[o,u],[a,u]]:[[r,s],[r,l]]:c.map(function(e){return e.map(function(e){return[_((e[0]-r)*d.cos+(e[1]-u)*d.sin+r),_(-(e[0]-r)*d.sin+(e[1]-u)*d.cos+u)]})}).reduce(function(e,t){var i=t[0][0],o=t[0][1],a=t[1][0],s=t[1][1];return n?(o>=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)<y?a=[e.x,e.y]:e.x<=i?a[2]=e.x+y:a[2]=e.x-y),a},adjustPoints:function(e){return e}};c.prototype={constructor:c,setColor:function(e){this._color=e},setOptions:function(e){this._options=e},setData:function(e){this._data=e},setDataField:function(e,t){this._data=this._data||{},this._data[e]=t},getData:function(){return this._data},setFigureToDrawConnector:function(e){this._figure=e},dispose:function(){var e=this;r(e,"_group"),e._data=e._options=e._textContent=e._visible=e._insideGroup=e._text=e._background=e._connector=e._figure=null},_setVisibility:function(e,t){this._group&&this._group.attr({visibility:e}),this._visible=t},isVisible:function(){return this._visible},hide:function(e){this._holdVisibility=!!e,this._hide()},_hide:function(){this._setVisibility("hidden",!1)},show:function(e){var t=!this._drawn;this._point.hasValue()&&(this._holdVisibility=!!e,this._show(),t&&this._point.correctLabelPosition(this))},_show:function(){var e=this,t=e._renderer,n=e._container,i=e._options||{},o=e._textContent=u(e._data,e._options)||null;o?(e._group||(e._group=t.g().append(n),e._insideGroup=t.g().append(e._group),e._text=t.text("",0,0).append(e._insideGroup)),e._text.css(i.attributes?(0,h.patchFontOptions)(i.attributes.font):{}),s(i.background)?(e._background=e._background||t.rect().append(e._insideGroup).toBackground(),e._background.attr(i.background),e._color&&e._background.attr({fill:e._color})):r(e,"_background"),l(i.connector)?(e._connector=e._connector||t.path([],"line").sharp().append(e._group).toBackground(),e._connector.attr(i.connector),e._color&&e._connector.attr({stroke:e._color})):r(e,"_connector"),e._text.attr({text:o,align:i.textAlignment,"class":i.cssClass}),e._updateBackground(e._text.getBBox()),e._setVisibility("visible",!0),e._drawn=!0):e._hide()},_getLabelVisibility:function(e){return this._holdVisibility?this.isVisible():e},draw:function(e){return this._getLabelVisibility(e)?(this._show(),this._point&&this._point.correctLabelPosition(this)):(this._drawn=!1,this._hide()),this},_updateBackground:function(e){var t=this;t._background&&(e.x-=x,e.y-=b,e.width+=2*x,e.height+=2*b,t._background.attr(e)),t._bBoxWithoutRotation=(0,f.extend)({},e);var n=t._options.rotationAngle||0;t._insideGroup.rotate(n,e.x+e.width/2,e.y+e.height/2),e=(0,h.rotateBBox)(e,[e.x+e.width/2,e.y+e.height/2],-n),t._bBox=e},getFigureCenter:function(){var e=this._figure,t=this._strategy||a(e);return t.getFigureCenter(e)},_getConnectorPoints:function(){var e,t,n=this,o=n._figure,r=n._options,s=n._strategy||a(o),l=n._shiftBBox(n._bBoxWithoutRotation),u=n.getBoundingRect(),c=[];if(!s.isLabelInside(l,o,"inside"!==r.position)){t=s.isHorizontal(l,o);var d=n.getFigureCenter();c=s.prepareLabelPoints(l,u,t,-r.rotationAngle||0,d),e=i(d,c),c=s.findFigurePoint(o,e,t),c=c.concat(e)}return s.adjustPoints(c)},fit:function(e){var t=this._background?2*x:0,n=!1;if(this._text){var i=this._text.setMaxSize(e-t,void 0,this._options),o=i.rowCount,a=i.textIsEmpty;0===o&&(o=1),o!==this._rowCount&&(n=!0,this._rowCount=o),a&&r(this,"_background")}return this._updateBackground(this._text.getBBox()),n},resetEllipsis:function(){this._text&&this._text.restoreText(),this._updateBackground(this._text.getBBox())},setTrackerData:function(e){this._text.data({"chart-data-point":e}),this._background&&this._background.data({"chart-data-point":e})},hideInsideLabel:function(e){return this._point.hideInsideLabel(this,e)},getPoint:function(){return this._point},shift:function(e,t){var n=this;return n._textContent&&(n._insideGroup.attr({translateX:n._x=_(e-n._bBox.x),translateY:n._y=_(t-n._bBox.y)}),n._connector&&n._connector.attr({points:n._getConnectorPoints()})),n},getBoundingRect:function(){return this._shiftBBox(this._bBox)},_shiftBBox:function(e){return this._textContent?{x:e.x+this._x,y:e.y+this._y,width:e.width,height:e.height}:{}},getLayoutOptions:function(){var e=this._options;return{alignment:e.alignment,background:s(e.background),horizontalOffset:e.horizontalOffset,verticalOffset:e.verticalOffset,radialOffset:e.radialOffset,position:e.position,connectorOffset:(l(e.connector)?y:0)+(s(e.background)?x:0)}}},t.Label=c},function(e,t,n){function i(e,t,n){e.min=e.min<t?e.min:t,e.max=e.max>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<o?a:o)||a,e.prevValue=n,i(e,n,n)}:i}function a(e,t,n){var i={axisType:e,dataType:t};return e===m?i.categories=[]:(i.min=n,i.max=n),i}function r(e){e.categories&&(e.categories=p(e.categories))}function s(e,t,n){if(t&&g(t.value)){var i=e.value,o=t.value,a=e.argument,r=t.argument;return(n-a)*(o-i)/(r-a)+i}return e.value}function l(e,t,n,i,o){var a=s(n,i,o);e(t,a,a)}function u(e){return e.type.toLowerCase().indexOf("line")>=0||e.type.toLowerCase().indexOf("area")>=0}function c(e){var t,n=o(e.valueAxisType),i=e.getArgumentAxis(),a=i&&e.getArgumentAxis().visualRange()||{},r=u(e)?l:_;if(i&&i.getMarginOptions().checkInterval){var s=e.getArgumentAxis().getTranslator().getBusinessRange(),c=f(s,!1),h=s.interval;isFinite(h)&&g(a.startValue)&&g(a.endValue)&&(a.startValue=c(a.startValue,h,-1),a.endValue=c(a.endValue,h))}return t=d(a),function(e,i,o,s){var l=i.argument;return i.hasValue()?(t(l)?(e.startCalc||(e.startCalc=!0,r(n,e,i,s[o-1],a.startValue)),n(e,i.getMinValue(),i.getMaxValue())):!a.categories&&g(a.startValue)&&l>a.startValue&&(e.startCalc||r(n,e,i,s[o-1],a.startValue),e.endCalc=!0,r(n,e,i,s[o-1],a.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(10),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=void 0;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,n=e.getPoints(),i={};return t=c(e),i=a(e.valueAxisType,e.valueType,n.length?e.getValueRangeInitialValue():void 0),n.some(function(e,o){return t(i,e,o,n),i.endCalc}),i},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){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 H.default.tickGenerator({axisType:e.type,dataType:e.dataType,logBase:e.logarithmBase,axisDivisionFactor:o(e.axisDivisionFactor||xe),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,W.tick)(e,t,i.tick,i.grid,n,!1)}function s(e,t){var n=e.getOptions();return(0,W.tick)(e,t,n.minorTick,n.minorGrid)}function l(e,t,n){var i=e.getOptions();return(0,W.tick)(e,t,(0,B.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){e.forEach(function(e){e.labelBBox=e.label?e.label.getBBox():{x:0,y:0,width:0,height:0}})}function _(e){var t=e.length-1;for(t;t>=0&&m(e,t);t--);for(t=0;t<e.length&&m(e,t);t++)t--}function m(e,t){return(null===e[t].coords.x||null===e[t].coords.y)&&(e.splice(t,1),!0)}function v(e){var t=e.label,n=e.position,i=e.isHorizontal?he:pe,o=e.isHorizontal?de:fe;n!==i&&n!==o&&(n=i),n!==fe||t.userAlignment||(t.alignment=pe),e.position=n,e.hoverMode=e.hoverMode?e.hoverMode.toLowerCase():"none",t.minSpacing=(0,E.isDefined)(t.minSpacing)?t.minSpacing:ue}function y(e,t){var n=180*oe.asin((e[0].height+t.minSpacing)/(e[1].x-e[0].x))/oe.PI;return n<45?-45:-90}function x(e,t,n){e.forEach(function(e,i){e.label&&(i%t!==0?e.removeLabel():n&&n(e,i))})}function b(e){return e.valueOf()}function w(e,t){return void 0===e?t:null===e?void 0:e}function C(e,t,n,i,o){var r=(0,B.extend)({},e,{endOnTick:!0,axisDivisionFactor:t,skipCalculationLimits:!0,generateExtraTick:!0,minTickInterval:o});return function(e,t,o,s,l){return a(r,q.noop,t,n.isEmpty(),function(e){return e})({min:o,max:s,categories:n.categories,isSpacedMargin:n.isSpacedMargin,checkMinDataVisibility:n.checkMinDataVisibility,checkMaxDataVisibility:n.checkMaxDataVisibility},i,e,(0,E.isDefined)(e),void 0,void 0,void 0,l)}}function k(e,t){return D.default.convertVisualRangeObject(e,!le(t))}function S(e,t){return Math.max(t.start,t.end)!==e?1:-1}var I=n(405),T=n(10),D=i(T),E=n(1),A=n(273),O=i(A),B=n(0),P=n(13),M=n(63),R=i(M),V=n(268),F=i(V),L=n(406),H=i(L),z=n(274),N=i(z),$=n(109),W=n(407),G=n(29),j=n(22),q=n(4),K=n(408),U=i(K),Y=n(786),X=i(Y),Z=n(787),Q=i(Z),J=n(788),ee=i(J),te=O.default.convertTicksToValues,ne=D.default.patchFontOptions,ie=D.default.getVizRangeObject,oe=Math,ae=oe.abs,re=oe.max,se=oe.min,le=Array.isArray,ue=5,ce=4,de=O.default.top,he=O.default.bottom,pe=O.default.left,fe=O.default.right,ge=O.default.center,_e="keep",me="shift",ve="reset",ye="rotate",xe=50,be=15,we=5,Ce=.8,ke={day:864e5,week:6048e5},Se=t.Axis=function(e){var t=this;t._renderer=e.renderer,t._incidentOccurred=e.incidentOccurred,t._eventTrigger=e.eventTrigger,t._stripsGroup=e.stripsGroup,t._labelAxesGroup=e.labelAxesGroup,t._constantLinesGroup=e.constantLinesGroup,t._scaleBreaksGroup=e.scaleBreaksGroup,t._axesContainerGroup=e.axesContainerGroup,t._gridContainerGroup=e.gridGroup,t._axisCssPrefix=e.widgetClass+"-"+(e.axisClass?e.axisClass+"-":""),t._setType(e.axisType,e.drawingType),t._createAxisGroups(),t._translator=t._createTranslator(),t.isArgumentAxis=e.isArgumentAxis,t._viewport={},t._firstDrawing=!0,t._initRange={}};Se.prototype={constructor:Se,_drawAxis:function(){var e=this._options;e.visible&&(this._axisElement=this._createAxisElement(),this._updateAxisElementPosition(),this._axisElement.attr({"stroke-width":e.width,stroke:e.color,"stroke-opacity":e.opacity}).sharp(this._getSharpParam(!0),this.getAxisSharpDirection()).append(this._axisLineGroup))},_createPathElement:function(e,t,n){return this.sharp(this._renderer.path(e,"line").attr(t),n)},sharp:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.sharp(this._getSharpParam(),t)},getAxisSharpDirection:function(){var e=this._options.position;return e===de||e===pe?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?pe:de,u=n?fe:he,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=ce+h,g=p-ce;return t.areCoordsOutsideAxis(e)||void 0===e[i]||e[i]<f||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,E.isDefined)(i)||i<se(t,n)||i>re(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,S(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(ne((0,B.extend)({},this._options.label.font,a))).attr({align:"center","class":r}).append(o)},_drawConstantLineLabels:function(e,t,n,i){var o,a=this,r=t.text,s=a._options,l=s.label;return a._checkAlignmentConstantLineLabels(t),r=(0,E.isDefined)(r)?r:a.formatLabel(e,l),o=a._getConstantLineLabelsCoords(n,t),a._drawConstantLineLabelText(r,o.x,o.y,t,i)},_getStripPos:function(e,t,n,i,o){var a,r,s,l,u,c=!(!o.minVisible&&!o.maxVisible),d=(o.categories||[]).reduce(function(e,t){return e.push(t.valueOf()),e},[]),h=o.minVisible;if(!c&&(0,E.isDefined)(e)&&(0,E.isDefined)(t)){if(l=(0,P.inArray)(e.valueOf(),d),u=(0,P.inArray)(t.valueOf(),d),l===-1||u===-1)return{from:0,to:0};l>u&&(s=t,t=e,e=s)}return(0,E.isDefined)(e)?(e=this.validateUnit(e,"E2105","strip"),a=this._getTranslatedCoord(e,-1),!(0,E.isDefined)(a)&&c&&(a=e<h?n:i)):a=n,(0,E.isDefined)(t)?(t=this.validateUnit(t,"E2105","strip"),r=this._getTranslatedCoord(t,1),!(0,E.isDefined)(r)&&c&&(r=t>h?i:n)):r=i,a<r?{from:a,to:r}:{from:r,to:a}},_getStripGraphicAttributes:function(e,t){var n,i,o,a,r=this._orthogonalPositions,s=r.start,l=r.end;return this._isHorizontal?(n=e,i=se(s,l),o=t-e,a=ae(s-l)):(n=se(s,l),i=e,o=ae(s-l),a=ae(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))})},_adjustLabels:function(e){var t=this,n=t._majorTicks.reduce(function(e,t){if(!t.label)return e;var n=t.labelRotationAngle?D.default.rotateBBox(t.labelBBox,[t.labelCoords.x,t.labelCoords.y],-t.labelRotationAngle):t.labelBBox;return{width:re(e.width||0,n.width),height:re(e.height||0,n.height),offset:re(e.offset||0,t.labelOffset||0)}},{}),i=t._isHorizontal?n.height:n.width;return t._majorTicks.forEach(function(i){i.label&&i.label.attr(t._getLabelAdjustedCoord(i,e+(i.labelOffset||0),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=D.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===he?p+h-s.y+t:p-h-(s.y+s.height)-t,i=u===fe?c&&d?e.coords.x-(s.x+s.width):g-s.x-s.width:u===pe?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===pe?(i=u===pe?p-h-n-s.x:u===ge?p-h-n/2-s.x-s.width/2:p-h-s.x-s.width,i-=t):(i=u===fe?p+h+n-s.x-s.width:u===ge?p+h+n/2-s.x-s.width/2:p+h-s.x,i+=t)),{translateX:i,translateY:o}},_createAxisConstantLineGroups:function(){var e,t,n,i=this,o=i._renderer,a=i._axisCssPrefix,r=a+"constant-lines";return e=o.g().attr({"class":r}),t=o.g().attr({"class":r}),n=o.g().attr({"class":r}),{inside:e,outside1:t,left:t,top:t,outside2:n,right:n,bottom:n,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,I.smartFormatter)(e,{labelOptions:t,ticks:a||te(this._majorTicks),tickInterval:(0,E.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,E.isFunction)(t.customizeText)?t.customizeText.call(r,r):r.valueText},formatHint:function(e,t,n){var i=this._getLabelFormatObject(e,t,n);return(0,E.isFunction)(t.customizeHint)?t.customizeHint.call(i,i):void 0},formatRange:function(e,t,n){return(0,I.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=re(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=h.reduce(function(e,t){return!t||t.isEmpty?e:{left:re(e.left,a-t.x),top:re(e.top,r-t.y),right:re(e.right,t.x+t.width-s),bottom:re(e.bottom,t.y+t.height-l)}},{left:0,right:0,top:0,bottom:0});return p[n]+=t.crosshairMargin,i&&(p[n]=i),u&&(e._isHorizontal&&o.right<u&&p.right<u&&(p.right=u),!e._isHorizontal&&o.bottom<u&&p.bottom<u&&(p.bottom=u)),p},validateUnit:function(e,t,n){var i=this;return e=i.parser(e),void 0===e&&t&&i._incidentOccurred(t,[n]),e},_setType:function(e,t){var n,i=this;switch(e){case"xyAxes":n=U.default;break;case"polarAxes":n=X.default}(0,B.extend)(i,n[t])},_getSharpParam:function(){return!0},_disposeBreaksGroup:q.noop,dispose:function(){var e=this;[e._axisElementsGroup,e._axisStripGroup,e._axisGroup].forEach(function(e){e.dispose()}),e._strips=e._title=null,e._axisStripGroup=e._axisConstantLineGroups=e._axisStripLabelGroup=e._axisBreaksGroup=null,e._axisLineGroup=e._axisElementsGroup=e._axisGridGroup=null,e._axisGroup=e._axisTitleGroup=null,e._axesContainerGroup=e._stripsGroup=e._constantLinesGroup=null,e._renderer=e._options=e._textOptions=e._textFontStyles=null,e._translator=null,e._majorTicks=e._minorTicks=null,e._disposeBreaksGroup()},getOptions:function(){return this._options},setPane:function(e){this.pane=e,this._options.pane=e},setTypes:function(e,t,n){this._options.type=e||this._options.type,this._options[n]=t||this._options[n],this._updateTranslator()},resetTypes:function(e){this._options.type=this._initTypes.type,this._options[e]=this._initTypes[e]},getTranslator:function(){return this._translator},updateOptions:function(e){var t=this,n=e.label;t._options=e,e.tick=e.tick||{},e.minorTick=e.minorTick||{},e.grid=e.grid||{},e.minorGrid=e.minorGrid||{},e.title=e.title||{},e.marker=e.marker||{},t._initTypes={type:e.type,argumentType:e.argumentType,valueType:e.valueType},v(e),t._setTickOffset(),t._isHorizontal=e.isHorizontal,t.pane=e.pane,t.name=e.name,t.priority=e.priority,t._hasLabelFormat=""!==n.format&&(0,E.isDefined)(n.format),t._textOptions={opacity:n.opacity,align:"center","class":n.cssClass},t._textFontStyles=D.default.patchFontOptions(n.font),e.type===O.default.logarithmic&&e.logarithmBaseError&&(t._incidentOccurred("E2104"),delete e.logarithmBaseError),t._updateTranslator(),t._createConstantLines(),t._strips=(e.strips||[]).map(function(e){return(0,ee.default)(t,e)}),t._majorTicks=t._minorTicks=null,t._firstDrawing=!0},calculateInterval:function(e,t){var n=this._options;return n&&n.type===O.default.logarithmic?D.default.getLog(e/t,n.logarithmBase):ae(e-t);
37},_processCanvas:function(e){return e},updateCanvas:function(e){var t=this._orthogonalPositions={start:this._isHorizontal?e.top:e.left,end:this._isHorizontal?e.height-e.bottom:e.width-e.right};this._canvas=e,t.center=t.start+(t.end-t.start)/2,this._translator.updateCanvas(this._processCanvas(e)),this._initAxisPositions()},getCanvas:function(){return this._canvas},getAxisShift:function(){return this._axisShift||0},hideTitle:function(){var e=this;e._options.title.text&&(e._incidentOccurred("W2105",[e._isHorizontal?"horizontal":"vertical"]),e._axisTitleGroup.clear())},getTitle:function(){return this._title},hideOuterElements:function(){var e=this,t=e._options;!t.label.visible&&!e._outsideConstantLines.length||e._translator.getBusinessRange().isEmpty()||(e._incidentOccurred("W2106",[e._isHorizontal?"horizontal":"vertical"]),e._axisElementsGroup.clear(),u(e._outsideConstantLines,"removeLabel"))},adjustViewport:function(e){var t=this,n=t._options,i=n.type===O.default.discrete,o=t._seriesData&&t._seriesData.categories||[],a=t.adjustRange(ie(n.wholeRange)),r=t.getViewport()||{},s=new $.Range(e);t._addConstantLinesToRange(s,"minVisible","maxVisible");var l=(0,E.isDefined)(r.startValue),u=(0,E.isDefined)(r.endValue);i||(l=l&&(!(0,E.isDefined)(a.endValue)||r.startValue<a.endValue),u=u&&(!(0,E.isDefined)(a.startValue)||r.endValue>a.startValue));var c=l?r.startValue:s.minVisible,d=u?r.endValue:s.maxVisible;if(i){var h=D.default.getCategoriesInfo(o,a.startValue,a.endValue);o=h.categories,s.categories=o}else s.min=(0,E.isDefined)(a.startValue)?a.startValue:s.min,s.max=(0,E.isDefined)(a.endValue)?a.endValue:s.max;var p=D.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,E.isDefined)(s.min)&&(s.min=s.minVisible),!(0,E.isDefined)(s.max)&&(s.max=s.maxVisible),s.addRange({}),s},adjustRange:function(e){e=e||{};var t=this._options.type===O.default.discrete,n=this._options.type===O.default.logarithmic;if(n&&(e.startValue=e.startValue<=0?null:e.startValue,e.endValue=e.endValue<=0?null:e.endValue),!t&&(0,E.isDefined)(e.startValue)&&(0,E.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([me,_e,ve].indexOf(i)===-1)if(a.axisType===O.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())?_e:ve}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?ve:u!==c&&d===h?me:_e}}else[_e,ve].indexOf(i)===-1&&(i=n===_e?_e:ve);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,E.isDefined)(r.startValue)||(0,E.isDefined)(r.endValue)||(0,E.isDefined)(r.length)||(a=ve)}i._prevDataWasEmpty&&(a=_e),a===_e&&i._setVisualRange([o.startValue,o.endValue]),a===ve&&i._setVisualRange([null,null]),a===me&&i._setVisualRange({length:i.getVisualRangeLength()})}},getVisualRangeLength:function(e){var t=e||this._translator.getBusinessRange(),n=this._options,i=n.type,o=n.logarithmBase,a=void 0;if(i===O.default.logarithmic)a=(0,G.adjust)(D.default.getLog(t.maxVisible/t.minVisible,o));else if(i===O.default.discrete){var r=D.default.getCategoriesInfo(t.categories,t.minVisible,t.maxVisible);a=r.categories.length}else a=t.maxVisible-t.minVisible;return a},getVisualRangeCenter:function(e){var t=this._translator.getBusinessRange(),n=e||t,i=this._options,o=i.type,a=i.logarithmBase,r=void 0;if((0,E.isDefined)(n.minVisible)&&(0,E.isDefined)(n.maxVisible)){if(o===O.default.logarithmic)r=D.default.raiseTo((0,G.adjust)(D.default.getLog(n.maxVisible*n.minVisible,a))/2,a);else if(o===O.default.discrete){var s=D.default.getCategoriesInfo(n.categories,n.minVisible,n.maxVisible),l=Math.ceil(s.categories.length/2)-1;r=t.categories.indexOf(s.categories[l])}else r=(n.maxVisible.valueOf()+n.minVisible.valueOf())/2;return r}},setBusinessRange:function(e,t,n){var i=this,o=i._options,a=o.type===O.default.discrete;i._handleBusinessRangeChanged(n,t,e),i._seriesData=new $.Range(e);var r=i._seriesData.isEmpty();if(i._prevDataWasEmpty=r,i._seriesData.addRange({categories:o.categories,dataType:o.dataType,axisType:o.type,base:o.logarithmBase,invert:o.inverted}),!a){if(!(0,E.isDefined)(i._seriesData.min)&&!(0,E.isDefined)(i._seriesData.max)){var s=i.getViewport();s&&i._seriesData.addRange({min:s.startValue,max:s.endValue})}var l=o.synchronizedValue;(0,E.isDefined)(l)&&i._seriesData.addRange({min:l,max:l})}i._seriesData.minVisible=void 0===i._seriesData.minVisible?i._seriesData.min:i._seriesData.minVisible,i._seriesData.maxVisible=void 0===i._seriesData.maxVisible?i._seriesData.max:i._seriesData.maxVisible,!i.isArgumentAxis&&o.showZero&&i._seriesData.correctValueZeroLevel(),i._seriesData.sortCategories(i.getCategoriesSorter()),i._seriesData.breaks=i._breaks=i._getScaleBreaks(o,i._seriesData,i._series,i.isArgumentAxis),i._translator.updateBusinessRange(i.adjustViewport(i._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===de||n===pe?o-i:o+i},getFormattedValue:function(e,t,n){var i=this._options.label;return(0,E.isDefined)(e)?this.formatLabel(e,(0,B.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===O.default.discrete?n._tickOffset&&0!==e.length&&(u=[e[0],e[e.length-1]]):a?(l.min&&(0,E.isDefined)(a[0])&&u.push(a[0]),l.max&&(0,E.isDefined)(a[1])&&u.push(a[1])):(l.min&&(0===i||e[0]>r)&&u.push(r),l.max&&(0===i||e[i-1]<s)&&u.push(s)),u},setPercentLabelFormat:function(){this._hasLabelFormat||(this._options.label.format="percent")},resetAutoLabelFormat:function(){this._hasLabelFormat||delete this._options.label.format},getMultipleAxesSpacing:function(){return this._options.multipleAxesSpacing||0},getTicksValues:function(){return{majorTicksValues:te(this._majorTicks),minorTicksValues:te(this._minorTicks)}},setTicks:function(e){var t=e.majorTicks||[];this._majorTicks=t.map(r(this,this._renderer,this._getSkippedCategory(t))),this._minorTicks=(e.minorTicks||[]).map(s(this,this._renderer)),this._isSynchronized=!0},_adjustDivisionFactor:function(e){return e},_getTicks:function(e,t,n){var i=this,o=i._options,r=o.customTicks,s=o.customMinorTicks;return a(o,t||i._incidentOccurred,n,i._translator.getBusinessRange().isEmpty(),i._adjustDivisionFactor.bind(i))({min:e.minVisible,max:e.maxVisible,categories:e.categories,isSpacedMargin:e.isSpacedMargin,checkMinDataVisibility:e.checkMinDataVisibility,checkMaxDataVisibility:e.checkMaxDataVisibility},i._getScreenDelta(),o.tickInterval,"ignore"===o.label.overlappingBehavior||o.forceUserTickInterval,{majors:r,minors:s},o.minorTickInterval,o.minorTickCount,i._breaks)},_createTicksAndLabelFormat:function(e,t){var n,i=this._options;return n=this._getTicks(e,t,!1),e.isEmpty()||i.type!==O.default.discrete||"datetime"!==i.dataType||this._hasLabelFormat||!n.ticks.length||(i.label.format=R.default.getDateFormatByTicks(n.ticks)),n},getAggregationInfo:function(e,t){var n=this,i=n._options,o=n._marginOptions,a=new $.Range(n.getTranslator().getBusinessRange()).addRange(t),r=n.getViewport(),s=r&&(0,E.isDefined)(r.startValue)?r.startValue:a.minVisible,l=r&&(0,E.isDefined)(r.endValue)?r.endValue:a.maxVisible,u=[],c=i.aggregationInterval,d=i.aggregationGroupWidth;!d&&o&&(o.checkInterval&&(d=i.axisDivisionFactor),o.sizePointNormalState&&(d=Math.min(o.sizePointNormalState,i.axisDivisionFactor)));var h=!i.aggregationGroupWidth&&!c&&t.interval,p=C(i,d,a,n._getScreenDelta(),h),f=p(c,!0,s,l,n._breaks).tickInterval;if(i.type!==O.default.discrete){var g=e?a.min:s,_=e?a.max:l;if((0,E.isDefined)(g)&&(0,E.isDefined)(_)){var m=D.default.getAddFunction({base:i.logarithmBase,axisType:i.type,dataType:i.dataType},!1),v=g,y=_;if(!e){var x=Math.max(n.calculateInterval(_,g),"datetime"===i.dataType?(0,j.dateToMilliseconds)(f):f);v=m(g,x,-1),y=m(_,x)}v=v<a.min?a.min:v,y=y>a.max?a.max:y;var b=n._getScaleBreaks(i,{minVisible:v,maxVisible:y},n._series,n.isArgumentAxis);u=p(f,!1,v,y,b).ticks}}return n._aggregationInterval=f,{interval:f,ticks:u}},createTicks:function(e){var t,n,i,o=this,a=o._renderer,u=o._options;if(e){o._isSynchronized=!1,o.updateCanvas(e),o._estimatedTickInterval=o._getTicks(o.adjustViewport(this._seriesData),q.noop,!0).tickInterval,i=o._getViewportRange();var c=this._calculateValueMargins();i.addRange({minVisible:c.minValue,maxVisible:c.maxValue,isSpacedMargin:c.isSpacedMargin,checkMinDataVisibility:!this.isArgumentAxis&&c.checkInterval&&!(0,E.isDefined)(u.min)&&c.minValue.valueOf()>0,checkMaxDataVisibility:!this.isArgumentAxis&&c.checkInterval&&!(0,E.isDefined)(u.max)&&c.maxValue.valueOf()<0}),t=o._createTicksAndLabelFormat(i),n=o._getBoundaryTicks(t.ticks,o._getViewportRange()),u.showCustomBoundaryTicks&&n.length?(o._boundaryTicks=[n[0]].map(l(o,a,!0)),n.length>1&&(o._boundaryTicks=o._boundaryTicks.concat([n[1]].map(l(o,a,!1))))):o._boundaryTicks=[];var d=(t.minorTicks||[]).filter(function(e){return!n.some(function(t){return b(t)===b(e)})});o._tickInterval=t.tickInterval,o._minorTickInterval=t.minorTickInterval;var h=o._majorTicks||[],p=h.reduce(function(e,t){return e[t.value.valueOf()]=t,e},{}),f=(0,E.type)(t.ticks[0])===(0,E.type)(h[0]&&h[0].value),g=o._getSkippedCategory(t.ticks),_=t.ticks.map(function(e){var t=p[e.valueOf()];return t&&f?(delete p[e.valueOf()],t.setSkippedCategory(g),t):r(o,a,g)(e)});o._majorTicks=_;var m=o._minorTicks||[];o._minorTicks=d.map(function(e,t){var n=m[t];return n?(n.updateValue(e),n):s(o,a)(e)}),o._ticksToRemove=Object.keys(p).map(function(e){return p[e]}).concat(m.slice(o._minorTicks.length,m.length)),o._correctedBreaks=t.breaks,o._reinitTranslator(o._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,E.isDefined)(this._marginOptions)?this._marginOptions:{}},allowToExtendVisualRange:function(e){var t=this.adjustRange(ie(this._options.wholeRange)),n=e?t.endValue:t.startValue;return!this.isArgumentAxis||!(0,E.isDefined)(n)&&this.isExtremePosition(e)},_calculateRangeInterval:function(e){var t="datetime"===this._options.dataType,n=[],i=function(e){(0,E.isDefined)(e)&&n.push(t?(0,j.dateToMilliseconds)(e):e)};return i(this._tickInterval),i(this._estimatedTickInterval),(0,E.isDefined)(e)&&n.push(e),i(this._aggregationInterval),this._calculateWorkWeekInterval(se.apply(this,n))},_calculateWorkWeekInterval:function(e){var t=this._options;if("datetime"===t.dataType&&t.workdaysOnly&&e){var n=t.workWeek.length*ke.day,i=ke.week-n;if(n!==e&&i<e){var o=Math.ceil(e/ke.week);e=i>=e?ke.day:e-i*o}else i>=e&&e>ke.day&&(e=ke.day)}return e},_calculateValueMargins:function(e){function t(e){var t=h.ratioOfCanvasRange();return t/(t*u/(e+u))}function n(e,n){var i=ae(k.start-e),o=ae(k.end-n),a=t(i+o);g=i/a,_=o/a}this._resetMargins();var i=this,o=i.getMarginOptions(),a=(o.size||0)/2,r=i._options,s=this._getViewportRange(),l=this.getViewport(),u=i._getScreenDelta(),c=(r.type||"").indexOf(O.default.discrete)!==-1,d=r.valueMarginsEnabled&&!c,h=i._translator,p=r.minValueMargin,f=r.maxValueMargin,g=0,_=0,m=0,v=void 0;if(s.stubData||!u)return{startPadding:0,endPadding:0};if(i.isArgumentAxis&&o.checkInterval)if(v=i._calculateRangeInterval(s.interval),isFinite(v)){var y=h.getInterval(v);m=Math.ceil(y/(2*t(y)))}else v=0;var x=void 0,b=void 0,w=u*Ce/2;d&&((0,E.isDefined)(p)?x=isFinite(p)?p:0:(g=Math.max(a,m),g=Math.min(w,g)),(0,E.isDefined)(f)?b=isFinite(f)?f:0:(_=Math.max(a,m),_=Math.min(w,_)));var C=o.percentStick&&!this.isArgumentAxis;C&&1===ae(s.max)&&(b=_=0),C&&1===ae(s.min)&&(x=g=0);var k=i._getCanvasStartEnd(),S=1+(x||0)+(b||0),I=(u-g-_)/S||u;void 0===x&&void 0===b||(void 0!==x&&(g=I*x),void 0!==b&&(_=I*b));var T=void 0,D=void 0;if(r.type!==O.default.discrete&&e&&e.length>1&&!r.skipViewportExtending&&!l.action&&r.endOnTick!==!1){var A=e.length,B=h.translate(e[0].value),P=h.translate(e[A-1].value),M=B>P?-1:1,R=re(M*(k.start-B),0),V=re(M*(P-k.end),0);if(R>g||V>_){var F=V+R,L=t(F);R>=g&&(T=e[0].value),V>=_&&(D=e[A-1].value),g=re(R,g)/L,_=re(V,_)/L}}return x=void 0===x?g/I:x,b=void 0===b?_/I:b,c||(this._translator.isInverted()?(T=(0,E.isDefined)(T)?T:h.from(k.start+u*x,-1),D=(0,E.isDefined)(D)?D:h.from(k.end-u*b,1)):(T=(0,E.isDefined)(T)?T:h.from(k.start-u*x,-1),D=(0,E.isDefined)(D)?D:h.from(k.end+u*b,1))),i.isArgumentAxis||(T*s.min<=0&&T*s.minVisible<=0&&(n(h.translate(0),h.translate(D)),T=0),D*s.max<=0&&D*s.maxVisible<=0&&(n(h.translate(T),h.translate(0)),D=0)),{startPadding:this._translator.isInverted()?_:g,endPadding:this._translator.isInverted()?g:_,minValue:T,maxValue:D,interval:v,isSpacedMargin:g===_&&0!==g}},applyMargins:function(){if(!this._isSynchronized){var e=this._calculateValueMargins(this._majorTicks),t=(0,B.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,Q.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(),g(n._majorTicks);var a=void 0,r=void 0,s=void 0,l=n._tickInterval;(0,E.isDefined)(l)&&(s=n.getTranslator().getInterval("datetime"===i.dataType?(0,j.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),_=i.label.wordWrap||"none",m=i.label.textOverflow||"none";if(("none"!==_||"none"!==m)&&p!==ye&&f!==ye&&"auto"!==f){var v=!1,y=!1;a&&n._majorTicks.some(function(e){return e.labelBBox.width>a})&&(v=!0),r&&n._majorTicks.some(function(e){return e.labelBBox.height>r})&&(y=!0),(v||y)&&(n._majorTicks.forEach(function(e){e.label&&e.label.setMaxSize(a,r,i.label)}),g(n._majorTicks))}g(n._outsideConstantLines),g(n._insideConstantLines),g(n._strips),g(n._dateMarkers),n._adjustConstantLineLabels(n._insideConstantLines),n._adjustStripLabels();var x=n._constantLabelOffset=n._adjustConstantLineLabels(n._outsideConstantLines);n._translator.getBusinessRange().isEmpty()||(n._setLabelsPlacement(),x=n._adjustLabels(x)),x=n._adjustDateMarkers(x),n._adjustTitle(x)},_measureTitle:q.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),_(i._majorTicks),_(i._minorTicks),_(i._boundaryTicks),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,E.isDefined)(t.max)&&!(0,E.isDefined)(t.min)||(0,E.isDefined)(i.startValue)||(0,E.isDefined)(i.endValue)||(0,E.isDefined)(i.length)?i:{startValue:t.min,endValue:t.max},e._setVisualRange(n)},_validateVisualRange:function(e){var t=ie(e);return void 0!==t.startValue&&(t.startValue=this.validateUnit(t.startValue)),void 0!==t.endValue&&(t.endValue=this.validateUnit(t.endValue)),k(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?F.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){var t=this;t._resetVisualRangeOption(),t._setVisualRange(e);var n=t.getViewport();t._breaks=t._getScaleBreaks(t._options,{minVisible:n.startValue,maxVisible:n.endValue},t._series,t.isArgumentAxis),t._translator.updateBusinessRange(t._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=D.default.getVizRangeObject(this._options.wholeRange),t=this.getTranslator().getBusinessRange(),n={startValue:w(this._initRange.startValue,t.min),endValue:w(this._initRange.endValue,t.max)};return{startValue:w(e.startValue,n.startValue),endValue:w(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 t=this,n=arguments,e=void 0;if(0===n.length){var i=t._getAdjustedBusinessRange(),o=i.minVisible,a=i.maxVisible;return t._options.type===O.default.discrete?(o=(0,E.isDefined)(o)?o:i.categories[0],a=(0,E.isDefined)(a)?a:i.categories[i.categories.length-1],{startValue:o,endValue:a,categories:D.default.getCategoriesInfo(i.categories,o,a).categories}):{startValue:o,endValue:a}}e=le(n[0])?n[0]:(0,E.isPlainObject)(n[0])?(0,B.extend)({},n[0]):[n[0],n[1]];var r=t.handleZooming(e,n[1]);r.isPrevented||t._visualRange(t,r.range)},handleZooming:function(e,t,n,i){var o=this;t=t||{},(0,E.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,range:e||a.range};return a.cancel||((0,E.isDefined)(e)&&o._applyZooming(e),(0,E.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,E.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,G.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=this,o=i._options,a=o.minVisualRangeLength,r="zoom"===e&&t>=1,s=i._translator.getBusinessRange(),l=void 0;(0,E.isDefined)(n)&&(l=i.adjustRange(D.default.getVizRangeObject(n)),l={minVisible:l.startValue,maxVisible:l.endValue,categories:s.categories});var u=i.getVisualRangeLength(l);if("discrete"!==o.type)if((0,E.isDefined)(a))"datetime"!==o.dataType||(0,E.isNumeric)(a)||(a=(0,j.dateToMilliseconds)(a)),r&=a>=u;else{var c=i._translator.canvasLength,d={minVisible:s.min,maxVisible:s.max,categories:s.categories};r&=i.getVisualRangeLength(d)/c>=u}else!(0,E.isDefined)(a)&&(a=1),r&=(0,E.isDefined)(n)&&i.getVisualRangeLength()===a&&u<=a;return!!r},dataVisualRangeIsReduced:function(){var e=void 0,t=void 0,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,E.isDefined)(e)||!(0,E.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]&&u<s[1]||c>s[0]&&c<s[1]||u===c&&s[0]!==s[1]},isExtremePosition:function(e){var t=void 0,n=void 0;"discrete"===this._options.type?(n=this._translator.getBusinessRange(),t=e?n.categories[n.categories.length-1]:n.categories[0]):(n=this.getZoomBounds(),t=e?n.endValue:n.startValue);var i=this.getTranslator(),o=i.translate(t),a=this.visualRange(),r=e?i.translate(a.endValue):i.translate(a.startValue);return ae(r-o)<we},getViewport:function(){return this._viewport},getFullTicks:function(){var e=this._majorTicks||[];return this._options.type===O.default.discrete?te(e):te(e.concat(this._minorTicks,this._boundaryTicks)).sort(function(e,t){return b(e)-b(t)})},measureLabels:function(e,t){var n,i,o,a,r,s=this,l=s._options,u=l.visible?l.width:0,c=t?l.label.indentFromAxis+.5*l.tick.length:0,d=s._getViewportRange();return!d.isEmpty()&&l.label.visible&&s._axisElementsGroup?(s._majorTicks?n=te(s._majorTicks):(this.updateCanvas(e),n=s._createTicksAndLabelFormat(d,q.noop),r=n.tickInterval,n=n.ticks),i=n.reduce(function(e,t,i){var o=s.formatLabel(t,l.label,d,void 0,r,n);return e.length<o.length?o:e},s.formatLabel(n[0],l.label,d,void 0,r,n)),o=s._renderer.text(i,0,0).css(s._textFontStyles).attr(s._textOptions).append(s._renderer.root),a=o.getBBox(),o.remove(),{x:a.x,y:a.y,width:a.width+c,height:a.height+c}):{height:u,width:u,x:0,y:0}},_setLabelsPlacement:function(){if(this._options.label.visible){var e,t,n=this,i=n._options.label,o=n._validateDisplayMode(i.displayMode),a=n._validateOverlappingMode(i.overlappingBehavior,o),r="none"===a||"ignore"===a,s={rotationAngle:i.rotationAngle,staggeringSpacing:i.staggeringSpacing},l=n._majorTicks.map(function(e){return e.labelBBox});switch(t=n._getStep(l),o){case ye:r&&(e=!0,t=1),n._applyLabelMode(o,t,l,i,e);break;case"stagger":r&&(t=2),n._applyLabelMode(o,re(t,2),l,i);break;default:n._applyLabelOverlapping(l,a,t,s)}}},_applyLabelOverlapping:function(e,t,n,i){var o=this,a=o._options.label,r=o._majorTicks;if("none"!==t&&"ignore"!==t){var s=function(e,t,n){return 0!==t&&O.default.areLabelsOverlap(e,n[t-1],a.minSpacing,a.alignment)};n>1&&e.some(s)&&o._applyLabelMode(t,n,e,i),"hide"===t&&o._checkBoundedLabelsOverlapping(n,r,e)}},_applyLabelMode:function(e,t,n,i,o){var a,r,s,l=this,u=l._majorTicks,c=l._options.label,d=i.rotationAngle;switch(e){case ye:c.userAlignment||(r=d<0?fe:pe,d%90===0&&(r=ge)),t=o?t:l._getStep(n,d),s=function(e){e.label.rotate(d),e.labelRotationAngle=d,r&&(e.labelAlignment=r)},x(u,t,s);break;case"stagger":a=l._getMaxLabelHeight(n,i.staggeringSpacing),s=function(e,n){n/(t-1)%2!==0&&(e.labelOffset=a)},x(u,t-1,s);break;case"auto":case"_auto":2===t?l._applyLabelMode("stagger",t,n,i):l._applyLabelMode(ye,t,n,{rotationAngle:y(n,c)});break;default:x(u,t)}},getMarkerTrackers:q.noop,_drawDateMarkers:q.noop,_adjustDateMarkers:q.noop,coordsIn:q.noop,areCoordsOutsideAxis:q.noop,_getSkippedCategory:q.noop,_initAxisPositions:q.noop,_drawTitle:q.noop,_updateTitleCoords:q.noop,_adjustConstantLineLabels:q.noop,_createTranslator:function(){return new N.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=ae(t.start-t.end);return o-(i?n[i-1].cumulativeWidth:0)},_getScaleBreaks:function(){return[]},_adjustTitle:q.noop,_checkTitleOverflow:q.noop,getSpiderTicks:q.noop,setSpiderTicks:q.noop,_checkBoundedLabelsOverlapping:q.noop,drawScaleBreaks:q.noop,_visualRange:q.noop,applyVisualRangeSetter:q.noop,getCategoriesSorter:function(){var e=this._options.categoriesSortingMethod;return(0,E.isDefined)(e)?e:this._options.categories},_getAdjustedBusinessRange:function(){return this.adjustViewport(this._translator.getBusinessRange())}}},function(e,t,n){var i=n(10).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<e.length&&!(Math.abs(e[i].coords[t]-e[0].coords[t])>=n);i++);return i},areLabelsOverlap:function(e,t,n,i){var o,a,r=e.x>t.x,s=e.y>t.y,l=e.x,u=t.x,c=e.width,d=t.width;return"left"===i?(l+=c/2,u+=d/2):"right"===i&&(l-=c/2,u-=d/2),o=r?u+d+n>l:l+c+n>u,a=s?t.y+t.height>e.y:e.y+e.height>t.y,o&&a}}},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;a<l;a++)n=e[a],i=r(n.from),o=r(n.to),u+=o-i,s.push({trFrom:i,trTo:o,from:n.from,to:n.to,length:u,cumulativeWidth:n.cumulativeWidth});return s}function o(e){var t=e.min,n=e.max,i=e.minVisible,o=e.maxVisible,a="logarithmic"===e.axisType;return a&&(o=_(o,e.base),i=_(i,e.base),t=_(t,e.base),n=_(n,e.base)),{base:e.base,rangeMin:t,rangeMax:n,rangeMinVisible:i,rangeMaxVisible:o}}function a(e){return{isStartSide:e?function(e,t,n,i){return e<=t[t.length-1][i]}:function(e,t,n,i){return e<t[0][n]},isEndSide:e?function(e,t,n,i){return e>t[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[i]},isBetweenBreaks:e?function(e,t,n,i,o){return e>=t[o]&&e<n[i]}:function(e,t,n,i,o){return e<t[i]&&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(781),d=n(782),h=n(783),p=n(784),f=n(10),g=n(1),_=f.getLog,m=f.getPower,v=g.isDefined,y=n(29).adjust,x=Math.abs,b=["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(b,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,
38i=o.length;e<i;e++)t=o[e],n=this.translate(t.to),t.end=n,t.start=t.gapSize?n:this.isInverted()?n+a:n-a},_checkValueAboutBreaks:function(e,t,n,i,o){var a,r,s,l,u={length:0,breaksSize:void 0,inBreak:!1},c=e[e.length-1];if(o.isStartSide(t,e,n,i))return u;if(o.isEndSide(t,e,n,i))return{length:c.length,breaksSize:c.cumulativeWidth,inBreak:!1};for(a=0,r=e.length;a<r;a++){if(s=e[a],l=e[a-1],o.isInBreak(t,s,n,i)){u.inBreak=!0,u.break=s;break}if(l&&o.isBetweenBreaks(t,s,l,n,i)){u={length:o.getLength(l,c),breaksSize:o.getBreaksSize(l,c),inBreak:!1};break}}return u},isInverted:function(){return!(this._options.isHorizontal^this._businessRange.invert)},_getDiscreteInterval:function(e,t){var n=e-(this._options.stick?1:0);return n>0?t.canvasLength/n:t.canvasLength},_prepareCanvasOptions:function(){var e=this,t=e._businessRange,n=e._canvasOptions=o(t),i=e._canvas,a=e._breaks,r=void 0;return n.startPadding=i.startPadding||0,n.endPadding=i.endPadding||0,e._options.isHorizontal?(n.startPoint=i.left+n.startPadding,r=i.width,n.endPoint=i.width-i.right-n.endPadding,n.invert=t.invert):(n.startPoint=i.top+n.startPadding,r=i.height,n.endPoint=i.height-i.bottom-n.endPadding,n.invert=!t.invert),e.canvasLength=n.canvasLength=n.endPoint-n.startPoint,n.rangeDoubleError=Math.pow(10,m(n.rangeMax-n.rangeMin)-m(r)-2),n.ratioOfCanvasRange=n.canvasLength/(n.rangeMaxVisible-n.rangeMinVisible),void 0!==a&&(n.ratioOfCanvasRange=(n.canvasLength-a[a.length-1].cumulativeWidth)/(n.rangeMaxVisible-n.rangeMinVisible-a[a.length-1].length)),n},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=this,t=e._canvasOptions,n=t.startPoint-t.startPadding,i=t.endPoint+t.endPadding,o=e._businessRange,a=o.minVisible,r=o.maxVisible,s=n+t.canvasLength/2,l=void 0;if(a<0&&r>0&&a!==r&&(l=e.translate(0,1)),!v(l)){var u=o.invert^(a<0&&r<=0);l=e._options.isHorizontal?u?i:n:u?n:i}e.sc={canvas_position_default:l,canvas_position_left:n,canvas_position_top:n,canvas_position_center:s,canvas_position_middle:s,canvas_position_right:i,canvas_position_bottom:i,canvas_position_start:t.invert?i:n,canvas_position_end:t.invert?n:i}},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 x(this.from(t.min)-(v(n)?n:this.from(t.max)))},checkMinBarSize:function(e,t,n){return x(e)<t?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=this.to(r?n.endValue:n.startValue),c=this.to(r?n.startValue:n.endValue),d=void 0,h=void 0;return u>s&&(l-=s-u,s=u,d=r?n.endValue:n.startValue),c<l&&(s-=l-c,l=c,h=r?n.startValue:n.endValue),c-u<l-s&&(s=u,l=c),e=(a-o)*s/(l-s)-o,t=(o+e)/s||1,d=v(d)?d:y(this.from(s,1)),h=v(h)?h:y(this.from(l,-1)),d>h?(d=d>n.endValue?n.endValue:d,h=h<n.startValue?n.startValue:h):(d=d<n.startValue?n.startValue:d,h=h>n.endValue?n.endValue:h),{min:d,max:h,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():x(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(146),c=u.formatValue,d=u.getSampleText,h=n(10).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,t,n=this,o=n._getTextCloudOptions(),a=c(n._actualValue,n._options.text);n._text.attr({text:a}),e=n._text.getBBox(),t=i({x:o.x,y:o.y,textWidth:e.width||a.length*n._textUnitWidth,textHeight:e.height||n._textHeight,horMargin:n._options.horizontalOffset,verMargin:n._options.verticalOffset,tailLength:n._options.arrowLength,type:o.type}),n._text.attr({x:t.cx,y:t.cy+n._textVerticalOffset}),n._cloud.attr({points:t.points}),n._trackerElement&&n._trackerElement.attr({points:t.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,n=this,i=n._options,o=n._translator;n._setBarSides(),n._startPosition=o.translate(o.getDomainStart()),n._endPosition=o.translate(o.getDomainEnd()),n._basePosition=o.translate(i.baseValue),n._space=n._getSpace(),e=i.backgroundColor||"none","none"!==e&&n._space>0?t=i.containerBackgroundColor||"none":(n._space=0,t="none"),n._backItem1.attr({fill:e}),n._backItem2.attr({fill:e}),n._spaceItem1.attr({fill:t}),n._spaceItem2.attr({fill:t})},_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(10).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(11),u=n(19).name,c=n(24).down,d=n(24).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.length<t;)e+="0";return e}function c(e,t,n){if(!t.length)return e;for(var i=[],o=0;e;){var a=t[o];i.push(e.slice(0,a)),e=e.slice(a),o<t.length-1&&o++}return i.join(n)}function d(e,t){return e.split(b).map(function(e,n){var i=n%2;return!e&&i?b:i?e:e.replace(/[,#0]+/,t)}).join("")}function h(e){for(var t=!1,n=0;n<e.length;n++)if("'"===e[n]&&(t=!t),"."===e[n]&&!t)return n;return e.length}function p(e,t){return t=t||x,function(n){if("number"!=typeof n||isNaN(n))return"";var p=o(e),f=1/n===1/0,g=n>0||f,_=p[g?0:1];r(_)&&(n=100*n),g||(n=-n);var m=h(_),x=[_.substr(0,m),_.substr(m+1)],b=l(x[1]),C=b+s(x[1]),k=l(x[0]),S=s(x[0])?void 0:k,I=Math.floor(n).toString().length,T=v(C,0,w-I),D=i(x[0]).reverse(),E=y(n,T<0?0:T).split("."),A=u(a(E[0]),k,S),O=u(E[1],b,C);A=c(A,D,t.thousandsSeparator);var B=a(d(a(x[0]),A)),P=C?d(x[1],O):"",M=B+(P.match(/\d/)?t.decimalSeparator:"")+P;return M}}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(29).fitIntoRange,y=n(217).toFixed,x={thousandsSeparator:",",decimalSeparator:"."},b="'",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(179),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,r=this,s=[];return n=n||{},a=this._prepareElementAnimationConfig(t,n,o),a&&e.each(function(){var e=r._createAnimation(i(this),a,n);e&&(e.element.addClass(g),e.setup(),s.push(e))}),s},_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<e.length;t++)e[t].start()},_stopAnimations:function(e){for(var t=this._animations,n=0;n<t.length;n++)t[n].stop(e)},_clearAnimations:function(){for(var e=this._animations,t=0;t<e.length;t++)e[t].element.removeClass(g);this._animations.length=0},reset:function(){this._accumulatedDelays.enter=0,this._accumulatedDelays.leave=0,this._clearAnimations(),this._completeDeferred=new p,this._completePromise=this._completeDeferred.promise()},enter:function(e,t,n){var i=this._createAnimations(e,t,n,"enter");this._animations.push.apply(this._animations,i)},leave:function(e,t,n){var i=this._createAnimations(e,t,n,"leave");this._animations.push.apply(this._animations,i)},start:function(){var e,t=this;if(this._animations.length){var n=l.map(this._animations,function(e){var t=new p;return e.deferred.always(function(){t.resolve()}),t.promise()});e=h.apply(i,n).always(function(){t._completeDeferred.resolve(),t.reset()}),r.executeAsync(function(){t._startAnimations()})}else t.reset(),e=(new p).resolve().promise();return e},stop:function(e){this._stopAnimations(e)}});t.TransitionExecutor=_},function(e,t,n){var i=n(5);t.on=i.on,t.one=i.one,t.off=i.off,t.trigger=i.trigger,t.triggerHandler=i.triggerHandler,t.Event=i.Event},function(e,t,n){var i=n(15),o=n(468),a=n(469),r=n(0).extend,s=n(4).noop,l=n(1).isDefined,u=n(6).Deferred;e.exports=i.inherit({ctor:function(e){this.options=r(this._getDefaultOptions(),e,{selectedItemKeys:e.selectedKeys||[]}),this._selectionStrategy=this.options.deferred?new o(this.options):new a(this.options),this._focusedItemIndex=-1,this.options.equalByReference||this._selectionStrategy.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_getDefaultOptions:function(){return{deferred:!1,equalByReference:!1,mode:"multiple",selectedItems:[],selectionFilter:[],maxFilterLengthInRequest:0,onSelectionChanged:s,key:s,keyOf:function(e){return e},load:function(){return(new u).resolve([])},totalCount:function(){return-1},isSelectableItem:function(){return!0},isItemSelected:function(){return!1},getItemData:function(e){return e},dataFields:s,filter:s}},validate:function(){this._selectionStrategy.validate()},getSelectedItemKeys:function(){return this._selectionStrategy.getSelectedItemKeys()},getSelectedItems:function(){return this._selectionStrategy.getSelectedItems()},selectionFilter:function(e){if(void 0===e)return this.options.selectionFilter;var t=this.options.selectionFilter!==e&&JSON.stringify(this.options.selectionFilter)!==JSON.stringify(e);this.options.selectionFilter=e,t&&this.onSelectionChanged()},setSelection:function(e){return this.selectedItemKeys(e)},select:function(e){return this.selectedItemKeys(e,!0)},deselect:function(e){return this.selectedItemKeys(e,!0,!0)},selectedItemKeys:function(e,t,n,i){var o=this;return e=e||[],e=Array.isArray(e)?e:[e],o.validate(),this._selectionStrategy.selectedItemKeys(e,t,n,i)},clearSelection:function(){return this.selectedItemKeys([])},_addSelectedItem:function(e,t){this._selectionStrategy.addSelectedItem(t,e)},_removeSelectedItem:function(e){this._selectionStrategy.removeSelectedItem(e)},_setSelectedItems:function(e,t){this._selectionStrategy.setSelectedItems(e,t)},onSelectionChanged:function(){this._selectionStrategy.onSelectionChanged()},changeItemSelection:function(e,t){var n,i=this.options.plainItems(),o=i[e];if(!this.isSelectable()||!this.isDataItem(o))return!1;var a=this.options.getItemData(o),r=this.options.keyOf(a);if(t=t||{},t.shift&&"multiple"===this.options.mode&&this._focusedItemIndex>=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._focusedItemIndex<this._shiftFocusedItemIndex?1:-1,i=this._focusedItemIndex;i!==this._shiftFocusedItemIndex;i+=n)this.isDataItem(t[i])&&(h=a(this.options.getItemData(t[i])),this._removeSelectedItem(h),o=!0);if(e!==this._shiftFocusedItemIndex)for(n=e<this._shiftFocusedItemIndex?1:-1,i=e;i!==this._shiftFocusedItemIndex;i+=n)this.isDataItem(t[i])&&(d=this.options.getItemData(t[i]),h=a(d),this._addSelectedItem(d,h),o=!0);return this.isDataItem(r)&&!c&&(this._addSelectedItem(s,u),o=!0),o},clearSelectedItems:function(){this._setSelectedItems([],[])},selectAll:function(e){return this._resetFocusedItemIndex(),e?this._onePageSelectAll(!1):this.selectedItemKeys([],!0,!1,!0)},deselectAll:function(e){return this._resetFocusedItemIndex(),e?this._onePageSelectAll(!0):this.selectedItemKeys([],!0,!0,!0)},_onePageSelectAll:function(e){for(var t=this.options.plainItems(),n=0;n<t.length;n++){var i=t[n];if(this.isDataItem(i)){var o=this.options.getItemData(i),a=this.options.keyOf(o),r=this.isItemSelected(a);r||e||this._addSelectedItem(o,a),r&&e&&this._removeSelectedItem(a)}}return this.onSelectionChanged(),(new u).resolve()},getSelectAllState:function(e){return this._selectionStrategy.getSelectAllState(e)}})},function(e,t,n){var i=n(4).getKeyHash,o=n(4).equalByValue,a=n(1),r=function(e,t){this.getLocalFilter=function(e,t,n,i){return t=void 0===t?o:t,l.bind(this,t,e,n,i)},this.getExpr=function(n){if(n){var i;return e.forEach(function(e,o){i=i||[];var r;o>0&&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<e.length;t++)n[i(e[t])]=!0}return n},s=function(e,t,n){return Array.isArray(n)?e.map(function(e){return t(e)}):e},l=function(n,o,l,u,c){var d,h,p=o(c);if(!l&&(d=i(p),!a.isObject(d))){var f=r(s(e,o,u));return f[d]?!t:!!t}for(h=0;h<e.length;h++)if(n(e[h],p))return!t;return!!t},u=function(e,n){if(void 0!==n)return[e,t?"<>":"=",n]},c=function(e,n){for(var i=[],o=0,a=e.length;o<a;o++){var r=e[o],s=n&&n[r],l=u(r,s);if(!l)break;o>0&&i.push(t?"or":"and"),i.push(l)}return i}};t.SelectionFilterCreator=r},function(e,t,n){var i=n(29),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 x=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)}},b=function(e){var t=e.pointers;return x(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){
39this._accept(e);var t=b(e);this._startVector=t,this._prevVector=t,this._fireEventAliases(g,e)},move:function(e){var t=b(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;t<e.length;t++)clearTimeout(e[t]);delete this._asyncTemplatesTimers}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=function(e){return Array.isArray(e)&&e.every(function(e){var t=2===Object.keys(e).length,n="key"in e&&"items"in e;return t&&n&&Array.isArray(e.items)})};t.default={_getSpecificDataSourceOption:function(){var e="key",t=this.option("dataSource"),n=!1,a={};return this._getGroupedOption()&&o(t)&&(a=t.reduce(function(t,o){var a=o.items.map(function(t){return(0,i.isObject)(t)||(t={text:t},n=!0),e in t||(t[e]=o.key),t});return t.concat(a)},[]),t={store:{type:"array",data:a},group:{selector:"key",keepInitialKeyOrder:!0}},n&&(t.searchExpr="text")),t}}},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(57),u=i(l),c=n(4),d=n(43),h=i(d),p=n(7),f=n(3),g=n(6),_=n(137),m=n(20),v=(0,p.getWindow)(),y="chunk",x=function(e){function t(e){o(this,t),e=(0,c.ensureDefined)(e,{});var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._endpointUrl=e.endpointUrl,n._hasSubDirsGetter=(0,m.compileGetter)(e.hasSubDirectoriesExpr||"hasSubDirectories"),n}return r(t,e),s(t,[{key:"getItems",value:function(e,t){return this._getItems(e,t)}},{key:"renameItem",value:function(e,t){return this._executeRequest("Rename",{id:e.relativeName,name:t})}},{key:"createFolder",value:function(e,t){return this._executeRequest("CreateDir",{parentId:e.relativeName,name:t})}},{key:"deleteItems",value:function(e){var t=this;return e.map(function(e){return t._executeRequest("Remove",{id:e.relativeName})})}},{key:"moveItems",value:function(e,t){var n=this;return e.map(function(e){return n._executeRequest("Move",{sourceId:e.relativeName,destinationId:t.relativeName+"/"+e.name})})}},{key:"copyItems",value:function(e,t){var n=this;return e.map(function(e){return n._executeRequest("Copy",{sourceId:e.relativeName,destinationId:t.relativeName+"/"+e.name})})}},{key:"initiateFileUpload",value:function(e){e.customData.uploadId=new h.default}},{key:"uploadFileChunk",value:function(e,t){var n={destinationId:e.destinationFolder.relativeName,chunkMetadata:JSON.stringify({UploadId:e.customData.uploadId,FileName:e.file.name,Index:t.index,TotalCount:e.totalChunkCount,FileSize:e.file.size})},i=new v.FormData;i.append(y,t.blob),i.append("arguments",JSON.stringify(n)),i.append("command","UploadChunk");var o=new g.Deferred;return u.default.sendRequest({url:this._endpointUrl,method:"POST",dataType:"json",data:i,upload:{onprogress:c.noop,onloadstart:c.noop,onabort:c.noop},cache:!1}).then(function(e){!e.success&&o.reject(e)||o.resolve()},function(e){return o.reject(e)}),o.promise()}},{key:"abortFileUpload",value:function(e){return this._executeRequest("AbortUpload",{uploadId:e.customData.uploadId})}},{key:"_getItems",value:function(e,t){var n=this;return this._getEntriesByPath(e).then(function(i){return n._convertDataObjectsToFileItems(i.result,e,t)})}},{key:"_getItemsIds",value:function(e){return e.map(function(e){return e.relativeName})}},{key:"_getEntriesByPath",value:function(e){return this._executeRequest("GetDirContents",{parentId:e})}},{key:"_executeRequest",value:function(e,t){var n=this._getQueryString({command:e,arguments:JSON.stringify(t)}),i="GetDirContents"===e?"GET":"POST",o=new g.Deferred;return u.default.sendRequest({url:this._endpointUrl+"?"+n,method:i,dataType:"json",cache:!1}).then(function(e){!e.success&&o.reject(e)||o.resolve(e)},function(e){return o.reject(e)}),o.promise()}},{key:"_getQueryString",value:function(e){for(var t=[],n=Object.keys(e),i=0;i<n.length;i++){var o=n[i],a=e[o];if(void 0!==a)if(null===a&&(a=""),Array.isArray(a))this._processQueryStringArrayParam(o,a,t);else{var r=this._getQueryStringPair(o,a);t.push(r)}}return t.join("&")}},{key:"_processQueryStringArrayParam",value:function(e,t,n){var i=this;(0,f.each)(t,function(t,o){var a=i._getQueryStringPair(e,o);n.push(a)})}},{key:"_getQueryStringPair",value:function(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(t)}},{key:"_hasSubDirs",value:function(e){var t=this._hasSubDirsGetter(e);return"boolean"!=typeof t||t}}]),t}(_.FileProvider);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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(57),u=i(l),c=n(6),d=n(4),h=n(137),p="id,name,folder,lastModifiedDateTime,size,parentReference",f="https://graph.microsoft.com/",g=f+"v1.0/drive",_=g+"/special/approot",m=function(e){function t(e){o(this,t),e=e||{},e.dateModifiedExpr="lastModifiedDateTime",e.isDirectoryExpr="folder";var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._getAccessTokenUrl=e.getAccessTokenUrl||"",n._accessToken="",n._accessTokenPromise=null,n}return r(t,e),s(t,[{key:"getItems",value:function(e,t){return this._getItems(e,t)}},{key:"initiateFileUpload",value:function(e){var t=this,n=e.destinationFolder.relativeName,i=e.file.name,o=e.customData;return this._ensureAccessTokenAcquired().then(function(){return t._createFile(n,i)}).then(function(e){return t._initiateUploadSession(e.id).done(function(e){o.uploadUrl=e.uploadUrl})})}},{key:"uploadFileChunk",value:function(e,t){var n=e.customData,i=e.uploadedBytesCount,o=e.file,a=t.blob,r=t.size;return this._uploadFileChunk(n.uploadUrl,a,r,i,o.size)}},{key:"abortFileUpload",value:function(e){var t=this;return this._ensureAccessTokenAcquired().then(function(){return t._cancelUploadSession(e.customData.uploadUrl)})}},{key:"_getItems",value:function(e,t){var n=this;return this._ensureAccessTokenAcquired().then(function(){return n._getEntriesByPath(e)}).then(function(i){return n._convertDataObjectsToFileItems(i.children,e,t)})}},{key:"_ensureAccessTokenAcquired",value:function(){var e=this;if(this._accessTokenPromise)return this._accessTokenPromise;var t=new c.Deferred;return this._accessToken?t.resolve():u.default.sendRequest({url:this._getAccessTokenUrl,dataType:"json"}).done(function(n){var i=n.token;e._accessToken=i,e._accessTokenPromise=null,t.resolve()}),this._accessTokenPromise=t.promise(),this._accessTokenPromise}},{key:"_getEntriesByPath",value:function(e){var t=this._prepareItemRelativePath(e),n="?$select="+p+"&$expand=children($select="+p+")",i=_+t+n;return u.default.sendRequest({url:i,dataType:"json",cache:!1,headers:{Authorization:this._authorizationString}})}},{key:"_uploadFileChunk",value:function(e,t,n,i,o){var a=i+n-1,r="bytes "+i+"-"+a+"/"+o;return u.default.sendRequest({url:e,method:"PUT",dataType:"json",data:t,upload:{onprogress:d.noop,onloadstart:d.noop,onabort:d.noop},cache:!1,headers:{Authorization:this._authorizationString,"Content-Range":r}})}},{key:"_initiateUploadSession",value:function(e){var t=g+"/items/"+e+"/createUploadSession";return u.default.sendRequest({url:t,method:"POST",dataType:"json",cache:!1,headers:{Authorization:this._authorizationString}})}},{key:"_createFile",value:function(e,t){var n=this._prepareItemRelativePath(e),i="?$select="+p,o=_+n+"/children"+i,a={name:t,file:{},"@microsoft.graph.conflictBehavior":"rename"},r=JSON.stringify(a);return u.default.sendRequest({url:o,method:"POST",dataType:"json",data:r,cache:!1,headers:{Authorization:this._authorizationString,"Content-Type":"application/json"}})}},{key:"_cancelUploadSession",value:function(e){return u.default.sendRequest({url:e,method:"DELETE",dataType:"json",cache:!1,headers:{Authorization:this._authorizationString}})}},{key:"_prepareItemRelativePath",value:function(e){return""===e?"":":/"+e+":"}},{key:"_hasSubDirs",value:function(e){return Object.prototype.hasOwnProperty.call(e,"folder")&&e.folder.childCount>0}},{key:"_authorizationString",get:function(){return"Bearer "+this._accessToken}}]),t}(h.FileProvider);e.exports=m},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(495),m=i(_),v=n(82),y=i(v),x=n(65),b=i(x),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",M="dx-toolbar-group",R="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),this._synchronizableOptionsForCreateComponent=this._synchronizableOptionsForCreateComponent.filter(function(e){return"disabled"!==e})},_initTemplates:function(){this.callBase();var e=new b.default(function(e,t,n){(0,c.isPlainObject)(t)?(t.text&&e.text(t.text).wrapInner("<div>"),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)("<div>").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)("<div>").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);t<o?(i=i.reverse(),this._alignSectionLabels(i,a,!1)):this._alignSectionLabels(i,a,!0)},_alignSectionLabels:function(e,t,n){for(var i=function(e){return e.getBoundingClientRect().width},o=0;o<e.length;o++){var r,s=(0,a.default)(e[o]),l=Math.ceil(i(e[o]));n&&s.css("maxWidth","inherit");var u=Math.ceil(n?i(e[o]):l);if(!(u<t)){r=n?l+t:l-t,s.css("maxWidth",r);break}r=n?u:0,t-=u,s.css("maxWidth",r)}},_applyCompactMode:function(){var e=this.$element();e.removeClass(R),this.option("compactMode")&&this._getSummaryItemsWidth(this.itemElements(),!0)>e.width()&&e.addClass(R)},_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)("<div>").addClass(M),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(75),r=n(0).extend,s=n(1).isPlainObject,l=n(292),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("<div>").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(11),r=n(5),s=n(47).add,l=n(4),u=n(1),c=n(0).extend,d=n(13).inArray,h=n(24),p=n(9),f=n(60),g=n(31),_="dx-toast",m=_+"-",v=m+"wrapper",y=m+"content",x=m+"message",b=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("<div>").addClass(x).text(this.option("message")).appendTo(this.$content())),this.setAria("role","alert",this._message),d(this.option("type").toLowerCase(),C)>-1&&this.$content().prepend(i("<div>").addClass(b)),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){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(28),s=i(r),l=n(0),u=n(5),c=i(u),d=n(17),h=i(d),p=n(151),f=n(497),g=i(f),_=n(31),m=i(_),v="dx-fa-button-main",y="dx-fa-button-icon-close",x="dx-state-invisible",b=null,w=g.default.inherit({_actionItems:[],_getDefaultOptions:function(){var e={icon:"add",closeIcon:"close",position:{at:"right bottom",my:"right bottom",offset:{x:-16,y:-16}},maxSpeedDialActionCount:5,hint:"",actions:[],visible:!0,activeStateEnabled:!0,hoverStateEnabled:!0,indent:56,childIndent:40,callOverlayRenderShading:!0};return(0,l.extend)(this.callBase(),(0,l.extend)(e,(0,s.default)().floatingActionButtonConfig))},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return m.default.isMaterial()},options:{indent:72,childIndent:56}}])},_render:function(){this.$element().addClass(v),this.callBase(),this._moveToContainer(),this._renderCloseIcon(),this._renderClick()},_renderCloseIcon:function(){this._$closeIcon=this._renderButtonIcon(this._$closeIcon,this._options.closeIcon,y),this._$closeIcon.addClass(x)},_renderClick:function(){this._clickAction=1===this.option("actions").length?this._createActionByOption("onClick"):this._createAction(this._clickHandler),this._setClickAction()},_defaultActionArgs:function(){var e=this.option("actions");return{component:1===e.length?e[0]:this}},_clickHandler:function(){var e=this,t=this._actionItems;t.forEach(function(t){t.toggle(),t.option("visible")&&t._$wrapper.css("position",e._$wrapper.css("position"))}),this._$icon.toggleClass(x),this._$closeIcon.toggleClass(x)},_renderActions:function(){var e=this,t=this.option("actions"),n=t.length-1,i=1;if(this._actionItems.length&&this._actionItems.forEach(function(e){e.dispose(),e.$element().remove()}),t.length!==i)for(var o=0;o<t.length;o++){var r=t[o],s=(0,a.default)("<div>").appendTo((0,p.getSwatchContainer)(r.$element()));c.default.off(s,"click"),c.default.on(s,"click",function(){e._clickHandler()});var l=this.initialOption("indent")+this.initialOption("childIndent")*o,u=30;r._options.position={of:this.$content(),at:"center",my:"center",offset:{x:0,y:-l}},r._options.animation.show.delay=u*o,r._options.animation.hide.delay=u*(n-o),r._options.actionComponent=r,this._actionItems.push(this._createComponent(s,g.default,r._options))}},_setPosition:function(){this._normalizePosition(),this._actions.onPositioned({position:this._renderPosition()})},_optionChanged: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":this._setPosition();break;default:this.callBase(e)}}});t.initAction=function(e){delete e._options.onInitializing;var t=!1;if(b){var n=b.option("actions");if(n.forEach(function(n){if(n._options.id===e._options.id)return t=!0,e}),t)1===n.length?b.option((0,l.extend)({},e._options,{actions:n,visible:!0,position:b._getDefaultOptions().position})):b.option({actions:n,position:b._getDefaultOptions().position});else{if(n.length>=b.option("maxSpeedDialActionCount"))return e.dispose(),void h.default.log("W1014");n.push(e),b.option((0,l.extend)(b._getDefaultOptions(),{actions:n}))}}else{var i=(0,a.default)("<div>").appendTo((0,p.getSwatchContainer)(e.$element()));b=e._createComponent(i,w,(0,l.extend)({},e._options,{actions:[e],visible:!0}))}},t.disposeAction=function(e){if(b){var t=b.option("actions"),n=t.length;t=t.filter(function(t){return t._options.id!==e}),n!==t.length&&(t.length?1===t.length?b.option((0,l.extend)({},t[0]._options,{actions:t,visible:!0,position:b._getDefaultOptions().position})):b.option({actions:t}):(b.dispose(),b.$element().remove(),b=null))}},t.repaint=function(){if(b){var e=1===b.option("actions").length?b.option("actions")[0].option("icon"):b._getDefaultOptions().icon;b.option({actions:b.option("actions"),icon:e,closeIcon:b._getDefaultOptions().closeIcon,position:b._getDefaultOptions().position,maxSpeedDialActionCount:b._getDefaultOptions().maxSpeedDialActionCount})}}},function(e,t,n){var i=n(9),o=n(501);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(11),c=i(u),d=l.default.msie||l.default.safari,h=function(e){var t=void 0;try{t={start:e.selectionStart,end:e.selectionEnd}}catch(e){t={start:0,end:0}}return t},p=function(e,t){if(c.default.getBody().contains(e))try{e.selectionStart=t.start,e.selectionEnd=t.end}catch(e){}},f=function(e,t){return e=(0,a.default)(e).get(0),(0,r.isDefined)(t)?void(d&&c.default.getActiveElement()!==e||p(e,t)):h(e)};e.exports=f},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")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(5),s=i(r),l=n(8),u=n(13),c=n(12),d="dxMask",h="blur beforedeactivate",p=" ",f=function(){function e(t){o(this,e),this.editor=t,this.DIRECTION={FORWARD:"forward",BACKWARD:"backward"},this.NAME=this._getStrategyName()}return a(e,[{key:"_getStrategyName",value:function(){return"base"}},{key:"editorOption",value:function(){var e;return(e=this.editor).option.apply(e,arguments)}},{key:"editorInput",value:function(){return this.editor._input()}},{key:"editorCaret",value:function(e){return e?void this.editor._caret(e):this.editor._caret()}},{key:"getHandler",value:function(e){var t=this["_"+e+"Handler"]||function(){};return t.bind(this)}},{key:"attachEvents",value:function(){var e=this,t=this.editorInput();this.getHandleEventNames().forEach(function(n){var i=(0,l.addNamespace)(n.toLowerCase(),d);s.default.on(t,i,e.getEventHandler(n))}),this._attachChangeEventHandlers()}},{key:"getHandleEventNames",value:function(){return["focusIn","focusOut","keyDown","input","paste","cut","drop"]}},{key:"getEventHandler",value:function(e){return this["_"+e+"Handler"].bind(this)}},{key:"detachEvents",value:function(){s.default.off(this.editorInput(),"."+d)}},{key:"_attachChangeEventHandlers",value:function(){(0,u.inArray)("change",this.editorOption("valueChangeEvent").split(" "))!==-1&&s.default.on(this.editorInput(),(0,l.addNamespace)(h,d),function(e){this._suppressCaretChanging(this._changeHandler,[e]),this._changeHandler(e)}.bind(this.editor))}},{key:"_focusInHandler",value:function(){if(this.editor._showMaskPlaceholder(),this.editor._direction(this.DIRECTION.FORWARD),!this.editor._isValueEmpty()&&this.editorOption("isValid"))this.editor._adjustCaret();else{var e=this.editor._maskRulesChain.first();this._caretTimeout=setTimeout(function(){this._caret({start:e,end:e})}.bind(this.editor),0)}}},{key:"_focusOutHandler",value:function(e){this.editor._changeHandler(e),"onFocus"===this.editorOption("showMaskMode")&&this.editor._isValueEmpty()&&(this.editorOption("text",""),this.editor._renderDisplayText(""))}},{key:"_cutHandler",value:function(e){var t=this.editorCaret(),n=this.editorInput().val().substring(t.start,t.end);this.editor._maskKeyHandler(e,function(){return(0,c.clipboardText)(e,n),!0})}},{key:"_dropHandler",value:function(){this._clearDragTimer(),this._dragTimer=setTimeout(function(){this.option("value",this._convertToValue(this._input().val()))}.bind(this.editor))}},{key:"_clearDragTimer",value:function(){clearTimeout(this._dragTimer)}},{key:"_pasteHandler",value:function(e){this._keyPressHandled=!0;var t=this.editorCaret();this.editor._maskKeyHandler(e,function(){var n=(0,c.clipboardText)(e),i=this._maskRulesChain.text().substring(t.end),o=this._handleChain({text:n,start:t.start,length:n.length}),a=t.start+o;return this._handleChain({text:i,start:a,length:i.length}),this._caret({start:a,end:a}),!0})}},{key:"_backspaceHandler",value:function(){}},{key:"_delHandler",value:function(e){this._keyPressHandled=!0,this.editor._maskKeyHandler(e,function(){return!this._hasSelection()&&this._handleKey(p),!0})}},{key:"clean",value:function(){this._clearDragTimer(),clearTimeout(this._backspaceHandlerTimeout),clearTimeout(this._caretTimeout)}}]),e}();t.default=f},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(510),u=i(l),c=n(14),d=n(511),h=i(d),p=n(242),f=i(p),g="dx-list-item-selected",_="dx-list-item-response-wait",m=f.default.inherit({_supportedKeys:function(){var e=this,t=this.callBase(),n=function(t){e.option("allowItemDeleting")&&(t.preventDefault(),e.deleteItem(e.option("focusedElement")))},i=function(n){var i=e._editStrategy.getNormalizedIndex(e.option("focusedElement"));if(n.shiftKey&&e.option("allowItemReordering")){n.preventDefault();var o=e._editStrategy.getItemElement(i-1);e.reorderItem(e.option("focusedElement"),o),e.scrollToItem(e.option("focusedElement"))}else{if(0===i&&this._editProvider.handleKeyboardEvents(i,!1))return;this._editProvider.handleKeyboardEvents(i,!0),t.upArrow(n)}},o=function(n){var i=e._editStrategy.getNormalizedIndex(e.option("focusedElement")),o=i===this._getLastItemIndex();if(!o||!this._isDataSourceLoading())if(n.shiftKey&&e.option("allowItemReordering")){n.preventDefault();var a=e._editStrategy.getItemElement(i+1);e.reorderItem(e.option("focusedElement"),a),e.scrollToItem(e.option("focusedElement"))}else{if(o&&this._editProvider.handleKeyboardEvents(i,!1))return;this._editProvider.handleKeyboardEvents(i,!0),t.downArrow(n)}},a=function(e){this._editProvider.handleEnterPressing()||t.enter.apply(this,arguments)},r=function(e){this._editProvider.handleEnterPressing()||t.space.apply(this,arguments)};return(0,s.extend)({},t,{del:n,upArrow:i,downArrow:o,enter:a,space:r})},_updateSelection:function(){this._editProvider.afterItemsRendered(),this.callBase()},_getLastItemIndex:function(){return this._itemElements().length-1},_refreshItemElements:function(){
40this.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(139),s=r.abstract,l=n(8),u=n(24),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",x="dx-list-switchable-delete-item-content-shield",b="dx-list-switchable-delete-button-container",w=r.inherit({_init:function(){this._$topShield=i("<div>").addClass(m),this._$bottomShield=i("<div>").addClass(v),this._$itemContentShield=i("<div>").addClass(x),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("."+b)},_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){var i=n(2),o=n(11),a=n(5),r=n(47).add,s=n(27),l=n(18),u=n(8),c=n(4),d=n(1).isPlainObject,h=n(0).extend,p=n(24),f="dxScrollbar",g="dx-scrollable-scrollbar",_=g+"-active",m="dx-scrollable-scroll",v="dx-scrollable-scroll-content",y="dx-scrollbar-hoverable",x="horizontal",b=15,w={onScroll:"onScroll",onHover:"onHover",always:"always",never:"never"},C=l.inherit({_getDefaultOptions:function(){return h(this.callBase(),{direction:null,visible:!1,activeStateEnabled:!1,visibilityMode:w.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(y,this.option("hoverStateEnabled"))},_renderThumb:function(){this._$thumb=i("<div>").addClass(m),i("<div>").addClass(v).appendTo(this._$thumb),this.$element().addClass(g).append(this._$thumb)},isThumb:function(e){return!!this.$element().find(e).length},_isHoverMode:function(){var e=this.option("visibilityMode");return(e===w.onHover||e===w.always)&&this.option("expandable")},_renderDirection:function(){var e=this.option("direction");this.$element().addClass("dx-scrollbar-"+e),this._dimension=e===x?"width":"height",this._prop=e===x?"left":"top"},_attachPointerDownHandler:function(){a.on(this._$thumb,u.addNamespace(p.down,f),this.feedbackOn.bind(this))},feedbackOn:function(){this.$element().addClass(_),k=this},feedbackOff:function(){this.$element().removeClass(_),k=null},cursorEnter:function(){this._isHovered=!0,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")===w.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.containerToContentRatio()&&!this._needScrollbar())return!1;switch(this.option("visibilityMode")){case w.onScroll:break;case w.onHover:e=e||!!this._isHovered;break;case w.never:e=!1;break;case w.always:e=!0}return e},moveTo:function(e){if(!this._isHidden()){d(e)&&(e=e[this._prop]||0);var t={};t[this._prop]=this._calculateScrollBarPosition(e),s.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"));this._containerToContentRatio=t?e/t:e;var n=Math.round(Math.max(Math.round(e*this._containerToContentRatio),b));this._thumbRatio=(e-n)/(this.option("scaleRatio")*(t-e)),this.option(this._dimension,n/this.option("scaleRatio")),this.$element().css("display",this._needScrollbar()?"":"none")},_isHidden:function(){return this.option("visibilityMode")===w.never},_needScrollbar:function(){return!this._isHidden()&&this._containerToContentRatio<1},containerToContentRatio:function(){return this._containerToContentRatio},_normalizeSize:function(e){return d(e)?e[this._dimension]||0:e},_clean:function(){this.callBase(),this===k&&(k=null),a.off(this._$thumb,"."+f)},_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"visibilityMode":case"direction":this._invalidate();break;case"scaleRatio":this._update();break;default:this.callBase.apply(this,arguments)}},update:c.deferRenderer(function(){this._adjustVisibility()&&this.option("visible",!0)})}),k=null;r(function(){a.subscribeGlobal(o.getDocument(),u.addNamespace(p.up,f),function(){k&&k.feedbackOff()})}),e.exports=C},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(11),u=i(l),c=n(5),d=i(c),h=n(32),p=n(0),f=n(7),g=n(3),_=n(1),m=n(27),v=i(m),y=n(15),x=i(y),b=n(302),w=i(b),C=n(16),k=i(C),S=n(8),I=n(4),T=n(300),D=i(T),E=n(6),A=k.default.real,O="win"===A.platform||"android"===A.platform,B="dxSimulatedScrollable",P="dxScrollableStrategy",M=B+"Cursor",R=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=20,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"},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=x.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)("<div>").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=t/n}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=void 0,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&&t>=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();(0,I.deferRender)(function(){e._scrollbar.option({containerSize:t,contentSize:n,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._scrollbar.cursorEnter()},_cursorLeaveHandler:function(){this._scrollbar.cursorLeave()},dispose:I.noop}),ne=x.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.delta),this._eventForUserAction=e,void this._eventHandler("move",e.delta))},_adjustDistance:function(e){e.x*=this._validDirections[N],e.y*=this._validDirections[z]},handleEnd:function(e){return this._resetActive(),this._refreshCursorState(e.originalEvent&&e.originalEvent.target),this._adjustDistance(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,"."+R),!this.option("disabled")&&this.option("useKeyboard")&&d.default.on(this._$element,(0,S.addNamespace)("keydown",R),this._keyDownHandler.bind(this))},_keyDownHandler:function(e){if(this._$container.is(u.default.getActiveElement())){var t=!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:t=!1}t&&(e.stopPropagation(),e.preventDefault())}},_scrollByLine:function(e){this.scrollBy({top:(e.y||0)*-q,left:(e.x||0)*-q})},_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=this,n=arguments,i=this._createActionByOption(e);return"onScroll"===e&&(i=this._createActionByOption("onScroll",{afterExecute:function(){clearTimeout(t._updateHandlerTimeout),t._updateHandlerTimeout=setTimeout(function(){t._eachScroller(function(e){e._update()})})}})),function(){i((0,p.extend)(t._createActionArgs(),n))}},_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,"."+M),!this.option("disabled")&&this._isHoverMode()&&(d.default.on(this._$element,(0,S.addNamespace)("mouseenter",M),this._cursorEnterHandler.bind(this)),d.default.on(this._$element,(0,S.addNamespace)("mouseleave",M),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("."+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("."+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,"."+M),d.default.off(this._$container,"."+R)}});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){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()}}}()),x=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,
41this._locked=this._locked&&!n}}}()),b=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)&&(b=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 b(e),this._wheelLocker=new x(e)},validate:function(){return!0},configure:function(e){e.scrollTarget&&(this._pointerLocker.dispose(),this._wheelLocker.dispose(),this._pointerLocker=new b(e.scrollTarget),this._wheelLocker=new x(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<e){var a=r.eventDelta(this._savedEventData,this._prevEventData),s=n/a.time;o={x:a.x*s,y:a.y*s}}this._fireEvent(g,t,{velocity:o})},_stop:function(e){this._fireEvent(_,e)},cancel:function(e){this.callBase.apply(this,arguments),this._fireEvent(m,e)},dispose:function(){this.callBase.apply(this,arguments),this._pointerLocker.dispose(),this._wheelLocker.dispose()},_clearSelection:function(){if(!this.isNative)return this.callBase.apply(this,arguments)},_toggleGestureCover:function(){if(!this.isNative)return this.callBase.apply(this,arguments)}}}());l({emitter:w,events:[h,p,f,g,_,m]}),e.exports={init:h,start:p,move:f,end:g,stop:_,cancel:m}},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<d+l;h++){var p=t[h],f=h-l+u,g=e[f],_=!p||g&&!a(g,t,s,n);if(_)g&&(c.push({type:"remove",key:n(g),index:h,oldItem:g}),u++,h--);else{var m=o(p,n),v=r[m],y=e[v];if(y){if(v!==f)return;i(y,p)||c.push({type:"update",data:p,key:n(p),index:h,oldItem:y})}else l++,c.push({type:"insert",data:p,index:h})}}return c}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(18),s=i(r),l=n(34),u=i(l),c=n(54),d=i(c),h=n(9),p=i(h),f=n(0),g=n(1),_=n(65),m=i(_),v="dx-buttongroup",y=v+"-wrapper",x=v+"-item",b=v+"-first-item",w=v+"-last-item",C=x+"-has-width",k="dx-shape-standard",S=d.default.inherit({_renderItemContent:function(e){e.container=(0,a.default)(e.container).parent(),this.callBase(e)},_focusTarget:function(){return this.$element().parent()},_keyboardEventBindingTarget:function(){return this._focusTarget()},_refreshContent:function(){this._prepareContent(),this._renderContent()},_itemClass:function(){return x},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)}}),I=s.default.inherit({_getDefaultOptions:function(){return(0,f.extend)(this.callBase(),{hoverStateEnabled:!0,focusStateEnabled:!0,selectionMode:"single",selectedItems:[],selectedItemKeys:[],stylingMode:"contained",keyExpr:"text",items:[],itemTemplate:"item",onSelectionChanged:null,onItemClick:null})},_prepareItemStyles:function(e){var t=e.data("dxItemIndex");0===t&&e.addClass(b);var n=this.option("items");n&&t===n.length-1&&e.addClass(w),e.addClass(k)},_initTemplates:function(){var e=this;this.callBase(),this._defaultTemplates.item=new m.default(function(t,n,i){e._prepareItemStyles(t),e._createComponent(t,u.default,(0,f.extend)({},i,n,e._getBasicButtonOptions()))},["text","type","icon","disabled","visible","hint"],this.option("integrationOptions.watchMethod"))},_init:function(){this.callBase(),this._createItemClickAction()},_createItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initMarkup:function(){this.setAria("role","group"),this.$element().addClass(v),this._renderButtons(),this._syncSelectionOptions(),this.callBase()},_fireSelectionChangeEvent:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:e,removedItems:t})},_getBasicButtonOptions:function(){return{focusStateEnabled:!1,stylingMode:this.option("stylingMode"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),onClick:null}},_renderButtons:function(){var e=this,t=(0,a.default)("<div>").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.$element().find("."+x).toggleClass(C,!!e.value);break;default:this.callBase(e)}}});(0,p.default)("dxButtonGroup",I),e.exports=I},function(e,t,n){e.exports=n(531)},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",x="dx-colorview-palette",b="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",M="dx-colorview-label-hex",R="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("<div>").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<a;r++)s.push(i("<div>").addClass(v));if(n)for(r=0;r<s.length;r++)t.eq(0).after(s[r]);else this._$colorPickerContainer.append(s)}},_renderHtmlCellInsideRow:function(e,t,n){return i("<div>").addClass(y).addClass(n).appendTo(t.find("."+v).eq(e))},_renderPalette:function(){var e=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,b),t=i("<div>").addClass([C,k].join(" ")),n=i("<div>").addClass([C,S].join(" "));this._$palette=i("<div>").addClass(x).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("<div>").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("<div>").addClass(E).appendTo(e),this._$hueScale=i("<div>").addClass(I).appendTo(this._$hueScaleWrapper),this._hueScaleHeight=this._$hueScale.height(),this._hueScaleWrapperHeight=this._$hueScaleWrapper.outerHeight(),this._renderHueScaleHandle()},_renderHueScaleHandle:function(){this._$hueScaleHandle=i("<div>").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<n+t&&(n=e-t),n<0&&(n=0),a.move(this._$hueScaleHandle,{top:Math.round(n)})},_updateColorHue:function(e){var t=360-Math.round(360*(e-this._hueScaleHandleHeight/2)/(this._hueScaleWrapperHeight-this._hueScaleHandleHeight)),n=this._currentColor.hsv.s,i=this._currentColor.hsv.v;this._isTopColorHue=!1,t=t<0?0:t,t>=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("<div>").addClass(A).appendTo(e)},_renderControls:function(){this._renderColorsPreview(),this._renderRgbInputs(),this._renderHexInput()},_renderColorsPreview:function(){var e=i("<div>").addClass(W).appendTo(this._$controlsContainer),t=i("<div>").addClass(G).appendTo(e);this._$currentColor=i("<div>").addClass([$,q].join(" ")),this._$baseColor=i("<div>").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("<div>"),n=i("<label>").addClass(e.labelClass).text(e.labelText+":").append(t);o.off(n,g.name),o.on(n,g.name,function(e){e.preventDefault()});var a=e.editorType,s=r({value:e.value,onValueChanged:e.onValueChanged},{stylingMode:this.option("stylingMode")});a===h&&(s.min=e.min||0,s.max=e.max||255,s.step=e.step||1);var l=new a(t,s);return l.registerKeyHandler("enter",function(e){this._fireEnterKeyPressed(e)}.bind(this)),this.setAria("label",e.labelAriaText,t),n},hexInputOptions:function(){return{editorType:p,value:this._currentColor.toHex().replace("#",""),onValueChanged:this._updateColor.bind(this,!0),labelClass:M,labelText:"#",labelAriaText:l.format("dxColorView-ariaHex")}},_renderHexInput:function(){this._hexInput=p.getInstance(this._renderEditorWithLabel(this.hexInputOptions()).appendTo(this._$controlsContainer).find(".dx-textbox"))},_renderAlphaChannelScale:function(){var e=this._renderHtmlCellInsideRow(1,this._$colorPickerContainer,z),t=i("<div>").addClass(N).appendTo(e),n=i("<div>").addClass(F).appendTo(t);this._$alphaChannelScale=i("<div>").addClass(R).appendTo(n),this._makeCSSLinearGradient(this._$alphaChannelScale),this._renderAlphaChannelHandle(e)},_makeCSSLinearGradient:function(e){var t=this._currentColor,n=[t.r,t.g,t.b].join(","),i=t.toHex().replace("#",""),o=function(e,t){var n=this.option("rtlEnabled"),i="rgba("+e+", "+(n?"1":"0")+")",o="rgba("+e+", "+(n?"0":"1")+")",a="'#"+(n?"00":"")+t+"'",r="'#"+(n?"":"00")+t+"'";return["background-image: -webkit-linear-gradient(180deg, "+i+", "+o+")","background-image: -moz-linear-gradient(-90deg, "+i+", "+o+")","background-image: -o-linear-gradient(-90deg, "+i+", "+o+")","background-image: linear-gradient(-90deg, "+i+", "+o+")","filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr="+a+", endColorstr="+r+")"].join(";")};e.attr("style",o.call(this,n,i))},_renderAlphaChannelInput:function(){var e=this,t=this._renderHtmlCellInsideRow(1,this._$colorPickerContainer);e._alphaChannelInput=this._renderEditorWithLabel({editorType:h,value:this._currentColor.a,max:1,step:.1,onValueChanged:function(t){var n=t.value;n=e._currentColor.isValidAlpha(n)?n:e._currentColor.a,e._updateColorTransparency(n),e._placeAlphaChannelHandle()},labelClass:L,labelText:"Alpha",labelAriaText:l.format("dxColorView-ariaAlpha")}).appendTo(t).find(".dx-numberbox").dxNumberBox("instance")},_updateColorTransparency:function(e){this._currentColor.a=e,this.applyColor()},_renderAlphaChannelHandle:function(e){this._$alphaChannelHandle=i("<div>").addClass(H).appendTo(e),this._createComponent(this._$alphaChannelHandle,f,{area:e,allowMoveByClick:!0,direction:"horizontal",onDrag:function(){this._updateByDrag=!0;var e=this._$alphaChannelHandle,t=a.locate(e).left+this._alphaChannelHandleWidth/2;this._calculateColorTransparencyByScaleWidth(t)}.bind(this)}),this._alphaChannelHandleWidth=this._$alphaChannelHandle.width(),this._alphaChannelScaleWorkWidth=e.width()-this._alphaChannelHandleWidth,this._placeAlphaChannelHandle()},_calculateColorTransparencyByScaleWidth:function(e){var t=(e-this._alphaChannelHandleWidth/2)/this._alphaChannelScaleWorkWidth,n=this.option("rtlEnabled");t=n?t:1-t,e>=this._alphaChannelScaleWorkWidth+this._alphaChannelHandleWidth/2?t=n?1:0:t<1&&(t=t.toFixed(2)),t=Math.max(t,0),t=Math.min(t,1),this._alphaChannelInput.option("value",t)},_placeAlphaChannelHandle:function(){var e=this._alphaChannelScaleWorkWidth*(1-this._currentColor.a);e<0&&(e=0),this._alphaChannelScaleWorkWidth<e&&(e=this._alphaChannelScaleWorkWidth),a.move(this._$alphaChannelHandle,{left:this.option("rtlEnabled")?this._alphaChannelScaleWorkWidth-e:e})},applyColor:function(){var e=this.option("editAlphaChannel")?this._makeRgba(this._currentColor):this._currentColor.toHex();this._makeTransparentBackground(this._$currentColor,this._currentColor),this.option("value",e)},cancelColor:function(){this._initColorAndOpacity(),this._refreshMarkup()},_updateColor:function(e,t){var n,i;e?i=this._validateHex("#"+this._hexInput.option("value")):(n=this._validateRgb(),this._alphaChannelInput?(n.push(this._alphaChannelInput.option("value")),i="rgba("+n.join(", ")+")"):i="rgb("+n.join(", ")+")"),this._suppressEditorsValueUpdating||(this._currentColor=new s(i),this.applyColor(),this._refreshMarkup())},_validateHex:function(e){return this._currentColor.isValidHex(e)?e:this._currentColor.toHex()},_validateRgb:function(){var e=this._rgbInputs[0].option("value"),t=this._rgbInputs[1].option("value"),n=this._rgbInputs[2].option("value");return this._currentColor.isValidRGB(e,t,n)||(e=this._currentColor.r,t=this._currentColor.g,n=this._currentColor.b),[e,t,n]},_refreshMarkup:function(){this._placeHueScaleHandle(),this._placePaletteHandle(),this._updateColorParamsAndColorPreview(),this._$palette.css("backgroundColor",this._currentColor.getPureColor().toHex()),this._$alphaChannelHandle&&(this._updateColorTransparency(this._currentColor.a),this._placeAlphaChannelHandle())},_updateColorParamsAndColorPreview:function(){this._suppressEditorsValueUpdating=!0,this._hexInput.option("value",this._currentColor.toHex().replace("#","")),this._rgbInputs[0].option("value",this._currentColor.r),this._rgbInputs[1].option("value",this._currentColor.g),this._rgbInputs[2].option("value",this._currentColor.b),this._suppressEditorsValueUpdating=!1,this.option("editAlphaChannel")&&(this._makeCSSLinearGradient.call(this,this._$alphaChannelScale),this._alphaChannelInput.option("value",this._currentColor.a))},_optionChanged:function(e){var t=e.value;switch(e.name){case"value":this._setCurrentColor(t),this._updateByDrag||this._refreshMarkup(),this._updateByDrag=!1,this.callBase(e);break;case"matchValue":this._setBaseColor(t);break;case"onEnterKeyPressed":this._initEnterKeyPressedAction();break;case"editAlphaChannel":this._$colorPickerContainer&&(this._renderHtmlRows("editAlphaChannel"),this._renderAlphaChannelElements());break;case"keyStep":break;case"stylingMode":this._renderControls();break;default:this.callBase(e)}}});c("dxColorView",K),e.exports=K},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(5),r=n(45),s=n(9),l=n(27),u=n(32).dasherize,c=n(0).extend,d=n(66),h=n(8),p=n(24),f=n(55),g=n(76),_=n(1).isFunction,m=n(4).noop,v="dxDraggable",y=h.addNamespace(f.start,v),x=h.addNamespace(f.move,v),b=h.addNamespace(f.end,v),w=h.addNamespace(p.down,v),C=u(v),k=C+"-dragging",S=d.inherit({_getDefaultOptions:function(){return c(this.callBase(),{onDragStart:m,onDrag:m,onDragEnd:m,immediate:!0,direction:"both",area:o,boundOffset:0,allowMoveByClick:!1})},_init:function(){this.callBase(),this._attachEventHandlers()},_attachEventHandlers:function(){if(!this.option("disabled")){var e=this.$element().css("position","absolute"),t={},n=this.option("allowMoveByClick");t[y]=this._dragStartHandler.bind(this),t[x]=this._dragHandler.bind(this),t[b]=this._dragEndHandler.bind(this),n&&(t[w]=this._pointerDownHandler.bind(this),e=this._getArea()),a.on(e,t,{direction:this.option("direction"),immediate:this.option("immediate")})}},_detachEventHandlers:function(){a.off(this.$element(),"."+v),a.off(this._getArea(),"."+v)},_move:function(e){l.move(this.$element(),e)},_pointerDownHandler:function(e){if(!h.needSkipEvent(e)){var t=this._getAreaOffset(i(e.currentTarget)),n=this.option("direction"),o={};"horizontal"!==n&&"both"!==n||(o.left=e.pageX-this.$element().width()/2-t.left),"vertical"!==n&&"both"!==n||(o.top=e.pageY-this.$element().height()/2-t.top),this._move(o),this._getAction("onDrag")({event:e})}},_dragStartHandler:function(e){var t=this.$element();if(t.is(".dx-state-disabled, .dx-state-disabled *"))return void(e.cancel=!0);var n=this._getArea(),i=this._getAreaOffset(n),o=this._getBoundOffset(),a=n.outerWidth(),r=n.outerHeight(),s=t.width(),u=t.height();this._toggleDraggingClass(!0);var c={left:t.offset().left-i.left,top:t.offset().top-i.top};this._startPosition=l.locate(t),e.maxLeftOffset=c.left-o.left,e.maxRightOffset=a-c.left-s-o.right,e.maxTopOffset=c.top-o.top,e.maxBottomOffset=r-c.top-u-o.bottom,this._getAction("onDragStart")({event:e})},_getAreaOffset:function(e){var t=e&&g.offset(e);return t?t:{left:0,top:0}},_toggleDraggingClass:function(e){this.$element().toggleClass(k,e)},_getBoundOffset:function(){var e=this.option("boundOffset");return _(e)&&(e=e.call(this)),r.quadToObject(e)},_getArea:function(){var e=this.option("area");return _(e)&&(e=e.call(this)),i(e)},_dragHandler:function(e){var t=e.offset,n=this._startPosition;this._move({left:n.left+t.x,top:n.top+t.y}),this._getAction("onDrag")({event:e})},_dragEndHandler:function(e){this._toggleDraggingClass(!1),this._getAction("onDragEnd")({event:e})},_getAction:function(e){return this["_"+e+"Action"]||this._createActionByOption(e)},_render:function(){this.callBase(),this.$element().addClass(C)},_optionChanged:function(e){var t=e.name;switch(t){case"onDragStart":case"onDrag":case"onDragEnd":this["_"+t+"Action"]=this._createActionByOption(t);break;case"allowMoveByClick":case"direction":case"disabled":this._detachEventHandlers(),this._attachEventHandlers();break;case"boundOffset":case"area":break;default:this.callBase(e)}},_dispose:function(){this.callBase(),this._detachEventHandlers()}});s(v,S),e.exports=S},function(e,t,n){var i=n(245),o=n(194),a=n(22),r=n(4),s=n(1).isFunction,l=n(0).extend,u=n(14),c=o.inherit({NAME:"Calendar",supportedKeys:function(){return{rightArrow:function(){if(this.option("opened"))return!0},leftArrow:function(){if(this.option("opened"))return!0},enter:function(e){if(this.dateBox.option("opened")){if(e.preventDefault(),this._widget.option("zoomLevel")!==this._widget.option("maxZoomLevel"))return!0;var t=this._widget._view.option("contouredDate");t&&this.dateBoxValue(t,e),this.dateBox.close(),this.dateBox._valueChangeEventHandler(e)}else this.dateBox._valueChangeEventHandler(e)}.bind(this)}},getDisplayFormat:function(e){return e||"shortdate"},_getWidgetName:function(){return i},_getWidgetOptions:function(){var e=this.dateBox.option("disabledDates");return l(this.dateBox.option("calendarOptions"),{value:this.dateBoxValue()||null,dateSerializationFormat:null,_keyboardProcessor:this._widgetKeyboardProcessor,min:this.dateBox.dateOption("min"),max:this.dateBox.dateOption("max"),onValueChanged:this._valueChangedHandler.bind(this),onCellClick:this._cellClickHandler.bind(this),tabIndex:null,disabledDates:s(e)?this._injectComponent(e.bind(this.dateBox)):e,onContouredChanged:this._refreshActiveDescendant.bind(this),hasFocus:function(){return!0}})},_injectComponent:function(e){var t=this;return function(n){return l(n,{component:t.dateBox}),e(n)}},_refreshActiveDescendant:function(e){this.dateBox.setAria("activedescendant",e.actionValue)},popupConfig:function(e){var t=e.toolbarItems,n=this.dateBox.option("buttonsLocation"),i=[];return i="default"!==n?r.splitPair(n):["bottom","center"],"useButtons"===this.dateBox.option("applyValueMode")&&t.unshift({widget:"dxButton",toolbar:i[0],location:"after"===i[1]?"before":i[1],options:{onClick:function(){this._widget._toTodayView()}.bind(this),text:u.format("dxCalendar-todayButtonText"),type:"today"}}),l(!0,e,{toolbarItems:t,position:{collision:"flipfit flip"}})},_valueChangedHandler:function(e){var t=this.dateBox,n=e.value,i=e.previousValue;a.sameDate(n,i)||"instantly"===t.option("applyValueMode")&&this.dateBoxValue(this.getValue(),e.event)},_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},textChangedHandler:function(){this.dateBox.option("opened")&&this._widget&&this._updateValue(!0)},_cellClickHandler:function(e){var t=this.dateBox;"instantly"===t.option("applyValueMode")&&(t.option("opened",!1),this.dateBoxValue(this.getValue(),e.event))}});e.exports=c},function(e,t,n){e.exports=n(311)},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(1),u=i(l),c=n(12),d=n(9),h=i(d),p=n(0),f=n(18),g=i(f),_=n(111),m=i(_),v=n(7),y=n(549),x=i(y),b=n(550),w=i(b),C=n(551),k=i(C),S=n(195),I=n(19),T=i(I),D=n(38),E=i(D),A=n(6),O="dx-drawer",B="dx-drawer-wrapper",P="dx-drawer-panel-content",M="dx-drawer-content",R="dx-drawer-shader",V="dx-state-invisible",F="dx-drawer-opened",L="content",H=g.default.inherit({_getDefaultOptions:function(){return(0,p.extend)(this.callBase(),{position:"left",opened:!1,minSize:null,maxSize:null,shading:!1,template:"panel",openedStateMode:"shrink",revealMode:"slide",animationEnabled:!0,animationDuration:400,closeOnOutsideClick:!1,contentTemplate:"content",target:void 0})},_getAnonymousTemplateName:function(){return L},_init:function(){this.callBase(),this._initStrategy(),this.$element().addClass(O),this._animations=[],this._animationPromise=void 0,this._whenPanelRendered=void 0,this._whenPanelRefreshed=void 0,this._initHideTopOverlayHandler(),this._initContentMarkup()},_initStrategy:function(){var e=this.option("openedStateMode"),t=this._getDefaultStrategy();"push"===e&&(t=x.default),"shrink"===e&&(t=w.default),"overlap"===e&&(t=k.default),this._strategy=new t(this)},_initContentMarkup:function(){this._$wrapper=(0,a.default)("<div>").addClass(B),this._$contentWrapper=(0,a.default)("<div>").addClass(M),this._$wrapper.append(this._$contentWrapper),this.$element().append(this._$wrapper)},_getDefaultStrategy:function(){return x.default},_initHideTopOverlayHandler:function(){this._hideMenuHandler=this.hide.bind(this)},_initTemplates:function(){this.callBase(),this._defaultTemplates.panel=new m.default(this),this._defaultTemplates.content=new m.default(this)},_initCloseOnOutsideClickHandler:function(){s.default.off(this._$contentWrapper,T.default.name),s.default.on(this._$contentWrapper,T.default.name,this._outsideClickHandler.bind(this))},_outsideClickHandler:function(e){var t=this.option("closeOnOutsideClick");u.default.isFunction(t)&&(t=t(e)),t&&this.option("opened")&&(this.stopAnimations(),this.option("shading")&&e.preventDefault(),this.hide(),
42this._toggleShaderVisibility(!1))},_initMarkup:function(){this.callBase(),this._toggleVisibleClass(this.option("opened")),this._renderPanelElement(),this._refreshModeClass(),this._refreshRevealModeClass(),this._renderShader(),this._whenPanelRendered=new A.Deferred,this._strategy.renderPanel(this._getTemplate(this.option("template")),this._whenPanelRendered);var e=this.option("contentTemplate"),t=this._getTemplate(e),n=this._getAnonymousTemplateName()===e;t&&t.render({container:this.viewContent(),noModel:!0,transclude:n}),this._initCloseOnOutsideClickHandler(),this._refreshPositionClass()},_render:function(){var e=this;this._initSize(),this.callBase(),this._whenPanelRendered.always(function(){e._initSize(),e._strategy.setPanelSize("slide"===e.option("revealMode")||!e.isHorizontalDirection()),e._renderPosition(e.option("opened"),!1)})},_renderPanelElement:function(){this._$panel=(0,a.default)("<div>").addClass(P),this._$wrapper.append(this._$panel)},_refreshModeClass:function(e){e&&this.$element().removeClass(O+"-"+e),this.$element().addClass(O+"-"+this.option("openedStateMode"))},_refreshPositionClass:function(e){e&&this.$element().removeClass(O+"-"+e);var t=this.getDrawerPosition();this.$element().addClass(O+"-"+t),this._orderContent(t)},_orderContent:function(e){this._strategy.needOrderContent(e,this.option("rtlEnabled"))?this._$wrapper.prepend(this._$contentWrapper):this._$wrapper.prepend(this._$panel)},_refreshRevealModeClass:function(e){e&&this.$element().removeClass(O+"-"+e),this.$element().addClass(O+"-"+this.option("revealMode"))},_renderShader:function(){this._$shader=this._$shader||(0,a.default)("<div>").addClass(R),this._$shader.appendTo(this.viewContent()),this._toggleShaderVisibility(this.option("opened"))},_initSize:function(){var e=this.isHorizontalDirection()?this.getRealPanelWidth():this.getRealPanelHeight();this._maxSize=this.option("maxSize")||e,this._minSize=this.option("minSize")||0},getDrawerPosition:function(){var e=this.option("position"),t=this.option("rtlEnabled");return"before"===e?t?"right":"left":"after"===e?t?"left":"right":e},getOverlayTarget:function(){return this.option("target")||this._$wrapper},getOverlay:function(){return this._overlay},getMaxSize:function(){return this._maxSize},getMinSize:function(){return this._minSize},getRealPanelWidth:function(){return(0,v.hasWindow)()?this.getElementWidth(this._strategy.getPanelContent()):0},getElementWidth:function(e){var t=e.children();return t.length?t.eq(0).get(0).getBoundingClientRect().width:e.get(0).getBoundingClientRect().width},getRealPanelHeight:function(){return(0,v.hasWindow)()?this.getElementHeight(this._strategy.getPanelContent()):0},getElementHeight:function(e){var t=e.children();return t.length?t.eq(0).get(0).getBoundingClientRect().height:e.get(0).getBoundingClientRect().height},isHorizontalDirection:function(){var e=this.getDrawerPosition();return"left"===e||"right"===e},stopAnimations:function(e){E.default.stop(this._$shader,e),E.default.stop((0,a.default)(this.content()),e),E.default.stop((0,a.default)(this.viewContent()),e);var t=this.getOverlay();t&&E.default.stop((0,a.default)(t.$content()),e)},setZIndex:function(e){this._$shader.css("zIndex",e-1),this._$panel.css("zIndex",e)},resizeContent:function(){(0,c.triggerResizeEvent)(this.viewContent())},_isInvertedPosition:function(){var e=this.getDrawerPosition();return"right"===e||"bottom"===e},_renderPosition:function(e,t,n){if(this.stopAnimations(n),this._animations=[],t=u.default.isDefined(t)?t&&this.option("animationEnabled"):this.option("animationEnabled"),(0,v.hasWindow)()){var i=this.option("animationDuration");e&&this._toggleShaderVisibility(e),this._strategy.renderPosition(e,t),this._strategy.renderShaderVisibility(e,t,i)}},_animationCompleteHandler:function(){this.resizeContent(),this._animationPromise&&(this._animationPromise.resolve(),this._animations=[])},_getPositionCorrection:function(){return this._isInvertedPosition()?-1:1},_dispose:function(){S.animation.complete((0,a.default)(this.viewContent())),this.callBase()},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._initSize(),this._strategy.setPanelSize("slide"===this.option("revealMode"))},_toggleShaderVisibility:function(e){this.option("shading")?(this._$shader.toggleClass(V,!e),this._$shader.css("visibility",e?"visible":"hidden")):this._$shader.toggleClass(V,!0)},_toggleVisibleClass:function(e){this.$element().toggleClass(F,e)},_refreshPanel:function(){var e=this;this._setInitialViewContentPosition(),this._cleanPanel(),this._renderPanelElement(),this._orderContent(this.getDrawerPosition()),this._whenPanelRefreshed=new A.Deferred,this._strategy.renderPanel(this._getTemplate(this.option("template")),this._whenPanelRefreshed),(0,v.hasWindow)()&&this._whenPanelRefreshed.always(function(){e._strategy.setPanelSize("slide"===e.option("revealMode")),e._renderPosition(e.option("opened"),!1,!0)})},_setInitialViewContentPosition:function(){(0,a.default)(this.viewContent()).css("paddingLeft",0),(0,a.default)(this.viewContent()).css("left",0),(0,a.default)(this.viewContent()).css("transform","translate(0px, 0px)")},_clean:function(){this._cleanFocusState(),this._cleanPanel()},_cleanPanel:function(){this._$panel.remove(),this._overlay&&(this._overlay.dispose(),delete this._overlay,delete this._$panel)},_optionChanged:function(e){switch(e.name){case"width":this.callBase(e),this._dimensionChanged();break;case"opened":this._renderPosition(e.value),this._toggleVisibleClass(e.value);break;case"position":this._refreshPositionClass(e.previousValue),this._invalidate();break;case"contentTemplate":case"template":this._invalidate();break;case"openedStateMode":case"target":this._initStrategy(),this._refreshModeClass(e.previousValue),this._refreshPanel();break;case"minSize":case"maxSize":this._initSize(),this._renderPosition(this.option("opened"),!1);break;case"revealMode":this._refreshRevealModeClass(e.previousValue),this._refreshPanel();break;case"shading":this._toggleShaderVisibility(this.option("opened"));break;case"animationEnabled":case"animationDuration":case"closeOnOutsideClick":break;default:this.callBase(e)}},content:function(){return(0,c.getPublicElement)(this._$panel)},viewContent:function(){return(0,c.getPublicElement)(this._$contentWrapper)},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},toggle:function(e){return e=void 0===e?!this.option("opened"):e,this._animationPromise=new A.Deferred,this.option("opened",e),this._animationPromise.promise()}});(0,h.default)("dxDrawer",H),e.exports=H},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")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(43),s=i(r),l=n(3),u=function(){function e(){o(this,e),this._map={}}return a(e,[{key:"_findWidgetInstance",value:function(e){var t;return(0,l.each)(this._map,function(n,i){var o=i.widgetInstance,a=i.item;if(e(a))return t=o,!1}),t}},{key:"clear",value:function(){this._map={}}},{key:"add",value:function(e,t,n,i){return n=n||new s.default,this._map[n]={item:e,widgetInstance:t,$itemContainer:i},n}},{key:"addItemsOrExtendFrom",value:function(e){var t=this;e.each(function(e,n){t._map[e]?(t._map[e].widgetInstance=n.widgetInstance,t._map[e].$itemContainer=n.$itemContainer):t.add(n.item,n.widgetInstance,e,n.$itemContainer)})}},{key:"findWidgetInstanceByItem",value:function(e){return this._findWidgetInstance(function(t){return t===e})}},{key:"findWidgetInstanceByName",value:function(e){return this._findWidgetInstance(function(t){return e===t.name})}},{key:"findWidgetInstanceByDataField",value:function(e){return this._findWidgetInstance(function(t){return e===t.dataField})}},{key:"findItemContainerByItem",value:function(e){for(var t in this._map)if(this._map[t].item===e)return this._map[t].$itemContainer;return null}},{key:"each",value:function(e){(0,l.each)(this._map,function(t,n){e(t,n)})}}]),e}();t.default=u},function(e,t,n){var i=n(2),o=n(5),a=n(4),r=n(1),s=n(17),l=n(7),u=l.getWindow(),c=n(3),d=n(0).extend,h=n(9),p=n(192),f=n(54),g="dx-responsivebox",_=g+"-screen-",m="dx-box-item",v="dxBoxItemData",y=1920,x=f.inherit({_getDefaultOptions:function(){return d(this.callBase(),{rows:[],cols:[],screenByWidth:null,singleColumnScreen:"",height:"100%",width:"100%",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,onLayoutChanged:null,currentScreenFactor:void 0,_layoutStrategy:void 0})},_init:function(){this.option("screenByWidth")||(this._options.screenByWidth=l.defaultScreenFactorFunc),this.callBase(),this._initLayoutChangedAction()},_initLayoutChangedAction:function(){this._layoutChangedAction=this._createActionByOption("onLayoutChanged",{excludeValidators:["disabled","readonly"]})},_itemClass:function(){return m},_itemDataKey:function(){return v},_initMarkup:function(){this.callBase(),this.$element().addClass(g),this._updateRootBox()},_updateRootBox:function(){clearTimeout(this._updateTimer),this._updateTimer=setTimeout(function(){this._$root&&o.triggerHandler(this._$root,"dxupdate")}.bind(this))},_renderItems:function(){this._setScreenSize(),this._screenItems=this._itemsByScreen(),this._prepareGrid(),this._spreadItems(),this._layoutItems(),this._linkNodeToItem()},_itemOptionChanged:function(e){var t=this._findItemElementByItem(e);t.length&&(this._refreshItem(t,e),this._clearItemNodeTemplates(),this._update())},_setScreenSize:function(){var e=this._getCurrentScreen();this._removeScreenSizeClass(),this.$element().addClass(_+e),this.option("currentScreenFactor",e)},_removeScreenSizeClass:function(){var e=this.option("currentScreenFactor");e&&this.$element().removeClass(_+e)},_prepareGrid:function(){var e=this._grid=[];this._prepareRowsAndCols(),c.each(this._rows,function(){var t=[];e.push(t),c.each(this._cols,function(){t.push(this._createEmptyCell())}.bind(this))}.bind(this))},getSingleColumnRows:function(){var e=this.option("rows"),t=this._screenItems.length;if(e.length){for(var n=this._filterByScreen(e),i=[],o=0;o<t;o++){var a=this._defaultSizeConfig();o<n.length&&r.isDefined(n[o].shrink)&&(a.shrink=n[o].shrink),i.push(a)}return i}return this._defaultSizeConfig(t)},_prepareRowsAndCols:function(){this._isSingleColumnScreen()?(this._prepareSingleColumnScreenItems(),this._rows=this.getSingleColumnRows(),this._cols=this._defaultSizeConfig(1)):(this._rows=this._sizesByScreen(this.option("rows")),this._cols=this._sizesByScreen(this.option("cols")))},_isSingleColumnScreen:function(){return this._screenRegExp().test(this.option("singleColumnScreen"))||!this.option("rows").length||!this.option("cols").length},_prepareSingleColumnScreenItems:function(){this._screenItems.sort(function(e,t){return e.location.row-t.location.row||e.location.col-t.location.col}),c.each(this._screenItems,function(e,t){d(t.location,{row:e,col:0,rowspan:1,colspan:1})})},_sizesByScreen:function(e){return c.map(this._filterByScreen(e),function(e){return d(this._defaultSizeConfig(),e)}.bind(this))},_createDefaultSizeConfig:function(){return{ratio:1,baseSize:0,minSize:0,maxSize:0}},_defaultSizeConfig:function(e){var t=this._createDefaultSizeConfig();if(!arguments.length)return t;for(var n=[],i=0;i<e;i++)n.push(t);return n},_filterByScreen:function(e){var t=this._screenRegExp();return a.grep(e,function(e){return!e.screen||t.test(e.screen)})},_screenRegExp:function(){var e=this._getCurrentScreen();return new RegExp("(^|\\s)"+e+"($|\\s)","i")},_getCurrentScreen:function(){var e=this._screenWidth();return this.option("screenByWidth")(e)},_screenWidth:function(){return l.hasWindow()?i(u).width():y},_createEmptyCell:function(){return{item:{},location:{colspan:1,rowspan:1}}},_spreadItems:function(){c.each(this._screenItems,function(e,t){var n=t.location||{},i=n.col,o=n.row,a=this._grid[o],r=a&&a[i];this._occupyCells(r,t)}.bind(this))},_itemsByScreen:function(){var e=this;return this.option("items").reduce(function(t,n){var i=n.location||{};return i=r.isPlainObject(i)?[i]:i,e._filterByScreen(i).forEach(function(e){t.push({item:n,location:d({rowspan:1,colspan:1},e)})}),t},[])},_occupyCells:function(e,t){e&&!this._isItemCellOccupied(e,t)&&(d(e,t),this._markSpanningCell(e))},_isItemCellOccupied:function(e,t){if(!r.isEmptyObject(e.item))return!0;var n=!1;return this._loopOverSpanning(t.location,function(e){n=n||!r.isEmptyObject(e.item)}),n},_loopOverSpanning:function(e,t){var n=e.row+e.rowspan-1,i=e.col+e.colspan-1,o=Math.min(n,this._rows.length-1),a=Math.min(i,this._cols.length-1);e.rowspan-=n-o,e.colspan-=i-a;for(var r=e.row;r<=o;r++)for(var s=e.col;s<=a;s++)r===e.row&&s===e.col||t(this._grid[r][s])},_markSpanningCell:function(e){this._loopOverSpanning(e.location,function(t){d(t,{item:e.item,spanningCell:e})})},_linkNodeToItem:function(){c.each(this._itemElements(),function(e,t){var n=i(t),o=n.data(v);o.box||(o.node=n.children())})},_layoutItems:function(){var e=this._grid.length,t=e&&this._grid[0].length;if(e||t){var n=this._layoutBlock({direction:"col",row:{start:0,end:e-1},col:{start:0,end:t-1}}),o=this._prepareBoxConfig(n.box||{direction:"row",items:[d(n,{ratio:1})]});d(o,this._rootBoxConfig(o.items)),this._$root=i("<div>").appendTo(this._itemContainer()),this._createComponent(this._$root,p,o)}},_rootBoxConfig:function(e){var t=c.each(e,function(e,t){this._needApplyAutoBaseSize(t)&&d(t,{baseSize:"auto"})}.bind(this));return d({width:"100%",height:"100%",items:t,itemTemplate:this._getTemplateByOption("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this._createActionByOption("onItemHold"),onItemClick:this._createActionByOption("onItemClick"),onItemContextMenu:this._createActionByOption("onItemContextMenu"),onItemRendered:this._createActionByOption("onItemRendered")},{_layoutStrategy:this.option("_layoutStrategy")})},_needApplyAutoBaseSize:function(e){return!(e.baseSize||e.minSize&&"auto"!==e.minSize||e.maxSize&&"auto"!==e.maxSize)},_prepareBoxConfig:function(e){return d(e||{},{crossAlign:"stretch",onItemStateChanged:this.option("onItemStateChanged")})},_layoutBlock:function(e){return this._isSingleItem(e)?this._itemByCell(e.row.start,e.col.start):this._layoutDirection(e)},_isSingleItem:function(e){var t=this._grid[e.row.start][e.col.start].location,n=e.row.end-e.row.start===t.rowspan-1,i=e.col.end-e.col.start===t.colspan-1;return n&&i},_itemByCell:function(e,t){var n=this._grid[e][t];return n.spanningCell?null:n.item},_layoutDirection:function(e){for(var t,n=[],i=e.direction,o=this._crossDirection(i);t=this._nextBlock(e);){if(this._isBlockIndivisible(e.prevBlockOptions,t))throw s.Error("E1025");var a=this._layoutBlock({direction:o,row:t.row,col:t.col,prevBlockOptions:e});a&&(d(a,this._blockSize(t,o)),n.push(a)),e[o].start=t[o].end+1}return{box:this._prepareBoxConfig({direction:i,items:n})}},_isBlockIndivisible:function(e,t){return e&&e.col.start===t.col.start&&e.col.end===t.col.end&&e.row.start===t.row.start&&e.row.end===t.row.end},_crossDirection:function(e){return"col"===e?"row":"col"},_nextBlock:function(e){var t=e.direction,n=this._crossDirection(t),i=e[t].start,o=e[t].end,a=e[n].start;if(a>e[n].end)return null;for(var r=1,s=a;s<a+r;s++){for(var l=1,u=i;u<=o;u++){var c=this._cellByDirection(t,u,s);l=Math.max(l,c.location[n+"span"])}var d=s+l,h=a+r;d>h&&(r+=d-h)}var p={};return p[t]={start:i,end:o},p[n]={start:a,end:a+r-1},p},_cellByDirection:function(e,t,n){return"col"===e?this._grid[n][t]:this._grid[t][n]},_blockSize:function(e,t){for(var n="row"===t?this._rows:this._cols,i=d(this._createDefaultSizeConfig(),{ratio:0}),o=e[t].start;o<=e[t].end;o++){var a=n[o];i.ratio+=a.ratio,i.baseSize+=a.baseSize,i.minSize+=a.minSize,i.maxSize+=a.maxSize,r.isDefined(a.shrink)&&(i.shrink=a.shrink)}return i.minSize=i.minSize?i.minSize:"auto",i.maxSize=i.maxSize?i.maxSize:"auto",this._isSingleColumnScreen()&&(i.baseSize="auto"),i},_update:function(){var e=this._$root;this._renderItems(),e&&e.detach(),this._saveAssistantRoot(e),this._layoutChangedAction(),this._updateRootBox()},_saveAssistantRoot:function(e){this._assistantRoots=this._assistantRoots||[],this._assistantRoots.push(e)},_dispose:function(){clearTimeout(this._updateTimer),this._clearItemNodeTemplates(),this._cleanUnusedRoots(),this.callBase.apply(this,arguments)},_cleanUnusedRoots:function(){this._assistantRoots&&c.each(this._assistantRoots,function(e,t){i(t).remove()})},_clearItemNodeTemplates:function(){c.each(this.option("items"),function(){delete this.node})},_toggleVisibility:function(e){this.callBase(e),e&&this._updateRootBox()},_attachClickEvent:a.noop,_optionChanged:function(e){switch(e.name){case"rows":case"cols":case"screenByWidth":case"_layoutStrategy":case"singleColumnScreen":this._clearItemNodeTemplates(),this._invalidate();break;case"width":case"height":this.callBase(e),this._update();break;case"onLayoutChanged":this._initLayoutChangedAction();break;case"itemTemplate":this._clearItemNodeTemplates(),this.callBase(e);break;case"currentScreenFactor":break;default:this.callBase(e)}},_dimensionChanged:function(){this._getCurrentScreen()!==this.option("currentScreenFactor")&&this._update()},repaint:function(){this._update()}});h("dxResponsiveBox",x),e.exports=x},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(42),s=i(r),l=n(0),u=n(16),c=i(u),d=n(9),h=i(d),p=n(315),f=i(p),g=n(198),_=i(g),m=n(558),v=i(m),y=n(62),x=i(y),b=n(12),w=n(65),C=i(w),k=n(7),S=i(k),I="dx-tabpanel",T="dx-tabpanel-tabs",D="dx-tabpanel-container",E="dx-tab-text",A=f.default.inherit({_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{itemTitleTemplate:"title",hoverStateEnabled:!0,showNavButtons:!1,scrollByContent:!0,scrollingEnabled:!0,onTitleClick:null,onTitleHold:null,onTitleRendered:null,badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===c.default.real().deviceType&&!c.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!s.default.touch},options:{swipeEnabled:!1}},{device:{platform:"generic"},options:{animationEnabled:!1}}])},_init:function(){this.callBase(),this.$element().addClass(I),this.setAria("role","tabpanel")},_initMarkup:function(){this.callBase(),this._createTitleActions(),this._renderLayout()},_initTemplates:function(){this.callBase(),this._defaultTemplates.title=new C.default(function(e,t){e.text(t.title||String(t));var n=x.default.getImageContainer(t.icon);e.wrapInner((0,a.default)("<span>").addClass(E)),n&&n.prependTo(e)},["title","icon"],this.option("integrationOptions.watchMethod"))},_createTitleActions:function(){this._createTitleClickAction(),this._createTitleHoldAction(),this._createTitleRenderedAction()},_createTitleClickAction:function(){this._titleClickAction=this._createActionByOption("onTitleClick")},_createTitleHoldAction:function(){this._titleHoldAction=this._createActionByOption("onTitleHold")},_createTitleRenderedAction:function(){this._titleRenderedAction=this._createActionByOption("onTitleRendered")},_renderContent:function(){var e=this;this.callBase(),this.option("templatesRenderAsynchronously")&&(this._resizeEventTimer=setTimeout(function(){e._updateLayout()},0))},_renderLayout:function(){if(!this._tabs){var e=this.$element();this._$tabContainer=(0,a.default)("<div>").addClass(T).appendTo(e);var t=(0,a.default)("<div>").appendTo(this._$tabContainer);this._tabs=this._createComponent(t,_.default,this._tabConfig()),this._$container=(0,a.default)("<div>").addClass(D).appendTo(e),this._$container.append(this._$wrapper),this._updateLayout()}},_updateLayout:function(){if(S.default.hasWindow()){var e=this._$tabContainer.outerHeight();this._$container.css({marginTop:-e,paddingTop:e})}},_refreshActiveDescendant:function(){if(this._tabs){var e=this._tabs,t=e.itemElements(),n=(0,a.default)(t[e.option("selectedIndex")]),i=this.getFocusedItemId();this.setAria("controls",void 0,(0,a.default)(t)),this.setAria("controls",i,n)}},_tabConfig:function(){return{selectOnFocus:!0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),repaintChangesOnly:this.option("repaintChangesOnly"),tabIndex:this.option("tabIndex"),selectedIndex:this.option("selectedIndex"),badgeExpr:this.option("badgeExpr"),onItemClick:this._titleClickAction.bind(this),onItemHold:this._titleHoldAction.bind(this),itemHoldTimeout:this.option("itemHoldTimeout"),onSelectionChanged:function(e){this.option("selectedIndex",e.component.option("selectedIndex")),this._refreshActiveDescendant()}.bind(this),onItemRendered:this._titleRenderedAction.bind(this),itemTemplate:this._getTemplateByOption("itemTitleTemplate"),items:this.option("items"),noDataText:null,scrollingEnabled:this.option("scrollingEnabled"),scrollByContent:this.option("scrollByContent"),showNavButtons:this.option("showNavButtons"),itemTemplateProperty:"tabTemplate",loopItemFocus:this.option("loop"),selectionRequired:!0,onOptionChanged:function(e){if("focusedElement"===e.name)if(e.value){var t=(0,a.default)(e.value),n=this._itemElements().eq(t.index());this.option("focusedElement",(0,b.getPublicElement)(n))}else this.option("focusedElement",e.value)}.bind(this),onFocusIn:function(e){this._focusInHandler(e.event)}.bind(this),onFocusOut:function(e){this._focusOutHandler(e.event)}.bind(this)}},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",-1),this._refreshActiveDescendant()},_updateFocusState:function(e,t){this.callBase(e,t),e.target===this._tabs._focusTarget().get(0)&&this._toggleFocusClass(t,this._focusTarget())},_setTabsOption:function(e,t){this._tabs&&this._tabs.option(e,t)},_visibilityChanged:function(e){e&&(this._tabs._dimensionChanged(),this._updateLayout())},registerKeyHandler:function(e,t){this.callBase(e,t),this._tabs&&this._tabs.registerKeyHandler(e,t)},repaint:function(){this.callBase(),this._tabs.repaint()},_optionChanged:function(e){var t=e.name,n=e.value,i=e.fullName;switch(t){case"dataSource":this.callBase(e);break;case"items":this._setTabsOption(i,n),this._updateLayout(),this.option("repaintChangesOnly")||this._tabs.repaint(),this.callBase(e);break;case"width":this.callBase(e),this._tabs.repaint();break;case"selectedIndex":case"selectedItem":case"itemHoldTimeout":case"focusStateEnabled":case"hoverStateEnabled":this._setTabsOption(i,n),this.callBase(e);break;case"scrollingEnabled":case"scrollByContent":case"showNavButtons":this._setTabsOption(i,n);break;case"focusedElement":var o=n?(0,a.default)(n).index():n,r=n?this._tabs._itemElements().eq(o):n;this._setTabsOption("focusedElement",(0,b.getPublicElement)(r)),this.callBase(e);break;case"itemTitleTemplate":this._setTabsOption("itemTemplate",this._getTemplateByOption("itemTitleTemplate"));break;case"onTitleClick":this._createTitleClickAction(),this._setTabsOption("onItemClick",this._titleClickAction.bind(this));break;case"onTitleHold":this._createTitleHoldAction(),this._setTabsOption("onItemHold",this._titleHoldAction.bind(this));break;case"onTitleRendered":this._createTitleRenderedAction(),this._setTabsOption("onItemRendered",this._titleRenderedAction.bind(this));break;case"loop":this._setTabsOption("loopItemFocus",n);break;case"badgeExpr":this._invalidate();break;default:this.callBase(e)}},_clean:function(){clearTimeout(this._resizeEventTimer),this.callBase()}});A.ItemClass=v.default,(0,h.default)("dxTabPanel",A),e.exports=A},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(38),s=i(r),l=n(27),u=i(l),c=n(29),d=i(c),h=n(0),p=n(4),f=n(12),g=n(1),_=n(16),m=i(_),v=n(9),y=i(v),x=n(191),b=i(x),w=n(158),C=i(w),k=n(6),S="dx-multiview",I="dx-multiview-wrapper",T="dx-multiview-item-container",D="dx-multiview-item",E="dx-multiview-item-hidden",A="dxMultiViewItemData",O=200,B=function(e){return+e},P=function(e){return u.default.locate(e).left},M={move:function(e,t){u.default.move(e,{left:t})}},R={moveTo:function(e,t,n,i){s.default.animate(e,{type:"slide",to:{left:t},duration:n,complete:i})},complete:function(e){s.default.stop(e,!0)}},V=b.default.inherit({_activeStateUnit:"."+D,_supportedKeys:function(){return(0,h.extend)(this.callBase(),{pageUp:p.noop,pageDown:p.noop})},_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{selectedIndex:0,swipeEnabled:!0,animationEnabled:!0,loop:!1,deferRendering:!0,_itemAttributes:{role:"tabpanel"},loopItemFocus:!1,selectOnFocus:!0,selectionMode:"single",selectionRequired:!0,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===m.default.real().deviceType&&!m.default.isSimulator()},options:{focusStateEnabled:!0}}])},_itemClass:function(){return D},_itemDataKey:function(){return A},_itemContainer:function(){return this._$itemContainer},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_itemWidth:function(){return this._itemWidthValue||(this._itemWidthValue=this._$wrapper.width()),this._itemWidthValue},_clearItemWidthCache:function(){delete this._itemWidthValue},_itemsCount:function(){return this.option("items").length},_normalizeIndex:function(e){var t=this._itemsCount();return e<0&&(e+=t),e>=t&&(e-=t),e},_getRTLSignCorrection:function(){return this.option("rtlEnabled")?-1:1},_init:function(){this.callBase.apply(this,arguments);var e=this.$element();e.addClass(S),this._$wrapper=(0,a.default)("<div>").addClass(I),this._$wrapper.appendTo(e),this._$itemContainer=(0,a.default)("<div>").addClass(T),this._$itemContainer.appendTo(this._$wrapper),this.option("loopItemFocus",this.option("loop")),this._initSwipeable()},_initMarkup:function(){this._deferredItems=[],this.callBase()},_afterItemElementDeleted:function(e,t){this.callBase(e,t),this._deferredItems&&this._deferredItems.splice(t.itemIndex,1)},_beforeItemElementInserted:function(e){this.callBase.apply(this,arguments),this._deferredItems&&this._deferredItems.splice(e.index,0,null)},_executeItemRenderAction:function(e,t,n){e=(this.option("items")||[]).indexOf(t),this.callBase(e,t,n)},_renderItemContent:function(e){var t=new k.Deferred,n=this,i=this.callBase,o=new k.Deferred;return o.done(function(){var o=i.call(n,e);t.resolve(o)}),this._deferredItems[e.index]=o,this.option("deferRendering")||o.resolve(),t.promise()},_render:function(){var e=this;this.callBase(),(0,p.deferRender)(function(){var t=e._getSelectedItemIndices();e._updateItemsPosition(t[0]),e._updateItemsVisibility(t[0])})},_renderSelection:function(e){this._updateItemsVisibility(e[0])},_updateItems:function(e,t){this._updateItemsPosition(e,t),this._updateItemsVisibility(e,t)},_modifyByChanges:function(){this.callBase.apply(this,arguments);var e=this._getSelectedItemIndices();this._updateItemsVisibility(e[0])},_updateItemsPosition:function(e,t){var n=this._itemElements(),i=(0,g.isDefined)(t)?-this._animationDirection(t,e):void 0,o=n.eq(e);M.move(o,0),(0,g.isDefined)(t)&&M.move(n.eq(t),100*i+"%")},_updateItemsVisibility:function(e,t){var n=this._itemElements();n.each(function(n,i){var o=(0,a.default)(i),r=n!==e&&n!==t;r||this._renderSpecificItem(n),o.toggleClass(E,r),this.setAria("hidden",r||void 0,o)}.bind(this))},_renderSpecificItem:function(e){var t=this._itemElements().eq(e),n=t.find(this._itemContentClass()).length>0;(0,g.isDefined)(e)&&!n&&(this._deferredItems[e].resolve(),(0,f.triggerResizeEvent)(t))},_refreshItem:function(e,t){this.callBase(e,t),this._updateItemsVisibility(this.option("selectedIndex"))},_setAriaSelected:p.noop,_updateSelection:function(e,t){var n=e[0],i=t[0];R.complete(this._$itemContainer),this._updateItems(i,n);var o=this._animationDirection(n,i);this._animateItemContainer(o*this._itemWidth(),function(){M.move(this._$itemContainer,0),this._updateItems(n),this._$itemContainer.width()}.bind(this))},_animateItemContainer:function(e,t){var n=this.option("animationEnabled")?O:0;R.moveTo(this._$itemContainer,e,n,t)},_animationDirection:function(e,t){var n=P(this._$itemContainer),i=(t-e)*this._getRTLSignCorrection()*this._getItemFocusLoopSignCorrection(),o=0!==n,a=o?n:i;return d.default.sign(a)},_getSwipeDisabledState:function(){return!this.option("swipeEnabled")||this._itemsCount()<=1},_initSwipeable:function(){var e=this;this._createComponent(this.$element(),C.default,{disabled:this._getSwipeDisabledState(),elastic:!1,itemSizeFunc:this._itemWidth.bind(this),onStart:function(t){return e._swipeStartHandler(t.event)},onUpdated:function(t){return e._swipeUpdateHandler(t.event)},onEnd:function(t){return e._swipeEndHandler(t.event)}})},_swipeStartHandler:function(e){R.complete(this._$itemContainer);var t=this.option("selectedIndex"),n=this.option("loop"),i=this._itemsCount()-1,o=this.option("rtlEnabled");e.maxLeftOffset=B(n||(o?t>0:t<i)),e.maxRightOffset=B(n||(o?t<i:t>0)),this._swipeDirection=null},_swipeUpdateHandler:function(e){var t=e.offset,n=d.default.sign(t)*this._getRTLSignCorrection();if(M.move(this._$itemContainer,t*this._itemWidth()),n!==this._swipeDirection){this._swipeDirection=n;var i=this.option("selectedIndex"),o=this._normalizeIndex(i-n);this._updateItems(i,o)}},_swipeEndHandler:function(e){var t=e.targetOffset*this._getRTLSignCorrection();if(t){this.option("selectedIndex",this._normalizeIndex(this.option("selectedIndex")-t));var n=this.itemElements().filter(".dx-item-selected");this.option("focusStateEnabled")&&this.option("focusedElement",(0,f.getPublicElement)(n))}else this._animateItemContainer(0,p.noop)},_getItemFocusLoopSignCorrection:function(){return this._itemFocusLooped?-1:1},_moveFocus:function(){this.callBase.apply(this,arguments),this._itemFocusLooped=!1},_prevItem:function(e){var t=this.callBase.apply(this,arguments);return this._itemFocusLooped=t.is(e.last()),t},_nextItem:function(e){var t=this.callBase.apply(this,arguments);return this._itemFocusLooped=t.is(e.first()),t},_dimensionChanged:function(){this._clearItemWidthCache()},_visibilityChanged:function(e){e&&this._dimensionChanged()},_updateSwipeDisabledState:function(){var e=this._getSwipeDisabledState();C.default.getInstance(this.$element()).option("disabled",e)},_optionChanged:function(e){var t=e.value;switch(e.name){case"loop":this.option("loopItemFocus",t);break;case"animationEnabled":break;case"swipeEnabled":this._updateSwipeDisabledState();break;case"deferRendering":this._invalidate();break;case"items":this._updateSwipeDisabledState(),this.callBase(e);break;default:this.callBase(e)}}});(0,y.default)("dxMultiView",V),e.exports=V},function(e,t,n){var i=n(2),o=n(153),a="dx-tabs-item-badge",r="dx-badge",s=o.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this))},_renderBadge:function(e){if(this._$element.children("."+r).remove(),e){var t=i("<div>").addClass(a).addClass(r).text(e);this._$element.append(t)}}});e.exports=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(9),s=i(r),l=n(66),u=i(l),c=n(249),d=i(c),h=n(99),p=i(h),f=n(197),g=i(f),_="dx-validationgroup",m="dx-validator",v="dx-validationsummary",y=u.default.inherit({_getDefaultOptions:function(){return this.callBase()},_init:function(){this.callBase(),p.default.addGroup(this)},_initMarkup:function(){var e=this.$element();e.addClass(_),e.find("."+m).each(function(e,t){g.default.getInstance((0,a.default)(t))._initGroupRegistration()}),e.find("."+v).each(function(e,t){d.default.getInstance((0,a.default)(t))._initGroupRegistration()}),this.callBase()},validate:function(){return p.default.validateGroup(this)},reset:function(){return p.default.resetGroup(this)},_dispose:function(){p.default.removeGroup(this),this.$element().removeClass(_),this.callBase()}});(0,s.default)("dxValidationGroup",y),e.exports=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){
43if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(59),c=n(2),d=i(c),h=(0,u.getQuill)(),p=h.import("blots/embed"),f="dx-mention",g=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,null,[{key:"create",value:function(e){var n=l(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this);return n.setAttribute("spellcheck",!1),n.dataset.marker=e.marker,n.dataset.mentionValue=e.value,n.dataset.id=e.id,this.renderContent(n,e),n}},{key:"value",value:function(e){return{marker:e.dataset.marker,id:e.dataset.id,value:e.dataset.mentionValue}}},{key:"renderContent",value:function(e,t){var n=this._templates.get(t.marker);n?n.render({model:t,container:e}):this.baseContentRender(e,t)}},{key:"baseContentRender",value:function(e,t){var n=(0,d.default)("<span>").text(t.marker);(0,d.default)(e).append(n).append(t.value)}},{key:"addTemplate",value:function(e,t){this._templates.set(e,t)}},{key:"removeTemplate",value:function(e){this._templates.delete(e)}}]),t}(p);g.blotName="mention",g.tagName="span",g.className=f,g._templates=new Map,t.default=g},function(e,t,n){var i=n(2),o=n(4).noop,a=n(3).each,r=n(21),s=n(20).compileGetter,l=n(15),u=n(34),c=l.abstract,d="dx-toolbar-menu-container",h="dx-toolbar-menu-button",p=l.inherit({ctor:function(e){this._toolbar=e},render:function(){this._renderMenuButton(),this._renderWidget()},_widgetOptions:function(){var e=this._toolbar._createActionByOption("onItemClick");return{itemTemplate:this._getMenuItemTemplate.bind(this),onItemClick:function(t){this._toggleMenu(!1,!0),e(t)}.bind(this)}},_getMenuItemTemplate:function(){return this._toolbar._getTemplateByOption("menuItemTemplate")},_renderWidget:function(){var e=i("<div>").appendTo(this._menuContainer());this._menu=this._toolbar._createComponent(e,this._menuWidgetClass(),this._widgetOptions()),this.renderMenuItems()},_menuContainer:c,_menuWidgetClass:c,_hasVisibleMenuItems:function(e){var t=e||this._toolbar.option("items"),n=!1,i=s("visible"),o=s("locateInMenu"),l=!1;return a(t,function(e,t){var a=i(t,{functionsAsIs:!0}),r=o(t,{functionsAsIs:!0});"menu"===t.location&&(l=!0),a===!1||"auto"!==r&&"always"!==r&&"menu"!==t.location||(n=!0)}),l&&r.log("W0001","dxToolbar - 'location' item field","menu","16.1","Use 'locateInMenu' item field instead."),n},_getMenuItems:function(){return this._toolbar._getMenuItems()},_updateMenuVisibility:o,_renderMenuButton:function(){var e=this._menuButtonOptions();this._renderMenuButtonContainer(),this._$button=i("<div>").appendTo(this._$menuButtonContainer).addClass(h),this._toolbar._createComponent(this._$button,u,e)},_menuButtonOptions:function(){return{onClick:this._menuButtonClickHandler.bind(this)}},_menuButtonClickHandler:function(){this._toggleMenu(!this._menuShown,!0)},_renderMenuButtonContainer:function(){var e=this._toolbar._$afterSection;this._$menuButtonContainer=i("<div>").appendTo(e).addClass(this._toolbar._buttonClass()).addClass(d)},renderMenuItems:function(){this._menu&&this._menu.option("items",this._getMenuItems())},toggleMenuVisibility:function(e,t){this._menu&&this._toggleMenu(e,t)},_toggleMenu:function(e){this._menuShown=e},getMenuWidget:function(){return this._menu},widgetOption:function(e,t){this._menu&&this._menu.option(e,t)},handleToolbarVisibilityChange:o});e.exports=p},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(59),u=n(2),c=i(u),d=n(0),h=n(7),p=n(46),f=i(p),g=n(101),_=i(g),m="dx-suggestion-list",v="dx-suggestion-list-wrapper",y=(0,l.getQuill)().import("core/module"),x=100,b=function(e){function t(e,n){o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.options=(0,d.extend)({},i._getDefaultOptions(),n),i._popup=i.renderPopup(),i._popup._wrapper().addClass(v),i}return r(t,e),s(t,[{key:"_getDefaultOptions",value:function(){return{dataSource:null}}}]),s(t,[{key:"renderList",value:function(e,t){var n=(0,c.default)("<div>").addClass(m).appendTo(e);this._list=this.options.editorInstance._createComponent(n,_.default,t)}},{key:"renderPopup",value:function(){var e=this.options.editorInstance,t=(0,c.default)("<div>").appendTo(e.$element()),n=this._getPopupConfig();return e._createComponent(t,f.default,n)}},{key:"_getPopupConfig",value:function(){var e=this;return{contentTemplate:function(t){var n=e._getListConfig(e.options);e.renderList((0,c.default)(t),n)},deferRendering:!1,onShown:function(){e._list.focus()},onHidden:function(){e._list.unselectAll(),e._list.option("focusedElement",null)},showTitle:!1,width:"auto",height:"auto",shading:!1,closeOnTargetScroll:!0,closeOnOutsideClick:!0,animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},fullScreen:!1,maxHeight:this.maxHeight}}},{key:"_getListConfig",value:function(e){return{dataSource:e.dataSource,onSelectionChanged:this.selectionChangedHandler.bind(this),selectionMode:"single",pageLoadMode:"scrollBottom"}}},{key:"selectionChangedHandler",value:function(e){this._popup.option("visible")&&(this._popup.hide(),this.insertEmbedContent(e))}},{key:"insertEmbedContent",value:function(e){}},{key:"showPopup",value:function(){this._popup&&this._popup.show()}},{key:"savePosition",value:function(e){this.caretPosition=e}},{key:"getPosition",value:function(){return this.caretPosition}},{key:"maxHeight",get:function(){var e=(0,h.getWindow)(),t=e&&(0,c.default)(e).height()||0;return Math.max(x,.5*t)}}]),t}(y);t.default=b},function(e,t,n){var i=n(82),o=n(15),a=n(3).map,r=n(1),s=n(8),l=r.isPlainObject,u=r.isNumeric,c=o.abstract,d=o.inherit({_defaultRouteWeight:function(){return 5},_defaultRouteOpacity:function(){return.5},_defaultRouteColor:function(){return"#0000FF"},ctor:function(e,t){this._mapWidget=e,this._$container=t},render:function(e,t){return this._renderImpl().then(function(){return i.all([this._applyFunctionIfNeeded("addMarkers",e),this._applyFunctionIfNeeded("addRoutes",t)]).then(function(){return!0})}.bind(this))},_renderImpl:c,updateDimensions:c,updateMapType:c,updateBounds:c,updateCenter:c,updateZoom:c,updateControls:c,updateMarkers:function(e,t){return new i(function(n){return this._applyFunctionIfNeeded("removeMarkers",e).then(function(e){this._applyFunctionIfNeeded("addMarkers",t).then(function(t){n(t?t:e)})}.bind(this))}.bind(this))},addMarkers:c,removeMarkers:c,adjustViewport:c,updateRoutes:function(e,t){return new i(function(n){return this._applyFunctionIfNeeded("removeRoutes",e).then(function(e){this._applyFunctionIfNeeded("addRoutes",t).then(function(t){n(t?t:e)})}.bind(this))}.bind(this))},addRoutes:c,removeRoutes:c,clean:c,map:function(){return this._map},isEventsCanceled:function(){return!1},_option:function(e,t){return void 0===t?this._mapWidget.option(e):void this._mapWidget.setOptionSilent(e,t)},_keyOption:function(e){var t=this._option("key");return void 0===t[e]?t:t[e]},_parseTooltipOptions:function(e){return{text:e.text||e,visible:e.isShown||!1}},_getLatLng:function(e){if("string"==typeof e){var t=a(e.split(","),function(e){return e.trim()}),n=/^[-+]?[0-9]*\.?[0-9]*$/;if(2===t.length&&t[0].match(n)&&t[1].match(n))return{lat:parseFloat(t[0]),lng:parseFloat(t[1])}}else{if(Array.isArray(e)&&2===e.length)return{lat:e[0],lng:e[1]};if(l(e)&&u(e.lat)&&u(e.lng))return e}return null},_areBoundsSet:function(){return this._option("bounds.northEast")&&this._option("bounds.southWest")},_addEventNamespace:function(e){return s.addNamespace(e,this._mapWidget.NAME)},_applyFunctionIfNeeded:function(e,t){return t.length?this[e](t):i.resolve()},_fireAction:function(e,t){this._mapWidget._createActionByOption(e)(t)},_fireClickAction:function(e){this._fireAction("onClick",e)},_fireMarkerAddedAction:function(e){this._fireAction("onMarkerAdded",e)},_fireMarkerRemovedAction:function(e){this._fireAction("onMarkerRemoved",e)},_fireRouteAddedAction:function(e){this._fireAction("onRouteAdded",e)},_fireRouteRemovedAction:function(e){this._fireAction("onRouteRemoved",e)}});e.exports=d},function(e,t,n){var i=n(82),o=n(0).extend,a=n(3),r=n(321),s=r.abstract,l=r.inherit({_geocodeLocation:function(e){return new i(function(t){var n=this._geocodedLocations,i=n[e];i?t(i):this._geocodeLocationImpl(e).then(function(i){n[e]=i,t(i)})}.bind(this))},_renderImpl:function(){return this._load().then(function(){return this._init()}.bind(this)).then(function(){return i.all([this.updateMapType(),this._areBoundsSet()?this.updateBounds():this.updateCenter()])}.bind(this)).then(function(){return this._attachHandlers(),new i(function(e){var t=setTimeout(function(){clearTimeout(t),e()})})}.bind(this))},_load:function(){return this._mapsLoader||(this._mapsLoader=this._loadImpl()),this._markers=[],this._routes=[],this._mapsLoader},_loadImpl:s,_init:s,_attachHandlers:s,addMarkers:function(e){return i.all(a.map(e,function(e){return this._addMarker(e)}.bind(this))).then(function(e){return this._fitBounds(),[!1,a.map(e,function(e){return e.marker})]}.bind(this))},_addMarker:function(e){return this._renderMarker(e).then(function(t){return this._markers.push(o({options:e},t)),this._fireMarkerAddedAction({options:e,originalMarker:t.marker}),t}.bind(this))},_renderMarker:s,removeMarkers:function(e){var t=this;return a.each(e,function(e,n){t._removeMarker(n)}),i.resolve()},_removeMarker:function(e){var t=this;a.each(this._markers,function(n,i){return i.options!==e||(t._destroyMarker(i),t._markers.splice(n,1),t._fireMarkerRemovedAction({options:i.options}),!1)})},_destroyMarker:s,_clearMarkers:function(){for(;this._markers.length>0;)this._removeMarker(this._markers[0].options)},addRoutes:function(e){return i.all(a.map(e,function(e){return this._addRoute(e)}.bind(this))).then(function(e){return this._fitBounds(),[!1,a.map(e,function(e){return e.instance})]}.bind(this))},_addRoute:function(e){return this._renderRoute(e).then(function(t){return this._routes.push(o({options:e},t)),this._fireRouteAddedAction({options:e,originalRoute:t.instance}),t}.bind(this))},_renderRoute:s,removeRoutes:function(e){var t=this;return a.each(e,function(e,n){t._removeRoute(n)}),i.resolve()},_removeRoute:function(e){var t=this;a.each(this._routes,function(n,i){return i.options!==e||(t._destroyRoute(i),t._routes.splice(n,1),t._fireRouteRemovedAction({options:e}),!1)})},_destroyRoute:s,_clearRoutes:function(){for(;this._routes.length>0;)this._removeRoute(this._routes[0].options)},adjustViewport:function(){return this._fitBounds()},isEventsCanceled:function(){return!0},_fitBounds:s,_updateBounds:function(){var e=this;this._clearBounds(),this._option("autoAdjust")&&(a.each(this._markers,function(t,n){e._extendBounds(n.location)}),a.each(this._routes,function(t,n){n.northEast&&e._extendBounds(n.northEast),n.southWest&&e._extendBounds(n.southWest)}))},_clearBounds:function(){this._bounds=null},_extendBounds:s});e.exports=l},function(e,t,n){e.exports=n(591)},function(e,t,n){e.exports=n(593)},function(e,t,n){var i=n(2),o=n(18),a=n(164),r=n(27),s=n(76),l=n(29),u=n(1),c=n(0).extend,d=n(51),h="dx-slider",p="dx-slider-handle",f={top:{my:"bottom center",at:"top center",collision:"none"},bottom:{my:"top center",at:"bottom center",collision:"none"},right:{my:"left center",at:"right center",collision:"none"},left:{my:"right center",at:"left center",collision:"none"}},g=o.inherit({_getDefaultOptions:function(){return c(this.callBase(),{hoverStateEnabled:!1,value:0,tooltipEnabled:!1,tooltipFormat:function(e){return e},tooltipPosition:"top",tooltipShowMode:"onHover",tooltipFitIn:null})},_initMarkup:function(){this.callBase(),this.$element().addClass(p),this.setAria({role:"slider",valuenow:this.option("value")})},_render:function(){this._renderTooltip(),this.callBase()},_renderTooltip:function(){this.option("tooltipEnabled")?(this._$tooltip||(this._$tooltip=i("<div>").appendTo(this.$element())),this._$slider=this.$element().closest("."+h),this._updateTooltip()):this._removeTooltip()},_createTooltip:function(){return!this._tooltip&&(this._tooltip=this._createComponent(this._$tooltip,a,{visible:!0,target:this.$element(),closeOnOutsideClick:!1,container:this.$element(),closeOnBackButton:!1,closeOnTargetScroll:!1,onPositioned:function(e){this._saveTooltipElements(e.component),this._saveTooltipLocation(),this._centeredTooltipPosition()}.bind(this),animation:null,arrowPosition:null,templatesRenderAsynchronously:!1}),!0)},_removeTooltip:function(){this._$tooltip&&(this._$tooltip.remove(),delete this._$tooltip,delete this._tooltip)},_renderTooltipPosition:function(){if(this._tooltip){var e=this.option("tooltipPosition");this._saveTooltipElements(),this._resetTooltipPosition(),"string"===u.type(e)&&(e=c({boundary:this._$slider,boundaryOffset:{h:1,v:1}},f[e])),this._tooltip.option("position",e),this._saveTooltipLocation()}},_saveTooltipElements:function(e){e=this._tooltip||e,this._$tooltipContent=e.$content().parent(),this._$tooltipArrow=this._$tooltipContent.find(".dx-popover-arrow")},_resetTooltipPosition:function(){r.resetPosition(this._$tooltipContent),r.resetPosition(this._$tooltipArrow)},_saveTooltipLocation:function(){this._contentLocate=r.locate(this._$tooltipContent)},_centeredTooltipPosition:function(){if(this._tooltip){this._$tooltipContent.outerWidth("auto");var e=this._$tooltipContent.get(0).getBoundingClientRect().width,t=Math.ceil(e),n=t%2+t;this._$tooltipContent.outerWidth(n);var i=(n-this.$element().width())/2;this._contentLocate.left=-i,this._$tooltipArrow.css({marginLeft:-this._$tooltipArrow.outerWidth()/2,left:"50%"}),this._fitTooltip()}},_fitTooltip:function(){if(this._tooltip){var e=this.option("tooltipPosition");"string"===u.type(e)&&(e=c({of:this.$element(),boundary:this._$slider,boundaryOffset:{h:2,v:1}},f[e],{collision:"fit none"}));var t=s.calculate(this._$tooltipContent,e),n="left"===t.h.collisionSide,i=(n?-1:1)*t.h.oversize,o=this._contentLocate.left,a=this._contentLocate.left+this._$tooltipContent.outerWidth()-this._$tooltipArrow.outerWidth();r.move(this._$tooltipContent,{left:this._contentLocate.left+(n?1:-1)*t.h.oversize}),r.move(this._$tooltipArrow,{left:l.fitIntoRange(i,o,a)})}},_getFormattedValue:function(e){return d.format(e,this.option("tooltipFormat"))},_renderValue:function(){if(this._tooltip){var e=this.option("value");this._tooltip.$content().html(this._getFormattedValue(e)),this._fitTooltip()}},_updateTooltip:function(){var e=/^onhover$/i.test(this.option("tooltipShowMode"));e||this._createTooltip(),this.$element().toggleClass("dx-slider-tooltip-on-hover",e),this._renderTooltipPosition(),this._renderValue(),this._centeredTooltipPosition()},_clean:function(){this.callBase(),delete this._$tooltip,delete this._tooltip},_ensureTooltipIsCentered:function(e,t){u.isDefined(e)&&u.isDefined(t)&&e.toString().length!==t.toString().length&&this._centeredTooltipPosition()},_optionChanged:function(e){switch(e.name){case"tooltipFormat":this._renderValue();break;case"value":this._renderValue();var t=this._getFormattedValue(e.value),n=this._getFormattedValue(e.previousValue);this._ensureTooltipIsCentered(t,n),this.setAria("valuenow",e.value);break;case"tooltipEnabled":this._renderTooltip();break;case"tooltipPosition":this._renderTooltipPosition(),this._centeredTooltipPosition();break;case"tooltipShowMode":this._updateTooltip();break;case"tooltipFitIn":this._fitTooltip();break;default:this.callBase(e)}},fitTooltipPosition:function(){this._fitTooltip()},updateTooltip:function(){this._createTooltip()&&(this._renderTooltipPosition(),this._renderValue(),this._centeredTooltipPosition())},repaint:function(){this._renderTooltipPosition(),this._centeredTooltipPosition(),this._tooltip&&this._tooltip._visibilityChanged(!0)}});e.exports=g},function(e,t,n){var i=n(2),o=n(43),a=n(9),r=n(0).extend,s=n(138),l="dx-tooltip",u="dx-tooltip-wrapper",c=s.inherit({_getDefaultOptions:function(){return r(this.callBase(),{toolbarItems:[],showCloseButton:!1,showTitle:!1,title:null,titleTemplate:null,onTitleRendered:null,bottomTemplate:null,propagateOutsideClick:!0})},_render:function(){this.$element().addClass(l),this._wrapper().addClass(u),this.callBase()},_renderContent:function(){this.callBase(),this._contentId="dx-"+new o,this._$content.attr({id:this._contentId,role:"tooltip"}),this._toggleAriaDescription(!0)},_toggleAriaDescription:function(e){var t=i(this.option("target")),n=e?this._contentId:void 0;this.setAria("describedby",n,t)}});a("dxTooltip",c),e.exports=c},function(e,t,n){var i=n(2),o=n(5),a=n(16),r=n(0).extend,s=n(72),l=n(9),u=n(49),c=n(8),d=n(129),h=n(31),p=n(38),f=n(14),g=n(19),_=n(158),m=n(6).Deferred,v="dx-switch",y=v+"-wrapper",x=v+"-container",b=v+"-inner",w=v+"-handle",C=v+"-on-value",k=v+"-on",S=v+"-off",I=100,T=u.inherit({_supportedKeys:function(){var e=this.option("rtlEnabled"),t=function(e){e.preventDefault(),this._clickAction({event:e})},n=function(e,t){t.preventDefault(),t.stopPropagation(),this._animateValue(e)};return r(this.callBase(),{space:t,enter:t,leftArrow:n.bind(this,!!e),rightArrow:n.bind(this,!e)})},_getDefaultOptions:function(){return r(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,switchedOnText:this._getLocalizationMessage("On"),switchedOffText:this._getLocalizationMessage("Off"),value:!1,useInkRipple:!1,_animateHandle:!0})},_defaultOptionsRules:function(){var e=h.current();return this.callBase().concat([{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:function(t){return h.isIos7(e)},options:{_animateHandle:!1}}])},_setDeprecatedOptions:function(){this.callBase(),r(this._deprecatedOptions,{onText:{since:"18.2",alias:"switchedOnText"},offText:{since:"18.2",alias:"switchedOffText"}})},_getLocalizationMessage:function(e){var t=f.format("dxSwitch-switched"+e+"Text"),n=f.format("dxSwitch-"+e.toLowerCase()+"Text");return t||n},_feedbackHideTimeout:0,_animating:!1,_initMarkup:function(){this._renderContainers(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass(v).append(this._$switchWrapper),this._renderSubmitElement(),this._renderClick(),this.setAria("role","button"),this._renderSwipeable(),this.callBase(),this._renderSwitchInner(),this._renderLabels(),this._renderValue()},_getInnerOffset:function(e,t){var n=(t-this._offsetDirection()*Number(!e))/2;return 100*n+"%"},_getHandleOffset:function(e,t){if(this.option("rtlEnabled")&&(e=!e),e){var n=-100+100*-t;return n+"%"}return 100*-t+"%"},_renderSwitchInner:function(){this._$switchInner=i("<div>").addClass(b).appendTo(this._$switchContainer),this._$handle=i("<div>").addClass(w).appendTo(this._$switchInner)},_renderLabels:function(){this._$labelOn=i("<div>").addClass(k).prependTo(this._$switchInner),this._$labelOff=i("<div>").addClass(S).appendTo(this._$switchInner),this._setLabelsText()},_renderContainers:function(){this._$switchContainer=i("<div>").addClass(x),this._$switchWrapper=i("<div>").addClass(y).append(this._$switchContainer)},_renderSwipeable:function(){this._createComponent(this.$element(),_,{elastic:!1,immediate:!0,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._getItemSizeFunc.bind(this)})},_getItemSizeFunc:function(){return this._$switchContainer.outerWidth(!0)-this._$handle.get(0).getBoundingClientRect().width},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:1.7,isCentered:!0,useHoldAnimation:!1,wavesNumber:2})},_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._$handle,e,t,0)},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$handle,n,t,1)},_offsetDirection:function(){return this.option("rtlEnabled")?-1:1},_renderPosition:function(e,t){var n=this._getInnerOffset(e,t),i=this._getHandleOffset(e,t);this.option("_animateHandle")&&(this._$switchInner.css("transform"," translateX("+n+")"),this._$handle.css("transform"," translateX("+i+")"))},_validateValue:function(){var e=this.option("value");"boolean"!=typeof e&&(this._options.value=!!e)},_renderClick:function(){var e=c.addNamespace(g.name,this.NAME),t=this.$element();this._clickAction=this._createAction(this._clickHandler.bind(this)),o.off(t,e),o.on(t,e,function(e){this._clickAction({event:e})}.bind(this))},_clickHandler:function(e){var t=e.event;this._saveValueChangeEvent(t),this._animating||this._swiping||this._animateValue(!this.option("value"))},_animateValue:function(e){var t=this.option("value"),n=e;if(t!==n){this._animating=!0;var i=this._getInnerOffset(t,0),o=this._getInnerOffset(n,0),a=this._getHandleOffset(t,0),r=this._getHandleOffset(n,0),s=this,l={},u={},c={},d={};l.transform=" translateX("+i+")",u.transform=" translateX("+o+")",c.transform=" translateX("+a+")",d.transform=" translateX("+r+")",this.$element().toggleClass(C,n),p.animate(this._$handle,{from:c,to:d,duration:I}),p.animate(this._$switchInner,{from:l,to:u,duration:I,complete:function(){s._animating=!1,s.option("value",n)}})}},_swipeStartHandler:function(e){var t=this.option("value"),n=this.option("rtlEnabled"),i=n?0:1,o=n?1:0;e.event.maxLeftOffset=t?i:o,e.event.maxRightOffset=t?o:i,this._swiping=!0,this._feedbackDeferred=new m,d.lock(this._feedbackDeferred),this._toggleActiveState(this.$element(),this.option("activeStateEnabled"))},_swipeUpdateHandler:function(e){this._renderPosition(this.option("value"),e.event.offset)},_swipeEndHandler:function(e){var t=this,n=this._offsetDirection(),i={},o={},a=this._getInnerOffset(t.option("value"),e.event.targetOffset),r=this._getHandleOffset(t.option("value"),e.event.targetOffset);i.transform=" translateX("+a+")",o.transform=" translateX("+r+")",p.animate(this._$handle,{to:o,duration:I}),p.animate(this._$switchInner,{to:i,duration:I,complete:function(){t._swiping=!1;var i=t.option("value")+n*e.event.targetOffset;t.option("value",Boolean(i)),t._feedbackDeferred.resolve(),t._toggleActiveState(t.$element(),!1)}})},_renderValue:function(){this._validateValue();var e=this.option("value");this._renderPosition(e,0),this.$element().toggleClass(C,e),this._getSubmitElement().val(e),this.setAria({pressed:e,label:e?this.option("switchedOnText"):this.option("switchedOffText")})},_setLabelsText:function(){this._$labelOn&&this._$labelOn.text(this.option("switchedOnText")),this._$labelOff&&this._$labelOff.text(this.option("switchedOffText"))},_visibilityChanged:function(e){e&&this.repaint()},_optionChanged:function(e){switch(e.name){case"useInkRipple":this._invalidate();break;case"width":delete this._marginBound,this._refresh();break;case"switchedOnText":case"switchedOffText":this._setLabelsText();break;case"value":this._renderValue(),this.callBase(e);break;case"_animateHandle":break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});l("dxSwitch",T),e.exports=T},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var 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},a=n(2),r=i(a),s=n(16),l=i(s),u=n(37),c=i(u),d=n(5),h=i(d),p=n(9),f=i(p),g=n(26),_=i(g),m=n(4),v=n(284),y=n(6),x=n(12),b=n(1),w=n(7),C=n(0),k=n(13),S=n(3),I=n(14),T=i(I),D=n(8),E=n(19),A=n(295),O=i(A),B=n(44),P=n(95),M=i(P),R=n(65),V=i(R),F="dxTagData",L="dx-tagbox",H="dx-tag-container",z="dx-tag",N="dx-tagbox-multi-tag",$="dx-tag-custom",W="dx-tag-remove-button",G="dx-tagbox-only-select",j="dx-tagbox-single-line",q="dx-tagbox-popup-wrapper",K="dx-list-select-all-checkbox",U="dx-tag-content",Y="dx-tagbox-default-template",X="dx-tagbox-custom-template",Z="dx-native-click",Q=-.3,J=M.default.inherit({_supportedKeys:function(){var e=this.callBase();return(0,C.extend)(e,{backspace:function(e){if(this._isCaretAtTheStart()){e.preventDefault(),e.stopPropagation(),this._isTagRemoved=!0;var t=this._$focusedTag||this._tagElements().last();this._$focusedTag&&this._moveTagFocus("prev",!0),0!==t.length&&(this._preserveFocusedTag=!0,this._removeTagElement(t),delete this._preserveFocusedTag)}},del:function(e){if(this._$focusedTag&&this._isCaretAtTheStart()){e.preventDefault(),e.stopPropagation(),this._isTagRemoved=!0;var t=this._$focusedTag;this._moveTagFocus("next",!0),this._preserveFocusedTag=!0,this._removeTagElement(t),delete this._preserveFocusedTag}},enter:function(e){var t=this._list&&null!==this._list.option("focusedElement"),n=this.option("acceptCustomValue")&&!t;return n?(e.preventDefault(),void(""!==this._searchValue()&&this._customItemAddedHandler())):void(this.option("opened")&&(e.preventDefault(),this._keyboardProcessor._childProcessors[0].process(e)))},space:function(e){var t=this.option("opened"),n=this._shouldRenderSearchEvent();t&&!n&&(e.preventDefault(),this._keyboardProcessor._childProcessors[0].process(e))},leftArrow:function(e){if(this._isCaretAtTheStart()){var t=this.option("rtlEnabled");if(!this._isEditable()||!t||this._$focusedTag){e.preventDefault();var n=t?"next":"prev";this._moveTagFocus(n),!this.option("multiline")&&this._scrollContainer(n)}}},rightArrow:function(e){if(this._isCaretAtTheStart()){var t=this.option("rtlEnabled");if(!this._isEditable()||t||this._$focusedTag){e.preventDefault();var n=t?"prev":"next";this._moveTagFocus(n),!this.option("multiline")&&this._scrollContainer(n)}}}})},_allowSelectItemByTab:function(){return!1},_isCaretAtTheStart:function(){var e=(0,O.default)(this._input());return 0===e.start&&0===e.end},_moveTagFocus:function(e,t){if(!this._$focusedTag){var n=this._tagElements();return this._$focusedTag="next"===e?n.first():n.last(),void this._toggleFocusClass(!0,this._$focusedTag)}var i=this._$focusedTag[e]("."+z);i.length>0?this._replaceFocusedTag(i):(t||"next"===e&&this._isEditable())&&this._clearTagFocus()},_replaceFocusedTag:function(e){this._toggleFocusClass(!1,this._$focusedTag),this._$focusedTag=e,this._toggleFocusClass(!0,this._$focusedTag)},_clearTagFocus:function(){this._$focusedTag&&(this._toggleFocusClass(!1,this._$focusedTag),delete this._$focusedTag)},_focusClassTarget:function(e){return e&&e.length&&e[0]!==this._focusTarget()[0]?e:this.callBase()},_scrollContainer:function(e){if(!this.option("multiline")&&(0,w.hasWindow)()&&this._$tagsContainer){var t=this._getScrollPosition(e);this._$tagsContainer.scrollLeft(t)}},_getScrollPosition:function(e){return"start"===e||"end"===e?this._getBorderPosition(e):this._$focusedTag?this._getFocusedTagPosition(e):this._getBorderPosition("end")},_getBorderPosition:function(e){var t=this.option("rtlEnabled"),n="end"===e^t,i=t&&!_.default.webkit,o=!t||_.default.webkit||_.default.msie?1:-1;return n^!i?0:o*(this._$tagsContainer.get(0).scrollWidth-this._$tagsContainer.outerWidth())},_getFocusedTagPosition:function(e){var t=this.option("rtlEnabled"),n="next"===e^t,i=this._$focusedTag.position(),o=i.left,a=this._$tagsContainer.scrollLeft();if(n&&(o+=this._$focusedTag.outerWidth(!0)-this._$tagsContainer.outerWidth()),n^o<0){var r=t&&_.default.msie?-1:1;a+=o*r}return a},_setNextValue:m.noop,_getDefaultOptions:function(){return(0,C.extend)(this.callBase(),{value:[],showDropDownButton:!1,maxFilterLength:1500,tagTemplate:"tag",selectAllText:T.default.format("dxList-selectAll"),hideSelectedItems:!1,selectedItems:[],selectAllMode:"page",onSelectAllValueChanged:null,maxDisplayedTags:void 0,showMultiTagOnly:!0,onMultiTagPreparing:null,multiline:!0,useSubmitBehavior:!0})},_init:function(){this.callBase(),this._selectedItems=[],this._initSelectAllValueChangedAction()},_initActions:function(){this.callBase(),this._initMultiTagPreparingAction()},_initMultiTagPreparingAction:function(){this._multiTagPreparingAction=this._createActionByOption("onMultiTagPreparing",{beforeExecute:function(e){this._multiTagPreparingHandler(e.args[0])}.bind(this),excludeValidators:["disabled","readOnly"]})},_multiTagPreparingHandler:function(e){var t=this._getValue(),n=t.length;this.option("showMultiTagOnly")?e.text=T.default.getFormatter("dxTagBox-selected")(n):e.text=T.default.getFormatter("dxTagBox-moreSelected")(n-this.option("maxDisplayedTags")+1)},_initDynamicTemplates:function(){this.callBase(),this._defaultTemplates.tag=new V.default(function(e,t){var n=(0,r.default)("<div>").addClass(U);(0,r.default)("<span>").text(t.text||t).appendTo(n),(0,r.default)("<div>").addClass(W).appendTo(n),e.append(n)},["text"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter})},_toggleSubmitElement:function(e){e?(this._renderSubmitElement(),this._setSubmitValue()):(this._$submitElement&&this._$submitElement.remove(),delete this._$submitElement)},_renderSubmitElement:function(){this.option("useSubmitBehavior")&&(this._$submitElement=(0,r.default)("<select>").attr("multiple","multiple").css("display","none").appendTo(this.$element()))},_setSubmitValue:function(){if(this.option("useSubmitBehavior")){for(var e=this._getValue(),t=[],n=0,i=e.length;n<i;n++){var o=this._shouldUseDisplayValue(e[n]);t.push((0,r.default)("<option>").val(o?this._displayGetter(e[n]):e[n]).attr("selected","selected"))}this._getSubmitElement().empty().append(t)}},_initMarkup:function(){this._tagElementsCache=(0,r.default)();var e=!this.option("multiline");this.$element().addClass(L).toggleClass(G,!(this.option("searchEnabled")||this.option("acceptCustomValue"))).toggleClass(j,e),this._initTagTemplate(),this.callBase()},_render:function(){this.callBase(),this._renderTagRemoveAction(),this._renderSingleLineScroll(),this._scrollContainer("start")},_initTagTemplate:function(){this._tagTemplate=this._getTemplateByOption("tagTemplate")},_renderField:function(){var e=!(0,b.isDefined)(this.option("fieldTemplate"));this.$element().toggleClass(Y,e).toggleClass(X,!e),this.callBase()},_renderTagRemoveAction:function(){var e=this._createAction(this._removeTagHandler.bind(this)),t=(0,D.addNamespace)(E.name,"dxTagBoxTagRemove");
44h.default.off(this._$tagsContainer,t),h.default.on(this._$tagsContainer,t,"."+W,function(t){e({event:t})}),this._renderTypingEvent()},_renderSingleLineScroll:function(){var e=(0,D.addNamespace)("dxmousewheel",this.NAME),t=this.$element(),n=this.option("multiline");return h.default.off(t,e),"desktop"!==l.default.real().deviceType?void(this._$tagsContainer&&this._$tagsContainer.css("overflowX",n?"":"auto")):void(n||h.default.on(t,e,this._tagContainerMouseWheelHandler.bind(this)))},_tagContainerMouseWheelHandler:function(e){var t=e.delta,n=this._$tagsContainer.scrollLeft();return this._$tagsContainer.scrollLeft(n+t*Q),!1},_renderTypingEvent:function(){var e=this;h.default.on(this._input(),(0,D.addNamespace)("keydown",this.NAME),function(t){var n=(0,D.normalizeKeyName)(t);!e._isControlKey(n)&&e._isEditable()&&e._clearTagFocus()})},_popupWrapperClass:function(){return this.callBase()+" "+q},_renderInput:function(){this.callBase(),this._renderPreventBlur(this._inputWrapper())},_renderInputValueImpl:function(){return this._renderMultiSelect()},_loadInputValue:function(){return(0,y.when)()},_clearTextValue:function(){this._input().val(""),this._toggleEmptinessEventHandler()},_focusInHandler:function(e){this.callBase(e),this._scrollContainer("end")},_restoreInputText:function(){this._clearTextValue()},_focusOutHandler:function(e){this.callBase(e),this._clearTagFocus(),this._scrollContainer("start")},_getFirstPopupElement:function(){return this.option("showSelectionControls")?this._popup._wrapper().find("."+K):this.callBase()},_initSelectAllValueChangedAction:function(){this._selectAllValueChangeAction=this._createActionByOption("onSelectAllValueChanged")},_renderList:function(){if(this.callBase(),this._setListDataSourceFilter(),this.option("showSelectionControls")){var e=this._list.$element().find("."+K),t=e.dxCheckBox("instance");t.registerKeyHandler("tab",this._popupElementTabHandler.bind(this)),t.registerKeyHandler("escape",this._popupElementEscHandler.bind(this))}},_listConfig:function(){var e=this,t=this.option("showSelectionControls")?"all":"multiple";return(0,C.extend)(this.callBase(),{selectionMode:t,selectAllText:this.option("selectAllText"),onSelectAllValueChanged:function(t){var n=t.value;e._selectAllValueChangeAction({value:n})},selectAllMode:this.option("selectAllMode"),selectedItems:this._selectedItems,onFocusedItemChanged:null})},_renderMultiSelect:function(){var e=this,t=new y.Deferred;return this._$tagsContainer=this._$textEditorInputContainer.addClass(H).addClass(Z),this._$tagsContainer.parent().addClass(Z),this._renderInputSize(),this._renderTags().done(function(){e._popup&&e._popup.refreshPosition(),t.resolve()}).fail(t.reject),t.promise()},_listItemClickHandler:function(e){!this.option("showSelectionControls")&&this._clearTextValue(),"useButtons"!==this.option("applyValueMode")&&this.callBase(e)},_shouldClearFilter:function(){var e=this.callBase(),t=this.option("showSelectionControls");return!t&&e},_renderInputSize:function(){var e=this._input();e.prop("size",e.val()?e.val().length+2:1)},_renderInputSubstitution:function(){this.callBase(),this._renderInputSize()},_getValue:function(){return this.option("value")||[]},_multiTagRequired:function(){var e=this._getValue(),t=this.option("maxDisplayedTags");return(0,b.isDefined)(t)&&e.length>t},_renderMultiTag:function(e){var t=(0,r.default)("<div>").addClass(z).addClass(N),n={multiTagElement:(0,x.getPublicElement)(t),selectedItems:this.option("selectedItems")};return this._multiTagPreparingAction(n),!n.cancel&&(t.data(F,n.text),t.insertBefore(e),this._tagTemplate.render({model:n.text,container:(0,x.getPublicElement)(t)}),t)},_getFilteredItems:function(e){var t=this,n=new v.SelectionFilterCreator(e),i=this._list&&this._list.option("selectedItems")||this.option("selectedItems"),o=n.getLocalFilter(this._valueGetter),a=i.filter(o),r=a.length===e.length,s=new y.Deferred;if(r)return s.resolve(a).promise();var l=this._dataSource,u=l.filter(),c=n.getCombinedFilter(this.option("valueExpr"),u),d=encodeURI(JSON.stringify(c)).length,h=d>this.option("maxFilterLength")?void 0:c,p=l.loadOptions(),f=p.customQueryParams,g=p.expand;return l.store().load({filter:h,customQueryParams:f,expand:g}).done(function(e,n){if(t._disposed)return void s.reject();var i=(0,B.normalizeLoadResult)(e,n),a=i.data,r=l._applyMapFunction(a);s.resolve(r.filter(o))}).fail(s.reject),s.promise()},_createTagsData:function(e,t){var n=this,i=[],o={},a="this"===this._valueGetterExpr(),r={};t.forEach(function(e){var t=a?JSON.stringify(e):n._valueGetter(e);r[t]=e});var s=[];e.forEach(function(e,t){var l=r[a?JSON.stringify(e):e];if(a&&!(0,b.isDefined)(l))s.push(n._loadItem(e,o).always(function(o){var a=n._createTagData(i,o,e,t);i.splice(t,0,a)}));else{var u=n._createTagData(i,l,e,t);i.splice(t,0,u)}});var l=new y.Deferred;return y.when.apply(this,s).always(function(){l.resolve(i)}),l.promise()},_createTagData:function(e,t,n,i){if((0,b.isDefined)(t))return this._selectedItems.push(t),t;var o=this.option("selectedItem"),a=this._valueGetter(o)===n?o:n;return a},_loadTagsData:function(){var e=this,t=this._getValue(),n=new y.Deferred;return this._selectedItems=[],this._getFilteredItems(t).done(function(i){var o=e._createTagsData(t,i);o.always(function(e){n.resolve(e)})}).fail(n.reject.bind(this)),n.promise()},_renderTags:function(){var e=this,t=new y.Deferred;return this._loadTagsData().always(function(n){return e._disposed?void t.reject():(e._renderTagsCore(n),e._renderEmptyState(),e._preserveFocusedTag||e._clearTagFocus(),void t.resolve())}),t.promise()},_renderTagsCore:function(e){var t=this;this._renderField(),this.option("selectedItems",this._selectedItems.slice()),this._cleanTags();var n=this._multiTagRequired()&&this._renderMultiTag(this._input()),i=this.option("showMultiTagOnly"),o=this.option("maxDisplayedTags");e.forEach(function(e,a){return!(n&&i||n&&!i&&a-o>=-1)&&void t._renderTag(e,n||t._input())}),this._scrollContainer("end"),this._refreshTagElements()},_cleanTags:function(){if(this._multiTagRequired())this._tagElements().remove();else{var e=this._tagElements(),t=this._getValue();(0,S.each)(e,function(e,n){var i=(0,r.default)(n),o=(0,k.inArray)(i.data(F),t);o<0&&i.remove()})}},_renderEmptyState:function(){var e=!(this._getValue().length||this._selectedItems.length||this._searchValue());this._toggleEmptiness(e),this._renderDisplayText()},_renderDisplayText:function(){this._renderInputSize()},_refreshTagElements:function(){this._tagElementsCache=this.$element().find("."+z)},_tagElements:function(){return this._tagElementsCache},_applyTagTemplate:function(e,t){this._tagTemplate.render({model:e,container:(0,x.getPublicElement)(t)})},_renderTag:function(e,t){var n=this._valueGetter(e);if((0,b.isDefined)(n)){var i=this._getTag(n),o=this._displayGetter(e),a=this._getItemModel(e,o);i?((0,b.isDefined)(o)&&(i.empty(),this._applyTagTemplate(a,i)),i.removeClass($)):(i=this._createTag(n,t),(0,b.isDefined)(e)?this._applyTagTemplate(a,i):(i.addClass($),this._applyTagTemplate(n,i)))}},_getItemModel:function(e,t){return(0,b.isObject)(e)&&t?e:(0,m.ensureDefined)(t,"")},_getTag:function(e){for(var t=this._tagElements(),n=t.length,i=!1,o=0;o<n;o++){var a=t[o],s=c.default.data(a,F);if(e===s||(0,m.equalByValue)(e,s)){i=(0,r.default)(a);break}}return i},_createTag:function(e,t){return(0,r.default)("<div>").addClass(z).data(F,e).insertBefore(t)},_toggleEmptinessEventHandler:function(){this._toggleEmptiness(!this._getValue().length&&!this._searchValue().length)},_customItemAddedHandler:function(e){this.callBase(e),this._input().val("")},_removeTagHandler:function(e){var t=e.event;t.stopPropagation(),this._saveValueChangeEvent(t);var n=(0,r.default)(t.target).closest("."+z);this._removeTagElement(n)},_removeTagElement:function(e){if(e.hasClass(N))return void(this.option("showMultiTagOnly")?this.reset():this.option("value",this._getValue().slice(0,this.option("maxDisplayedTags"))));var t=e.data(F);this._removeTagWithUpdate(t),this._refreshTagElements()},_updateField:m.noop,_removeTagWithUpdate:function(e){var t=this._getValue().slice();this._removeTag(t,e),this.option("value",t),0===t.length&&this._clearTagFocus()},_getCurrentValue:function(){return this._lastValue()},_selectionChangeHandler:function(e){var t=this;if("useButtons"!==this.option("applyValueMode")){var n=this._getValue().slice();(0,S.each)(e.removedItems||[],function(e,i){t._removeTag(n,t._valueGetter(i))}),(0,S.each)(e.addedItems||[],function(e,i){t._addTag(n,t._valueGetter(i))}),this._updateWidgetHeight(),this.option("value",n)}},_removeTag:function(e,t){var n=this._valueIndex(t,e);n>=0&&e.splice(n,1)},_addTag:function(e,t){var n=this._valueIndex(t);n<0&&e.push(t)},_fieldRenderData:function(){return this._selectedItems.slice()},_completeSelection:function(e){this.option("showSelectionControls")||this._setValue(e)},_setValue:function(e){if(null!==e){var t="useButtons"===this.option("applyValueMode"),n=this._valueIndex(e),i=(t?this._list.option("selectedItemKeys"):this._getValue()).slice();n>=0?i.splice(n,1):i.push(e),"useButtons"===this.option("applyValueMode")?this._list.option("selectedItemKeys",i):this.option("value",i)}},_isSelectedValue:function(e,t){return this._valueIndex(e,null,t)>-1},_valueIndex:function(e,t,n){var i=this,a=-1;return n&&"object"!==("undefined"==typeof e?"undefined":o(e))&&(n.indexByValues||(n.indexByValues={},t=t||this._getValue(),t.forEach(function(e,t){n.indexByValues[e]=t})),e in n.indexByValues)?n.indexByValues[e]:(t=t||this._getValue(),(0,S.each)(t,function(t,n){if(i._isValueEquals(e,n))return a=t,!1}),a)},_lastValue:function(){var e=this._getValue(),t=e[e.length-1];return(0,b.isDefined)(t)?t:null},_valueChangeEventHandler:m.noop,_shouldRenderSearchEvent:function(){return this.option("searchEnabled")||this.option("acceptCustomValue")},_searchHandler:function(e){this.option("searchEnabled")&&e&&!this._isTagRemoved&&this.callBase(e),this._updateWidgetHeight(),delete this._isTagRemoved},_updateWidgetHeight:function(){var e=this.$element(),t=e.height();this._renderInputSize();var n=e.height();this._popup&&this.option("opened")&&this._isEditable()&&n!==t&&this._popup.repaint()},_refreshSelected:function(){this._list&&this._list.option("selectedItems",this._selectedItems)},_resetListDataSourceFilter:function(){var e=this._getDataSource();e&&(delete this._userFilter,e.filter(null),e.reload())},_setListDataSourceFilter:function(){if(this.option("hideSelectedItems")&&this._list){var e=this._getDataSource();if(e){var t=this._valueGetterExpr();if((0,b.isString)(t)&&"this"!==t){var n=this._dataSourceFilterExpr();void 0===this._userFilter&&(this._userFilter=e.filter()||null),this._userFilter&&n.push(this._userFilter),n.length?e.filter(n):e.filter(null)}else e.filter(this._dataSourceFilterFunction.bind(this));e.load()}}},_dataSourceFilterExpr:function(){var e=this,t=[];return(0,S.each)(this._getValue(),function(n,i){t.push(["!",[e._valueGetterExpr(),i]])}),t},_dataSourceFilterFunction:function(e){var t=this,n=this._valueGetter(e),i=!0;return(0,S.each)(this._getValue(),function(e,o){if(t._isValueEquals(o,n))return i=!1,!1}),i},_applyButtonHandler:function(){this.option("value",this._getSortedListValues()),this._clearTextValue(),this._clearFilter(),this.callBase()},_getSortedListValues:function(){var e=this._getListValues(),t=this.option("value")||[],n=e.length?t.filter(function(t){return e.indexOf(t)!==-1}):[],i=n.length?e.filter(function(e){return t.indexOf(e)===-1}):e;return n.concat(i)},_getListValues:function(){var e=this;if(!this._list)return[];var t=this._getPlainItems(this._list.option("selectedItems")),n=[];return(0,S.each)(t,function(t,i){n[t]=e._valueGetter(i)}),n},_renderOpenedState:function(){this.callBase(),"useButtons"!==this.option("applyValueMode")||this.option("opened")||this._refreshSelected()},reset:function(){this._restoreInputText(),this.callBase()},_clean:function(){this.callBase(),delete this._defaultTagTemplate,delete this._tagTemplate},_removeDuplicates:function(e,t){var n=this,i=[];return(0,S.each)(e,function(e,o){var a=t.filter(function(e){return n._valueGetter(o)===n._valueGetter(e)});a.length||i.push(o)}),i},_optionChanged:function(e){switch(e.name){case"onSelectAllValueChanged":this._initSelectAllValueChangedAction();break;case"onMultiTagPreparing":this._initMultiTagPreparingAction(),this._renderTags();break;case"hideSelectedItems":e.value?this._setListDataSourceFilter():this._resetListDataSourceFilter();break;case"useSubmitBehavior":this._toggleSubmitElement(e.value);break;case"displayExpr":this.callBase(e),this._initTemplates(),this._invalidate();break;case"tagTemplate":this._initTagTemplate(),this._invalidate();break;case"selectAllText":this._setListOption("selectAllText",this.option("selectAllText"));break;case"value":this.callBase(e),this._setListDataSourceFilter();break;case"maxDisplayedTags":case"showMultiTagOnly":this._renderTags();break;case"selectAllMode":this._setListOption(e.name,e.value);break;case"selectedItem":break;case"selectedItems":this._selectionChangedAction({addedItems:this._removeDuplicates(e.value,e.previousValue),removedItems:this._removeDuplicates(e.previousValue,e.value)});break;case"multiline":this.$element().toggleClass(j,!e.value),this._renderSingleLineScroll();break;case"maxFilterLength":break;default:this.callBase(e)}},_getActualSearchValue:function(){return this.callBase()||this._searchValue()},_popupHidingHandler:function(){this.callBase(),this._clearFilter()}});(0,f.default)("dxTagBox",J),e.exports=J},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(4),u=n(7),c=i(u),d=n(9),h=i(d),p=n(0),f=n(1),g=n(8),_=i(g),m=n(24),v=i(m),y=n(303),x=i(y),b=n(173),w=i(b),C=n(92),k=i(C),S="dx-textarea",I="dx-texteditor-input",T="dx-texteditor-input-auto-resize",D=k.default.inherit({_getDefaultOptions:function(){return(0,p.extend)(this.callBase(),{spellcheck:!0,minHeight:void 0,maxHeight:void 0,autoResizeEnabled:!1})},_initMarkup:function(){this.$element().addClass(S),this.callBase(),this.setAria("multiline","true")},_renderContentImpl:function(){this._updateInputHeight(),this.callBase()},_renderInput:function(){this.callBase(),this._renderScrollHandler()},_createInput:function(){var e=(0,a.default)("<textarea>");return this._applyInputAttributes(e,this.option("inputAttr")),this._updateInputAutoResizeAppearance(e),e},_applyInputAttributes:function(e,t){e.attr(t).addClass(I)},_renderScrollHandler:function(){var e=this;this._eventY=0;var t=this._input(),n={validate:function(t){if(_.default.isDxMouseWheelEvent(t)&&(0,a.default)(t.target).is(e._input()))return!!e._allowScroll(-t.delta,t.shiftKey)&&(t._needSkipEvent=!0,!0)}};s.default.on(t,_.default.addNamespace(x.default.init,this.NAME),n,l.noop),s.default.on(t,_.default.addNamespace(v.default.down,this.NAME),this._pointerDownHandler.bind(this)),s.default.on(t,_.default.addNamespace(v.default.move,this.NAME),this._pointerMoveHandler.bind(this))},_pointerDownHandler:function(e){this._eventY=_.default.eventData(e).y},_pointerMoveHandler:function(e){var t=_.default.eventData(e).y,n=this._eventY-t;return!!this._allowScroll(n)&&(e.isScrollingEvent=!0,e.stopPropagation(),void(this._eventY=t))},_allowScroll:function(e,t){var n=this._input(),i=t?n.scrollLeft():n.scrollTop(),o=t?"Width":"Height",a=n.prop("scroll"+o)-n.prop("client"+o)-i;if(0===i&&0===a)return!1;var r=0===i&&e>=0,s=0===a&&e<=0,l=i>0&&a>0;return!!(r||s||l)||void 0},_renderDimensions:function(){var e=this.$element(),t=e.get(0),n=this._getOptionValue("width",t),i=this._getOptionValue("height",t),o=this.option("minHeight"),a=this.option("maxHeight");e.css({minHeight:void 0!==o?o:"",maxHeight:void 0!==a?a:"",width:n,height:i})},_resetDimensions:function(){this.$element().css({height:"",minHeight:"",maxHeight:""})},_renderEvents:function(){this.option("autoResizeEnabled")&&s.default.on(this._input(),_.default.addNamespace("input paste",this.NAME),this._updateInputHeight.bind(this)),this.callBase()},_refreshEvents:function(){s.default.off(this._input(),_.default.addNamespace("input paste",this.NAME)),this.callBase()},_getHeightDifference:function(e){return w.default.getVerticalOffsets(this._$element.get(0),!1)+w.default.getVerticalOffsets(this._$textEditorContainer.get(0),!1)+w.default.getVerticalOffsets(this._$textEditorInputContainer.get(0),!1)+w.default.getElementBoxParams("height",c.default.getWindow().getComputedStyle(e.get(0))).margin},_updateInputHeight:function(){var e=this._input(),t=void 0===this.option("height")&&this.option("autoResizeEnabled");if(!t)return void e.css("height","");this._resetDimensions(),this._$element.css("height",this._$element.outerHeight()),e.css("height",0);var n=this._getHeightDifference(e);this._renderDimensions();var i=this._getBoundaryHeight("minHeight"),o=this._getBoundaryHeight("maxHeight"),a=e[0].scrollHeight;void 0!==i&&(a=Math.max(a,i-n)),void 0!==o&&(a=Math.min(a,o-n)),e.css("height",a),t&&this._$element.css("height","auto")},_getBoundaryHeight:function(e){var t=this.option(e);if((0,f.isDefined)(t))return"number"==typeof t?t:w.default.parseHeight(t,this._$textEditorContainer.get(0))},_renderInputType:l.noop,_visibilityChanged:function(e){e&&this._updateInputHeight()},_updateInputAutoResizeAppearance:function(e){e&&e.toggleClass(T,this.option("autoResizeEnabled"))},_optionChanged:function(e){switch(e.name){case"autoResizeEnabled":this._updateInputAutoResizeAppearance(this._input()),this._refreshEvents(),this._updateInputHeight();break;case"value":case"height":this.callBase(e),this._updateInputHeight();break;case"minHeight":case"maxHeight":this._renderDimensions(),this._updateInputHeight();break;case"visible":this.callBase(e),e.value&&this._updateInputHeight();break;default:this.callBase(e)}}});(0,h.default)("dxTextArea",D),e.exports=D},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(11),s=i(r),l=n(5),u=i(l),c=n(43),d=i(c),h=n(9),p=i(h),f=n(4),g=n(1),_=i(g),m=n(12),v=n(3),y=n(13),x=n(0),b=n(7),w=i(b),C=n(38),k=i(C),S=n(76),I=i(S),T=n(16),D=i(T),E=n(8),A=i(E),O=n(60),B=i(O),P=n(331),M=i(P),R=n(6),V="dx-menu",F=V+"-item",L=F+"-expanded",H="dx-menu-phone-overlay",z=V+"-items-container",N=F+"-wrapper",$="dx-submenu",W="dx-context-menu",G="dx-has-context-menu",j="dx-state-disabled",q="up",K="down",U="left",Y="right",X="first",Z="last",Q=["onShowing","onShown","onSubmenuCreated","onHiding","onHidden","onPositioning","onLeftFirstItem","onLeftLastItem","onCloseRootSubmenu","onExpandLastSubmenu"],J=[q,K,X,Z],ee="dxcontextmenu",te=M.default.inherit(function(){var e=function(e){var t=null,n=e.option("showEvent");return _.default.isObject(n)?null!==n.name&&(t=n.name||ee):t=n,t},t=function(e){var t=e.option("showEvent");return _.default.isObject(t)&&t.delay};return{_getDefaultOptions:function(){return(0,x.extend)(this.callBase(),{showEvent:ee,closeOnOutsideClick:!0,position:{at:"top left",my:"top left"},onShowing:null,onShown:null,onSubmenuCreated:null,onHiding:null,onHidden:null,onPositioning:null,submenuDirection:"auto",visible:!1,target:void 0,onLeftFirstItem:null,onLeftLastItem:null,onCloseRootSubmenu:null,onExpandLastSubmenu:null})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!w.default.hasWindow()},options:{animation:null}}])},_initActions:function(){this._actions={},(0,v.each)(Q,function(e,t){this._actions[t]=this._createActionByOption(t)||f.noop}.bind(this))},_setOptionsByReference:function(){this.callBase(),(0,x.extend)(this._optionsByReference,{animation:!0,selectedItem:!0})},_focusInHandler:f.noop,_itemContainer:function(){return this._overlay?this._overlay.$content():(0,a.default)()},_eventBindingTarget:function(){return this._itemContainer()},itemsContainer:function(){return this._overlay?this._overlay.$content():void 0},_supportedKeys:function(){var e=function(){var e=(0,a.default)(this.option("focusedElement"));this.hide(),e.length&&this._isSelectionEnabled()&&this.selectItem(e[0])};return(0,x.extend)(this.callBase(),{space:e,esc:this.hide})},_getActiveItem:function(){var e=this._getAvailableItems(),t=e.filter(".dx-state-focused"),n=e.filter(".dx-state-hover"),i=n.closest("."+z);return i.find("."+F).index(t)>=0?t:n.length?n:this.callBase()},_moveFocus:function(e){var t,n=this._getItemsByLocation(e),i=this._getActiveItem(!0),o=this.itemsContainer().find(".dx-state-hover"),r=(0,a.default)(this.option("focusedElement")),s=!(!r.length&&!o.length);switch(e){case q:t=s?this._prevItem(n):i,i.is(n.first())&&this._actions.onLeftFirstItem(i);break;case K:t=s?this._nextItem(n):i,i.is(n.last())&&this._actions.onLeftLastItem(i);break;case Y:t=this.option("rtlEnabled")?this._hideSubmenuHandler():this._expandSubmenuHandler(n,e);break;case U:t=this.option("rtlEnabled")?this._expandSubmenuHandler(n,e):this._hideSubmenuHandler();break;case X:t=n.first();break;case Z:t=n.last();break;default:return this.callBase(e)}0!==t.length&&this.option("focusedElement",(0,m.getPublicElement)(t))},_getItemsByLocation:function(e){var t,n=this._getActiveItem(!0);return(0,y.inArray)(e,J)>=0&&(t=n.closest("."+z).children().children()),t=this._getAvailableItems(t)},_getAriaTarget:function(){return this.$element()},_refreshActiveDescendant:function(){if(this._overlay){var e=this.getFocusedItemId();this.setAria("activedescendant","",this._overlay.$content()),this.setAria("activedescendant",e,this._overlay.$content())}},_hideSubmenuHandler:function(){var e=this._getActiveItem(!0),t=e.parents("."+L).first();return t.length?(this._hideSubmenusOnSameLevel(t),this._hideSubmenu(e.closest("."+$)),t):(this._actions.onCloseRootSubmenu(e),e)},_expandSubmenuHandler:function(e,t){var n=this._getActiveItem(!0),i=this._getItemData(n),o=this._dataAdapter.getNodeByItem(i),a=this._hasSubmenu(o),r=n.children("."+$);return a&&!n.hasClass(j)?(r.length&&"hidden"!==r.css("visibility")||this._showSubmenu(n),this._nextItem(this._getItemsByLocation(t))):(this._actions.onExpandLastSubmenu(n),n)},_clean:function(){this._overlay&&(this._overlay.$element().remove(),this._overlay=null),this._detachShowContextMenuEvents(this._getTarget()),this.callBase()},_initMarkup:function(){this.$element().addClass(G),this.callBase()},_render:function(){this.callBase(),this._renderVisibility(this.option("visible")),this._addWidgetClass()},_renderContentImpl:function(){this._detachShowContextMenuEvents(this._getTarget()),this._attachShowContextMenuEvents()},_attachKeyboardEvents:function(){!this._keyboardProcessor&&this._focusTarget().length&&this.callBase()},_renderContextMenuOverlay:function(){if(!this._overlay){var e,t=this._getOverlayOptions(),n=(0,a.default)("<div>");this._overlay=this._createComponent(n.appendTo(this._$element),B.default,t),e=this._overlay.$content(),e.addClass(W),this._addCustomCssClass(e),this._addPlatformDependentClass(e),this._attachContextMenuEvent()}},_itemContextMenuHandler:function(e){this.callBase(e),e.stopPropagation()},_addPlatformDependentClass:function(e){D.default.current().phone&&e.addClass(H)},_detachShowContextMenuEvents:function(t){var n,i=e(this);i&&(n=A.default.addNamespace(i,this.NAME),this._showContextMenuEventHandler?u.default.off(s.default.getDocument(),n,t,this._showContextMenuEventHandler):u.default.off((0,a.default)(t),n))},_attachShowContextMenuEvents:function(){var n,i,o,r,l=this,c=l._getTarget(),d=e(l);d&&(o=A.default.addNamespace(d,l.NAME),r=l._createAction(function(e){n=t(l),n?setTimeout(function(){l._show(e.event)},n):l._show(e.event)}.bind(l),{validatingTargetName:"target"}),i=function(e){r({event:e,target:(0,a.default)(e.currentTarget)})},r=l._createAction(r),_.default.isRenderer(c)||c.nodeType||_.default.isWindow(c)?(l._showContextMenuEventHandler=void 0,u.default.on(c,o,i)):(l._showContextMenuEventHandler=i,u.default.on(s.default.getDocument(),o,c,l._showContextMenuEventHandler)))},_hoverEndHandler:function(e){this.callBase(e),e.stopPropagation()},_renderDimensions:f.noop,_renderContainer:function(e,t){var n,i=t||this._itemContainer();return e=(0,a.default)("<div>"),e.appendTo(i).addClass($).css("visibility",t?"hidden":"visible"),n=this.callBase(e),t?n:this.option("width")?n.css("minWidth",this.option("width")):this.option("height")?n.css("minHeight",this.option("height")):n},_renderSubmenuItems:function(e,t){this._renderItems(this._getChildNodes(e),t),this._actions.onSubmenuCreated({itemElement:(0,m.getPublicElement)(t),itemData:e.internalFields.item,submenuElement:(0,m.getPublicElement)(t.children("."+$))})},_getOverlayOptions:function(){var e=this.option("position"),t=this.option("animation"),n={focusStateEnabled:this.option("focusStateEnabled"),animation:t,innerOverlay:!0,closeOnOutsideClick:this._closeOnOutsideClickHandler.bind(this),propagateOutsideClick:!0,closeOnTargetScroll:!0,deferRendering:!1,position:{at:e.at,my:e.my,of:this._getTarget(),collision:"flipfit"},shading:!1,showTitle:!1,height:"auto",width:"auto",onShown:this._overlayShownActionHandler.bind(this),onHiding:this._overlayHidingActionHandler.bind(this),onHidden:this._overlayHiddenActionHandler.bind(this)};return n},_overlayShownActionHandler:function(e){this._actions.onShown(e)},_overlayHidingActionHandler:function(e){this._actions.onHiding(e),e.cancel||(this._hideAllShownSubmenus(),this._setOptionSilent("visible",!1))},_overlayHiddenActionHandler:function(e){this._actions.onHidden(e)},_closeOnOutsideClickHandler:function(e){var t,n,i,o,a,r,l=this.option("closeOnOutsideClick");return _.default.isFunction(l)?l(e):!!l&&(!!s.default.isDocument(e.target)||(n=this._getActiveItemsContainer(e.target),i=this._getItemsContainers(),t=this._searchActiveItem(e.target),o=this.$element().parents("."+F),a=t[0]===o[0]&&t.length&&o.length,r=this._isIncludeOverlay(n,i)&&t.length,!r&&!a||("onClick"===this._getShowSubmenuMode()&&this._hideAllShownChildSubmenus(t),!1)))},_getActiveItemsContainer:function(e){return(0,a.default)(e).closest("."+z)},_getItemsContainers:function(){return this._overlay._$content.find("."+z)},_searchActiveItem:function(e){return(0,a.default)(e).closest("."+F).eq(0)},_isIncludeOverlay:function(e,t){var n=!1;return(0,v.each)(t,function(t,i){e.is(i)&&!n&&(n=!0)}),n},_hideAllShownChildSubmenus:function(e){var t,n=this,i=e.find("."+$),o=(0,x.extend)([],this._shownSubmenus);i.length>0&&(0,v.each)(o,function(i,o){t=n._searchActiveItem(o.context).parent(),t.parent().is(e.parent().parent())&&!t.is(e.parent())&&n._hideSubmenu(o)})},_showSubmenu:function(e){var t=this._dataAdapter.getNodeByItem(this._getItemData(e));if(this._hideSubmenusOnSameLevel(e),this._hasSubmenu(t)){var n=e.children("."+$),i=n.length;this.callBase(e),i||this._renderSubmenuItems(t,e),this._isSubmenuVisible(n)||this._drawSubmenu(e)}},_hideSubmenusOnSameLevel:function(e){var t=e.parent("."+N).siblings().find("."+L);t.length&&(t.removeClass(L),this._hideSubmenu(t.find("."+$)))},_hideSubmenuGroup:function(e){this._isSubmenuVisible(e)&&this._hideSubmenuCore(e)},_isSubmenuVisible:function(e){return"visible"===e.css("visibility")},_drawSubmenu:function(e){var t=this.option("animation")?this.option("animation").show:{},n=e.children("."+$),i=this._getSubmenuPosition(e);this._overlay&&this._overlay.option("visible")&&(_.default.isDefined(this._shownSubmenus)||(this._shownSubmenus=[]),(0,y.inArray)(n,this._shownSubmenus)&&this._shownSubmenus.push(n),t&&k.default.stop(n),I.default.setup(n,i),t&&(_.default.isPlainObject(t.to)&&(t.to.position=i),this._animate(n,t)),n.css("visibility","visible"))},_animate:function(e,t){k.default.animate(e,t)},_getSubmenuPosition:function(e){var t=this.option("submenuDirection").toLowerCase(),n=e.parent("."+N),i={collision:"flip",of:n,offset:{h:0,v:-1}};switch(t){case"left":i.at="left top",i.my="right top";break;case"right":i.at="right top",i.my="left top";break;default:this.option("rtlEnabled")?(i.at="left top",i.my="right top"):(i.at="right top",i.my="left top")}return i},_updateSubmenuVisibilityOnClick:function(e){if(e.args.length){var t=(0,a.default)(e.args[0].itemElement),n=e.args[0].itemData,i=this._dataAdapter.getNodeByItem(n);if(i){var o=t.find("."+$),r=this._hasSubmenu(i)&&!o.length;if(r&&(this._renderSubmenuItems(i,t),o=t.find("."+$)),t.context!==o.context||"visible"!==o.css("visibility")){var s=n&&n.closeMenuOnClick===!1;if(n&&!n.disabled&&!s)if(this._updateSelectedItemOnClick(e),0===o.length){var l=(0,a.default)(t.parents("."+$)[0]);this._hideSubmenu(l),!e.canceled&&this._overlay&&this._overlay.option("visible")&&this.option("visible",!1)}else this._shownSubmenus&&this._shownSubmenus.length>0&&this._shownSubmenus[0].is(o)&&this._hideSubmenu(o),this._showSubmenu(t)}}}},_hideSubmenu:function(e){var t=this,n=(0,x.extend)([],t._shownSubmenus);(0,v.each)(n,function(n,i){(e.is(i)||(0,m.contains)(e[0],i[0]))&&(i.parent().removeClass(L),t._hideSubmenuCore(i))})},_hideSubmenuCore:function(e){var t=(0,y.inArray)(e,this._shownSubmenus),n=this.option("animation")?this.option("animation").hide:null;t>=0&&this._shownSubmenus.splice(t,1),this._stopAnimate(e),n&&this._animate(e,n),e.css("visibility","hidden")},_stopAnimate:function(e){k.default.stop(e,!0)},_hideAllShownSubmenus:function(){var e=this,t=(0,x.extend)([],e._shownSubmenus),n=this._overlay.$content().find("."+L);n.removeClass(L),(0,v.each)(t,function(t,n){e._hideSubmenu(n)})},_visibilityChanged:function(e){e&&this._renderContentImpl()},_optionChanged:function(e){if((0,y.inArray)(e.name,Q)>-1)return void this._initActions();switch(e.name){case"visible":this._renderVisibility(e.value);break;case"showEvent":case"position":case"submenuDirection":this._invalidate();break;case"target":e.previousValue&&this._detachShowContextMenuEvents(e.previousValue),this._invalidate();break;case"closeOnOutsideClick":break;default:this.callBase(e)}},_renderVisibility:function(e){return e?this._show():this._hide()},_toggleVisibility:f.noop,_show:function(e){var t={jQEvent:e},n=(new R.Deferred).reject().promise();if(this._actions.onShowing(t),t.cancel)return n;var i=this._positionContextMenu(e);if(i){this._overlay||(this._renderContextMenuOverlay(),this._overlay.$content().addClass(this._widgetClass()),this._renderFocusState(),this._attachHoverEvents(),this._attachClickEvent(),this._renderItems(this._dataAdapter.getRootNodes())),this._setOptionSilent("visible",!0),this._overlay.option("position",i),n=this._overlay.show(),e&&e.stopPropagation();var o="dx-"+new d.default;this._overlay.$content().attr({id:o,role:"menu"}),this.setAria("owns",o)}return n},_getTarget:function(){return this.option("target")||this.option("position").of||(0,a.default)(s.default.getDocument())},_getContextMenuPosition:function(){return(0,x.extend)({},this.option("position"),{of:this._getTarget()})},_positionContextMenu:function(e){var t,n=this._getContextMenuPosition(),i=this._isInitialOptionValue("position"),o=this._createActionByOption("onPositioning",t);return e&&e.preventDefault&&i&&(n.of=e),t={position:n,event:e},o(t),t.cancel?n=null:t.event&&(t.event.cancel=!0,e.preventDefault()),n},_refresh:function(){if(w.default.hasWindow())if(this._overlay){var e=this._overlay.option("position");this.callBase(),this._overlay&&this._overlay.option("position",e)}else this.callBase();else this.callBase()},_hide:function(){var e;return this._overlay&&(this._overlay.$content().removeAttr("id"),e=this._overlay.hide(),this._setOptionSilent("visible",!1)),this.setAria("owns",void 0),e||(new R.Deferred).reject().promise()},toggle:function(e){var t=this.option("visible");return e=void 0===e?!t:e,this._renderVisibility(e)},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)}}}());(0,p.default)("dxContextMenu",te),e.exports=te},function(e,t,n){var i=n(2),o=n(4),a=n(1),r=n(3).each,s=n(0).extend,l=n(72),u=n(332),c=n(603),d=n(16),h="dx-menu",p=h+"-no-icons",f="dx-menu-base",g=h+"-item",_=g+"-content",m=g+"-selected",v=g+"-wrapper",y=h+"-items-container",x=g+"-expanded",b=h+"-separator",w=h+"-last-group-item",C=g+"-has-text",k=g+"-has-icon",S=g+"-has-submenu",I=g+"-popout",T=I+"-container",D=g+"-text",E="single",A={show:50,hide:300},O=u.inherit({
45_getDefaultOptions:function(){return s(this.callBase(),{items:[],cssClass:"",activeStateEnabled:!0,showSubmenuMode:{name:"onHover",delay:{show:50,hide:300}},animation:{show:{type:"fade",from:0,to:1,duration:100},hide:{type:"fade",from:1,to:0,duration:100}},selectByClick:!1,focusOnSelectedItem:!1,keyExpr:null,_itemAttributes:{role:"menuitem"},useInkRipple:!1})},_activeStateUnit:"."+g,_itemDataKey:function(){return"dxMenuItemDataKey"},_itemClass:function(){return g},_setAriaSelected:o.noop,_selectedItemClass:function(){return m},_widgetClass:function(){return f},_focusTarget:function(){return this._itemContainer()},_clean:function(){this.option("focusedElement",null),this.callBase()},_supportedKeys:function(){var e=function(){var e=i(this.option("focusedElement"));e.length&&this._isSelectionEnabled()&&this.selectItem(e[0])};return s(this.callBase(),{space:e,pageUp:o.noop,pageDown:o.noop})},_isSelectionEnabled:function(){return this.option("selectionMode")===E},_init:function(){this.callBase(),this._renderSelectedItem(),this._initActions()},_getTextContainer:function(e){var t=e.text,n=i("<span>").addClass(D),o=a.isPlainObject(e)?t:String(e);return t&&n.text(o)},_getPopoutContainer:function(e){var t,n=e.items;if(n&&n.length){var o=i("<div>").addClass(I);t=i("<span>").addClass(T).append(o)}return t},_getDataAdapterOptions:function(){return{rootValue:0,multipleSelection:!1,recursiveSelection:!1,recursiveExpansion:!1,searchValue:""}},_selectByItem:function(e){if(e){var t=this._dataAdapter.getNodeByItem(e);this._dataAdapter.toggleSelection(t.internalFields.key,!0)}},_renderSelectedItem:function(){var e=this._dataAdapter.getSelectedNodesKeys(),t=e.length&&e[0],n=this.option("selectedItem");if(!t)return void this._selectByItem(n);var i=this._dataAdapter.getNodeByKey(t);if(i.selectable!==!1)return n?void(n!==i.internalFields.item&&(this._dataAdapter.toggleSelection(t,!1),this._selectByItem(n))):void this.option("selectedItem",i.internalFields.item)},_initActions:o.noop,_initMarkup:function(){this.callBase(),this._addCustomCssClass(this.$element()),this.option("useInkRipple")&&this._renderInkRipple()},_renderInkRipple:function(){this._inkRipple=l.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)}},_getShowSubmenuMode:function(){var e="onClick",t=this.option("showSubmenuMode");return t=a.isObject(t)?t.name:t,this._isDesktopDevice()?t:e},_initSelectedItems:o.noop,_isDesktopDevice:function(){return"desktop"===d.real().deviceType},_initEditStrategy:function(){var e=c;this._editStrategy=new e(this)},_addCustomCssClass:function(e){e.addClass(this.option("cssClass"))},_itemWrapperSelector:function(){return"."+v},_hoverStartHandler:function(e){var t=this,n=t._getItemElementByEventArgs(e);n&&!t._isItemDisabled(n)&&(e.stopPropagation(),"onHover"===t._getShowSubmenuMode()&&(clearTimeout(this._showSubmenusTimeout),this._showSubmenusTimeout=setTimeout(t._showSubmenu.bind(t,n),t._getSubmenuDelay("show"))))},_getAvailableItems:function(e){return this.callBase(e).filter(function(){return"hidden"!==i(this).css("visibility")})},_isItemDisabled:function(e){return this._disabledGetter(e.data(this._itemDataKey()))},_showSubmenu:function(e){this._addExpandedClass(e)},_addExpandedClass:function(e){i(e).addClass(x)},_getSubmenuDelay:function(e){var t=this.option("showSubmenuMode").delay;return a.isDefined(t)?a.isObject(t)?t[e]:t:A[e]},_getItemElementByEventArgs:function(e){var t=i(e.target);if(t.hasClass(this._itemClass())||t.get(0)===e.currentTarget)return t;for(;!t.hasClass(this._itemClass());)if(t=t.parent(),t.hasClass("dx-submenu"))return null;return t},_hoverEndHandler:function(){clearTimeout(this._showSubmenusTimeout)},_hasSubmenu:function(e){return e.internalFields.childrenKeys.length},_renderContentImpl:function(){this._renderItems(this._dataAdapter.getRootNodes())},_renderItems:function(e,t){var n,i=this;if(e.length){this.hasIcons=!1,n=this._renderContainer(this.$element(),t);var o=-1,a=-1;r(e,function(e,t){var r=t.visible!==!1;r&&o<0&&(o=e);var s=o<e&&(t.beginGroup||e===a);s&&(a=r?e:e+1),e===a&&o<e&&i._renderSeparator(n),i._renderItem(e,t,n)}),this.hasIcons||n.addClass(p)}},_renderContainer:function(e){return i("<ul>").appendTo(e).addClass(y)},_createDOMElement:function(e){var t=i("<li>").appendTo(e).addClass(v);return t},_renderItem:function(e,t,n,i){var o,a=this.option("items");if(t.internalFields.item.visible!==!1){var r=i||this._createDOMElement(n);a[e+1]&&a[e+1].beginGroup&&r.addClass(w),o=this.callBase(e,t.internalFields.item,r),t.internalFields.item===this.option("selectedItem")&&o.addClass(m),o.attr("tabIndex",-1),this._hasSubmenu(t)&&this.setAria("haspopup","true",o)}},_renderItemFrame:function(e,t,n){var i=n.children("."+g);return i.length?i:this.callBase.apply(this,arguments)},_refreshItem:function(e,t){var n=this._dataAdapter.getNodeByItem(t),i=e.data(this._itemIndexKey()),o=e.closest("ul"),a=e.closest("li");this._renderItem(i,n,o,a)},_addContentClasses:function(e,t){var n=!!e.text&&!!e.text.length,i=!!e.icon,o=!!e.items&&!!e.items.length;t.toggleClass(C,n),t.toggleClass(k,i),this.hasIcons||(this.hasIcons=i),t.toggleClass(S,o)},_getItemContent:function(e){var t=this.callBase(e);return t.length||(t=e.children("."+_)),t},_postprocessRenderItem:function(e){var t,n=i(e.itemElement),o=this._dataAdapter.getSelectedNodesKeys();return o.length&&this._selectedGetter(e.itemData)&&this._isItemSelectable(e.itemData)?(t=this._dataAdapter.getNodeByItem(e.itemData),void(t.internalFields.key===o[0]?(n.addClass(this._selectedItemClass()),this._setAriaSelected(n,"true")):this._setAriaSelected(n,"false"))):void this._setAriaSelected(n,"false")},_isItemSelectable:function(e){return e.selectable!==!1},_renderSeparator:function(e){i("<li>").appendTo(e).addClass(b)},_itemClickHandler:function(e){if(!e._skipHandling){var t=this._createAction(this._updateSubmenuVisibilityOnClick.bind(this));this._itemDXEventHandler(e,"onItemClick",{},{afterExecute:t.bind(this)}),e._skipHandling=!0}},_updateSubmenuVisibilityOnClick:function(e){this._updateSelectedItemOnClick(e),"onClick"===this._getShowSubmenuMode()&&this._addExpandedClass(e.args[0].itemElement)},_updateSelectedItemOnClick:function(e){var t,n=e.args?e.args[0]:e;if(this._isItemSelectionAllowed(n.itemData)){t=this._dataAdapter.getSelectedNodesKeys();var i=t.length&&this._dataAdapter.getNodeByKey(t[0]);i&&this._toggleItemSelection(i,!1),i&&i.internalFields.item===n.itemData?(this._fireSelectionChangeEvent(null,this.option("selectedItem")),this._setOptionSilent("selectedItem",null)):this.selectItem(n.itemData)}},_isItemSelectionAllowed:function(e){var t=this._isSelectionEnabled()&&this.option("selectByClick");return!this._isContainerEmpty()&&t&&this._isItemSelectable(e)&&!this._itemsGetter(e)},_isContainerEmpty:function(){return this._itemContainer().is(":empty")},_syncSelectionOptions:o.asyncNoop,_optionChanged:function(e){switch(e.name){case"showSubmenuMode":break;case"selectedItem":var t=e.value,n=this._dataAdapter.getNodeByItem(t),i=this._dataAdapter.getSelectedNodesKeys()[0];if(n&&n.internalFields.key!==i){if(n.selectable===!1)break;i&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(i),!1),this._toggleItemSelection(n,!0),this._updateSelectedItems()}break;case"cssClass":case"position":case"selectByClick":case"animation":case"useInkRipple":this._invalidate();break;default:this.callBase(e)}},_toggleItemSelection:function(e,t){var n=this._getElementByItem(e.internalFields.item);n&&i(n).toggleClass(m),this._dataAdapter.toggleSelection(e.internalFields.key,t)},_getElementByItem:function(e){var t,n=this;return r(this._itemElements(),function(o,a){return i(a).data(n._itemDataKey())!==e||(t=a,!1)}),t},_updateSelectedItems:function(e,t){(e||t)&&(this._updateSelection(t,e),this._fireSelectionChangeEvent(t,e))},_fireSelectionChangeEvent:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:[e],removedItems:[t]})},selectItem:function(e){var t=e.nodeType?this._getItemData(e):e,n=this._dataAdapter.getNodeByItem(t),i=this._dataAdapter.getSelectedNodesKeys()[0],o=this.option("selectedItem");n.internalFields.key!==i&&(i&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(i),!1),this._toggleItemSelection(n,!0),this._updateSelectedItems(o,t),this._setOptionSilent("selectedItem",t))},unselectItem:function(e){var t=e.nodeType?this._getItemData(e):e,n=this._dataAdapter.getNodeByItem(t),i=this.option("selectedItem");n.internalFields.selected&&(this._toggleItemSelection(n,!1),this._updateSelectedItems(i,null),this._setOptionSilent("selectedItem",null))}});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(20),s=n(0),l=n(3),u=n(16),c=i(u),d=n(62),h=i(d),p=n(601),f=i(p),g=n(54),_=i(g),m=n(65),v=i(m),y=n(1),x=n(4),b="dx-state-disabled",w=_.default.inherit({_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{keyExpr:"id",displayExpr:"text",selectedExpr:"selected",disabledExpr:"disabled",itemsExpr:"items",hoverStateEnabled:!0,parentIdExpr:"parentId",expandedExpr:"expanded"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===c.default.real().deviceType&&!c.default.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initAccessors(),this._initDataAdapter(),this._initDynamicTemplates()},_initDataSource:function(){this.callBase(),this._dataSource&&this._dataSource.paginate(!1)},_initDataAdapter:function(){var e=this._createDataAdapterAccessors();this._dataAdapter=new f.default((0,s.extend)({dataAccessors:{getters:e.getters,setters:e.setters},items:this.option("items")},this._getDataAdapterOptions()))},_getDataAdapterOptions:x.noop,_initDynamicTemplates:function(){var e=this;this._defaultTemplates.item=new v.default(function(t,n){t.html(n.html).append(this._getIconContainer(n)).append(this._getTextContainer(n)).append(this._getPopoutContainer(n)),e._addContentClasses(n,t.parent())}.bind(this),["text","html","items","icon"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter,items:this._itemsGetter})},_getIconContainer:function(e){return e.icon?h.default.getImageContainer(e.icon):void 0},_getTextContainer:function(e){return(0,a.default)("<span>").text(e.text)},_getPopoutContainer:x.noop,_addContentClasses:x.noop,_initAccessors:function(){var e=this;(0,l.each)(this._getAccessors(),function(t,n){e._compileAccessor(n)}),this._compileDisplayGetter()},_getAccessors:function(){return["key","selected","items","disabled","parentId","expanded"]},_getChildNodes:function(e){var t=this,n=[];return(0,l.each)(e.internalFields.childrenKeys,function(e,i){var o=t._dataAdapter.getNodeByKey(i);n.push(o)}),n},_hasChildren:function(e){return e&&e.internalFields.childrenKeys.length},_compileAccessor:function(e){var t="_"+e+"Getter",n="_"+e+"Setter",i=this.option(e+"Expr");return i?(0,y.isFunction)(i)?(this[n]=function(e,t){e[i()]=t},void(this[t]=function(e){return e[i()]})):(this[t]=(0,r.compileGetter)(i),void(this[n]=(0,r.compileSetter)(i))):(this[t]=x.noop,void(this[n]=x.noop))},_createDataAdapterAccessors:function(){var e=this,t={getters:{},setters:{}};return(0,l.each)(this._getAccessors(),function(n,i){var o="_"+i+"Getter",a="_"+i+"Setter",r="parentId"===i?"parentKey":i;t.getters[r]=e[o],t.setters[r]=e[a]}),t.getters.display=this._displayGetter?this._displayGetter:function(e){return e.text},t},_initMarkup:function(){this.callBase(),this._addWidgetClass()},_addWidgetClass:function(){this._focusTarget().addClass(this._widgetClass())},_widgetClass:x.noop,_renderItemFrame:function(e,t){var n=this.callBase.apply(this,arguments);return n.toggleClass(b,!!this._disabledGetter(t)),n},_optionChanged:function(e){switch(e.name){case"displayExpr":case"keyExpr":this._initAccessors(),this._initDynamicTemplates(),this.repaint();break;case"itemsExpr":case"selectedExpr":case"disabledExpr":case"expandedExpr":case"parentIdExpr":this._initAccessors(),this._initDataAdapter(),this.repaint();break;case"items":this._initDataAdapter(),this.callBase(e);break;default:this.callBase(e)}}});e.exports=w},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(605),a=i(o);n(615),n(616),n(617),n(619),n(622),n(623),n(625),n(626),n(627),n(629),n(630),n(634),n(635),n(636),n(637),n(639),n(640),n(641),n(643),n(644),n(645),n(646),n(647),e.exports=a.default},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(166),u=i(l),c=n(14),d=i(c),h=n(1),p=n(3),f=n(0),g=n(253),_="text-content",m="headers",v="nowrap",y=".dx-row",x="dx-header-row",b="dx-column-lines",w="context-menu-sort-asc",C="context-menu-sort-desc",k="context-menu-sort-none",S="dx-cell-focus-disabled",I="dx-visibility-hidden",T="dx-text-content-alignment-",D="dx-sort-indicator",E=".dx-header-filter",A="dx-header-filter-indicator",O="dx-header-multi-row";e.exports={defaultOptions:function(){return{showColumnHeaders:!0,cellHintEnabled:!0}},views:{columnHeadersView:u.default.ColumnsView.inherit(function(){var e=function(e,n,i){var o,r=(0,a.default)("<div>").addClass(e.addWidgetPrefix(_));return e.setAria("role","presentation",r),t(e,n,i.column,r),o=e.option("showColumnLines"),r[o||"right"===i.column.alignment?"appendTo":"prependTo"](n)},t=function(e,t,n,i){var o=e._getIndicatorElements(t,!0),a=e._getIndicatorElements(t),r=o&&o.length,s=e._getColumnAlignment(n.alignment);i=i||t.children("."+e.addWidgetPrefix(_)),i.toggleClass(T+s,r>0).toggleClass(T+("left"===s?"right":"left"),r>0&&"center"===n.alignment).toggleClass(D,!!a.filter("."+e._getIndicatorClassName("sort")).length).toggleClass(A,!!a.filter("."+e._getIndicatorClassName("headerFilter")).length)};return{_createTable:function(){var e=this.callBase.apply(this,arguments);return s.default.on(e,"mousedown selectstart",this.createAction(function(e){var t=e.event;t.shiftKey&&t.preventDefault()})),e},_isLegacyKeyboardNavigation:function(){return this.option("useLegacyKeyboardNavigation")},_getDefaultTemplate:function(t){var n=this;return function(i,o){var a=t.command?i:e(n,i,o),r="expand"!==t.command&&t.caption;r?a.text(r):t.command&&i.html("&nbsp;")}},_getHeaderTemplate:function(e){return e.headerCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(e)}},_processTemplate:function(t,n){var i,o=this,a=n.column,r=o.callBase(t);return i="header"===n.rowType&&r&&a.headerCellTemplate&&!a.command?{render:function(t){var n=e(o,t.container,t.model);r.render((0,f.extend)({},t,{container:n}))}}:r},_handleDataChanged:function(e){"refresh"===e.changeType&&(this._isGroupingChanged||this._requireReady)&&(this._isGroupingChanged=!1,this.render())},_renderCell:function(e,t){var n=this.callBase(e,t);return"header"===t.row.rowType&&(n.addClass(S),this._isLegacyKeyboardNavigation()||t.column&&!t.column.type&&n.attr("tabindex",this.option("tabindex")||0)),n},_setCellAriaAttributes:function(e,t){this.callBase(e,t),"header"===t.rowType&&(this.setAria("role","columnheader",e),!t.column||t.column.command||t.column.isBand||(e.attr("id",t.column.headerId),this.setAria("label",d.default.format("dxDataGrid-ariaColumn")+" "+t.column.caption,e)))},_createRow:function(e){var t=this.callBase(e).toggleClass(b,this.option("showColumnLines"));return"header"===e.rowType&&(t.addClass(x),this._isLegacyKeyboardNavigation()||(0,g.registerKeyboardAction)("columnHeaders",this,t,"td",this._handleActionKeyDown.bind(this))),t},_handleActionKeyDown:function(e){var t=e.event,n=(0,a.default)(t.target);if(this._lastActionElement=t.target,n.is(E)){var i=this.getController("headerFilter"),o=n.closest("td"),r=this.getColumnIndexByElement(o);r>=0&&i.showHeaderFilterMenu(r,!1)}else{var s=n.closest(y);this._processHeaderAction(t,s)}t.preventDefault()},_renderCore:function(){var e=this,t=e.element();(!e._tableElement||e._dataController.isLoaded()||e._hasRowElements)&&(t.addClass(e.addWidgetPrefix(m)).toggleClass(e.addWidgetPrefix(v),!e.option("wordWrapEnabled")).empty(),e.setAria("role","presentation",t),e._updateContent(e._renderTable()),e.getRowCount()>1&&t.addClass(O),e.callBase.apply(e,arguments))},_renderRows:function(){var e=this;(e._dataController.isLoaded()||e._hasRowElements)&&(e.callBase.apply(e,arguments),e._hasRowElements=!0)},_getRowVisibleColumns:function(e){return this._columnsController.getVisibleColumns(e)},_renderRow:function(e,t){t.columns=this._getRowVisibleColumns(t.row.rowIndex),this.callBase(e,t)},_createCell:function(e){var t=e.column,n=this.callBase.apply(this,arguments);return t.rowspan>1&&"header"===e.rowType&&n.attr("rowSpan",t.rowspan),n},_getRows:function(){var e,t=[],n=this.getRowCount();if(this.option("showColumnHeaders"))for(e=0;e<n;e++)t.push({rowType:"header",rowIndex:e});return t},_getCellTemplate:function(e){if("header"===e.rowType)return this._getHeaderTemplate(e.column)},_columnOptionChanged:function(e){var t=e.changeTypes,n=e.optionNames;return t.grouping?void(this._isGroupingChanged=!0):(this.callBase(e),void((n.width||n.visible)&&this.resizeCompleted.fire()))},_isElementVisible:function(e){return e&&e.visible},_alignCaptionByCenter:function(e){var t=this._getIndicatorContainer(e,!0);t&&t.length&&(t.filter("."+I).remove(),t=this._getIndicatorContainer(e),t.clone().addClass(I).css("float","").insertBefore(e.children("."+this.addWidgetPrefix(_))))},_updateCell:function(e,t){"header"===t.rowType&&"center"===t.column.alignment&&this._alignCaptionByCenter(e),this.callBase.apply(this,arguments)},_updateIndicator:function(e,n,i){var o=this.callBase.apply(this,arguments);return"center"===n.alignment&&this._alignCaptionByCenter(e),t(this,e,n),o},_getIndicatorContainer:function(e,t){var n=this.callBase(e);return t?n:n.filter(":not(."+I+")")},_isSortableElement:function(){return!0},getHeadersRowHeight:function(){var e=this._getTableElement(),t=e&&e.find("."+x);return t&&t.toArray().reduce(function(e,t){return e+(0,a.default)(t).height()},0)||0},getHeaderElement:function(e){var t=this.getColumnElements();return t&&t.eq(e)},getColumnElements:function(e,t){var n,i,o,r,s=this,l=s._columnsController,u=s.getRowCount();if(s.option("showColumnHeaders")){if(u>1&&(!(0,h.isDefined)(e)||(0,h.isDefined)(t)))return i=[],r=(0,h.isDefined)(t)?l.getChildrenByBandColumn(t,!0):l.getVisibleColumns(),(0,p.each)(r,function(t,a){n=(0,h.isDefined)(e)?e:l.getRowIndex(a.index),o=s._getCellElement(n,l.getVisibleIndex(a.index,n)),o&&i.push(o.get(0))}),(0,a.default)(i);if(!e||e<u)return s.getCellElements(e||0)}},getColumnIndexByElement:function(e){var t=this.getCellIndex(e),n=e.closest(".dx-row"),i=n[0].rowIndex,o=this.getColumns(i)[t];return o?o.index:-1},getVisibleColumnIndex:function(e,t){var n=this.getColumns()[e];return n?this._columnsController.getVisibleIndex(n.index,t):-1},getColumnWidths:function(){var e=this.getColumnElements();return e&&e.length?this._getWidths(e):this.callBase.apply(this,arguments)},allowDragging:function(e,t,n){var i,o,a=e&&this._columnsController.getRowIndex(e.index),r=this.getColumns(0===a?0:null),s=0,l=function(e){return e.allowReordering||e.allowGrouping||e.allowHiding};for(i=0;i<r.length;i++)l(r[i])&&s++;if(s<=1)return!1;if(!n)return(this.option("allowColumnReordering")||this._columnsController.isColumnOptionUsed("allowReordering"))&&e&&e.allowReordering;for(i=0;i<n.length;i++)if(o=n[i],o&&o.allowDragging(e,t))return!0;return!1},getBoundingRect:function(){var e,t=this,n=t.getColumnElements();return n&&n.length?(e=t._getTableElement().offset(),{top:e.top}):null},getName:function(){return"headers"},getColumnCount:function(){var e=this.getColumnElements();return e?e.length:0},isVisible:function(){return this.option("showColumnHeaders")},optionChanged:function(e){var t=this;switch(e.name){case"showColumnHeaders":case"wordWrapEnabled":case"showColumnLines":t._invalidate(!0,!0),e.handled=!0;break;default:t.callBase(e)}},getHeight:function(){return this.getElementHeight()},getContextMenuItems:function(e){var t,n,i=this,o=e.column;if(e.row&&("header"===e.row.rowType||"detailAdaptive"===e.row.rowType)&&(n=i.option("sorting"),n&&"none"!==n.mode&&o&&o.allowSorting))return t=function(e){setTimeout(function(){i._columnsController.changeSortOrder(o.index,e.itemData.value)})},[{text:n.ascendingText,value:"asc",disabled:"asc"===o.sortOrder,icon:w,onItemClick:t},{text:n.descendingText,value:"desc",disabled:"desc"===o.sortOrder,icon:C,onItemClick:t},{text:n.clearText,value:"none",disabled:!o.sortOrder,icon:k,onItemClick:t}]},getRowCount:function(){return this._columnsController&&this._columnsController.getRowCount()},setRowsOpacity:function(e,t,n){var i,o,a=this,r=a.getRowCount(),s=a._columnsController.getColumns(),l=s&&s[e],u=l&&l.isBand&&l.index,c=function(e,n){n.ownerBand===u&&(o.eq(e).css({opacity:t}),n.isBand&&a.setRowsOpacity(n.index,t,i+1))};if((0,h.isDefined)(u))for(n=n||0,i=n;i<r;i++)o=a.getCellElements(i),(0,p.each)(a.getColumns(i),c)}}}())}}},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(0),l=n(98),u="dx-column-indicators",c="dx-group-panel-item";e.exports={_applyColumnState:function(e){var t=this,n=this.option("rtlEnabled"),i=t._getColumnAlignment(e.column.alignment,n),o=(0,s.extend)(!0,{columnAlignment:i},e),r=o.rootElement.hasClass(c),l=t._createIndicatorContainer(o,r),u=(0,a.default)("<span>").addClass(t._getIndicatorClassName(e.name)),d=function(){return n?"left"===i?"right":"left":i};return o.container=l,o.indicator=u,t._renderIndicator(o),l[!r&&e.showColumnLines||"left"!==d()?"prependTo":"appendTo"](e.rootElement),u},_getIndicatorClassName:r.noop,_getColumnAlignment:function(e,t){return t=t||this.option("rtlEnabled"),e&&"center"!==e?e:(0,l.getDefaultAlignment)(t)},_createIndicatorContainer:function(e,t){var n=this._getIndicatorContainer(e.rootElement),i="left"===e.columnAlignment?"right":"left";return n.length||(n=(0,a.default)("<div>").addClass(u)),this.setAria("role","presentation",n),n.css("float",e.showColumnLines&&!t?i:null)},_getIndicatorContainer:function(e){return e&&e.find("."+u)},_getIndicatorElements:function(e){var t=this._getIndicatorContainer(e);return t&&t.children()},_renderIndicator:function(e){var t=e.container,n=e.indicator;t&&n&&t.append(n)},_updateIndicators:function(e){var t,n,i,o=this,a=o.getColumns(),r=o.getColumnElements();if(r&&a.length===r.length)for(i=0;i<a.length;i++)n=r.eq(i),o._updateIndicator(n,a[i],e),t=n.parent().data("options"),t&&t.cells&&(t.cells[n.index()].column=a[i])},_updateIndicator:function(e,t,n){if(!t.command)return this._applyColumnState({name:n,rootElement:e,column:t,showColumnLines:this.option("showColumnLines")})}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(25),s=i(r),l=n(87),u=n(20),c=i(u),d=n(4),h=n(1),p=n(3),f=i(p),g=n(98),_=n(0),m=n(13),v=n(28),y=i(v),x=n(48),b=n(17),w=i(b),C=n(39),k=i(C),S=n(36),I=n(32),T=i(I),D=n(56),E=i(D),A=n(51),O=i(A),B=n(33),P=i(B),M=n(14),R=i(M),V=n(6),F=n(91),L=i(F),H=n(44),z=n(165),N=i(z),$=["filterValues","filterType","fixed","fixedPosition"],W=["visibleIndex","dataField","name","dataType","width","visible","sortOrder","lastSortOrder","sortIndex","groupIndex","filterValue","selectedFilterOperation","added"].concat($),G={visibleWidth:!0,bestFitWidth:!0,bufferedFilterValue:!0},j="dx-command-expand",q=Number.MAX_SAFE_INTEGER||9007199254740991,K="groupExpand",U=/columns\[(\d+)\]\.?/gi,Y=1;e.exports={defaultOptions:function(){return{commonColumnSettings:{allowFiltering:!0,allowHiding:!0,allowSorting:!0,allowEditing:!0,encodeHtml:!0,trueText:R.default.format("dxDataGrid-trueText"),falseText:R.default.format("dxDataGrid-falseText")},allowColumnReordering:!1,allowColumnResizing:!1,columnResizingMode:"nextColumn",columnMinWidth:void 0,columnWidth:void 0,adaptColumnWidthByRatio:!0,columns:void 0,regenerateColumnsByVisibleItems:!1,customizeColumns:null,dateSerializationFormat:void 0}},controllers:{columns:k.default.Controller.inherit(function(){var e={visible:!0,showInColumnChooser:!0},t={number:["=","<>","<",">","<=",">=","between"],string:["contains","notcontains","startswith","endswith","=","<>"],date:["=","<>","<",">","<=",">=","between"],datetime:["=","<>","<",">","<=",">=","between"]},n={visibleIndex:!0,groupIndex:!0,grouped:!0,sortIndex:!0,sortOrder:!0},i="group",o="columnChooser",r=function(e){e.filterOperations=e.defaultFilterOperations},u=function(t,n,i,o){var a,s={};if(n){(0,h.isString)(n)&&(n={dataField:n});var l=void 0;return n.command?l=(0,x.deepExtendArraySafe)(s,n):(s=t.getCommonSettings(n),i&&i.name&&i.dataField&&(n=(0,_.extend)({},n,{dataField:i.dataField})),a=t._createCalculatedColumnOptions(n,o),l=(0,x.deepExtendArraySafe)({headerId:"dx-col-"+Y++},e),(0,x.deepExtendArraySafe)(l,s),(0,x.deepExtendArraySafe)(l,a),(0,x.deepExtendArraySafe)(l,n),(0,x.deepExtendArraySafe)(l,{selector:null})),n.filterOperations===n.defaultFilterOperations&&r(l),l}},p=function e(t,n,i){var o=[];return n&&f.default.each(n,function(n,a){var r=t._columnsUserState&&ne(a,t._columnsUserState[n])&&t._columnsUserState[n],s=u(t,a,r,i);s&&(i&&(s.ownerBand=i),o.push(s),s.isBand&&(o=o.concat(e(t,s.columns,s)),delete s.columns))}),o},v=function(e,t){for(var n=[],i=t[e];i;)n.unshift(i),e=i.index,i=t[e];return n},b=function e(t,n,i){var o,a=[],r=n[t];if(r)for(var s=0;s<r.length;s++)o=r[s],(0,h.isDefined)(o.groupIndex)&&!o.showWhenGrouped||(a.push(o),i&&o.isBand&&(a=a.concat(e(o.index,n,i))));return a},C=function(e,t){for(var n,i=function(e){var t=n?n.index:void 0;return e.ownerBand===t},o=e._columns.filter(i),a=0;a<t.length;a++)n=o[t[a]],n&&(o=e._columns.filter(i));return n},k=function(e,t){for(var n=[],i=e.getBandColumnsCache(),o=function(e){return e.ownerBand===t.ownerBand},a=e._columns.filter(o);a.length&&a.indexOf(t)!==-1;)n.unshift("columns["+a.indexOf(t)+"]"),t=i.columnParentByIndex[t.index],a=t?e._columns.filter(o):[];return n.join(".")},I=function e(t,n){var i=0,o=t.getChildrenByBandColumn(n,!0);return f.default.each(o,function(n,o){o.isBand?(o.colspan=o.colspan||e(t,o.index),i+=o.colspan||1):i+=1}),i},D=function(e,t,n){var i,o,a,r=e.getRowCount();for(i=0;i<t.length;i++)o=t[i],(o.visible||o.command)&&(o.isBand&&(o.colspan=o.colspan||I(e,o.index)),o.isBand&&o.colspan||(a=r-(o.command||(0,h.isDefined)(o.groupIndex)?0:v(o.index,n.columnParentByIndex).length),a>1&&(o.rowspan=a)))},A=function(e){var t=(0,h.type)(e);return"string"!==t&&"boolean"!==t&&"number"!==t&&"date"!==t&&"object"!==t&&(t=void 0),t},B=function(e,t){switch(e){case"date":case"datetime":return E.default.getDateSerializationFormat(t);case"number":if((0,h.isString)(t))return"string";if((0,h.isNumeric)(t))return null}},M=function(e,t){e.deserializeValue||((0,S.isDateType)(t)&&(e.deserializeValue=function(e){return E.default.deserializeDate(e)},e.serializeValue=function(e){return(0,h.isString)(e)?e:E.default.serializeDate(e,this.serializationFormat)}),"number"===t&&(e.deserializeValue=function(e){var t=parseFloat(e);return isNaN(t)?e:t},e.serializeValue=function(e,t){return"filter"===t?e:(0,h.isDefined)(e)&&"string"===this.serializationFormat?e.toString():e}))},R=function(e,t){switch(e){case"number":return"right";case"boolean":return"center";default:return(0,g.getDefaultAlignment)(t)}},F=function(e){if("boolean"===e)return function(e){return e.value===!0?this.trueText||"true":e.value===!1?this.falseText||"false":e.valueText||""}},z=function(e,t){var n,i,o=e._getFirstItems(t),a={},r=[];for(i=0;i<o.length;i++)if(o[i])for(n in o[i])(0,h.isFunction)(o[i][n])&&!(0,l.isWrapped)(o[i][n])||(a[n]=!0);for(n in a)if(0!==n.indexOf("__")){var s=u(e,n);r.push(s)}return r},X=function(e){f.default.each(e._columns,function(e,t){t.index=e}),f.default.each(e._columns,function(e,t){(0,h.isObject)(t.ownerBand)&&(t.ownerBand=t.ownerBand.index)}),f.default.each(e._commandColumns,function(e,t){t.index=-(e+1)})},Z=function(e,t){(0,m.normalizeIndexes)(e._columns,"groupIndex",t,function(e){var t=e.grouped;return delete e.grouped,t})},Q=function(e,t){f.default.each(e._columns,function(e,t){(0,h.isDefined)(t.sortIndex)&&!he(t.sortOrder)&&delete t.sortIndex}),(0,m.normalizeIndexes)(e._columns,"sortIndex",t,function(e){return!(0,h.isDefined)(e.groupIndex)&&he(e.sortOrder)})},J=function(e,t){var n,i,o,a,r,s={},l=[],u=e.getBandColumnsCache(),c=e._columns.filter(function(e){return!e.command});for(n=0;n<c.length;n++)o=c[n],r=v(n,u.columnParentByIndex),r.length?(a=r[r.length-1].index,s[a]=s[a]||[],s[a].push(o)):l.push(o);for(i in s)(0,m.normalizeIndexes)(s[i],"visibleIndex",t);(0,m.normalizeIndexes)(l,"visibleIndex",t)},ee=function(e,t,n){var a,r=(0,h.isObject)(t)?t.rowIndex:null,s=n===i?e.getGroupColumns():n===o?e.getChooserColumns():e.getVisibleColumns(r);return t=(0,h.isObject)(t)?t.columnIndex:t,a=s[t],a&&a.type===K&&(a=e._columns.filter(function(e){return a.type===e.type})[0]||a),a&&(0,h.isDefined)(a.index)?a.index:-1},te=function(e,t,n){var i,o=e.getGroupColumns();if(n>=0)for(i=0;i<o.length;i++)o[i].groupIndex>=n&&o[i].groupIndex++;else for(n=0,i=0;i<o.length;i++)n=Math.max(n,o[i].groupIndex+1);return n},ne=function(e,t){return e&&t&&t.name===e.name&&(t.dataField===e.dataField||e.name)},ie=function(e){function t(e,t){var n;if(t)for(var i=0;i<W.length;i++)n=W[i],(0,m.inArray)(n,l)>=0||("dataType"===n?e[n]=e[n]||t[n]:(0,m.inArray)(n,$)>=0?n in t&&(e[n]=t[n]):("selectedFilterOperation"===n&&t[n]&&(e.defaultSelectedFilterOperation=e[n]||null),e[n]=t[n]))}function n(e,t){for(var n=t.name||t.dataField,i=d[n]||0,o=0;o<e.length;o++)if(ne(t,e[o])){if(!i)return d[n]=d[n]||0,d[n]++,o;i--}return-1}var i,o,a,r,s=e._columnsUserState,l=e._ignoreColumnOptionNames||[],c=e._columns,d={},f=[],g=!0,_=[];if(s){for(r=0;r<c.length;r++)a=n(s,c[r]),g=g&&a>=0,_.push(a);for(r=0;r<c.length;r++)i=c[r],a=_[r],(e._hasUserState||g)&&t(i,s[a]),a>=0&&(0,h.isDefined)(s[a].initialIndex)?f[a]=i:f.push(i);var v=!1;for(r=0;r<s.length;r++)o=s[r],o.added&&n(c,o)<0&&(i=u(e,o.added),t(i,o),f.push(i),o.added.columns&&(v=!0));v&&(X(e),f=p(e,f)),re(e,f)}},oe=function(e,t){X(e),Z(e,t),Q(e,t),J(e,t)},ae=function(e){e.resetColumnsCache()},re=function(e,t){e._columns=t,ae(e),e.updateColumnDataTypes()},se=function(e,t,n,i){var o=e._columnChanges||{optionNames:{length:0},changeTypes:{length:0},columnIndex:i};n=n||"all",n=n.split(".")[0];var a=o.changeTypes;t&&!a[t]&&(a[t]=!0,a.length++);var r=o.optionNames;n&&!r[n]&&(r[n]=!0,r.length++),void 0!==i&&i===o.columnIndex||delete o.columnIndex,e._columnChanges=o,ae(e)},le=function(e){var t=e.option("onColumnsChanging"),n=e._columnChanges;e.isInitialized()&&!e._updateLockCount&&n&&(t&&(e._updateLockCount++,t((0,_.extend)({component:e.component},n)),e._updateLockCount--),e._columnChanges=void 0,n.optionNames&&(n.optionNames.dataField||n.optionNames.lookup||n.optionNames.dataType)?e.reinit():e.columnsChanged.fire(n))},ue=function(e,t,n){var i=n>=0;t>=0?i||(e.lastSortOrder=e.sortOrder):e.sortOrder=e.lastSortOrder},ce=function(e,t){var n=t.value,i=t.optionName,o=t.prevValue,a=t.fullOptionName;if(!G[i]){var r=e._skipProcessingColumnsChange;e._skipProcessingColumnsChange=!0;var s=e.component.option(a);(0,h.isPlainObject)(s)&&(s[i]=n),e.component._notifyOptionChanged(a+"."+i,n,o),e._skipProcessingColumnsChange=r}},de=function(e,t,n,i,o){var a,r,s,l,u,d,p=c.default.compileGetter(n),f=t.index;return 3===arguments.length?p(t,{functionsAsIs:!0}):(a=p(t,{functionsAsIs:!0}),void(a!==i&&("groupIndex"===n||"calculateGroupValue"===n?(l="grouping",ue(t,i,a)):l="sortIndex"===n||"sortOrder"===n||"calculateSortValue"===n?"sorting":"columns",r=c.default.compileSetter(n),r(t,i,{functionsAsIs:!0}),u=k(e,t),u&&ce(e,{fullOptionName:u,optionName:n,value:i,prevValue:a}),(0,h.isDefined)(a)||(0,h.isDefined)(i)||0===n.indexOf("buffer")||(o=!0),o?ae(e):((0,m.inArray)(n,W)<0&&"visibleWidth"!==n&&(s=e.option("columns"),d=e.getColumnByPath(u,s),(0,h.isString)(d)&&(d=s[f]={dataField:d}),d&&ne(d,t)&&r(d,i,{functionsAsIs:!0})),se(e,l,n,f)))))},he=function(e){
46return"asc"===e||"desc"===e},pe=function(e){var t=e._getExpandColumnOptions();e.addCommandColumn(t)},fe=function(e,t){var n,i,o=this.dataField.split("."),a=o.length-1;for(this.serializeValue&&(t=this.serializeValue(t)),i=0;i<a;i++)n=o[i],e=e[n]=e[n]||{};e[o[a]]=t},ge=function e(t,n,i){var o=[];return n=n||0,t[n]&&f.default.each(t[n],function(a,r){(r.ownerBand===i||(0,h.isDefined)(r.groupIndex))&&(r.isBand&&r.colspan?o.push.apply(o,e(t,n+1,r.index)):(!r.command||n<1)&&o.push(r))}),o},_e=function(e,t,n){var i=1,o=e.getBandColumnsCache(),a=o.columnParentByIndex;return e._columns.forEach(function(e){var t=v(e.index,a),n=t.filter(function(e){return!e.visible});e.visible&&!n.length&&(i=Math.max(i,t.length+1))}),i},me=function(e,t){var n=e.option("rtlEnabled");return t.command&&!we(e,t)||!t.fixedPosition?n?"right":"left":t.fixedPosition},ve=function(e,t,n,i){var o,a=this.getRowCount(),r=e[i]&&e[i].rowspan,s=t.filter(function(e){return e.type===n});return e.forEach(function(t,i){t.type===n&&(o=i,r=e[i+1]?e[i+1].rowspan:a)}),r>1&&(s=f.default.map(s,function(e){return(0,_.extend)({},e,{rowspan:r})})),s.unshift.apply(s,(0,h.isDefined)(o)?[o,1]:[i,0]),e.splice.apply(e,s),r||1},ye=function(e){var t;for(t=0;e>1;t++)e/=10;return t},xe=function(e,t){for(var n=e?e.toString():"0";n.length<t;)n="0"+n;return n},be=function(e,t,n,i){var o,a,r,s,l=t.slice().map(function(e){return(0,_.extend)({},e)}),u=e._isColumnFixing(),c=n.slice().map(function(e){return(0,_.extend)({fixed:u},e)}),d=function(e){return n.reduce(function(t,n,o){var a=i&&e.type===K?"expand":e.type;return n.type===a||n.command===e.command?o:t},-1)},h=function(e){return e.command!==n[s].command};for(o=0;o<t.length;o++)a=t[o],s=a&&(a.type||a.command)?d(a):-1,s>=0&&(i?(l[o]=(0,_.extend)({fixed:u},n[s],a),a.type!==K&&(c=c.filter(h))):(r={visibleIndex:a.visibleIndex,index:a.index,headerId:a.headerId,allowFixing:0===a.groupIndex,allowReordering:0===a.groupIndex,groupIndex:a.groupIndex},l[o]=(0,_.extend)({},a,n[s],a.type===K&&r)));return t.length&&i&&c.length&&(l=l.concat(c)),l},we=function(e,t){return!!e._columns.filter(function(e){return e.type===t.type}).length},Ce=function(e,t){return(0,h.isDefined)(t.fixed)||!t.type?t.fixed:e._isColumnFixing()};return{_getExpandColumnOptions:function(){return{type:"expand",command:"expand",width:"auto",cssClass:j,allowEditing:!1,allowGrouping:!1,allowSorting:!1,allowResizing:!1,allowReordering:!1,allowHiding:!1}},_getFirstItems:function(e){var t,n=[],i=function e(t,n){var i,o;if(!t||!n)return t;for(i=0;i<t.length;i++)if(o=e(t[i].items||t[i].collapsedItems,n-1),o&&o.length)return o};return e&&e.items().length>0&&(t=(0,S.normalizeSortingInfo)(e.group()).length,n=i(e.items(),t)||[]),n},_endUpdateCore:function(){!this._skipProcessingColumnsChange&&le(this)},init:function(){var e=this,t=e.option("columns");e._commandColumns=e._commandColumns||[],e._columns=e._columns||[],e._isColumnsFromOptions=!!t,e._isColumnsFromOptions?(re(e,t?p(e,t):[]),ie(e)):re(e,e._columnsUserState?p(e,e._columnsUserState):e._columns),pe(e),e._dataSourceApplied?e.applyDataSource(e._dataSource,!0):oe(e)},callbackNames:function(){return["columnsChanged"]},getColumnByPath:function(e,t){var n,i=this,o=[];return e.replace(U,function(e,t){return o.push(parseInt(t)),""}),o.length&&(n=t?o.reduce(function(e,t){return e&&e.columns&&e.columns[t]},{columns:t}):C(i,o)),n},optionChanged:function(e){switch(e.name){case"adaptColumnWidthByRatio":e.handled=!0;break;case"columns":e.handled=!0,e.name===e.fullName?(this._columnsUserState=null,this._ignoreColumnOptionNames=null,this.init()):void 0!==this.option(e.fullName)&&this.option(e.fullName)!==e.value||(this._columnOptionChanged(e),this._updateRequireResize(e));break;case"commonColumnSettings":case"columnAutoWidth":case"allowColumnResizing":case"allowColumnReordering":case"columnFixing":case"grouping":case"groupPanel":case"regenerateColumnsByVisibleItems":case"customizeColumns":case"editing":case"columnHidingEnabled":case"dateSerializationFormat":case"columnResizingMode":case"columnMinWidth":case"columnWidth":e.handled=!0,e.fullName&&0===e.fullName.indexOf("editing.popup")||this.reinit();break;case"rtlEnabled":this.reinit();break;default:this.callBase(e)}},_columnOptionChanged:function(e){var t={},n=this.getColumnByPath(e.fullName),i=e.fullName.replace(U,"");n&&(i?t[i]=e.value:t=e.value,this.columnOption(n.index,t))},_updateRequireResize:function(e){var t=this.component;"width"===e.fullName.replace(U,"")&&t._updateLockCount&&(t._requireResize=!0)},publicMethods:function(){return["addColumn","deleteColumn","columnOption","columnCount","clearSorting","clearGrouping","getVisibleColumns"]},applyDataSource:function(e,t){var n=this,i=e&&e.isLoaded();if(n._dataSource=e,!n._dataSourceApplied||0===n._dataSourceColumnsCount||t||n.option("regenerateColumnsByVisibleItems")){if(i){if(!n._isColumnsFromOptions){var o=z(n,e);o.length&&(re(n,o),n._dataSourceColumnsCount=n._columns.length,ie(n))}return n.updateColumns(e,t)}n._dataSourceApplied=!1}else if(i&&!n.isAllDataTypesDefined(!0)&&n.updateColumnDataTypes(e))return se(n,"columns"),le(n),(new V.Deferred).reject().promise()},reset:function(){this._dataSourceApplied=!1,this._dataSourceColumnsCount=void 0,this.reinit()},resetColumnsCache:function(){var e=this;e._visibleColumns=void 0,e._fixedColumns=void 0,e._rowCount=void 0,e._bandColumnsCache=void 0},reinit:function(){this._columnsUserState=this.getUserState(),this._ignoreColumnOptionNames=null,this.init()},isInitialized:function(){return!!this._columns.length||!!this.option("columns")},isDataSourceApplied:function(){return this._dataSourceApplied},getCommonSettings:function(e){var t=(!e||!e.type)&&this.option("commonColumnSettings")||{},n=this.option("grouping")||{},i=this.option("groupPanel")||{};return(0,_.extend)({allowFixing:this.option("columnFixing.enabled"),allowResizing:this.option("allowColumnResizing")||void 0,allowReordering:this.option("allowColumnReordering"),minWidth:this.option("columnMinWidth"),width:this.option("columnWidth"),autoExpandGroup:n.autoExpandAll,allowCollapsing:n.allowCollapsing,allowGrouping:i.allowColumnDragging&&i.visible||n.contextMenuEnabled},t)},isColumnOptionUsed:function(e){for(var t=0;t<this._columns.length;t++)if(this._columns[t][e])return!0},isAllDataTypesDefined:function(e){var t,n=this._columns;if(!n.length)return!1;for(t=0;t<n.length;t++)if((n[t].dataField||n[t].calculateCellValue!==n[t].defaultCalculateCellValue)&&(!n[t].dataType||e&&n[t].deserializeValue&&void 0===n[t].serializationFormat))return!1;return!0},getColumns:function(){return this._columns},isBandColumnsUsed:function(){return this.getColumns().some(function(e){return e.isBand})},getGroupColumns:function(){var e=[];return f.default.each(this._columns,function(){var t=this;(0,h.isDefined)(t.groupIndex)&&(e[t.groupIndex]=t)}),e},getVisibleColumns:function(e){return this._visibleColumns=this._visibleColumns||this._getVisibleColumnsCore(),e=(0,h.isDefined)(e)?e:this._visibleColumns.length-1,this._visibleColumns[e]||[]},getFixedColumns:function(e){return this._fixedColumns=this._fixedColumns||this._getFixedColumnsCore(),e=(0,h.isDefined)(e)?e:this._fixedColumns.length-1,this._fixedColumns[e]||[]},getFilteringColumns:function(){return this.getColumns().filter(function(e){return(e.dataField||e.name)&&(e.allowFiltering||e.allowHeaderFiltering)}).map(function(e){var t=(0,_.extend)(!0,{},e);return(0,h.isDefined)(t.dataField)||(t.dataField=t.name),t.filterOperations=e.filterOperations!==e.defaultFilterOperations?t.filterOperations:null,t})},_getFixedColumnsCore:function(){var e,t,n,i,o,a,r,s,l=this,u=[],c=l.getRowCount(),d=l._isColumnFixing(),p={command:"transparent"},f=0;if(d)for(e=0;e<=c;e++){for(o=0,r=null,a=null,s=l.getVisibleColumns(e,!0),t=0;t<s.length;t++)i=s[t-1],n=s[t],n.fixed?i&&i.fixed&&me(l,i)!==me(l,n)?(0,h.isDefined)(a)||(a=t):r=n.fixedPosition:(0===e&&(n.isBand&&n.colspan?f+=n.colspan:f++),o++,(0,h.isDefined)(a)||(a=t));if(0===e&&(0===o||o>=s.length))return[];(0,h.isDefined)(a)||(a="right"===r?0:s.length),u[e]=s.slice(0),p.colspan||(p.colspan=f),u[e].splice(a,o,p)}return u},_isColumnFixing:function(){var e=this.option("columnFixing.enabled");return!e&&f.default.each(this._columns,function(t,n){if(n.fixed)return e=!0,!1}),e},_getExpandColumnsCore:function(){return this.getGroupColumns()},getExpandColumns:function(){var e,t=this._getExpandColumnsCore(),n=t.filter(function(e){return 0===e.groupIndex})[0],i=n&&n.fixed,o=this._isColumnFixing();return t.length&&(e=this.columnOption("command:expand")),t=f.default.map(t,function(t){return(0,_.extend)({},t,{visibleWidth:null,minWidth:null,cellTemplate:(0,h.isDefined)(t.groupIndex)?null:t.cellTemplate,headerCellTemplate:null,fixed:!(!(0,h.isDefined)(t.groupIndex)||!i)||o},e,{index:t.index,type:t.type||K})})},getBandColumnsCache:function(){if(!this._bandColumnsCache){var e=this._columns,t={},n={};e.forEach(function(i){var o=i.ownerBand,a=e[o];i.colspan&&(i.colspan=void 0),i.rowspan&&(i.rowspan=void 0),a?n[i.index]=a:o=-1,t[o]=t[o]||[],t[o].push(i)}),this._bandColumnsCache={columnChildrenByIndex:t,columnParentByIndex:n}}return this._bandColumnsCache},_isColumnVisible:function(e){return e.visible&&this.isParentColumnVisible(e.index)},_getVisibleColumnsCore:function(){var e,t,n,i=this,o=[],a=0,r=0,s=i.getRowCount(),l=[],u=[],c=0,d=i.option("rtlEnabled"),p=i.getBandColumnsCache(),g=be(i,i.getExpandColumns(),i._columns),_=be(i,i._columns,i._commandColumns,!0),m=ye(_.length);for(D(i,_,p),e=0;e<s;e++)o[e]=[],u[e]=[{}],l[e]=[{},{},{}];return f.default.each(_,function(){var t,o,a=this,r=a.visibleIndex,s=v(a.index,p.columnParentByIndex),f=i._isColumnVisible(a);if(f&&(!(0,h.isDefined)(a.groupIndex)||a.showWhenGrouped)){if(t=s.length,r<0?(r=-r,o=u[t]):(a.fixed=s.length?s[0].fixed:a.fixed,a.fixedPosition=s.length?s[0].fixedPosition:a.fixedPosition,a.fixed?(n="right"===a.fixedPosition,!d||a.command&&!we(i,a)||(n=!n),o=n?l[t][2]:l[t][0]):o=l[t][1]),s.length)for(r=xe(r,m),e=s.length-1;e>=0;e--)r=xe(s[e].visibleIndex,m)+r;o[r]=o[r]||[],o[r].push(a),c++}}),f.default.each(o,function(e){(0,x.orderEach)(u[e],function(t,n){o[e].unshift.apply(o[e],n)}),t=o[e].length,f.default.each(l[e],function(t,n){(0,x.orderEach)(n,function(t,n){o[e].push.apply(o[e],n)})}),r<e+1&&(r+=ve.call(i,o[e],g,"detailExpand",t)),a<e+1&&(a+=ve.call(i,o[e],g,K,t))}),o.push(ge(o)),!c&&i._columns.length&&o[s].push({command:"empty"}),o},getInvisibleColumns:function(e,t){var n,i=this,o=[];return e=e||i._columns,f.default.each(e,function(e,a){if(a.ownerBand===t)return a.isBand?(n=a.visible?i.getInvisibleColumns(i.getChildrenByBandColumn(a.index),a.index):i.getChildrenByBandColumn(a.index),void(n.length&&(o.push(a),o=o.concat(n)))):void(a.visible||o.push(a))}),o},getChooserColumns:function(e){var t=e?this.getColumns():this.getInvisibleColumns();return(0,d.grep)(t,function(e){return e.showInColumnChooser})},allowMoveColumn:function(e,t,n,a){var r=this,s=ee(r,e,n),l=r._columns[s];return!(!l||!(l.allowReordering||l.allowGrouping||l.allowHiding))&&(n===a?n!==o&&(e=(0,h.isObject)(e)?e.columnIndex:e,t=(0,h.isObject)(t)?t.columnIndex:t,e!==t&&e+1!==t):n===i&&a!==o||a===i?l&&l.allowGrouping:n!==o&&a!==o||l&&l.allowHiding)},moveColumn:function(e,t,n,a){var r,s,l,u=this,c={},d=ee(u,e,n),p=ee(u,t,a);if(d>=0){if(l=u._columns[d],t=(0,h.isObject)(t)?t.columnIndex:t,s=p>=0?u._columns[p].groupIndex:-1,(0,h.isDefined)(l.groupIndex)&&n===i&&(s>l.groupIndex&&s--,a!==i?c.groupIndex=void 0:(r=l.groupIndex,delete l.groupIndex,Z(u))),a===i)c.groupIndex=te(u,l,s),l.groupIndex=r;else if(t>=0){var f=u._columns[p];f&&l.ownerBand===f.ownerBand?Ce(u,l)^Ce(u,f)?c.visibleIndex=q:c.visibleIndex=f.visibleIndex:c.visibleIndex=q}var g=a!==o;l.visible!==g&&(c.visible=g),u.columnOption(l.index,c)}},changeSortOrder:function(e,t){var n=this,i={},o=n.option("sorting"),a=o&&o.mode,r="single"===a||!t,s="single"===a||"multiple"===a,l=n._columns[e],u=function(e){if("ctrl"===t){if(!("sortOrder"in e&&"sortIndex"in e))return!1;i.sortOrder=void 0,i.sortIndex=void 0}else(0,h.isDefined)(e.groupIndex)||(0,h.isDefined)(e.sortIndex)?i.sortOrder="desc"===e.sortOrder?"asc":"desc":i.sortOrder="asc";return!0};s&&l&&l.allowSorting&&(r&&!(0,h.isDefined)(l.groupIndex)&&f.default.each(n._columns,function(t){t!==e&&this.sortOrder&&!(0,h.isDefined)(this.groupIndex)&&(delete this.sortOrder,delete this.sortIndex)}),he(t)?l.sortOrder!==t&&(i.sortOrder=t):"none"===t?l.sortOrder&&(i.sortIndex=void 0,i.sortOrder=void 0):u(l)),n.columnOption(l.index,i)},getSortDataSourceParameters:function(e){var t=this,n=[],i=[];return f.default.each(t._columns,function(){(this.dataField||this.selector||this.calculateCellValue)&&(0,h.isDefined)(this.sortIndex)&&!(0,h.isDefined)(this.groupIndex)&&(n[this.sortIndex]=this)}),f.default.each(n,function(){var t=this&&this.sortOrder;if(he(t)){var n={selector:this.calculateSortValue||this.displayField||this.calculateDisplayValue||e&&this.selector||this.dataField||this.calculateCellValue,desc:"desc"===this.sortOrder};this.sortingMethod&&(n.compare=this.sortingMethod.bind(this)),i.push(n)}}),i.length>0?i:null},getGroupDataSourceParameters:function(e){var t=[];return f.default.each(this.getGroupColumns(),function(){var n=this.calculateGroupValue||this.displayField||this.calculateDisplayValue||e&&this.selector||this.dataField||this.calculateCellValue;if(n){var i={selector:n,desc:"desc"===this.sortOrder,isExpanded:!!this.autoExpandGroup};this.sortingMethod&&(i.compare=this.sortingMethod.bind(this)),t.push(i)}}),t.length>0?t:null},refresh:function(e){var t=[];return f.default.each(this._columns,function(){var n=this.lookup;if(n&&!this.calculateDisplayValue){if(e&&n.valueMap)return;n.update&&t.push(n.update())}}),V.when.apply(a.default,t).done(ae.bind(null,this))},_updateColumnOptions:function(e){e.selector=e.selector||function(t){return e.calculateCellValue(t)},f.default.each(["calculateSortValue","calculateGroupValue","calculateDisplayValue"],function(t,n){var i=e[n];(0,h.isFunction)(i)&&!i.originalCallback&&(e[n]=function(t){return i.call(e,t)},e[n].originalCallback=i)}),(0,h.isString)(e.calculateDisplayValue)&&(e.displayField=e.calculateDisplayValue,e.calculateDisplayValue=c.default.compileGetter(e.displayField)),e.calculateDisplayValue&&(e.displayValueMap=e.displayValueMap||{}),M(e,e.dataType);var n=e.lookup;n&&M(n,n.dataType);var i=n?n.dataType:e.dataType;i&&(e.alignment=e.alignment||R(i,this.option("rtlEnabled")),e.format=e.format||(0,S.getFormatByDataType)(i),e.customizeText=e.customizeText||F(i),e.defaultFilterOperations=e.defaultFilterOperations||!n&&t[i]||[],(0,h.isDefined)(e.filterOperations)||r(e),e.defaultFilterOperation=e.filterOperations&&e.filterOperations[0]||"=",e.showEditorAlways=(0,h.isDefined)(e.showEditorAlways)?e.showEditorAlways:"boolean"===i&&!e.cellTemplate)},updateColumnDataTypes:function(e){var t=this,n=t.option("dateSerializationFormat"),i=t._getFirstItems(e),o=!1;return f.default.each(t._columns,function(e,a){var r,s,l,u,c,d=a.lookup;if((0,S.isDateType)(a.dataType)&&void 0===a.serializationFormat&&(a.serializationFormat=n),d&&(0,S.isDateType)(d.dataType)&&void 0===a.serializationFormat&&(d.serializationFormat=n),a.calculateCellValue&&i.length){if(!a.dataType||d&&!d.dataType){for(r=0;r<i.length;r++)s=a.calculateCellValue(i[r]),a.dataType||(c=A(s),l=l||c,l&&c&&l!==c&&(l="string")),d&&!d.dataType&&(c=A((0,S.getDisplayValue)(a,s,i[r])),u=u||c,u&&c&&u!==c&&(u="string"));(l||u)&&(l&&(a.dataType=l),d&&u&&(d.dataType=u),o=!0)}if(void 0===a.serializationFormat||d&&void 0===d.serializationFormat)for(r=0;r<i.length;r++)s=a.calculateCellValue(i[r],!0),void 0===a.serializationFormat&&(a.serializationFormat=B(a.dataType,s)),d&&void 0===d.serializationFormat&&(d.serializationFormat=B(d.dataType,d.calculateCellValue(s,!0)))}t._updateColumnOptions(a)}),o},_customizeColumns:function(e){var t,n=this,i=n.option("customizeColumns");i&&(t=e.some(function(e){return(0,h.isObject)(e.ownerBand)}),t&&oe(n),i(e),re(n,p(n,e)))},updateColumns:function(e,t){var n,i,o=this;if(t||o.updateSortingGrouping(e),!e||e.isLoaded()){n=e?e.sort()||[]:o.getSortDataSourceParameters(),i=e?e.group()||[]:o.getGroupDataSourceParameters(),o._customizeColumns(o._columns),oe(o);var a=o._columns;return(0,V.when)(o.refresh(!0)).always(function(){o._columns===a&&(o._updateChanges(e,{sorting:n,grouping:i}),le(o))})}},_updateChanges:function(e,t){var n=this;e&&(n.updateColumnDataTypes(e),n._dataSourceApplied=!0),(0,S.equalSortParameters)(t.sorting,n.getSortDataSourceParameters())||se(n,"sorting"),(0,S.equalSortParameters)(t.grouping,n.getGroupDataSourceParameters())||se(n,"grouping"),se(n,"columns")},updateSortingGrouping:function(e,t){var n,i,o,a,r,s=this,l=function(e,t,n){var i,o,a;f.default.each(e,function(e,r){if(delete r[n],t)for(i=0;i<t.length;i++)if(o=t[i].selector,a=t[i].isExpanded,o===r.dataField||o===r.name||o===r.selector||o===r.calculateCellValue||o===r.calculateGroupValue){r.sortOrder=r.sortOrder||(t[i].desc?"desc":"asc"),void 0!==a&&(r.autoExpandGroup=a),r[n]=i;break}})};e&&(n=(0,S.normalizeSortingInfo)(e.sort()),i=(0,S.normalizeSortingInfo)(e.group()),o=s.getGroupDataSourceParameters(),a=s.getSortDataSourceParameters(),s._columns.length||(f.default.each(i,function(e,t){s._columns.push(t.selector)}),f.default.each(n,function(e,t){s._columns.push(t.selector)}),re(s,p(s,s._columns))),!t&&(o||s._hasUserState)||(0,S.equalSortParameters)(i,o)||(l(s._columns,i,"groupIndex"),t&&(se(s,"grouping"),r=!0)),!t&&(a||s._hasUserState)||(0,S.equalSortParameters)(n,a)||(l(s._columns,n,"sortIndex"),t&&(se(s,"sorting"),r=!0)),r&&le(s))},updateFilter:function(e,t,n,i){var o=this;if(!Array.isArray(e))return e;var a,r;for(e=(0,_.extend)([],e),n=void 0!==e.columnIndex?e.columnIndex:n,i=void 0!==e.filterValue?e.filterValue:i,(0,h.isString)(e[0])?(a=o.columnOption(e[0]),t?(0,y.default)().forceIsoDateParsing&&a&&a.serializeValue&&e.length>1&&(e[e.length-1]=a.serializeValue(e[e.length-1],"filter")):a&&a.selector&&(e[0]=a.selector,e[0].columnIndex=a.index)):(0,h.isFunction)(e[0])&&(e[0].columnIndex=n,e[0].filterValue=i),r=0;r<e.length;r++)e[r]=o.updateFilter(e[r],t,n,i);return e},columnCount:function(){return this._columns?this._columns.length:0},columnOption:function(e,t,i,o){var a,r,s,l=this,u=(0,h.isString)(e)&&e.substr(0,e.indexOf(":")),c=l._columns.concat(l._commandColumns);if(void 0!==e){for(u&&(e=e.substr(u.length+1)),a=0;a<c.length;a++)if(u){if(""+c[a][u]===e){s=c[a];break}}else if(c[a].index===e||c[a].name===e||c[a].dataField===e||c[a].caption===e){s=c[a];break}if(s){if(1===arguments.length)return(0,_.extend)({},s);if((0,h.isString)(t)){if(2===arguments.length)return de(l,s,t);r=r||n[t],de(l,s,t,i,o)}else(0,h.isObject)(t)&&f.default.each(t,function(e,t){r=r||n[e],de(l,s,e,t,o)});r&&oe(l,s),le(l)}}},clearSorting:function(){var e,t=this,n=this.columnCount();for(t.beginUpdate(),e=0;e<n;e++)t.columnOption(e,"sortOrder",void 0);t.endUpdate()},clearGrouping:function(){var e,t=this,n=this.columnCount();for(t.beginUpdate(),e=0;e<n;e++)t.columnOption(e,"groupIndex",void 0);t.endUpdate()},getVisibleIndex:function(e,t){var n,i=this.getVisibleColumns(t);for(n=i.length-1;n>=0;n--)if(i[n].index===e)return n;return-1},addColumn:function(e){var t=this,n=u(t,e),i=t._columns.length;t._columns.push(n),n.isBand&&(t._columns=p(t,t._columns),n=t._columns[i]),n.added=e,oe(t,n),t.updateColumns(t._dataSource)},deleteColumn:function(e){var t,n=this,i=n.columnOption(e);i&&i.index>=0&&(n._columns.splice(i.index,1),i.isBand&&(t=n.getChildrenByBandColumn(i.index).map(function(e){return e.index}),n._columns=n._columns.filter(function(e){return t.indexOf(e.index)<0})),oe(n),n.updateColumns(n._dataSource))},addCommandColumn:function(e){var t=this._commandColumns.filter(function(t){return t.command===e.command})[0];t||(t=e,this._commandColumns.push(t))},getUserState:function(){function e(e,o){void 0!==n[t][o]&&(i[t][o]=n[t][o])}var t,n=this._columns,i=[];for(t=0;t<n.length;t++)i[t]={},f.default.each(W,e);return i},setUserState:function(e){var t,n=this,i=n._dataSource,o=n.option("stateStoring.ignoreColumnOptionNames");o||(o=[],t=n.getCommonSettings(),n.option("columnChooser.enabled")||o.push("visible"),"none"===n.option("sorting.mode")&&o.push("sortIndex","sortOrder"),t.allowGrouping||o.push("groupIndex"),t.allowFixing||o.push("fixed","fixedPosition"),t.allowResizing||o.push("width","visibleWidth"),n.option("filterRow.visible")||o.push("filterValue","selectedFilterOperation"),n.option("headerFilter.visible")||o.push("filterValues","filterType")),n._columnsUserState=e,n._ignoreColumnOptionNames=o,n._hasUserState=!!e,se(n,"filtering"),n.init(),i&&(i.sort(null),i.group(null))},_createCalculatedColumnOptions:function(e,t){var n,i={},o=e.dataField;return(Array.isArray(e.columns)&&e.columns.length||e.isBand)&&(i.isBand=!0,o=null),o?((0,h.isString)(o)&&(n=c.default.compileGetter(o),i={caption:T.default.captionize(o),calculateCellValue:function(e,t){var i=n(e);return this.deserializeValue&&!t?this.deserializeValue(i):i},setCellValue:fe,parseValue:function(e){var t,n,i=this;return"number"===i.dataType?(0,h.isString)(e)&&i.format?(n=O.default.parse(e),(0,h.isNumeric)(n)&&(t=n)):(0,h.isDefined)(e)&&(0,h.isNumeric)(e)&&(t=Number(e)):"boolean"===i.dataType?e===i.trueText?t=!0:e===i.falseText&&(t=!1):(0,S.isDateType)(i.dataType)?(n=P.default.parse(e,i.format),n&&(t=n)):t=e,t}}),i.allowFiltering=!0):i.allowFiltering=!!e.calculateFilterExpression,i.calculateFilterExpression=function(){return N.default.defaultCalculateFilterExpression.apply(this,arguments)},i.createFilterExpression=function(e){var t;return this.calculateFilterExpression&&(t=this.calculateFilterExpression.apply(this,arguments)),(0,h.isFunction)(t)&&(t=[t,"=",!0]),t&&(t.columnIndex=this.index,t.filterValue=e),t},o&&(0,h.isString)(o)||(0,_.extend)(!0,i,{allowSorting:!1,allowGrouping:!1,calculateCellValue:function(){return null}}),t&&(i.allowFixing=!1),e.dataType&&(i.userDataType=e.dataType),!e.selectedFilterOperation||"defaultSelectedFilterOperation"in i||(i.defaultSelectedFilterOperation=e.selectedFilterOperation),e.lookup&&(i.lookup={calculateCellValue:function(e,t){return this.valueExpr&&(e=this.valueMap&&this.valueMap[e]),this.deserializeValue&&!t?this.deserializeValue(e):e},updateValueMap:function(){var e,t,n,i;if(this.valueMap={},this.items)for(e=c.default.compileGetter(this.valueExpr),t=c.default.compileGetter(this.displayExpr),i=0;i<this.items.length;i++){n=this.items[i];var o=t(n);this.valueMap[e(n)]=o,this.dataType=this.dataType||A(o)}},update:function(){var e,t=this,n=t.dataSource;if(n)if((0,h.isFunction)(n)&&!(0,l.isWrapped)(n)&&(n=n({})),(0,h.isPlainObject)(n)||n instanceof L.default||Array.isArray(n)){if(t.valueExpr)return e=(0,H.normalizeDataSourceOptions)(n),e.paginate=!1,n=new H.DataSource(e),n.load().done(function(e){t.items=e,t.updateValueMap&&t.updateValueMap()})}else w.default.log("E1016");else t.updateValueMap&&t.updateValueMap()}}),i.resizedCallbacks=(0,s.default)(),e.resized&&i.resizedCallbacks.add(e.resized.bind(e)),f.default.each(i,function(e){var t;(0,h.isFunction)(i[e])&&0!==e.indexOf("default")&&(t="default"+e.charAt(0).toUpperCase()+e.substr(1),i[t]=i[e])}),i},getRowCount:function(){return this._rowCount=this._rowCount||_e(this),this._rowCount},getRowIndex:function(e,t){var n=this._columns[e],i=this.getBandColumnsCache();return n&&(t||n.visible&&!n.command&&!(0,h.isDefined)(n.groupIndex))?v(e,i.columnParentByIndex).length:0},getChildrenByBandColumn:function(e,t){var n=this,i=n.getBandColumnsCache(),o=b(e,i.columnChildrenByIndex,!t);return t?o.filter(function(e){return e.visible&&!e.command}).sort(function(e,t){return e.visibleIndex-t.visibleIndex}):o},isParentBandColumn:function(e,t){var n=!1,i=this._columns[e],o=this.getBandColumnsCache(),a=i&&v(e,o.columnParentByIndex);return a&&f.default.each(a,function(e,i){if(i.index===t)return n=!0,!1}),n},isParentColumnVisible:function(e){var t=!0,n=this.getBandColumnsCache(),i=e>=0&&v(e,n.columnParentByIndex);return i&&f.default.each(i,function(e,n){return t=t&&n.visible}),t},getColumnId:function(e){return e.command&&e.type===K?we(this,e)?"type:"+e.type:"command:"+e.command:e.index}}}())}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(25),a=i(o),r=n(23),s=i(r),l=n(4),u=n(1),c=i(u),d=n(3),h=n(0),p=n(68),f=i(p),g=n(133),_=i(g),m=n(6);e.exports=s.default.Controller.inherit(function(){function e(t,n){if(t&&(t=t.slice(0),n))for(var i=0;i<t.length;i++)t[i]=(0,h.extend)({key:t[i].key},t[i]),t[i].items=e(t[i].items,n-1);return t}function t(e,t){var n={};return t&&(n={sorting:!s.default.equalSortParameters(e.sort,t.sort),grouping:!s.default.equalSortParameters(e.group,t.group,!0),groupExpanding:!s.default.equalSortParameters(e.group,t.group)||t.groupExpand,filtering:!s.default.equalFilterParameters(e.filter,t.filter),pageIndex:e.pageIndex!==t.pageIndex,skip:e.skip!==t.skip,take:e.take!==t.take},n.reload=n.sorting||n.grouping||n.filtering,n.paging=n.pageIndex||n.take),n}function n(e,t){c.default.isDefined(t)?(0,l.executeAsync)(e,t):e()}function i(){return{pages:{}}}function o(e){return e.cachedPagesData.pages[e.pageIndex]}function r(e,t){var n=e.pageIndex;void 0!==n&&(e.cachedPagesData.pages[n]=t)}return{init:function(e,t){var n=this;n._dataSource=e,n._remoteOperations=t||{},n._isLastPage=!e.isLastPage(),n._hasLastPage=!1,n._currentTotalCount=0,n._cachedPagesData=i(),n._lastOperationTypes={},n.changed=(0,a.default)(),n.loadingChanged=(0,a.default)(),n.loadError=(0,a.default)(),n.customizeStoreLoadOptions=(0,a.default)(),n.changing=(0,a.default)(),n._dataChangedHandler=n._handleDataChanged.bind(n),n._dataLoadingHandler=n._handleDataLoading.bind(n),n._dataLoadedHandler=n._handleDataLoaded.bind(n),n._loadingChangedHandler=n._handleLoadingChanged.bind(n),n._loadErrorHandler=n._handleLoadError.bind(n),n._pushHandler=n._handlePush.bind(n),n._changingHandler=n._handleChanging.bind(n),e.on("changed",n._dataChangedHandler),e.on("customizeStoreLoadOptions",n._dataLoadingHandler),e.on("customizeLoadResult",n._dataLoadedHandler),e.on("loadingChanged",n._loadingChangedHandler),e.on("loadError",n._loadErrorHandler),e.on("changing",n._changingHandler),e.store().on("push",n._pushHandler),(0,d.each)(e,function(e,t){!n[e]&&c.default.isFunction(t)&&(n[e]=function(){return this._dataSource[e].apply(this._dataSource,arguments)})})},remoteOperations:function(){return this._remoteOperations},dispose:function(e){var t=this,n=t._dataSource,i=n.store();n.off("changed",t._dataChangedHandler),n.off("customizeStoreLoadOptions",t._dataLoadingHandler),n.off("customizeLoadResult",t._dataLoadedHandler),n.off("loadingChanged",t._loadingChangedHandler),n.off("loadError",t._loadErrorHandler),n.off("changing",t._changingHandler),i&&i.off("push",t._pushHandler),e||n.dispose()},refresh:function(e,t,n){var i=this,o=i._dataSource;(t||n.reload)&&(i._currentTotalCount=0,i._isLastPage=!o.paginate(),i._hasLastPage=i._isLastPage)},resetCache:function(){this._cachedStoreData=void 0,this._cachedPagingData=void 0},resetPagesCache:function(){this._cachedPagesData=i()},_needClearStoreDataCache:function(){var e=this.remoteOperations(),n=t(this._lastLoadOptions||{},{}),i=Object.keys(e).every(function(t){return!n[t]||!e[t]});return!i},push:function(e,t){var n=this.store();this._needClearStoreDataCache()&&(this._cachedStoreData=void 0),this._cachedPagingData=void 0,this.resetPagesCache(!0),this._cachedStoreData&&_.default.applyBatch(n,this._cachedStoreData,e),t||this._applyBatch(e)},getDataIndexGetter:function(){var e=this;if(!this._dataIndexGetter){var t,n=this.store();this._dataIndexGetter=function(i){var o=e._cachedStoreData||[];if(!t){t={};for(var a=0;a<o.length;a++)t[(0,l.getKeyHash)(n.keyOf(o[a]))]=a}return t[(0,l.getKeyHash)(n.keyOf(i))]}}return this._dataIndexGetter},_getKeyInfo:function(){return this.store()},_applyBatch:function(e){var t=this._getKeyInfo(),n=this._dataSource,i=s.default.normalizeSortingInfo(this.group()).length;e=e.filter(function(e){return!n.paginate()||"insert"!==e.type||void 0!==e.index}),_.default.applyBatch(t,this._items,e,i,!0),_.default.applyBatch(t,n.items(),e,i,!0),e.splice(0,e.length)},_handlePush:function(e){this.push(e,!0)},_handleChanging:function(e){this.changing.fire(e),this._applyBatch(e.changes)},_needCleanCacheByOperation:function(e,t){var n=["filtering","sorting","paging"],i=n.indexOf(e),o=i>=0?n.slice(i):[e];return o.some(function(e){return t[e]})},_customizeRemoteOperations:function(e,t,n){var o=this,a=o._cachedStoreData,r=o._cachedPagingData,s=o._cachedPagesData;(e.storeLoadOptions.filter&&!e.remoteOperations.filtering||e.storeLoadOptions.sort&&!e.remoteOperations.sorting)&&(e.remoteOperations={}),t?(a=void 0,r=void 0,s=i()):(n.reload?(r=void 0,s=i()):(n.take||n.groupExpanding)&&(s=i()),(0,d.each)(n,function(t,n){n&&o._needCleanCacheByOperation(t,e.remoteOperations)&&(a=void 0,r=void 0)})),r&&(e.remoteOperations.paging=!1),e.cachedStoreData=a,e.cachedPagingData=r,e.cachedPagesData=s,e.isCustomLoading||(o._cachedStoreData=a,o._cachedPagingData=r,o._cachedPagesData=s)},_handleDataLoading:function(e){var n,i,o=this,a=o._dataSource,r=o._lastLoadOptions;o.customizeStoreLoadOptions.fire(e),e.delay=this.option("loadingTimeout"),e.originalStoreLoadOptions=e.storeLoadOptions,e.remoteOperations=(0,h.extend)({},this.remoteOperations());var s=!o.isLoaded()&&!o._isRefreshing;if(o.option("integrationOptions.renderedOnServer")&&!o.isLoaded()&&(e.delay=void 0),n=(0,h.extend)({pageIndex:o.pageIndex()},e.storeLoadOptions),i=t(n,r),o._customizeRemoteOperations(e,s,i),!e.isCustomLoading){var l=o._isRefreshing;e.pageIndex=a.pageIndex(),e.lastLoadOptions=n,e.operationTypes=i,o._loadingOperationTypes=i,o._isRefreshing=!0,(0,m.when)(l||o._isRefreshed||o.refresh(e,s,i)).done(function(){o._lastOperationId===e.operationId&&(o._isRefreshed=!0,o.load().always(function(){o._isRefreshed=!1}))}).fail(function(){a.cancel(e.operationId)}).always(function(){o._isRefreshing=!1}),a.cancel(o._lastOperationId),o._lastOperationId=e.operationId,o._isRefreshing&&a.cancel(o._lastOperationId)}this._handleDataLoadingCore(e)},_handleDataLoadingCore:function(e){var t=e.remoteOperations;e.loadOptions={};var n=e.cachedPagesData.extra,i={filter:!t.filtering,sort:!t.sorting,group:!t.grouping,summary:!t.summary,skip:!t.paging,take:!t.paging,requireTotalCount:n&&"totalCount"in n||!t.paging};(0,d.each)(e.storeLoadOptions,function(t,n){i[t]&&(e.loadOptions[t]=n,delete e.storeLoadOptions[t])}),n&&(e.extra=n),e.data=o(e)||e.cachedStoreData},_handleDataLoaded:function(t){var n=this,i=t.loadOptions,a=t.remoteOperations&&!t.remoteOperations.paging,l=t.cachedPagesData,u=t.storeLoadOptions,d=this.option("cacheEnabled")!==!1&&u,p=d&&!t.isCustomLoading&&l&&(!a||u.group)&&!this.option("legacyRendering"),g=d&&a,_=g&&!t.isCustomLoading;if(!i)return void this._dataSource.cancel(t.operationId);t.lastLoadOptions&&(this._lastLoadOptions=t.lastLoadOptions,Object.keys(t.operationTypes).forEach(function(e){n._lastOperationTypes[e]=n._lastOperationTypes[e]||t.operationTypes[e]})),a&&(t.skip=i.skip,t.take=i.take,delete i.skip,delete i.take),i.group&&(i.group=t.group||i.group);var v=s.default.normalizeSortingInfo(u.group||i.group).length;p&&o(t)||(g&&t.cachedPagingData?t.data=e(t.cachedPagingData,v):(_&&(this._cachedStoreData?t.mergeStoreLoadData&&(t.data=this._cachedStoreData=this._cachedStoreData.concat(t.data)):this._cachedStoreData=e(t.data,s.default.normalizeSortingInfo(u.group).length)),new f.default(t.data).load(i).done(function(i){t.data=i,_&&(n._cachedPagingData=e(t.data,v))}).fail(function(e){t.data=(new m.Deferred).reject(e)})),i.requireTotalCount&&a&&(t.extra=c.default.isPlainObject(t.extra)?t.extra:{},t.extra.totalCount=t.data.length),t.extra&&t.extra.totalCount>=0&&(u.requireTotalCount===!1||i.requireTotalCount===!1)&&(t.extra.totalCount=-1),this._handleDataLoadedCore(t),p&&(l.extra=l.extra||(0,h.extend)({},t.extra),(0,m.when)(t.data).done(function(n){r(t,e(n,v))}))),t.storeLoadOptions=t.originalStoreLoadOptions},_handleDataLoadedCore:function(e){e.remoteOperations&&!e.remoteOperations.paging&&Array.isArray(e.data)&&(void 0!==e.skip&&(e.data=e.data.slice(e.skip)),
47void 0!==e.take&&(e.data=e.data.slice(0,e.take)))},_handleLoadingChanged:function(e){this.loadingChanged.fire(e)},_handleLoadError:function(e){this.loadError.fire(e),this.changed.fire({changeType:"loadError",error:e})},_handleDataChanged:function(e){var t,n=this,i=n._dataSource,o=!1,a=n.itemsCount();n._isLastPage=!a||!n.pageSize()||a<n.pageSize(),n._isLastPage&&(n._hasLastPage=!0),i.totalCount()>=0?i.pageIndex()>=n.pageCount()&&(i.pageIndex(n.pageCount()-1),n.pageIndex(i.pageIndex()),n.resetPagesCache(),i.load(),o=!0):(t=i.pageIndex()*n.pageSize()+a,n._currentTotalCount=Math.max(n._currentTotalCount,t),0===a&&i.pageIndex()>=n.pageCount()&&(i.pageIndex(n.pageCount()-1),"infinite"!==n.option("scrolling.mode")&&(i.load(),o=!0))),o||(n._operationTypes=n._lastOperationTypes,n._lastOperationTypes={},n.component._optionCache={},n.changed.fire(e),n.component._optionCache=void 0)},_scheduleCustomLoadCallbacks:function(e){var t=this;t._isCustomLoading=!0,e.always(function(){t._isCustomLoading=!1})},loadingOperationTypes:function(){return this._loadingOperationTypes},operationTypes:function(){return this._operationTypes},isLastPage:function(){return this._isLastPage},totalCount:function(){return parseInt(this._currentTotalCount||this._dataSource.totalCount())},itemsCount:function(){return this._dataSource.items().length},totalItemsCount:function(){return this.totalCount()},pageSize:function(){var e=this._dataSource;return arguments.length||e.paginate()?e.pageSize.apply(e,arguments):0},pageCount:function(){var e=this,t=e.totalItemsCount(),n=e.pageSize();return n&&t>0?Math.max(1,Math.ceil(t/n)):1},hasKnownLastPage:function(){return this._hasLastPage||this._dataSource.totalCount()>=0},loadFromStore:function(e){var t=this._dataSource,n=new m.Deferred;if(t)return t.store().load(e).done(function(e,t){e&&!Array.isArray(e)&&Array.isArray(e.data)&&(t=e,e=e.data),n.resolve(e,t)}).fail(n.reject),n},isCustomLoading:function(){return!!this._isCustomLoading},load:function(e){var t,i,o,a=this,r=a._dataSource,s=new m.Deferred;return e?(t=r.store(),o=r.loadOptions(),i={storeLoadOptions:e,isCustomLoading:!0},(0,d.each)(t._customLoadOptions()||[],function(e,t){t in i.storeLoadOptions||(i.storeLoadOptions[t]=o[t])}),a._scheduleCustomLoadCallbacks(s),r._scheduleLoadCallbacks(s),a._handleDataLoading(i),n(function(){return r.store()?void(0,m.when)(i.data||a.loadFromStore(i.storeLoadOptions)).done(function(n,o){i.data=n,i.extra=o||{},a._handleDataLoaded(i),e.requireTotalCount&&void 0===i.extra.totalCount&&(i.extra.totalCount=t.totalCount(i.storeLoadOptions)),(0,m.when)(i.data,i.extra.totalCount).done(function(e,t){i.extra.totalCount=t,s.resolve(e,i.extra)}).fail(s.reject)}).fail(s.reject):s.reject("canceled")},a.option("loadingTimeout")),s.fail(function(){a.fireEvent("loadError",arguments)}).promise()):r.load()},reload:function(e){return e?this._dataSource.reload():this._dataSource.load()},getCachedStoreData:function(){return this._cachedStoreData}}}())},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(39),s=i(r),l=n(36),u=i(l),c=n(68),d=i(c),h=n(136),p=i(h),f=n(17),g=i(f),_=n(4),m=n(3),v=n(1),y=i(v),x=n(0),b=n(86),w=i(b),C=n(6),k=n(304);e.exports={defaultOptions:function(){return{loadingTimeout:0,dataSource:null,cacheEnabled:!0,repaintChangesOnly:!1,highlightChanges:!1,onDataErrorOccurred:null,remoteOperations:"auto",paging:{enabled:!0,pageSize:void 0,pageIndex:void 0}}},controllers:{data:s.default.Controller.inherit({}).include(w.default).inherit(function(){var e=function(e,t,n){var i=e._dataSource;return i?void 0!==n?i[t]()!==n?("pageSize"===t&&i.pageIndex(0),i[t](n),e._skipProcessingPagingChange=!0,e.option("paging."+t,n),e._skipProcessingPagingChange=!1,i["pageIndex"===t?"load":"reload"]().done(e.pageChanged.fire.bind(e.pageChanged))):(0,C.Deferred)().resolve().promise():i[t]():0},t={init:function(){var e=this;e._items=[],e._columnsController=e.getController("columns"),e._columnsChangedHandler=e._handleColumnsChanged.bind(e),e._dataChangedHandler=e._handleDataChanged.bind(e),e._loadingChangedHandler=e._handleLoadingChanged.bind(e),e._loadErrorHandler=e._handleLoadError.bind(e),e._customizeStoreLoadOptionsHandler=e._handleCustomizeStoreLoadOptions.bind(e),e._changingHandler=e._handleChanging.bind(e),e._columnsController.columnsChanged.add(e._columnsChangedHandler),e._isLoading=!1,e._isCustomLoading=!1,e._repaintChangesOnly=void 0,e._changes=[],e.createAction("onDataErrorOccurred"),e.dataErrorOccurred.add(function(t){return e.executeAction("onDataErrorOccurred",{error:t})}),e._refreshDataSource()},callbackNames:function(){return["changed","loadingChanged","dataErrorOccurred","pageChanged","dataSourceChanged"]},callbackFlags:function(e){if("dataErrorOccurred"===e)return{stopOnFalse:!0}},publicMethods:function(){return["beginCustomLoading","endCustomLoading","refresh","filter","clearFilter","getCombinedFilter","keyOf","byKey","getDataByKeys","pageIndex","pageSize","pageCount","totalCount","_disposeDataSource","getKeyByRowIndex","getRowIndexByKey","getDataSource","getVisibleRows","repaintRows"]},reset:function(){this._columnsController.reset(),this._items=[],this._refreshDataSource()},optionChanged:function(e){function t(){e.handled=!0}var n,i=this;if("dataSource"===e.name&&e.name===e.fullName&&(e.value===e.previousValue||i.option("columns")&&Array.isArray(e.value)&&Array.isArray(e.previousValue))){if(e.value!==e.previousValue){var o=i.store();o&&(o._array=e.value)}return t(),void i.refresh(i.option("repaintChangesOnly"))}switch(e.name){case"cacheEnabled":case"repaintChangesOnly":case"highlightChanges":case"loadingTimeout":case"remoteOperations":t();break;case"keyExpr":case"dataSource":case"scrolling":t(),i.skipProcessingPagingChange(e.fullName)||i.reset();break;case"paging":n=i.dataSource(),n&&i._setPagingOptions(n)&&n.load().done(i.pageChanged.fire.bind(i.pageChanged)),t();break;case"rtlEnabled":i.reset();break;case"columns":n=i.dataSource(),n&&n.isLoading()&&e.name===e.fullName&&n.load();break;default:i.callBase(e)}},isReady:function(){return!this._isLoading},getDataSource:function(){return this._dataSource&&this._dataSource._dataSource},getCombinedFilter:function(e){return this.combinedFilter(void 0,e)},combinedFilter:function(e,t){var n,i=this,o=i._dataSource,a=i._columnsController;return o&&(void 0===e&&(e=o.filter()),n=i._calculateAdditionalFilter(),n&&(a.isDataSourceApplied()||a.isAllDataTypesDefined())&&(e=u.default.combineFilters([n,e])),e=a.updateFilter(e,t||o.remoteOperations().filtering)),e},waitReady:function(){return this._updateLockCount?(this._readyDeferred=new C.Deferred,this._readyDeferred):(0,C.when)()},_endUpdateCore:function(){var e=this._changes;if(e.length){this._changes=[];var t=e.every(function(e){return e.repaintChangesOnly});this.updateItems(1===e.length?e[0]:{repaintChangesOnly:t})}this._readyDeferred&&(this._readyDeferred.resolve(),this._readyDeferred=null)},_handleCustomizeStoreLoadOptions:function(e){var t=this._columnsController,n=this._dataSource,i=e.storeLoadOptions;e.isCustomLoading&&!i.isLoadingAll||(i.filter=this.combinedFilter(i.filter),t.isDataSourceApplied()||t.updateColumnDataTypes(n),this._columnsUpdating=!0,t.updateSortingGrouping(n,!this._isFirstLoading),this._columnsUpdating=!1,i.sort=t.getSortDataSourceParameters(),i.group=t.getGroupDataSourceParameters(),n.sort(i.sort),n.group(i.group),i.sort=t.getSortDataSourceParameters(!n.remoteOperations().sorting),e.group=t.getGroupDataSourceParameters(!n.remoteOperations().grouping))},_handleColumnsChanged:function(e){var t,n,i,o=this,a=e.changeTypes,r=e.optionNames,s=function e(){o._columnsController.columnsChanged.remove(e),o.updateItems()};if(a.sorting||a.grouping)o._dataSource&&!o._columnsUpdating&&(o._dataSource.group(o._columnsController.getGroupDataSourceParameters()),o._dataSource.sort(o._columnsController.getSortDataSourceParameters()),o.reload());else if(a.columns&&((r.filterValues||r.filterValue||r.selectedFilterOperation)&&(t=o._columnsController.columnOption(e.columnIndex,"filterValue"),n=o._columnsController.columnOption(e.columnIndex,"filterValues"),(Array.isArray(n)||void 0===e.columnIndex||y.default.isDefined(t)||!r.selectedFilterOperation||r.filterValue)&&(o._applyFilter(),i=!0)),o._needApplyFilter||u.default.checkChanges(r,["width","visibleWidth","filterValue","bufferedFilterValue","selectedFilterOperation","filterValues","filterType"])||o._columnsController.columnsChanged.add(s),y.default.isDefined(r.visible))){var l=o._columnsController.columnOption(e.columnIndex);l&&(y.default.isDefined(l.filterValue)||y.default.isDefined(l.filterValues))&&(o._applyFilter(),i=!0)}!i&&a.filtering&&o.reload()},_handleDataChanged:function(e){var t=this,n=t._dataSource,i=t._columnsController,o=!1;this._isFirstLoading=!1,n&&!t._isDataSourceApplying&&(t._isDataSourceApplying=!0,(0,C.when)(t._columnsController.applyDataSource(n)).done(function(){t._isLoading&&t._handleLoadingChanged(!1),o&&e&&e.isDelayed&&(e.isDelayed=!1),t._isDataSourceApplying=!1;var n=function(){var e=t._calculateAdditionalFilter();return e&&e.length},i=t._needApplyFilter;t._needApplyFilter=!1,i&&!t._isAllDataTypesDefined&&n()?(g.default.log("W1005",t.component.NAME),t._applyFilter()):t.updateItems(e,!0)}).fail(function(){t._isDataSourceApplying=!1}),t._isDataSourceApplying&&(o=!0,t._handleLoadingChanged(!0)),t._needApplyFilter=!t._columnsController.isDataSourceApplied(),t._isAllDataTypesDefined=i.isAllDataTypesDefined())},_handleLoadingChanged:function(e){this._isLoading=e,this._fireLoadingChanged()},_handleLoadError:function(e){this.dataErrorOccurred.fire(e)},fireError:function(){this.dataErrorOccurred.fire(g.default.Error.apply(g.default,arguments))},_setPagingOptions:function(e){var t=this.option("paging.pageIndex"),n=this.option("paging.pageSize"),i=this.option("paging.enabled"),o=this.option("scrolling.mode"),a="infinite"===o,r="virtual"===o,s=i||r||a,l=!1;return e.requireTotalCount(!a),void 0!==i&&e.paginate()!==s&&(e.paginate(s),l=!0),void 0!==n&&e.pageSize()!==n&&(e.pageSize(n),l=!0),void 0!==t&&e.pageIndex()!==t&&(e.pageIndex(t),l=!0),l},_getSpecificDataSourceOption:function(){var e=this.option("dataSource");return Array.isArray(e)?{store:{type:"array",data:e,key:this.option("keyExpr")}}:e},_initDataSource:function(){var e=this,t=this.option("dataSource"),n=this._dataSource;e.callBase(),t=e._dataSource,e._isFirstLoading=!0,t?(e._setPagingOptions(t),e.setDataSource(t)):n&&e.updateItems()},_loadDataSource:function(){var e=this,t=e._dataSource,n=new C.Deferred;return(0,C.when)(this._columnsController.refresh(!0)).always(function(){t?t.load().done(n.resolve).fail(n.reject):n.resolve()}),n.promise()},_beforeProcessItems:function(e){return e.slice(0)},getRowIndexDelta:function(){return 0},_processItems:function(e,t){var n=this,i=n.getRowIndexDelta(),o=n._columnsController.getVisibleColumns(null,"loadingAll"===t),a=n._items,r="append"===t&&a.length>0?a[a.length-1].dataIndex+1:0,s={visibleColumns:o,dataIndex:r},l=[];return(0,m.each)(e,function(e,t){y.default.isDefined(t)&&(s.rowIndex=e-i,t=n._processItem(t,s),l.push(t))}),l},_processItem:function(e,t){return e=this._generateDataItem(e,t),e=this._processDataItem(e,t),e.dataIndex=t.dataIndex++,e},_generateDataItem:function(e){return{rowType:"data",data:e,key:this.keyOf(e)}},_processDataItem:function(e,t){return e.values=this.generateDataValues(e.data,t.visibleColumns),e},generateDataValues:function(e,t,n){for(var i,o,a=[],r=0;r<t.length;r++)i=t[r],o=n?void 0:null,i.command||(i.calculateCellValue?o=i.calculateCellValue(e):i.dataField&&(o=e[i.dataField])),a.push(o);return a},_applyChange:function(e){var t=this;"update"===e.changeType?t._applyChangeUpdate(e):t.items().length&&e.repaintChangesOnly&&"refresh"===e.changeType?t._applyChangesOnly(e):"refresh"===e.changeType&&t._applyChangeFull(e)},_applyChangeFull:function(e){this._items=e.items.slice(0)},_applyChangeUpdate:function(e){var t,n=this,i=e.items,o=e.rowIndices.slice(0),a=n.getRowIndexDelta(),r=n.option("repaintChangesOnly"),s=-1,l=0;o.sort(function(e,t){return e-t});for(var u=0;u<o.length;u++)o[u]<0&&(o.splice(u,1),u--);e.items=[],e.rowIndices=[],e.columnIndices=[],e.changeTypes=[];var c=function(e,t,n){var i=e&&t&&(0,_.equalByValue)(e.key,t.key);return i&&n&&(i=e.rowType===t.rowType&&("detail"!==t.rowType||e.isEditing===t.isEditing)),i};(0,m.each)(o,function(o,u){var d,h,p,f,g,_;if(u+=l+a,s!==u){if(s=u,d=n._items[u],p=n._items[u+1],h=i[u],f=i[u+1],g=c(d,p)||c(h,f),h&&(h.rowIndex=u,e.items.push(h)),d&&h&&c(d,h,g))t="update",n._items[u]=h,d.visible!==h.visible?e.items.splice(-1,1,{visible:h.visible}):r&&!e.isFullUpdate&&(h.cells=d.cells,_=n._getChangedColumnIndices(d,h,u));else if(h&&!d||f&&c(d,f,g))t="insert",n._items.splice(u,0,h),l++;else if(d&&!h||p&&c(h,p,g))t="remove",n._items.splice(u,1),l--,s=-1;else{if(!h)return;t="update",n._items[u]=h}e.rowIndices.push(u-a),e.changeTypes.push(t),e.columnIndices.push(_)}})},_isCellChanged:function(e,t,n,i,o){function a(e,t){return!!e.modifiedValues&&void 0!==e.modifiedValues[t]}return JSON.stringify(e.values[i])!==JSON.stringify(t.values[i])||a(e,i)!==a(t,i)},_getChangedColumnIndices:function(e,t,n,i){if(e.rowType===t.rowType&&"group"!==t.rowType&&"groupFooter"!==t.rowType){for(var o=[],a=0;a<e.values.length;a++)if(this._isCellChanged(e,t,n,a,i))o.push(a);else{var r=e.cells&&e.cells[a];r&&r.update&&r.update(t)}return e.update&&e.update(t),o}},_applyChangesOnly:function(e){function t(e){if(e)return e.rowType+","+JSON.stringify(e.key)}function n(e,t){return JSON.stringify(e.values)===JSON.stringify(t.values)&&(e.modified===t.modified&&e.inserted===t.inserted&&e.removed===t.removed&&(("group"!==e.rowType&&"groupFooter"!==e.rowType||e.isExpanded===t.isExpanded&&JSON.stringify(e.summaryCells)===JSON.stringify(t.summaryCells))&&(e.cells&&(e.update&&e.update(t),e.cells.forEach(function(e){e&&e.update&&e.update(t)})),!0)))}var i=this,o=[],a=[],r=[],s=[],l={},u=this._items.slice();e.items.forEach(function(e,n){var i=t(e);l[i]=n,e.rowIndex=n});var c=(0,k.findChanges)(u,e.items,t,n);return c?(c.forEach(function(e){switch(e.type){case"update":var t=e.index,n=e.data,l=e.oldItem,u=i._getChangedColumnIndices(l,n,t,!0);o.push(t),r.push("update"),s.push(n),i._items[t]=n,n.cells=l.cells,n.oldValues=l.values,a.push(u);break;case"insert":o.push(e.index),r.push("insert"),s.push(e.data),a.push(void 0),i._items.splice(e.index,0,e.data);break;case"remove":o.push(e.index),r.push("remove"),i._items.splice(e.index,1),s.push(e.oldItem),a.push(void 0)}}),e.repaintChangesOnly=!0,e.changeType="update",e.rowIndices=o,e.columnIndices=a,e.changeTypes=r,e.items=s,u.length&&(e.isLiveUpdate=!0),void this._correctRowIndices(function(e){var n=u[e],i=t(n),o=l[i];return o>=0?o-e:0})):void this._applyChangeFull(e)},_correctRowIndices:_.noop,_updateItemsCore:function(e){var t,n,i=this,o=i._dataSource,a=e.changeType||"refresh";e.changeType=a,o?(t=e.items||o.items(),t=i._beforeProcessItems(t),t=i._processItems(t,a),e.items=t,n=i._items.length===t.length&&i._items,i._applyChange(e),(0,m.each)(i._items,function(e,t){t.rowIndex=e,n&&(t.cells=n[e].cells||[])})):i._items=[]},_handleChanging:function(e){var t=this,n=t.getVisibleRows(),i=t.dataSource();i&&e.changes.forEach(function(e){if("insert"===e.type&&e.index>=0){for(var t,i=0,o=0;o<e.index;o++)t=n[o],!t||"data"!==t.rowType&&"group"!==t.rowType||i++;e.index=i}})},updateItems:function(e,t){e=e||{};var n=this;if(void 0!==n._repaintChangesOnly)e.repaintChangesOnly=n._repaintChangesOnly;else if(e.changes)e.repaintChangesOnly=n.option("repaintChangesOnly");else if(t){var i=n.dataSource().operationTypes();e.repaintChangesOnly=i&&!i.grouping&&!i.filtering&&n.option("repaintChangesOnly"),e.isDataChanged=!0,i&&(i.reload||i.paging||i.groupExpanding)&&(e.needUpdateDimensions=!0)}return n._updateLockCount?void n._changes.push(e):(n._updateItemsCore(e),void(e.cancel||n._fireChanged(e)))},loadingOperationTypes:function(){var e=this.dataSource();return e&&e.loadingOperationTypes()||{}},_fireChanged:function(e){var t=this;(0,_.deferRender)(function(){t.changed.fire(e)})},isLoading:function(){return this._isLoading||this._isCustomLoading},_fireLoadingChanged:function(){this.loadingChanged.fire(this.isLoading(),this._loadingText)},_calculateAdditionalFilter:function(){return null},_applyFilter:function(){var e=this,t=e._dataSource;if(t)return t.pageIndex(0),e.reload().done(e.pageChanged.fire.bind(e.pageChanged))},filter:function e(t){var n=this._dataSource,e=n.filter();return 0===arguments.length?n?n.filter():void 0:(t=arguments.length>1?Array.prototype.slice.call(arguments,0):t,void(u.default.equalFilterParameters(e,t)||(n&&n.filter(t),this._applyFilter())))},clearFilter:function(e){var t=this,n=t._columnsController,i=function(e){var t,i=n.columnCount();for(t=0;t<i;t++)n.columnOption(t,e,void 0)};if(t.component.beginUpdate(),arguments.length>0)switch(e){case"dataSource":t.filter(null);break;case"search":t.searchByText("");break;case"header":i("filterValues");break;case"row":i("filterValue")}else t.filter(null),t.searchByText(""),i("filterValue"),i("filterValues");t.component.endUpdate()},_fireDataSourceChanged:function(){var e=this,t=function t(){e.changed.remove(t),e.dataSourceChanged.fire()};e.changed.add(t)},_getDataSourceAdapter:_.noop,_createDataSourceAdapterCore:function(e,t){var n=this._getDataSourceAdapter(),i=n.create(this.component);return i.init(e,t),i},isLocalStore:function(e){return e=e||this.store(),e instanceof d.default},isCustomStore:function(e){return e=e||this.store(),e instanceof p.default},_createDataSourceAdapter:function(e){var t=this.option("remoteOperations"),n=e.store(),i={filtering:!0,sorting:!0,paging:!0,grouping:!0,summary:!0};return t&&t.groupPaging&&(t=(0,x.extend)({},i,t)),"auto"===t&&(t=this.isLocalStore(n)||this.isCustomStore(n)?{}:{filtering:!0,sorting:!0,paging:!0}),t===!0&&(t=i),this._createDataSourceAdapterCore(e,t)},setDataSource:function(e){var t=this,n=t._dataSource;!e&&n&&(n.changed.remove(t._dataChangedHandler),n.loadingChanged.remove(t._loadingChangedHandler),n.loadError.remove(t._loadErrorHandler),n.customizeStoreLoadOptions.remove(t._customizeStoreLoadOptionsHandler),n.changing.remove(t._changingHandler),n.cancelAll(),n.dispose(t._isSharedDataSource)),e&&(e=t._createDataSourceAdapter(e)),t._dataSource=e,e&&(t._fireDataSourceChanged(),t._isLoading=!e.isLoaded(),t._needApplyFilter=!0,t._isAllDataTypesDefined=t._columnsController.isAllDataTypesDefined(),e.changed.add(t._dataChangedHandler),e.loadingChanged.add(t._loadingChangedHandler),e.loadError.add(t._loadErrorHandler),e.customizeStoreLoadOptions.add(t._customizeStoreLoadOptionsHandler),e.changing.add(t._changingHandler))},items:function(){return this._items},isEmpty:function(){return!this.items().length},pageCount:function(){return this._dataSource?this._dataSource.pageCount():1},dataSource:function(){return this._dataSource},store:function(){var e=this._dataSource;return e&&e.store()},loadAll:function(e){var t=this,n=new C.Deferred,i=t._dataSource;if(i)if(e){var o={data:e,isCustomLoading:!0,storeLoadOptions:{isLoadingAll:!0},loadOptions:{filter:t.getCombinedFilter(),group:i.group(),sort:i.sort()}};i._handleDataLoaded(o),(0,C.when)(o.data).done(function(e){e=t._beforeProcessItems(e),n.resolve(t._processItems(e,"loadingAll"),o.extra&&o.extra.summary)}).fail(n.reject)}else if(i.isLoading())n.reject();else{var a=(0,x.extend)({},i.loadOptions(),{isLoadingAll:!0,requireTotalCount:!1});i.load(a).done(function(e,i){e=t._beforeProcessItems(e),e=t._processItems(e,"loadingAll"),n.resolve(e,i&&i.summary)}).fail(n.reject)}else n.resolve([]);return n},getKeyByRowIndex:function(e){var t=this.items()[e];if(t)return t.key},getRowIndexByKey:function(e){return u.default.getIndexByKey(e,this.items())},keyOf:function(e){var t=this.store();if(t)return t.keyOf(e)},byKey:function(e){var t,n=this.store(),i=this.getRowIndexByKey(e);if(n)return i>=0&&(t=(new C.Deferred).resolve(this.items()[i].data)),t||n.byKey(e)},key:function(){var e=this.store();if(e)return e.key()},getRowIndexOffset:function(){return 0},getDataByKeys:function(e){var t=this,n=new C.Deferred,i=[],o=[];return(0,m.each)(e,function(e,n){i.push(t.byKey(n).done(function(t){o[e]=t}))}),C.when.apply(a.default,i).always(function(){n.resolve(o)}),n},pageIndex:function(t){return e(this,"pageIndex",t)},pageSize:function(t){return e(this,"pageSize",t)},beginCustomLoading:function(e){this._isCustomLoading=!0,this._loadingText=e||"",this._fireLoadingChanged()},endCustomLoading:function(){this._isCustomLoading=!1,this._loadingText=void 0,this._fireLoadingChanged()},refresh:function(e){e===!0?e={reload:!0,changesOnly:!0}:e||(e={lookup:!0,selection:!0,reload:!0});var t=this,n=t.getDataSource(),i=e.changesOnly,o=new C.Deferred,a=function(){t._repaintChangesOnly=!!i};return(0,C.when)(!e.lookup||t._columnsController.refresh()).always(function(){e.load||e.reload?(n&&n.on("customizeLoadResult",a),(0,C.when)(t.reload(e.reload,i)).always(function(){n&&n.off("customizeLoadResult",a),t._repaintChangesOnly=void 0}).done(o.resolve).fail(o.reject)):(t.updateItems({repaintChangesOnly:e.changesOnly}),o.resolve())}),o.promise()},getVisibleRows:function(){return this.items()},_disposeDataSource:function(){this.setDataSource(null)},repaintRows:function(e,t){e=Array.isArray(e)?e:[e],(e.length>1||y.default.isDefined(e[0]))&&this.updateItems({changeType:"update",rowIndices:e,isFullUpdate:!t})},skipProcessingPagingChange:function(e){return this._skipProcessingPagingChange&&("paging.pageIndex"===e||"paging.pageSize"===e)},getUserState:function(){return{searchText:this.option("searchPanel.text"),pageIndex:this.pageIndex(),pageSize:this.pageSize()}},getCachedStoreData:function(){return this._dataSource&&this._dataSource.getCachedStoreData()}};return u.default.proxyMethod(t,"load"),u.default.proxyMethod(t,"reload"),u.default.proxyMethod(t,"push"),u.default.proxyMethod(t,"itemsCount",0),u.default.proxyMethod(t,"totalItemsCount",0),u.default.proxyMethod(t,"hasKnownLastPage",!0),u.default.proxyMethod(t,"isLoaded",!0),u.default.proxyMethod(t,"totalCount",0),t}())}}},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(19),u=i(l),c=n(1),d=n(0),h=n(340),p=i(h),f=n(14),g=i(f),_=n(8),m="dxDataGridColumnHeadersView",v=(0,d.extend)({},p.default,{_createRow:function(e){var t=this,n=this.callBase(e);return"header"===e.rowType&&s.default.on(n,(0,_.addNamespace)(u.default.name,m),"td",this.createAction(function(e){t._processHeaderAction(e.event,n)})),n},_processHeaderAction:function(e,t){if((0,a.default)(e.currentTarget).parent().get(0)===t.get(0)){var n=this,i=null,o=(0,a.default)(e.currentTarget),r=o.parent().index(),s=-1;[].slice.call(n.getCellElements(r)).some(function(e,t){if(e===o.get(0))return s=t,!0});var l=n._columnsController.getVisibleColumns(r),u=l[s],d=n.getController("editing"),h=n.option("editing.mode"),p=d&&d.isEditing()&&("batch"===h||"cell"===h);!p&&n._isSortableElement((0,a.default)(e.target))&&(!u||(0,c.isDefined)(u.groupIndex)||u.command||(e.shiftKey?i="shift":e.ctrlKey&&(i="ctrl"),setTimeout(function(){n._columnsController.changeSortOrder(u.index,i)})))}},_renderCellContent:function(e,t){var n=this,i=t.column;i.command||"header"!==t.rowType||n._applyColumnState({name:"sort",rootElement:e,column:i,showColumnLines:n.option("showColumnLines")}),n.callBase(e,t)},_columnOptionChanged:function(e){var t=e.changeTypes;return 1===t.length&&t.sorting?void this._updateIndicators("sort"):void this.callBase(e)},optionChanged:function(e){var t=this;switch(e.name){case"sorting":t._invalidate(),e.handled=!0;break;default:t.callBase(e)}}}),y=(0,d.extend)({},p.default,{_createGroupPanelItem:function(e,t){var n=this,i=n.callBase.apply(n,arguments);return s.default.on(i,(0,_.addNamespace)(u.default.name,"dxDataGridHeaderPanel"),n.createAction(function(){n._processGroupItemAction(t.index)})),n._applyColumnState({name:"sort",rootElement:i,column:{alignment:n.option("rtlEnabled")?"right":"left",allowSorting:t.allowSorting,sortOrder:"desc"===t.sortOrder?"desc":"asc"},showColumnLines:!0}),i},_processGroupItemAction:function(e){var t=this;setTimeout(function(){return t.getController("columns").changeSortOrder(e)})},optionChanged:function(e){var t=this;switch(e.name){case"sorting":t._invalidate(),e.handled=!0;break;default:t.callBase(e)}}});e.exports={defaultOptions:function(){return{sorting:{mode:"single",ascendingText:g.default.format("dxDataGrid-sortingAscendingText"),descendingText:g.default.format("dxDataGrid-sortingDescendingText"),clearText:g.default.format("dxDataGrid-sortingClearText")}}},extenders:{views:{columnHeadersView:v,headerPanel:y}}}},function(e,t,n){var i=n(1),o="dx-sort",a="dx-sort-none",r="dx-sort-up",s="dx-sort-down",l="action";e.exports={_applyColumnState:function(e){var t,n,a=this,u=a.option("sorting.mode"),c=e.rootElement,d=e.column,h=a._getIndicatorContainer(c);return"sort"===e.name?(c.find("."+o).remove(),!h.children().length&&h.remove(),(("single"===u||"multiple"===u)&&d.allowSorting||(0,i.isDefined)(d.sortOrder))&&(t="asc"===d.sortOrder?"ascending":"descending",n=a.callBase(e).toggleClass(r,"asc"===d.sortOrder).toggleClass(s,"desc"===d.sortOrder),e.rootElement.addClass(a.addWidgetPrefix(l))),(0,i.isDefined)(d.sortOrder)?a.setAria("sort",t,c):a.setAria("sort","none",c),n):a.callBase(e)},_getIndicatorClassName:function(e){return"sort"===e?o:this.callBase(e)},_renderIndicator:function(e){var t,n=e.column,o=e.container,r=e.indicator;return"sort"===e.name&&(t=this.option("rtlEnabled"),(0,i.isDefined)(n.sortOrder)||r&&r.addClass(a),o.children().length&&(!t&&"left"===e.columnAlignment||t&&"right"===e.columnAlignment))?void o.prepend(r):void this.callBase(e)},_updateIndicator:function(e,t,n){if("sort"!==n||!(0,i.isDefined)(t.groupIndex))return this.callBase.apply(this,arguments)},_getIndicatorElements:function(e,t){var n=this.callBase(e);return t?n:n&&n.not("."+a)}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(7),s=n(5),l=i(s),u=n(4),c=n(83),d=i(c),h=n(1),p=n(3),f=n(0),g=n(45),_=n(98),m=n(20),v=n(36),y=n(166),x=i(y),b=n(94),w=i(b),C=n(131),k=i(C),S=n(14),I=i(S),T=n(26),D=i(T),E="rowsview",A="content",O="nowrap",B="dx-group-row",P="dx-group-cell",M="dx-data-row",R="dx-freespace-row",V="dx-row-lines",F="dx-column-lines",L="dx-row-alt",H="dx-last-row-border",z="dx-empty",N="row-inserted-animation",$=200;e.exports={defaultOptions:function(){return{hoverStateEnabled:!1,scrolling:{useNative:"auto"},loadPanel:{enabled:"auto",text:I.default.format("Loading"),width:200,height:90,showIndicator:!0,indicatorSrc:"",showPane:!0},rowTemplate:null,columnAutoWidth:!1,noDataText:I.default.format("dxDataGrid-noDataText"),wordWrapEnabled:!1,showColumnLines:!0,showRowLines:!1,rowAlternationEnabled:!1,activeStateEnabled:!1,twoWayBindingEnabled:!0}},views:{rowsView:x.default.ColumnsView.inherit(function(){var e=function(e,t){var n=(0,g.isEmpty)(t.text)&&"data"===t.rowType,i=t.text,o=e.get(0);n?(0,v.setEmptyText)(e):t.column.encodeHtml?o.textContent=i:o.innerHTML=i},t=function(e){var t=e.getScrollable();return t?Math.ceil(parseFloat(t.$content().css("paddingBottom"))):0};return{_getDefaultTemplate:function(t){switch(t.command){case"empty":return function(e){e.html("&nbsp;")};default:return e}},_getDefaultGroupTemplate:function(e){var t=this,n=t.option("summary.texts");return function(t,i){var o=i.data,a=i.column.caption+": "+i.text,r=t.get(0);i.summaryItems&&i.summaryItems.length&&(a+=" "+(0,v.getGroupRowSummaryText)(i.summaryItems,n)),o&&(i.groupContinuedMessage&&i.groupContinuesMessage?a+=" ("+i.groupContinuedMessage+". "+i.groupContinuesMessage+")":i.groupContinuesMessage?a+=" ("+i.groupContinuesMessage+")":i.groupContinuedMessage&&(a+=" ("+i.groupContinuedMessage+")")),t.addClass(P),e.encodeHtml?r.textContent=a:r.innerHTML=a}},_update:function(){},_getCellTemplate:function(e){var t,n=this,i=e.column;return t="group"!==e.rowType||!(0,h.isDefined)(i.groupIndex)||i.showWhenGrouped||i.command?("data"===e.rowType||i.command)&&i.cellTemplate?i.cellTemplate:{allowRenderToDetachedContainer:!0,render:n._getDefaultTemplate(i)}:i.groupCellTemplate||{allowRenderToDetachedContainer:!0,render:n._getDefaultGroupTemplate(i)}},_createRow:function(e){var t,n,i,o=this.callBase(e);return e&&(t="group"===e.rowType,n="data"===e.rowType,n&&o.addClass(M),n&&this.option("showRowLines")&&o.addClass(V),this.option("showColumnLines")&&o.addClass(F),e.visible===!1&&o.hide(),t&&(o.addClass(B),i=e.isExpanded,this.setAria("role","row",o),this.setAria("expanded",(0,h.isDefined)(i)&&i.toString(),o))),o},_rowPrepared:function(e,t){var n=this;if("data"===t.rowType){if(this.option("rowAlternationEnabled")){var i=function(){return t.dataIndex%2===1};i()&&e.addClass(L),t.watch&&t.watch(i,function(t){e.toggleClass(L,t)})}this._setAriaRowIndex(t,e),t.watch&&t.watch(function(){return t.rowIndex},function(){return n._setAriaRowIndex(t,e)})}this.callBase.apply(this,arguments)},_setAriaRowIndex:function(e,t){var n=this.component,i="standard"===n.option("scrolling.mode")&&"virtual"!==n.option("scrolling.rowRenderingMode"),o=e.rowIndex+1;i?o=n.pageIndex()*n.pageSize()+o:o+=this._dataController.getRowIndexOffset(),this.setAria("rowindex",o,t)},_afterRowPrepared:function(e){var t=this,n=e.args[0],i=this._dataController,o=this.option("integrationOptions.watchMethod");if(n.data&&"data"===n.rowType&&!n.inserted&&this.option("twoWayBindingEnabled")&&o){var a=o(function(){return i.generateDataValues(n.data,n.columns)},function(){i.repaintRows([n.rowIndex],t.option("repaintChangesOnly"))},{deep:!0,skipImmediate:!0});l.default.on(n.rowElement,k.default,a)}},_renderScrollable:function(e){var t=this,n=t.element();if(n.children().length||n.append("<div>"),!e&&t._loadPanel||t._renderLoadPanel(n,n.parent(),t._dataController.isLocalStore()),(e||!t.getScrollable())&&t._dataController.isLoaded()){for(var i=t.getColumns(),o=!0,a=0;a<i.length;a++)if(!i[a].width&&!i[a].minWidth){o=!1;break}(t.option("columnAutoWidth")||t._hasHeight||o||t._columnsController._isColumnFixing())&&t._renderScrollableCore(n)}},_handleScroll:function(e){var t=this;t._isScrollByEvent=!!e.event,t._scrollTop=e.scrollOffset.top,t._scrollLeft=e.scrollOffset.left,t.scrollChanged.fire(e.scrollOffset,t.name)},_renderScrollableCore:function(e){var t=this,n=t._createScrollableOptions(),i=t._handleScroll.bind(t);n.onScroll=i,n.onStop=i,t._scrollable=t._createComponent(e,w.default,n),t._scrollableContainer=t._scrollable&&t._scrollable._$container},_renderLoadPanel:v.renderLoadPanel,_renderContent:function(e,t){return e.replaceWith((0,a.default)("<div>").addClass(this.addWidgetPrefix(A)).append(t)),this._findContentElement()},_updateContent:function(e,t){var n=this,i=n._getTableElement(),o=n._findContentElement(),a=t&&t.changeType,r=[],s=this.option("highlightChanges"),l=this.addWidgetPrefix(N);switch(a){case"update":(0,p.each)(t.rowIndices,function(o,a){var u=n._getRowElements(e).eq(o),c=t.changeTypes&&t.changeTypes[o],d=t.items&&t.items[o];r.push(function(){var e=n._getRowElements(),r=e.eq(a);switch(c){case"update":if(d){var p=t.columnIndices&&t.columnIndices[o];(0,h.isDefined)(d.visible)&&d.visible!==r.is(":visible")?r.toggle(d.visible):p?n._updateCells(r,u,p):r.replaceWith(u)}break;case"insert":e.length?r.length?u.insertBefore(r):u.insertAfter(e.last()):u.prependTo(i.children("tbody")),s&&t.isLiveUpdate&&u.addClass(l);break;case"remove":r.remove()}})}),(0,p.each)(r,function(){this()}),e.remove();break;default:n._setTableElement(e),o.addClass(n.addWidgetPrefix(A)),n._renderContent(o,e)}},_createEmptyRow:function(e,t,n){var i,o,a=this,r=a._createRow(),s=t?this.getFixedColumns():this.getColumns();for(r.addClass(e).toggleClass(F,a.option("showColumnLines")),i=0;i<s.length;i++)o=a._createCell({column:s[i],rowType:"freeSpace",columnIndex:i,columns:s}),(0,h.isNumeric)(n)&&o.css("height",n),r.append(o);return a.setAria("role","presentation",r),r},_appendEmptyRow:function(e,t,n){var i=this._getBodies(e),o=i.length&&!t.is("tbody")?i:e;
48"top"===n?o.first().prepend(t):o.last().append(t)},_renderFreeSpaceRow:function(e){var t=this._createEmptyRow(R);t=this._wrapRowIfNeed(e,t),this._appendEmptyRow(e,t)},_checkRowKeys:function(e){var t=this,n=t._getRows(e),i=t._dataController.store()&&t._dataController.store().key();i&&n.some(function(e){if("data"===e.rowType&&void 0===e.key)return t._dataController.fireError("E1046",i),!0})},_needUpdateRowHeight:function(e){return e>0&&!this._rowHeight},_getRowsHeight:function(e){var t=e.children("tbody").children().not(".dx-virtual-row").not("."+R);return t.toArray().reduce(function(e,t){return e+t.getBoundingClientRect().height},0)},_updateRowHeight:function(){var e,t=this,n=t._getTableElement(),i=t._dataController.items().length;n&&t._needUpdateRowHeight(i)&&(e=t._getRowsHeight(n),t._rowHeight=e/i)},_findContentElement:function(){var e=this.element(),t=this.getScrollable();if(e)return t&&(e=t.$content()),e.children().first()},_getRowElements:function(e){var t=this.callBase(e);return t&&t.not("."+R)},_getFreeSpaceRowElements:function(e){var t=e||this.getTableElements();return t&&t.children("tbody").children("."+R)},_getNoDataText:function(){return this.option("noDataText")},_rowClick:function(e){var t=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowClick",(0,f.extend)({evaluate:function(e){var n=(0,m.compileGetter)(e);return n(t.data)}},e,t))},_rowDblClick:function(e){var t=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowDblClick",(0,f.extend)({},e,t))},_getColumnsCountBeforeGroups:function(e){for(var t=0;t<e.length;t++)if("groupExpand"===e[t].type)return t;return 0},_getGroupCellOptions:function(e){var t=this._getColumnsCountBeforeGroups(e.columns),n=(e.row.groupIndex||0)+t;return{columnIndex:n,colspan:e.columns.length-n-1}},_renderCells:function(e,t){"group"===t.row.rowType?this._renderGroupedCells(e,t):t.row.values&&this.callBase(e,t)},_renderGroupedCells:function(e,t){var n,i,o,a,r,s=t.row,l=t.columns,u=s.rowIndex,c=this._getGroupCellOptions(t);for(n=0;n<=c.columnIndex;n++)n===c.columnIndex&&l[n].allowCollapsing&&"infinite"!==t.scrollingMode?(o=!!s.isExpanded,i=l[n]):(o=null,i={command:"expand",cssClass:l[n].cssClass}),this._renderCell(e,{value:o,row:s,rowIndex:u,column:i,columnIndex:n});r=(0,_.getDefaultAlignment)(this.option("rtlEnabled")),a=(0,f.extend)({},l[c.columnIndex],{command:null,cssClass:null,width:null,showWhenGrouped:!1,alignment:r}),c.colspan>1&&(a.colspan=c.colspan),this._renderCell(e,{value:s.values[s.groupIndex],row:s,rowIndex:u,column:a,columnIndex:c.columnIndex})},_renderRows:function(e,t){var n=this,i=n.option("scrolling.mode");n.callBase(e,(0,f.extend)({scrollingMode:i},t)),n._checkRowKeys(t.change),n._renderFreeSpaceRow(e),n._hasHeight||n.updateFreeSpaceRowHeight(e)},_renderRow:function(e,t){var n=this,i=t.row,o=n.option("rowTemplate");"data"!==i.rowType&&"group"!==i.rowType||(0,h.isDefined)(i.groupIndex)||!o?n.callBase(e,t):n.renderTemplate(e,o,(0,f.extend)({columns:t.columns},i),!0)},_renderTable:function(e){var t=this,n=t.callBase(e),i=function e(){var n=t.getScrollable();n&&t.element().closest((0,r.getWindow)().document).length&&(t.resizeCompleted.remove(e),n._visibilityChanged(!0))};return(0,h.isDefined)(t._getTableElement())?t._renderScrollable():(t._setTableElement(n),t._renderScrollable(!0),t.resizeCompleted.add(i)),n},_createTable:function(){var e=this.callBase.apply(this,arguments);return this.option("rowTemplate")&&e.appendTo(this.component.$element()),e},_renderCore:function(e){var t,n=this,i=n.element();i.addClass(n.addWidgetPrefix(E)).toggleClass(n.addWidgetPrefix(O),!n.option("wordWrapEnabled")),i.toggleClass(z,0===n._dataController.items().length),n.setAria("role","presentation",i),t=n._renderTable({change:e}),n._updateContent(t,e),n.callBase(e),n._lastColumnWidths=null},_getRows:function(e){return e&&e.items||this._dataController.items()},_getCellOptions:function(e){var t,n,i,o=this,a=e.column,r=e.row,s=r.data,l=r&&r.summaryCells,u=e.value,c=(0,v.getDisplayValue)(a,u,s,r.rowType);return t=this.callBase(e),t.value=u,t.oldValue=e.oldValue,t.displayValue=c,t.row=r,t.key=r.key,t.data=s,t.rowType=r.rowType,t.values=r.values,t.text=a.command?"":(0,v.formatValue)(c,a),t.rowIndex=r.rowIndex,t.summaryItems=l&&l[e.columnIndex],t.resized=a.resizedCallbacks,(0,h.isDefined)(a.groupIndex)&&!a.command&&(n=o.option("grouping.texts"),i=o.option("scrolling.mode"),"virtual"!==i&&"infinite"!==i&&(t.groupContinuesMessage=s&&s.isContinuationOnNextPage&&n&&n.groupContinuesMessage,t.groupContinuedMessage=s&&s.isContinuation&&n&&n.groupContinuedMessage)),t},_setRowsOpacityCore:function(e,t,n,i){var o=this._columnsController,r=o.getColumns(),s=r&&r[n],l=s&&s.isBand&&s.index;(0,p.each)(e,function(r,s){if(!(0,a.default)(s).hasClass(B))for(var u=0;u<t.length&&(!((0,h.isNumeric)(l)&&o.isParentBandColumn(t[u].index,l)||t[u].index===n)||(e.eq(r).children().eq(u).css({opacity:i}),(0,h.isNumeric)(l)));u++);})},_getDevicePixelRatio:function(){return(0,r.getWindow)().devicePixelRatio},renderNoDataText:v.renderNoDataText,getCellOptions:function(e,t){var n,i,o=this._dataController.items()[e];return o&&(i=(0,h.isString)(t)?this._columnsController.columnOption(t):this._columnsController.getVisibleColumns()[t],i&&(n=this._getCellOptions({value:i.calculateCellValue(o.data),rowIndex:o.rowIndex,row:o,column:i}))),n},getRow:function(e){if(e>=0){var t=this._getRowElements();if(t.length>e)return(0,a.default)(t[e])}},updateFreeSpaceRowHeight:function(e){var n,i,o=this,a=o._dataController,r=a.items().length,s=o._findContentElement(),l=o._getFreeSpaceRowElements(e);if(l&&s&&a.totalCount()>=0){var c=!1;r>0?o._hasHeight?(l.hide(),(0,u.deferUpdate)(function(){var n=t(o),i=o.getScrollbarWidth(!0),a=o.element().height()-i-n,r=s.outerHeight(),d=a-r>0,h=o._getRowsHeight(s.children().first()),p=e||o.getTableElements(),f=Math.ceil(parseFloat(p.css("borderTopWidth"))),g=D.default.webkit&&o._getDevicePixelRatio()>=2?1:0,_=a-h-f-g;d&&(0,u.deferRender)(function(){l.css("height",_),c=!0,l.show()}),(0,u.deferRender)(function(){o._updateLastRowBorder(c)})})):(n=a.pageSize()-r,i=o.option("scrolling.mode"),n>0&&a.pageCount()>1&&"virtual"!==i&&"infinite"!==i&&(d.default.setHeight(l,n*o._rowHeight),c=!0),!c&&e?d.default.setHeight(l,0):l.toggle(c),o._updateLastRowBorder(c)):(l.css("height",0),l.show(),o._updateLastRowBorder(!0))}},_columnOptionChanged:function(e){var t=e.optionNames;e.changeTypes.grouping||(t.width||t.visibleWidth)&&(this.callBase(e),this._fireColumnResizedCallbacks())},getScrollable:function(){return this._scrollable},init:function(){var e=this,t=e.getController("data");e.callBase(),e._editorFactoryController=e.getController("editorFactory"),e._rowHeight=0,e._scrollTop=0,e._scrollLeft=-1,e._hasHeight=!1,t.loadingChanged.add(function(t,n){e.setLoading(t,n)}),t.dataSourceChanged.add(function(){e._scrollLeft>=0&&e._handleScroll({scrollOffset:{top:e._scrollTop,left:e._scrollLeft}})})},_handleDataChanged:function(e){var t=this;switch(e.changeType){case"refresh":case"prepend":case"append":case"update":t.render(null,e);break;default:t._update(e)}},publicMethods:function(){return["isScrollbarVisible","getTopVisibleRowData","getScrollbarWidth","getCellElement","getRowElement","getScrollable"]},contentWidth:function(){return this.element().width()-this.getScrollbarWidth()},getScrollbarWidth:function(e){var n=this._scrollableContainer&&this._scrollableContainer.get(0),i=0;return n&&(e?(i=n.clientHeight?n.offsetHeight-n.clientHeight:0,i+=t(this)):i=n.clientWidth?n.offsetWidth-n.clientWidth:0),i>0?i:0},_fireColumnResizedCallbacks:function(){var e,t=this,n=t._lastColumnWidths||[],i=[],o=t.getColumns();for(e=0;e<o.length;e++)i[e]=o[e].visibleWidth,o[e].resizedCallbacks&&!(0,h.isDefined)(o[e].groupIndex)&&n[e]!==i[e]&&o[e].resizedCallbacks.fire(i[e]);t._lastColumnWidths=i},_updateLastRowBorder:function(e){this.option("showBorders")&&this.option("showRowLines")&&!e?this.element().addClass(H):this.element().removeClass(H)},_updateScrollable:function(){var e=w.default.getInstance(this.element());e&&(e.update(),this._updateHorizontalScrollPosition())},_updateHorizontalScrollPosition:function(){var e=this.getScrollable(),t=e&&e.scrollOffset().left;this._scrollLeft>=0&&t!==this._scrollLeft&&e.scrollTo({x:this._scrollLeft})},_resizeCore:function(){var e=this;e._fireColumnResizedCallbacks(),e._updateRowHeight(),(0,u.deferRender)(function(){e._renderScrollable(),e.renderNoDataText(),e.updateFreeSpaceRowHeight(),(0,u.deferUpdate)(function(){e._updateScrollable()})})},scrollTo:function(e){var t=this.element(),n=t&&w.default.getInstance(t);n&&n.scrollTo(e)},height:function(e,t){var n=this,i=this.element();return 0===arguments.length?i?i.outerHeight(!0):0:(n._hasHeight=void 0===t?"auto"!==e:t,void((0,h.isDefined)(e)&&i&&d.default.setHeight(i,e)))},setLoading:function(e,t){var n,i=this,o=i._loadPanel,a=i._dataController,s=i.option("loadPanel")||{},l=a.isLoaded()?s.animation:null,u=i.element();(0,r.hasWindow)()&&(!o&&void 0!==t&&a.isLocalStore()&&"auto"===s.enabled&&u&&(i._renderLoadPanel(u,u.parent()),o=i._loadPanel),o&&(n={message:t||s.text,animation:l,visible:e},clearTimeout(i._hideLoadingTimeoutID),o.option("visible")&&!e?i._hideLoadingTimeoutID=setTimeout(function(){o.option(n)},$):o.option(n)))},setRowsOpacity:function(e,t){var n=this._getRowElements().not("."+B)||[];this._setRowsOpacityCore(n,this.getColumns(),e,t)},_getCellElementsCore:function(e){var t,n=this.callBase(e);return n&&(t=n.filter("."+P).index(),t>=0&&n.length>t+1)?n.slice(0,t+1):n},getTopVisibleItemIndex:function(e){var t,n,i=this,o=0,a=0,r=0,s=i._scrollTop,l=i._findContentElement(),u=l&&l.offset().top,c=i._dataController.items(),d=i._getTableElement();if(c.length&&d){for(t=i._getRowElements(d).filter(":visible"),o=0;o<c.length;o++)if(a=r,n=t.eq(o),n.length&&(r=n.offset().top-u,r>s)){o&&(e||2*s<Math.round(r+a))&&o--;break}o&&o===c.length&&o--}return o},getTopVisibleRowData:function(){var e=this.getTopVisibleItemIndex(),t=this._dataController.items();if(t[e])return t[e].data},optionChanged:function(e){var t=this;switch(t.callBase(e),e.name){case"wordWrapEnabled":case"showColumnLines":case"showRowLines":case"rowAlternationEnabled":case"rowTemplate":case"twoWayBindingEnabled":t._invalidate(!0,!0),e.handled=!0;break;case"scrolling":t._rowHeight=null,t._tableElement=null,e.handled=!0;break;case"rtlEnabled":t._rowHeight=null,t._tableElement=null;break;case"loadPanel":t._tableElement=null,t._invalidate(!0,"loadPanel.enabled"!==e.fullName),e.handled=!0;break;case"noDataText":t.renderNoDataText(),e.handled=!0}},dispose:function(){clearTimeout(this._hideLoadingTimeoutID),this._scrollable&&this._scrollable.dispose()},setScrollerSpacing:function(){}}}())}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(12),s=n(4),l=n(3),u=n(39),c=i(u),d=n(104),h=i(d),p="dx-context-menu",f={columnHeadersView:"header",rowsView:"content",footerView:"footer",headerPanel:"headerPanel"},g=["columnHeadersView","rowsView","footerView","headerPanel"],_=c.default.ViewController.inherit({init:function(){this.createAction("onContextMenuPreparing")},getContextMenuItems:function(e){if(!e)return!1;var t,n,i,o,s,u,c,d,h,p=this,_=(0,a.default)(e.target);return(0,l.each)(g,function(){if(t=p.getView(this),u=t&&t.element(),u&&(u.is(_)||u.find(_).length)&&(d=_.closest("td"),c=d.closest(".dx-row"),i=t.getRowIndex(c),o=d[0]&&d[0].cellIndex,s=c.data("options"),n={event:e,targetElement:(0,r.getPublicElement)(_),target:f[this],rowIndex:i,row:t._getRows()[i],columnIndex:o,column:s&&s.cells[o].column},n.items=t.getContextMenuItems&&t.getContextMenuItems(n),p.executeAction("onContextMenuPreparing",n),p._contextMenuPrepared(n),h=n.items))return!1}),h},_contextMenuPrepared:s.noop}),m=c.default.View.inherit({_renderCore:function(){var e=this,t=e.element().addClass(p);this.setAria("role","presentation",t),this._createComponent(t,h.default,{onPositioning:function(t){var n=t.event,i=t.component,o=e.getController("contextMenu").getContextMenuItems(n);o?(i.option("items",o),n.stopPropagation()):t.cancel=!0},onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:e.getWidgetContainerClass(),target:e.component.$element()})}});e.exports={defaultOptions:function(){return{onContextMenuPreparing:null}},controllers:{contextMenu:_},views:{contextMenuView:m}}},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(19),u=i(l),c=n(3),d=n(39),h=i(d),p="dx-error-row",f="dx-error-message",g="dx-closebutton",_="action",m=h.default.ViewController.inherit({init:function(){var e=this;e._columnHeadersView=e.getView("columnHeadersView"),e._rowsView=e.getView("rowsView")},_createErrorRow:function(e,t){var n,i,o=this,r=this._renderErrorMessage(e);return t?(n=(0,a.default)("<tr>").addClass(p),i=(0,a.default)("<div>").addClass(g).addClass(o.addWidgetPrefix(_)),s.default.on(i,u.default.name,o.createAction(function(e){var n,i=e.event,r=(0,a.default)(i.currentTarget).closest("."+p).index();i.stopPropagation(),(0,c.each)(t,function(e,t){n=(0,a.default)(t).children("tbody").children("tr").eq(r),o.removeErrorRow(n)}),o.component._fireContentReadyAction()})),(0,a.default)("<td>").attr({colSpan:o.getController("columns").getVisibleColumns().length,role:"presentation"}).prepend(i).append(r).appendTo(n),n):r},_renderErrorMessage:function(e){var t=e.url?e.message.replace(e.url,""):e.message||e,n=(0,a.default)("<div>").addClass(f).text(t);return e.url&&(0,a.default)("<a>").attr("href",e.url).text(e.url).appendTo(n),n},renderErrorRow:function(e,t,n){var i,o,r,s,l,u,d=this;return n?(n.find("."+f).remove(),o=d._createErrorRow(e),n.prepend(o),o):(l=t>=0||!d._columnHeadersView.isVisible()?d._rowsView:d._columnHeadersView,u=n||l.getTableElements(),(0,c.each)(u,function(n,c){if(o=d._createErrorRow(e,u),r=r||o,t>=0)i=l._getRowElements((0,a.default)(c)).eq(t),d.removeErrorRow(i.next()),o.insertAfter(i);else{var h=(0,a.default)(c).children("tbody");s=h.children("tr"),d._columnHeadersView.isVisible()?(d.removeErrorRow(s.last()),(0,a.default)(c).append(o)):(d.removeErrorRow(s.first()),h.first().prepend(o))}}),n||d.component._fireContentReadyAction(),r)},removeErrorRow:function(e){if(!e){var t=this._columnHeadersView&&this._columnHeadersView.element();if(e=t&&t.find("."+p),!e||!e.length){var n=this._rowsView.element();e=n&&n.find("."+p)}}e&&e.hasClass(p)&&e.remove()},optionChanged:function(e){var t=this;switch(e.name){case"errorRowEnabled":e.handled=!0;break;default:t.callBase(e)}}});e.exports={defaultOptions:function(){return{errorRowEnabled:!0}},controllers:{errorHandling:m},extenders:{controllers:{data:{init:function(){var e=this,t=e.getController("errorHandling");e.callBase(),e.dataErrorOccurred.add(function(n,i){e.option("errorRowEnabled")&&t.renderErrorRow(n,void 0,i)}),e.changed.add(function(t){if(!t||"loadError"!==t.changeType){var n=e.getController("errorHandling"),i=e.getController("editing");i&&!i.hasChanges()&&n&&n.removeErrorRow()}})}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(39),s=i(r),l=n(4),u=i(l),c=n(7),d=i(c),h=n(3),p=n(1),f=i(p),g=n(36),_=i(g),m=n(14),v=i(m),y=n(6),x=n(11),b=i(x),w=n(26),C=i(w),k=n(105),S=i(k),I="table",T="borders",D="table-fixed",E="important-margin",A="text-content",O="dx-hidden",B="dx-gridbase-container",P="adaptiveHidden",M="input:not([type='hidden'])",R=["columnsSeparatorView","blockSeparatorView","trackerView","headerPanel","columnHeadersView","rowsView","footerView","columnChooserView","filterPanelView","pagerView","draggingHeaderView","contextMenuView","errorView","headerFilterView","filterBuilderView"],V=function(e){return f.default.isString(e)&&"%"===e.slice(-1)},F=function(e,t){var n,i=[];if(e&&t&&e.length&&e.length===t.length)for(n=0;n<e.length;n++)i.push(e[n]>t[n]?e[n]:t[n]);else e&&e.length?i=e:t&&(i=t);return i},L=function(e){var t=e.get(0).clientHeight,n=parseFloat(e.css("paddingTop")),i=parseFloat(e.css("paddingBottom"));return t-n-i},H=function(e,t){var n=e._rowsView.contentWidth(),i=e._getTotalWidth(t,n);return n-i},z=function(e,t,n,i){return H(e,i.map(function(e,i){return i===t?n:e}))},N=function(e,t){S.default.hiddenFocus(e),_.default.setSelectionRange(e,t)},$=s.default.ViewController.inherit({_initPostRenderHandlers:function(){var e=this,t=e._dataController;e._refreshSizesHandler||(e._refreshSizesHandler=function(n){t.changed.remove(e._refreshSizesHandler);var i,o=n&&n.changeType,a=n&&n.isDelayed,r=t.items();n&&"refresh"!==o&&"prepend"!==o&&"append"!==o?"update"===o&&n.changeTypes&&(!(r.length>1||"insert"!==n.changeTypes[0])||0===r.length&&"remove"===n.changeTypes[0]||n.needUpdateDimensions?i=e.resize():u.default.deferUpdate(function(){e._rowsView.resize()})):a||(i=e.resize()),o&&"updateSelection"!==o&&"updateFocusedRow"!==o&&!a&&(0,y.when)(i).done(function(){e._setAriaRowColCount(),e.component._fireContentReadyAction()})},e._dataController.changed.add(function(){e._dataController.changed.add(e._refreshSizesHandler)}))},_setAriaRowColCount:function(){var e=this.component;e.setAria({rowCount:this._dataController.totalItemsCount(),colCount:e.columnCount()},e.$element().children("."+B))},_getBestFitWidths:function(){if(!this.option("legacyRendering"))return this._rowsView.getColumnWidths();var e,t,n,i,o=this;return e=o._rowsView.getColumnWidths(),t=o._columnHeadersView&&o._columnHeadersView.getColumnWidths(),n=o._footerView&&o._footerView.getColumnWidths(),i=F(e,t),i=F(i,n)},_setVisibleWidths:function(e,t){var n=this._columnsController;n.beginUpdate(),(0,h.each)(e,function(e,i){var o=n.getColumnId(i);n.columnOption(o,"visibleWidth",t[e])}),n.endUpdate()},_toggleBestFitModeForView:function(e,t,n){var i=this;if(e&&e.isVisible()){var o=this._rowsView.getTableElements(),r=e.getTableElements();(0,h.each)(o,function(e,o){var s,l=(0,a.default)(o),u=r.eq(e);u&&u.length&&(s=n?u.children("tbody").appendTo(l):l.children("."+t).appendTo(u),s.toggleClass(t,n),s.toggleClass(i.addWidgetPrefix("best-fit"),n))})}},_toggleBestFitMode:function(e){var t=this.component.$element(),n=this;if(n.option("legacyRendering"))t.find("."+this.addWidgetPrefix(I)).toggleClass(this.addWidgetPrefix(D),!e),t.find(M).toggleClass(O,e),t.find(".dx-group-cell").toggleClass(O,e),t.find(".dx-header-row ."+this.addWidgetPrefix(A)).css("maxWidth","");else{var i=n._rowsView._getTableElement(),o=n._rowsView.getTableElements().eq(1);i.css("tableLayout",e?"auto":"fixed"),i.children("colgroup").css("display",e?"none":""),o.toggleClass(this.addWidgetPrefix(D),!e),n._toggleBestFitModeForView(n._columnHeadersView,"dx-header",e),n._toggleBestFitModeForView(n._footerView,"dx-footer",e),n._needStretch()&&(i.get(0).style.width=e?"auto":""),C.default.msie&&11===parseInt(C.default.version)&&i.find("."+this.addWidgetPrefix(D)).each(function(){this.style.width=e?"10px":""})}},_synchronizeColumns:function(){var e,t,n,i,o=this,a=o._columnsController,r=a.getVisibleColumns(),s=o.option("columnAutoWidth"),l=o.option("legacyRendering"),c=o._needBestFit(),d=!1,p=!1,g=[],m=function(){var e;(0,h.each)(r,function(t,n){"groupExpand"===n.type&&(e=g[t])}),(0,h.each)(r,function(t,n){"groupExpand"===n.type&&e&&(g[t]=e)})};!c&&(0,h.each)(r,function(e,t){if("auto"===t.width||l&&t.fixed)return c=!0,!1}),(0,h.each)(r,function(e,t){if(t.minWidth)return d=!0,!1}),o._setVisibleWidths(r,[]),c&&(t=b.default.getActiveElement(),i=_.default.getSelectionRange(t),o._toggleBestFitMode(!0),e=!0),u.default.deferUpdate(function(){c?(g=o._getBestFitWidths(),(0,h.each)(r,function(e,t){var n=a.getColumnId(t);a.columnOption(n,"bestFitWidth",g[e],!0)})):d&&(g=o._getBestFitWidths()),(0,h.each)(r,function(e){var t=this.width;"auto"!==t&&(f.default.isDefined(t)?g[e]=f.default.isNumeric(t)?parseFloat(t):t:s||(g[e]=void 0))}),e&&(o._toggleBestFitMode(!1),e=!1,t&&t!==b.default.getActiveElement()&&(n=t.getBoundingClientRect().bottom<0,n||(C.default.msie?setTimeout(function(){N(t,i)}):N(t,i)))),p=o._correctColumnWidths(g,r),s&&(m(),o._needStretch()&&o._processStretch(g,r)),u.default.deferRender(function(){(c||p)&&o._setVisibleWidths(r,g)})})},_needBestFit:function(){return this.option("columnAutoWidth")},_needStretch:function(){return this.option("legacyRendering")||this._columnsController.getVisibleColumns().some(function(e){return"auto"===e.width&&!e.command})},_getAverageColumnsWidth:function(e){var t=H(this,e),n=e.filter(function(e){return void 0===e}).length;return t/n},_correctColumnWidths:function(e,t){var n,i,o,a=this,r=!1,s=!1,l=!1,u=a.component.$element(),c=a._hasWidth;for(n=0;n<t.length;n++){var d=n,h=t[d],p=e[d]===P,g=e[d],m=h.minWidth;if(m)if(void 0===g)i=a._getAverageColumnsWidth(e),g=i;else if(V(g)){var v=z(a,d,m,e);v<0&&(g=-1)}m&&a._getRealColumnWidth(g)<m&&!p&&(e[d]=m,l=!0,n=-1),f.default.isDefined(h.width)||(s=!0),V(h.width)&&(r=!0)}if(u&&a._maxWidth&&(delete a._maxWidth,u.css("maxWidth","")),!s&&e.length){var y=a._rowsView.contentWidth(),x=a._rowsView.getScrollbarWidth(),b=a._getTotalWidth(e,y);b<y&&(o=_.default.getLastResizableColumnIndex(t,e),o>=0&&(e[o]="auto",l=!0,c||r||(a._maxWidth=b+x+(a.option("showBorders")?2:0),u.css("maxWidth",a._maxWidth))))}return l},_processStretch:function(e,t){var n,i,o,a,r=this._rowsView.contentWidth(),s=this._getTotalWidth(e,r),l={length:0};if(e.length&&((0,h.each)(t,function(t){(this.width||e[t]===P)&&(l[t]=!0,l.length++)}),n=r-s,i=Math.floor(n/(e.length-l.length)),o=n-i*(e.length-l.length),n>=0))for(a=0;a<e.length;a++)l[a]||(e[a]+=i,o>0&&(o<1?(e[a]+=o,o=0):(e[a]++,o--)))},_getRealColumnWidth:function(e,t){return V(e)?(t=t||this._rowsView.contentWidth(),parseFloat(e)*t/100):parseFloat(e)},_getTotalWidth:function(e,t){var n,i,o=0;for(i=0;i<e.length;i++)n=e[i],n&&n!==P&&(o+=this._getRealColumnWidth(n,t));return o},updateSize:function(e){var t,n,i=this,o=i.addWidgetPrefix(E);void 0===i._hasHeight&&e&&e.is(":visible")&&(t=e.children("."+i.getWidgetContainerClass()),t.length&&t.detach(),i._hasHeight=!!L(e),n=e.width(),e.addClass(o),i._hasWidth=e.width()===n,e.removeClass(o),t.length&&t.appendTo(e))},publicMethods:function(){return["resize","updateDimensions"]},resize:function(){return!this.component._requireResize&&this.updateDimensions()},updateDimensions:function(e){var t=this;if(t._initPostRenderHandlers(),t._checkSize(e)){var n=t._resizeDeferred,i=t._resizeDeferred=new y.Deferred;return(0,y.when)(n).always(function(){u.default.deferRender(function(){t._dataController.isLoaded()&&t._synchronizeColumns(),t._resetGroupElementHeight(),u.default.deferUpdate(function(){u.default.deferRender(function(){u.default.deferUpdate(function(){t._updateDimensionsCore()})})})}).done(i.resolve).fail(i.reject)}),i.promise()}},_resetGroupElementHeight:function(){var e=this.component.$element().children().get(0),t=this._rowsView.getScrollable();!e||!e.style.height||t&&t.scrollTop()||(e.style.height="")},_checkSize:function(e){var t=this.component.$element();return!(e&&(this._lastWidth===t.width()&&this._lastHeight===t.height()||!t.is(":visible")))},_setScrollerSpacingCore:function(e){var t=this,n=e?t._rowsView.getScrollbarWidth():0,i=t._rowsView.getScrollbarWidth(!0);u.default.deferRender(function(){t._columnHeadersView&&t._columnHeadersView.setScrollerSpacing(n),t._footerView&&t._footerView.setScrollerSpacing(n),t._rowsView.setScrollerSpacing(n,i)})},_setScrollerSpacing:function(e){var t=this;this.option("scrolling.useNative")===!0?u.default.deferRender(function(){u.default.deferUpdate(function(){t._setScrollerSpacingCore(e)})}):this._setScrollerSpacingCore(e)},_updateDimensionsCore:function(){var e,t,n=this,i=n._dataController,o=n._rowsView,r=n.component.$element(),s=r.children().get(0),l=r&&(r.get(0).clientHeight||r.height()),c=parseFloat(r.css("maxHeight")),d=c&&l>=c,p=n.option("height")||r.get(0).style.height,f=n.getController("editorFactory"),g=d&&s.scrollHeight===s.offsetHeight;n.updateSize(r),e=n._hasHeight||d,p&&n._hasHeight^"auto"!==p&&(t=(0,a.default)("<div>").height(p).appendTo(r),n._hasHeight=!!t.height(),t.remove()),u.default.deferRender(function(){return o.height(null,e),d&&!g&&(0,a.default)(s).css("height",c),i.isLoaded()?void u.default.deferUpdate(function(){n._updateLastSizes(r),n._setScrollerSpacing(e),(0,h.each)(R,function(e,t){var i=n.getView(t);i&&i.resize()}),f&&f.resize()}):void o.setLoading(i.isLoading())})},_updateLastSizes:function(e){this._lastWidth=e.width(),this._lastHeight=e.height()},optionChanged:function(e){switch(e.name){case"width":case"height":this.component._renderDimensions(),this.resize();case"legacyRendering":case"renderAsync":return void(e.handled=!0);default:this.callBase(e)}},init:function(){var e=this;e._dataController=e.getController("data"),e._columnsController=e.getController("columns"),e._columnHeadersView=e.getView("columnHeadersView"),e._footerView=e.getView("footerView"),e._rowsView=e.getView("rowsView")}}),W=s.default.ViewController.inherit({_scrollChangedHandler:function(e,t,n){for(var i=0;i<e.length;i++)e[i]&&e[i].name!==n&&e[i].scrollTo({left:t.left,top:t.top})},init:function(){var e,t,n=[this.getView("columnHeadersView"),this.getView("footerView"),this.getView("rowsView")];for(t=0;t<n.length;t++)e=n[t],e&&e.scrollChanged.add(this._scrollChangedHandler.bind(this,n))}}),G=s.default.View.inherit({_endUpdateCore:function(){this.component._requireResize&&(this.component._requireResize=!1,this._resizingController.resize())},_getWidgetAriaLabel:function(){return"dxDataGrid-ariaDataGrid"},init:function(){var e=this;e._resizingController=e.getController("resizing"),e._dataController=e.getController("data")},getView:function(e){return this.component._views[e]},element:function(){return this._groupElement},optionChanged:function(e){var t=this;f.default.isDefined(t._groupElement)&&"showBorders"===e.name?(t._groupElement.toggleClass(t.addWidgetPrefix(T),!!e.value),e.handled=!0):t.callBase(e)},_renderViews:function(e){var t=this;(0,h.each)(R,function(n,i){var o=t.getView(i);o&&o.render(e)})},_getTableRoleName:function(){return"grid"},render:function(e){var t=this,n=!t._groupElement,i=t._groupElement||(0,a.default)("<div>").addClass(t.getWidgetContainerClass());i.addClass(B),i.toggleClass(t.addWidgetPrefix(T),!!t.option("showBorders")),t.setAria("role","presentation",e),t.component.setAria({role:this._getTableRoleName(),label:v.default.format(t._getWidgetAriaLabel())},i),t._rootElement=e||t._rootElement,n&&(t._groupElement=i,d.default.hasWindow()&&t.getController("resizing").updateSize(e),i.appendTo(e)),t._renderViews(i)},update:function(){var e=this,t=e._rootElement,n=e._groupElement,i=e.getController("resizing");t&&n&&(i.resize(),e._dataController.isLoaded()&&e.component._fireContentReadyAction())}});e.exports={defaultOptions:function(){return{showBorders:!1,renderAsync:!1,legacyRendering:!1}},controllers:{resizing:$,synchronizeScrolling:W},views:{gridView:G}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(163),s=i(r),l=n(166),u=i(l),c=n(4),d=n(1),h=n(12);n(196);var p="header-panel",f="toolbar-button",g=u.default.ColumnsView.inherit({_getToolbarItems:function(){return[]},_getButtonContainer:function(){return(0,a.default)("<div>").addClass(this.addWidgetPrefix(f))},_getToolbarButtonClass:function(e){var t=e?" "+e:"";return this.addWidgetPrefix(f)+t},_getToolbarOptions:function(){var e,t={toolbarOptions:{items:this._getToolbarItems(),onItemRendered:function(e){var t=e.itemData.onItemRendered;t&&t(e)}}};return this.executeAction("onToolbarPreparing",t),t.toolbarOptions&&!(0,d.isDefined)(t.toolbarOptions.visible)&&(e=t.toolbarOptions.items,t.toolbarOptions.visible=!(!e||!e.length)),t.toolbarOptions},_renderCore:function(){this._toolbar?this._toolbar.option(this._toolbarOptions):(this.element().addClass(this.addWidgetPrefix(p)),this._toolbar=this._createComponent((0,a.default)("<div>").appendTo(this.element()),s.default,this._toolbarOptions))},_columnOptionChanged:c.noop,_handleDataChanged:function(){this._requireReady&&this.render()},init:function(){this.callBase(),this.createAction("onToolbarPreparing",{excludeValidators:["disabled","readOnly"]})},render:function(){this._toolbarOptions=this._getToolbarOptions(),this.callBase.apply(this,arguments)},setToolbarItemDisabled:function(e,t){var n=this._toolbar;if(n){var i=n.option("items")||[],o=i.indexOf(i.filter(function(t){return t.name===e})[0]);if(o>=0){var a="items["+o+"]";n.option(a+".options")?n.option(a+".options.disabled",t):n.option(a+".disabled",t)}}},updateToolbarDimensions:function(){this._toolbar&&(0,h.triggerResizeEvent)(this.getHeaderPanel())},getHeaderPanel:function(){return this.element()},getHeight:function(){return this.getElementHeight()},optionChanged:function(e){"onToolbarPreparing"===e.name&&(this._invalidate(),e.handled=!0),this.callBase(e)},isVisible:function(){return this._toolbarOptions&&this._toolbarOptions.visible},allowDragging:c.noop});e.exports={defaultOptions:function(){return{}},views:{headerPanel:g},extenders:{controllers:{resizing:{_updateDimensionsCore:function(){this.callBase.apply(this,arguments),this.getView("headerPanel").updateToolbarDimensions()}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(4),a=n(1),r=n(0),s=n(347),l=i(s),u=n(6),c=function(e){var t=e.getController("columns"),n=e.getController("selection"),i=e.getController("export"),a=e.getController("data"),s=e.getView("pagerView");t&&t.columnsChanged.add(function(){var n=t.getUserState(),i=(0,o.getKeyHash)(n),a=(0,o.getKeyHash)(e._state.columns);(0,o.equalByValue)(a,i)||((0,r.extend)(e._state,{columns:n}),e.isEnabled()&&e.save())}),n&&n.selectionChanged.add(function(t){(0,r.extend)(e._state,{selectedRowKeys:t.selectedRowKeys,selectionFilter:t.selectionFilter}),e.isEnabled()&&e.save()}),a&&(e._initialPageSize=e.option("paging.pageSize"),a.changed.add(function(){var t=a.getUserState(),n=e.option("focusedRowEnabled");(0,r.extend)(e._state,t,{allowedPageSizes:s?s.getPageSizes():void 0,filterPanel:{filterEnabled:e.option("filterPanel.filterEnabled")},filterValue:e.option("filterValue"),focusedRowKey:n?e.option("focusedRowKey"):void 0}),e.isEnabled()&&e.save()})),i&&i.selectionOnlyChanged.add(function(){(0,r.extend)(e._state,{exportSelectionOnly:i.selectionOnly()}),e.isEnabled()&&e.save()})};e.exports={defaultOptions:function(){return{stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3}}},controllers:{stateStoring:l.default.StateStoringController},extenders:{views:{rowsView:{init:function(){var e=this,t=e.getController("data");e.callBase(),t.stateLoaded.add(function(){if(t.isLoaded()&&!t.getDataSource()){e.setLoading(!1),e.renderNoDataText();var n=e.component.getView("columnHeadersView");n&&n.render(),e.component._fireContentReadyAction()}})}}},controllers:{stateStoring:{init:function(){this.callBase.apply(this,arguments),c(this)},isLoading:function(){return this.callBase()||this.getController("data").isStateLoading()},state:function(e){var t=this.callBase.apply(this,arguments);return void 0!==e&&this.applyState((0,r.extend)({},e)),t},applyState:function(e){var t=this,n=e.allowedPageSizes,i=e.searchText,o=e.selectedRowKeys,r=e.selectionFilter,s=t.getController("export"),l=t.getController("columns"),u=t.getController("data"),c=t.getController("filterSync"),d=t.option("scrolling.mode"),h="virtual"===d||"infinite"===d,p=t.option("pager.visible")===!0&&t.option("pager.showPageSizeSelector");t.component.beginUpdate(),l&&l.setUserState(e.columns),s&&s.selectionOnly(e.exportSelectionOnly),o&&t.option("selectedRowKeys",o),t.option("selectionFilter",r),n&&"auto"===t.option("pager.allowedPageSizes")&&(t.option("pager").allowedPageSizes=n),t.option("focusedRowEnabled")&&t.option("focusedRowKey",e.focusedRowKey),t.component.endUpdate(),t.option("searchPanel.text",i||""),t.option("filterValue",e.filterValue||(c?c.getFilterValueFromColumns(e.columns):null)),t.option("filterPanel.filterEnabled",!e.filterPanel||e.filterPanel.filterEnabled),t.option("paging.pageSize",h&&!p||!(0,
49a.isDefined)(e.pageSize)?t._initialPageSize:e.pageSize),t.option("paging.pageIndex",e.pageIndex||0),u&&u.reset()}},columns:{getVisibleColumns:function(){var e=this.callBase.apply(this,arguments),t=this.getController("stateStoring");return t.isEnabled()&&!t.isLoaded()?[]:e}},data:{callbackNames:function(){return this.callBase().concat(["stateLoaded"])},_refreshDataSource:function(){var e=this,t=e.callBase,n=e.getController("stateStoring");if(n.isEnabled()&&!n.isLoaded()){clearTimeout(e._restoreStateTimeoutID);var i=new u.Deferred;return e._restoreStateTimeoutID=setTimeout(function(){n.load().always(function(){e._restoreStateTimeoutID=null,t.call(e),e.stateLoaded.fire(),i.resolve()})}),i.promise()}e.isStateLoading()||t.call(e)},isLoading:function(){var e=this,t=e.getController("stateStoring");return this.callBase()||t.isLoading()},isStateLoading:function(){return(0,a.isDefined)(this._restoreStateTimeoutID)},isLoaded:function(){return this.callBase()&&!this.isStateLoading()},dispose:function(){clearTimeout(this._restoreStateTimeoutID),this.callBase()}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(5),a=i(o),r=n(7),s=n(39),l=i(s),u=n(17),c=i(u),d=n(26),h=i(d),p=n(280),f=n(0),g=n(3),_=n(1),m=n(6),v=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/,y=function e(t){t&&(0,g.each)(t,function(n,i){var o;(0,_.isPlainObject)(i)||Array.isArray(i)?e(i):"string"==typeof i&&(o=v.exec(i),o&&(t[n]=new Date(Date.UTC(+o[1],+o[2]-1,+o[3],+o[4],+o[5],+o[6]))))})};t.StateStoringController=l.default.ViewController.inherit(function(){var e=function(e){var t="sessionStorage"===e.type?(0,p.sessionStorage)():(0,r.getWindow)().localStorage;if(!t)throw"file:"===(0,r.getWindow)().location.protocol&&h.default.msie?new Error("E1038"):new Error("E1007");return t},t=function(e){return(0,_.isDefined)(e.storageKey)?e.storageKey:"storage"};return{_loadState:function(){var n=this.option("stateStoring");if("custom"===n.type)return n.customLoad&&n.customLoad();try{return JSON.parse(e(n).getItem(t(n)))}catch(e){c.default.log(e.message)}},_saveState:function(n){var i=this.option("stateStoring");if("custom"===i.type)return void(i.customSave&&i.customSave(n));try{e(i).setItem(t(i),JSON.stringify(n))}catch(e){}},publicMethods:function(){return["state"]},isEnabled:function(){return this.option("stateStoring.enabled")},init:function(){var e=this;return e._state={},e._isLoaded=!1,e._isLoading=!1,e._windowUnloadHandler=function(){void 0!==e._savingTimeoutID&&e._saveState(e.state())},a.default.on((0,r.getWindow)(),"unload",e._windowUnloadHandler),e},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._isLoading},load:function(){var e,t=this;return t._isLoading=!0,e=(0,m.fromPromise)(t._loadState()),e.done(function(e){t._isLoaded=!0,t._isLoading=!1,t.state(e)}),e},state:function(e){var t=this;return arguments.length?(t._state=(0,f.extend)({},e),void y(t._state)):(0,f.extend)(!0,{},t._state)},save:function(){var e=this;clearTimeout(e._savingTimeoutID),e._savingTimeoutID=setTimeout(function(){e._saveState(e.state()),e._savingTimeoutID=void 0},e.option("stateStoring.savingTimeout"))},optionChanged:function(e){var t=this;switch(e.name){case"stateStoring":t.isEnabled()&&!t.isLoading()&&t.load(),e.handled=!0;break;default:t.callBase(e)}},dispose:function(){clearTimeout(this._savingTimeoutID),a.default.off((0,r.getWindow)(),"unload",this._windowUnloadHandler)}}}())},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(23),u=i(l),c=n(36),d=n(1),h=n(3),p=n(0),f=n(42),g=i(f),_=n(19),m=i(_),v=n(14),y=i(v),x=n(8),b=n(89),w=i(b),C=n(283),k=i(C),S=n(6),I="dx-editor-cell",T="dx-row",D="dx-selection",E="dx-select-checkbox",A="dx-select-checkboxes-hidden",O="dx-command-select",B="dx-selection-disabled",P="dx-data-row",M="selection.showCheckBoxesMode",R="selection.mode",V=function(e,t){var n=e.getController("selection"),i=e.getView("rowsView"),o=(0,a.default)(t.target).closest("."+P),r=i.getRowIndex(o);r<0||("onLongTap"===e.option(M)?n.isSelectionWithCheckboxes()?n.stopSelectionWithCheckboxes():n.startSelectionWithCheckboxes():("onClick"===e.option(M)&&n.startSelectionWithCheckboxes(),"always"!==e.option(M)&&n.changeItemSelection(r,{control:!0})))};t.SelectionController=u.default.Controller.inherit(function(){var e=function(e,t){var n=0,i=e._dataController.store(),o=i&&i.key(),a=Array.isArray(o);if(!t.length)return!1;if(a&&Array.isArray(t[0])&&"and"===t[1]){for(var r=0;r<t.length;r++)if(Array.isArray(t[r])){if(t[r][0]!==o[n]||"="!==t[r][1])return!0;n++}return!1}return o!==t[0]},t=function(e,t){var n=t.component.getView("rowsView");n.renderSelectCheckBoxContainer((0,a.default)(e),t)},n=function(e,t){var n=t.column,i=(0,a.default)(e),o=t.component.getView("columnHeadersView");i.addClass(I),o._renderSelectAllCheckBox(i,n),o._attachSelectAllCheckBoxClickEvent(i)};return{init:function(){this._dataController=this.getController("data"),this._selectionMode=this.option(R),this._isSelectionWithCheckboxes=!1,this._selection=this._createSelection(),this._updateSelectColumn(),this.createAction("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_getSelectionConfig:function(){var e=this,t=e._dataController,n=e.option("selection")||{};return{selectedKeys:e.option("selectedRowKeys"),mode:e._selectionMode,deferred:n.deferred,maxFilterLengthInRequest:n.maxFilterLengthInRequest,selectionFilter:e.option("selectionFilter"),key:function(){return t&&t.key()},keyOf:function(e){return t&&t.keyOf(e)},dataFields:function(){return t.dataSource()&&t.dataSource().select()},load:function(e){return t.dataSource()&&t.dataSource().load(e)||(new S.Deferred).resolve([])},plainItems:function(){return t.items(!0)},isItemSelected:function(e){return e.selected},isSelectableItem:function(e){return e&&"data"===e.rowType&&!e.inserted},getItemData:function(e){return e&&(e.oldData||e.data||e)},filter:function(){return t.getCombinedFilter()},totalCount:function(){return t.totalCount()},onSelectionChanged:e._updateSelectedItems.bind(this)}},_updateSelectColumn:function(){var e=this.getController("columns"),i=this.isSelectColumnVisible();e.addCommandColumn({type:"selection",command:"select",visible:i,visibleIndex:-1,dataType:"boolean",alignment:"center",cssClass:O,width:"auto",cellTemplate:t,headerCellTemplate:n}),e.columnOption("command:select","visible",i)},_createSelection:function(){var e=this._getSelectionConfig();return new k.default(e)},_fireSelectionChanged:function(e){e&&this.executeAction("onSelectionChanged",e);var t=this.option("selection.deferred")?{selectionFilter:this.option("selectionFilter")}:{selectedRowKeys:this.option("selectedRowKeys")};this.selectionChanged.fire(t)},_updateCheckboxesState:function(t){var n=t.isDeferredMode,i=t.selectionFilter,o=t.selectedItemKeys,a=t.removedItemKeys;"onClick"===this.option(M)&&((n?i&&e(this,i):o.length>1)?this.startSelectionWithCheckboxes():(n?i&&!i.length:0===o.length&&a.length)&&this.stopSelectionWithCheckboxes())},_updateSelectedItems:function(e){var t,n=this,i=n.option("selection.deferred"),o=n._selection.selectionFilter(),a=n._dataController,r=a.items();if(r){var s=n.isSelectionWithCheckboxes(),l=n.getChangedItemIndexes(r);n._updateCheckboxesState({selectedItemKeys:e.selectedItemKeys,removedItemKeys:e.removedItemKeys,selectionFilter:o,isDeferredMode:i}),(l.length||s!==n.isSelectionWithCheckboxes())&&a.updateItems({changeType:"updateSelection",itemIndexes:l}),i?(n.option("selectionFilter",o),t={}):(e.addedItemKeys.length||e.removedItemKeys.length)&&(n._selectedItemsInternalChange=!0,n.option("selectedRowKeys",e.selectedItemKeys.slice(0)),n._selectedItemsInternalChange=!1,t={selectedRowsData:e.selectedItems.slice(0),selectedRowKeys:e.selectedItemKeys.slice(0),currentSelectedRowKeys:e.addedItemKeys.slice(0),currentDeselectedRowKeys:e.removedItemKeys.slice(0)}),n._fireSelectionChanged(t)}},getChangedItemIndexes:function(e){for(var t=this,n=[],i=this.option("selection.deferred"),o=0,a=e.length;o<a;o++){var r=e[o],s=t.isRowSelected(i?r.data:r.key);t._selection.isDataItem(r)&&r.isSelected!==s&&n.push(o)}return n},callbackNames:function(){return["selectionChanged"]},optionChanged:function(e){var t=this;switch(t.callBase(e),e.name){case"selection":var n=t._selectionMode;t.init();var i=t._selectionMode,o=t.option("selectedRowKeys");n!==i&&("single"===i?o.length>1&&(o=[o[0]]):"multiple"!==i&&(o=[])),t.selectRows(o).always(function(){t._fireSelectionChanged()}),t.getController("columns").updateColumns(),e.handled=!0;break;case"selectionFilter":this._selection.selectionFilter(e.value),e.handled=!0;break;case"selectedRowKeys":var a=e.value||[];!Array.isArray(a)||t._selectedItemsInternalChange||!t.component.getDataSource()&&a.length||t.selectRows(a),e.handled=!0}},publicMethods:function(){return["selectRows","deselectRows","selectRowsByIndexes","getSelectedRowKeys","getSelectedRowsData","clearSelection","selectAll","deselectAll","startSelectionWithCheckboxes","stopSelectionWithCheckboxes","isRowSelected"]},isRowSelected:function(e){return this._selection.isItemSelected(e)},isSelectColumnVisible:function(){return"multiple"===this.option(R)&&("always"===this.option(M)||"onClick"===this.option(M)||this._isSelectionWithCheckboxes)},_isOnePageSelectAll:function(){return"page"===this.option("selection.selectAllMode")},isSelectAll:function(){return this._selection.getSelectAllState(this._isOnePageSelectAll())},selectAll:function(){return"onClick"===this.option(M)&&this.startSelectionWithCheckboxes(),this._selection.selectAll(this._isOnePageSelectAll())},deselectAll:function(){return this._selection.deselectAll(this._isOnePageSelectAll())},clearSelection:function(){return this.selectedItemKeys([])},refresh:function(){var e=this.option("selectedRowKeys")||[];return!this.option("selection.deferred")&&e.length?this.selectedItemKeys(e):(new S.Deferred).resolve().promise()},selectedItemKeys:function(e,t,n,i){return this._selection.selectedItemKeys(e,t,n,i)},getSelectedRowKeys:function(){return this._selection.getSelectedItemKeys()},selectRows:function(e,t){return this.selectedItemKeys(e,t)},deselectRows:function(e){return this.selectedItemKeys(e,!0,!0)},selectRowsByIndexes:function(e){var t=this._dataController.items(),n=[];return Array.isArray(e)||(e=Array.prototype.slice.call(arguments,0)),(0,h.each)(e,function(){var e=t[this];e&&"data"===e.rowType&&n.push(e.key)}),this.selectRows(n)},getSelectedRowsData:function(){return this._selection.getSelectedItems()},changeItemSelection:function(e,t){return t=t||{},this.isSelectionWithCheckboxes()&&(t.control=!0),this._selection.changeItemSelection(this._dataController.getRowIndexDelta()+e,t)},focusedItemIndex:function(e){var t=this;return(0,d.isDefined)(e)?void(t._selection._focusedItemIndex=e):t._selection._focusedItemIndex},isSelectionWithCheckboxes:function(){return"multiple"===this.option(R)&&("always"===this.option(M)||this._isSelectionWithCheckboxes)},startSelectionWithCheckboxes:function(){var e=this;return"multiple"===e.option(R)&&!e.isSelectionWithCheckboxes()&&(e._isSelectionWithCheckboxes=!0,e._updateSelectColumn(),!0)},stopSelectionWithCheckboxes:function(){var e=this;return!!e._isSelectionWithCheckboxes&&(e._isSelectionWithCheckboxes=!1,e._updateSelectColumn(),!0)}}}()),e.exports={defaultOptions:function(){return{selection:{mode:"none",showCheckBoxesMode:"onClick",allowSelectAll:!0,selectAllMode:"allPages",maxFilterLengthInRequest:1500,deferred:!1},selectionFilter:[],selectedRowKeys:[]}},controllers:{selection:t.SelectionController},extenders:{controllers:{data:{init:function(){var e=this.getController("selection"),t=this.option("selection.deferred");this.callBase.apply(this,arguments),t&&e._updateCheckboxesState({isDeferredMode:!0,selectionFilter:this.option("selectionFilter")})},_loadDataSource:function(){var e=this;return e.callBase().done(function(){e.getController("selection").refresh()})},_processDataItem:function(e,t){var n=this,i=n.getController("selection"),o=i.isSelectColumnVisible(),a=t.isDeferredSelection=void 0===t.isDeferredSelection?this.option("selection.deferred"):t.isDeferredSelection,r=this.callBase.apply(this,arguments);if(r.isSelected=i.isRowSelected(a?r.data:r.key),o&&r.values)for(var s=0;s<t.visibleColumns.length;s++)if("select"===t.visibleColumns[s].command){r.values[s]=r.isSelected;break}return r},refresh:function(e){var t=this,n=new S.Deferred;return this.callBase.apply(this,arguments).done(function(){!e||e.selection?t.getController("selection").refresh().done(n.resolve).fail(n.reject):n.resolve()}).fail(n.reject),n.promise()},_handleDataChanged:function(e){this.callBase.apply(this,arguments),e&&"refresh"!==e.changeType||this._repaintChangesOnly||this.getController("selection").focusedItemIndex(-1)},_applyChange:function(e){var t=this;return e&&"updateSelection"===e.changeType?void e.items.forEach(function(e,n){var i=t._items[n];i&&(i.isSelected=e.isSelected,i.values=e.values)}):this.callBase.apply(this,arguments)},_endUpdateCore:function(){var e=this._changes,t=e.length>1&&e.every(function(e){return"updateSelection"===e.changeType});if(t){var n=e.map(function(e){return e.itemIndexes||[]}).reduce(function(e,t){return e.concat(t)});this._changes=[{changeType:"updateSelection",itemIndexes:n}]}this.callBase.apply(this,arguments)}},contextMenu:{_contextMenuPrepared:function(e){var t=e.event;t.originalEvent&&"dxhold"!==t.originalEvent.type||e.items&&e.items.length>0||V(this,t)}}},views:{columnHeadersView:{init:function(){var e=this;e.callBase(),e.getController("selection").selectionChanged.add(e._updateSelectAllValue.bind(e))},_updateSelectAllValue:function(){var e=this,t=e.element(),n=t&&t.find("."+E);t&&n.length&&"multiple"===e.option("selection.mode")&&n.dxCheckBox("instance").option("value",e.getController("selection").isSelectAll())},_handleDataChanged:function(e){this.callBase(e),e&&"refresh"!==e.changeType||this._updateSelectAllValue()},_renderSelectAllCheckBox:function(e,t){var n,i=this,o=i.getController("selection");return n=(0,a.default)("<div>").appendTo(e).addClass(E),i.setAria("label",y.default.format("dxDataGrid-ariaSelectAll"),e),i.getController("editorFactory").createEditor(n,(0,p.extend)({},t,{parentType:"headerRow",dataType:"boolean",value:o.isSelectAll(),editorOptions:{visible:i.option("selection.allowSelectAll")||o.isSelectAll()!==!1},tabIndex:i.option("useLegacyKeyboardNavigation")?-1:i.option("tabIndex")||0,setValue:function(e,t){var n=i.option("selection.allowSelectAll");t.component.option("visible",n||t.component.option("value")!==!1),t.event&&o.isSelectAll()!==e&&(t.value&&!n?t.component.option("value",!1):t.value?o.selectAll():o.deselectAll(),t.event.preventDefault())}})),n},_attachSelectAllCheckBoxClickEvent:function(e){s.default.on(e,m.default.name,this.createAction(function(e){var t=e.event;(0,a.default)(t.target).closest("."+E).length||s.default.trigger((0,a.default)(t.currentTarget).children("."+E),m.default.name),t.preventDefault()}))}},rowsView:{renderSelectCheckBoxContainer:function(e,t){"data"!==t.rowType||t.row.inserted?(0,c.setEmptyText)(e):(e.addClass(I),this._attachCheckBoxClickEvent(e),this.setAria("label",y.default.format("dxDataGrid-ariaSelectRow"),e),this._renderSelectCheckBox(e,t))},_renderSelectCheckBox:function(e,t){var n=(0,a.default)("<div>").addClass(E).appendTo(e);return this.getController("editorFactory").createEditor(n,(0,p.extend)({},t.column,{parentType:"dataRow",dataType:"boolean",lookup:null,value:t.value,tabIndex:-1,setValue:function(t,n){n&&n.event&&"keydown"===n.event.type&&s.default.trigger(e,m.default.name,n)},row:t.row})),n},_attachCheckBoxClickEvent:function(e){s.default.on(e,m.default.name,this.createAction(function(e){var t=this.getController("selection"),n=e.event,i=this.getRowIndex((0,a.default)(n.currentTarget).closest("."+T));i>=0&&(t.startSelectionWithCheckboxes(),t.changeItemSelection(i,{shift:n.shiftKey}),(0,a.default)(n.target).closest("."+E).length&&this.getController("data").updateItems({changeType:"updateSelection",itemIndexes:[i]}))}))},_update:function(e){var t=this,n=t.getTableElements();"updateSelection"===e.changeType?n.length>0&&((0,h.each)(n,function(n,i){(0,h.each)(e.itemIndexes||[],function(n,o){var r,s;e.items[o]&&(r=t._getRowElements((0,a.default)(i)).eq(o),r.length&&(s=e.items[o].isSelected,r.toggleClass(D,void 0!==s&&s).find("."+E).dxCheckBox("option","value",s),t.setAria("selected",s,r)))})}),t._updateCheckboxesClass()):t.callBase(e)},_createTable:function(){var e=this,t=e.option("selection.mode"),n=e.callBase.apply(e,arguments);return"none"!==t&&("onLongTap"!==e.option(M)&&g.default.touch||s.default.on(n,(0,x.addNamespace)(w.default.name,"dxDataGridRowsView"),"."+P,e.createAction(function(t){V(e.component,t.event),t.event.stopPropagation()})),s.default.on(n,"mousedown selectstart",e.createAction(function(e){var t=e.event;t.shiftKey&&t.preventDefault()}))),n},_createRow:function(e){var t,n=this.callBase(e);return e&&(t=!!e.isSelected,t&&n.addClass(D),this.setAria("selected",t,n)),n},_rowClick:function(e){var t=this,n=e.event,i=(0,a.default)(n.target).closest("."+B).length;t.isClickableElement((0,a.default)(n.target))||(i||"multiple"===t.option(R)&&"always"===t.option(M)||t.getController("selection").changeItemSelection(e.rowIndex,{control:n.ctrlKey||n.metaKey,shift:n.shiftKey})&&(n.preventDefault(),e.handled=!0),t.callBase(e))},isClickableElement:function(e){var t=e.closest("."+O).length;return!!t},_renderCore:function(e){this.callBase(e),this._updateCheckboxesClass()},_updateCheckboxesClass:function(){var e=this.getTableElements(),t=this.getController("selection"),n=t.isSelectColumnVisible()&&!t.isSelectionWithCheckboxes();(0,h.each)(e,function(e,t){(0,a.default)(t).toggleClass(A,n)})}}}}}},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(39),l=i(s),u=n(166),c=i(u),d=n(14),h=i(d),p=n(31),f=i(p),g=n(34),_=i(g),m=n(141),v=i(m),y=n(16),x=i(y),b=n(46),w=i(b),C=n(1),k=n(0),S=n(3),I="column-chooser",T="column-chooser-button",D="notouch-action",E="column-chooser-list",A="column-chooser-plain",O="column-chooser-mode-drag",B="column-chooser-mode-select",P="column-chooser",M="dx-column-chooser-item",R=300,V=function(e,t){var n,i=[],o="select"===e.option("columnChooser.mode");return t.length&&(0,S.each)(t,function(e,t){n={text:t.caption,cssClass:t.cssClass,allowHiding:t.allowHiding,expanded:!0,id:t.index,disabled:t.allowHiding===!1,parentId:(0,C.isDefined)(t.ownerBand)?t.ownerBand:null},o&&(n.selected=t.visible),i.push(n)}),i},F=l.default.ViewController.inherit({renderShowColumnChooserButton:function(e){var t,n=this,i=n.addWidgetPrefix(T),o=n.option("columnChooser.enabled"),r=e.find("."+i);o?r.length?r.show():(t=(0,a.default)("<div>").addClass(i).appendTo(e),n._createComponent(t,_.default,{icon:P,onClick:function(){n.getView("columnChooserView").showColumnChooser()},hint:n.option("columnChooser.title"),integrationOptions:{}})):r.hide()},getPosition:function(){var e=this.getView("rowsView");return{my:"right bottom",at:"right bottom",of:e&&e.element(),collision:"fit",offset:"-2 -2",boundaryOffset:"2 2"}}}),L=c.default.ColumnsView.inherit({_resizeCore:r.noop,_isWinDevice:function(){return!!x.default.real().win},_updateList:function(e){var t,n=this._popupContainer.$content(),i="select"===this.option("columnChooser.mode"),o=this._columnChooserList,a=this._columnsController.getChooserColumns(i);if(i&&o&&e&&"selection"===e.changeType){t=V(this,a);for(var r=0;r<t.length;r++)t[r].id===e.columnIndex&&o.option("items["+r+"].selected",t[r].selected)}else i&&o&&"full"!==e||(this._popupContainer._wrapper().toggleClass(this.addWidgetPrefix(O),!i).toggleClass(this.addWidgetPrefix(B),i),t=V(this,a),this._renderTreeView(n,t))},_initializePopupContainer:function(){var e=this,t=e.element().addClass(e.addWidgetPrefix(I)),n=e.option("columnChooser"),i=f.default.current(),o=f.default.isGeneric(i),r=f.default.isMaterial(i),s={visible:!1,shading:!1,showCloseButton:!1,dragEnabled:!0,resizeEnabled:!0,toolbarItems:[{text:n.title,toolbar:"top",location:o||r?"before":"center"}],position:e.getController("columnChooser").getPosition(),width:n.width,height:n.height,rtlEnabled:e.option("rtlEnabled"),onHidden:function(){e._isWinDevice()&&(0,a.default)("body").removeClass(e.addWidgetPrefix(D))},container:n.container};o||r?(0,k.extend)(s,{showCloseButton:!0}):s.toolbarItems[s.toolbarItems.length]={shortcut:"cancel"},(0,C.isDefined)(this._popupContainer)?this._popupContainer.option(s):(e._popupContainer=e._createComponent(t,w.default,s),e._popupContainer.on("optionChanged",function(t){"visible"===t.name&&e.renderCompleted.fire()}))},_renderCore:function(e){this._popupContainer&&this._updateList(e)},_renderTreeView:function(e,t){var n,i,o=this,s=this.option("columnChooser"),l="select"===s.mode,u={items:t,dataStructure:"plain",activeStateEnabled:!0,focusStateEnabled:!0,hoverStateEnabled:!0,itemTemplate:"item",showCheckBoxesMode:"none",rootValue:null,searchEnabled:s.allowSearch,searchTimeout:s.searchTimeout};i=e.find(".dx-scrollable").data("dxScrollable"),n=i&&i.scrollTop(),l&&!this._columnsController.isBandColumnsUsed()&&e.addClass(this.addWidgetPrefix(A)),u.onContentReady=function(e){(0,r.deferUpdate)(function(){if(n){var t=(0,a.default)(e.element).find(".dx-scrollable").data("dxScrollable");t&&t.scrollTo({y:n})}o.renderCompleted.fire()})},this._isWinDevice()&&(u.useNativeScrolling=!1),(0,k.extend)(u,l?this._prepareSelectModeConfig():this._prepareDragModeConfig()),this._columnChooserList?(u.searchEnabled||(u.searchValue=""),this._columnChooserList.option(u)):(this._columnChooserList=this._createComponent(e,v.default,u),e.addClass(this.addWidgetPrefix(E)))},_prepareDragModeConfig:function(){var e=this.option("columnChooser");return{noDataText:e.emptyPanelText,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,itemTemplate:function(e,t,n){(0,a.default)(n).text(e.text).parent().addClass(e.cssClass).addClass(M)}}},_prepareSelectModeConfig:function(){var e=this,t=function(t){var n=e._columnsController.getVisibleColumns().filter(function(e){return!e.command}),i=1===n.length&&!t.itemData.selected;i?t.component.selectItem(t.itemElement):setTimeout(function(){e._columnsController.columnOption(t.itemData.id,"visible",t.itemData.selected)},R)};return{selectNodesRecursive:!1,showCheckBoxesMode:"normal",onItemSelectionChanged:t}},_columnOptionChanged:function(e){var t=e.changeTypes,n=e.optionNames,i="select"===this.option("columnChooser.mode");this.callBase(e),i&&(n.visible&&1===n.length&&void 0!==e.columnIndex?this.render(null,{changeType:"selection",columnIndex:e.columnIndex}):(n.showInColumnChooser||n.visible||t.columns&&n.all)&&this.render(null,"full"))},optionChanged:function(e){switch(e.name){case"columnChooser":this._initializePopupContainer(),this.render(null,"full");break;default:this.callBase(e)}},getColumnElements:function(){var e,t,n=[],i="select"===this.option("columnChooser.mode"),o=this._columnsController.getChooserColumns(i),r=this._popupContainer&&this._popupContainer.$content(),s=r&&r.find(".dx-treeview-node");return s&&o.forEach(function(i){e=s.filter("[data-item-id = '"+i.index+"']"),t=e.length?e.children("."+M).get(0):null,n.push(t)}),(0,a.default)(n)},getName:function(){return"columnChooser"},getColumns:function(){return this._columnsController.getChooserColumns()},allowDragging:function(e,t){var n=e&&e.allowHiding&&("columnChooser"!==t||!e.visible&&this._columnsController.isParentColumnVisible(e.index));return this.isColumnChooserVisible()&&n},getBoundingRect:function(){var e,t=this,n=t._popupContainer&&t._popupContainer._container();return n&&n.is(":visible")?(e=n.offset(),{left:e.left,top:e.top,right:e.left+n.outerWidth(),bottom:e.top+n.outerHeight()}):null},showColumnChooser:function(){this._popupContainer||(this._initializePopupContainer(),this.render()),this._popupContainer.show(),this._isWinDevice()&&(0,a.default)("body").addClass(this.addWidgetPrefix(D))},hideColumnChooser:function(){this._popupContainer&&this._popupContainer.hide()},isColumnChooserVisible:function(){var e=this._popupContainer;return e&&e.option("visible")},publicMethods:function(){return["showColumnChooser","hideColumnChooser"]}});e.exports={defaultOptions:function(){return{columnChooser:{enabled:!1,allowSearch:!1,searchTimeout:500,mode:"dragAndDrop",width:250,height:260,title:h.default.format("dxDataGrid-columnChooserTitle"),emptyPanelText:h.default.format("dxDataGrid-columnChooserEmptyText"),container:void 0}}},controllers:{columnChooser:F},views:{columnChooserView:L},extenders:{views:{headerPanel:{_getToolbarItems:function(){var e=this.callBase();return this._appendColumnChooserItem(e)},_appendColumnChooserItem:function(e){var t=this,n=t.option("columnChooser.enabled");if(n){var i=function(){t.component.getView("columnChooserView").showColumnChooser()},o=function(e){(0,a.default)(e.element).addClass(t._getToolbarButtonClass(t.addWidgetPrefix(T)))},r=t.option("columnChooser.title"),s={widget:"dxButton",options:{icon:P,onClick:i,hint:r,text:r,onInitialized:o},showText:"inMenu",location:"after",name:"columnChooserButton",locateInMenu:"auto",sortIndex:40};e.push(s)}return e},optionChanged:function(e){switch(e.name){case"columnChooser":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}},isVisible:function(){var e=this,t=e.option("columnChooser.enabled");return e.callBase()||t}}},controllers:{columns:{allowMoveColumn:function(e,t,n,i){var o=this.option("columnChooser.mode"),a="select"===o&&"columnChooser"===i;return!a&&this.callBase(e,t,n,i)}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(9),s=i(r),l=n(243),u=i(l),c=n(0),d=n(618),h=i(d),p="dx-treeview",f=p+"-node-container",g=h.default.inherit(u.default).inherit({_addWidgetPrefix:function(e){return p+"-"+e},_optionChanged:function(e){switch(e.name){case"searchValue":this._showCheckboxes()&&this._isRecursiveSelection()&&this._removeSelection(),this._initDataAdapter(),this._updateSearch(),this._repaintContainer();break;case"searchExpr":this._initDataAdapter(),this.repaint();break;case"searchMode":this.option("expandNodesRecursive")?this._updateDataAdapter():this._initDataAdapter(),this.repaint();break;default:this.callBase(e)}},_updateDataAdapter:function(){this._setOptionSilent("expandNodesRecursive",!1),this._initDataAdapter(),this._setOptionSilent("expandNodesRecursive",!0)},_getDataAdapterOptions:function(){return(0,c.extend)(this.callBase(),{searchValue:this.option("searchValue"),searchMode:this.option("searchMode")||"contains",searchExpr:this.option("searchExpr")})},_updateSearch:function(){if(this._searchEditor){var e=this._getSearchEditorOptions();this._searchEditor.option(e)}},_repaintContainer:function(){var e,t=this.$element().find("."+f).first();t.length&&(t.empty(),e=this._dataAdapter.getRootNodes(),this._renderEmptyMessage(e),this._renderItems(t,e),this._fireContentReadyAction())},_itemContainer:function(e){return this._scrollableContainer&&e?(0,a.default)(this._scrollableContainer.content()):this.callBase()},_addWidgetClass:function(){this.$element().addClass(this._widgetClass())},_clean:function(){this.callBase(),this._removeSearchBox()}});(0,s.default)("dxTreeView",g),e.exports=g},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(15),s=i(r),l=n(23),u=i(l),c=n(40),d=n(6);t.createOffsetFilter=function(e,t){var n,i,o,a,r,s=(0,c.normalizeSortingInfo)(t.group),l=[];for(n=0;n<e.length;n++){for(o=[],i=0;i<=n;i++)a=s[i].selector,n!==i||null!==e[i]&&e[i]!==!1&&e[i]!==!0?(r=[a,n===i?s[i].desc?">":"<":"=",e[i]],"<"===r[1]?o.push([r,"or",[a,"=",null]]):o.push(r)):e[i]===!1?o.push([a,"=",!!s[i].desc||null]):(e[i]?!s[i].desc:s[i].desc)?o.push([a,"<>",e[i]]):(o.push([a,"<>",null]),o.push([a,"=",null]));l.push(u.default.combineFilters(o))}return l=u.default.combineFilters(l,"or"),u.default.combineFilters([l,t.filter])},t.GroupingHelper=s.default.inherit(function(){var e=function(e,t){var n=e.hash;return n&&n[JSON.stringify(t)]},t=function(e,t){var n,i=0,o=e.length-1;if(!e.length)return 0;do{var a=o+i>>1;e[a].offset>t?o=a:i=a}while(o-i>1);for(n=i;n<=o&&!(e[n].offset>t);n++);return n},n=function(e,t){var n,i;for(t=t||[],i=0;i<e.length;i++)if(n=e[i],n.data&&n.data.offset!==n.offset){n.offset=n.data.offset;for(var o=0;o<t.length;o++)t[o].offset=n.offset}e.sort(function(e,t){return e.offset-t.offset})},i=function e(t,n,i){var o;for(o=0;o<t.length;o++)n+1>=i?t[o].children=[]:e(t[o].children,n+1,i)},o=function e(t,n,i){var o,a=0;if(n)if(i)for(o=0;o<n.length;o++)t.isGroupItemCountable(n[o])&&a++,a+=e(t,n[o].items,i-1);else a=n.length;return a};return{ctor:function(e){this._dataSource=e,this.reset()},reset:function(){this._groupsInfo=[],this._totalCountCorrection=0},totalCountCorrection:function(){return this._totalCountCorrection},updateTotalItemsCount:function(e){this._totalCountCorrection=e||0},isGroupItemCountable:function(e){return!this._isVirtualPaging()||!e.isContinuation},_isVirtualPaging:function(){var e=this._dataSource.option("scrolling.mode");return"virtual"===e||"infinite"===e},itemsCount:function e(){var t=this._dataSource,n=t._dataSource,i=u.default.normalizeSortingInfo(n.group()||[]).length,e=o(this,n.items(),i);return e},foreachGroups:function(e,t,i,o,r){function s(e,t,l,u){function c(e,t,n,i){var o=t&&e(t,n);return o&&i.push(o),o}var h,p,f=[];for(h=0;h<e.length;h++){if(u.push(e[h].data),!l&&c(t,e[h].data,u,f)===!1)return!1;if((!e[h].data||e[h].data.isExpanded||i)&&(p=s(e[h].children,t,l,u),p&&f.push(p),p===!1))return!1;if(l&&c(t,e[h].data,u,f)===!1)return!1;e[h].data&&e[h].data.offset===e[h].offset||(o=!0),u.pop()}var g=r&&u.slice(0);return o&&d.when.apply(a.default,f).always(function(){n(e,g)})}var l=this;return s(l._groupsInfo,e,t,[])},findGroupInfo:function(t){var n,i,o=this,a=o._groupsInfo;for(n=0;a&&n<t.length;n++)i=e(a,t[n]),a=i&&i.children;return i&&i.data},addGroupInfo:function(i){var o,a,r,s=this,l=i.path,u=s._groupsInfo;for(r=0;r<l.length;r++)a=e(u,l[r]),a||(a={key:l[r],offset:i.offset,data:{offset:i.offset,isExpanded:!0,path:l.slice(0,r+1)},children:[]},o=t(u,i.offset),u.splice(o,0,a),u.hash=u.hash||{},u.hash[JSON.stringify(a.key)]=a),r===l.length-1&&(a.data=i,a.offset!==i.offset&&n(u)),u=a.children},allowCollapseAll:function(){return!0},refresh:function(e){var t,n=this,o=e.storeLoadOptions,a=(0,c.normalizeSortingInfo)(o.group||[]),r="_group"in n?(0,c.normalizeSortingInfo)(n._group||[]):a,s=Math.min(r.length,a.length);for(n._group=o.group,t=0;t<s;t++)if(r[t].selector!==a[t].selector){s=t;break}s?i(n._groupsInfo,0,s):n.reset()},handleDataLoading:function(){},handleDataLoaded:function(e,t){t(e)},handleDataLoadedCore:function(e,t){t(e)}}}())},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(36),s=i(r),l=n(4),u=n(3),c=n(1),d="dx-master-detail-cell",h="dx-master-detail-row",p="dx-cell-focus-disabled",f="dx-row-lines";e.exports={defaultOptions:function(){return{masterDetail:{enabled:!1,autoExpandAll:!1,template:null}}},extenders:{controllers:{columns:{_getExpandColumnsCore:function(){var e=this.callBase();return this.option("masterDetail.enabled")&&e.push({type:"detailExpand",cellTemplate:s.default.getExpandCellTemplate()}),e}},data:function(){var e=function(e){e._expandedItems=[],e._isExpandAll=e.option("masterDetail.autoExpandAll")};return{init:function(){var t=this;e(t),t.callBase()},expandAll:function(e){var t=this;e<0?(t._isExpandAll=!0,t._expandedItems=[],t.updateItems()):t.callBase.apply(t,arguments)},collapseAll:function(e){var t=this;e<0?(t._isExpandAll=!1,t._expandedItems=[],t.updateItems()):t.callBase.apply(t,arguments)},isRowExpanded:function(e){var t=this,n=s.default.getIndexByKey(e,t._expandedItems);return Array.isArray(e)?t.callBase.apply(t,arguments):!!(t._isExpandAll^(n>=0&&t._expandedItems[n].visible))},_getRowIndicesForExpand:function(e){var t=this.getRowIndexByKey(e);return[t,t+1]},_changeRowExpandCore:function(e){var t,n,i=this;if(Array.isArray(e))return i.callBase.apply(i,arguments);
50if(t=s.default.getIndexByKey(e,i._expandedItems),t>=0){var o=i._expandedItems[t].visible;i._expandedItems[t].visible=!o}else i._expandedItems.push({key:e,visible:!0}),n=i.getController("editing"),n&&n.correctEditRowIndexAfterExpand(e);i.updateItems({changeType:"update",rowIndices:i._getRowIndicesForExpand(e)})},_processDataItem:function(e,t){var n=this,i=n.callBase.apply(n,arguments);return i.isExpanded=n.isRowExpanded(i.key),void 0===t.detailColumnIndex&&(t.detailColumnIndex=-1,(0,u.each)(t.visibleColumns,function(e,n){if("expand"===n.command&&!(0,c.isDefined)(n.groupIndex))return t.detailColumnIndex=e,!1})),t.detailColumnIndex>=0&&(i.values[t.detailColumnIndex]=i.isExpanded),i},_processItems:function(e,t){var n,i=this,o=[];return e=i.callBase.apply(i,arguments),"loadingAll"===t?e:("refresh"===t&&(i._expandedItems=(0,l.grep)(i._expandedItems,function(e){return e.visible})),(0,u.each)(e,function(e,t){o.push(t),n=s.default.getIndexByKey(t.key,i._expandedItems),"data"===t.rowType&&(t.isExpanded||n>=0)&&!t.inserted&&o.push({visible:t.isExpanded,rowType:"detail",key:t.key,data:t.data,values:[]})}),o)},optionChanged:function(t){var n,i,o,a,r=this;if("masterDetail"===t.name){switch(t.name="dataSource",t.fullName){case"masterDetail":n=t.value||{},i=t.previousValue||{},o=n.enabled!==i.enabled,a=n.autoExpandAll!==i.autoExpandAll;break;case"masterDetail.enabled":o=!0;break;case"masterDetail.autoExpandAll":a=!0}(o||a)&&e(r)}r.callBase(t)}}}()},views:{rowsView:function(){return{_getCellTemplate:function(e){var t,n=this,i=e.column,o=n.getController("editing"),a=o&&o.isEditRow(e.rowIndex);return t="detail"!==i.command||a?n.callBase.apply(n,arguments):n.option("masterDetail.template")||{allowRenderToDetachedContainer:!1,render:n._getDefaultTemplate(i)}},_cellPrepared:function(e,t){var n=this,i=n.component;n.callBase.apply(n,arguments),"detail"===t.rowType&&"detail"===t.column.command&&e.find("."+n.getWidgetContainerClass()).each(function(){var e=(0,a.default)(this).parent().data("dxDataGrid");e&&e.on("contentReady",function(){if(n._isFixedColumns){var e=(0,a.default)(i.getRowElement(t.rowIndex));e&&2===e.length&&e.eq(0).height()!==e.eq(1).height()&&i.updateDimensions()}else{var o=i.getScrollable();o&&o.update()}})})},_isDetailRow:function(e){return e&&e.rowType&&0===e.rowType.indexOf("detail")},_createRow:function(e){var t=this.callBase(e);return e&&this._isDetailRow(e)&&(this.option("showRowLines")&&t.addClass(f),t.addClass(h),(0,c.isDefined)(e.visible)&&t.toggle(e.visible)),t},_renderCells:function(e,t){var n,i=t.row,o=this._columnsController.getVisibleColumns();i.rowType&&this._isDetailRow(i)?(n=this._renderCell(e,{value:null,row:i,rowIndex:i.rowIndex,column:{command:"detail"},columnIndex:0}),n.addClass(p).addClass(d).attr("colSpan",o.length)):this.callBase.apply(this,arguments)}}}()}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(11),s=i(r),l=n(5),u=i(l),c=n(39),d=i(c),h=n(19),p=i(h),f=n(24),g=i(f),_=n(76),m=i(_),v=n(8),y=n(26),x=i(y),b=n(0),w=n(354),C=i(w),k="dx-editor-inline-block",S="dx-cell-focus-disabled",I="focus-overlay",T="content",D="dx-focused",E="dx-row",A="dxDataGridEditorFactory",O=(0,v.addNamespace)([g.default.down,"focusin",p.default.name].join(" "),A),B="dx-pointer-events-target",P="dx-pointer-events-none",M="td[tabindex]:focus, tr[tabindex]:focus, input:focus, textarea:focus, .dx-lookup-field:focus, .dx-checkbox:focus",R="dx-hidden",V=d.default.ViewController.inherit({_getFocusedElement:function(e){return e.find(M)},_getFocusCellSelector:function(){return".dx-row > td"},_updateFocusCore:function(){var e,t,n=this._$focusedElement,i=this.component&&this.component.$element();return i&&(n=this._getFocusedElement(i),n.length&&(n.hasClass(S)||n.hasClass(E)||(e=n.closest(this._getFocusCellSelector()+", ."+S),t=e.get(0)!==n.get(0)&&e.hasClass(k),n=e),n.length&&!n.hasClass(S)))?void this.focus(n,t):void this.loseFocus()},_updateFocus:function(e){var t=this,n=e&&e.event&&(0,a.default)(e.event.target).hasClass(t.addWidgetPrefix(I));t._isFocusOverlay=t._isFocusOverlay||n,clearTimeout(t._updateFocusTimeoutID),t._updateFocusTimeoutID=setTimeout(function(){delete t._updateFocusTimeoutID,t._isFocusOverlay||t._updateFocusCore(),t._isFocusOverlay=!1})},_updateFocusOverlaySize:function(e,t){var n=m.default.calculate(e,(0,b.extend)({collision:"fit"},t));n.h.oversize>0&&e.outerWidth(e.outerWidth()-n.h.oversize),n.v.oversize>0&&e.outerHeight(e.outerHeight()-n.v.oversize)},callbackNames:function(){return["focused"]},focus:function(e,t){var n=this;return void 0===e?n._$focusedElement:void(e&&(e.is(n._$focusedElement)||n._$focusedElement&&n._$focusedElement.removeClass(D),n._$focusedElement=e,clearTimeout(n._focusTimeoutID),n._focusTimeoutID=setTimeout(function(){delete n._focusTimeoutID,n.renderFocusOverlay(e,t),e.addClass(D),n.focused.fire(e)})))},renderFocusOverlay:function(e,t){var n,i=this;if(i._$focusOverlay||(i._$focusOverlay=(0,a.default)("<div>").addClass(i.addWidgetPrefix(I)+" "+B)),t)i._$focusOverlay.addClass(R);else if(e.length){var o=x.default.msie?"left bottom":x.default.mozilla?"right bottom":"left top",r=e.closest("."+i.addWidgetPrefix(T)),s=e[0].getBoundingClientRect();i._$focusOverlay.removeClass(R).appendTo(r).outerWidth(s.right-s.left+1).outerHeight(s.bottom-s.top+1),n={precise:!0,my:o,at:o,of:e,boundary:r.length&&r},i._updateFocusOverlaySize(i._$focusOverlay,n),m.default.setup(i._$focusOverlay,n),i._$focusOverlay.css("visibility","visible")}},resize:function(){var e=this._$focusedElement;e&&this.focus(e)},loseFocus:function(){this._$focusedElement&&this._$focusedElement.removeClass(D),this._$focusedElement=null,this._$focusOverlay&&this._$focusOverlay.addClass(R)},init:function(){this.createAction("onEditorPreparing",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this.createAction("onEditorPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this._updateFocusHandler=this._updateFocusHandler||this.createAction(this._updateFocus.bind(this)),u.default.on(s.default.getDocument(),O,this._updateFocusHandler),this._attachContainerEventHandlers()},_attachContainerEventHandlers:function(){var e=this,t=e.component&&e.component.$element();t&&u.default.on(t,(0,v.addNamespace)("keydown",A),function(t){"tab"===(0,v.normalizeKeyName)(t)&&e._updateFocusHandler(t)})},_focusOverlayEventProxy:function(e){var t,n=(0,a.default)(e.target),i=(0,a.default)(e.currentTarget),o=n.hasClass(B)||n.hasClass(P);o&&!i.hasClass(R)&&(i.addClass(R),t=n.get(0).ownerDocument.elementFromPoint(e.clientX,e.clientY),(0,v.fireEvent)({originalEvent:e,target:t}),e.stopPropagation(),i.removeClass(R),e.type===p.default.name&&"INPUT"===t.tagName&&u.default.trigger((0,a.default)(t),"focus"))},dispose:function(){clearTimeout(this._focusTimeoutID),clearTimeout(this._updateFocusTimeoutID),u.default.off(s.default.getDocument(),O,this._updateFocusHandler)}}).include(C.default);e.exports={defaultOptions:function(){return{}},controllers:{editorFactory:V},extenders:{controllers:{columnsResizer:{_startResizing:function(e){this.callBase(e),this.isResizing()&&this.getController("editorFactory").loseFocus()}}}}}},function(e,t,n){var i=n(2),o=n(4).noop,a=n(5),r=n(1),s=n(87).isWrapped,l=n(20).compileGetter,u=n(26),c=n(0).extend,d=n(16),h=n(12).getPublicElement,p=n(44).normalizeDataSourceOptions,f=n(8).normalizeKeyName;n(92),n(117),n(103),n(95),n(193);var g="checkbox-size",_="dx-cell-focus-disabled",m="dx-editor-inline-block",v=function(){var e=function(e,t){return c(e,{readOnly:t.readOnly,placeholder:t.placeholder,inputAttr:{id:t.id},tabIndex:t.tabIndex},t.editorOptions)},t=function(){return u.msie||u.mozilla||d.real().ios},n=function(n){var o={},s=t(),l=n.sharedData||o;return e({placeholder:n.placeholder,width:n.width,value:n.value,onValueChanged:function(e){var t="filterRow"===n.parentType||"searchPanel"===n.parentType,i=e.event&&("input"===e.event.type||"keyup"===e.event.type),a=function(e,t){n&&n.setValue(e.value,t)};clearTimeout(o.valueChangeTimeout),i&&t?l.valueChangeTimeout=o.valueChangeTimeout=setTimeout(function(){a(e,o.valueChangeTimeout!==l.valueChangeTimeout)},r.isDefined(n.updateValueTimeout)?n.updateValueTimeout:0):a(e)},onKeyDown:function(e){s&&"enter"===f(e.event)&&a.trigger(i(e.component._input()),"change")},valueChangeEvent:"change"+("filterRow"===n.parentType?" keyup input":"")},n)},v=function(n){n.editorName="dxDateBox",n.editorOptions=e({value:n.value,onValueChanged:function(e){n.setValue(e.value)},onKeyDown:function(e){t()&&"enter"===f(e.event)&&(e.component.blur(),e.component.focus())},displayFormat:n.format,type:n.dataType,formatWidthCalculator:null,dateSerializationFormat:null,width:"filterBuilder"===n.parentType?void 0:"auto"},n)},y=function(e){var t=n(e),i="searchPanel"===e.parentType,o=function(e){return r.isDefined(e)?e.toString():""};e.editorType&&"dxTextBox"!==e.editorType?t.value=e.value:t.value=o(e.value),t.valueChangeEvent+=i?" keyup input search":"",t.mode=t.mode||(i?"search":"text"),e.editorName="dxTextBox",e.editorOptions=t},x=function(e){var t=n(e);t.value=r.isDefined(e.value)?e.value:null,e.editorName="dxNumberBox",e.editorOptions=t},b=function(e){"filterRow"===e.parentType||"filterBuilder"===e.parentType?w(c(e,{lookup:{displayExpr:function(t){return t===!0?e.trueText||"true":t===!1?e.falseText||"false":void 0},dataSource:[!0,!1]}})):C(e)},w=function(t){var n,i,o,a=t.lookup,u="filterRow"===t.parentType;if(a){n=l(a.displayExpr),i=a.dataSource,r.isFunction(i)&&!s(i)&&(i=i(t.row||{})),(r.isObject(i)||Array.isArray(i))&&(i=p(i),u&&(o=i.postProcess,i.postProcess=function(e){return 0===this.pageIndex()&&(e=e.slice(0),e.unshift(null)),o?o.call(this,e):e}));var c=Boolean(a.allowClearing&&!u);t.editorName="dxSelectBox",t.editorOptions=e({searchEnabled:!0,value:t.value,valueExpr:t.lookup.valueExpr,searchExpr:t.lookup.searchExpr||t.lookup.displayExpr,allowClearing:c,showClearButton:c,displayExpr:function(e){return null===e?t.showAllText:n(e)},dataSource:i,onValueChanged:function(e){var n=[e.value];!u&&n.push(e.component.option("text")),t.setValue.apply(this,n)}},t)}},C=function(t){t.editorName="dxCheckBox",t.editorOptions=e({value:r.isDefined(t.value)?t.value:void 0,hoverStateEnabled:!t.readOnly,focusStateEnabled:!t.readOnly,activeStateEnabled:!1,onValueChanged:function(e){t.setValue&&t.setValue(e.value,e)}},t)},k=function(e,t){var n=i(t.editorElement);t.editorName&&t.editorOptions&&n[t.editorName]&&("dxCheckBox"===t.editorName&&(t.isOnForm||(n.addClass(e.addWidgetPrefix(g)),n.parent().addClass(m)),(t.command||t.editorOptions.readOnly)&&n.parent().addClass(_)),e._createComponent(n,t.editorName,t.editorOptions),"dxTextBox"===t.editorName&&n.dxTextBox("instance").registerKeyHandler("enter",o),"dxTextArea"===t.editorName&&n.dxTextArea("instance").registerKeyHandler("enter",function(e){"enter"!==f(e)||e.ctrlKey||e.shiftKey||e.stopPropagation()}))};return{createEditor:function(e,t){var n=void 0;if(t.cancel=!1,t.editorElement=h(e),r.isDefined(t.tabIndex)||(t.tabIndex=this.option("tabIndex")),t.lookup)w(t);else switch(t.dataType){case"date":case"datetime":v(t);break;case"boolean":b(t);break;case"number":x(t);break;default:y(t)}n=t.editorName,this.executeAction("onEditorPreparing",t),t.cancel||("dataRow"===t.parentType&&t.editorType&&n===t.editorName&&(t.editorName=t.editorType),k(this,t),this.executeAction("onEditorPrepared",t))}}}();e.exports=v},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(11),s=i(r),l=n(7),u=n(5),c=i(u),d=n(43),h=i(d),p=n(1),f=i(p),g=n(3),_=n(0),m=n(39),v=i(m),y=n(19),x=i(y),b=n(24),w=i(b),C=n(36),k=n(8),S=n(239),I=i(S),T=n(14),D=i(T),E=n(34),A=i(E),O=n(46),B=i(O),P=n(17),M=i(P),R=n(16),V=i(R),F=n(140),L=i(F),H=n(89),z=i(H),N=n(6),$=i(N),W=n(4),G=i(W),j=n(62),q=i(j),K=n(94),U=i(K),Y="edit-form",X="edit-form-item",Z="focus-overlay",Q="readonly",J="edit-popup",ee="form-buttons-container",te="addrow-button",ne="dx-link",ie="dx-editor-cell",oe="dx-selection",ae="dx-edit-row",re="dx-edit-button",se="dx-command-edit",le=se+"-with-icons",ue="dx-scrollable-container",ce="dx-button",de="__DX_INSERT_INDEX__",he="dx-row",pe="dx-row-removed",fe="dx-row-inserted",ge="dx-row-modified",_e="dx-cell-modified",me="dx-highlight-outline",ve="dxDataGridEditing",ye="dx-data-row",xe="dx-cell-focus-disabled",be="input:not([type='hidden'])",we="[tabindex], "+be,Ce="batch",ke="row",Se="cell",Ie="form",Te="popup",De="insert",Ee="update",Ae="remove",Oe="dx-pointer-events-target",Be="click",Pe=[Ce,ke,Se,Ie,Te],Me=[ke,Ie,Te],Re=[Ce,Se],Ve=[Ie,Te],Fe=[ke,Ie],Le="targetComponent",He={save:"dx-link-save",cancel:"dx-link-cancel",edit:"dx-link-edit",undelete:"dx-link-undelete","delete":"dx-link-delete",add:"dx-link-add"},ze={save:"save",cancel:"revert",edit:"edit",undelete:"revert","delete":"trash",add:"add"},Ne={edit:"editRow","delete":"deleteRow",undelete:"undeleteRow",save:"saveEditData",cancel:"cancelEditData",add:"addRowByRowIndex"},$e={add:"allowAdding",edit:"allowUpdating","delete":"allowDeleting"},We=["edit","save","cancel","delete","undelete"],Ge=function(e){var t=e.option("editing.mode");return Pe.indexOf(t)!==-1?t:ke},je=function(e){var t=Ge(e);return Me.indexOf(t)!==-1},qe=function(){return"desktop"===V.default.real().deviceType?w.default.down:x.default.name},Ke=v.default.ViewController.inherit(function(){var e=function(e){return function(t,n){var i=(0,a.default)("<div>").appendTo(t);e.getController("editorFactory").createEditor(i,(0,_.extend)({},n.column,{value:n.value,setValue:n.setValue,row:n.row,parentType:"dataRow",width:null,readOnly:!n.setValue,isOnForm:n.isOnForm,id:n.id}))}},t=function(e){var t=e.component.option("editing.texts")||{};return{save:t.saveRowChanges,cancel:t.cancelRowChanges,edit:t.editRow,undelete:t.undeleteRow,"delete":t.deleteRow,add:t.addRowToNode}},n=function(e,t){var n=-1;return e.some(function(e,o){if(i(e)===t)return n=o,!0}),n},i=function(e){return f.default.isObject(e)?e.name:e},o=function(e){var t=e.column;return e.isCustomEditorType?e.editorType:t.formItem&&t.formItem.editorType},r=function e(t,n){t.forEach(function(t){t.items||t.tabs?e(t.items||t.tabs,n):n(t)})};return{init:function(){var e=this;e._editRowIndex=-1,e._editData=[],e._editColumnIndex=-1,e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._rowsView=e.getView("rowsView"),e._editForm=null,e._dataChangedHandler||(e._dataChangedHandler=e._handleDataChanged.bind(e),e._dataController.changed.add(e._dataChangedHandler)),e._saveEditorHandler||(e.createAction("onInitNewRow",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowInserting",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowInserted",{excludeValidators:["disabled","readOnly"]}),e.createAction("onEditingStart",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowUpdating",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowUpdated",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowRemoving",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowRemoved",{excludeValidators:["disabled","readOnly"]}),e._saveEditorHandler=e.createAction(function(t){var n,i,o,r,s,u,c,d=t.event,h=d[Le];je(e)||e._editCellInProgress||(u=(0,a.default)(d.target),n=u.closest(".dx-dropdowneditor-overlay").length,i=u.closest((0,l.getWindow)().document).length,c=h&&h!==e.component,r=u.closest("."+e.addWidgetPrefix(te)).length,o=u.hasClass(e.addWidgetPrefix(Z)),s=Ge(e)===Se,n||o||r&&s&&e.isEditing()||!i&&!c||e._closeEditItem.bind(e)(u))}),c.default.on(s.default.getDocument(),qe(),e._saveEditorHandler)),e._updateEditColumn(),e._updateEditButtons()},getUpdatedData:function(e){var t=this._dataController.keyOf(e),n=this._editData,i=(0,C.getIndexByKey)(t,n);return n[i]?(0,C.createObjectWithChanges)(e,n[i].data):e},getInsertedData:function(){return this._editData.filter(function(e){return e.data&&e.type===De}).map(function(e){return e.data})},getRemovedData:function(){return this._editData.filter(function(e){return e.oldData&&e.type===Ae}).map(function(e){return e.oldData})},_needToCloseEditableCell:function(e){var t=this.component.$element(),n=this.isEditing(),i=!t||!!e.closest(t).length;if(i){var o=e.closest("."+ye).length;if(o){var a=e.closest("."+he+"> td"),r=a[0]&&a[0].cellIndex,s=this.getView("rowsView").getRowIndex(a.parent()),l=this._columnsController.getVisibleColumns(),u=l[r]&&l[r].allowEditing;n=n&&!u&&!this.isEditCell(s,r)}}return n},_closeEditItem:function(e){this._needToCloseEditableCell(e)&&this.closeEditCell()},_handleDataChanged:function(e){var t=this,n=t._editForm;"standard"===t.option("scrolling.mode")&&t.resetRowAndPageIndices(),"prepend"===e.changeType&&(0,g.each)(t._editData,function(t,n){n.rowIndex+=e.items.length,n.type===De&&(n.key.rowIndex+=e.items.length,n.key.dataRowIndex+=e.items.filter(function(e){return"data"===e.rowType}).length)}),"refresh"===e.changeType&&Ge(t)===Te&&n&&n.option("visible")&&n.repaint()},_isDefaultButtonVisible:function(e,t){var n=!0,i=je(this),o=t.row&&t.row.rowIndex===this._getVisibleEditRowIndex()&&i;switch(e.name){case"edit":n=!o&&this.allowUpdating(t)&&i;break;case"save":case"cancel":n=o;break;case"delete":n=!o&&this.allowDeleting(t)&&!t.row.removed;break;case"undelete":n=this.allowDeleting(t)&&t.row.removed}return n},_isButtonVisible:function(e,t){var n=e.visible;return f.default.isDefined(n)?f.default.isFunction(n)?n.call(e,{component:t.component,row:t.row,column:t.column}):n:this._isDefaultButtonVisible(e,t)},_getButtonConfig:function(e,n){var o=this,a=f.default.isObject(e)?e:{},r=i(e),s=t(n),l=Ne[r],u=this.option("editing"),c=$e[r],d=!c||u[c];return(0,_.extend)({name:r,text:s[r],cssClass:He[r],onClick:function(e){var t=e.event;t.stopPropagation(),t.preventDefault(),setTimeout(function(){n.row&&d&&o[l]&&o[l](n.row.rowIndex)})}},a)},_getEditingButtons:function(e){var t,i=this,o=!!e.column.buttons,a=(e.column.buttons||[]).slice();return o?(t=n(a,"edit"),t>=0&&(n(a,"save")<0&&a.splice(t+1,0,"save"),n(a,"cancel")<0&&a.splice(n(a,"save")+1,0,"cancel")),t=n(a,"delete"),t>=0&&n(a,"undelete")<0&&a.splice(t+1,0,"undelete")):a=We.slice(),a.map(function(t){return i._getButtonConfig(t,e)})},_renderEditingButtons:function(e,t,n){var i=this;t.forEach(function(t){i._isButtonVisible(t,n)&&i._createButton(e,t,n)})},_getEditCommandCellTemplate:function(){var e=this;return function(t,n){var i,o=(0,a.default)(t);"data"===n.rowType?(n.rtlEnabled=e.option("rtlEnabled"),i=e._getEditingButtons(n),e._renderEditingButtons(o,i,n),n.watch&&n.watch(function(){return i.map(function(t){return e._isButtonVisible(t,n)})},function(){o.empty(),e._renderEditingButtons(o,i,n)})):(0,C.setEmptyText)(o)}},correctEditRowIndexAfterExpand:function(e){this._editRowIndex>this._dataController.getRowIndexByKey(e)&&this._editRowIndex++},correctEditRowIndex:function(e){this._editRowIndex+=e(this._getVisibleEditRowIndex())},isRowEditMode:function(){return je(this)},isFormEditMode:function(){var e=Ge(this);return Ve.indexOf(e)!==-1},getEditMode:function(){return Ge(this)},getFirstEditableColumnIndex:function(){var e,t=this.getController("columns"),n=this._firstFormItem;if(Ge(this)===Ie&&n){var i=this._rowsView.getCellElements(this._editRowIndex);e=this._rowsView._getEditFormEditorVisibleIndex(i,n.column)}else{var o=t.getVisibleColumns();(0,g.each)(o,function(t,n){if(n.allowEditing)return e=t,!1})}return e},getFirstEditableCellInRow:function(e){var t=this.getView("rowsView");return t&&t._getCellElement(e?e:0,this.getFirstEditableColumnIndex())},getFocusedCellInRow:function(e){return this.getFirstEditableCellInRow(e)},getIndexByKey:function(e,t){return(0,C.getIndexByKey)(e,t)},hasChanges:function(e){for(var t=this,n=!1,i=0;i<t._editData.length;i++)if(t._editData[i].type&&(!f.default.isDefined(e)||t._dataController.getRowIndexByKey(t._editData[i].key)===e)){n=!0;break}return n},dispose:function(){this.callBase(),clearTimeout(this._inputFocusTimeoutID),c.default.off(s.default.getDocument(),qe(),this._saveEditorHandler)},optionChanged:function(e){if("editing"===e.name){if(this._editPopup&&this._editPopup.option("visible")&&0===e.fullName.indexOf("editing.form")){var t=this._getVisibleEditRowIndex();t>=0&&this._showEditPopup(t)}else this.init();e.handled=!0}else this.callBase(e)},publicMethods:function(){return["insertRow","addRow","removeRow","deleteRow","undeleteRow","editRow","editCell","closeEditCell","saveEditData","cancelEditData","hasEditData"]},refresh:function(){Ge(this)!==Se&&(Ge(this)!==Ce?this.init():(this._editRowIndex=-1,this._editColumnIndex=-1))},isEditing:function(){return this._editRowIndex>-1},isEditRow:function(e){var t=Ge(this);return this._getVisibleEditRowIndex()===e&&Me.indexOf(t)!==-1},getEditRowKey:function(){var e=this._dataController.items(),t=e[this._getVisibleEditRowIndex()];return t&&t.key},getEditRowIndex:function(){return this._getVisibleEditRowIndex()},getEditFormRowIndex:function(){var e=Ge(this);return e===Ie||e===Te?this._getVisibleEditRowIndex():-1},isEditCell:function(e,t){var n=!(!Array.isArray(this._editData)||!this._editData.length);return n&&this._getVisibleEditRowIndex()===e&&this._editColumnIndex===t},getPopupContent:function(){var e=Ge(this),t=this._editPopup&&this._editPopup.option("visible");if(e===Te&&t)return this._$popupContent},getEditForm:function(){return this._editForm},_needInsertItem:function(e,t){var n=this,i=n._dataController.dataSource(),o=n.option("scrolling.mode"),a=i.pageIndex(),r=i.beginPageIndex?i.beginPageIndex():a,s=i.endPageIndex?i.endPageIndex():a;if("standard"!==o)switch(t){case"append":return e.key.pageIndex===s;case"prepend":return e.key.pageIndex===r;case"refresh":e.key.rowIndex=0,e.key.dataRowIndex=0,e.key.pageIndex=0;break;default:return e.key.pageIndex>=r&&e.key.pageIndex<=s}return e.key.pageIndex===a},_generateNewItem:function(e){var t={key:e};return e&&e[de]&&(t[de]=e[de]),t},processItems:function(e,t){var n,i,o,a,r=this;for(r.update(t),a=r._editData,n=0;n<a.length;n++)i=a[n].key,o=r._generateNewItem(i),a[n].type===De&&r._needInsertItem(a[n],t,e,o)&&e.splice(i.dataRowIndex,0,o);return e},processDataItem:function(e,t,n){var i,o,a,r,s=this,l=t.visibleColumns,u=e.data[de]?e.data.key:e.key;if(r=(0,C.getIndexByKey)(u,s._editData),r>=0)switch(o=Ge(s),a=s._editData[r],i=a.data,e.isEditing=!1,a.type){case De:o===Te&&(e.visible=!1),e.inserted=!0,e.key=u,e.data=i;break;case Ee:e.modified=!0,e.oldData=e.data,e.data=(0,C.createObjectWithChanges)(e.data,i),e.modifiedValues=n(i,l,!0);break;case Ae:o===Ce&&(e.data=(0,C.createObjectWithChanges)(e.data,i)),e.removed=!0}},insertRow:function(){return M.default.log("W0002","dxDataGrid","insertRow","15.2","Use the 'addRow' method instead"),this.addRow()},_initNewRow:function(e,t){this.executeAction("onInitNewRow",e);var n=this._dataController,i=n.items(),o=i[t.rowIndex];o&&(!o.isEditing&&"detail"===o.rowType||"detailAdaptive"===o.rowType)&&t.rowIndex++,t.dataRowIndex=n.getRowIndexDelta()+i.filter(function(e,n){return n<t.rowIndex&&("data"===e.rowType||"group"===e.rowType)}).length},_getInsertIndex:function(){var e=0;return this._editData.forEach(function(t){t.type===De&&t.key[de]>e&&(e=t.key[de])}),e+1},addRow:function(e){var t,n=this,i=n._dataController,o=i.store(),a=o&&o.key(),r=n.getView("rowsView"),s={data:{}},l=i.getRowIndexByKey(e),u={pageIndex:i.pageIndex(),rowIndex:l>=0?l+1:r?r.getTopVisibleItemIndex(!0):0,parentKey:e},d=n._getVisibleEditRowIndex(),p=Ge(n);if(!o)return void i.fireError("E1052",this.component.NAME);p===Se&&n.hasChanges()&&n.saveEditData(),n.refresh();var f=n._getInsertIndex();p!==Ce&&f>1||(a||(s.data.__KEY__=String(new h.default)),n._initNewRow(s,u),p=Ge(n),p!==Ce&&(n._editRowIndex=u.rowIndex+n._dataController.getRowIndexOffset()),u[de]=f,n._addEditData({key:u,data:s.data,type:De}),i.updateItems({changeType:"update",rowIndices:[d,u.rowIndex]}),p===Te?n._showEditPopup(u.rowIndex):(t=n.getFirstEditableCellInRow(u.rowIndex),n._editCellInProgress=!0,n._delayedInputFocus(t,function(){n._editCellInProgress=!1;var e=n.getFirstEditableCellInRow(u.rowIndex);e&&c.default.trigger(e,x.default.name)})),n._afterInsertRow({key:u,data:s.data}))},_isEditingStart:function(e){return this.executeAction("onEditingStart",e),e.cancel},_beforeEditCell:function(e,t,n){var i=this;if(Ge(i)===Se&&!n.inserted&&i.hasChanges()){var o=new N.Deferred;return i.saveEditData().always(function(){o.resolve(i.hasChanges())}),o}},_beforeUpdateItems:function(){},_getVisibleEditRowIndex:function(){return this._editRowIndex>=0?this._editRowIndex-this._dataController.getRowIndexOffset():-1},editRow:function(e){var t,n=this,i=n._dataController,o=i.items(),a=o[e],r={data:a&&a.data,cancel:!1},s=n._getVisibleEditRowIndex();if(a){if(e===s)return!0;if(a.inserted||(r.key=a.key),!n._isEditingStart(r)){n.init(),n._pageIndex=i.pageIndex(),n._editRowIndex=(o[0].inserted?e-1:e)+n._dataController.getRowIndexOffset(),n._addEditData({data:{},key:a.key,oldData:a.data});var l=[s,e],u=Ge(n);n._beforeUpdateItems(l,e,s),u===Te?n._showEditPopup(e):i.updateItems({changeType:"update",rowIndices:l}),Fe.indexOf(u)!==-1&&(t=n.getFocusedCellInRow(n._getVisibleEditRowIndex()),n._delayedInputFocus(t,function(){t&&n.component.focus(t)}))}}},_showEditPopup:function(e){var t=this,n="desktop"!==V.default.current().deviceType,i=(0,_.extend)({showTitle:!1,fullScreen:n,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:t._getSaveButtonConfig()},{toolbar:"bottom",location:"after",widget:"dxButton",options:t._getCancelButtonConfig()}],contentTemplate:t._getPopupEditFormTemplate(e)},t.option("editing.popup"));if(!t._editPopup){var o=(0,a.default)("<div>").appendTo(t.component.$element()).addClass(t.addWidgetPrefix(J));t._editPopup=t._createComponent(o,B.default,{}),t._editPopup.on("hiding",t._getEditPopupHiddenHandler()),t._editPopup.on("shown",function(e){c.default.trigger(e.component.$content().find(we).not("."+ue).first(),"focus")})}t._editPopup.option(i),t._editPopup.show()},_getEditPopupHiddenHandler:function(){var e=this;return function(t){e.isEditing()&&e.cancelEditData()}},_getPopupEditFormTemplate:function(e){var t=this,n=t.component.getVisibleRows()[e],i={row:n,rowType:n.rowType,key:n.key};return function(e){var n=t.getEditFormTemplate(),o=t._createComponent((0,a.default)("<div>").appendTo(e),U.default);t._$popupContent=o.$content(),n(t._$popupContent,i,!0)}},_getSaveButtonConfig:function(){return{text:this.option("editing.texts.saveRowChanges"),onClick:this.saveEditData.bind(this)}},_getCancelButtonConfig:function(){return{text:this.option("editing.texts.cancelRowChanges"),onClick:this.cancelEditData.bind(this)}},_removeEditDataItem:function(e){e>=0&&this._editData.splice(e,1)},editCell:function(e,t){var n=this,i=n._columnsController,o=n._dataController,a=o.items(),r=a[e],s={data:r&&r.data,cancel:!1},l=n._getVisibleEditRowIndex(),u=i.getVisibleColumns(),c=u[n._editColumnIndex];f.default.isString(t)&&(t=i.columnOption(t,"index"),t=i.getVisibleIndex(t));var d=s.column=u[t];if(d&&r&&("data"===r.rowType||"detailAdaptive"===r.rowType)&&!r.removed&&!je(n)){if(n.isEditCell(e,t))return!0;var h=e+o.getRowIndexOffset();return(0,N.when)(n._beforeEditCell(e,t,r)).done(function(e){e||(n._prepareEditCell(s,r,t,h)?G.default.deferRender(function(){n._repaintEditCell(d,c,l)}):n._processCanceledEditingCell())})}return!1},_processCanceledEditingCell:function(){},_prepareEditCell:function(e,t,n,i){var o=this;return t.inserted||(e.key=t.key),!o._isEditingStart(e)&&(o._editRowIndex=i,o._editColumnIndex=n,o._pageIndex=o._dataController.pageIndex(),o._addEditData({data:{},key:t.key,oldData:t.data}),!0)},_repaintEditCell:function(e,t,n){var i=this,o=i._rowsView;e&&e.showEditorAlways&&(!t||t.showEditorAlways)||(i._editCellInProgress=!0,i.getController("editorFactory").loseFocus(),i._dataController.updateItems({changeType:"update",rowIndices:[n,i._getVisibleEditRowIndex()]}));var a=o&&o._getCellElement(i._getVisibleEditRowIndex(),i._editColumnIndex);a&&!a.find(":focus").length?i._focusEditingCell(function(){i._editCellInProgress=!1},a,!0):i._editCellInProgress=!1},_delayedInputFocus:function(e,t,n){function i(){if(t&&t(),e){var n=e.find(we).first();(0,C.focusAndSelectElement)(o,n)}o._beforeFocusCallback=null}var o=this;V.default.real().ios||V.default.real().android?i():(o._beforeFocusCallback&&o._beforeFocusCallback(),clearTimeout(o._inputFocusTimeoutID),n&&(o._beforeFocusCallback=t),o._inputFocusTimeoutID=setTimeout(i))},_focusEditingCell:function(e,t,n){var i=this,o=i.getView("rowsView");t=t||o&&o._getCellElement(i._getVisibleEditRowIndex(),i._editColumnIndex),i._delayedInputFocus(t,e,n)},removeRow:function(e){return M.default.log("W0002","dxDataGrid","removeRow","15.2","Use the 'deleteRow' method instead"),this.deleteRow(e)},deleteRow:function(e){var t,n,i=this,o=i.option("editing"),a=o&&o.texts,r=a&&a.confirmDeleteTitle,s=o&&o.mode===Ce,l=a&&a.confirmDeleteMessage,u=i._dataController,c=i._getVisibleEditRowIndex(),d=u.items()[e],h=d&&d.key,p=s||!this.isEditing();d&&p&&(t=function(t){i.refresh();var n=(0,C.getIndexByKey)(t,i._editData);n>=0?i._editData[n].type===De?i._removeEditDataItem(n):i._addEditData({key:t,type:Ae}):i._addEditData({key:t,oldData:d.data,type:Ae}),s?u.updateItems({changeType:"update",rowIndices:[c,e]}):i.saveEditData()},s||!l?t(h):(n=f.default.isDefined(r)&&r.length>0,I.default.confirm(l,r,n).done(function(e){e&&t(h)})))},undeleteRow:function(e){var t=this,n=t._dataController,i=n.items()[e],o=t._getVisibleEditRowIndex(),a=i&&i.key;if(i){var r,s=(0,C.getIndexByKey)(a,t._editData);s>=0&&(r=t._editData[s],f.default.isEmptyObject(r.data)?t._removeEditDataItem(s):t._addEditData({key:a,type:Ee}),n.updateItems({changeType:"update",rowIndices:[o,e]}))}},_saveEditDataCore:function(e,t,n){function i(e,t,n){function i(e){return function(t){var n=t instanceof Error?t:new Error(t&&String(t)||"Unknown error");e.reject(n)}}var a=new N.Deferred;return o.executeAction(e,t),(0,N.when)((0,N.fromPromise)(t.cancel)).done(function(e){e?setTimeout(function(){a.resolve("cancel")}):n(t).done(a.resolve).fail(i(a))}).fail(i(a)),a}var o=this,a=o._dataController.store(),r=!0;return(0,g.each)(o._editData,function(s,l){var u,c,d,h=l.data,p=l.oldData,g=l.type;if(!o._beforeSaveEditData(l,s)){switch(g){case Ae:d={data:p,key:l.key,cancel:!1},u=i("onRowRemoving",d,function(){return a.remove(l.key).done(function(e){n.push({type:"remove",key:e})})});break;case De:d={data:h,cancel:!1},u=i("onRowInserting",d,function(){return a.insert(d.data).done(function(e,t){f.default.isDefined(t)&&(l.key=t),e&&f.default.isObject(e)&&e!==d.data&&(l.data=e),n.push({type:"insert",data:e,index:0})})});break;case Ee:d={newData:h,oldData:p,key:l.key,cancel:!1},u=i("onRowUpdating",d,function(){return a.update(l.key,d.newData).done(function(e,t){e&&f.default.isObject(e)&&e!==d.newData&&(l.data=e),n.push({type:"update",key:t,data:e})})})}u&&(c=new N.Deferred,u.always(function(e){r="cancel"!==e,t.push({key:l.key,result:e})}).always(c.resolve),e.push(c.promise()))}}),r},_processSaveEditDataResult:function(e){var t,n,i,o,a,r,s,l=this,u=l._dataController,c=!1,d=Ge(l);for(t=0;t<e.length;t++)if(n=e[t].result,i="cancel"===n,a=(0,C.getIndexByKey)(e[t].key,l._editData),o=l._editData[a],r=n&&n instanceof Error){if(o&&(o.error=n),s=l.getPopupContent(),u.dataErrorOccurred.fire(n,s),d!==Ce){o&&o.type===Ae&&l._removeEditDataItem(a);break}}else i&&o&&(d===Ce||o.type!==Ae)||(l._removeEditDataItem(a),c=!i);return c},_fireSaveEditDataEvents:function(e){var t=this;(0,g.each)(e,function(e,n){var i=n.data,o=n.key,a=n.type,r={key:o,data:i};switch(n.error&&(r.error=n.error),a){case Ae:t.executeAction("onRowRemoved",(0,_.extend)({},r,{data:n.oldData}));break;case De:t.executeAction("onRowInserted",r);break;case Ee:t.executeAction("onRowUpdated",r)}})},saveEditData:function(){var e,t=this,n=[],i=[],o=[],r=t._dataController,s=r.dataSource(),l=Ge(t),u=new N.Deferred,c=function(e){l!==Se&&(e._editColumnIndex=-1,e._editRowIndex=-1)};return t._beforeSaveEditData()||t._saving?(t._afterSaveEditData(),
51u.resolve().promise()):(e=t._editData.slice(0),t._saveEditDataCore(i,n,o)||l!==Se||t._focusEditingCell(),i.length?(t._saving=!0,s&&s.beginLoading(),N.when.apply(a.default,i).done(function(){if(t._processSaveEditDataResult(n)){c(t),l===Te&&t._editPopup&&t._editPopup.hide(),s&&s.endLoading();var i=t.option("editing.refreshMode"),a="reshape"!==i&&"repaint"!==i;a||r.push(o),(0,N.when)(r.refresh({selection:a,reload:a,load:"reshape"===i,changesOnly:t.option("repaintChangesOnly")})).always(function(){t._fireSaveEditDataEvents(e),t._afterSaveEditData()}).done(function(){u.resolve()}).fail(function(e){u.resolve(e)})}else s&&s.endLoading(),u.resolve()}).fail(function(e){s&&s.endLoading(),u.resolve(e)}),u.always(function(){t._focusEditingCell(),t._saving=!1}).promise()):(je(t)?t.hasChanges()||t.cancelEditData():Re.indexOf(l)!==-1?(c(t),r.updateItems()):t._focusEditingCell(),t._afterSaveEditData(),u.resolve().promise()))},isSaving:function(){return this._saving},_updateEditColumn:function(){var e=this,t=e._isEditColumnVisible(),n=e.option("editing.useIcons"),i=se+(n?" "+le:"");e._columnsController.addCommandColumn({type:"buttons",command:"edit",visible:t,cssClass:i,width:"auto",alignment:"center",cellTemplate:e._getEditCommandCellTemplate(),fixedPosition:"right"}),e._columnsController.columnOption("command:edit",{visible:t,cssClass:i})},_isEditColumnVisible:function(){var e=this,t=e.option("editing");if(t){var n=Ge(e),i=!1;switch(n){case ke:i=t.allowUpdating||t.allowAdding;break;case Ie:case Te:i=t.allowUpdating}return t.allowDeleting||i}},_updateEditButtons:function(){var e=this,t=e.getView("headerPanel"),n=e.hasChanges();t&&(t.setToolbarItemDisabled("saveButton",!n),t.setToolbarItemDisabled("revertButton",!n))},_applyModified:function(e){e&&e.addClass(_e)},_beforeCloseEditCellInBatchMode:function(){},cancelEditData:function(){var e=this,t=Ge(e),n=this._getVisibleEditRowIndex(),i=e._dataController;e._beforeCancelEditData(),e.init(),Me.indexOf(t)!==-1&&n>=0?i.updateItems({changeType:"update",rowIndices:[n,n+1]}):i.updateItems({repaintChangesOnly:e.option("repaintChangesOnly")}),t===Te&&e._hideEditPopup()},_hideEditPopup:function(){this._editPopup&&this._editPopup.option("visible",!1)},hasEditData:function(){return this.hasChanges()},closeEditCell:function(e){var t=this,n=Ge(t),i=t._getVisibleEditRowIndex(),o=t._dataController,a=$.default.when();return je(t)||(a=$.default.Deferred(),setTimeout(function(){if(n===Se&&t.hasChanges())t.saveEditData().done(function(e){t.hasChanges()||t.closeEditCell(!!e)});else if(i>=0){var r=[i];t._editRowIndex=-1,t._editColumnIndex=-1,t._beforeCloseEditCellInBatchMode(r),e||o.updateItems({changeType:"update",rowIndices:r})}a.resolve()})),a.promise()},update:function(e){var t=this,n=t._dataController;n&&t._pageIndex!==n.pageIndex()&&("refresh"===e&&t.refresh(),t._pageIndex=n.pageIndex()),t._updateEditButtons()},_getRowIndicesForCascadeUpdating:function(e,t){return t?[]:[e.rowIndex]},_prepareEditDataParams:function(e,t,n){var i=this,o={},r=e.data,s=e.key,l=(0,a.default)(e.cellElement),u=Ge(i);return void 0!==s&&(u===Ce&&i._applyModified(l,e),e.value=t,e.column.setCellValue(o,t,(0,_.extend)(!0,{},r),n),n&&e.column.displayValueMap&&(e.column.displayValueMap[t]=n),e.values&&(e.values[e.columnIndex]=t)),{data:o,key:s,oldData:r,type:Ee}},updateFieldValue:function(e,t,n,i){var o=this,a=e.key;if(void 0===a&&o._dataController.fireError("E1043"),e.column.setCellValue){var r=this._prepareEditDataParams(e,t,n);return this._applyEditDataParams(e,r,i)}},_focusPreviousEditingCellIfNeed:function(e){var t=this;if(t.hasEditData()&&!t.isEditCell(e.rowIndex,e.columnIndex))return t._focusEditingCell(),t._updateEditRow(e.row,!0),!0},_applyEditDataParams:function(e,t,n){var i=this,o=Ge(i),a=e.column.setCellValue!==e.column.defaultSetCellValue,r=e.column.showEditorAlways,s=o===Se&&e.row&&!e.row.inserted,l=r&&!n&&s&&i.hasEditData()&&!i.isEditCell(e.rowIndex,e.columnIndex);if(l)return i._focusEditingCell(),void i._updateEditRow(e.row,!0);if(i._addEditData(t,e.row),i._updateEditButtons(),r&&!n){if(s)return i._editRowIndex=e.rowIndex+i._dataController.getRowIndexOffset(),i._editColumnIndex=e.columnIndex,i.saveEditData();if(o===Ce){var u=i._columnsController.getVisibleColumns();n=a||u.some(function(e){return e.calculateCellValue!==e.defaultCalculateCellValue})}}e.row&&(n||a)&&i._updateEditRow(e.row,n)},_updateEditRowCore:function(e,t){var n=this,i=n._editForm,o=Ge(n);o===Te?n.option("repaintChangesOnly")?e.update&&e.update(e):i&&i.repaint():n._dataController.updateItems({changeType:"update",rowIndices:n._getRowIndicesForCascadeUpdating(e,t)})},_updateEditRow:function(e,t){var n=this;t||!je(n)?(n._updateEditRowCore(e,!t),t||n._focusEditingCell()):setTimeout(function(){var t=(0,a.default)(s.default.getActiveElement()),i=n._rowsView.getCellIndex(t,e.rowIndex),o=t.get(0),r=(0,C.getSelectionRange)(o);if(n._updateEditRowCore(e),i>=0){var l=n._rowsView._getCellElement(e.rowIndex,i);n._delayedInputFocus(l,function(){setTimeout(function(){o=s.default.getActiveElement(),r.selectionStart>=0&&(0,C.setSelectionRange)(o,r)})})}})},_addEditData:function(e,t){var n=this,i=(0,C.getIndexByKey)(e.key,n._editData);return i<0&&(i=n._editData.length,n._editData.push(e)),n._editData[i]&&(e.data&&(n._editData[i].data=(0,C.createObjectWithChanges)(n._editData[i].data,e.data)),n._editData[i].type&&e.data||!e.type||(n._editData[i].type=e.type),t&&(t.oldData=n._editData[i].oldData,t.data=(0,C.createObjectWithChanges)(t.data,e.data))),i},_getFormEditItemTemplate:function(t,n){return n.editCellTemplate||e(this)},renderFormEditTemplate:function(e,t,n,i,r){var s=this,u=(0,a.default)(i),c=t.column,d=o(t),h=e.row&&e.row.data,p=(0,_.extend)({},e,{data:h,cellElement:null,isOnForm:!0,item:t,value:c.calculateCellValue(h),column:(0,_.extend)({},c,{editorType:d,editorOptions:t.editorOptions}),id:n.getItemID(t.name||t.dataField),columnIndex:c.index,setValue:!r&&c.allowEditing&&function(e){s.updateFieldValue(p,e)}}),f=s._getFormEditItemTemplate.bind(s)(p,c);s._rowsView.renderTemplate(u,f,p,!!u.closest((0,l.getWindow)().document).length)&&s._rowsView._updateCell(u,p)},getFormEditorTemplate:function(e,t){var n=this,i=this.component.columnOption(t.dataField);return function(o,r){var s=(0,_.extend)({},e),l=(0,a.default)(r);s.column=i,s.row.watch&&s.row.watch(function(){return s.column.selector(s.row.data)},function(i){s.value=i,l.contents().remove(),n.renderFormEditTemplate.bind(n)(e,t,o.component,l)}),n.renderFormEditTemplate.bind(n)(e,t,o.component,l)}},getEditFormTemplate:function(){var e=this;return function(t,n,i){var o=e.option("editing.form"),s=e.option("editing.form.items"),l=e.option("editing.form.customizeItem"),u=e._editData[(0,C.getIndexByKey)(n.key,e._editData)],c=e.addWidgetPrefix(X),d={};if(s)r(s,function(e){var t=e&&(e.name||e.dataField);t&&(d[t]=!!e.editorType)});else{var p=e.getController("columns").getColumns();s=[],(0,g.each)(p,function(e,t){t.isBand||t.type||s.push({column:t,name:t.name,dataField:t.dataField})})}if(e._firstFormItem=void 0,e._editForm=e._createComponent((0,a.default)("<div>").appendTo(t),L.default,(0,_.extend)({},o,{items:s,formID:"dx-"+new h.default,validationGroup:u,customizeItem:function(t){var i,o=t.name||t.dataField;if((t.column||o)&&(i=t.column||e._columnsController.columnOption(t.name?"name:"+t.name:"dataField:"+t.dataField)),i){t.label=t.label||{},t.label.text=t.label.text||i.caption,t.template=t.template||e.getFormEditorTemplate(n,t),t.column=i,t.isCustomEditorType=d[o],i.formItem&&(0,_.extend)(t,i.formItem),void 0===t.isRequired&&i.validationRules&&(t.isRequired=i.validationRules.some(function(e){return"required"===e.type}),t.validationRules=[]);var a=!f.default.isDefined(t.visible)||t.visible;!e._firstFormItem&&a&&(e._firstFormItem=t)}l&&l.call(this,t),t.cssClass=f.default.isString(t.cssClass)?t.cssClass+" "+c:c}})),!i){var m=(0,a.default)("<div>").addClass(e.addWidgetPrefix(ee)).appendTo(t);e._createComponent((0,a.default)("<div>").appendTo(m),A.default,e._getSaveButtonConfig()),e._createComponent((0,a.default)("<div>").appendTo(m),A.default,e._getCancelButtonConfig())}e._editForm.on("contentReady",function(){e._editPopup&&e._editPopup.repaint()})}},getColumnTemplate:function(t){var n,i,o,a=this,r=t.column,s=t.row&&t.row.rowIndex,l=je(a),u=a.isEditRow(s),c=a.isEditCell(s,t.columnIndex);return!(r.showEditorAlways||r.setCellValue&&(u&&r.allowEditing||c))||"data"!==t.rowType&&"detailAdaptive"!==t.rowType||r.command?"detail"===r.command&&"detail"===t.rowType&&u&&(n=a.getEditFormTemplate(t)):(i=a.allowUpdating(t),((i||u)&&r.allowEditing||c)&&(l&&u||!l)&&(r.showEditorAlways&&!l&&(o={cancel:!1,key:t.row.inserted?void 0:t.row.key,data:t.row.data,column:r},a._isEditingStart(o)),o&&o.cancel||(t.setValue=function(e,n){a.updateFieldValue(t,e,n)})),n=r.editCellTemplate||e(a)),n},_createButton:function(e,t,n){var i,o=this,r=ze[t.name],s=o.option("editing.useIcons"),l=(0,a.default)("<a>").attr("href","#").addClass(ne).addClass(t.cssClass);if(t.template)o._rowsView.renderTemplate(e,t.template,n,!0);else{if(s&&r||t.icon){r=t.icon||r,i=q.default.getImageSourceType(r),"image"===i?l=q.default.getImageContainer(r):l.addClass("dx-icon"+("dxIcon"===i?"-":" ")+r).attr("title",t.text),e.addClass(le);var u=this.getButtonLocalizationNames()[t.name];u&&l.attr("aria-label",D.default.format(u))}else l.text(t.text);f.default.isDefined(t.hint)&&l.attr("title",t.hint),c.default.on(l,(0,k.addNamespace)("click",ve),o.createAction(function(e){t.onClick.call(t,(0,_.extend)({},e,{row:n.row,column:n.column})),e.event.preventDefault()})),n.rtlEnabled?e.prepend(l,"&nbsp;"):e.append(l,"&nbsp;")}},getButtonLocalizationNames:function(){return{edit:"dxDataGrid-editingEditRow",save:"dxDataGrid-editingSaveRowChanges","delete":"dxDataGrid-editingDeleteRow",undelete:"dxDataGrid-editingUndeleteRow",cancel:"dxDataGrid-editingCancelRowChanges"}},prepareEditButtons:function(e){var t=this,n=t.option("editing")||{},i=t.option("editing.texts")||{},o={revert:i.cancelAllChanges,save:i.saveAllChanges,addRow:i.addRow},r={revert:"cancel",save:"save",addRow:"addrow"},s=[],l=function(n,i,s){var l=r[n],u=function(n){(0,a.default)(n.element).addClass(e._getToolbarButtonClass(re+" "+t.addWidgetPrefix(l)+"-button"))},c=o[n],d=("save"===l||"cancel"===l)&&!t.hasChanges();return{widget:"dxButton",options:{onInitialized:u,icon:"edit-button-"+l,disabled:d,onClick:function(){setTimeout(function(){t[i]()})},text:c,hint:c},showText:"inMenu",name:n+"Button",location:"after",locateInMenu:"auto",sortIndex:s}};return n.allowAdding&&s.push(l("addRow","addRow",20)),(n.allowUpdating||n.allowAdding||n.allowDeleting)&&Ge(t)===Ce&&(s.push(l("save","saveEditData",21)),s.push(l("revert","cancelEditData",22))),s},showHighlighting:function(e){var t=e.find("."+me);"TD"!==e.get(0).tagName||t.length||e.wrapInner((0,a.default)("<div>").addClass(me+" "+Oe))},resetRowAndPageIndices:function(e){var t=this;(0,g.each)(t._editData,function(n,i){(i.pageIndex!==t._pageIndex||e)&&(delete i.pageIndex,delete i.rowIndex)})},_afterInsertRow:function(){},_beforeSaveEditData:function(e){if(e&&!f.default.isDefined(e.key)&&f.default.isDefined(e.type))return!0},_afterSaveEditData:function(){},_beforeCancelEditData:function(){},_allowEditAction:function(e,t){var n=this.option("editing."+e);return f.default.isFunction(n)&&(n=n({component:this.component,row:t.row})),n},allowUpdating:function(e,t){var n=this.option("editing.startEditAction")||Be,i=!(arguments.length>1)||n===t;return i&&this._allowEditAction("allowUpdating",e)},allowDeleting:function(e){return this._allowEditAction("allowDeleting",e)}}}());e.exports={defaultOptions:function(){return{editing:{mode:"row",refreshMode:"full",allowAdding:!1,allowUpdating:!1,allowDeleting:!1,useIcons:!1,selectTextOnEditStart:!1,texts:{editRow:D.default.format("dxDataGrid-editingEditRow"),saveAllChanges:D.default.format("dxDataGrid-editingSaveAllChanges"),saveRowChanges:D.default.format("dxDataGrid-editingSaveRowChanges"),cancelAllChanges:D.default.format("dxDataGrid-editingCancelAllChanges"),cancelRowChanges:D.default.format("dxDataGrid-editingCancelRowChanges"),addRow:D.default.format("dxDataGrid-editingAddRow"),deleteRow:D.default.format("dxDataGrid-editingDeleteRow"),undeleteRow:D.default.format("dxDataGrid-editingUndeleteRow"),confirmDeleteMessage:D.default.format("dxDataGrid-editingConfirmDeleteMessage"),confirmDeleteTitle:""},form:{colCount:2},popup:{},startEditAction:"click"}}},controllers:{editing:Ke},extenders:{controllers:{data:{init:function(){this._editingController=this.getController("editing"),this.callBase()},reload:function(e,t){var n,i=this.getController("editing");return!t&&this._editingController.refresh(),n=this.callBase.apply(this,arguments),n&&n.done(function(){i.resetRowAndPageIndices(!0)})},repaintRows:function(){if(!this.getController("editing").isSaving())return this.callBase.apply(this,arguments)},_updateEditRow:function(e){var t=this._editingController,n=t.getEditRowIndex(),i=e[n];i&&(i.isEditing=!0,t.getEditMode()===Ie&&(i.rowType="detail"))},_updateItemsCore:function(e){this.callBase(e),this._updateEditRow(this.items())},_applyChangeUpdate:function(e){this._updateEditRow(e.items),this.callBase(e)},_applyChangesOnly:function(e){this._updateEditRow(e.items),this.callBase(e)},_processItems:function(e,t){return e=this._editingController.processItems(e,t),this.callBase(e,t)},_processDataItem:function(e,t){return this._editingController.processDataItem(e,t,this.generateDataValues),this.callBase(e,t)},_processItem:function(e,t){return e=this.callBase(e,t),e.inserted&&(t.dataIndex--,delete e.dataIndex),e},_correctRowIndices:function(e){this.callBase.apply(this,arguments),this._editingController.correctEditRowIndex(e)},_getChangedColumnIndices:function(e,t,n,i){var o=this.getController("editing"),a=o.isRowEditMode();if(!(e.inserted!==t.inserted||e.removed!==t.removed||a&&e.isEditing!==t.isEditing))return e.rowType===t.rowType&&a&&o.isEditRow(n)&&i?[]:this.callBase.apply(this,arguments)},_isCellChanged:function(e,t,n,i,o){var a=this.getController("editing"),r=e.cells&&e.cells[i],s=a&&a.isEditCell(n,i);return(!o||!s)&&(!(!r||r.isEditing===s)||this.callBase.apply(this,arguments))}}},views:{rowsView:{init:function(){this.callBase(),this._editingController=this.getController("editing")},getCellElements:function(e){var t=this.callBase(e),n=this._editingController,i=n.getEditForm(),o=n.getEditFormRowIndex();return o===e&&t&&i?i.$element().find("."+this.addWidgetPrefix(X)+", ."+ce):t},getCellIndex:function(e,t){if(!e.is("td")&&t>=0){var n=this.getCellElements(t),i=-1;return(0,g.each)(n,function(t,n){(0,a.default)(n).find(e).length&&(i=t)}),i}return this.callBase.apply(this,arguments)},_getVisibleColumnIndex:function(e,t,n){var i,o=this._editingController.getEditFormRowIndex();return o===t&&f.default.isString(n)?(i=this._columnsController.columnOption(n),this._getEditFormEditorVisibleIndex(e,i)):this.callBase.apply(this,arguments)},_getEditFormEditorVisibleIndex:function(e,t){var n,i=-1;return(0,g.each)(e,function(e,o){if(n=(0,a.default)(o).find(".dx-field-item-content").data("dx-form-item"),n&&n.column&&t&&n.column.index===t.index)return i=e,!1}),i},publicMethods:function(){return this.callBase().concat(["cellValue"])},_getCellTemplate:function(e){var t=this,n=t._editingController.getColumnTemplate(e);return n||t.callBase(e)},_isNativeClick:function(){return(V.default.real().ios||V.default.real().android)&&this.option("editing.allowUpdating")},_createTable:function(){var e=this,t=e.callBase.apply(e,arguments);return!je(e)&&e.option("editing.allowUpdating")&&c.default.on(t,(0,k.addNamespace)(z.default.name,"dxDataGridRowsView"),"td:not(."+ie+")",e.createAction(function(){var t=e._editingController;t.isEditing()&&t.closeEditCell()})),t},_createRow:function(e){var t,n,i,o,a,r=this.callBase(e);return e&&(t=this._editingController,n=t.isEditRow(e.rowIndex),i=!!e.removed,o=!!e.inserted,a=!!e.modified,Ge(this)===Ce?i&&r.addClass(pe):n&&r.addClass(ae),o&&r.addClass(fe),a&&r.addClass(ge),(n||o||i)&&r.removeClass(oe),n&&"detail"===e.rowType&&r.addClass(this.addWidgetPrefix(Y))),r},_getColumnIndexByElement:function(e){for(var t=e.closest("table"),n=this.getTableElements();t.length&&!n.filter(t).length;)e=t.closest("td"),t=e.closest("table");return this._getColumnIndexByElementCore(e)},_getColumnIndexByElementCore:function(e){var t=e.closest("."+he+"> td:not(.dx-master-detail-cell)");return this.getCellIndex(t)},_editCellByClick:function(e,t){var n=this,i=n._editingController,o=(0,a.default)(e.event.target),r=n._getColumnIndexByElement(o),s=n._dataController.items()[e.rowIndex],l=i.allowUpdating({row:s},t)||s&&s.inserted,u=n._columnsController.getVisibleColumns()[r],c=u&&(u.allowEditing||i.isEditCell(e.rowIndex,r)),d=n.option("editing.startEditAction")||"click";return"click"!==t||"dblClick"!==d||i.isEditCell(e.rowIndex,r)||i.closeEditCell(),t===d&&l&&c&&i.editCell(e.rowIndex,r)||i.isEditRow(e.rowIndex)},_rowClick:function(e){e.event[Le]=this.component,this._editCellByClick(e,"click")||this.callBase.apply(this,arguments)},_rowDblClick:function(e){this._editCellByClick(e,"dblClick")||this.callBase.apply(this,arguments)},_cellPrepared:function(e,t){var n=t.columnIndex,i=this._editingController,o=!!t.column.command,a=t.setValue,r=t.isEditing||i.isEditRow(t.rowIndex)&&t.column.allowEditing;if("data"===t.rowType&&!t.column.command&&(r||t.column.showEditorAlways)){var s=t.column.alignment;e.addClass(ie).toggleClass(this.addWidgetPrefix(Q),!a).toggleClass(xe,!a),s&&e.find(be).first().css("textAlign",s)}r&&this._editCellPrepared(e);var l=t.row&&(t.row.inserted?t.row.values:t.row.modifiedValues);l&&void 0!==l[n]&&t.column&&!o&&t.column.setCellValue?(i.showHighlighting(e),e.addClass(_e)):a&&i.showHighlighting(e,!0),this.callBase.apply(this,arguments)},_editCellPrepared:function(e){},_formItemPrepared:function(){},_isFormItem:function(e){var t="detail"===e.rowType||"detailAdaptive"===e.rowType,n="data"===e.rowType&&"popup"===Ge(this);return(t||n)&&e.item},_updateCell:function(e,t){this._isFormItem(t)?this._formItemPrepared(t,e):this.callBase(e,t)},_update:function(e){this.callBase(e),"updateSelection"===e.changeType&&this.getTableElements().children("tbody").children("."+ae).removeClass(oe)},_getCellOptions:function(e){var t=this.callBase(e);return t.isEditing=this._editingController.isEditCell(t.rowIndex,t.columnIndex),t},_renderCellContent:function(e,t){"data"===t.rowType&&Ge(this)===Te&&t.row.visible===!1||this.callBase.apply(this,arguments)},cellValue:function(e,t,n,i){var o=this.getCellOptions(e,t);if(o){if(void 0===n)return o.value;this._editingController.updateFieldValue(o,n,i,!0)}}},headerPanel:{_getToolbarItems:function(){var e=this.callBase(),t=this.getController("editing").prepareEditButtons(this);return t.concat(e)},optionChanged:function(e){switch(e.name){case"editing":this._invalidate(),this.callBase(e);break;default:this.callBase(e)}},isVisible:function(){var e=this,t=e.getController("editing").option("editing");return e.callBase()||t&&(t.allowAdding||(t.allowUpdating||t.allowDeleting)&&t.mode===Ce)}}}}}},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(39),u=i(l),c=n(36),d=n(4),h=n(3),p=n(1),f=n(0),g=n(64),_=n(14),m=i(_),v=n(34),y=i(v),x=n(24),b=i(x),w=n(99),C=i(w),k=n(197),S=i(k),I=n(164),T=i(I),D=n(60),E=i(D),A=n(31),O=i(A),B=n(17),P=i(B),M="invalid",R="revert-tooltip",V="rowsview",F="dx-invalid-message",L="invalid-message",H="dx-invalid-message-always",z="dx-revert-button",N="dx-highlight-outline",$="validator",W="__DX_INSERT_INDEX__",G=2,j="row",q="form",K="batch",U="cell",Y="popup",X="dx-group-cell",Z=[Y,q],Q="transparent",J=u.default.Controller.inherit(function(){return{init:function(){this._editingController=this.getController("editing"),this.createAction("onRowValidating")},_rowValidating:function(e,t){var n=this,i=t?t.brokenRules||t.brokenRule&&[t.brokenRule]:[],o=t?t.isValid:e.isValid,a={brokenRules:i,isValid:o,key:e.key,newData:e.data,oldData:e.oldData,errorText:this.getHiddenValidatorsErrorText(i)};return n.executeAction("onRowValidating",a),e.isValid=a.isValid,e.errorText=a.errorText,a},getHiddenValidatorsErrorText:function(e){var t=[];return(0,h.each)(e,function(e,n){n.validator.$element().parent().length||t.push(n.message)}),t.join(", ")},validate:function(e){var t=this,n=!0,i=t._editingController;return e=e||i.getEditMode()===j,!t._isValidationInProgress&&(t._isValidationInProgress=!0,e?(0,h.each)(i._editData,function(e,o){var a;o.type&&"remove"!==o.type&&(a=t.validateGroup(o),a.isValid||(0,h.each)(a.brokenRules,function(){var e=this.validator.option("adapter").getValue();void 0===e&&(e=null),this.column&&i.updateFieldValue({key:o.key,column:this.column},e,null,!0)}),n=n&&a.isValid)}):t._currentCellValidator&&(n=t.validateGroup(t._currentCellValidator._findGroup()).isValid),t._isValidationInProgress=!1,n)},validateGroup:function e(t){var n,i=this,e=C.default.getGroupConfig(t);return e&&e.validators.length&&(n=C.default.validateGroup(t)),i._rowValidating(t,n)},updateEditData:function(e){var t=this._editingController.getEditMode();Z.indexOf(t)===-1?(this.setDisableApplyValidationResults(!0),e.isValid=!C.default.getGroupConfig(e)||C.default.validateGroup(e).isValid,this.setDisableApplyValidationResults(!1)):e.isValid=!0},setValidator:function(e){this._currentCellValidator=e},getValidator:function(){return this._currentCellValidator},createValidator:function(e,t){var n,i,o,r,l=this,u=l._editingController,d=e.column,h=function(e){if(e.brokenRule&&(e.brokenRule.columnIndex=d.index,e.brokenRule.column=d),t&&!l.getDisableApplyValidationResults()){if(!e.isValid){var n=t.find(":focus");u.showHighlighting(t,!0),(0,g.focused)(n)||(s.default.trigger(n,"focus"),s.default.trigger(n,b.default.down))}t.toggleClass(l.addWidgetPrefix(M),!e.isValid)}},_=function(){var t=d.calculateCellValue(n.data||{});return void 0!==t?t:e.value},m=d.showEditorAlways;if(d.validationRules&&Array.isArray(d.validationRules)&&d.validationRules.length&&!(0,p.isDefined)(d.command)&&(i=u.getIndexByKey(e.key,u._editData),i<0&&(m||(r=l.getController("columns"),o=r&&r.getVisibleColumns()||[],m=o.some(function(e){return e.showEditorAlways})),m&&(i=u._addEditData({key:e.key,oldData:e.data}))),i>=0)){if(t&&!t.length)return void P.default.log("E1050");n=u._editData[i];var v=t&&t.hasClass("dx-widget");t&&t.addClass(l.addWidgetPrefix($));var y=new S.default(t||(0,a.default)("<div>"),{name:d.caption,validationRules:(0,f.extend)(!0,[],d.validationRules),validationGroup:n,adapter:v?null:{getValue:_,applyValidationResults:h},dataGetter:function(){return(0,c.createObjectWithChanges)(n.oldData,n.data)}});if(v){var x=y.option("adapter");x&&(x.getValue=_)}return y}},setDisableApplyValidationResults:function(e){this._disableApplyValidationResults=e},getDisableApplyValidationResults:function(){return this._disableApplyValidationResults}}}());e.exports={defaultOptions:function(){return{editing:{texts:{validationCancelChanges:m.default.format("dxDataGrid-validationCancelChanges")}}}},controllers:{validating:J},extenders:{controllers:{editing:{_addEditData:function(e,t){var n,i=this,o=i.getController("validating"),a=i.callBase(e,t);return a>=0&&(n=i._editData[a],o.updateEditData(n)),a},_updateRowAndPageIndices:function(){var e=this,t=e.getView("rowsView").getTopVisibleItemIndex(),n=t;(0,h.each)(e._editData,function(i,o){o.isValid||o.pageIndex===e._pageIndex||(o.pageIndex=e._pageIndex,"insert"===o.type?o.rowIndex=t:o.rowIndex=n,n++)})},_needInsertItem:function(e){var t=this.callBase.apply(this,arguments);return t&&!e.isValid&&(t=e.key.pageIndex===this._pageIndex),t},processItems:function(e,t){var n,i,o=this,a=o._editData,r=o.getController("data"),s=function(e,t){var n=-1,i="insert"===e.type,o=e.key;return(0,h.each)(t,function(e,t){if((0,d.equalByValue)(o,i?t:r.keyOf(t)))return n=e,!1}),n},l=function(t){var n,o={key:t.key},a=s(t,e);a>=0||(t.rowIndex=t.rowIndex>i?t.rowIndex%i:t.rowIndex,n=t.rowIndex,o[W]=1,e.splice(n,0,o))};if(e=o.callBase(e,t),i=e.length,o.getEditMode()===K&&"prepend"!==t&&"append"!==t)for(n=0;n<a.length;n++)a[n].type&&a[n].pageIndex===o._pageIndex&&a[n].key.pageIndex!==o._pageIndex&&l(a[n]);return e},processDataItem:function(e){var t,n,i=this,o=e.data[W],a=o?e.data.key:e.key,r=i.getEditMode();r===K&&o&&a&&(t=(0,c.getIndexByKey)(a,i._editData),t>=0&&(n=i._editData[t],"insert"!==n.type&&(e.data=(0,f.extend)(!0,{},n.oldData,n.data),e.key=a))),i.callBase.apply(i,arguments)},_createInvisibleColumnValidators:function(e){var t=this.getController("validating"),n=(0,d.grep)(this.getController("columns").getInvisibleColumns(),function(e){return!e.isBand}),i=[];return Z.indexOf(this.getEditMode())===-1&&(0,h.each)(n,function(n,o){e.forEach(function(e){var n;if("insert"===e.type?n=e.data:"update"===e.type&&(n=(0,c.createObjectWithChanges)(e.oldData,e.data)),n){var a=t.createValidator({column:o,key:e.key,value:o.calculateCellValue(n)});a&&i.push(a)}})}),function(){i.forEach(function(e){e._dispose()})}},_beforeSaveEditData:function(e,t){var n,i,o=this,a=o.callBase.apply(o,arguments),r=o.getController("validating");if(e)n="remove"===e.type||e.isValid,a=a||!n;else{var s=o._createInvisibleColumnValidators(this._editData);switch(i=r.validate(!0),s(),o._updateRowAndPageIndices(),o.getEditMode()){case U:i||(o._focusEditingCell(),a=!0);break;case K:i||(o._editRowIndex=-1,o._editColumnIndex=-1,o.getController("data").updateItems(),a=!0);break;case j:case Y:a=!i}}return a},_beforeEditCell:function(e,t,n){var i=this.callBase(e,t,n),o=this._rowsView._getCellElement(e,t),a=o&&o.data("dxValidator"),r=a&&a.option("adapter").getValue();if(this.getEditMode(this)===U&&(!a||void 0!==r&&a.validate().isValid))return i},_afterSaveEditData:function(){var e,t=this;if((0,h.each)(t._editData,function(n,i){var o=t._showErrorRow(i);e=e||o}),e){var n=this._rowsView.getScrollable();n&&(n.update(),n.scrollToElement(e))}},_showErrorRow:function(e){var t,n=this.getController("errorHandling"),i=this.getController("data").items(),o=this.getIndexByKey(e.key,i);if(!e.isValid&&e.errorText&&o>=0)return t=this.getPopupContent(),n&&n.renderErrorRow(e.errorText,o,t)},updateFieldValue:function(e){var t=this,n=t.getEditMode();if(t.callBase.apply(t,arguments),n===j||n===K&&e.column.showEditorAlways){var i=t.getController("validating").getValidator();i&&i.validate()}},showHighlighting:function(e,t){var n,i=!0;t||(n=e.data("dxValidator"),n&&(i=n.validate().isValid)),i&&this.callBase(e)},getEditDataByKey:function(e){return this._editData[(0,c.getIndexByKey)(e,this._editData)]}},editorFactory:function(){var e=function(e,t){var n=(0,a.default)(t).closest("tr").index(),i=(0,a.default)(e._rowsView.getRowElement(n)).first().children().filter(":not(.dx-hidden-cell)");return e._rowsView._getWidths(i).reduce(function(e,t){return e+t},0)},t=function(e){var t=void 0,n=void 0;return e.some(function(i,o){if(i.command===Q)return t=0===o?-1:o,n=o===e.length-1?-1:o+i.colspan-1,!0}),{startColumnIndex:t,endColumnIndex:n}};return{_showRevertButton:function(e,t){var n=this;if(t&&t.length){var i=(0,a.default)("<div>").addClass(this.addWidgetPrefix(R)).appendTo(e),o={animation:null,visible:!0,target:t,container:e,closeOnOutsideClick:!1,closeOnTargetScroll:!1,contentTemplate:function(){var e=(0,a.default)("<div>").addClass(z),t={icon:"revert",hint:n.option("editing.texts.validationCancelChanges"),onClick:function(){n._editingController.cancelEditData()}};return new y.default(e,t).$element()},position:{my:"left top",at:"right top",of:t,offset:"1 0",collision:"flip",boundary:this._rowsView.element()},onPositioned:this._positionedHandler.bind(this)};return new T.default(i,o)}},_hideFixedGroupCell:function(e,t){var n,i,o,r=this._rowsView.isFixedColumns(),s=this._editingController.isFormEditMode();r&&!s&&(n=e.closest(".dx-row").next().data("options"),n&&"group"===n.rowType&&(i=(0,a.default)(this._rowsView.getRowElement(n.rowIndex)).last(),o=i.find("."+X),o.length&&"hidden"!==o.get(0).style.visibility&&(o.css("visibility","hidden"),t.onDisposing=function(){o.css("visibility","")})))},_positionedHandler:function(e,t){if(!e.component.__skipPositionProcessing){var n=(0,a.default)(e.element).hasClass(this.addWidgetPrefix(R)),i=!n&&this._rowsView.updateFreeSpaceRowHeight(),o=this._normalizeValidationMessagePositionAndMaxWidth(e,n,t);e.component.__skipPositionProcessing=!(!i&&!o),o?e.component.option(o):i&&e.component.repaint()}},_showValidationMessage:function(e,t,n,i){var o=this,r=e.find("."+N),s=O.default.isMaterial(),l=r.length&&!s?r:e,u=e.find(".dx-dropdowneditor-overlay").data("dxPopup"),c=u&&u.option("visible"),d=c?"top right":"top "+n,h=c?"top left":"bottom "+n,p=(0,a.default)("<div>").addClass(F).addClass(H).addClass(this.addWidgetPrefix(L)).text(t).appendTo(e),f={target:l,container:e,shading:!1,width:"auto",height:"auto",visible:!0,animation:!1,propagateOutsideClick:!0,closeOnOutsideClick:!1,closeOnTargetScroll:!1,position:{collision:"flip",boundary:this._rowsView.element(),boundaryOffset:"0 0",my:d,at:h},onPositioned:function(t){o._positionedHandler(t,c),o._shiftValidationMessageIfNeed(t.component.$content(),i&&i.$content(),e)}};this._hideFixedGroupCell(e,f),new E.default(p,f)},_normalizeValidationMessagePositionAndMaxWidth:function(n,i,o){var r=this._columnsController.getFixedColumns();if(r&&r.length){var s=void 0,l=!i&&e(this,n.element),u=i?n.component.overlayContent():n.component.$content(),c=u.outerWidth(!0),d=!i&&c>l,h=this._rowsView.getCellIndex((0,a.default)(n.element).closest("td")),p=t(r);return i||h!==p.startColumnIndex&&!d?h===p.endColumnIndex&&(s={collision:"none flip",my:"top right",at:i||o?"top left":"bottom right"},i&&(s.offset="-1 0")):s={collision:"none flip",my:"top left",at:o?"top right":"bottom left"},s&&{position:s,maxWidth:d?l-2:void 0}}},_shiftValidationMessageIfNeed:function(e,t,n){if(t){var i=e.offset(),o=t.offset();if(i.top===o.top&&i.left+e.width()>o.left){var a=t.width()+G;e.css("left",o.left<n.offset().left?-a:a)}}},_getTooltipsSelector:function(){var e=this.addWidgetPrefix(L),t=this.addWidgetPrefix(R);return".dx-editor-cell ."+t+", .dx-editor-cell ."+e+", .dx-cell-modified ."+e},init:function(){this.callBase(),this._editingController=this.getController("editing"),this._columnsController=this.getController("columns"),this._rowsView=this.getView("rowsView")},loseFocus:function(e){e||this.getController("validating").setValidator(null),this.callBase()},focus:function(e,t){var n,i,o=this,a=e&&e.closest(o._getFocusCellSelector()),r=a&&(a.data("dxValidator")||e.find("."+o.addWidgetPrefix($)).eq(0).data("dxValidator")),s=a&&a.closest(".dx-row").data("options"),l=s?o.getController("editing").getEditDataByKey(s.key):null,u=a&&a.closest("."+o.addWidgetPrefix(V)).find(o._getTooltipsSelector()),c=a&&a.is("td")?a:null,d=!1,h=c&&o.getController("columns").getVisibleColumns()[c.index()];return arguments.length?(u&&u.remove(),r&&(o.getController("validating").setValidator(r),void 0!==r.option("adapter").getValue()&&(n=r.validate(),n.isValid||(t=!0,d=!0))),(n&&!n.isValid||l&&"update"===l.type&&!o._editingController.isSaving())&&o._editingController.getEditMode()===U&&(i=o._showRevertButton(a,c?a.find("."+N).first():a)),d&&c&&h&&n.brokenRule.message&&o._showValidationMessage(a,n.brokenRule.message,h.alignment||"left",i),!t&&o._rowsView.element()&&o._rowsView.updateFreeSpaceRowHeight(),o.callBase(e,t)):o.callBase()}}}()},views:{rowsView:{updateFreeSpaceRowHeight:function(e){var t,n,i,o=this,a=o.element(),r=a&&a.find("."+o.addWidgetPrefix(L)+" .dx-overlay-content");if(o.callBase(e),r&&r.length&&(t=o._getRowElements(),i=o._getFreeSpaceRowElements(e),n=i.first(),n&&1===t.length&&(!n.is(":visible")||r.outerHeight()>n.outerHeight())))return i.show(),i.height(r.outerHeight()),!0},_formItemPrepared:function(e,t){var n=this;this.callBase.apply(this,arguments),(0,d.deferUpdate)(function(){var i=t.find(".dx-widget").first(),o=i.length&&!i.children().length;o||n.getController("validating").createValidator(e,i)})},
52_cellPrepared:function(e,t){this.getController("editing").isFormEditMode()||this.getController("validating").createValidator(t,e),this.callBase.apply(this,arguments)}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(7),s=n(4),l=n(358),u=i(l),c=n(36),d=i(c),h=n(3),p=n(6),f=n(27),g=i(f),_=n(93),m=i(_),v="table",y="bottom-load-panel",x="table-content",b="group-space",w="content",C="dx-row",k="dx-freespace-row",S="dx-column-lines",I="dx-virtual-row",T="infinite",D="virtual",E="standard",A=25e4,O=function(e){return e.option("scrolling.mode")===D},B=function(e){return e.option("scrolling.mode")===T},P=function(e){var t=e.option("scrolling.rowRenderingMode");return t===D||t!==E&&void 0},M=function(e,t,n,i){for(var o=n?0:1,a=0;a<t+o;a++){var r=e[n?e.length-1-a:a];r&&!i(r,a===t)&&t++}return t},R=function(){var e=function(e){var t=e._virtualScrollController.beginPageIndex(-1);O(e)&&(t<0||e.viewportSize()>=0&&e.getViewportItemIndex()>=0&&(t*e.pageSize()>e.getViewportItemIndex()||t*e.pageSize()+e.itemsCount()<e.getViewportItemIndex()+e.viewportSize())&&e._dataSource.isLoading()?e._isLoading||(e._isLoading=!0,e.loadingChanged.fire(!0)):e._isLoading&&(e._isLoading=!1,e.loadingChanged.fire(!1)))},t={init:function(t){var n=this;n.callBase.apply(n,arguments),n._items=[],n._isLoaded=!0,n._virtualScrollController=new u.default.VirtualScrollController(n.component,{pageSize:function(){return n.pageSize()},totalItemsCount:function(){return n.totalItemsCount()},hasKnownLastPage:function(){return n.hasKnownLastPage()},pageIndex:function(e){return t.pageIndex(e)},isLoading:function(){return t.isLoading()&&!n.isCustomLoading()},pageCount:function(){return n.pageCount()},load:function(){return t.load()},updateLoading:function(){e(n)},itemsCount:function(){return n.itemsCount(!0)},items:function(){return t.items()},viewportItems:function(e){return e&&(n._items=e),n._items},onChanged:function(e){n.changed.fire(e)},changingDuration:function(e){return n._renderTime||0}})},_handleLoadingChanged:function(e){var t=this;O(t)||(t._isLoading=e,t.callBase.apply(t,arguments))},_handleLoadError:function(){var e=this;e._isLoading=!1,e.loadingChanged.fire(!1),e.callBase.apply(e,arguments)},_handleDataChanged:function(e){var t=this.callBase.bind(this);this._virtualScrollController.handleDataChanged(t,e)},_customizeRemoteOperations:function(e,t,n){var i=this;!i.option("legacyRendering")&&O(i)&&!n.reload&&!t&&n.skip&&i._renderTime<i.option("scrolling.renderingThreshold")&&(e.delay=void 0),i.callBase.apply(i,arguments)},items:function(){return this._items},itemsCount:function(e){return e?this.callBase():this._virtualScrollController.itemsCount()},load:function(e){return e?this.callBase(e):this._virtualScrollController.load()},isLoading:function(){return this._isLoading},isLoaded:function(){return this._dataSource.isLoaded()&&this._isLoaded},resetPagesCache:function(e){e||this._virtualScrollController.reset(),this.callBase.apply(this,arguments)},_changeRowExpandCore:function(){var t=this.callBase.apply(this,arguments);return this.resetPagesCache(),e(this),t},reload:function(){this._dataSource.pageIndex(this.pageIndex());var e=this._virtualScrollController;if(e){var t=new p.Deferred;return this.callBase.apply(this,arguments).done(function(n){var i=e._delayDeferred;i?i.done(t.resolve).fail(t.reject):t.resolve(n)}).fail(t.reject),t}return this.callBase.apply(this,arguments)},refresh:function(t,n,i){var o=this,a=t.storeLoadOptions,r=o._dataSource;return(n||i.reload)&&(o._virtualScrollController.reset(),r.items().length=0,o._isLoaded=!1,e(o),o._isLoaded=!0,B(o)?(o.pageIndex(0),r.pageIndex(0),a.pageIndex=0,t.pageIndex=0,a.skip=0):(r.pageIndex(o.pageIndex()),r.paginate()&&(t.pageIndex=o.pageIndex(),a.skip=o.pageIndex()*o.pageSize()))),o.callBase.apply(o,arguments)},dispose:function(){this._virtualScrollController.dispose(),this.callBase.apply(this,arguments)}};return["virtualItemsCount","getContentOffset","getVirtualContentSize","setContentSize","setViewportPosition","getViewportItemIndex","setViewportItemIndex","getItemIndexByPosition","viewportSize","viewportItemSize","getItemSize","getItemSizes","pageIndex","beginPageIndex","endPageIndex","loadIfNeed"].forEach(function(e){t[e]=function(){var t=this._virtualScrollController;return t[e].apply(t,arguments)}}),t}(),V=function(){var e=function(e,t){var n,i=e.parent("."+t);i.length&&(e=i),n=t===k?e.length-1:e.length;for(var o=0;o<n;o++)e.eq(o).remove()};return{init:function(){var e=this,t=e.getController("data");if(e.callBase(),t.pageChanged.add(function(){e.scrollToPage(t.pageIndex())}),!e.option("legacyRendering")&&t.pageIndex()>0){var n=function n(){e.resizeCompleted.remove(n),e.scrollToPage(t.pageIndex())};e.resizeCompleted.add(n)}},scrollToPage:function(e){var t,n=this,i=n._dataController,o=i?i.pageSize():0;if(O(n)||B(n)){var a=i.getItemSize(),r=i.getItemSizes(),s=e*o;t=s*a;for(var l in r)l<=s&&(t+=r[l]-a)}else t=0;n.scrollTo({y:t,x:n._scrollLeft})},renderDelayedTemplates:function(e){this._updateContentPosition(!0),this.callBase.apply(this,arguments)},_renderCore:function(e){var t=this,n=new Date;t.callBase.apply(t,arguments);var i=t._dataController._dataSource;if(i&&e){var o=e.items?e.items.length:20,a=t._dataController.viewportSize()||20;P(t)?i._renderTime=(new Date-n)*a/o:i._renderTime=new Date-n}},_getRowElements:function(e){var t=this.callBase(e);return t&&t.not("."+I)},_renderContent:function(e,t){var n=this,i=n._dataController.virtualItemsCount();return i&&n.option("legacyRendering")?((0,r.hasWindow)()&&t.addClass(n.addWidgetPrefix(x)),e.children().length?e.children().first().replaceWith(t):e.append(t),1===e.children("table").length&&(e.append(n._createTable()),n._contentHeight=0),e):n.callBase.apply(n,arguments)},_removeRowsElements:function(e,t,n){var i=this._getRowElements(e).toArray();i="append"===n?i.slice(0,t):i.slice(-t);var o=this.getController("errorHandling");i.map(function(e){var t=(0,a.default)(e);o&&o.removeErrorRow(t.next()),t.remove()})},_restoreErrorRow:function(e){var t=this.getController("editing");t&&t.hasChanges()&&this._getRowElements(e).each(function(e,n){var i=(0,a.default)(n).data("options");if(i){var o=t.getEditDataByKey(i.key);o&&t._showErrorRow(o)}})},_updateContent:function(t,n){var i,o,a=this,r=a._findContentElement(),s=n&&n.changeType;if("append"===s||"prepend"===s){i=r.children().first();var l=a._getBodies(t);a.option("legacyRendering")||1!==l.length?l["append"===s?"appendTo":"prependTo"](i):a._getBodies(i)["append"===s?"append":"prepend"](l.children()),t.remove(),o=a._getFreeSpaceRowElements(i),e(o,k),n.removeCount&&a._removeRowsElements(i,n.removeCount,s),a._restoreErrorRow(i)}else a.callBase.apply(a,arguments);a._updateBottomLoading()},_addVirtualRow:function(e,t,n,i){if(i){var o=this._createEmptyRow(I,t,i);o=this._wrapRowIfNeed(e,o),this._appendEmptyRow(e,o,n)}},_updateContentPosition:function(t){var n=this,i=n._dataController,o=n._rowHeight||20;if(i.viewportItemSize(o),n.option("legacyRendering")||!O(n)&&!P(n))(0,s.deferUpdate)(function(){n._updateContentPositionCore()});else{if(!t){var r=n._getRowElements(n._tableElement).toArray().map(function(e){return e.getBoundingClientRect().height});i.setContentSize(r)}var l=i.getContentOffset("begin"),u=i.getContentOffset("end"),c=n.getTableElements(),d=c.children("tbody").children("."+I);e(d,I),c.each(function(e){var t=e>0;n._isFixedTableRendering=t,n._addVirtualRow((0,a.default)(this),t,"top",l),n._addVirtualRow((0,a.default)(this),t,"bottom",u),n._isFixedTableRendering=!1}),!t&&n._updateScrollTopPosition(l)}},_updateScrollTopPosition:function(e){this._scrollTop<e&&!this._isScrollByEvent&&this._dataController.pageIndex()>0&&this.scrollTo({top:e,left:this._scrollLeft})},_updateContentPositionCore:function(){var e,t,n,i,o,a,r,l=this,u=l._rowHeight||20,c=l._dataController.virtualItemsCount();c&&(e=l._findContentElement(),i=e.children(),o=i.eq(0),a=i.eq(1),l._contentTableHeight=o[0].offsetHeight,l._dataController.viewportItemSize(u),l._dataController.setContentSize(l._contentTableHeight),t=l._dataController.getVirtualContentSize(),n=l._dataController.getContentOffset(),(0,s.deferRender)(function(){g.default.move(o,{left:0,top:n}),r=l._contentHeight!==t||0===t||!l._isTableLinesDisplaysCorrect(a)||!l._isColumnElementsEqual(o.find("col"),a.find("col")),r&&(l._contentHeight=t,l._renderVirtualTableContent(a,t)),l._updateScrollTopPosition(n)}))},_isTableLinesDisplaysCorrect:function(e){var t=e.find("."+S).length>0;return t===this.option("showColumnLines")},_isColumnElementsEqual:function(e,t){var n=e.length===t.length;return n&&(0,h.each)(e,function(e,i){if(i.style.width!==t[e].style.width)return n=!1}),n},_renderVirtualTableContent:function(e,t){var n,i=this,o=i._columnsController.getVisibleColumns(),a=i._createColGroup(o).prop("outerHTML"),r="",s=i.option("showColumnLines")?S:"",l=function(e){return"<tr style='height:"+e+"px;' class='"+k+" "+C+" "+s+"' >"+r+"</tr>"};for(n=0;n<o.length;n++){var u=i._getCellClasses(o[n]),c=u.length?" class='"+u.join(" ")+"'":"";r+="<td"+c+"/>"}for(;t>A;)a+=l(A),t-=A;a+=l(t),e.addClass(i.addWidgetPrefix(v)),e.html(a)},_getCellClasses:function(e){var t=[],n=e.cssClass,i="expand"===e.command;return n&&t.push(n),i&&t.push(this.addWidgetPrefix(b)),t},_findBottomLoadPanel:function(e){var t=e||this.element(),n=t&&t.find("."+this.addWidgetPrefix(y));if(n&&n.length)return n},_updateBottomLoading:function(){var e=this,t=e.option("scrolling.mode"),n=t===D,i=t===T,o=!e._dataController.hasKnownLastPage()&&e._dataController.isLoaded()&&(n||i),r=e._findContentElement(),s=e._findBottomLoadPanel(r);o?s||(0,a.default)("<div>").addClass(e.addWidgetPrefix(y)).append(e._createComponent((0,a.default)("<div>"),m.default).$element()).appendTo(r):s&&s.remove()},_handleScroll:function(e){var t=this;t._hasHeight&&t._rowHeight&&t._dataController.setViewportPosition(e.scrollOffset.top),t.callBase.apply(t,arguments)},_needUpdateRowHeight:function(e){var t=this;return t.callBase.apply(t,arguments)||e>0&&t.option("scrolling.mode")===T&&t.option("scrolling.rowRenderingMode")!==D},_updateRowHeight:function(){var e,t=this;t.callBase.apply(t,arguments),t._rowHeight&&(t._updateContentPosition(),e=t._hasHeight?t.element().outerHeight():(0,a.default)((0,r.getWindow)()).outerHeight(),t._dataController.viewportSize(Math.ceil(e/t._rowHeight)))},updateFreeSpaceRowHeight:function(){var e=this.callBase.apply(this,arguments);return e&&this._updateContentPosition(),e},setLoading:function(e,t){var n=this,i=n.callBase,o=n._dataController,a=o.pageIndex()>0&&o.isLoaded()&&!!n._findBottomLoadPanel();a&&(e=!1),i.call(n,e,t)},_resizeCore:function(){var e=this,t=e.element();e.callBase(),e.component.$element()&&!e._windowScroll&&t.closest((0,r.getWindow)().document).length&&(e._windowScroll=u.default.subscribeToExternalScrollers(t,function(t){!e._hasHeight&&e._rowHeight&&e._dataController.setViewportPosition(t)},e.component.$element()),e.on("disposing",function(){e._windowScroll.dispose()})),e.loadIfNeed()},loadIfNeed:function(){var e=this._dataController;e&&e.loadIfNeed&&e.loadIfNeed()},setColumnWidths:function(e){var t,n=this.getScrollable();this.callBase.apply(this,arguments),"virtual"===this.option("scrolling.mode")&&(t=n?n.$content():this.element(),this.callBase(e,t.children("."+this.addWidgetPrefix(w)).children(":not(."+this.addWidgetPrefix(x)+")")))},dispose:function(){clearTimeout(this._scrollTimeoutID),this.callBase()}}}();e.exports={defaultOptions:function(){return{scrolling:{timeout:300,updateTimeout:300,minTimeout:0,renderingThreshold:100,removeInvisiblePages:!0,rowPageSize:5,mode:"standard",preloadEnabled:!1,rowRenderingMode:"standard"}}},extenders:{dataSourceAdapter:R,controllers:{data:function(){var e={_refreshDataSource:function(){var e=this.callBase.apply(this,arguments)||(new p.Deferred).resolve().promise();return e.done(this.initVirtualRows.bind(this)),e},getRowPageSize:function(){var e=this.option("scrolling.rowPageSize"),t=this.pageSize();return t&&t<e?t:e},reload:function(){var e=this,t=e._rowsScrollController||e._dataSource,n=t&&t.getItemIndexByPosition(),i=this.callBase.apply(this,arguments);return i&&i.done(function(){if(O(e)||P(e)){var t=e.getRowIndexOffset(),i=Math.floor(n)-t,o=e.component,r=o.getScrollable&&o.getScrollable();if(r&&!e.option("legacyRendering")){var s=o.getRowElement(i),l=s&&s[0]&&(0,a.default)(s[0]),u=l&&l.position().top;u>0&&(u=Math.round(u+l.outerHeight()*(n%1)),r.scrollTo({y:u}))}}})},initVirtualRows:function(){var e=this,t=P(e);if("virtual"!==e.option("scrolling.mode")&&t!==!0||t===!1||e.option("legacyRendering")||!e.option("scrolling.rowPageSize"))return e._visibleItems=null,void(e._rowsScrollController=null);e._rowPageIndex=Math.ceil(e.pageIndex()*e.pageSize()/e.getRowPageSize()),e._visibleItems=[];var n=function(t){return"data"===t.rowType||"group"===t.rowType&&e._dataSource.isGroupItemCountable(t.data)};e._rowsScrollController=new u.default.VirtualScrollController(e.component,{pageSize:function(){return e.getRowPageSize()},totalItemsCount:function(){return O(e)?e.totalItemsCount():e._items.filter(n).length},hasKnownLastPage:function(){return!0},pageIndex:function(t){return void 0!==t&&(e._rowPageIndex=t),e._rowPageIndex},isLoading:function(){return e.isLoading()},pageCount:function e(){var e=Math.ceil(this.totalItemsCount()/this.pageSize());return e?e:1},load:function(){e._rowsScrollController.pageIndex()>=this.pageCount()&&(e._rowPageIndex=this.pageCount()-1,e._rowsScrollController.pageIndex(e._rowPageIndex)),!e._rowsScrollController._dataSource.items().length&&this.totalItemsCount()||e._rowsScrollController.handleDataChanged(function(t){t=t||{},t.changeType=t.changeType||"refresh",t.items=t.items||e._visibleItems,e._visibleItems.forEach(function(e,t){e.rowIndex=t}),e._fireChanged(t)})},updateLoading:function(){},itemsCount:function(){return e._rowsScrollController._dataSource.items().filter(n).length},correctCount:function(e,t,i){return M(e,t,i,n)},items:function(t){var i=e.dataSource(),o=i&&i.virtualItemsCount(),a=o?o.begin:0,r=e.getRowPageSize(),s=e._rowPageIndex*r-a,l=r,u=e._items;return s<0?[]:(s&&(s=this.correctCount(u,s),u=u.slice(s)),l&&(l=this.correctCount(u,l),u=u.slice(0,l)),t?u.filter(n):u)},viewportItems:function(t){return t&&(e._visibleItems=t),e._visibleItems},onChanged:function(){},changingDuration:function(t){var n=e.dataSource();return n&&n._renderTime||0}},(!0)),e.isLoaded()&&e._rowsScrollController.load()},_updateItemsCore:function(e){var t=this,n=this.getRowIndexDelta();this.callBase.apply(this,arguments);var i=this._rowsScrollController;if(i){var o=this._visibleItems,a="refresh"===e.changeType||e.isLiveUpdate;if("append"===e.changeType&&e.items&&!e.items.length)return;a||"append"===e.changeType||"prepend"===e.changeType?(e.cancel=!0,a&&i.reset(!0),i.load()):("update"===e.changeType?e.rowIndices.forEach(function(t,n){var i=e.changeTypes[n],a=e.items[n];"update"===i?o[t]=a:"insert"===i?o.splice(t,0,a):"remove"===i&&o.splice(t,1)}):(o.forEach(function(e,i){o[i]=t._items[i+n]||o[i]}),e.items=o),o.forEach(function(e,t){e.rowIndex=t}))}},_applyChange:function(e){var t=this,n=e.items,i=e.changeType,o=e.removeCount;if(o){var a="prepend"===i;o=M(t._items,o,a,function(e,n){return"data"===e.rowType||"group"===e.rowType&&(t._dataSource.isGroupItemCountable(e.data)||n)}),e.removeCount=o}switch(i){case"prepend":t._items.unshift.apply(t._items,n),o&&t._items.splice(-o);break;case"append":t._items.push.apply(t._items,n),o&&t._items.splice(0,o);break;default:t.callBase(e)}},items:function(e){return e?this._items:this._visibleItems||this._items},getRowIndexDelta:function(){var e=this._visibleItems,t=0;return e&&e[0]&&(t=this._items.indexOf(e[0])),t<0?0:t},getRowIndexOffset:function(){var e=0,t=this.dataSource(),n=this._rowsScrollController;return n?e=n.beginPageIndex()*n._dataSource.pageSize():"virtual"===this.option("scrolling.mode")&&t&&(e=t.beginPageIndex()*t.pageSize()),e},viewportSize:function(){var e=this._rowsScrollController;e&&e.viewportSize.apply(e,arguments);var t=this._dataSource;return t&&t.viewportSize.apply(t,arguments)},viewportItemSize:function(){var e=this._rowsScrollController;e&&e.viewportItemSize.apply(e,arguments);var t=this._dataSource;return t&&t.viewportItemSize.apply(t,arguments)},setViewportPosition:function(){var e=this._rowsScrollController,t=this._dataSource;e?e.setViewportPosition.apply(e,arguments).done(function(){t&&t.setViewportItemIndex(e.getViewportItemIndex())}):t&&t.setViewportPosition.apply(t,arguments)},setContentSize:function(e){var t=this._rowsScrollController;t&&t.setContentSize(e);var n=this._dataSource;return n&&n.setContentSize(e)},loadIfNeed:function(){var e=this._rowsScrollController;e&&e.loadIfNeed();var t=this._dataSource;return t&&t.loadIfNeed()},getItemSize:function(){var e=this._rowsScrollController;if(e)return e.getItemSize.apply(e,arguments);var t=this._dataSource;return t&&t.getItemSize.apply(t,arguments)},getItemSizes:function(){var e=this._rowsScrollController;if(e)return e.getItemSizes.apply(e,arguments);var t=this._dataSource;return t&&t.getItemSizes.apply(t,arguments)},getContentOffset:function(){var e=this._rowsScrollController;if(e)return e.getContentOffset.apply(e,arguments);var t=this._dataSource;return t&&t.getContentOffset.apply(t,arguments)},dispose:function(){var e=this._rowsScrollController;e&&e.dispose(),this.callBase.apply(this,arguments)}};return d.default.proxyMethod(e,"virtualItemsCount"),d.default.proxyMethod(e,"getVirtualContentSize"),d.default.proxyMethod(e,"setViewportItemIndex"),e}(),resizing:{resize:function(){var e,t=this,n=t.callBase;if(t.option("legacyRendering")||!O(t)&&!P(t))e=n.apply(t);else{clearTimeout(t._resizeTimeout);var i=new Date-t._lastTime,o=t.option("scrolling.updateTimeout");t._lastTime&&i<o?(e=new p.Deferred,t._resizeTimeout=setTimeout(function(){n.apply(t).done(e.resolve).fail(e.reject),t._lastTime=new Date},o),t._lastTime=new Date):(e=n.apply(t),t._dataController.isLoaded()&&(t._lastTime=new Date))}return e},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._resizeTimeout)}}},views:{rowsView:V}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(7),s=n(5),l=i(s),u=n(26),c=i(u),d=n(1),h=n(76),p=i(h),f=n(3),g=n(15),_=i(g),m=n(6),v="infinite",y="virtual",x=function(e){return e.option("scrolling.mode")===y||e._isVirtual},b=function(e){return e.option("scrolling.mode")===v&&!e._isVirtual};t.getPixelRatio=function(e){return e.devicePixelRatio||1},t.getContentHeightLimit=function(e){return e.msie?4e6:e.mozilla?8e6:15e6/t.getPixelRatio((0,r.getWindow)())},t.subscribeToExternalScrollers=function(e,t,n){function i(t){var n=t.element?t.$element():t,i=p.default.offset(n);return i?t.scrollTop()-(i.top-e.offset().top):e.offset().top}function o(e){return function(){var n=e.scrollTop()-i(e);n=n>0?n:0,t(n)}}function s(e){var t="#document"===e.get(0).nodeName,n=e.data("dxScrollable"),s=g;if(n||(n=t&&(0,a.default)((0,r.getWindow)())||"auto"===e.css("overflowY")&&e,s=l.default,n)){var u=o(n);s.on(n,"scroll",u),d.push(function(e){var t=i(n),o=n.scrollTo?"scrollTo":"scrollTop";e-t>=0&&n[o](e+t)}),c.push(n),h.push(function(){s.off(n,"scroll",u)})}}var u,c=[],d=[],h=[];n=n||e;var g={on:function(e,t,n){e.on("scroll",n)},off:function(e,t,n){e.off("scroll",n)}};for(u=n.parent();u.length;u=u.parent())s(u);return{scrollTo:function(e){(0,f.each)(d,function(t,n){n(e)})},dispose:function(){(0,f.each)(h,function(e,t){t()})}}},t.VirtualScrollController=_.default.inherit(function(){var e=function(e){var t=e._dataSource.pageSize(),n=e.option("scrolling.preventPreload");if(n)return 0;var i=e._viewportSize;if(x(e)&&e.option("legacyRendering")===!1&&e.option("scrolling.removeInvisiblePages")){i=0;for(var o=e._viewportSize*e._viewportItemSize,a=e.getContentOffset(),r=e._position||0,s=e.virtualItemsCount(),l=e._dataSource.totalItemsCount(),u=s.begin;u<l&&!(a>=r+o);u++){var c=e._itemSizes[u]||e._viewportItemSize;a+=c,a>=r&&i++}}return t&&i>0?Math.ceil(i/t):1},n=function(t,n){var i=t.option("scrolling.preloadEnabled"),o=e(t);return o&&(n?o=i?1:0:(i&&o++,b(t)&&o--)),o},i=function(e){var t,i,r,s=-1,l=o(e),u=e._dataSource;return l<0?s=e._pageIndex:e._cache[e._pageIndex-l]?l>=0&&e._viewportSize>=0&&(l>0&&(r=a(e)+1===u.pageCount()&&e._cache.length<n(e)+1,i=r||e._pageIndex===l&&n(e,!0),i&&(s=l-1)),s<0&&(t=l+e._cache.length<=e._pageIndex+n(e),t&&(s=l+e._cache.length))):(e._loadingPageIndex!==e._pageIndex||e._isVirtual)&&(s=e._pageIndex),s},o=function(e){return e._cache.length?e._cache[0].pageIndex:-1},a=function(e){return e._cache.length?e._cache[e._cache.length-1].pageIndex:-1},r=function(e,t,n){e._isChangedFiring=!0,t(n),e._isChangedFiring=!1},s=function(e,t,n){if(e._isDelayChanged)return e._isDelayChanged=!1,r(e,t,n),!0},l=function(e,t,n,i,o){var a=e._dataSource,s=a.items().slice(),l=(0,d.isObject)(n)?n:void 0,u="prepend"===n,c=a.viewportItems();n&&(0,d.isString)(n)&&!e._isDelayChanged&&(l={changeType:n,items:s},o&&(l.removeCount=o.itemsCount,l.removeCount&&a.correctCount&&(l.removeCount=a.correctCount(c,l.removeCount,u))));var h=o?o.itemsLength:0;h&&a.correctCount&&(h=a.correctCount(c,h,u)),"append"===n?(c.push.apply(c,s),o&&c.splice(0,h)):u?(c.unshift.apply(c,s),o&&c.splice(-h)):e._dataSource.viewportItems(s),a.updateLoading(),e._lastPageIndex=e.pageIndex(),e._isDelayChanged=i,i||r(e,t,l)},u=function(e,t){var n=e._dataSource;if(t===e.pageIndex()||!n.isLoading()&&t<n.pageCount()||!n.hasKnownLastPage()&&t===n.pageCount())return n.pageIndex(t),e._loadingPageIndex=t,(0,m.when)(n.load()).always(function(){e._loadingPageIndex=-1})};return{ctor:function(e,t,n){var i=this;i._dataSource=t,i.component=e,i._pageIndex=i._lastPageIndex=t.pageIndex(),i._viewportSize=0,i._viewportItemSize=20,i._viewportItemIndex=-1,i._itemSizes={},i._sizeRatio=1,i._items=[],i._cache=[],i._isVirtual=n,i._loadingPageIndex=-1},getItemSizes:function(){return this._itemSizes},option:function(){return this.component.option.apply(this.component,arguments)},virtualItemsCount:function(){var e,t,n,i=this,a=0;if(x(i))return e=o(i),e<0&&(e=i._dataSource.pageIndex()),t=e*i._dataSource.pageSize(),a=i._cache.length*i._dataSource.pageSize(),n=Math.max(0,i._dataSource.totalItemsCount()-a-t),{begin:t,end:n}},setViewportPosition:function(e){var t=this,n=new m.Deferred,i=Math.min(t.option("scrolling.timeout")||0,t._dataSource.changingDuration());return i<t.option("scrolling.renderingThreshold")&&(i=t.option("scrolling.minTimeout")||0),clearTimeout(t._scrollTimeoutID),i>0?t._scrollTimeoutID=setTimeout(function(){t._setViewportPositionCore(e),n.resolve()},i):(t._setViewportPositionCore(e),n.resolve()),n.promise()},getViewportPosition:function(){return this._position||0},getItemIndexByPosition:function(){for(var e,t=this,n=t._position,i=t.getItemSize(),o=0,a=0,r=Object.keys(t._itemSizes).concat(-1),s=0;s<r.length&&o<n;s++){var l=parseInt(r[s]),u=(n-o)/i;if(l<0||a+u<l){a+=u;break}u=l-a,o+=u*i,a+=u,e=t._itemSizes[l],o+=e,a+=o<n?1:(n-o+e)/e}return Math.round(50*a)/50},_setViewportPositionCore:function(e){this._position=e;var t=this.getItemIndexByPosition();return this.setViewportItemIndex(t)},setContentSize:function(e){var n=this,i=Array.isArray(e)&&e,o=n.virtualItemsCount();if(i&&(e=i.reduce(function(e,t){return e+t},0)),n._contentSize=e,o){i&&i.forEach(function(e,t){n._itemSizes[o.begin+t]=e});var a=(o.begin+o.end+n.itemsCount())*n._viewportItemSize,r=t.getContentHeightLimit(c.default);a>r?n._sizeRatio=r/a:n._sizeRatio=1}},getItemSize:function(){return this._viewportItemSize*this._sizeRatio},getItemOffset:function(e,t){var n=this,i=n.virtualItemsCount(),o=e;if(!i)return 0;var a=0,r=n._dataSource.totalItemsCount();return Object.keys(n._itemSizes).forEach(function(i){o&&(t?i>=r-e:i<e)&&(a+=n._itemSizes[i],o--)}),Math.floor(a+o*n._viewportItemSize*n._sizeRatio)},getContentOffset:function(e){var t="end"===e,n=this.virtualItemsCount();return n?this.getItemOffset(t?n.end:n.begin,t):0},getVirtualContentSize:function(){var e=this,t=e.virtualItemsCount();return t?e.getContentOffset("begin")+e.getContentOffset("end")+e._contentSize:0},getViewportItemIndex:function(){return this._viewportItemIndex},setViewportItemIndex:function(e){var t,n,i,o=this,a=o._dataSource.pageSize(),r=o._dataSource.pageCount(),s=x(o),l=b(o),u=o._dataSource.totalItemsCount(),c=o._viewportItemIndex<0;if(o._viewportItemIndex=e,a&&(s||l)&&u>=0)return o._viewportSize&&e+o._viewportSize>=u&&!o._isVirtual?o._dataSource.hasKnownLastPage()?(i=r-1,t=u%a,i>0&&t>0&&t<a/2&&i--):i=r:(i=Math.floor(e/a),n=r-1,i=Math.max(i,0),i=Math.min(i,n)),(o.pageIndex()!==i||c)&&o.pageIndex(i),o.load()},viewportItemSize:function(e){return void 0!==e&&(this._viewportItemSize=e),this._viewportItemSize},viewportSize:function(e){return void 0!==e&&(this._viewportSize=e),this._viewportSize},pageIndex:function(e){return x(this)||b(this)?(void 0!==e&&(this._pageIndex=e),this._pageIndex):this._dataSource.pageIndex(e)},beginPageIndex:function e(t){var e=o(this);return e<0&&(e=void 0!==t?t:this.pageIndex()),e},endPageIndex:function e(){var e=a(this);return e>0?e:this._lastPageIndex},pageSize:function(){return this._dataSource.pageSize()},load:function(){var e,t,n,o=this,a=o._dataSource;return x(o)||b(o)?(e=i(o),e>=0&&(t=u(o,e),t&&(n=new m.Deferred,t.done(function(){var e=o._delayDeferred;e?e.done(n.resolve).fail(n.reject):n.resolve()}).fail(n.reject),a.updateLoading()))):n=a.load(),n||o._lastPageIndex===o.pageIndex()||o._dataSource.onChanged({changeType:"pageIndex"}),n||(new m.Deferred).resolve()},loadIfNeed:function(){var e=this;if((x(e)||b(e))&&!e._dataSource.isLoading()&&(!e._isChangedFiring||e._isVirtual)){var t=e.getViewportPosition();t>0?e._setViewportPositionCore(t):e.load()}},handleDataChanged:function(e,t){var i,u,c,d,h=this,p=h._dataSource,f=h._cache.length;if(t&&t.changes)r(h,e,t);else if(x(h)||b(h)){if(i=o(h),i>=0&&(x(h)&&i+h._cache.length!==p.pageIndex()&&i-1!==p.pageIndex()&&(f=0,h._cache=[]),b(h)))if(0===p.pageIndex())h._cache=[];else if(p.pageIndex()<a(h))return void r(h,e,{changeType:"append",items:[]});d={pageIndex:p.pageIndex(),itemsLength:p.items(!0).length,itemsCount:h.itemsCount(!0)},!h.option("legacyRendering")&&h.option("scrolling.removeInvisiblePages")&&x(h)?c=h._cache.length>Math.max(n(this)+(h.option("scrolling.preloadEnabled")?1:0),2):s(h,e,{isDelayed:!0});var g;i===p.pageIndex()+1?(c&&(g=h._cache.pop()),u="prepend",h._cache.unshift(d)):(c&&(g=h._cache.shift()),u="append",h._cache.push(d));var _=x(h)&&0===f;l(h,e,h._cache.length>1?u:void 0,_,g),h._delayDeferred=h.load().done(function(){s(h,e)&&h.load()})}else l(h,e,t)},itemsCount:function e(t){var e=0;return!t&&x(this)?(0,f.each)(this._cache,function(){e+=this.itemsCount}):e=this._dataSource.itemsCount(),e},reset:function(e){this._cache=[],e||(this._itemSizes={})},subscribeToWindowScrollEvents:function(e){var n=this;n._windowScroll=n._windowScroll||t.subscribeToExternalScrollers(e,function(e){n.viewportItemSize()&&n.setViewportPosition(e)})},dispose:function(){clearTimeout(this._scrollTimeoutID),this._windowScroll&&this._windowScroll.dispose(),this._windowScroll=null},scrollTo:function(e){this._windowScroll&&this._windowScroll.scrollTo(e)}}}())},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return"onClick"===e.option("filterRow.applyFilter")}var a=n(2),r=i(a),s=n(5),l=i(s),u=n(1),c=n(0),d=n(8),h=n(3),p=i(h),f=n(39),g=i(f),_=n(36),m=i(_),v=n(14),y=i(v),x=n(49),b=i(x),w=n(60),C=i(w),k=n(360),S=i(k),I=n(105),T={"=":"filter-operation-equals","<>":"filter-operation-not-equals","<":"filter-operation-less","<=":"filter-operation-less-equal",">":"filter-operation-greater",">=":"filter-operation-greater-equal","default":"filter-operation-default",notcontains:"filter-operation-not-contains",contains:"filter-operation-contains",startswith:"filter-operation-starts-with",endswith:"filter-operation-ends-with",between:"filter-operation-between"},D={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",between:"between"},E=700,A=1,O="filter-row",B="filter-range-overlay",P="filter-range-start",M="filter-range-end",R="dx-menu",V="dx-editor-with-menu",F="dx-editor-container",L="dx-editor-cell",H="dx-filter-menu",z="dx-apply-button",N="dx-highlight-outline",$="dx-focused",W="dx-cell-focus-disabled",G="dx-filter-range-content",j="dx-filter-modified",q="input:not([type='hidden'])",K=function(){var e=function(e){var t=e&&e.children(),n=t&&t.data("dxComponents"),i=n&&n.length&&t.data(n[0]);if(i instanceof b.default)return i},t=function(e,t){var i="",o="",a=n(e,t),r=m.default.getFormatOptionsByColumn(t,"filterRow");return Array.isArray(a)?(i=m.default.formatValue(a[0],r),o=m.default.formatValue(a[1],r),""!==o&&(i+=" - "+o)):(0,u.isDefined)(a)&&(i=m.default.formatValue(a,r)),i},n=function(e,t){if(t)return o(e)&&void 0!==t.bufferedFilterValue?t.bufferedFilterValue:t.filterValue},i=function(e,t){if(t)return o(e)&&void 0!==t.bufferedSelectedFilterOperation?t.bufferedSelectedFilterOperation:t.selectedFilterOperation},a=function(e,t,o){var a=e._columnsController.columnOption(t),r=n(e,a),s=o.closest("."+e.addWidgetPrefix(B)).length,l=o.hasClass(e.addWidgetPrefix(P));return r&&Array.isArray(r)&&"between"===i(e,a)?l?r[0]:r[1]:s||void 0===r?null:r},s=function(e,t,o,a){if("between"===i(e,o)){var r=n(e,o);return a.hasClass(e.addWidgetPrefix(P))?[t,Array.isArray(r)?r[1]:void 0]:[Array.isArray(r)?r[0]:r,t]}return t},h=function(e,t){var n=""===t.value?null:t.value,i=t.container,r=e._columnsController.columnOption(t.column.index),l=a(e,r.index,i);((0,u.isDefined)(l)||(0,u.isDefined)(n))&&(e._applyFilterViewController.setHighLight(i,l!==n),e._columnsController.columnOption(r.index,o(e)?"bufferedFilterValue":"filterValue",s(e,n,r,i),t.notFireEvent))};return{_updateEditorValue:function(t,n){var i=this,o=e(n);o&&o.option("value",a(i,t.index,n))},_columnOptionChanged:function(e){var n,o,a,s,l,u,c,d=this,h=e.optionNames;return m.default.checkChanges(h,["filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation"])&&void 0!==e.columnIndex?(o=d._columnsController.getVisibleIndex(e.columnIndex),a=d._columnsController.columnOption(e.columnIndex),s=d._getCellElement(d.element().find("."+d.addWidgetPrefix(O)).index(),o)||(0,r.default)(),l=s.find("."+F).first(),(h.filterValue||h.bufferedFilterValue)&&(d._updateEditorValue(a,l),n=s.find("."+d.addWidgetPrefix(B)).data("dxOverlay"),n&&(u=n.$content().find("."+F),d._updateEditorValue(a,u.first()),d._updateEditorValue(a,u.last())),n&&n.option("visible")||d._updateFilterRangeContent(s,t(d,a))),void((h.selectedFilterOperation||h.bufferedSelectedFilterOperation)&&o>=0&&a&&(c=s.find("."+R),c.length&&(d._updateFilterOperationChooser(c,a,l),"between"===i(d,a)?d._renderFilterRangeContent(s,a):l.find("."+G).length&&(d._renderEditor(l,d._getEditorOptions(l,a)),d._hideFilterRange()))))):void d.callBase(e)},_renderCore:function(){this._filterRangeOverlayInstance=null,this.callBase.apply(this,arguments)},_resizeCore:function(){this.callBase.apply(this,arguments),this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.repaint()},isFilterRowVisible:function(){return this._isElementVisible(this.option("filterRow"))},isVisible:function(){return this.callBase()||this.isFilterRowVisible()},init:function(){this.callBase(),this._applyFilterViewController=this.getController("applyFilter")},_initFilterRangeOverlay:function(e,n){var o=this,a={},s=e.find(".dx-editor-container"),u=(0,r.default)("<div>").addClass(o.addWidgetPrefix(B)).appendTo(e);return o._createComponent(u,C.default,{height:"auto",shading:!1,showTitle:!1,focusStateEnabled:!1,closeOnTargetScroll:!1,closeOnOutsideClick:!0,animation:!1,position:{my:"top",at:"top",of:s.length&&s||e,offset:"0 -1"},contentTemplate:function(t){var i,s=(0,r.default)("<div>").addClass(F+" "+o.addWidgetPrefix(P)).appendTo(t);return n=o._columnsController.columnOption(n.index),
53i=o._getEditorOptions(s,n),i.sharedData=a,o._renderEditor(s,i),l.default.on(s.find(q),"keydown",function(t){var n=e.find("[tabindex]").not(t.target).first();"tab"===(0,d.normalizeKeyName)(t)&&t.shiftKey&&(t.preventDefault(),o._hideFilterRange(),n.length||(n=e.prev().find("[tabindex]").last()),l.default.trigger(n,"focus"))}),s=(0,r.default)("<div>").addClass(F+" "+o.addWidgetPrefix(M)).appendTo(t),i=o._getEditorOptions(s,n),i.sharedData=a,o._renderEditor(s,i),l.default.on(s.find(q),"keydown",function(t){"tab"!==(0,d.normalizeKeyName)(t)||t.shiftKey||(t.preventDefault(),o._hideFilterRange(),l.default.trigger(e.next().find("[tabindex]").first(),"focus"))}),(0,r.default)(t).addClass(o.getWidgetContainerClass())},onShown:function(e){var t=e.component.$content().find("."+F).first();l.default.trigger(t.find(q),"focus")},onHidden:function(){n=o._columnsController.columnOption(n.index),e.find("."+R).parent().addClass(V),"between"===i(o,n)&&(o._updateFilterRangeContent(e,t(o,n)),o.component.updateDimensions())}})},_updateFilterRangeOverlay:function(e){var t=this._filterRangeOverlayInstance;t&&t.option(e)},_showFilterRange:function(e,t){var n=this,i=e.children("."+n.addWidgetPrefix(B)),o=i.length&&i.data("dxOverlay");!o&&t&&(o=n._initFilterRangeOverlay(e,t)),o.option("visible")||(n._filterRangeOverlayInstance&&n._filterRangeOverlayInstance.hide(),n._filterRangeOverlayInstance=o,n._updateFilterRangeOverlay({width:e.outerWidth(!0)+A}),n._filterRangeOverlayInstance&&n._filterRangeOverlayInstance.show())},_hideFilterRange:function(){var e=this._filterRangeOverlayInstance;e&&e.hide()},getFilterRangeOverlayInstance:function(){return this._filterRangeOverlayInstance},_createRow:function(e){var t=this,n=this.callBase(e);return"filter"===e.rowType&&(n.addClass(this.addWidgetPrefix(O)),this.option("useLegacyKeyboardNavigation")||l.default.on(n,"keydown",function(e){return(0,I.selectView)("filterRow",t,e)})),n},_getRows:function(){var e=this.callBase();return this.isFilterRowVisible()&&e.push({rowType:"filter"}),e},_renderFilterCell:function(e,t){var n,o,a=this,s=t.column,l=(0,r.default)(e);a.setAria("label",y.default.format("dxDataGrid-ariaColumn")+" "+s.caption+", "+y.default.format("dxDataGrid-ariaFilterCell"),l),l.addClass(L),n=(0,r.default)("<div>").appendTo(l),o=(0,r.default)("<div>").addClass(F).appendTo(n),"between"===i(a,s)?a._renderFilterRangeContent(l,s):a._renderEditor(o,a._getEditorOptions(o,s)),s.alignment&&l.find(q).first().css("textAlign",s.alignment),s.filterOperations&&s.filterOperations.length&&a._renderFilterOperationChooser(n,s,o)},_renderCellContent:function(e,t){var n=this,i=t.column;if("filter"===t.rowType)if(i.command)e.html("&nbsp;");else if(i.allowFiltering)return void n.renderTemplate(e,n._renderFilterCell.bind(n),t);n.callBase(e,t)},_getEditorOptions:function(e,t){var n=this,o=(0,c.extend)({},t,{value:a(n,t.index,e),parentType:"filterRow",showAllText:n.option("filterRow.showAllText"),updateValueTimeout:"onClick"===n.option("filterRow.applyFilter")?0:E,width:null,setValue:function(i,o){h(n,{column:t,value:i,container:e,notFireEvent:o})}});return"between"===i(n,t)&&(e.hasClass(n.addWidgetPrefix(P))?o.placeholder=n.option("filterRow.betweenStartText"):o.placeholder=n.option("filterRow.betweenEndText")),o},_renderEditor:function(e,t){return e.empty(),this.getController("editorFactory").createEditor((0,r.default)("<div>").appendTo(e),t)},_renderFilterRangeContent:function(e,n){var i=this,o=e.find("."+F).first();o.empty();var a=(0,r.default)("<div>").addClass(G).attr("tabindex",this.option("tabIndex"));l.default.on(a,"focusin",function(){i._showFilterRange(e,n)}),a.appendTo(o),i._updateFilterRangeContent(e,t(i,n))},_updateFilterRangeContent:function(e,t){var n=e.find("."+G);n.length&&(""===t?n.html("&nbsp;"):n.text(t))},_updateFilterOperationChooser:function(t,n,a){var r,s=this,u=function(){var e=S.default.getInstance(t);e&&e.option("focusedElement",null),r&&s._focusEditor(a)};s._createComponent(t,S.default,{integrationOptions:{},activeStateEnabled:!1,selectionMode:"single",cssClass:s.getWidgetContainerClass()+" "+W+" "+H,showFirstSubmenuMode:"onHover",hideSubmenuOnMouseLeave:!0,items:[{disabled:!n.filterOperations||!n.filterOperations.length,icon:T[i(s,n)||"default"],selectable:!1,items:s._getFilterOperationMenuItems(n)}],onItemClick:function(t){var r=t.itemData.name,l=i(s,n),u=!1,c=o(s),d={};if(!(t.itemData.items||r&&r===l)){if(r?(d[c?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=r,"between"!==r&&"between"!==l||(u="between"===r,d[c?"bufferedFilterValue":"filterValue"]=null)):(d[c?"bufferedFilterValue":"filterValue"]=null,d[c?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=n.defaultSelectedFilterOperation||null),s._columnsController.columnOption(n.index,d),s._applyFilterViewController.setHighLight(a,!0),!r){var h=e(a);h&&"dxDateBox"===h.NAME&&!h.option("isValid")&&(h.reset(),h.option("isValid",!0))}u?s._showFilterRange(a.closest("."+L),n):s._focusEditor(a)}},onSubmenuShown:function(){r=s._isEditorFocused(a),s.getController("editorFactory").loseFocus()},onSubmenuHiding:function(){l.default.trigger(t,"blur"),u()},onContentReady:function(e){l.default.on(t,"blur",function(){var t=e.component;t._hideSubmenu(t._visibleSubmenu),u()})},rtlEnabled:s.option("rtlEnabled")})},_isEditorFocused:function(e){return e.hasClass($)||e.parents("."+$).length},_focusEditor:function(e){this.getController("editorFactory").focus(e),l.default.trigger(e.find(q),"focus")},_renderFilterOperationChooser:function(e,t,n){var i,o=this;o.option("filterRow.showOperationChooser")&&(e.addClass(V),i=(0,r.default)("<div>").prependTo(e),o._updateFilterOperationChooser(i,t,n))},_getFilterOperationMenuItems:function(e){var t=this,n=[{}],o=t.option("filterRow"),a=o&&o.operationDescriptions||{};if(e.filterOperations&&e.filterOperations.length){var r=e.filterOperations.filter(function(e){return(0,u.isDefined)(D[e])});n=p.default.map(r,function(n){var o=D[n];return{name:n,selected:(i(t,e)||e.defaultFilterOperation)===n,text:a[o],icon:T[n]}}),n.push({name:null,text:o&&o.resetOperationText,icon:T.default})}return n},optionChanged:function(e){var t=this;switch(e.name){case"filterRow":case"showColumnLines":this._invalidate(!0,!0),e.handled=!0;break;default:t.callBase(e)}}}}(),U={skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var e=[this.callBase()],t=this._columnsController.getVisibleColumns();return p.default.each(t,function(){var t;this.allowFiltering&&this.calculateFilterExpression&&(0,u.isDefined)(this.filterValue)&&(t=this.createFilterExpression(this.filterValue,this.selectedFilterOperation||this.defaultFilterOperation,"filterRow"),e.push(t))}),m.default.combineFilters(e)}};t.ApplyFilterViewController=g.default.ViewController.inherit({_getHeaderPanel:function(){return this._headerPanel||(this._headerPanel=this.getView("headerPanel")),this._headerPanel},setHighLight:function(e,t){o(this)&&(e&&e.toggleClass(N,t)&&e.closest("."+L).toggleClass(j,t),this._getHeaderPanel().enableApplyButton(t))},applyFilter:function(){var e=this.getController("columns"),t=e.getColumns();e.beginUpdate();for(var n=0;n<t.length;n++){var i=t[n];void 0!==i.bufferedFilterValue&&(e.columnOption(n,"filterValue",i.bufferedFilterValue),i.bufferedFilterValue=void 0),void 0!==i.bufferedSelectedFilterOperation&&(e.columnOption(n,"selectedFilterOperation",i.bufferedSelectedFilterOperation),i.bufferedSelectedFilterOperation=void 0)}e.endUpdate(),this.removeHighLights()},removeHighLights:function(){if(o(this)){var e=this.getView("columnHeadersView").element();e.find("."+this.addWidgetPrefix(O)+" ."+N).removeClass(N),e.find("."+this.addWidgetPrefix(O)+" ."+j).removeClass(j),this._getHeaderPanel().enableApplyButton(!1)}}}),e.exports={defaultOptions:function(){return{filterRow:{visible:!1,showOperationChooser:!0,showAllText:y.default.format("dxDataGrid-filterRowShowAllText"),resetOperationText:y.default.format("dxDataGrid-filterRowResetOperationText"),applyFilter:"auto",applyFilterText:y.default.format("dxDataGrid-applyFilterText"),operationDescriptions:{equal:y.default.format("dxDataGrid-filterRowOperationEquals"),notEqual:y.default.format("dxDataGrid-filterRowOperationNotEquals"),lessThan:y.default.format("dxDataGrid-filterRowOperationLess"),lessThanOrEqual:y.default.format("dxDataGrid-filterRowOperationLessOrEquals"),greaterThan:y.default.format("dxDataGrid-filterRowOperationGreater"),greaterThanOrEqual:y.default.format("dxDataGrid-filterRowOperationGreaterOrEquals"),startsWith:y.default.format("dxDataGrid-filterRowOperationStartsWith"),contains:y.default.format("dxDataGrid-filterRowOperationContains"),notContains:y.default.format("dxDataGrid-filterRowOperationNotContains"),endsWith:y.default.format("dxDataGrid-filterRowOperationEndsWith"),between:y.default.format("dxDataGrid-filterRowOperationBetween"),isBlank:y.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:y.default.format("dxFilterBuilder-filterOperationIsNotBlank")},betweenStartText:y.default.format("dxDataGrid-filterRowOperationBetweenStartText"),betweenEndText:y.default.format("dxDataGrid-filterRowOperationBetweenEndText")}}},controllers:{applyFilter:t.ApplyFilterViewController},extenders:{controllers:{data:U,columnsResizer:{_startResizing:function(){var e,t,n=this;n.callBase.apply(n,arguments),n.isResizing()&&(t=n._columnHeadersView.getFilterRangeOverlayInstance(),t&&(e=t.$element().closest("td").index(),e!==n._targetPoint.columnIndex&&e!==n._targetPoint.columnIndex+1||t.$content().hide()))},_endResizing:function(){var e,t,n=this;n.isResizing()&&(t=n._columnHeadersView.getFilterRangeOverlayInstance(),t&&(e=t.$element().closest("td"),n._columnHeadersView._updateFilterRangeOverlay({width:e.outerWidth(!0)+A}),t.$content().show())),n.callBase.apply(n,arguments)}}},views:{columnHeadersView:K,headerPanel:{_getToolbarItems:function(){var e=this.callBase(),t=this._prepareFilterItem(e);return t.concat(e)},_prepareFilterItem:function(){var e=this,t=[];if(e._isShowApplyFilterButton()){var n=e.option("filterRow.applyFilterText"),i=e._columnsController.getColumns(),o=!i.filter(function(e){return void 0!==e.bufferedFilterValue}).length,a=function(t){(0,r.default)(t.element).addClass(e._getToolbarButtonClass(z))},s=function(){e._applyFilterViewController.applyFilter()},l={widget:"dxButton",options:{icon:"apply-filter",disabled:o,onClick:s,hint:n,text:n,onInitialized:a},showText:"inMenu",name:"applyFilterButton",location:"after",locateInMenu:"auto",sortIndex:10};t.push(l)}return t},_isShowApplyFilterButton:function(){var e=this.option("filterRow");return e&&e.visible&&"onClick"===e.applyFilter},init:function(){this.callBase(),this._dataController=this.getController("data"),this._applyFilterViewController=this.getController("applyFilter")},enableApplyButton:function(e){this.setToolbarItemDisabled("applyFilterButton",!e)},isVisible:function(){return this.callBase()||this._isShowApplyFilterButton()},optionChanged:function(e){"filterRow"===e.name?(this._invalidate(),e.handled=!0):this.callBase(e)}}}}}},function(e,t,n){e.exports=n(361)},function(e,t,n){var i=n(2),o=n(5),a=n(9),r=n(4),s=n(12).getPublicElement,l=n(3).each,u=n(1),c=n(0).extend,d=n(246).getElementMaxHeightByWindow,h=n(8),p=n(24),f=n(135),g=n(331),_=n(60),m=n(628),v=n(34),y=n(141),x="dx-menu",b=x+"-vertical",w=x+"-horizontal",C=x+"-item",k=x+"-items-container",S=C+"-expanded",I="dx-context-menu",T=I+"-container-border",D="dx-context-menu-content-delimiter",E="dx-submenu",A="dx-state-disabled",O="dx-state-hover",B="dx-state-active",P=x+"-adaptive-mode",M=x+"-hamburger-button",R=P+"-overlay-wrapper",V="up",F="down",L="left",H="right",z="showSubmenu",N="nextItem",$="prevItem",W={show:50,hide:300},G=["onSubmenuShowing","onSubmenuShown","onSubmenuHiding","onSubmenuHidden","onItemContextMenu","onItemClick","onSelectionChanged"],j=g.inherit({_getDefaultOptions:function(){return c(this.callBase(),{orientation:"horizontal",submenuDirection:"auto",showFirstSubmenuMode:{name:"onClick",delay:{show:50,hide:300}},hideSubmenuOnMouseLeave:!1,onSubmenuShowing:null,onSubmenuShown:null,onSubmenuHiding:null,onSubmenuHidden:null,adaptivityEnabled:!1})},_setOptionsByReference:function(){this.callBase(),c(this._optionsByReference,{animation:!0,selectedItem:!0})},_itemElements:function(){var e=this.callBase(),t=this._submenuItemElements();return e.add(t)},_submenuItemElements:function(){var e=[],t="."+C,n=this._submenus.length&&this._submenus[0];return n&&n.itemsContainer()&&(e=n.itemsContainer().find(t)),e},_focusTarget:function(){return this.$element()},_isMenuHorizontal:function(){return"horizontal"===this.option("orientation")},_moveFocus:function(e){var t,n,i,o,a=this._getAvailableItems(),r=this._isMenuHorizontal(),l=this._getActiveItem(!0);switch(e){case V:n=r?z:this._getItemsNavigationOperation($),t=r?l:a,i=this._getKeyboardNavigationAction(n,t),o=i();break;case F:n=r?z:this._getItemsNavigationOperation(N),t=r?l:a,i=this._getKeyboardNavigationAction(n,t),o=i();break;case H:n=r?this._getItemsNavigationOperation(N):z,t=r?a:l,i=this._getKeyboardNavigationAction(n,t),o=i();break;case L:n=r?this._getItemsNavigationOperation($):z,t=r?a:l,i=this._getKeyboardNavigationAction(n,t),o=i();break;default:return this.callBase(e)}o&&0!==o.length&&this.option("focusedElement",s(o))},_getItemsNavigationOperation:function(e){var t=e;return this.option("rtlEnabled")&&(t=e===$?N:$),t},_getKeyboardNavigationAction:function(e,t){var n=r.noop;switch(e){case z:t.hasClass(A)||(n=this._showSubmenu.bind(this,t));break;case N:n=this._nextItem.bind(this,t);break;case $:n=this._prevItem.bind(this,t)}return n},_clean:function(){this.callBase(),this.option("templatesRenderAsynchronously")&&clearTimeout(this._resizeEventTimer)},_visibilityChanged:function(e){e&&(this._menuItemsWidth||this._updateItemsWidthCache(),this._dimensionChanged())},_isAdaptivityEnabled:function(){return this.option("adaptivityEnabled")&&"horizontal"===this.option("orientation")},_updateItemsWidthCache:function(){var e=this.$element().find("ul").first().children("li").children("."+C);this._menuItemsWidth=this._getSummaryItemsWidth(e,!0)},_dimensionChanged:function(){if(this._isAdaptivityEnabled()){var e=this.$element().outerWidth();this._toggleAdaptiveMode(this._menuItemsWidth>e)}},_init:function(){this.callBase(),this._submenus=[]},_initActions:function(){this._actions={},l(G,function(e,t){this._actions[t]=this._createActionByOption(t)}.bind(this))},_initMarkup:function(){this._visibleSubmenu=null,this.$element().addClass(x),this.callBase(),this.setAria("role","menubar")},_render:function(){this.callBase(),this._initAdaptivity()},_renderHamburgerButton:function(){return this._hamburger=new v(i("<div>").addClass(M),{icon:"menu",activeStateEnabled:!1,onClick:this._toggleTreeView.bind(this)}),this._hamburger.$element()},_toggleTreeView:function(e){u.isPlainObject(e)&&(e=!this._overlay.option("visible")),this._overlay.option("visible",e),this._toggleHamburgerActiveState(e)},_toggleHamburgerActiveState:function(e){this._hamburger&&this._hamburger.$element().toggleClass(B,e)},_toggleAdaptiveMode:function(e){var t=this.$element().find("."+w),n=this.$element().find("."+P);e?this._hideVisibleSubmenu():(this._treeView&&this._treeView.collapseAll(),this._overlay&&this._toggleTreeView(e)),t.toggle(!e),n.toggle(e)},_removeAdaptivity:function(){this._$adaptiveContainer&&(this._toggleAdaptiveMode(!1),this._$adaptiveContainer.remove(),this._$adaptiveContainer=null,this._treeView=null,this._hamburger=null,this._overlay=null)},_treeviewItemClickHandler:function(e){this._actions.onItemClick(e),e.node.children.length||this._toggleTreeView(!1)},_getAdaptiveOverlayOptions:function(){var e=this.option("rtlEnabled"),t=e?"right":"left";return{maxHeight:function(){return d(this.$element())}.bind(this),deferRendering:!1,shading:!1,animation:!1,closeOnTargetScroll:!0,onHidden:function(){this._toggleHamburgerActiveState(!1)}.bind(this),height:"auto",closeOnOutsideClick:function(e){return!i(e.target).closest("."+M).length},position:{collision:"flipfit",at:"bottom "+t,my:"top "+t,of:this._hamburger.$element()}}},_getTreeViewOptions:function(){var e={},t=this,n=["rtlEnabled","width","accessKey","activeStateEnabled","animation","dataSource","disabled","displayExpr","displayExpr","focusStateEnabled","hint","hoverStateEnabled","itemsExpr","items","itemTemplate","selectedExpr","selectionMode","tabIndex","visible"],i=["onItemContextMenu","onSelectionChanged"];return l(n,function(n,i){e[i]=t.option(i)}),l(i,function(n,i){e[i]=function(e){this._actions[i](e)}.bind(t)}),c(e,{dataSource:t.getDataSource(),animationEnabled:!!this.option("animation"),onItemClick:t._treeviewItemClickHandler.bind(t),onItemExpanded:function(e){this._overlay.repaint(),this._actions.onSubmenuShown(e)}.bind(t),onItemCollapsed:function(e){this._overlay.repaint(),this._actions.onSubmenuHidden(e)}.bind(t),selectNodesRecursive:!1,selectByClick:this.option("selectByClick"),expandEvent:"click"})},_initAdaptivity:function(){if(this._isAdaptivityEnabled()){this._$adaptiveContainer=i("<div>").addClass(P);var e=this._renderHamburgerButton();this._treeView=this._createComponent(i("<div>"),y,this._getTreeViewOptions()),this._overlay=this._createComponent(i("<div>"),_,this._getAdaptiveOverlayOptions()),this._overlay.$content().append(this._treeView.$element()).addClass(P).addClass(this.option("cssClass")),this._overlay._wrapper().addClass(R),this._$adaptiveContainer.append(e),this._$adaptiveContainer.append(this._overlay.$element()),this.$element().append(this._$adaptiveContainer),this._updateItemsWidthCache(),this._dimensionChanged()}},_getDelay:function(e){var t=this.option("showFirstSubmenuMode").delay;return u.isDefined(t)?u.isObject(t)?t[e]:t:W[e]},_keyboardHandler:function(e){return!!this._visibleSubmenu||this.callBase(e)},_renderContainer:function(){var e=i("<div>");return e.appendTo(this.$element()).addClass(this._isMenuHorizontal()?w:b),this.callBase(e)},_renderSubmenuItems:function(e,t){var n=this._createSubmenu(e,t);return this._submenus.push(n),this._renderBorderElement(t),n},_createSubmenu:function(e,t){var n=i("<div>").addClass(I).appendTo(t),o=this._keyboardProcessor&&this._keyboardProcessor.attachChildProcessor(),a=this._getChildNodes(e),r=this._createComponent(n,m,c(this._getSubmenuOptions(),{_keyboardProcessor:o,_dataAdapter:this._dataAdapter,_parentKey:e.internalFields.key,items:a,onHoverStart:this._clearTimeouts.bind(this),position:this.getSubmenuPosition(t)}));return this._attachSubmenuHandlers(t,r),r},_getSubmenuOptions:function(){var e=i("<div>"),t=this._isMenuHorizontal();return{itemTemplate:this.option("itemTemplate"),target:e,orientation:this.option("orientation"),selectionMode:this.option("selectionMode"),cssClass:this.option("cssClass"),selectByClick:this.option("selectByClick"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),showSubmenuMode:this.option("showSubmenuMode"),displayExpr:this.option("displayExpr"),disabledExpr:this.option("disabledExpr"),selectedExpr:this.option("selectedExpr"),itemsExpr:this.option("itemsExpr"),onFocusedItemChanged:function(e){e.component.option("visible")&&this.option("focusedElement",e.component.option("focusedElement"))}.bind(this),onSelectionChanged:this._nestedItemOnSelectionChangedHandler.bind(this),onItemClick:this._nestedItemOnItemClickHandler.bind(this),onItemRendered:this.option("onItemRendered"),onLeftFirstItem:t?null:this._moveMainMenuFocus.bind(this,$),onLeftLastItem:t?null:this._moveMainMenuFocus.bind(this,N),onCloseRootSubmenu:this._moveMainMenuFocus.bind(this,t?$:null),onExpandLastSubmenu:t?this._moveMainMenuFocus.bind(this,N):null}},_getShowFirstSubmenuMode:function(){if(!this._isDesktopDevice())return"onClick";var e=this.option("showFirstSubmenuMode");return u.isObject(e)?e.name:e},_moveMainMenuFocus:function(e){var t=this._getAvailableItems(),n=t.length,i=t.filter("."+S).eq(0),o=t.index(i);this._hideSubmenu(this._visibleSubmenu),o+=e===$?-1:1,o>=n?o=0:o<0&&(o=n-1);var a=t.eq(o);this.option("focusedElement",s(a))},_nestedItemOnSelectionChangedHandler:function(e){var t=e.addedItems.length&&e.addedItems[0],n=m.getInstance(e.element),i=this._actions.onSelectionChanged;i(e),t&&this._clearSelectionInSubmenus(t[0],n),this._clearRootSelection(),this._setOptionSilent("selectedItem",t)},_clearSelectionInSubmenus:function(e,t){var n=this,i=!arguments.length;l(this._submenus,function(e,o){var a=o._itemContainer(),r=!a.is(t&&t._itemContainer()),s=a.find("."+n._selectedItemClass());if(r&&s.length||i){var l;s.removeClass(n._selectedItemClass()),l=n._getItemData(s),l&&(l.selected=!1),o._clearSelectedItems()}})},_clearRootSelection:function(){var e=this.$element().find("."+k).first().children().children().filter("."+this._selectedItemClass());if(e.length){var t;t=this._getItemData(e),t.selected=!1,e.removeClass(this._selectedItemClass())}},_nestedItemOnItemClickHandler:function(e){this._actions.onItemClick(e)},_attachSubmenuHandlers:function(e,t){var n=this,i=t.getOverlayContent(),a=i.find("."+E),r=h.addNamespace(f.end,this.NAME+"_submenu");t.option({onShowing:this._submenuOnShowingHandler.bind(this,e,t),onShown:this._submenuOnShownHandler.bind(this,e,t),onHiding:this._submenuOnHidingHandler.bind(this,e,t),onHidden:this._submenuOnHiddenHandler.bind(this,e,t)}),l(a,function(t,i){o.off(i,r),o.on(i,r,null,n._submenuMouseLeaveHandler.bind(n,e))})},_submenuOnShowingHandler:function(e,t){var n=e.children("."+T);this._actions.onSubmenuShowing({rootItem:s(e),submenu:t}),n.show(),e.addClass(S)},_submenuOnShownHandler:function(e,t){this._actions.onSubmenuShown({rootItem:s(e),submenu:t})},_submenuOnHidingHandler:function(e,t,n){var i=e.children("."+T),o=n;o.rootItem=s(e),o.submenu=t,this._actions.onSubmenuHiding(o),n=o,n.cancel||(this._visibleSubmenu===t&&(this._visibleSubmenu=null),i.hide(),e.removeClass(S))},_submenuOnHiddenHandler:function(e,t){this._actions.onSubmenuHidden({rootItem:s(e),submenu:t})},_submenuMouseLeaveHandler:function(e,t){var n=this,o=i(t.relatedTarget).parents("."+I)[0],a=n._getSubmenuByRootElement(e).getOverlayContent()[0];n.option("hideSubmenuOnMouseLeave")&&o!==a&&(n._clearTimeouts(),setTimeout(n._hideSubmenuAfterTimeout.bind(n),n._getDelay("hide")))},_hideSubmenuAfterTimeout:function(){if(this._visibleSubmenu){var e=i(this._visibleSubmenu.$element().context).hasClass(O),t=this._visibleSubmenu.getOverlayContent().find("."+O).length;t||e||this._visibleSubmenu.hide()}},_getSubmenuByRootElement:function(e){if(!e)return!1;var t=e.children("."+I);return t.length&&m.getInstance(t)},getSubmenuPosition:function(e){var t=this._isMenuHorizontal(),n=this.option("submenuDirection").toLowerCase(),i=this.option("rtlEnabled"),o={collision:"flip",of:e};switch(n){case"leftortop":o.at="left top",o.my=t?"left bottom":"right top";break;case"rightorbottom":o.at=t?"left bottom":"right top",o.my="left top";break;default:t?(o.at=i?"right bottom":"left bottom",o.my=i?"right top":"left top"):(o.at=i?"left top":"right top",o.my=i?"right top":"left top")}return o},_renderBorderElement:function(e){i("<div>").appendTo(e).addClass(T).hide()},_itemPointerDownHandler:function(e){var t=i(e.target),n=t.closest(this._itemElements());return n.hasClass("dx-menu-item-has-submenu")?void this.option("focusedElement",null):void this.callBase(e)},_hoverStartHandler:function(e){var t=h.addNamespace(p.move,this.NAME),n=this._getItemElementByEventArgs(e),i=this._dataAdapter.getNodeByItem(this._getItemData(n)),a=u.isDefined(e.buttons)&&1===e.buttons||!u.isDefined(e.buttons)&&1===e.which;if(!this._isItemDisabled(n)){if(o.off(n,t),!this._hasChildren(i))return void(this._showSubmenuTimer=setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")));if("onHover"===this._getShowFirstSubmenuMode()&&!a){var r=this._getSubmenuByElement(n);this._clearTimeouts(),r.isOverlayVisible()||(o.on(n,t,this._itemMouseMoveHandler.bind(this)),this._showSubmenuTimer=this._getDelay("hide"))}}},_hoverEndHandler:function(e){var t=this,n=t._getItemElementByEventArgs(e),o=i(e.relatedTarget);t.callBase(e),t._clearTimeouts(),t._isItemDisabled(n)||o.hasClass(D)||t.option("hideSubmenuOnMouseLeave")&&!o.hasClass(k)&&(t._hideSubmenuTimer=setTimeout(function(){t._hideSubmenuAfterTimeout()},t._getDelay("hide")))},_hideVisibleSubmenu:function(){return!!this._visibleSubmenu&&(this._hideSubmenu(this._visibleSubmenu),!0)},_showSubmenu:function(e){var t=this._getSubmenuByElement(e);this._visibleSubmenu!==t&&this._hideVisibleSubmenu(),t&&(t.show(),this.option("focusedElement",t.option("focusedElement"))),this._visibleSubmenu=t,this._hoveredRootItem=e},_hideSubmenu:function(e){e&&e.hide(),this._visibleSubmenu===e&&(this._visibleSubmenu=null),this._hoveredRootItem=null},_itemMouseMoveHandler:function(e){if(!e.pointers||!e.pointers.length){var t=this,n=i(e.currentTarget);u.isDefined(t._showSubmenuTimer)&&(t._clearTimeouts(),t._showSubmenuTimer=setTimeout(function(){var e=t._getSubmenuByElement(n);e&&!e.isOverlayVisible()&&t._showSubmenu(n)},t._getDelay("show")))}},_clearTimeouts:function(){clearTimeout(this._hideSubmenuTimer),clearTimeout(this._showSubmenuTimer)},_getSubmenuByElement:function(e,t){var n=this._getSubmenuByRootElement(e);if(n)return n;t=t||this._getItemData(e);var i=this._dataAdapter.getNodeByItem(t);return this._hasChildren(i)&&this._renderSubmenuItems(i,e)},_updateSubmenuVisibilityOnClick:function(e){var t,n=e.args.length&&e.args[0];if(n&&!this._disabledGetter(n.itemData)){var o=i(n.itemElement);if(t=this._getSubmenuByElement(o,n.itemData),this._updateSelectedItemOnClick(e),this._visibleSubmenu){if(this._visibleSubmenu===t)return void("onClick"===this.option("showFirstSubmenuMode")&&this._hideSubmenu(this._visibleSubmenu));this._hideSubmenu(this._visibleSubmenu)}if(t)return t.isOverlayVisible()?void 0:void this._showSubmenu(o)}},_optionChanged:function(e){switch(e.name){case"orientation":case"submenuDirection":this._invalidate();break;case"showFirstSubmenuMode":case"hideSubmenuOnMouseLeave":break;case"showSubmenuMode":this._changeSubmenusOption(e.name,e.value);break;case"onSubmenuShowing":case"onSubmenuShown":case"onSubmenuHiding":case"onSubmenuHidden":this._initActions();break;case"adaptivityEnabled":e.value?this._initAdaptivity():this._removeAdaptivity();break;case"width":this._isAdaptivityEnabled()&&(this._treeView.option(e.name,e.value),this._overlay.option(e.name,e.value)),this.callBase(e),this._dimensionChanged();break;case"animation":this._isAdaptivityEnabled()&&this._treeView.option("animationEnabled",!!e.value),this.callBase(e);break;default:this._isAdaptivityEnabled()&&this._treeView.option(e.name,e.value),this.callBase(e)}},_changeSubmenusOption:function(e,t){l(this._submenus,function(n,i){i.option(e,t)})},selectItem:function(e){this._hideSubmenu(this._visibleSubmenu),this.callBase(e)},unselectItem:function(e){this._hideSubmenu(this._visibleSubmenu),this.callBase(e)}});a("dxMenu",j),e.exports=j},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return["!",e]}var a=n(5),r=i(a),s=n(39),l=i(s),u=n(165),c=i(u),d=n(36),h=i(d),p=n(363),f=n(14),g=i(f),_=n(19),m=i(_),v=n(20),y=n(3),x=n(1),b=n(98),w=n(0),C=n(44),k=n(33),S=i(k),I=n(87),T=n(6),D=n(105),E={month:function(e){return S.default.getMonthNames()[e-1]},quarter:function(e){return S.default.format(new Date(2e3,3*e-1),"quarter")}},A=l.default.ViewController.inherit(function(){var e=function(e,t,n){var i=c.default.getGroupInterval(t),o=h.default.getFormatOptionsByColumn(t,"headerFilter");return i&&(o.groupInterval=i[n],h.default.isDateType(t.dataType)?o.format=E[i[n]]:"number"===t.dataType&&(o.getDisplayFormat=function(){var o={format:t.format,target:"headerFilter"},a=h.default.formatValue(e,o),r=e+i[n],s=h.default.formatValue(r,o);return a&&s?a+" - "+s:""})),o};return{init:function(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._headerFilterView=this.getView("headerFilterView")},_updateSelectedState:function(e,t){for(var n=e.length,i="exclude"===t.filterType;n--;){var o=e[n];"items"in e[n]&&this._updateSelectedState(e[n].items,t),(0,p.updateHeaderFilterItemSelectionState)(o,h.default.getIndexByKey(e[n].value,t.filterValues,null)>-1,i)}},_normalizeGroupItem:function(e,t,n){var i,o,a=n.path,r=n.valueSelector,s=n.displaySelector,l=n.column;return r&&s?(i=r(e),o=s(e)):(i=e.key,o=i),(0,x.isObject)(e)?e===i&&(e=(0,w.extend)({},e)):e={},a.push(i),1===a.length?e.value=a[0]:e.value=a.join("/"),e.text=this.getHeaderItemText(o,l,t,n.headerFilterOptions),delete e.key,e},getHeaderItemText:function(t,n,i,o){var a=h.default.formatValue(t,e(t,n,i));return a||(a=o.texts.emptyValue),a},_processGroupItems:function(e,t,n,i){var o,a,r=this,s=i.column,l=s.lookup,u=i.level;n=n||[],t=t||0,l&&(o=(0,v.compileGetter)(l.displayExpr),a=(0,v.compileGetter)(l.valueExpr));for(var c=0;c<e.length;c++)e[c]=r._normalizeGroupItem(e[c],t,{column:i.column,headerFilterOptions:i.headerFilterOptions,displaySelector:o,valueSelector:a,path:n}),"items"in e[c]&&(t!==u&&(0,x.isDefined)(e[c].value)?r._processGroupItems(e[c].items,t+1,n,i):delete e[c].items),n.pop()},getDataSource:function(e){var t,n,i,o=this,a=o._dataController.dataSource(),r=h.default.getHeaderFilterGroupParameters(e,a&&a.remoteOperations().grouping),s=e.headerFilter&&e.headerFilter.dataSource,l=o.option("headerFilter"),u=!1,c={component:o.component};if(a)return(0,x.isDefined)(s)&&!(0,x.isFunction)(s)?c.dataSource=(0,C.normalizeDataSourceOptions)(s):e.lookup?(u=!0,a=e.lookup.dataSource,(0,x.isFunction)(a)&&!(0,I.isWrapped)(a)&&(a=a({})),a=(0,C.normalizeDataSourceOptions)(a),c.dataSource=a):(n=Array.isArray(r)?r.length-1:0,o._currentColumn=e,t=o._dataController.getCombinedFilter(),o._currentColumn=null,c.dataSource={filter:t,group:r,useDefaultSearch:!0,load:function(t){var i=new T.Deferred;return t.dataField=e.dataField||e.name,a.load(t).done(function(t){o._processGroupItems(t,null,null,{level:n,column:e,headerFilterOptions:l}),i.resolve(t)}).fail(i.reject),i}}),(0,x.isFunction)(s)&&s.call(e,c),i=c.dataSource.postProcess,c.dataSource.postProcess=function(t){var n=t;return u&&(0!==this.pageIndex()||this.searchValue()||(n=n.slice(0),n.unshift(null)),o._processGroupItems(n,null,null,{level:0,column:e,headerFilterOptions:l})),n=i&&i.call(this,n)||n,o._updateSelectedState(n,e),n},c.dataSource},getCurrentColumn:function(){return this._currentColumn},showHeaderFilterMenu:function(e,t){var n=this._columnsController,i=(0,w.extend)(!0,{},this._columnsController.getColumns()[e]);if(i){var o=n.getVisibleIndex(e),a=t?this.getView("headerPanel"):this.getView("columnHeadersView"),r=r||a.getColumnElements().eq(t?i.groupIndex:o);this.showHeaderFilterMenuBase({columnElement:r,column:i,applyFilter:!0,apply:function(){n.columnOption(e,{filterValues:this.filterValues,filterType:this.filterType})}})}},showHeaderFilterMenuBase:function(e){var t=this,n=this,i=e.column;if(i){var o=c.default.getGroupInterval(i),a=n._dataController.dataSource(),r=a&&a.remoteOperations().filtering;(0,w.extend)(e,i,{type:o&&o.length>1?"tree":"list",remoteFiltering:r,onShowing:function(t){var i=t.component.overlayContent().dxResizable("instance");i&&i.option("onResizeEnd",function(t){var i=n.getController("columns"),o=i.columnOption(e.dataField,"headerFilter");o=o||{},o.width=t.width,o.height=t.height,i.columnOption(e.dataField,"headerFilter",o,!0)})},onHidden:function(){return(0,D.restoreFocus)(t)}}),e.dataSource=n.getDataSource(e),e.isFilterBuilder&&(e.dataSource.filter=null,e.alignment="right"),n._headerFilterView.showHeaderFilterMenu(e.columnElement,e)}},hideHeaderFilterMenu:function(){this._headerFilterView.hideHeaderFilterMenu()}}}()),O=(0,w.extend)({},p.headerFilterMixin,{_renderCellContent:function(e,t){var n,i=this,o=t.column;!o.command&&(0,p.allowHeaderFiltering)(o)&&i.option("headerFilter.visible")&&"header"===t.rowType&&(n=i._applyColumnState({
54name:"headerFilter",rootElement:e,column:o,showColumnLines:i.option("showColumnLines")}),n&&i._subscribeToIndicatorEvent(n,o,"headerFilter")),i.callBase(e,t)},_subscribeToIndicatorEvent:function(e,t,n){var i=this;"headerFilter"===n&&r.default.on(e,m.default.name,i.createAction(function(e){e.event.stopPropagation(),i.getController("headerFilter").showHeaderFilterMenu(t.index,!1)}))},_updateIndicator:function(e,t,n){var i=this.callBase(e,t,n);i&&this._subscribeToIndicatorEvent(i,t,n)},_updateHeaderFilterIndicators:function(){this.option("headerFilter.visible")&&this._updateIndicators("headerFilter")},_needUpdateFilterIndicators:function(){return!0},_columnOptionChanged:function(e){var t=e.optionNames;return h.default.checkChanges(t,["filterValues","filterType"])?void(this._needUpdateFilterIndicators()&&this._updateHeaderFilterIndicators()):void this.callBase(e)}}),B=(0,w.extend)({},p.headerFilterMixin,{_createGroupPanelItem:function(e,t){var n,i=this,o=i.callBase.apply(i,arguments);return!t.command&&(0,p.allowHeaderFiltering)(t)&&i.option("headerFilter.visible")&&(n=i._applyColumnState({name:"headerFilter",rootElement:o,column:{alignment:(0,b.getDefaultAlignment)(i.option("rtlEnabled")),filterValues:t.filterValues,allowHeaderFiltering:!0},showColumnLines:!0}),n&&r.default.on(n,m.default.name,i.createAction(function(e){var n=e.event;n.stopPropagation(),i.getController("headerFilter").showHeaderFilterMenu(t.index,!0)}))),o}}),P={skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var e=this,t=[e.callBase()],n=e._columnsController.getVisibleColumns(),i=e.getController("headerFilter"),o=i.getCurrentColumn();return(0,y.each)(n,function(e,n){var i;if((!o||o.index!==n.index)&&(0,p.allowHeaderFiltering)(n)&&n.calculateFilterExpression&&Array.isArray(n.filterValues)&&n.filterValues.length){var a=[];(0,y.each)(n.filterValues,function(e,t){Array.isArray(t)?i=t:(n.deserializeValue&&!h.default.isDateType(n.dataType)&&"number"!==n.dataType&&(t=n.deserializeValue(t)),i=n.createFilterExpression(t,"=","headerFilter")),i&&(i.columnIndex=n.index),a.push(i)}),a=h.default.combineFilters(a,"or"),t.push("exclude"===n.filterType?["!",a]:a)}}),h.default.combineFilters(t)}};e.exports={invertFilterExpression:o,defaultOptions:function(){return{headerFilter:{visible:!1,width:252,height:325,allowSearch:!1,searchTimeout:500,texts:{emptyValue:g.default.format("dxDataGrid-headerFilterEmptyValue"),ok:g.default.format("dxDataGrid-headerFilterOK"),cancel:g.default.format("dxDataGrid-headerFilterCancel")}}}},controllers:{headerFilter:A},views:{headerFilterView:p.HeaderFilterView},extenders:{controllers:{data:P},views:{columnHeadersView:O,headerPanel:B}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){e=e||[];for(var t=0;t<e.length;t++)e[t].selected=!1,o(e[t].items)}function a(e,t){if(!e.component.option("searchValue")){var n=(0,l.default)(e.element).find(".dx-list-select-all-checkbox").data("dxCheckBox");n&&t&&t.length&&n.option("value",void 0)}}function r(e,t){var n=t.headerFilter;return n&&(0,p.isDefined)(n.allowSearch)?n.allowSearch:e.option("headerFilter.allowSearch")}var s=n(2),l=i(s),u=n(39),c=i(u),d=n(36),h=i(d),p=n(1),f=n(3),g=n(0),_=n(5),m=i(_),v=n(46),y=i(v),x=n(141),b=i(x),w=n(101),C=i(w),k="dx-header-filter",S="dx-header-filter-menu",I="text";t.updateHeaderFilterItemSelectionState=function(e,t,n){if(t^n){if(e.selected=!0,n&&e.items)for(var i=0;i<e.items.length;i++)if(!e.items[i].selected){e.selected=void 0;break}}else(n||e.selected)&&(e.selected=!1,o(e.items))},t.HeaderFilterView=c.default.View.inherit({getPopupContainer:function(){return this._popupContainer},getListContainer:function(){return this._listContainer},applyHeaderFilter:function(e){var t=this,n=t.getListContainer(),i=!n.option("searchValue")&&!e.isFilterBuilder&&n.$element().find(".dx-checkbox").eq(0).hasClass("dx-checkbox-checked"),o=[],a=function e(t,i,o){(0,f.each)(i,function(i,a){if(void 0!==a.selected&&!!a.selected^o){var r=a.items&&a.items.some(function(e){return void 0!==e.selected});if(!n.option("searchValue")||!r)return void t.push(a.value)}a.items&&a.items.length&&e(t,a.items,o)})};i?Array.isArray(e.filterValues)&&(e.filterValues=[]):"tree"===e.type&&(a(o,n.option("items"),"exclude"===e.filterType),e.filterValues=o),e.filterValues&&!e.filterValues.length&&(e.filterValues=null),e.apply(),t.hideHeaderFilterMenu()},showHeaderFilterMenu:function(e,t){var n,i=this;t&&(i._initializePopupContainer(t),n=i.getPopupContainer(),i.hideHeaderFilterMenu(),i.updatePopup(e,t),n.show())},hideHeaderFilterMenu:function(){var e=this.getPopupContainer();e&&e.hide()},updatePopup:function(e,t){var n=this,i="right"===t.alignment?"left":"right";n._popupContainer&&(n._cleanPopupContent(),n._popupContainer.option("position",{my:i+" top",at:i+" bottom",of:e,collision:"flip fit"}))},_getSearchExpr:function(e){var t=e.lookup,n=e.useDefaultSearchExpr,i=e.headerFilter&&e.headerFilter.dataSource;if(n||(0,p.isDefined)(i)&&!(0,p.isFunction)(i))return I;if(t)return t.displayExpr||"this";if(e.dataSource){var o=e.dataSource.group;if(Array.isArray(o)&&o.length>0)return o[0].selector;if((0,p.isFunction)(o)&&!e.remoteFiltering)return o}return e.dataField||e.selector},_cleanPopupContent:function(){this._popupContainer&&this._popupContainer.$content().empty()},_initializePopupContainer:function(e){var t=this,n=t.element(),i=t.option("headerFilter"),o=e.headerFilter&&e.headerFilter.width||i&&i.width,a=e.headerFilter&&e.headerFilter.height||i&&i.height,r={width:o,height:a,visible:!1,shading:!1,showTitle:!1,showCloseButton:!1,closeOnTargetScroll:!1,dragEnabled:!1,closeOnOutsideClick:!0,focusStateEnabled:!1,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:i.texts.ok,onClick:function(){t.applyHeaderFilter(e)}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:i.texts.cancel,onClick:function(){t.hideHeaderFilterMenu()}}}],resizeEnabled:!0,onShowing:function(n){n.component.$content().parent().addClass("dx-dropdowneditor-overlay"),t._initializeListContainer(e),e.onShowing&&e.onShowing(n)},onShown:function(e){m.default.trigger(e.component.$content().find(".dx-checkbox").first(),"focus")},onHidden:e.onHidden,onInitialized:function(e){var t=e.component;t.option("animation",t._getDefaultOptions().animation)}};(0,p.isDefined)(t._popupContainer)?t._popupContainer.option(r):t._popupContainer=t._createComponent(n,y.default,r)},_initializeListContainer:function(e){var t=this,n=t._popupContainer.$content(),i={searchEnabled:r(t,e),searchTimeout:t.option("headerFilter.searchTimeout"),searchMode:e.headerFilter&&e.headerFilter.searchMode||"",dataSource:e.dataSource,onContentReady:function(){t.renderCompleted.fire()},itemTemplate:function(t,n,i){var o=(0,l.default)(i);return e.encodeHtml?o.text(t.text):o.html(t.text)}};"tree"===e.type?t._listContainer=t._createComponent((0,l.default)("<div>").appendTo(n),b.default,(0,g.extend)(i,{showCheckBoxesMode:e.isFilterBuilder?"normal":"selectAll",keyExpr:"id"})):t._listContainer=t._createComponent((0,l.default)("<div>").appendTo(n),C.default,(0,g.extend)(i,{searchExpr:t._getSearchExpr(e),pageLoadMode:"scrollBottom",showSelectionControls:!0,selectionMode:e.isFilterBuilder?"multiple":"all",onSelectionChanged:function(t){var n=t.component.option("items"),i=t.component.option("selectedItems");t.component._selectedItemsUpdating||t.component.option("searchValue")||e.isFilterBuilder||(0===i.length&&n.length&&(!e.filterValues||e.filterValues.length<=1)?(e.filterType="include",e.filterValues=[]):i.length===n.length&&(e.filterType="exclude",e.filterValues=[])),(0,f.each)(n,function(t,n){var o,a=h.default.getIndexByKey(n,i,null)>=0,r=!!n.selected;r!==a&&(n.selected=a,e.filterValues=e.filterValues||[],o=h.default.getIndexByKey(n.value,e.filterValues,null),o>=0&&e.filterValues.splice(o,1),a^"exclude"===e.filterType&&e.filterValues.push(n.value))}),a(t,e.filterValues)},onContentReady:function(t){var n=t.component,i=n.option("items"),o=[];(0,f.each)(i,function(){this.selected&&o.push(this)}),n._selectedItemsUpdating=!0,n.option("selectedItems",o),n._selectedItemsUpdating=!1,a(t,e.filterValues)}}))},_renderCore:function(){this.element().addClass(S)}});var T=t.allowHeaderFiltering=function(e){return(0,p.isDefined)(e.allowHeaderFiltering)?e.allowHeaderFiltering:e.allowFiltering};t.headerFilterMixin={_applyColumnState:function(e){var t,n=e.rootElement,i=e.column;return"headerFilter"===e.name?(n.find("."+k).remove(),T(i)&&(t=this.callBase(e).toggleClass("dx-header-filter-empty",this._isHeaderFilterEmpty(i)),this.option("useLegacyKeyboardNavigation")||t.attr("tabindex",this.option("tabindex")||0)),t):this.callBase(e)},_isHeaderFilterEmpty:function(e){return!e.filterValues||!e.filterValues.length},_getIndicatorClassName:function(e){return"headerFilter"===e?k:this.callBase(e)},_renderIndicator:function(e){var t,n=e.container,i=e.indicator;return"headerFilter"===e.name&&(t=this.option("rtlEnabled"),n.children().length&&(!t&&"right"===e.columnAlignment||t&&"left"===e.columnAlignment))?void n.prepend(i):void this.callBase(e)},optionChanged:function(e){if("headerFilter"===e.name){var t="columnHeadersView"===this.name;this._invalidate(t,t),e.handled=!0}else this.callBase(e)}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e.dataField||e.name}function a(e){e.forEach(function(e){var t=o(e);if(!(0,r.isDefined)(t)&&e.allowFiltering)throw new h.default.Error("E1049",e.caption)})}var r=n(1),s=n(39),l=i(s),u=n(200),c=i(u),d=n(17),h=i(d),p=n(36),f=i(p),g=n(165),_=i(g),m=n(633),v=i(m),y=["=","<>","<","<=",">",">=","notcontains","contains","startswith","endswith","between"],x="include",b="exclude",w=l.default.Controller.inherit(function(){var e=function(){return{filterType:x,filterValues:void 0}},t=function(e){return!(_.default.getGroupInterval(e)||e.headerFilter&&e.headerFilter.dataSource)},n=function(n,i){if(!n)return e();var o,a=n[1],r=n[2],s=Array.isArray(r);if(!s&&!t(i))return e();switch(a){case"anyof":case"=":o=x;break;case"noneof":case"<>":o=b;break;default:return e()}return{filterType:o,filterValues:s?r:[r]}},i=function(e){var t=e.filterValue;if((0,r.isDefined)(t)){var n=e.selectedFilterOperation||e.defaultFilterOperation||c.default.getDefaultOperation(e),i=[o(e),n,e.filterValue];return i}return null},s=function(e){var n,i,a=e.filterValues;return a?(t(e)&&1===e.filterValues.length&&!Array.isArray(a[0])?(n=e.filterType===b?"<>":"=",i=a[0]):(n=e.filterType===b?"noneof":"anyof",i=a),[o(e),n,i]):null},l=function(e,t,i){var a=n(i,t);e.columnOption(o(t),a)},u=function(e,t,n){var i,a=n&&n[1],s=t.filterOperations||t.defaultFilterOperations;(!s||s.indexOf(a)>=0||a===t.defaultFilterOperation)&&y.indexOf(a)>=0?(a!==t.defaultFilterOperation||(0,r.isDefined)(t.selectedFilterOperation)||(a=t.selectedFilterOperation),i={filterValue:n[2],selectedFilterOperation:a}):i={filterValue:void 0,selectedFilterOperation:void 0},e.columnOption(o(t),i)};return{syncFilterValue:function(){var e=this,t=e.getController("columns"),n=t.getFilteringColumns();this._skipSyncColumnOptions=!0,n.forEach(function(n){var i=c.default.getMatchedConditions(e.option("filterValue"),o(n));if(1===i.length){var a=i[0];l(t,n,a),u(t,n,a)}else(0,r.isDefined)(n.filterValues)&&l(t,n),(0,r.isDefined)(n.filterValue)&&u(t,n)}),this._skipSyncColumnOptions=!1},_initSync:function(){var e=this.getController("columns").getColumns(),t=this.getController("data"),n=t.pageIndex();if(a(e),!this.option("filterValue")){var i=this.getController("columns").getFilteringColumns(),o=this.getFilterValueFromColumns(i);this.option("filterValue",o)}this.syncFilterValue(),t.pageIndex(n)},init:function(){var e=this,t=this.getController("data");t.isFilterSyncActive()&&(this.getController("columns").isAllDataTypesDefined()?this._initSync():t.dataSourceChanged.add(function(){return e._initSync()}))},_getSyncFilterRow:function(e,t){var n=i(t);return(0,r.isDefined)(n)?c.default.syncFilters(e,n):c.default.removeFieldConditionsFromFilter(e,o(t))},_getSyncHeaderFilter:function(e,t){var n=s(t);return n?c.default.syncFilters(e,n):c.default.removeFieldConditionsFromFilter(e,o(t))},getFilterValueFromColumns:function(e){if(!this.getController("data").isFilterSyncActive())return null;var t=["and"];return e&&e.forEach(function(e){var n=s(e),o=i(e);n&&c.default.addItem(n,t),o&&c.default.addItem(o,t)}),c.default.getNormalizedFilter(t)},syncFilterRow:function(e,t){this.option("filterValue",this._getSyncFilterRow(this.option("filterValue"),e))},syncHeaderFilter:function(e){this.option("filterValue",this._getSyncHeaderFilter(this.option("filterValue"),e))},getCustomFilterOperations:function(){var e=this.option("filterBuilder.customOperations")||[];return[v.default.anyOf(this.component),v.default.noneOf(this.component)].concat(e)},publicMethods:function(){return["getCustomFilterOperations"]}}}()),C={isFilterSyncActive:function(){var e=this.option("filterSyncEnabled");return"auto"===e?this.option("filterPanel.visible"):e},skipCalculateColumnFilters:function(){return(0,r.isDefined)(this.option("filterValue"))&&this.isFilterSyncActive()},_calculateAdditionalFilter:function(){var e=this;if(e.option("filterPanel.filterEnabled")===!1)return e.callBase();var t=[e.callBase()],n=e.getController("columns").getFilteringColumns(),i=e.option("filterValue");if(e.isFilterSyncActive()){var a=e.getController("headerFilter").getCurrentColumn();a&&i&&(i=c.default.removeFieldConditionsFromFilter(i,o(a)))}var r=e.getController("filterSync").getCustomFilterOperations(),s=c.default.getFilterExpression(i,n,r,"filterBuilder");return s&&t.push(s),f.default.combineFilters(t)},_parseColumnPropertyName:function(e){var t=e.match(/.*\.(.*)/);return t[1]},clearFilter:function(e){this.component.beginUpdate(),arguments.length>0?("filterValue"===e&&this.option("filterValue",null),this.callBase(e)):(this.option("filterValue",null),this.callBase()),this.component.endUpdate()},optionChanged:function(e){switch(e.name){case"filterValue":this._applyFilter(),this.isFilterSyncActive()&&this.getController("filterSync").syncFilterValue(),e.handled=!0;break;case"filterSyncEnabled":e.handled=!0;break;case"columns":if(this.isFilterSyncActive()){var t=this.getController("columns").getColumnByPath(e.fullName),n=this.getController("filterSync");if(t&&!n._skipSyncColumnOptions){var i=this._parseColumnPropertyName(e.fullName);n._skipSyncColumnOptions=!0,"filterType"===i?b!==e.value&&b!==e.previousValue||n.syncHeaderFilter(t):"filterValues"===i?n.syncHeaderFilter(t):["filterValue","selectedFilterOperation"].indexOf(i)>-1&&n.syncFilterRow(t,t.filterValue),n._skipSyncColumnOptions=!1}}this.callBase(e);break;default:this.callBase(e)}}},k={_isHeaderFilterEmpty:function(e){return this.getController("data").isFilterSyncActive()?!c.default.filterHasField(this.option("filterValue"),o(e)):this.callBase(e)},_needUpdateFilterIndicators:function(){return!this.getController("data").isFilterSyncActive()},optionChanged:function(e){"filterValue"===e.name?this._updateHeaderFilterIndicators():this.callBase(e)}};e.exports={defaultOptions:function(){return{filterValue:null,filterSyncEnabled:"auto"}},controllers:{filterSync:w},extenders:{controllers:{data:C},views:{columnHeadersView:k}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(11),s=i(r),l=n(15),u=i(l),c=n(5),d=i(c),h=n(18),p=i(h),f=n(9),g=i(f),_=n(0),m=n(14),v=i(m),y=n(200),x=i(y),b=n(6),w=i(b),C=n(1),k=n(141),S=i(k),I=n(46),T=i(I),D=n(246),E=n(354),A=i(E),O=n(8),B="dx-filterbuilder",P=B+"-group",M=P+"-item",R=P+"-content",V=P+"-operations",F=P+"-operation",L=B+"-action",H=L+"-icon",z="dx-icon-plus",N="dx-icon-remove",$=B+"-text",W=$+"-part",G=$+"-separator",j=G+"-empty",q=B+"-item-field",K=B+"-item-operation",U=B+"-item-value",Y=B+"-item-value-text",X=B+"-overlay",Z=B+"-operations",Q=B+"-fields",J=B+"-add-condition",ee="dx-state-active",te=B+"-menu-custom-operation",ne="filterBuilder",ie="dx-state-disabled",oe="tab",ae="enter",re="escape",se=[{name:"onEditorPreparing",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onEditorPrepared",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onValueChanged",config:{excludeValidators:["disabled","readOnly"]}}],le={and:"and",or:"or",notAnd:"!and",notOr:"!or"},ue=u.default.inherit(A.default),ce=function(e,t,n){if(Array.isArray(t)){var i=t.length-1;e.empty(),t.forEach(function(t,o){(0,a.default)("<span>").addClass(W).text(t).appendTo(e),o!==i&&(0,a.default)("<span>").addClass(G).text(n&&n.valueSeparator?n.valueSeparator:"|").addClass(j).appendTo(e)})}else t?e.text(t):e.text(v.default.format("dxFilterBuilder-enterValueText"))},de=p.default.inherit({_getDefaultOptions:function(){return(0,_.extend)(this.callBase(),{onEditorPreparing:null,onEditorPrepared:null,onValueChanged:null,fields:[],defaultGroupOperation:"and",groupOperations:["and","or","notAnd","notOr"],maxGroupLevel:void 0,value:null,allowHierarchicalFields:!1,groupOperationDescriptions:{and:v.default.format("dxFilterBuilder-and"),or:v.default.format("dxFilterBuilder-or"),notAnd:v.default.format("dxFilterBuilder-notAnd"),notOr:v.default.format("dxFilterBuilder-notOr")},customOperations:[],filterOperationDescriptions:{between:v.default.format("dxFilterBuilder-filterOperationBetween"),equal:v.default.format("dxFilterBuilder-filterOperationEquals"),notEqual:v.default.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:v.default.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:v.default.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:v.default.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:v.default.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:v.default.format("dxFilterBuilder-filterOperationStartsWith"),contains:v.default.format("dxFilterBuilder-filterOperationContains"),notContains:v.default.format("dxFilterBuilder-filterOperationNotContains"),endsWith:v.default.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:v.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:v.default.format("dxFilterBuilder-filterOperationIsNotBlank")}})},_optionChanged:function(e){switch(e.name){case"onEditorPreparing":case"onEditorPrepared":case"onValueChanged":this._initActions();break;case"customOperations":this._initCustomOperations(),this._invalidate();break;case"fields":case"defaultGroupOperation":case"maxGroupLevel":case"groupOperations":case"allowHierarchicalFields":case"groupOperationDescriptions":case"filterOperationDescriptions":this._invalidate();break;case"value":if(e.value!==e.previousValue){var t=this._disableInvalidateForValue;t||(this._initModel(),this._invalidate()),this._disableInvalidateForValue=!1,this.executeAction("onValueChanged",{value:e.value,previousValue:e.previousValue}),this._disableInvalidateForValue=t}break;default:this.callBase(e)}},getFilterExpression:function(){var e=this._getNormalizedFields(),t=(0,_.extend)(!0,[],this._model);return x.default.getFilterExpression(x.default.getNormalizedFilter(t),e,this._customOperations,ne)},_getNormalizedFields:function(){return x.default.getNormalizedFields(this.option("fields"))},_updateFilter:function(){this._disableInvalidateForValue=!0;var e=(0,_.extend)(!0,[],this._model),t=x.default.getNormalizedFilter(e),n=x.default.getNormalizedFilter(this._getModel(this.option("value")));JSON.stringify(n)!==JSON.stringify(t)&&this.option("value",t),this._disableInvalidateForValue=!1,this._fireContentReadyAction()},_init:function(){this._initCustomOperations(),this._initModel(),this._initEditorFactory(),this._initActions(),this.callBase()},_initEditorFactory:function(){this._editorFactory=new ue},_initCustomOperations:function(){this._customOperations=x.default.getMergedOperations(this.option("customOperations"),this.option("filterOperationDescriptions.between"))},_getModel:function(e){return x.default.convertToInnerStructure(e,this._customOperations)},_initModel:function(){this._model=this._getModel(this.option("value"))},_initActions:function(){var e=this;e._actions={},se.forEach(function(t){e._actions[t.name]=e._createActionByOption(t.name,t.config)})},executeAction:function(e,t){var n=this._actions[e];return n&&n(t)},_initMarkup:function(){this.$element().addClass(B),this.callBase(),this._createGroupElementByCriteria(this._model).appendTo(this.$element())},_createConditionElement:function(e,t){return(0,a.default)("<div>").addClass(P).append(this._createConditionItem(e,t))},_createGroupElementByCriteria:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=this._createGroupElement(e,t,n),o=i.find("."+R),a=x.default.getGroupCriteria(e),r=0;r<a.length;r++){var s=a[r];x.default.isGroup(s)?this._createGroupElementByCriteria(s,a,n+1).appendTo(o):x.default.isCondition(s)&&this._createConditionElement(s,a).appendTo(o)}return i},_createGroupElement:function(e,t,n){var i=this,o=(0,a.default)("<div>").addClass(M),r=(0,a.default)("<div>").addClass(R),s=(0,a.default)("<div>").addClass(P).append(o).append(r);return null!=t&&this._createRemoveButton(function(){x.default.removeItem(t,e),s.remove(),i._updateFilter()}).appendTo(o),this._createGroupOperationButton(e).appendTo(o),this._createAddButton(function(){var t=x.default.createEmptyGroup(i.option("defaultGroupOperation"));x.default.addItem(t,e),i._createGroupElement(t,e,n+1).appendTo(r),i._updateFilter()},function(){var t=i.option("fields")[0],n=x.default.createCondition(t,i._customOperations);x.default.addItem(n,e),i._createConditionElement(n,e).appendTo(r),i._updateFilter()},n).appendTo(o),s},_createButton:function(e){return(0,a.default)("<div>").text(e)},_createGroupOperationButton:function(e){var t=this,n=this._getGroupOperations(e),i=x.default.getGroupMenuItem(e,n),o=i.text,a=n&&n.length<2?this._createButton(o).addClass(ie):this._createButtonWithMenu({caption:o,menu:{items:n,displayExpr:"text",keyExpr:"value",onItemClick:function(n){i!==n.itemData&&(x.default.setGroupValue(e,n.itemData.value),a.html(n.itemData.text),i=n.itemData,t._updateFilter())},onContentReady:function(e){e.component.selectItem(i)},cssClass:V}});return a.addClass($).addClass(F).attr("tabindex",0)},_createButtonWithMenu:function(e){var t=this,n=function(){t.$element().find("."+ee).removeClass(ee),t.$element().find(".dx-overlay .dx-treeview").remove(),t.$element().find(".dx-overlay").remove()},i=this.option("rtlEnabled"),o=function(e){return function(t){e(t),"dxclick"===t.event.type&&n()}},r=i?"right":"left",s=this._createButton(e.caption);return(0,_.extend)(e.menu,{focusStateEnabled:!0,selectionMode:"single",onItemClick:o(e.menu.onItemClick),onHiding:function(e){s.removeClass(ee)},position:{my:r+" top",at:r+" bottom",offset:"0 1",of:s,collision:"flip"},animation:null,onHidden:function(){n()},cssClass:X+" "+e.menu.cssClass,rtlEnabled:i}),e.popup={onShown:function(t){var n=(0,a.default)(t.component.content()).find(".dx-treeview"),i=n.dxTreeView("instance");d.default.on(n,"keyup keydown",function(n){var i=(0,O.normalizeKeyName)(n);("keydown"===n.type&&i===oe||"keyup"===n.type&&(i===re||i===ae))&&(t.component.hide(),d.default.trigger(e.menu.position.of,"focus"))}),i.focus(),i.option("focusedElement",null)}},this._subscribeOnClickAndEnterKey(s,function(){n(),t._createPopupWithTreeView(e,t.$element()),s.addClass(ee)}),s},_hasValueButton:function(e){var t=x.default.getCustomOperation(this._customOperations,e[1]);return t?t.hasValue!==!1:null!==e[2]},_createOperationButtonWithMenu:function(e,t){var n=this,i=this,o=x.default.getAvailableOperations(t,this.option("filterOperationDescriptions"),this._customOperations),r=x.default.getOperationFromAvailable(x.default.getOperationValue(e),o),s=this._createButtonWithMenu({caption:r.text,menu:{items:o,displayExpr:"text",onItemRendered:function(e){e.itemData.isCustom&&(0,a.default)(e.itemElement).addClass(te)},onContentReady:function(e){e.component.selectItem(r)},onItemClick:function(o){if(r!==o.itemData){r=o.itemData,x.default.updateConditionByOperation(e,r.value,i._customOperations);var a=s.siblings().filter("."+U);i._hasValueButton(e)?(0!==a.length&&a.remove(),i._createValueButton(e,t).appendTo(s.parent())):a.remove(),s.html(r.text),n._updateFilter()}},cssClass:Z}}).addClass($).addClass(K).attr("tabindex",0);return s},_createOperationAndValueButtons:function(e,t,n){this._createOperationButtonWithMenu(e,t).appendTo(n),this._hasValueButton(e)&&this._createValueButton(e,t).appendTo(n)},_createFieldButtonWithMenu:function(e,t,n){var i=this,o=this,a=this.option("allowHierarchicalFields"),r=x.default.getItems(e,a),s=x.default.getField(n.name||n.dataField,r),l=function(e,t){return a?x.default.getCaptionWithParents(e,t):e.caption},u=this._createButtonWithMenu({caption:l(s,r),menu:{items:r,dataStructure:"plain",displayExpr:"caption",onItemClick:function(e){if(s!==e.itemData){s=e.itemData,t[0]=s.name||s.dataField,t[2]="object"===s.dataType?null:"",x.default.updateConditionByOperation(t,x.default.getDefaultOperation(s),o._customOperations),u.siblings().filter("."+$).remove(),o._createOperationAndValueButtons(t,s,u.parent());var n=l(s,e.component.option("items"));u.html(n),i._updateFilter()}},onContentReady:function(e){e.component.selectItem(s)},cssClass:Q}}).addClass($).addClass(q).attr("tabindex",0);return u},_createConditionItem:function(e,t){var n=this,i=(0,a.default)("<div>").addClass(M),o=this._getNormalizedFields(),r=x.default.getField(e[0],o);return this._createRemoveButton(function(){x.default.removeItem(t,e),i.remove(),n._updateFilter()}).appendTo(i),this._createFieldButtonWithMenu(o,e,r).appendTo(i),this._createOperationAndValueButtons(e,r,i),i},_getGroupOperations:function(e){var t=this.option("groupOperations"),n=this.option("groupOperationDescriptions");return t&&t.length||(t=[x.default.getGroupValue(e).replace("!","not")]),t.map(function(e){return{text:n[e],value:le[e]}})},_createRemoveButton:function(e){var t=(0,a.default)("<div>").addClass(H).addClass(N).addClass(L).attr("tabindex",0);return this._subscribeOnClickAndEnterKey(t,e),t},_createAddButton:function(e,t,n){var i=void 0,o=this.option("maxGroupLevel");return(0,C.isDefined)(o)&&n>=o?(i=this._createButton(),this._subscribeOnClickAndEnterKey(i,t)):i=this._createButtonWithMenu({menu:{items:[{caption:v.default.format("dxFilterBuilder-addCondition"),click:t},{caption:v.default.format("dxFilterBuilder-addGroup"),click:e}],displayExpr:"caption",onItemClick:function(e){e.itemData.click()},cssClass:J}}),i.addClass(H).addClass(z).addClass(L).attr("tabindex",0)},_createValueText:function(e,t,n){var i=this,o=(0,a.default)("<div>").html("&nbsp;").addClass(Y).attr("tabindex",0).appendTo(n),r=e[2],s=x.default.getCustomOperation(i._customOperations,e[1]);return!s&&t.lookup?x.default.getCurrentLookupValueText(t,r,function(e){ce(o,e)}):w.default.when(x.default.getCurrentValueText(t,r,s)).done(function(e){ce(o,e,s)}),i._subscribeOnClickAndEnterKey(o,function(o){"keyup"===o.type&&o.stopPropagation(),i._createValueEditorWithEvents(e,t,n)}),o},_updateConditionValue:function(e,t,n){var i=e[2]!==t;i&&(e[2]=t),n(),this._updateFilter()},_addDocumentKeyUp:function(e,t){var n=s.default.getDocument(),i=function(e){return o||a?void(a=!1):void t(e)};d.default.on(n,"keyup",i);var o=!1,a=!1,r=e.find("input");d.default.on(r,"compositionstart",function(){o=!0}),d.default.on(r,"compositionend",function(){o=!1,a=!0}),d.default.on(r,"keydown",function(e){229!==e.which&&(a=!1)}),this._documentKeyUpHandler=i},_addDocumentClick:function(e,t){var n=this,i=s.default.getDocument(),o=function(i){n._isFocusOnEditorParts(e,i.target)||(d.default.trigger(e.find("input"),"change"),t())};d.default.on(i,"dxpointerdown",o),this._documentClickHandler=o},_isFocusOnEditorParts:function(e,t){var n=t||s.default.getActiveElement();return(0,a.default)(n).closest(e.children()).length||(0,a.default)(n).closest(".dx-dropdowneditor-overlay").length},_removeEvents:function(){var e=s.default.getDocument();(0,C.isDefined)(this._documentKeyUpHandler)&&d.default.off(e,"keyup",this._documentKeyUpHandler),(0,C.isDefined)(this._documentClickHandler)&&d.default.off(e,"dxpointerdown",this._documentClickHandler)},_dispose:function(){this._removeEvents(),this.callBase()},_createValueEditorWithEvents:function(e,t,n){var i=this,o=e[2],a=function(){return n.empty(),i._removeEvents(),i._createValueText(e,t,n)},r=function(){i._updateConditionValue(e,o,function(){a()})},s={value:""===o?null:o,filterOperation:x.default.getOperationValue(e),setValue:function(e){o=null===e?"":e},closeEditor:r,text:n.text()};n.empty();var l=this._createValueEditor(n,t,s);d.default.trigger(l.find("input").not(":hidden").eq(0),"focus"),this._removeEvents(),this._addDocumentClick(l,r),this._addDocumentKeyUp(l,function(t){var r=(0,O.normalizeKeyName)(t);if(r===oe){if(i._isFocusOnEditorParts(l))return;i._updateConditionValue(e,o,function(){a(),t.shiftKey&&d.default.trigger(n.prev(),"focus")})}r===re&&d.default.trigger(a(),"focus"),r===ae&&i._updateConditionValue(e,o,function(){d.default.trigger(a(),"focus")})}),this._fireContentReadyAction()},_createValueButton:function(e,t){var n=(0,a.default)("<div>").addClass($).addClass(U);return this._createValueText(e,t,n),n},_createValueEditor:function(e,t,n){var i=(0,a.default)("<div>").attr("tabindex",0).appendTo(e),o=x.default.getCustomOperation(this._customOperations,n.filterOperation),r=o&&o.editorTemplate?o.editorTemplate:t.editorTemplate;if(r){var s=this._getTemplate(r);s.render({model:(0,_.extend)({field:t},n),container:i})}else this._editorFactory.createEditor.call(this,i,(0,_.extend)({},t,n,{parentType:ne}));return i},_createPopupWithTreeView:function(e,t){var n=this,i=(0,a.default)("<div>").addClass(e.menu.cssClass).appendTo(t);this._createComponent(i,T.default,{onHiding:e.menu.onHiding,onHidden:e.menu.onHidden,rtlEnabled:e.menu.rtlEnabled,position:e.menu.position,animation:e.menu.animation,contentTemplate:function(t){var i=(0,a.default)("<div>");return n._createComponent(i,S.default,e.menu),i},maxHeight:function(){return(0,D.getElementMaxHeightByWindow)(e.menu.position.of)},visible:!0,focusStateEnabled:!1,closeOnOutsideClick:!0,onShown:e.popup.onShown,shading:!1,width:"auto",height:"auto",showTitle:!1})},_subscribeOnClickAndEnterKey:function(e,t){d.default.on(e,"dxclick",t),d.default.on(e,"keyup",function(e){(0,O.normalizeKeyName)(e)===ae&&t(e)})}});(0,g.default)("dxFilterBuilder",de),e.exports=de,e.exports.renderValueText=ce},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(39),s=i(r),l=n(0),u=n(367),c=i(u),d=n(14),h=i(d),p=n(162),f=i(p),g=n(46),_=i(g),m=n(105),v=s.default.View.inherit({_renderCore:function(){this._updatePopupOptions()},_updatePopupOptions:function(){this.option("filterBuilderPopup.visible")?this._initPopup():this._filterBuilderPopup&&this._filterBuilderPopup.hide()},_disposePopup:function(){this._filterBuilderPopup&&(this._filterBuilderPopup.dispose(),this._filterBuilderPopup=void 0),this._filterBuilder&&(this._filterBuilder.dispose(),this._filterBuilder=void 0)},_initPopup:function(){var e=this;e._disposePopup(),e._filterBuilderPopup=e._createComponent(e.element(),_.default,(0,l.extend)({title:h.default.format("dxDataGrid-filterBuilderPopupTitle"),contentTemplate:function(t){return e._getPopupContentTemplate(t)},onOptionChanged:function(t){"visible"===t.name&&e.option("filterBuilderPopup.visible",t.value)},toolbarItems:e._getPopupToolbarItems()},e.option("filterBuilderPopup"),{onHidden:function(t){(0,m.restoreFocus)(e),e._disposePopup()}}))},_getPopupContentTemplate:function(e){var t=(0,a.default)(e),n=(0,a.default)("<div>").appendTo((0,a.default)(e));this._filterBuilder=this._createComponent(n,c.default,(0,l.extend)({value:this.option("filterValue"),fields:this.getController("columns").getFilteringColumns()},this.option("filterBuilder"),{customOperations:this.getController("filterSync").getCustomFilterOperations()
55})),this._createComponent(t,f.default,{direction:"both"})},_getPopupToolbarItems:function(){var e=this;return[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:h.default.format("OK"),onClick:function(t){var n=e._filterBuilder.option("value");e.option("filterValue",n),e._filterBuilderPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:h.default.format("Cancel"),onClick:function(t){e._filterBuilderPopup.hide()}}}]},optionChanged:function(e){switch(e.name){case"filterBuilder":case"filterBuilderPopup":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}}});e.exports={defaultOptions:function(){return{filterBuilder:{groupOperationDescriptions:{and:h.default.format("dxFilterBuilder-and"),or:h.default.format("dxFilterBuilder-or"),notAnd:h.default.format("dxFilterBuilder-notAnd"),notOr:h.default.format("dxFilterBuilder-notOr")},filterOperationDescriptions:{between:h.default.format("dxFilterBuilder-filterOperationBetween"),equal:h.default.format("dxFilterBuilder-filterOperationEquals"),notEqual:h.default.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:h.default.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:h.default.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:h.default.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:h.default.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:h.default.format("dxFilterBuilder-filterOperationStartsWith"),contains:h.default.format("dxFilterBuilder-filterOperationContains"),notContains:h.default.format("dxFilterBuilder-filterOperationNotContains"),endsWith:h.default.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:h.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:h.default.format("dxFilterBuilder-filterOperationIsNotBlank")}},filterBuilderPopup:{}}},views:{filterBuilderView:v}}},function(e,t,n){e.exports=n(365)},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(39),l=i(s),u=n(36),c=i(u),d=n(5),h=i(d),p=n(14),f=i(p),g=n(103),_=i(g),m=n(200),v=i(m),y=n(6),x=n(32),b=i(x),w=n(253),C="filter-panel",k=C+"-text",S=C+"-checkbox",I=C+"-clear-filter",T=C+"-left",D="filterPanel",E=l.default.View.inherit({isVisible:function(){return this.option("filterPanel.visible")&&this.getController("data").dataSource()},init:function(){var e=this;this.getController("data").dataSourceChanged.add(function(){return e.render()})},_renderCore:function(){var e,t=this,n=t.element();n.empty().addClass(t.addWidgetPrefix(C)),e=(0,a.default)("<div>").addClass(t.addWidgetPrefix(T)).appendTo(n),t.option("filterValue")||t._filterValueBuffer?(e.append(t._getCheckElement()).append(t._getFilterElement()).append(t._getTextElement()),n.append(t._getRemoveButtonElement())):e.append(t._getFilterElement()).append(t._getTextElement())},_getCheckElement:function(){var e=this,t=(0,a.default)("<div>").addClass(this.addWidgetPrefix(S));return e._createComponent(t,_.default,{value:e.option("filterPanel.filterEnabled"),onValueChanged:function(t){e.option("filterPanel.filterEnabled",t.value)}}),t.attr("title",this.option("filterPanel.texts.filterEnabledHint")),t},_getFilterElement:function(){var e=this,t=(0,a.default)("<div>").addClass("dx-icon-filter");return h.default.on(t,"click",function(){return e._showFilterBuilder()}),(0,w.registerKeyboardAction)("filterPanel",e,t,void 0,function(){return e._showFilterBuilder()}),e._addTabIndexToElement(t),t},_getTextElement:function(){var e,t=this,n=(0,a.default)("<div>").addClass(t.addWidgetPrefix(k)),i=t.option("filterValue");return i?(0,y.when)(t.getFilterText(i,t.getController("filterSync").getCustomFilterOperations())).done(function(e){var o=t.option("filterPanel.customizeText");if(o){var a=o({component:t.component,filterValue:i,text:e});"string"==typeof a&&(e=a)}n.text(e)}):(e=t.option("filterPanel.texts.createFilter"),n.text(e)),h.default.on(n,"click",function(){return t._showFilterBuilder()}),(0,w.registerKeyboardAction)("filterPanel",t,n,void 0,function(){return t._showFilterBuilder()}),t._addTabIndexToElement(n),n},_showFilterBuilder:function(){this.option("filterBuilderPopup.visible",!0)},_getRemoveButtonElement:function(){var e=this,t=function(){return e.option("filterValue",null)},n=(0,a.default)("<div>").addClass(e.addWidgetPrefix(I)).text(e.option("filterPanel.texts.clearFilter"));return h.default.on(n,"click",t),(0,w.registerKeyboardAction)("filterPanel",this,n,void 0,t),e._addTabIndexToElement(n),n},_addTabIndexToElement:function(e){if(!this.option("useLegacyKeyboardNavigation")){var t=this.option("tabindex")||0;e.attr("tabindex",t)}},optionChanged:function(e){switch(e.name){case"filterValue":this._invalidate(),this.option("filterPanel.filterEnabled",!0),e.handled=!0;break;case"filterPanel":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}},_getConditionText:function(e,t,n){var i="["+e+"] "+t;return(0,r.isDefined)(n)&&(i+=n),i},_getValueMaskedText:function(e){return Array.isArray(e)?"('"+e.join("', '")+"')":" '"+e+"'"},_getValueText:function(e,t,n){var i=this,o=new y.Deferred,a=t&&t.customizeText;if((0,r.isDefined)(n)||a)if(!a&&e.lookup)v.default.getCurrentLookupValueText(e,n,function(e){o.resolve(i._getValueMaskedText(e))});else{var s=Array.isArray(n)?n:c.default.getDisplayValue(e,n);(0,y.when)(v.default.getCurrentValueText(e,s,t,D)).done(function(e){o.resolve(i._getValueMaskedText(e))})}else o.resolve("");return o.promise()},getConditionText:function(e,t){var n,i=this,o=e[1],a=new y.Deferred,r=v.default.getCustomOperation(t.customOperations,o),s=v.default.getField(e[0],t.columns),l=s.caption||"",u=e[2];return n=r?r.caption||b.default.captionize(r.name):null===u?v.default.getCaptionByOperation("="===o?"isblank":"isnotblank",t.filterOperationDescriptions):v.default.getCaptionByOperation(o,t.filterOperationDescriptions),this._getValueText(s,r,u).done(function(e){a.resolve(i._getConditionText(l,n,e))}),a},getGroupText:function(e,t,n){var i=this,o=new y.Deferred,a=[],r=v.default.getGroupValue(e);return e.forEach(function(e){v.default.isCondition(e)?a.push(i.getConditionText(e,t)):v.default.isGroup(e)&&a.push(i.getGroupText(e,t,!0))}),y.when.apply(this,a).done(function(){for(var e=arguments.length,i=Array(e),a=0;a<e;a++)i[a]=arguments[a];var s=void 0;if("!"===r[0]){var l=t.groupOperationDescriptions["not"+r.substring(1,2).toUpperCase()+r.substring(2)].split(" ");s=l[0]+" "+i[0]}else s=i.join(" "+t.groupOperationDescriptions[r]+" ");n&&(s="("+s+")"),o.resolve(s)}),o},getFilterText:function(e,t){var n=this,i={customOperations:t,columns:n.getController("columns").getFilteringColumns(),filterOperationDescriptions:n.option("filterBuilder.filterOperationDescriptions"),groupOperationDescriptions:n.option("filterBuilder.groupOperationDescriptions")};return v.default.isCondition(e)?n.getConditionText(e,i):n.getGroupText(e,i)}});e.exports={defaultOptions:function(){return{filterPanel:{visible:!1,filterEnabled:!0,texts:{createFilter:f.default.format("dxDataGrid-filterPanelCreateFilter"),clearFilter:f.default.format("dxDataGrid-filterPanelClearFilter"),filterEnabledHint:f.default.format("dxDataGrid-filterPanelFilterEnabledHint")}}}},views:{filterPanelView:E},extenders:{controllers:{data:{optionChanged:function(e){switch(e.name){case"filterPanel":this._applyFilter(),e.handled=!0;break;default:this.callBase(e)}}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return(0,c.isDefined)(e.allowSearch)?e.allowSearch:e.allowFiltering}function a(e,t){var n=e.lookup;return n?e.parseValue.call(n,t):e.parseValue?e.parseValue(t):t}var r=n(2),s=i(r),l=n(11),u=i(l),c=n(1),d=n(20),h=n(3),p=n(36),f=n(14),g=i(f),_=n(41),m=i(_),v="search-panel",y="search-text",x=700;e.exports={defaultOptions:function(){return{searchPanel:{visible:!1,width:160,placeholder:g.default.format("dxDataGrid-searchPanelPlaceholder"),highlightSearchText:!0,highlightCaseSensitive:!1,text:"",searchVisibleColumnsOnly:!1}}},extenders:{controllers:{data:function(){var e=function(e,t){function n(e){var t,n,i=(0,d.compileGetter)(l.valueExpr);for(t=0;t<e.length;t++)n=i(e[t]),h.push(r.createFilterExpression(n,null,"search"))}var i,r,s,l,u=e._columnsController.getColumns(),c=e.option("searchPanel.searchVisibleColumnsOnly"),h=[];if(!t)return null;for(i=0;i<u.length;i++)r=u[i],c&&!r.visible||o(r)&&r.calculateFilterExpression&&(l=r.lookup,s=a(r,t),l&&l.items?(0,m.default)(l.items).filter(r.createFilterExpression.call({dataField:l.displayExpr,dataType:l.dataType,calculateFilterExpression:r.calculateFilterExpression},s,null,"search")).enumerate().done(n):void 0!==s&&h.push(r.createFilterExpression(s,null,"search")));return(0,p.combineFilters)(h,"or")};return{publicMethods:function(){return this.callBase().concat(["searchByText"])},_calculateAdditionalFilter:function(){var t=this,n=t.callBase(),i=e(t,t.option("searchPanel.text"));return(0,p.combineFilters)([n,i])},searchByText:function(e){this.option("searchPanel.text",e)},optionChanged:function(e){var t=this;switch(e.fullName){case"searchPanel.text":case"searchPanel":t._applyFilter(),e.handled=!0;break;default:t.callBase(e)}}}}()},views:{headerPanel:function(){var e=function(e){return e.option("searchPanel")};return{_getToolbarItems:function(){var e=this.callBase();return this._prepareSearchItem(e)},_prepareSearchItem:function(t){var n=this,i=n.getController("data"),o=e(n);if(o&&o.visible){var a={template:function(e,t,a){var r=(0,s.default)("<div>").addClass(n.addWidgetPrefix(v)).appendTo(a);n.getController("editorFactory").createEditor(r,{width:o.width,placeholder:o.placeholder,parentType:"searchPanel",value:n.option("searchPanel.text"),updateValueTimeout:x,setValue:function(e){i.searchByText(e)},editorOptions:{inputAttr:{"aria-label":g.default.format("dxDataGrid-ariaSearchInGrid")}}}),n.resize()},name:"searchPanel",location:"after",locateInMenu:"never",sortIndex:40};t.push(a)}return t},_getSearchTextEditor:function(){var e=this.element(),t=e.find("."+this.addWidgetPrefix(v)).filter(function(){return(0,s.default)(this).closest(".dx-datagrid-header-panel").is(e)});return t.length?t.dxTextBox("instance"):null},isVisible:function(){var t=e(this);return this.callBase()||t&&t.visible},optionChanged:function(e){if("searchPanel"===e.name){if("searchPanel.text"===e.fullName){var t=this._getSearchTextEditor();t&&t.option("value",e.value)}else this._invalidate();e.handled=!0}else this.callBase(e)}}}(),rowsView:{init:function(){this.callBase.apply(this,arguments),this._searchParams=[]},_getFormattedSearchText:function(e,t){var n=a(e,t),i=(0,p.getFormatOptionsByColumn)(e,"search");return(0,p.formatValue)(n,i)},_getStringNormalizer:function(){var e=this.option("searchPanel.highlightCaseSensitive");return function(t){return e?t:t.toLowerCase()}},_findHighlightingTextNodes:function(e,t,n){var i,o,a=this,r=t.parent(),l=this._getStringNormalizer(),u=l(n);return r.length?e&&(o=a._columnsController.getVisibleIndex(e.index),i=r.children("td").eq(o).find("*")):r=(0,s.default)("<div>").append(t),i=i&&i.length?i:r.find("*"),i=i.filter(function(e,t){for(var n=(0,s.default)(t).contents(),i=0;i<n.length;i++){var o=n.get(i);return 3===o.nodeType&&l(o.textContent||o.nodeValue).indexOf(u)>-1}})},_highlightSearchTextCore:function(e,t){var n=this,i=(0,s.default)("<span>").addClass(n.addWidgetPrefix(y)),o=e.text(),a=e[0],r=this._getStringNormalizer(),l=r(o).indexOf(r(t));if(l>=0)return a.textContent?a.textContent=o.substr(0,l):a.nodeValue=o.substr(0,l),e.after(i.text(o.substr(l,t.length))),e=(0,s.default)(u.default.createTextNode(o.substr(l+t.length))).insertAfter(i),n._highlightSearchTextCore(e,t)},_highlightSearchText:function(e,t,n){var i=this,o=this._getStringNormalizer(),a=i.option("searchPanel.text");if(t&&n&&(a=a&&i._getFormattedSearchText(n,a)),a&&i.option("searchPanel.highlightSearchText")){var r=i._findHighlightingTextNodes(n,e,a);(0,h.each)(r,function(e,n){(0,h.each)((0,s.default)(n).contents(),function(e,n){t?o((0,s.default)(n).text())===o(a)&&(0,s.default)(this).replaceWith((0,s.default)("<span>").addClass(i.addWidgetPrefix(y)).text((0,s.default)(n).text())):i._highlightSearchTextCore((0,s.default)(n),a)})})}},_renderCore:function(){this.callBase.apply(this,arguments),this.option("rowTemplate")&&(this.option("templatesRenderAsynchronously")?(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._highlightSearchText(this._getTableElement())}.bind(this))):this._highlightSearchText(this._getTableElement()))},_updateCell:function(e,t){var n=t.column,i=n.lookup&&n.lookup.dataType||n.dataType,a="string"!==i;o(n)&&(this.option("templatesRenderAsynchronously")?(this._searchParams.length||(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._searchParams.forEach(function(e){this._highlightSearchText.apply(this,e)}.bind(this)),this._searchParams=[]}.bind(this))),this._searchParams.push([e,a,n])):this._highlightSearchText(e,a,n)),this.callBase(e,t)},dispose:function(){clearTimeout(this._highlightTimer),this.callBase()}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(39),a=i(o),r=n(638),s=i(r),l=n(13),u=n(1),c=n(7),d="pager",h=10,p=a.default.View.inherit({init:function(){var e=this,t=e.getController("data");e._isVisible=!1,t.changed.add(function(n){if(n&&n.repaintChangesOnly){var i=e._getPager();i?i.option({pageCount:t.pageCount(),totalCount:t.totalCount(),hasKnownLastPage:t.hasKnownLastPage()}):e.render()}else n&&"update"===n.changeType||e.render()})},_getPager:function(){var e=this.element();return e&&e.data("dxPager")},_renderCore:function(){var e=this,t=e.element().addClass(e.addWidgetPrefix(d)),n=e.option("pager")||{},i=e.getController("data"),o={maxPagesCount:h,pageIndex:1+(parseInt(i.pageIndex())||0),pageCount:i.pageCount(),pageSize:i.pageSize(),showPageSizes:n.showPageSizeSelector,showInfo:n.showInfo,pagesNavigatorVisible:n.visible,showNavigationButtons:n.showNavigationButtons,pageSizes:e.getPageSizes(),totalCount:i.totalCount(),hasKnownLastPage:i.hasKnownLastPage(),pageIndexChanged:function(e){i.pageIndex()!==e-1&&setTimeout(function(){i.pageIndex(e-1)})},pageSizeChanged:function(e){setTimeout(function(){i.pageSize(e)})},onKeyDown:function(t){var n=e.getController("keyboardNavigation");n&&n.executeAction("onKeyDown",t)},useLegacyKeyboardNavigation:this.option("useLegacyKeyboardNavigation")};(0,u.isDefined)(n.infoText)&&(o.infoText=n.infoText),e._createComponent(t,s.default,o)},getPageSizes:function(){var e=this,t=e.getController("data"),n=e.option("pager"),i=n&&n.allowedPageSizes,o=t.pageSize();return(0,u.isDefined)(e._pageSizes)&&(0,l.inArray)(o,e._pageSizes)!==-1||(e._pageSizes=[],n&&(Array.isArray(i)?e._pageSizes=i:i&&o>1&&(e._pageSizes=[Math.floor(o/2),o,2*o]))),e._pageSizes},isVisible:function(){var e=this,t=e.getController("data"),n=e.option("pager"),i=n&&n.visible,o=e.option("scrolling");return!!e._isVisible||("auto"===i&&(i=(!o||"virtual"!==o.mode&&"infinite"!==o.mode)&&(t.pageCount()>1||t.isLoaded()&&!t.hasKnownLastPage())),e._isVisible=i,i)},getHeight:function(){return this.getElementHeight()},optionChanged:function(e){var t=this,n=e.name,i="pager"===n,o="paging"===n,a="dataSource"===n,r="scrolling"===n,s=t.getController("data");if(i||o||r||a){if(e.handled=!0,s.skipProcessingPagingChange(e.fullName))return;(i||o)&&(t._pageSizes=null),(i||o||r)&&(t._isVisible=!1),a||(t._invalidate(),(0,c.hasWindow)()&&i&&t.component&&t.component.resize())}}});e.exports={defaultOptions:function(){return{pager:{visible:"auto",showPageSizeSelector:!1,allowedPageSizes:"auto"}}},views:{pagerView:p}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(11),s=i(r),l=n(5),u=i(l),c=n(25),d=i(c),h=n(1),p=i(h),f=n(3),g=n(0),_=n(8),m=n(24),v=i(m),y=n(55),x=i(y),b=n(39),w=i(b),C=n(36),k=i(C),S=n(38),I=i(S),T=n(151),D="columns-separator",E="columns-separator-transparent",A="drag-header",O="text-content",B="drag-action",P="tracker",M="drop-highlight",R="dx-block-separator",V="dx-header-row",F="dx-widget",L="dx-drag-command-cell",H="dxDataGridResizingReordering",z=10,N=5,$=.5,W=function(e){return e.option("allowColumnResizing")||e.getController("columns").isColumnOptionUsed("allowResizing")},G=function(e){return e.option("allowColumnReordering")||e.getController("columns").isColumnOptionUsed("allowReordering")},j=w.default.View.inherit({_renderCore:function(){this.callBase(),this.element().addClass(this.addWidgetPrefix(P)),this.hide()},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_subscribeToCallback:function(){var e=this;e._positionChanged=function(t){var n=e.element();n&&n.hasClass(e.addWidgetPrefix(P))&&(n.css({top:t.top}),n.height(t.height))},this._tablePositionController.positionChanged.add(e._positionChanged)},optionChanged:function(e){"allowColumnResizing"===e.name&&(this._unsubscribeFromCallback(),e.value&&(this._subscribeToCallback(),this._invalidate())),this.callBase(e)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._subscribeToCallback()},isVisible:function(){return W(this)},show:function(){this.element().show()},hide:function(){this.element()&&this.element().hide()},setHeight:function(e){this.element().height(e)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),q=w.default.View.inherit({_renderSeparator:function(){},_renderCore:function(e){this.callBase(e),this._isShown=!0,this._renderSeparator(),this.hide()},show:function(){this._isShown=!0},hide:function(){this._isShown=!1},height:function(e){var t=this.element();if(t){if(!p.default.isDefined(e))return t.height();t.height(e)}},width:function(e){var t=this.element();if(t){if(!p.default.isDefined(e))return t.width();t.width(e)}}}),K=q.inherit({_renderSeparator:function(){this.callBase();var e=this.element();e.addClass(this.addWidgetPrefix(D))},_subscribeToCallback:function(){var e,t=this;t._positionChanged=function(n){e=t.element(),e&&(e.css({top:n.top}),e.height(n.height))},t._tablePositionController.positionChanged.add(t._positionChanged)},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_init:function(){this._isTransparent=W(this),this.isVisible()&&this._subscribeToCallback()},isVisible:function(){return this.option("showColumnHeaders")&&(G(this)||W(this))},optionChanged:function(e){"allowColumnResizing"===e.name&&(e.value?(this._init(),this._invalidate(),this.hide(!0)):(this._unsubscribeFromCallback(),this._isTransparent=W(this),this.hide(!0))),this.callBase(e)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._init()},show:function(){var e=this,t=this.element();t&&!e._isShown&&(e._isTransparent?t.removeClass(e.addWidgetPrefix(E)):t.show()),this.callBase()},hide:function(e){var t=this.element(),n=this.addWidgetPrefix(E);t&&(this._isShown||e)&&(this._isTransparent?(t.addClass(n),t.css("left",""),t.show()):(t.hasClass(n)&&t.removeClass(n),t.hide())),this.callBase()},moveByX:function(e){var t=this.element();t&&t.css("left",e-this._parentElement().offset().left)},changeCursor:function(e){e=p.default.isDefined(e)?e:"";var t=this.element();t&&t.css("cursor",e)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),U=q.inherit({init:function(){var e=this;this.callBase(),this.getController("data").loadingChanged.add(function(t){t||e.hide()})},_renderSeparator:function(){this.callBase(),this.element().addClass(R).html("&nbsp;")},hide:function(){var e=this,t=this._parentElement(),n=this.element();n&&this._isShown&&n.css("display","none"),t&&!t.children("."+R).length&&t.prepend(e.element()),e.callBase()},isVisible:function(){var e=this.option("groupPanel"),t=this.option("columnChooser");return e&&e.visible||t&&t.enabled},show:function(e){var t=this,n=this.element(),i=function(e){I.default.stop(n,!0),I.default.animate(n,{type:"slide",from:{width:0,display:e.display},to:e,duration:300,easing:"swing"})};if(n&&!t._isShown)switch(e){case"group":i({width:"50px",display:"inline-block"});break;case"columnChooser":i({width:"100%",display:"block"});break;default:n.css("display","")}t.callBase()}}),Y=w.default.View.inherit({_isDragging:!1,_getDraggingPanelByPos:function(e){var t,n=this;return(0,f.each)(n._dragOptions.draggingPanels,function(n,i){if(i){var o=i.getBoundingRect();if(o&&(void 0===o.bottom||e.y<o.bottom)&&(void 0===o.top||e.y>o.top)&&(void 0===o.left||e.x>o.left)&&(void 0===o.right||e.x<o.right))return t=i,!1}}),t},_renderCore:function(){this.element().addClass(this.addWidgetPrefix(A)+" "+this.addWidgetPrefix(O)+" "+F).hide()},_resetTargetColumnOptions:function(){var e=this._dropOptions;e.targetColumnIndex=-1,delete e.targetColumnElement,delete e.isLast,delete e.posX,delete e.posY},_getVisibleIndexObject:function(e,t){return p.default.isDefined(e)?{columnIndex:t,rowIndex:e}:t},dispose:function(){var e=this.element();this._dragOptions=null,e&&e.parent().find("."+this.addWidgetPrefix(A)).remove()},isVisible:function(){var e=this.getController("columns"),t=e.getCommonSettings();return this.option("showColumnHeaders")&&(G(this)||t.allowGrouping||t.allowHiding)},init:function(){var e=this;this.callBase(),this._controller=this.getController("draggingHeader"),this._columnsResizerViewController=this.getController("columnsResizer"),this.getController("data").loadingChanged.add(function(t){var n=e.element();!t&&n&&n.hide()})},dragHeader:function(e){var t=this,n=e.columnElement,i=!!e.sourceColumn.type;t._isDragging=!0,t._dragOptions=e,t._dropOptions={sourceIndex:e.index,sourceColumnIndex:t._getVisibleIndexObject(e.rowIndex,e.columnIndex),sourceColumnElement:e.columnElement,sourceLocation:e.sourceLocation};var o=s.default.getDocument();t._onSelectStart=o.onselectstart,o.onselectstart=function(){return!1},t._controller.drag(t._dropOptions),t.element().css({textAlign:n&&n.css("textAlign"),height:n&&(i&&n.get(0).clientHeight||n.height()),width:n&&(i&&n.get(0).clientWidth||n.width()),whiteSpace:n&&n.css("whiteSpace")}).addClass(t.addWidgetPrefix(B)).toggleClass(L,i).text(i?"":e.sourceColumn.caption),t.element().appendTo((0,T.getSwatchContainer)(n))},moveHeader:function(e){var t,n,i,o,a=e.event,r=a.data.that,s=(0,_.eventData)(a),l=!!r._columnsResizerViewController&&r._columnsResizerViewController.isResizing(),u=r._dragOptions;if(r._isDragging&&!l){var c=r.element();i=Math.abs(s.x-u.columnElement.offset().left-u.deltaX),o=Math.abs(s.y-u.columnElement.offset().top-u.deltaY),(c.is(":visible")||i>N||o>N)&&(c.show(),t=s.x-u.deltaX,n=s.y-u.deltaY,c.css({left:t,top:n}),r.dockHeader(s)),a.preventDefault()}},dockHeader:function(e){var t,n,i=this,o=i._getDraggingPanelByPos(e),r=i._controller,s=i._dropOptions,l=i._dragOptions;if(o){var u=i.option("rtlEnabled"),c="columnChooser"===o.getName(),d=c?"y":"x",h=o.getName(),p="headers"===h?l.rowIndex:void 0,f=l.sourceColumn,_=o.getColumnElements(p,f&&f.ownerBand)||[],m=l.pointsByTarget=l.pointsByTarget||{},v="columnChooser"===h?[]:m[h]||r._generatePointsByColumns((0,g.extend)({},l,{targetDraggingPanel:o,columns:o.getColumns(p),columnElements:_,isVerticalOrientation:c,startColumnIndex:"headers"===h&&(0,a.default)(_[0]).index()}));if(m[h]=v,s.targetLocation=h,v.length>0){for(t=0;t<v.length;t++)if(n=v[t+1]&&(v[t][d]+v[t+1][d])/2,void 0===n||(u&&"x"===d?e[d]>n:e[d]<n)){s.targetColumnIndex=i._getVisibleIndexObject(p,v[t].columnIndex),_[t]?(s.targetColumnElement=_.eq(t),s.isLast=!1):(s.targetColumnElement=_.last(),s.isLast=!0),s.posX=v[t].x,s.posY=v[t].y,r.dock(s);break}}else i._resetTargetColumnOptions(),r.dock(s)}},dropHeader:function(e){var t=e.event,n=t.data.that,i=n._controller;n.element().hide(),i&&n._isDragging&&i.drop(n._dropOptions),n.element().appendTo(n._parentElement()),n._dragOptions=null,n._dropOptions=null,n._isDragging=!1,s.default.getDocument().onselectstart=n._onSelectStart||null}}),X=function(e){return"widget"!==e.option("columnResizingMode")},Z=w.default.ViewController.inherit({_isHeadersRowArea:function(e){if(this._columnHeadersView){var t,n,i=this._columnHeadersView.element();if(i)return n=i.offset().top,t=this._columnHeadersView.getHeadersRowHeight(),e>=n&&e<=n+t}return!1},_pointCreated:function(e,t,n){var i,o,a=X(this),r=this.option("rtlEnabled"),s=!a&&r?0:1;return!(e.index>=s&&e.index<t+(a||r?0:1))||(e.columnIndex-=s,i=n[e.columnIndex]||{},o=n[e.columnIndex+1]||{},!(a?i.allowResizing&&o.allowResizing:i.allowResizing))},_getTargetPoint:function(e,t,n){if(e)for(var i=0;i<e.length;i++)if((e[i].x!==e[0].x||!e[i+1]||e[i].x!==e[i+1].x)&&e[i].x-n<=t&&t<=e[i].x+n)return e[i];return null},_moveSeparator:function(e){var t=e.event,n=t.data,i=n._columnsSeparatorView.width(),o=X(n),a=i/2,r=n._$parentContainer.offset(),s=r.left,l=(0,_.eventData)(t);if(n._isResizing&&n._resizingInfo){if(s<=l.x&&(!o||l.x<=s+n._$parentContainer.width())&&n._updateColumnsWidthIfNeeded(l.x)){var u=n._columnHeadersView.getColumnElements().eq(n._resizingInfo.currentColumnIndex);n._columnsSeparatorView.moveByX(u.offset().left+(o&&n.option("rtlEnabled")?0:u.outerWidth())),n._tablePositionController.update(n._targetPoint.y),t.preventDefault()}}else n._isHeadersRowArea(l.y)?(n._previousParentOffset&&(n._previousParentOffset.left===r.left&&n._previousParentOffset.top===r.top||n.pointsByColumns(null)),n._targetPoint=n._getTargetPoint(n.pointsByColumns(),l.x,i),n._previousParentOffset=r,n._isReadyResizing=!1,n._targetPoint?(n._columnsSeparatorView.changeCursor("col-resize"),n._columnsSeparatorView.moveByX(n._targetPoint.x-a),n._tablePositionController.update(n._targetPoint.y),n._isReadyResizing=!0,t.preventDefault()):n._columnsSeparatorView.changeCursor()):(n.pointsByColumns(null),n._isReadyResizing=!1,n._columnsSeparatorView.changeCursor())},_endResizing:function(e){var t=e.event,n=t.data;if(n._isResizing){if(n.pointsByColumns(null),n._resizingInfo=null,n._columnsSeparatorView.hide(),n._columnsSeparatorView.changeCursor(),n._trackerView.hide(),!X(n)){var i=n.component.pageIndex();n.component.updateDimensions(),n.option("wordWrapEnabled")&&"virtual"===n.option("scrolling.mode")&&n.component.refresh().done(function(){n._rowsView.scrollToPage(i)})}n._isReadyResizing=!1,n._isResizing=!1}},_getNextColumnIndex:function(e){return e+1},_setupResizingInfo:function(e){var t=this,n=t._targetPoint.columnIndex,i=t._getNextColumnIndex(n),o=t._columnHeadersView.getHeaderElement(n),a=t._columnHeadersView.getHeaderElement(i);t._resizingInfo={startPosX:e,currentColumnIndex:n,currentColumnWidth:o&&o.length>0?o[0].getBoundingClientRect().width:0,nextColumnIndex:i,nextColumnWidth:a&&a.length>0?a[0].getBoundingClientRect().width:0}},_startResizing:function(e){var t=e.event,n=t.data,i=(0,_.eventData)(t),o=n.getController("editing"),a=n.option("editing.mode"),r=o.isEditing()&&("batch"===a||"cell"===a);(0,_.isTouchEvent)(t)&&(n._isHeadersRowArea(i.y)?(n._targetPoint=n._getTargetPoint(n.pointsByColumns(),i.x,z),n._targetPoint&&(n._columnsSeparatorView.moveByX(n._targetPoint.x-n._columnsSeparatorView.width()/2),n._isReadyResizing=!0)):n._isReadyResizing=!1),n._isReadyResizing&&!r&&(n._setupResizingInfo(i.x),n._tablePositionController.update(n._targetPoint.y),n._columnsSeparatorView.show(),n._trackerView.show(),n._isResizing=!0,t.preventDefault(),t.stopPropagation())},_generatePointsByColumns:function(){var e=this,t=e._columnsController?e._columnsController.getVisibleColumns():[],n=e._columnHeadersView.getColumnElements(),i=[];n&&n.length>0&&(i=k.default.getPointsByColumns(n,function(i){return e._pointCreated(i,n.length,t)})),e._pointsByColumns=i},_unsubscribeFromEvents:function(){this._moveSeparatorHandler&&u.default.off(s.default.getDocument(),(0,_.addNamespace)(v.default.move,H),this._moveSeparatorHandler),this._startResizingHandler&&u.default.off(this._$parentContainer,(0,_.addNamespace)(v.default.down,H),this._startResizingHandler),this._endResizingHandler&&(u.default.off(this._columnsSeparatorView.element(),(0,_.addNamespace)(v.default.up,H),this._endResizingHandler),u.default.off(s.default.getDocument(),(0,_.addNamespace)(v.default.up,H),this._endResizingHandler))},_subscribeToEvents:function(){this._moveSeparatorHandler=this.createAction(this._moveSeparator),this._startResizingHandler=this.createAction(this._startResizing),this._endResizingHandler=this.createAction(this._endResizing),u.default.on(s.default.getDocument(),(0,_.addNamespace)(v.default.move,H),this,this._moveSeparatorHandler),u.default.on(this._$parentContainer,(0,_.addNamespace)(v.default.down,H),this,this._startResizingHandler),u.default.on(this._columnsSeparatorView.element(),(0,_.addNamespace)(v.default.up,H),this,this._endResizingHandler),u.default.on(s.default.getDocument(),(0,_.addNamespace)(v.default.up,H),this,this._endResizingHandler)},_updateColumnsWidthIfNeeded:function(e){function t(e){return p.default.isString(e)&&"%"===e.slice(-1)}function n(e,n,i,o){if(e){var a=e.width;a&&(o=t(a)),o?(e&&h.columnOption(e.index,"visibleWidth",n),e&&h.columnOption(e.index,"width",(n/i*100).toFixed(3)+"%")):(e&&h.columnOption(e.index,"visibleWidth",null),e&&h.columnOption(e.index,"width",n))}}function i(e,n){var i,o=n.every(function(e){return e.width});return o&&(i=n.reduce(function(e,n){return t(n.width)&&(e+=parseFloat(n.width)),e},0),i>100&&(e=e/i*100)),e}var o,a,r,s,l,u,c=!1,d=this._resizingInfo,h=this._columnsController,f=h.getVisibleColumns(),g=this._columnsSeparatorView.width(),_=this._rowsView.contentWidth(),m=X(this),v=m&&this.option("adaptColumnWidthByRatio")&&!this.option("columnAutoWidth");if(o=e-d.startPosX,m&&this.option("rtlEnabled")&&(o=-o),u=d.currentColumnWidth+o,r=f[d.currentColumnIndex],s=r&&r.minWidth||g,c=u>=s,m&&(a=d.nextColumnWidth-o,l=f[d.nextColumnIndex],s=l&&l.minWidth||g,c=c&&a>=s),c){if(h.beginUpdate(),u=Math.floor(u),_=i(_,f),n(r,u,_,v),m)a=Math.floor(a),n(l,a,_,v);else{var y=this._columnHeadersView.getColumnWidths();y[d.currentColumnIndex]=u;var x=y.reduce(function(e,t){return e+t},0)>this._rowsView.contentWidth();if(!x){var b=k.default.getLastResizableColumnIndex(f);b>=0&&h.columnOption(f[b].index,"visibleWidth","auto")}for(var w=0;w<y.length;w++)f[w]&&f[w]!==r&&void 0===f[w].width&&h.columnOption(f[w].index,"width",y[w])}h.endUpdate()}return c},_subscribeToCallback:function(e,t){e.add(t),this._subscribesToCallbacks.push({callback:e,handler:t})},_unsubscribeFromCallbacks:function(){var e,t;for(e=0;e<this._subscribesToCallbacks.length;e++)t=this._subscribesToCallbacks[e],t.callback.remove(t.handler);this._subscribesToCallbacks=[]},_unsubscribes:function(){this._unsubscribeFromEvents(),this._unsubscribeFromCallbacks()},_init:function(){var e=this,t=function(){e._isResizing||e.pointsByColumns(null)},n=function(t){e._scrollLeft!==t.left&&(e._scrollLeft=t.left,e.pointsByColumns(null))};e._columnsSeparatorView=e.getView("columnsSeparatorView"),e._columnHeadersView=e.getView("columnHeadersView"),e._trackerView=e.getView("trackerView"),e._rowsView=e.getView("rowsView"),e._columnsController=e.getController("columns"),e._tablePositionController=e.getController("tablePosition"),e._$parentContainer=e._columnsSeparatorView.component.$element(),e._subscribeToCallback(e._columnHeadersView.renderCompleted,t),e._subscribeToCallback(e._columnHeadersView.resizeCompleted,t),e._subscribeToCallback(e._columnsSeparatorView.renderCompleted,function(){e._unsubscribeFromEvents(),e._subscribeToEvents()}),e._subscribeToCallback(e._rowsView.renderCompleted,function(){e._rowsView.scrollChanged.remove(n),e._rowsView.scrollChanged.add(n)});var i=0!==e._rowsView.getScrollbarWidth(),o=0;e._subscribeToCallback(e.getController("tablePosition").positionChanged,function(t){if(e._isResizing&&!e._rowsView.isResizing){var n=0!==e._rowsView.getScrollbarWidth();i!==n||o&&o!==t.height?(i=n,o=t.height,e.component.updateDimensions()):e._rowsView.updateFreeSpaceRowHeight()}o=t.height})},optionChanged:function(e){this.callBase(e),"allowColumnResizing"===e.name&&(e.value?(this._init(),
56this._subscribeToEvents()):this._unsubscribes())},isResizing:function(){return this._isResizing},init:function(){this._subscribesToCallbacks=[],W(this)&&this._init()},pointsByColumns:function(e){return void 0===e?(this._pointsByColumns||this._generatePointsByColumns(),this._pointsByColumns):void(this._pointsByColumns=e)},dispose:function(){this._unsubscribes(),this.callBase()}}),Q=w.default.ViewController.inherit({update:function(e){var t=this,n={},i=t._columnHeadersView.element(),o=i&&i.offset(),a=o&&o.top||0,r=p.default.isDefined(e)?Math.abs(e-a):0,s=t._columnHeadersView?t._columnHeadersView.getHeight():0,l=t._rowsView?t._rowsView.height()-t._rowsView.getScrollbarWidth(!0):0;n.height=s+l-r,null!==e&&i&&i.length&&(n.top=i[0].offsetTop+r),t.positionChanged.fire(n)},init:function(){var e=this;e.callBase(),e._columnHeadersView=this.getView("columnHeadersView"),e._rowsView=this.getView("rowsView"),e._pagerView=this.getView("pagerView"),e._rowsView.resizeCompleted.add(function(){e.option("allowColumnResizing")&&e.update(null)})},ctor:function(e){this.callBase(e),this.positionChanged=(0,d.default)()}}),J=w.default.ViewController.inherit({_generatePointsByColumns:function(e){var t=this;return k.default.getPointsByColumns(e.columnElements,function(n){return t._pointCreated(n,e.columns,e.targetDraggingPanel.getName(),e.sourceColumn)},e.isVerticalOrientation,e.startColumnIndex)},_pointCreated:function(e,t,n,i){var o=t[e.columnIndex],a=t[e.columnIndex-1];switch(n){case"columnChooser":return!0;case"headers":return i&&!i.allowReordering||(!o||!o.allowReordering)&&(!a||!a.allowReordering);default:return 0===t.length}},_subscribeToEvents:function(e,t){var n=this;(0,f.each)(t,function(i,o){if(o){var r,s,l,c=o.getRowCount?o.getRowCount():1,d=o.getName(),h=function(i,r){if(r){var l=(0,a.default)(r),c=s[i];o.allowDragging(c,d,t)&&(l.addClass(n.addWidgetPrefix(B)),u.default.on(l,(0,_.addNamespace)(x.default.start,H),n.createAction(function(o){var r=o.event,s=(0,_.eventData)(r);e.dragHeader({deltaX:s.x-(0,a.default)(r.currentTarget).offset().left,deltaY:s.y-(0,a.default)(r.currentTarget).offset().top,sourceColumn:c,index:c.index,columnIndex:i,columnElement:l,sourceLocation:d,draggingPanels:t,rowIndex:n._columnsController.getRowIndex(c.index,!0)})})),u.default.on(l,(0,_.addNamespace)(x.default.move,H),{that:e},n.createAction(e.moveHeader)),u.default.on(l,(0,_.addNamespace)(x.default.end,H),{that:e},n.createAction(e.dropHeader)))}};for(r=0;r<c;r++)l=o.getColumnElements(r)||[],l.length&&(s=o.getColumns(r)||[],(0,f.each)(l,h))}})},_unsubscribeFromEvents:function(e,t){var n=this;(0,f.each)(t,function(e,t){if(t){var i=t.getColumnElements()||[];(0,f.each)(i,function(e,t){var i=(0,a.default)(t);u.default.off(i,(0,_.addNamespace)(x.default.start,H)),u.default.off(i,(0,_.addNamespace)(x.default.move,H)),u.default.off(i,(0,_.addNamespace)(x.default.end,H)),i.removeClass(n.addWidgetPrefix(B))})}})},_getSeparator:function(e){return"headers"===e?this._columnsSeparatorView:this._blockSeparatorView},hideSeparators:function(e){var t=this._blockSeparatorView,n=this._columnsSeparatorView;this._animationColumnIndex=null,t&&t.hide(),"block"!==e&&n&&n.hide()},init:function(){var e,t=this;t.callBase(),t._columnsController=t.getController("columns"),t._columnHeadersView=t.getView("columnHeadersView"),t._columnsSeparatorView=t.getView("columnsSeparatorView"),t._draggingHeaderView=t.getView("draggingHeaderView"),t._rowsView=t.getView("rowsView"),t._blockSeparatorView=t.getView("blockSeparatorView"),t._headerPanelView=t.getView("headerPanel"),t._columnChooserView=t.getView("columnChooserView"),e=function(){if(t._draggingHeaderView){var e=[t._columnChooserView,t._columnHeadersView,t._headerPanelView];t._unsubscribeFromEvents(t._draggingHeaderView,e),t._subscribeToEvents(t._draggingHeaderView,e)}},t._columnHeadersView.renderCompleted.add(e),t._headerPanelView&&t._headerPanelView.renderCompleted.add(e),t._columnChooserView&&t._columnChooserView.renderCompleted.add(e)},allowDrop:function(e){return this._columnsController.allowMoveColumn(e.sourceColumnIndex,e.targetColumnIndex,e.sourceLocation,e.targetLocation)},drag:function(e){var t=e.sourceIndex,n=e.sourceLocation,i=e.sourceColumnElement,o=this._columnHeadersView,a=this._rowsView;i&&(i.css({opacity:$}),"headers"===n&&(o&&o.setRowsOpacity(t,$),a&&a.setRowsOpacity(t,$)))},dock:function(e){var t=this,n=p.default.isObject(e.targetColumnIndex)?e.targetColumnIndex.columnIndex:e.targetColumnIndex,i=e.sourceLocation,o=e.targetLocation,a=t._getSeparator(o),r=n>=0,s=function(){t._animationColumnIndex!==n&&(t.hideSeparators(),a.element()[e.isLast?"insertAfter":"insertBefore"](e.targetColumnElement),t._animationColumnIndex=n,a.show(o))};t._columnHeadersView.element().find("."+V).toggleClass(t.addWidgetPrefix(M),"headers"!==i&&"headers"===o&&!r),a&&(t.allowDrop(e)&&r?"group"===o||"columnChooser"===o?s():(t.hideSeparators("block"),t.getController("tablePosition").update(e.posY),a.moveByX(e.posX-a.width()),a.show()):t.hideSeparators())},drop:function(e){var t=e.sourceColumnElement;if(t&&(t.css({opacity:""}),this._columnHeadersView.setRowsOpacity(e.sourceIndex,""),this._rowsView.setRowsOpacity(e.sourceIndex,""),this._columnHeadersView.element().find("."+V).removeClass(this.addWidgetPrefix(M))),this.allowDrop(e)){var n=this._getSeparator(e.targetLocation);n&&n.hide(),this._columnsController.moveColumn(e.sourceColumnIndex,e.targetColumnIndex,e.sourceLocation,e.targetLocation)}},dispose:function(){this._draggingHeaderView&&this._unsubscribeFromEvents(this._draggingHeaderView,[this._columnChooserView,this._columnHeadersView,this._headerPanelView])}});e.exports={views:{columnsSeparatorView:K,blockSeparatorView:U,draggingHeaderView:Y,trackerView:j},controllers:{draggingHeader:J,tablePosition:Q,columnsResizer:Z},extenders:{views:{rowsView:{_needUpdateRowHeight:function(e){var t=this.option("wordWrapEnabled"),n=this.getController("columnsResizer"),i=n.isResizing();return this.callBase.apply(this,arguments)||e>0&&t&&i}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e&&e.hasClass(F)}function a(e){return e&&e.hasClass(H)}function r(e){return e&&!o(e)&&!a(e)}function s(e){return!e||e.hasClass(z)||e.hasClass(N)}function l(e){return e.length&&"TD"===e[0].tagName}function u(e,t){return!e._isRowEditMode()&&t&&t.hasClass(W)}function c(e){return(0,x.isDefined)(e)&&e.length>0}var d=n(2),h=i(d),p=n(11),f=i(p),g=n(5),_=i(g),m=n(39),v=i(m),y=n(36),x=n(1),b=n(13),w=n(64),C=n(3),k=n(159),S=i(k),I=n(8),T=i(I),D=n(24),E=i(D),A=n(4),O=n(105),B="rowsview",P="edit-form",M="group-footer",R="dx-row",V="dx-data-row",F="dx-group-row",L="edit-form-item",H="dx-master-detail-row",z="dx-freespace-row",N="dx-virtual-row",$="dx-master-detail-cell",W="dx-editor-cell",G="dx-dropdowneditor-overlay",j="dx-command-expand",q="dx-command-select",K="[class^=dx-command]",U="dx-cell-focus-disabled",Y="dxDateBox",X="dx-state-focused",Z="delete",Q="input:not([type='hidden']), textarea, a, [tabindex]",J=["rowsView"],ee="row",te="form",ne="batch",ie="cell",oe="row",ae="cell",re=v.default.ViewController.inherit({_isRowEditMode:function(){var e=this.getController("editing").getEditMode();return e===ee||e===te},_isCellEditMode:function(){var e=this.getController("editing").getEditMode();return e===ie||e===ne},_isFastEditingAllowed:function(){return this._isCellEditMode()&&this.option("keyboardNavigation.editOnKeyPress")},_focusView:function(e,t){this._focusedViews.viewIndex=t,this._focusedView=e},_getInteractiveElement:function(e,t){var n=e.find(Q).filter(":visible");return t?n.last():n.first()},_focusInteractiveElement:function(e,t){if(e){var n=this._getInteractiveElement(e,t);(0,y.focusAndSelectElement)(this,n)}},_updateFocus:function(e){var t=this;setTimeout(function(){var n=t._getFocusedCell(),i=t._editingController.isEditing();if(n&&(!t._isMasterDetailCell(n)||t._isRowEditMode())){if(t._hasSkipRow(n.parent())){var o=t._focusedCellPosition&&t._focusedCellPosition.rowIndex>0?"upArrow":"downArrow";n=t._getNextCell(o)}if(c(n)){if(e&&!i&&t._checkCellOverlapped(n))return;n.is("td")||n.hasClass(t.addWidgetPrefix(L))?(t.getController("editorFactory").focus()||t._isCellEditMode()?t._focus(n):t._isHiddenFocus&&t._focus(n,!0),i&&t._focusInteractiveElement.bind(t)(n)):_.default.trigger(n,"focus")}}})},_checkCellOverlapped:function(e){var t=e.offset(),n=this.component.getScrollable&&this.component.getScrollable(),i=!1;return n&&(t.left<0?i=e.width()+t.left<=0:t.top<0&&(i=e.height()+t.top<=0)),i},_applyTabIndexToElement:function(e){var t=this.option("tabIndex");e.attr("tabIndex",(0,x.isDefined)(t)?t:0)},_isEventInCurrentGrid:function(e){var t=(0,h.default)(e.target).closest("."+this.getWidgetContainerClass()).parent();return t.is(this.component.$element())},_clickHandler:function(e){var t=e.event,n=(0,h.default)(t.currentTarget),i=t.data,o=i.view&&i.view.element(),a=n.hasClass(W);this._isEventInCurrentGrid(t)&&this._isCellValid(n,!0)?(n=this._isInsideEditForm(n)?(0,h.default)(t.target):n,this._focusView(i.view,i.viewIndex),(0,h.default)(o).removeClass(X),n.parent().hasClass(z)?(this._updateFocusedCellPosition(n),this._focusedView.element().attr("tabindex",0),this._focusedView.focus()):this._isMasterDetailCell(n)?this._updateFocusedCellPosition(n):(this._clickTargetCellHandler(t,n),a&&this._updateFocusedCellPosition(n))):n.is("td")&&this._resetFocusedCell()},_allowRowUpdating:function(){var e=this.getVisibleRowIndex(),t=this._dataController.items()[e];return this._editingController.allowUpdating({row:t},"click")},_clickTargetCellHandler:function(e,t){var n,i=this.getView("rowsView").getCellIndex(t),o=this._columnsController.getVisibleColumns()[i],a=this._isCellEditMode();if(this.setCellFocusType(),n=this._fireFocusChangingEvents(e,t,!0),t=n.$newCellElement,n.cancel)this.setRowFocusType(),this.setFocusedRowIndex(n.prevRowIndex),t=this._getFocusedCell(),this._editingController.isEditing()&&a&&this._editingController.closeEditCell();else{if(n.resetFocusedRow)return void this.getController("focus")._resetFocusedRow();if(n.rowIndexChanged&&(t=this._getFocusedCell()),n.isHighlighted||a||this.setRowFocusType(),this._updateFocusedCellPosition(t),this._allowRowUpdating()&&a&&o&&o.allowEditing)this._isHiddenFocus=!1;else{var r=e&&(0,h.default)(e.target),s=r&&r.not(t).is(Q),l=!n.isHighlighted||s;this._focus(t,l,s)}}},_initFocusedViews:function(){var e=this,t=e.createAction(e._clickHandler);e._focusedViews=[],(0,C.each)(J,function(t,n){var i=e.getView(n);i&&i.isVisible()&&e._focusedViews.push(i)}),(0,C.each)(e._focusedViews,function(n,i){i&&i.renderCompleted.add(function(o){var a=i.element(),r=!o||"refresh"===o.changeType,s=e._focusedView&&e._focusedView.name===i.name,l=!1,u=o&&("append"===o.changeType||"prepend"===o.changeType),c="."+R+" > td, ."+R;_.default.off(a,T.default.addNamespace(E.default.down,"dxDataGridKeyboardNavigation"),t),_.default.on(a,T.default.addNamespace(E.default.down,"dxDataGridKeyboardNavigation"),c,{viewIndex:n,view:i},t),e._initKeyDownProcessor(e,a,e._keyDownHandler),s&&(l=e._isNeedFocus?!u:e._isHiddenFocus&&r,l&&e._updateFocus(!0))})})},_initKeyDownProcessor:function(e,t,n){this._keyDownProcessor&&(this._keyDownProcessor.dispose(),this._keyDownProcessor=null),this._keyDownProcessor=new S.default({element:t,context:e,handler:n})},_getCell:function(e){if(this._focusedView&&e)return this._focusedView.getCell({rowIndex:e.rowIndex-this._dataController.getRowIndexOffset(),columnIndex:e.columnIndex})},_getFocusedCell:function(){return(0,h.default)(this._getCell(this._focusedCellPosition))},_getRowIndex:function(e){var t=this,n=t._focusedView,i=-1;return n&&(i=n.getRowIndex(e)),i>=0&&(i+=t._dataController.getRowIndexOffset()),i},_updateFocusedCellPosition:function(e,t){var n=this._getCellPosition(e,t);return n&&(!e.length||n.rowIndex>=0&&n.columnIndex>=0)&&this.setFocusedCellPosition(n.rowIndex,n.columnIndex),n},_getCellPosition:function(e,t){var n,i,o=this,a=c(e)&&e.closest("tr");if(c(a)&&o._focusedView)return n=o._getRowIndex(a),i=o._focusedView.getCellIndex(e,n),t&&(i="previous"===t?i-1:i+1,i=o._applyColumnIndexBoundaries(i)),{rowIndex:n,columnIndex:i}},setFocusedCellPosition:function(e,t){this.setFocusedRowIndex(e),this.setFocusedColumnIndex(t)},setFocusedRowIndex:function(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.rowIndex=e},setFocusedColumnIndex:function(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.columnIndex=e},getVisibleRowIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.rowIndex?this._focusedCellPosition.rowIndex-this._dataController.getRowIndexOffset():this._focusedCellPosition.rowIndex:null},getVisibleColumnIndex:function(){return this._focusedCellPosition&&(0,x.isDefined)(this._focusedCellPosition.columnIndex)?this._focusedCellPosition.columnIndex:-1},getFocusedColumnIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.columnIndex:null},_applyColumnIndexBoundaries:function(e){var t=this._getVisibleColumnCount();return e<0?e=0:e>=t&&(e=t-1),e},_isCellValid:function(e,t){if(c(e)){var n=this.getView("rowsView"),i=e.parent(),o=this._columnsController.getVisibleColumns(),s=n.getCellIndex(e),l=o[s],u=this._getVisibleColumnCount(),d=this._editingController,h=a(i),p=l&&l.showWhenGrouped,f=l&&!e.hasClass(j)&&r(i),g=function(){return!h&&l&&(!(0,x.isDefined)(l.groupIndex)||p&&f)||parseInt(e.attr("colspan"))>1};if(this._isMasterDetailCell(e))return!0;if(u>s&&g()){var _=this._dataController.items(),m=n.getRowIndex(i),v=_[m],y=d&&this._isCellEditMode()&&d.isEditing(),b=d&&d.isEditRow(m),w=b||y;return l.command?this._isLegacyNavigation()?!w&&"expand"===l.command:y?!l.command:b?"select"!==l.command:!w:(!y||!v||"data"===v.rowType)&&(!w||l.allowEditing||t)}}},_isCellByPositionValid:function(e){var t=(0,h.default)(this._getCell(e));return this._isCellValid(t)},_focus:function(e,t,n){var i=e&&e.is("td")?e.parent():e;if(!i||!s(i)){var a,r=this._getFocusedCell(),u=this._focusedView,c=u&&u.element();this._isHiddenFocus=t,o(i)||this.isRowFocusType()?(a=i,u&&this.setFocusedRowIndex(this._getRowIndex(i))):l(e)&&(a=e,this._updateFocusedCellPosition(e)),r&&r.is("td")&&r.not(a).removeAttr("tabIndex"),a&&(n||(this._applyTabIndexToElement(a),_.default.trigger(a,"focus")),t?(c&&c.find("."+U+"[tabIndex]").not(a).removeClass(U).removeAttr("tabIndex"),a.addClass(U)):(c&&c.find("."+U+":not(."+$+")").removeClass(U),this.getController("editorFactory").focus(a)))}},_hasSkipRow:function(e){var t=e&&e.get(0);return t&&("none"===t.style.display||e.hasClass(this.addWidgetPrefix(M))||a(e)&&!e.hasClass(this.addWidgetPrefix(P)))},_f2KeyHandler:function(){var e=this._editingController.isEditing(),t=this.getVisibleRowIndex(),n=this._focusedView&&this._focusedView.getRow(t);!e&&r(n)&&this._startEditing()},_allowEditingOnEnterKey:function(){return"startEdit"===this.option("keyboardNavigation.enterKeyAction")},_isLegacyNavigation:function(){return this.option("useLegacyKeyboardNavigation")},_enterKeyHandler:function(e,t){var n=this._getFocusedCell(),i=this.getVisibleRowIndex(),a=this._focusedView&&this._focusedView.getRow(i);if(this.option("grouping.allowCollapsing")&&o(a)||this.option("masterDetail.enabled")&&n&&n.hasClass(j)){var r=this._dataController.getKeyByRowIndex(i),s=this._dataController.items()[i];void 0!==r&&s&&s.data&&!s.data.isContinuation&&this._dataController.changeRowExpand(r)}else this._processEnterKeyForDataCell(e,t)},_processEnterKeyForDataCell:function(e,t){var n=this._getEnterKeyDirection(e),i=this._allowEditingOnEnterKey();t||!i&&n?(this._handleEnterKeyEditingCell(e.originalEvent),"next"===n||"previous"===n?this._targetCellTabHandler(e,n):"upArrow"!==n&&"downArrow"!==n||this._navigateNextCell(e.originalEvent,n)):i&&this._startEditing(e)},_getEnterKeyDirection:function(e){var t=this.option("keyboardNavigation.enterKeyDirection"),n=e.shift;return"column"===t?n?"upArrow":"downArrow":"row"===t?n?"previous":"next":void 0},_handleEnterKeyEditingCell:function(e){var t=e.target,n=this._getCellElementFromTarget(t),i=this._isRowEditMode();this._updateFocusedCellPosition(n),i?(this._focusEditFormCell(n),setTimeout(this._editingController.saveEditData.bind(this._editingController))):(_.default.trigger((0,h.default)(t),"blur"),this._editingController.closeEditCell(),e.preventDefault())},_startEditing:function(e,t){var n=this._focusedCellPosition,i=this.getVisibleRowIndex(),o=this._dataController.items()[i],a=this._columnsController.getVisibleColumns()[n.columnIndex],r=this._editingController.allowUpdating({row:o})&&a&&a.allowEditing;r&&(this._isRowEditMode()?this._editingController.editRow(i):n&&this._startEditingCell(e,t))},_startEditingCell:function(e,t){var n,i=this,o=this.getVisibleRowIndex(),a=this._focusedCellPosition.columnIndex;if(this._fastEditingStarted=(0,x.isDefined)(t),n=this._editingController.editCell(o,a),this._isFastEditingStarted())if(n===!0)i._editingCellHandler(e,t);else if(n&&n.done){var r=t!==Z?t:"";n.done(function(){return i._editingCellHandler(e,r)})}},_editingCellHandler:function(e,t){var n=this._getFocusedCell().find(".dx-texteditor-input").eq(0),i=T.default.createEvent(e,{type:"keydown",target:n.get(0)}),o=T.default.createEvent(e,{type:"keypress",target:n.get(0)}),a=T.default.createEvent(e,{type:"input",target:n.get(0)});_.default.trigger(n,i),i.isDefaultPrevented()||(_.default.trigger(n,o),o.isDefaultPrevented()||(n.val(t),_.default.off(n,"focusout"),_.default.on(n,"focusout",function(){_.default.trigger(n,"change")}),setTimeout(function(){_.default.trigger(n,a)})))},_leftRightKeysHandler:function(e,t){var n=this.getVisibleRowIndex(),i=e.originalEvent,o=this._focusedView&&this._focusedView.getRow(n),a=this._getDirectionCodeByKey(e.keyName),s=this._isFastEditingStarted(),l=(!t||s)&&r(o);if(l){this.setCellFocusType(),s&&this._editingController.closeEditCell();var u=this._getNextCell(a);c(u)&&this._arrowKeysHandlerFocusCell(i,u),i&&i.preventDefault()}},_upDownKeysHandler:function(e,t){var n,i=this.getVisibleRowIndex(),o=this._focusedView&&this._focusedView.getRow(i),r=e.originalEvent,s="upArrow"===e.keyName,l=this._dataController.dataSource(),u=this._isFastEditingStarted(),c=(!t||u)&&o&&!a(o);c&&(u&&this._editingController.closeEditCell(),this._navigateNextCell(r,e.keyName)||this._isVirtualScrolling()&&s&&l&&!l.isLoading()&&(n=o.outerHeight(),i=this._focusedCellPosition.rowIndex-1,this._scrollBy(-n,i,r)),r&&r.preventDefault())},_getDirectionCodeByKey:function(e){var t;return t=this.option("rtlEnabled")?"leftArrow"===e?"nextInRow":"previousInRow":"leftArrow"===e?"previousInRow":"nextInRow"},_navigateNextCell:function(e,t){var n=this._getNextCell(t);return!(!n||!this._isCellValid(n))&&this._arrowKeysHandlerFocusCell(e,n,!0)},_arrowKeysHandlerFocusCell:function(e,t,n){var i=this._fireFocusChangingEvents(e,t,n,!0);return t=i.$newCellElement,!(i.cancel||!this._isCellValid(t))&&(this._focus(t,!i.isHighlighted),!0)},_fireFocusChangingEvents:function(e,t,n,i){var o={},a=this._getCellPosition(t)||{};return this.isCellFocusType()&&(o=this._fireFocusedCellChanging(e,t,i),o.cancel||(a.columnIndex=o.newColumnIndex,a.rowIndex=o.newRowIndex,i=o.isHighlighted,t=(0,h.default)(this._getCell(a)))),!o.cancel&&n&&t&&(o=this._fireFocusedRowChanging(e,t.parent()),o.cancel||(a.rowIndex=o.newRowIndex,o.isHighlighted=i)),o.$newCellElement=(0,h.default)(this._getCell(a)),o.$newCellElement.length||(o.$newCellElement=t),o},_isVirtualScrolling:function(){var e=this.option("scrolling.mode");return"virtual"===e||"infinite"===e},_scrollBy:function(e,t,n){var i=this,o=this.getView("rowsView").getScrollable();if(i._focusedCellPosition){var a=function e(){o.off("scroll",e),setTimeout(i.restoreFocusableElement.bind(i,t,n))};o.on("scroll",a)}o.scrollBy({left:0,top:e})},restoreFocusableElement:function(e,t){var n,i,o=this,a=(0,x.isDefined)(e),r=o.getView("rowsView"),s=r.element(),l=o._focusedCellPosition.columnIndex,u=o._dataController.getRowIndexOffset();e=a?e:r.getTopVisibleItemIndex()+u,a?(i=r.getRow(e-u),n=o._fireFocusedRowChanging(t,i),!n.cancel&&n.rowIndexChanged&&(e=n.newRowIndex)):(o.getController("editorFactory").loseFocus(),o._applyTabIndexToElement(s),_.default.trigger(s,"focus")),a&&n.cancel||o.setFocusedCellPosition(e,l),a&&o._updateFocus()},_pageUpDownKeyHandler:function(e){var t=this._dataController.pageIndex(),n=this._dataController.pageCount(),i=this.option("paging.enabled"),o="pageUp"===e.keyName,a=o?-1:1,r=this.getView("rowsView").getScrollable();i&&!this._isVirtualScrolling()?(o?t>0:t<n-1)&&!this._isVirtualScrolling()&&(this._dataController.pageIndex(t+a),e.originalEvent.preventDefault()):r&&r._container().height()<r.$content().height()&&(this._scrollBy(r._container().height()*a),e.originalEvent.preventDefault())},_spaceKeyHandler:function(e,t){var n,i,o=this.getVisibleRowIndex(),a=(0,h.default)(e.originalEvent&&e.originalEvent.target);this.option("selection")&&"none"!==this.option("selection").mode&&!t?(n="row"===this._getElementType(a)&&this.isRowFocusType()&&r(a),i=a.hasClass(q),i&&"onClick"===this.option("selection.showCheckBoxesMode")&&this._selectionController.startSelectionWithCheckboxes(),(n||a.parent().hasClass(V)||a.hasClass(this.addWidgetPrefix(B)))&&(this._selectionController.changeItemSelection(o,{shift:e.shift,control:e.ctrl}),e.originalEvent.preventDefault())):this._beginFastEditing(e.originalEvent)},_ctrlAKeyHandler:function(e,t){!t&&e.ctrl&&!e.alt&&"multiple"===this.option("selection.mode")&&this.option("selection.allowSelectAll")&&(this._selectionController.selectAll(),e.originalEvent.preventDefault())},_isInsideEditForm:function(e){return(0,h.default)(e).closest("."+this.addWidgetPrefix(P)).length>0},_isMasterDetailCell:function(e){var t=(0,h.default)(e).closest("."+$),n=t.closest("."+this.getWidgetContainerClass()).parent();return t.length&&n.is(this.component.$element())},_processNextCellInMasterDetail:function(e){!this._isInsideEditForm(e)&&e&&this._applyTabIndexToElement(e)},_handleTabKeyOnMasterDetailCell:function(e,t){if(this._isMasterDetailCell(e)){this._updateFocusedCellPosition((0,h.default)(e),t);var n=this._getNextCell(t,"row");return this._processNextCellInMasterDetail(n),!0}return!1},_tabKeyHandler:function(e,t){var n=this.option("editing"),i=e.shift?"previous":"next",o=!e.shift&&this._isLastValidCell(this._focusedCellPosition)||e.shift&&this._isFirstValidCell(this._focusedCellPosition),a=e.originalEvent.target,r=this._focusedView&&this._focusedView.element();if(!this._handleTabKeyOnMasterDetailCell(a,i)){if((0,h.default)(r).addClass(X),n&&a&&!o)if((0,h.default)(a).hasClass(this.addWidgetPrefix(B))&&this._resetFocusedCell(),t){if(!this._editingCellTabHandler(e,i))return}else this._targetCellTabHandler(e,i)&&(o=!0);o?(this.getController("editorFactory").loseFocus(),this._editingController.isEditing()&&!this._isRowEditMode()&&(this._resetFocusedCell(),this._editingController.closeEditCell())):e.originalEvent.preventDefault()}},_editingCellTabHandler:function(e,t){var n,i,o,a=this.option("editing"),r=e.originalEvent.target,s=this._getCellElementFromTarget(r);if(s.is(K))return!this._targetCellTabHandler(e,t);if(this._updateFocusedCellPosition(s),s=this._getNextCell(t),!s||this._handleTabKeyOnMasterDetailCell(s,t))return!1;if(n=this._columnsController.getVisibleColumns()[this.getView("rowsView").getCellIndex(s)],i=this._dataController.items()[this._getRowIndex(s&&s.parent())],n.allowEditing){var l=!i||"data"===i.rowType;o=a.allowUpdating?l:i&&i.inserted}return o||this._editingController.closeEditCell(),this._focusCell(s)&&(!this._isRowEditMode()&&o?this._editingController.editCell(this.getVisibleRowIndex(),this._focusedCellPosition.columnIndex):this._focusInteractiveElement(s,e.shift)),!0},_targetCellTabHandler:function(e,t){var n,i=e.originalEvent,o=i.target,a=this._getCellElementFromTarget(o),s=this._getInteractiveElement(a,!e.shift),l=!1;if(!u(this,a)&&s.length&&o!==s.get(0))l=!0;else{if(void 0===this._focusedCellPosition.rowIndex&&(0,h.default)(o).hasClass(R)&&this._updateFocusedCellPosition((0,h.default)(o).children().first()),n=this._getElementType(o),this.isRowFocusType()&&(this.setCellFocusType(),"row"===n&&r((0,h.default)(o))&&(o=this.getFirstValidCellInRow((0,h.default)(o)),n=this._getElementType(o))),a=this._getNextCellByTabKey(i,t,n),!a)return!1;if(a=this._checkNewLineTransition(i,a),!a)return!1;this._focusCell(a),u(this,a)||this._focusInteractiveElement(a,e.shift)}return l},_getNextCellByTabKey:function(e,t,n){var i=this._getNextCell(t,n),o=i&&this._fireFocusedCellChanging(e,i,!0);if(o&&!o.cancel)return o.$newCellElement&&(i=o.$newCellElement),i},_checkNewLineTransition:function(e,t){var n=this.getVisibleRowIndex(),i=t.parent();if(n!==this._getRowIndex(i)){var o=this._getCellPosition(t),a=this._fireFocusedRowChanging(e,i);if(a.cancel)return;a.rowIndexChanged&&(this.setFocusedColumnIndex(o.columnIndex),t=this._getFocusedCell())}return t},getFirstValidCellInRow:function(e,t){var n,i,o=this,a=e.find("> td");t=t||0;for(var r=t;r<a.length;++r)if(n=a.eq(r),o._isCellValid(n)){i=n;break}return i},_focusCell:function(e){if(this._isCellValid(e))return this._focus(e),!0},_getElementType:function(e){return(0,h.default)(e).is("tr")?"row":"cell"},_focusEditFormCell:function(e){e.hasClass($)&&this.getController("editorFactory").focus(e,!0)},_escapeKeyHandler:function(e,t){var n=this._getCellElementFromTarget(e.originalEvent.target);t&&(this._updateFocusedCellPosition(n),this._isRowEditMode()?(this._focusEditFormCell(n),this._editingController.cancelEditData()):"cell"===this._editingController.getEditMode()?this._editingController.cancelEditData():this._editingController.closeEditCell(),e.originalEvent.preventDefault())},_ctrlFKeyHandler:function(e){e.ctrl&&this.option("searchPanel")&&this.option("searchPanel").visible&&(this._headerPanel.focus(),e.originalEvent.preventDefault())},_keyDownHandler:function(e){var t=this._editingController.isEditing(),n=!0,i=e.originalEvent,o={handled:!1,event:i};if(this.executeAction("onKeyDown",o),!i.isDefaultPrevented()&&(this._isNeedFocus=!0,this._isNeedScroll=!0,this._updateFocusedCellPosition(this._getCellElementFromTarget(o.event.target)),!o.handled)){switch(e.keyName){case"leftArrow":case"rightArrow":this._leftRightKeysHandler(e,t);break;case"upArrow":case"downArrow":e.ctrl?(0,O.selectView)("rowsView",this,i):this._upDownKeysHandler(e,t);break;case"pageUp":case"pageDown":this._pageUpDownKeyHandler(e);break;case"space":this._spaceKeyHandler(e,t);break;case"A":e.ctrl?this._ctrlAKeyHandler(e,t):this._beginFastEditing(e.originalEvent);break;case"tab":this._tabKeyHandler(e,t);break;case"enter":this._enterKeyHandler(e,t);break;case"escape":this._escapeKeyHandler(e,t);break;case"F":e.ctrl?this._ctrlFKeyHandler(e):this._beginFastEditing(e.originalEvent);break;case"F2":this._f2KeyHandler();break;case"del":case"backspace":this._isFastEditingAllowed()&&!this._isFastEditingStarted()&&this._beginFastEditing(e.originalEvent,!0);break;default:this._beginFastEditing(e.originalEvent)||(this._isNeedFocus=!1,this._isNeedScroll=!1,n=!1)}n&&i.stopPropagation()}},_isFastEditingStarted:function(){return this._isFastEditingAllowed()&&this._fastEditingStarted},_beginFastEditing:function(e,t){if(!this._isFastEditingAllowed()||e.altKey||e.ctrlKey||this._editingController.isEditing())return!1;if(t)this._startEditing(e,Z);else{var n=e.key,i=e.keyCode||e.which,o=n||i&&String.fromCharCode(i);!o||1!==o.length&&o!==Z||this._startEditing(e,o)}return!0},_isLastRow:function(e){return this._isVirtualScrolling()?e>=this._dataController.totalItemsCount()-1:e===this.getController("data").items().length-1},_getNextCell:function(e,t,n){var i,o,a,r,s=n||this._focusedCellPosition,l=this.isRowFocusType(),u=l||(0,b.inArray)(e,["next","previous"])>-1,d="previous"===e?this._isFirstValidCell(s):this._isLastValidCell(s);if(this._focusedView&&s){if(o=this._getNewPositionByCode(s,t,e),a=(0,h.default)(this._getCell(o)),c(a)&&!this._isCellValid(a)&&this._isCellInRow(o,u)&&!d&&(a=l?this.getFirstValidCellInRow(a.parent(),o.columnIndex):this._getNextCell(e,"cell",o)),r=c(a)&&a.parent(),this._hasSkipRow(r)){if(i=this._getRowIndex(r),this._isLastRow(i))return null;a=this._getNextCell(e,"row",{columnIndex:s.columnIndex,rowIndex:i})}return c(a)?a:null}return null},_getNewPositionByCode:function(e,t,n){var i,o=e.columnIndex,a=e.rowIndex;if(void 0===e.rowIndex&&"next"===n)return{columnIndex:0,rowIndex:0};switch(n){case"nextInRow":case"next":i=this._getVisibleColumnCount(),o<i-1&&!this._isLastValidCell({columnIndex:o,rowIndex:a})&&"row"!==t?o++:this._isLastRow(a)||"next"!==n||(o=0,a++);break;case"previousInRow":case"previous":o>0&&!this._isFirstValidCell({columnIndex:o,rowIndex:a})&&"row"!==t?o--:a>0&&"previous"===n&&(a--,i=this._getVisibleColumnCount(),o=i-1);break;case"upArrow":a=a>0?a-1:a;break;case"downArrow":a=this._isLastRow(a)?a:a+1}return{columnIndex:o,rowIndex:a}},_isFirstValidCell:function(e){var t=!1;return 0===e.rowIndex&&e.columnIndex>=0&&(t=t||!this._haveValidCellBeforePosition(e)),t},_haveValidCellBeforePosition:function(e){for(var t=e.columnIndex,n=!1;t>0&&!n;){var i={columnIndex:--t,rowIndex:e.rowIndex};n=this._isCellByPositionValid(i)}return n},_isLastValidCell:function(e){var t=e.columnIndex>=0?e.columnIndex+1:0,n={columnIndex:t,rowIndex:e.rowIndex},i=this._getVisibleColumnCount(),o=this._isCellByPositionValid(n);return!!this._isLastRow(e.rowIndex)&&(e.columnIndex===i-1||!o&&this._isLastValidCell(n))},_getVisibleColumnCount:function(){return this.getController("columns").getVisibleColumns().length},_isCellInRow:function(e,t){var n=e.columnIndex,i=this._getVisibleColumnCount();return t?n>=0&&n<=i-1:n>0&&n<i-1},_resetFocusedCell:function(){var e=this,t=e._getFocusedCell();t&&t.removeAttr("tabIndex"),e._focusedView&&e._focusedView.renderFocusState&&e._focusedView.renderFocusState(),e._isNeedFocus=!1,e._isNeedScroll=!1,e._focusedCellPosition={}},_getCellElementFromTarget:function(e){return(0,h.default)(e).closest("."+R+"> td")},init:function(){var e=this;e.option("useKeyboard")&&(e._dataController=e.getController("data"),e._selectionController=e.getController("selection"),e._editingController=e.getController("editing"),e._headerPanel=e.getView("headerPanel"),e._columnsController=e.getController("columns"),e.getController("editorFactory").focused.add(function(t){e.setupFocusedView(),e._isNeedScroll&&t.is(":visible")&&e._focusedView&&e._focusedView.getScrollable&&(e._scrollToElement(t),e._isNeedScroll=!1)}),e._fastEditingStarted=!1,e._focusedCellPosition={},e._canceledCellPosition=null,e._initFocusedViews(),e._documentClickHandler=e.createAction(function(t){var n=(0,h.default)(t.event.target),i=e._isEventInCurrentGrid(t.event)&&n.closest("."+e.addWidgetPrefix(B)).length,o=n.closest("."+G).length;i||o||e._resetFocusedCell()}),e.createAction("onKeyDown"),_.default.on(f.default.getDocument(),T.default.addNamespace(E.default.down,"dxDataGridKeyboardNavigation"),e._documentClickHandler))},_scrollToElement:function(e,t){var n=this._focusedView.getScrollable();n&&n.update(),n&&n.scrollToElement(e,t)},focus:function(e){var t,n=this.option("focusedRowEnabled"),i=l((0,h.default)(e));e||(t=".dx-datagrid-rowsview .dx-row[tabindex]",n||(t+=", .dx-datagrid-rowsview .dx-row > td[tabindex]"),e=this.component.$element().find(t).first()),e&&this._focusElement((0,h.default)(e),i)},_focusElement:function(e,t){var n=this._getFocusedViewByElement(e),i=this.isRowFocusType(),a={};!n||l(e)&&!this._isCellValid(e)||(this._focusView(n.view,n.viewIndex),this._isNeedFocus=!0,this._isNeedScroll=!0,(l(e)||o(e))&&(this.setCellFocusType(),a=this._fireFocusChangingEvents(null,e,!1,t),e=a.$newCellElement,i&&!a.isHighlighted&&this.setRowFocusType()),this._focus(e,!a.isHighlighted),this._focusInteractiveElement(e))},getFocusedView:function(){return this._focusedView},_getFocusedViewByElement:function(e){var t=function(t){return e.closest(t._$element).length};return this._getFocusedViewByCondition(t)},_getFocusedViewByCondition:function(e){
57var t;return(0,C.each)(this._focusedViews,function(n,i){if(e(i))return t={viewIndex:n,view:i},!1}),t},isRowFocusType:function(){return this.focusType===oe},isCellFocusType:function(){return this.focusType===ae},setRowFocusType:function(){this.option("focusedRowEnabled")&&(this.focusType=oe)},setCellFocusType:function(){this.focusType=ae},focusViewByName:function(e){var t=this._getFocusedViewByName(e);this._focusView(t.view,t.viewIndex)},setupFocusedView:function(){this.option("useKeyboard")&&!(0,x.isDefined)(this._focusedView)&&this.focusViewByName("rowsView")},_getFocusedViewByName:function(e){var t=function(t){return t.name===e};return this._getFocusedViewByCondition(t)},optionChanged:function(e){var t=this;switch(e.name){case"useKeyboard":case"keyboardNavigation":case"useLegacyKeyboardNavigation":e.handled=!0;break;default:t.callBase(e)}},dispose:function(){this.callBase(),this._focusedView=null,this._focusedViews=null,this._keyDownProcessor&&this._keyDownProcessor.dispose(),_.default.off(f.default.getDocument(),T.default.addNamespace(E.default.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler)},_fireFocusedCellChanging:function(e,t,n){var i=this,o=i.option("focusedColumnIndex"),a=i.option("focusedRowIndex"),r=i._getCellPosition(t),s=r?r.columnIndex:-1,l=r?r.rowIndex:-1,u={cellElement:t,prevColumnIndex:o,prevRowIndex:a,newColumnIndex:s,newRowIndex:l,rows:i.getController("data").getVisibleRows(),columns:i.getController("columns").getVisibleColumns(),event:e,isHighlighted:n||!1,cancel:!1};return this._canceledCellPosition=null,i.executeAction("onFocusedCellChanging",u),u.newColumnIndex===s&&u.newRowIndex===l||(u.$newCellElement=(0,h.default)(this._getCell({columnIndex:u.newColumnIndex,rowIndex:u.newRowIndex}))),u.cancel&&(this._canceledCellPosition={rowIndex:l,columnIndex:s}),u},_fireFocusedCellChanged:function(e,t,n){var i=this,o=i.getController("data"),a=i.getView("rowsView").getCellIndex(e),r=this._getRowIndex(e&&e.parent()),s=Math.min(r-o.getRowIndexOffset(),o.items().length-1),l=i.getController("editing").isEditCell(s,a),u=o.items()[s];l||t===a&&n===r||(o=i.getController("data"),i.executeAction("onFocusedCellChanged",{cellElement:e,columnIndex:a,rowIndex:r,row:u,column:i.getController("columns").getVisibleColumns()[a]}))},_fireFocusedRowChanging:function(e,t){var n=this._getRowIndex(t),i=this.getController("data"),o=this.option("focusedRowIndex"),a=i.loadingOperationTypes(),r={rowElement:t,prevRowIndex:o,newRowIndex:n,event:e,rows:this.getController("data").getVisibleRows(),cancel:!1};return!i||i.isLoading()&&(a.reload||a.paging)?(r.cancel=!0,r):(this.option("focusedRowEnabled")&&(this.executeAction("onFocusedRowChanging",r),r.cancel||r.newRowIndex===n||(r.resetFocusedRow=r.newRowIndex<0,r.resetFocusedRow||this.setFocusedRowIndex(r.newRowIndex),r.rowIndexChanged=!0)),r)},_fireFocusedRowChanged:function(e){var t,n,i=this.option("focusedRowIndex");this.option("focusedRowEnabled")&&(i>=0&&(n=this.getController("data"),t=i>=0&&n.getVisibleRows()[i-n.getRowIndexOffset()]),this.executeAction("onFocusedRowChanged",{rowElement:e,rowIndex:i,row:t}))},_processCanceledEditCellPosition:function(e,t){if(this._canceledCellPosition){var n=this._canceledCellPosition.rowIndex===e&&this._canceledCellPosition.columnIndex===t;return this._canceledCellPosition=null,n}}});e.exports={defaultOptions:function(){return{useKeyboard:!0,useLegacyKeyboardNavigation:!1,keyboardNavigation:{enterKeyAction:"startEdit",enterKeyDirection:"none",editOnKeyPress:!1}}},controllers:{keyboardNavigation:re},extenders:{views:{rowsView:{_rowClick:function(e){this.getController("keyboardNavigation").setCellFocusType(),this.callBase.apply(this,arguments)},renderFocusState:function(){var e,t=this._dataController,n=this.option("focusedRowIndex")||0,i=this.element();i&&!(0,w.focused)(i)&&i.attr("tabIndex",null),(n<0||n>=t.getVisibleRows().length)&&(n=0),e=this.getCellElements(n),this.option("useKeyboard")&&e&&this.updateFocusElementTabIndex(e)},updateFocusElementTabIndex:function(e){var t=this,n=e.eq(0).parent(),i=t.option("focusedColumnIndex"),a=t.option("tabIndex");(!i||i<0)&&(i=0),o(n)?n.attr("tabIndex",a):t._updateFocusedCellTabIndex(e,i)},_updateFocusedCellTabIndex:function(e,t){var n,i=this,o=i.option("tabIndex"),a=i.getController("keyboardNavigation"),r=a._focusedView,s=e?e.length:-1;if(a._focusedView=i,s>0){s<=t&&(t=s-1);for(var u=t;u<s;++u)if(n=(0,h.default)(e[u]),!a._isMasterDetailCell(n)&&a._isCellValid(n)&&l(n)){n.attr("tabIndex",o),a.setCellFocusType();break}}a._focusedView=r},renderDelayedTemplates:function(e){this.callBase.apply(this,arguments),e&&e.repaintChangesOnly||this.renderFocusState()},_renderCore:function(e){this.callBase(e),e&&e.repaintChangesOnly||this.renderFocusState()},_editCellPrepared:function(e){var t=this._getEditorInstance(e),n=this.getController("keyboardNavigation"),i=n&&n._isFastEditingStarted();t&&i&&this._handleEditingNavigationMode(t),this.callBase.apply(this,arguments)},_handleEditingNavigationMode:function(e){["downArrow","upArrow"].forEach(function(t){var n=e._supportedKeys()[t];e.registerKeyHandler(t,function(t){var i="true"===e._input().attr("aria-expanded");if(i)return n&&n.call(e,t)})}),e.registerKeyHandler("leftArrow",A.noop),e.registerKeyHandler("rightArrow",A.noop);var t=e.NAME===Y&&e.option("useMaskBehavior");t&&e.registerKeyHandler("enter",A.noop)},_getEditorInstance:function(e){var t=e.find(".dx-texteditor").eq(0);return(0,y.getWidgetInstance)(t)}}},controllers:{editing:{editCell:function(e,t){var n=this.getController("keyboardNavigation");if(n._processCanceledEditCellPosition(e,t))return!1;var i=this.callBase(e,t);return i&&n.setupFocusedView(),i},editRow:function(e){var t=this.getController("keyboardNavigation"),n=this.option("focusedColumnIndex"),i=this._columnsController.getVisibleColumns()[n];(i&&i.type||this.option("editing.mode")===te)&&t._resetFocusedCell(),this.callBase(e)},addRow:function(e){this.getController("keyboardNavigation").setupFocusedView(),this.callBase.apply(this,arguments)},getFocusedCellInRow:function(e){var t=this.getController("keyboardNavigation"),n=this.callBase(e);if(this.option("useKeyboard")&&t._focusedCellPosition.rowIndex===e){var i=t._getFocusedCell();c(i)&&!i.hasClass("dx-command-edit")&&(n=i)}return n},_processCanceledEditingCell:function(){var e=this;this.closeEditCell().done(function(){var t=e.getController("keyboardNavigation");t._updateFocus()})},init:function(){this.callBase(),this._keyboardNavigationController=this.getController("keyboardNavigation")},closeEditCell:function(){return this.getController("keyboardNavigation")._fastEditingStarted=!1,this.callBase.apply(this,arguments)},_delayedInputFocus:function(){this._keyboardNavigationController._isNeedScroll=!0,this.callBase.apply(this,arguments)}},data:{_correctRowIndices:function(e){var t=this,n=t.getController("keyboardNavigation"),i=t.getController("editorFactory"),o=n._focusedCellPosition;if(t.callBase.apply(t,arguments),o&&o.rowIndex>=0){var a=e(o.rowIndex);a&&(o.rowIndex+=a,i.focus(i.focus()))}}}}}}},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(128),u=i(l),c=n(14),d=i(c),h=n(36),p=i(h),f=n(1),g=n(0),_=n(3),m=n(26),v=i(m),y=n(27),x=i(y),b="content",w="content-fixed",C="dx-master-detail-cell",k="dx-first-cell",S="dx-last-cell",I="dx-state-hover",T="dx-col-fixed",D="dx-fixed-columns",E="dx-pointer-events-target",A="dx-pointer-events-none",O="transparent",B="dx-group-row",P=function(e){var t=-1;return(0,_.each)(e,function(e,n){if(n.command===O)return t=e,!1}),t},M=function(e,t,n){var i,o=0;if(e&&t&&n)for(i=0;i<e.length;i++)e[i].command===O?o+=e[i].colspan:(t[o]<n[i]&&(t[o]=n[i]),o++);return t},R={init:function(){this.callBase(),this._isFixedTableRendering=!1,this._isFixedColumns=!1},_createCol:function(e){return this.callBase(e).toggleClass(T,!(!this._isFixedTableRendering||!(e.fixed||e.command&&e.command!==O)))},_correctColumnIndicesForFixedColumns:function(e,t){var n=P(e),i=e[n].colspan,o=t&&t.columnIndices;o&&(t.columnIndices=o.map(function(e){if(e)return e.map(function(e){return e<n?e:e>=n+i?e-i+1:-1}).filter(function(e){return e>=0})}))},_renderTable:function(e){var t,n,i=this,o=i.getFixedColumns();if(i._isFixedColumns=!!o.length,n=i.callBase(e),i._isFixedColumns){i._isFixedTableRendering=!0;var a=e&&e.change,r=a&&a.columnIndices;i._correctColumnIndicesForFixedColumns(o,a),t=i._createTable(o),i._renderRows(t,(0,g.extend)({},e,{columns:o})),i._updateContent(t,a),r&&(a.columnIndices=r),i._isFixedTableRendering=!1}else i._fixedTableElement&&i._fixedTableElement.remove(),i._fixedTableElement=null;return n},_renderRow:function(e,t){var n,i,o=t.row.cells;if(this.callBase.apply(this,arguments),this._isFixedTableRendering&&o&&o.length){i=0,n=t.row.cells||[],o=o.slice(),t.row.cells=o;for(var a=0;a<n.length;a++)n[a].column&&n[a].column.command===O?i=(n[a].column.colspan||1)-1:o[a+i]=n[a]}},_createCell:function(e){var t,n,i,o=this,a=e.column,r=a&&a.command,s=e.rowType,l=o.callBase.apply(o,arguments);return(o._isFixedTableRendering||"filter"===s)&&(t=o.getFixedColumns(),i=P(t),n=t[i-1]),o._isFixedTableRendering?r===O&&(l.addClass(A).toggleClass(k,0===i||n&&"expand"===n.command).toggleClass(S,t.length&&i===t.length-1),"freeSpace"!==s&&p.default.setEmptyText(l)):"filter"===s&&l.toggleClass(k,e.columnIndex===i),l},_wrapTableInScrollContainer:function(){var e=this.callBase.apply(this,arguments);return this._isFixedTableRendering&&e.addClass(this.addWidgetPrefix(w)+" "+E),e},_renderCellContent:function(e,t){var n,i,o,a,r=this,s=t.column,l=r._isFixedTableRendering,u="group"===t.rowType&&(0,f.isDefined)(s.groupIndex);if(l&&u&&!s.command&&e.css("pointerEvents","none"),!l&&r._isFixedColumns&&(i=s.fixed||s.command&&s.fixed!==!1,u&&(i=!1,t.row.summaryCells&&t.row.summaryCells.length&&(n=r._columnsController.getVisibleColumns(),a=r._getAlignByColumnCellCount?r._getAlignByColumnCellCount(s.colspan,{columns:n,row:t.row,isFixed:!0}):0,a>0&&(o=P(r._columnsController.getFixedColumns()),i=n.length-a<o))),i)){if(r.option("legacyRendering")||s.command&&"buttons"!==s.type||"group"===t.rowType)return void e.html("&nbsp;").addClass(s.cssClass);e.addClass("dx-hidden-cell")}s.command!==O&&r.callBase(e,t)},_getCellElementsCore:function(e){var t,n,i,o,a=this,r=a.callBase(e),s=r.parent().hasClass(B),l="columnHeadersView"===a.name?e:void 0;return a._fixedTableElement&&r&&(n=a.getFixedColumns(l),o=a._getRowElements(a._fixedTableElement).eq(e).children("td"),(0,_.each)(o,function(e,u){s?r[e]&&"hidden"!==u.style.visibility&&(r[e]=u):(t=n[e],t&&(t.command===O?o.eq(e).hasClass(C)&&(r[e]=u||r[e]):(i=a._columnsController.getVisibleIndex(t.index,l),r[i]=u||r[i])))})),r},getColumnWidths:function(){var e,t=this,n=t.callBase(),i=t.getFixedColumns();return t._fixedTableElement&&n.length&&(e=t.callBase(t._fixedTableElement)),M(i,n,e)},_getTableElement:function(){var e=this._isFixedTableRendering?this._fixedTableElement:this.callBase();return e},_setTableElement:function(e){this._isFixedTableRendering?this._fixedTableElement=e.addClass(A):this.callBase(e)},getColumns:function(e,t){return t=t||this._getTableElement(),this._isFixedTableRendering||t&&t.closest("table").parent("."+this.addWidgetPrefix(w)).length?this.getFixedColumns(e):this.callBase(e,t)},getRowIndex:function(e){var t=this._fixedTableElement;return t&&t.find(e).length?this._getRowElements(t).index(e):this.callBase(e)},getTableElements:function(){var e=this.callBase.apply(this,arguments);return this._fixedTableElement&&(e=(0,a.default)([e.get(0),this._fixedTableElement.get(0)])),e},getFixedColumns:function(e){return this._columnsController.getFixedColumns(e)},getFixedColumnsOffset:function(){var e,t,n={left:0,right:0};return this._fixedTableElement&&(e=this.getTransparentColumnElement(),t=e.position(),n={left:t.left,right:this.element().outerWidth(!0)-(e.outerWidth(!0)+t.left)}),n},getTransparentColumnElement:function(){return this._fixedTableElement&&this._fixedTableElement.find("."+A).first()},getFixedTableElement:function(){return this._fixedTableElement},isFixedColumns:function(){return this._isFixedColumns},_resizeCore:function(){this.callBase(),this.synchronizeRows()},setColumnWidths:function(e){var t,n=this._columnsController.getVisibleColumns(),i=e&&e.length&&(0,f.isDefined)(n[0].visibleWidth),o=!1;if(this.callBase.apply(this,arguments),this._fixedTableElement){if(this.option("legacyRendering"))o=e&&e.length&&!this.isScrollbarVisible(!0);else{var a=e&&e.some(function(e){return"auto"===e});o=a&&(!i||!this.isScrollbarVisible(!0))}o&&(t=n),this.callBase(e,this._fixedTableElement,t,!0)}i&&this.synchronizeRows()},_createColGroup:function(e){if(!this.option("legacyRendering")&&this._isFixedTableRendering&&!this.option("columnAutoWidth")){var t=this._columnsController.getVisibleColumns(),n=t.filter(function(e){return!e.width}).length;n&&(e=t)}return this.callBase(e)},_getClientHeight:function(e){var t=e.getBoundingClientRect&&e.getBoundingClientRect();return t&&t.height?t.height:e.clientHeight},synchronizeRows:function(){var e,t,n,i,o,a,r,s,l=this,u=[],c=[];if(l._isFixedColumns&&l._tableElement&&l._fixedTableElement&&(i=l._getClientHeight(l._tableElement.get(0)),o=l._getClientHeight(l._fixedTableElement.get(0)),a=l._getRowElements(l._tableElement),r=l._getRowElements(l._fixedTableElement),s=l._findContentElement(),i!==o)){for(s&&s.css("height",i),a.css("height",""),r.css("height",""),n=0;n<a.length;n++)u.push(l._getClientHeight(a.get(n))),c.push(l._getClientHeight(r.get(n)));for(n=0;n<a.length;n++)e=u[n],t=c[n],e>t?r.eq(n).css("height",e):e<t&&a.eq(n).css("height",t);s&&s.css("height","")}}},V=(0,g.extend)({},R,{_getRowVisibleColumns:function(e){return this._isFixedTableRendering?this.getFixedColumns(e):this.callBase(e)},getContextMenuItems:function(e){var t,n=this,i=e.column,o=n.option("columnFixing"),a=n.callBase(e);return e.row&&"header"===e.row.rowType&&i&&i.allowFixing&&(t=function(e){switch(e.itemData.value){case"none":n._columnsController.columnOption(i.index,"fixed",!1);break;case"left":n._columnsController.columnOption(i.index,{fixed:!0,fixedPosition:"left"});break;case"right":n._columnsController.columnOption(i.index,{fixed:!0,fixedPosition:"right"})}},a=a||[],a.push({text:o.texts.fix,beginGroup:!0,items:[{text:o.texts.leftPosition,value:"left",disabled:i.fixed&&(!i.fixedPosition||"left"===i.fixedPosition),onItemClick:t},{text:o.texts.rightPosition,value:"right",disabled:i.fixed&&"right"===i.fixedPosition,onItemClick:t}]},{text:o.texts.unfix,value:"none",disabled:!i.fixed,onItemClick:t})),a},setScrollerSpacing:function(e){var t=this,n=t.option("rtlEnabled");t.callBase(e),t.element().children("."+this.addWidgetPrefix(w)).css(n?{paddingLeft:e}:{paddingRight:e})},getFixedColumnElements:function(e){var t,n,i,o=this;return(0,f.isDefined)(e)?this._fixedTableElement&&this._getRowElements(this._fixedTableElement).eq(e).children():(t=o.getColumnElements(),i=o.getTransparentColumnElement(),t&&i&&i.length&&(n=P(o.getFixedColumns()),t.splice(n,i.get(0).colSpan,i.get(0))),t)},getColumnWidths:function(){var e,t=this,n=t.callBase(),i=t.getFixedColumnElements(),o=t.getFixedColumns();return t._fixedTableElement&&(e=i&&i.length?t._getWidths(i):t.callBase(t._fixedTableElement)),M(o,n,e)}}),F=(0,g.extend)({},R,{_detachHoverEvents:function(){this._fixedTableElement&&s.default.off(this._fixedTableElement,"mouseover mouseout",".dx-data-row"),this._tableElement&&s.default.off(this._tableElement,"mouseover mouseout",".dx-data-row")},_attachHoverEvents:function(){var e=this,t=function(t){s.default.on(t,"mouseover mouseout",".dx-data-row",e.createAction(function(t){var n=t.event,i=e.getRowIndex((0,a.default)(n.target).closest(".dx-row")),o="mouseover"===n.type;i>=0&&(e._tableElement&&e._getRowElements(e._tableElement).eq(i).toggleClass(I,o),e._fixedTableElement&&e._getRowElements(e._fixedTableElement).eq(i).toggleClass(I,o))}))};e._fixedTableElement&&e._tableElement&&(t(e._fixedTableElement),t(e._tableElement))},_findContentElement:function(){var e,t,n,i=this,o=i.addWidgetPrefix(b),r=i.element(),l=v.default.mozilla?60:0;return r&&i._isFixedTableRendering?(e=r.children("."+o),t=i.getScrollable(),!e.length&&t&&(e=(0,a.default)("<div>").addClass(o),s.default.on(e,"scroll",function(e){clearTimeout(i._fixedScrollTimeout),i._fixedScrollTimeout=setTimeout(function(){n=(0,a.default)(e.target).scrollTop(),t.scrollTo({y:n})},l)}),s.default.on(e,u.default.name,function(e){if(t&&(n=t.scrollTop(),t.scrollTo({y:n-e.delta}),t.scrollTop()>0&&t.scrollTop()+t.clientHeight()<t.scrollHeight()+i.getScrollbarWidth()))return!1}),e.appendTo(r)),e):i.callBase()},_updateScrollable:function(){this.callBase();var e=this.getScrollable(),t=e&&e.scrollOffset().top;this._updateFixedTablePosition(t)},_renderContent:function(e,t){return this._isFixedTableRendering?e.empty().addClass(this.addWidgetPrefix(b)+" "+this.addWidgetPrefix(w)+" "+E).append(t):this.callBase(e,t)},_getGroupCellOptions:function(e){return this._isFixedTableRendering?this.callBase((0,g.extend)({},e,{columns:this._columnsController.getVisibleColumns()})):this.callBase(e)},_renderGroupedCells:function(e,t){return this.callBase(e,(0,g.extend)({},t,{columns:this._columnsController.getVisibleColumns()}))},_renderGroupSummaryCells:function(e,t){this._isFixedTableRendering?this.callBase(e,(0,g.extend)({},t,{columns:this._columnsController.getVisibleColumns()})):this.callBase(e,t)},_hasAlignByColumnSummaryItems:function(e,t){var n=this.callBase.apply(this,arguments),i=t.columns[e];return t.isFixed?i.fixed&&(n||"right"===i.fixedPosition):n&&!i.fixed},_renderGroupSummaryCellsCore:function(e,t,n,i){var o,a,r;this._isFixedTableRendering&&(t.isFixed=!0,r=this._getAlignByColumnCellCount(n,t),t.isFixed=!1,o=t.columns.length-r,t=(0,g.extend)({},t,{columns:this.getFixedColumns()}),a=P(t.columns),o<a?(r-=t.columns[a].colspan-1||0,n-=t.columns[a].colspan-1||0):i>0&&e.css("visibility","hidden"),i=r),this.callBase(e,t,n,i)},_getSummaryCellIndex:function(e,t){var n;return this._isFixedTableRendering?(n=P(t),e>n&&(e+=t[n].colspan-1),e):this.callBase.apply(this,arguments)},_renderCore:function(e){this._detachHoverEvents(),this.callBase(e);var t=this._isFixedColumns;this.element().toggleClass(D,t),this.option("hoverStateEnabled")&&t&&this._attachHoverEvents()},setRowsOpacity:function(e,t){this.callBase(e,t);var n=this._getRowElements(this._fixedTableElement);this._setRowsOpacityCore(n,this.getFixedColumns(),e,t)},optionChanged:function(e){var t=this;t.callBase(e),"hoverStateEnabled"===e.name&&t._isFixedColumns&&(e.value?this._attachHoverEvents():this._detachHoverEvents())},getCellIndex:function(e){var t,n=this._fixedTableElement,i=0;return n&&n.find(e).length?(t=this.getFixedColumns(),(0,_.each)(t,function(t,n){return t!==e[0].cellIndex&&(n.colspan?void(i+=n.colspan):void i++)}),i):this.callBase.apply(this,arguments)},_updateFixedTablePosition:function(e,t){if(this._fixedTableElement&&this._tableElement){var n,i=this.getController("editorFactory");this._fixedTableElement.parent().scrollTop(e),t&&(n=i.focus(),n&&i.focus(n))}},setScrollerSpacing:function(e,t){var n,i=this,o={marginBottom:0},a=i.element().children("."+this.addWidgetPrefix(w));a.length&&i._fixedTableElement&&(a.css(o),i._fixedTableElement.css(o),o[i.option("rtlEnabled")?"marginLeft":"marginRight"]=e,o.marginBottom=t,n=i._scrollable&&i._scrollable.option("useNative"),(n?a:i._fixedTableElement).css(o))},_getElasticScrollTop:function(e){var t=void 0,n=void 0,i=void 0,o=0,a=this.getScrollbarWidth(!0);return e.scrollOffset.top<0?o=-e.scrollOffset.top:e.reachedBottom&&(n=this._findContentElement(),i=e.component._container(),t=Math.max(n.height()+a-i.height(),0),o=t-e.scrollOffset.top),o},_applyElasticScrolling:function(e){if(this._fixedTableElement){var t=this._getElasticScrollTop(e);0!==Math.ceil(t)?x.default.move(this._fixedTableElement,{top:t}):this._fixedTableElement.css("transform","")}},_handleScroll:function(e){this._updateFixedTablePosition(e.scrollOffset.top,!0),this._applyElasticScrolling(e),this.callBase(e)},_updateContentPosition:function(e){this.callBase.apply(this,arguments),e||this._updateFixedTablePosition(this._scrollTop)},_afterRowPrepared:function(e){this._isFixedTableRendering||this.callBase(e)},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._fixedScrollTimeout)}}),L=R;e.exports={defaultOptions:function(){return{columnFixing:{enabled:!1,texts:{fix:d.default.format("dxDataGrid-columnFixingFix"),unfix:d.default.format("dxDataGrid-columnFixingUnfix"),leftPosition:d.default.format("dxDataGrid-columnFixingLeftPosition"),rightPosition:d.default.format("dxDataGrid-columnFixingRightPosition")}}}},extenders:{views:{columnHeadersView:V,rowsView:F,footerView:L},controllers:function(){var e=function(e,t,n){var i=P(t),o=e.length-t.length;return(0,_.each)(n,function(e,t){t.index>i&&(t.columnIndex+=o,t.index+=o)}),n};return{draggingHeader:{_generatePointsByColumns:function(t){var n,i=t.columns,o=t.targetDraggingPanel;return o&&"headers"===o.getName()&&o.isFixedColumns()&&t.sourceColumn.fixed?(t.rowIndex||(t.columnElements=o.getFixedColumnElements(0)),t.columns=o.getFixedColumns(t.rowIndex),n=this.callBase(t),e(i,t.columns,n),n):this.callBase(t)},_pointCreated:function(e,t,n,i){var o,a=this.callBase.apply(this,arguments),r=this._columnHeadersView.getTransparentColumnElement();return!a&&"headers"===n&&r&&r.length?(o=r.get(0).getBoundingClientRect(),i&&i.fixed?"right"===i.fixedPosition?e.x<o.right:e.x>o.left:e.x<o.left||e.x>o.right):a}},columnsResizer:{_generatePointsByColumns:function(){var t=this,n=t._columnsController,i=n&&t._columnsController.getVisibleColumns(),o=n&&t._columnsController.getFixedColumns(),a=t._columnHeadersView.getFixedColumnElements(),r=[];t.callBase(),a&&a.length>0&&(r=p.default.getPointsByColumns(a,function(e){return t._pointCreated(e,a.length,o)}),t._pointsByFixedColumns=e(i,o,r))},_pointCreated:function(e,t,n){var i,o,a="widget"===this.option("columnResizingMode");return e.index>0&&e.index<t&&(i=n[e.columnIndex-1]||{},o=n[e.columnIndex]||{},i.fixed||o.fixed)?(e.columnIndex-=1,!((i.allowResizing||i.command===O)&&(a||o.allowResizing||o.command===O))):this.callBase.apply(this,arguments)},_getTargetPoint:function(e,t,n){var i,o=this._columnHeadersView.getTransparentColumnElement();return o&&o.length&&(i=o.get(0).getBoundingClientRect(),t<=i.left||t>=i.right)?this.callBase(this._pointsByFixedColumns,t,n):this.callBase(e,t,n)}},keyboardNavigation:{_scrollToElement:function(e){var t=this.getFocusedView();this.callBase(e,t&&t.getFixedColumnsOffset())}}}}()}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return e._columnsController.getColumnId(t)}function a(e){return e.find("td:not(.dx-datagrid-hidden-column):not([class*='dx-command-'])")}function r(e,t){var n,i=(0,l.default)(e),o=t.component.getController("adaptiveColumns");"data"===t.rowType?(n=(0,l.default)("<span>").addClass(o.addWidgetPrefix(W)),c.default.on(n,h.default.addNamespace(f.default.name,F),o.createAction(function(){o.toggleExpandAdaptiveDetailRow(t.key)})),n.appendTo(i)):I.default.setEmptyText(i)}var s=n(2),l=i(s),u=n(5),c=i(u),d=n(8),h=i(d),p=n(19),f=i(p),g=n(1),_=i(g),m=n(26),v=i(m),y=n(43),x=i(y),b=n(39),w=i(b),C=n(140),k=i(C),S=n(36),I=i(S),T=n(31),D=i(T),E=n(7),A=n(4),O=n(3),B=n(0),P="columnHeadersView",M="rowsView",R="footerView",V=[P,M,R],F="dxDataGridAdaptivity",L="adaptiveHidden",H="detailAdaptive",z="dx-field-item-content",N="dx-item-modified",$="hidden-column",W="adaptive-more",G="dx-command-adaptive",j="dx-command-adaptive-hidden",q="dx-adaptive-detail-row",K="dx-adaptive-item-text",U="dx-master-detail-cell",Y="dx-last-data-cell",X="adaptive",Z="batch",Q="row",J="form",ee="popup",te="revert-tooltip",ne=w.default.ViewController.inherit({_isRowEditMode:function(){var e=this._editingController.getEditMode();return e===Q},_isItemModified:function(e,t){var n=this._columnsController.getVisibleIndex(e.column.index),i=this._dataController.getRowIndexByKey(t.key),o=this._dataController.items()[i+1];return o&&o.modifiedValues&&_.default.isDefined(o.modifiedValues[n])},_renderFormViewTemplate:function(e,t,n){var i,o=this,a=e.column,r=o.createAction(function(){c.default.trigger(n,f.default.name)}),s=a.calculateCellValue(t.data),l=I.default.getDisplayValue(a,s,t.data,t.rowType),u=I.default.formatValue(l,a);if(a.allowEditing&&o.option("useKeyboard")&&(n.attr("tabIndex",o.option("tabIndex")),c.default.off(n,"focus",r),c.default.on(n,"focus",r)),a.cellTemplate){var d=(0,B.extend)({},t,{value:s,displayValue:l,text:u,column:a});o._rowsView.renderTemplate(n,a.cellTemplate,d,!!n.closest((0,E.getWindow)().document).length)}else i=n.get(0),a.encodeHtml?i.textContent=u:i.innerHTML=u,n.addClass(K),_.default.isDefined(u)&&""!==u||n.html("&nbsp;"),o._isRowEditMode()||o._isItemModified(e,t)&&n.addClass(N);o.getView("rowsView")._cellPrepared(n,t)},_getTemplate:function(e,t){var n=this,i=e.column,o=this.getController("editing");return function(a,r){var s=n._isItemEdited(e),u=(0,l.default)(r),c=n._columnsController.getVisibleIndex(i.visibleIndex),d=(0,B.extend)({},t);d.value=t.row.values[c],s||i.showEditorAlways?o.renderFormEditTemplate(d,e,a.component,u,!s):(d.column=i,d.columnIndex=c,d.watch&&d.watch(function(){return d.column.selector(d.data)},function(t){d.value=t,u.contents().remove(),n._renderFormViewTemplate(e,d,u)}),n._renderFormViewTemplate(e,d,u))}},_isVisibleColumnsValid:function(e){var t=function(){var t,n,i=0;for(t=0;t<e.length;t++)n=e[t],n.command&&i++;return i};return!(e<2)&&!(e.length-t()<=1)},_calculatePercentWidths:function(e,t){var n=this,i=0;return t.forEach(function(t,o){e[o]!==L&&(i+=n._getItemPercentWidth(t))}),i},_isPercentWidth:function(e){return _.default.isString(e)&&"%"===e.slice(-1)},_isColumnHidden:function(e){return this._hiddenColumns.filter(function(t){return t.index===e.index}).length>0},_getAverageColumnsWidth:function(e,t,n){var i=this,o=0,a=0;return t.forEach(function(r){if(!i._isColumnHidden(r)){var s=r.width;_.default.isDefined(s)&&!isNaN(parseFloat(s))?o+=i._isPercentWidth(s)?i._calculatePercentWidth({visibleIndex:r.visibleIndex,columnsCount:t.length,columnsCanFit:n,bestFitWidth:r.bestFitWidth,columnWidth:s,containerWidth:e}):parseFloat(s):a++}}),(e-o)/a},_calculateColumnWidth:function(e,t,n,i){var a,r=o(this,e),s=this._columnsController.columnOption(r,"width"),l=this._columnsController.columnOption(r,"bestFitWidth"),u=n.length;if(s&&"auto"!==s){if(!this._isPercentWidth(s))return s;a=this._calculatePercentWidth({visibleIndex:e.visibleIndex,columnsCount:u,columnsCanFit:i,bestFitWidth:l,columnWidth:s,containerWidth:t})}else{var c=this.option("columnAutoWidth");a=c||e.command?l:this._getAverageColumnsWidth(t,n,i)}return a},_calculatePercentWidth:function(e){var t=e.visibleIndex<e.columnsCount-1&&e.columnsCanFit,n=e.containerWidth*parseFloat(e.columnWidth)/100,i=e.columnsCanFit&&n<e.bestFitWidth?e.bestFitWidth:n;return t?e.containerWidth*parseFloat(e.columnWidth)/100:i},_getNotTruncatedColumnWidth:function(e,t,n,i){var a,r=o(this,e),s=this._columnsController.columnOption(r,"width"),l=this._columnsController.columnOption(r,"bestFitWidth");return s&&"auto"!==s&&!this._isPercentWidth(s)?s:(a=this._calculateColumnWidth(e,t,n,i),a<l?null:a)},_getItemPercentWidth:function(e){var t=0;return e.width&&this._isPercentWidth(e.width)&&(t=parseFloat(e.width)),t},_getCommandColumnsWidth:function(){var e=this,t=e._columnsController.getVisibleColumns(),n=0;return(0,O.each)(t,function(t,i){(i.index<0||i.command)&&(n+=e._columnsController.columnOption(o(e,i),"bestFitWidth")||0)}),n},_isItemEdited:function(e){if(this.isFormEditMode())return!1;if(!this._isRowEditMode()){var t=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,n=this._columnsController.getVisibleIndex(e.column.index);return this._editingController.isEditCell(t,n)}var i=this._editingController.getEditRowKey();return!!(0,A.equalByValue)(i,this._dataController.adaptiveExpandedKey())||void 0},_getFormItemsByHiddenColumns:function(e){var t=[];return(0,O.each)(e,function(e,n){t.push({column:n,name:n.name,dataField:n.dataField,visibleIndex:n.visibleIndex})}),t},_getAdaptiveColumnVisibleIndex:function(e){var t,n;for(t=0;t<e.length;t++)if(n=e[t],n.command===X)return t},_hideAdaptiveColumn:function(e,t){var n=this._getAdaptiveColumnVisibleIndex(t);_.default.isDefined(n)&&(e[n]=L,this._addCssClassToColumn(j,n))},_removeCssClassFromColumn:function(e){var t,n,i;for(t=0;t<V.length;t++)n=this.getView(V[t]),n&&n.isVisible()&&n.element()&&(i=n.element().find("."+e),i.removeClass(e))},_removeCssClassesFromColumns:function(){this._removeCssClassFromColumn(j),this._removeCssClassFromColumn(this.addWidgetPrefix($))},_isCellValid:function(e){return e&&e.length&&!e.hasClass(U)},_addCssClassToColumn:function(e,t){var n=this;V.forEach(function(i){var o=n.getView(i);o&&n._addCssClassToViewColumn(o,e,t)})},_addCssClassToViewColumn:function(e,t,n){var i,o,a,r,s=e.name,l=this._columnsController.getVisibleColumns()[n],u=this._editingController&&this._editingController.getEditFormRowIndex();if(e&&e.isVisible()&&l){i=e.getRowsCount();var c=e._getRowElements();for(o=0;o<i;o++)o===u&&s===M||(r=s===P?this._columnsController.getVisibleIndex(l.index,o):n,r>=0&&(a=c.eq(o).children().eq(r),this._isCellValid(a)&&a.addClass(t)))}},isFormEditMode:function(){var e=this._editingController.getEditMode();return e===J||e===ee},hideRedundantColumns:function(e,t,n){var i,a=this;if(this._hiddenColumns=[],a._isVisibleColumnsValid(t)&&n.length){var r,s,l,u,c,d=0,h=a.component.$element(),p=h.width()-a._getCommandColumnsWidth(),f=function(){var e=this;return t.filter(function(t){return!t.command&&0===e._hiddenColumns.filter(function(e){return e.dataField===t.dataField}).length})}.bind(this),g=f(),_=g.length;do{for(c=!1,d=0,r=a._calculatePercentWidths(e,t),s=r<100&&0!==r,l=0;l<t.length;l++){i=t[l];var m=a._getNotTruncatedColumnWidth(i,p,g,s),v=o(a,i),y=a._columnsController.columnOption(v,"width"),x=a._columnsController.columnOption(v,"minWidth"),b=a._columnsController.columnOption(v,"bestFitWidth");if(e[l]!==L){if(!m&&!i.command&&!i.fixed){c=!0;break}y&&"auto"!==y||(m=Math.max(b||0,x||0)),(i.command!==X||u)&&(d+=m)}else u=!0}if(c=c||d>h.width()){var w=n.pop(),C=a._columnsController.getVisibleIndex(w.index);p+=a._calculateColumnWidth(w,p,g,s),a._addCssClassToColumn(a.addWidgetPrefix($),C),e[C]=L,this._hiddenColumns.push(w),g=f()}}while(c&&g.length>1&&n.length);_===g.length&&a._hideAdaptiveColumn(e,t)}else a._hideAdaptiveColumn(e,t)},getItemContentByColumnIndex:function(e){var t,n,i;for(n=0;n<this._$itemContents.length;n++)if(t=this._$itemContents.eq(n),i=t.data("dx-form-item"),i&&i.column&&this._columnsController.getVisibleIndex(i.column.index)===e)return t},toggleExpandAdaptiveDetailRow:function(e,t){this.isFormEditMode()&&this._editingController.isEditing()||this.getController("data").toggleExpandAdaptiveDetailRow(e,t)},createFormByHiddenColumns:function(e,t){var n=this,i=(0,l.default)(e),o={items:n._getFormItemsByHiddenColumns(n._hiddenColumns),formID:"dx-"+new x.default},a=D.default.isMaterial()?{colCount:2}:{};this.executeAction("onAdaptiveDetailRowPreparing",{formOptions:o}),n._$itemContents=null,n._form=n._createComponent((0,l.default)("<div>").appendTo(i),k.default,(0,B.extend)(a,o,{customizeItem:function(e){var i=e.column||n._columnsController.columnOption(e.name||e.dataField);i&&(e.label=e.label||{},e.label.text=e.label.text||i.caption,e.column=i,e.template=n._getTemplate(e,t,n.updateForm.bind(n))),o.customizeItem&&o.customizeItem.call(this,e)},onContentReady:function(e){o.onContentReady&&o.onContentReady.call(this,e),n._$itemContents=i.find("."+z)}}))},hasAdaptiveDetailRowExpanded:function(){return _.default.isDefined(this._dataController.adaptiveExpandedKey())},updateForm:function(e){this.hasAdaptiveDetailRowExpanded()&&this._form&&_.default.isDefined(this._form._contentReadyAction)&&(e&&e.length?this._form.option("items",this._getFormItemsByHiddenColumns(e)):this._form.repaint());
58},updateHidingQueue:function(e){var t,n,i=this,o=e.filter(function(e){return e.visible&&!e.type&&!e.fixed&&!(_.default.isDefined(e.groupIndex)&&e.groupIndex>=0)});if(i._hidingColumnsQueue=[],i.option("allowColumnResizing")&&"widget"===i.option("columnResizingMode"))return i._hidingColumnsQueue;for(n=0;n<o.length;n++)_.default.isDefined(o[n].hidingPriority)&&o[n].hidingPriority>=0&&(t=!0,i._hidingColumnsQueue[o[n].hidingPriority]=o[n]);if(t)i._hidingColumnsQueue.reverse();else if(i.option("columnHidingEnabled"))for(n=0;n<o.length;n++){var a=i._columnsController.getVisibleIndex(o[n].index);i._hidingColumnsQueue[a]=o[n]}return i._hidingColumnsQueue=i._hidingColumnsQueue.filter(Object),i._hidingColumnsQueue},getHiddenColumns:function(){return this._hiddenColumns},hasHiddenColumns:function(){return this._hiddenColumns.length>0},getHidingColumnsQueue:function(){return this._hidingColumnsQueue},init:function(){var e=this;e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._rowsView=e.getView("rowsView"),e._columnsController.addCommandColumn({type:X,command:X,visible:!0,adaptiveHidden:!0,cssClass:G,alignment:"center",width:"auto",cellTemplate:r,fixedPosition:"right"}),e._columnsController.columnsChanged.add(function(){var t=!!e.updateHidingQueue(e._columnsController.getColumns()).length;e._columnsController.columnOption("command:adaptive","adaptiveHidden",!t,!0)}),e._editingController=e.getController("editing"),e._hidingColumnsQueue=[],e._hiddenColumns=[],e.createAction("onAdaptiveDetailRowPreparing"),e.callBase()},optionChanged:function(e){"columnHidingEnabled"===e.name&&this._columnsController.columnOption("command:adaptive","adaptiveHidden",!e.value),this.callBase(e)},publicMethods:function(){return["isAdaptiveDetailRowExpanded","expandAdaptiveDetailRow","collapseAdaptiveDetailRow"]},isAdaptiveDetailRowExpanded:function(e){return this._dataController.adaptiveExpandedKey()&&(0,A.equalByValue)(this._dataController.adaptiveExpandedKey(),e)},expandAdaptiveDetailRow:function(e){this.hasAdaptiveDetailRowExpanded()||this.toggleExpandAdaptiveDetailRow(e)},collapseAdaptiveDetailRow:function(){this.hasAdaptiveDetailRowExpanded()&&this.toggleExpandAdaptiveDetailRow()}});e.exports={defaultOptions:function(){return{columnHidingEnabled:!1,onAdaptiveDetailRowPreparing:null}},controllers:{adaptiveColumns:ne},extenders:{views:{rowsView:{_getCellTemplate:function(e){var t=this,n=e.column;return e.rowType===H&&"detail"===n.command?function(e,n){t._adaptiveColumnsController.createFormByHiddenColumns((0,l.default)(e),n)}:t.callBase(e)},_createRow:function(e){var t=this.callBase(e);return e&&e.rowType===H&&e.key===this._dataController.adaptiveExpandedKey()&&t.addClass(q),t},_renderCells:function(e,t){this.callBase(e,t);var n=this._adaptiveColumnsController.getHidingColumnsQueue().length,i=this._adaptiveColumnsController.getHiddenColumns().length;n&&!i&&a(e).last().addClass(Y)},_getColumnIndexByElementCore:function(e){var t=e.closest("."+z);if(t.length&&t.closest(this.component.$element()).length){var n=t.length?t.first().data("dx-form-item"):null;return n&&n.column&&this._columnsController.getVisibleIndex(n.column.index)}return this.callBase(e)},_cellPrepared:function(e,t){this.callBase.apply(this,arguments),t.row.rowType!==H&&t.column.visibleWidth===L&&e.addClass(this.addWidgetPrefix($))},_getCellElement:function(e,t){var n=this._dataController.items()[e];return n&&n.rowType===H?this._adaptiveColumnsController.getItemContentByColumnIndex(t):this.callBase(e,t)},getContextMenuItems:function(e){if(e.row&&"detailAdaptive"===e.row.rowType){var t=this.component.getView("columnHeadersView"),n=(0,l.default)(e.targetElement).closest(".dx-field-item-label").next().data("dx-form-item");return e.column=n?n.column:e.column,t.getContextMenuItems&&t.getContextMenuItems(e)}return this.callBase&&this.callBase(e)},isClickableElement:function(e){var t=!!this.callBase&&this.callBase(e);return t||!!e.closest("."+G).length},init:function(){this.callBase(),this._adaptiveColumnsController=this.getController("adaptiveColumns")}}},controllers:{"export":{_updateColumnWidth:function(e,t){this.callBase(e,e.visibleWidth===L?e.bestFitWidth:t)}},columnsResizer:{_pointCreated:function(e,t,n){var i=this.callBase(e,t,n),o=n[e.columnIndex]||{},a=this._getNextColumnIndex(e.columnIndex),r=n[a]||{},s=a!==e.columnIndex+1&&r.command,l=o.visibleWidth===L||s;return i||l},_getNextColumnIndex:function(e){for(var t=this._columnsController.getVisibleColumns(),n=this.callBase(e);t[n]&&t[n].visibleWidth===L;)n++;return n}},draggingHeader:{_pointCreated:function(e,t,n,i){var o=this.callBase(e,t,n,i),a=t[e.columnIndex-1]||{},r=a.visibleWidth===L;return o||r}},editing:{_isRowEditMode:function(){return this.getEditMode()===Q},_getFormEditItemTemplate:function(e,t){return this.getEditMode()!==Q&&"detailAdaptive"===e.rowType?(e.columnIndex=this._columnsController.getVisibleIndex(t.index),this.getColumnTemplate(e)):this.callBase(e,t)},_closeEditItem:function(e){var t=e.closest("."+z),n=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,i=t.length?t.first().data("dx-form-item"):null,o=i&&i.column&&this._columnsController.getVisibleIndex(i.column.index);this.isEditCell(n,o)||this.callBase(e)},_beforeUpdateItems:function(e,t){if(!this._adaptiveController.isFormEditMode()&&this._adaptiveController.hasHiddenColumns()){var n=this._dataController.items(),i=n[t],o=I.default.getIndexByKey(this._dataController.adaptiveExpandedKey(),n);this._isForceRowAdaptiveExpand=!this._adaptiveController.hasAdaptiveDetailRowExpanded(),o>=0&&t>o&&this._editRowIndex--,o>=0&&e.push(o+1),e.push(t+1),this._dataController.adaptiveExpandedKey(i.key)}},_afterInsertRow:function(e){this.callBase(e),this._adaptiveController.hasHiddenColumns()&&(this._adaptiveController.toggleExpandAdaptiveDetailRow(e.key,this.isRowEditMode()),this._isForceRowAdaptiveExpand=!0)},_collapseAdaptiveDetailRow:function(){this._isRowEditMode()&&this._isForceRowAdaptiveExpand&&(this._adaptiveController.collapseAdaptiveDetailRow(),this._isForceRowAdaptiveExpand=!1)},_cancelEditAdaptiveDetailRow:function(){this._adaptiveController.hasHiddenColumns()&&this._collapseAdaptiveDetailRow()},_afterSaveEditData:function(){this.callBase(),this._isRowEditMode()&&this._adaptiveController.hasHiddenColumns()&&this.getController("validating").validate(!0)&&this._cancelEditAdaptiveDetailRow()},_beforeCancelEditData:function(){this.callBase(),this._cancelEditAdaptiveDetailRow()},_getRowIndicesForCascadeUpdating:function(e){var t=this.callBase.apply(this,arguments);return this._adaptiveController.isAdaptiveDetailRowExpanded(e.key)&&t.push(e.rowType===H?e.rowIndex-1:e.rowIndex+1),t},_beforeCloseEditCellInBatchMode:function(e){var t,n=this._dataController._adaptiveExpandedKey;n&&(t=I.default.getIndexByKey(n,this._dataController.items()),t>-1&&e.unshift(t))},editRow:function(e){this._adaptiveController.isFormEditMode()&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(e)},deleteRow:function(e){var t=this._dataController.getKeyByRowIndex(e);this.getEditMode()===Z&&this._adaptiveController.isAdaptiveDetailRowExpanded(t)&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(e)},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}},resizing:{_needBestFit:function(){return this.callBase()||!!this._adaptiveColumnsController.getHidingColumnsQueue().length},_updateScrollableForIE:function(){var e=this;v.default.msie&&parseInt(v.default.version)<=11&&(this._updateScrollableTimeoutID=setTimeout(function(){e.getView("rowsView")._updateScrollable()}))},_correctColumnWidths:function(e,t){var n,i=this._adaptiveColumnsController,o=this.option("columnAutoWidth"),a=i.getHiddenColumns(),r=i.updateHidingQueue(this._columnsController.getColumns());return i.hideRedundantColumns(e,t,r),n=i.getHiddenColumns(),i.hasAdaptiveDetailRowExpanded()&&a.length!==n.length&&i.updateForm(n),!n.length&&i.collapseAdaptiveDetailRow(),o&&r.length&&!n.length&&this._updateScrollableForIE(),this.callBase.apply(this,arguments)},_toggleBestFitMode:function(e){e&&this._adaptiveColumnsController._removeCssClassesFromColumns(),this.callBase(e)},_needStretch:function(){var e=this._adaptiveColumnsController;return this.callBase.apply(this,arguments)||e.getHidingColumnsQueue().length||e.hasHiddenColumns()},init:function(){this._adaptiveColumnsController=this.getController("adaptiveColumns"),this.callBase()},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._updateScrollableTimeoutID)}},data:{_processItems:function(e,t){var n,i,o=this;return e=o.callBase.apply(o,arguments),"loadingAll"!==t&&_.default.isDefined(o._adaptiveExpandedKey)?(i=I.default.getIndexByKey(o._adaptiveExpandedKey,e),i>=0?(n=e[i],e.splice(i+1,0,{visible:!0,rowType:H,key:n.key,data:n.data,modifiedValues:n.modifiedValues,inserted:n.inserted,values:n.values})):"refresh"===t&&(o._adaptiveExpandedKey=void 0),e):e},_getRowIndicesForExpand:function(e){var t,n=this.callBase.apply(this,arguments);return this.getController("adaptiveColumns").isAdaptiveDetailRowExpanded(e)&&(t=n[n.length-1],n.push(t+1)),n},adaptiveExpandedKey:function(e){return _.default.isDefined(e)?void(this._adaptiveExpandedKey=e):this._adaptiveExpandedKey},toggleExpandAdaptiveDetailRow:function(e,t){var n=this,i=I.default.getIndexByKey(n._adaptiveExpandedKey,n._items),o=I.default.getIndexByKey(e,n._items);i>=0&&i===o&&!t&&(e=void 0,o=-1),n._adaptiveExpandedKey=e,i>=0&&i++,o>=0&&o++,n.updateItems({changeType:"update",rowIndices:[i,o]})},init:function(){this.callBase(),this._adaptiveExpandedKey=void 0}},editorFactory:{_getFocusCellSelector:function(){return this.callBase()+", .dx-adaptive-detail-row .dx-field-item > .dx-field-item-content"},_getTooltipsSelector:function(){return this.callBase()+", .dx-field-item-content ."+this.addWidgetPrefix(te)}},columns:{_isColumnVisible:function(e){return this.callBase(e)&&!e.adaptiveHidden}},keyboardNavigation:{_isCellValid:function(e){return this.callBase.apply(this,arguments)&&!e.hasClass(this.addWidgetPrefix($))},_processNextCellInMasterDetail:function(e){if(this.callBase(e),!this._isInsideEditForm(e)&&e){var t=function t(){c.default.off(e,"focus",t),c.default.trigger(e,"dxclick")};c.default.on(e,"focus",t)}},_handleTabKeyOnMasterDetailCell:function(e,t){var n=this.callBase(e,t),i=this._getFocusedCell();if(!n&&i){var o=i.parent(),r=a(o),s="next"===t?r.last():r.first(),l=o.get(0).rowIndex,u=this._adaptiveController,c=this._dataController.getKeyByRowIndex("next"===t?l:l-1),d=i&&s&&i.get(0)===s.get(0);return u.isAdaptiveDetailRowExpanded(c)&&d}return n},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}}}}}},function(e,t,n){var i=n(7),o=n(376),a=50,r={_resizeCore:function(){this.callBase.apply(this,arguments),this._columnsController.resize()},_handleScroll:function(e){var t=this,n=this.getScrollable(),i=e.scrollOffset.left;t.callBase.apply(t,arguments),t.option("rtlEnabled")&&n&&(i=n.$content().width()-n.$element().width()-i),t._columnsController.setScrollPosition(i)}},s={_renderCore:function(){var e=this,t=e._scrollLeft;e.callBase.apply(e,arguments),e._columnsController.isVirtualMode()&&t>=0&&(e._scrollLeft=0,e.scrollTo({left:t}))}},l=function(){var e=function(e){return e.map(function(e){return e.visibleWidth||parseFloat(e.width)||a})},t={init:function(){var e=this;e.callBase(),e._beginPageIndex=0,e._endPageIndex=0,e._position=0,e._virtualVisibleColumns={}},resetColumnsCache:function(){this.callBase(),this._virtualVisibleColumns={}},getBeginPageIndex:function(t){for(var n=this.getVisibleColumns(void 0,!0),i=e(n),o=0,a=0;a<i.length;a++){if(o>=t)return Math.floor(a/this.getColumnPageSize());o+=i[a]}return 0},getTotalWidth:function(){var e=this.option("width");return"number"==typeof e?e:this.getController("resizing")._lastWidth||this.component.$element().outerWidth()},getEndPageIndex:function(t){var n=this.getVisibleColumns(void 0,!0),i=e(n),o=0;t+=this.getTotalWidth();for(var a=0;a<i.length;a++){if(o>=t)return Math.ceil(a/this.getColumnPageSize());o+=i[a]}return Math.ceil(i.length/this.getColumnPageSize())},getColumnPageSize:function(){return this.option("scrolling.columnPageSize")},_fireColumnsChanged:function(){var e=new Date;this.columnsChanged.fire({optionNames:{all:!0,length:1},changeTypes:{columns:!0,length:1}}),this._renderTime=new Date-e},setScrollPosition:function(e){var t=this,n=t.option("scrolling.columnRenderingThreshold");t._renderTime>n?(clearTimeout(t._changedTimeout),t._changedTimeout=setTimeout(function(){t._setScrollPositionCore(e)},t.option("scrolling.timeout"))):t._setScrollPositionCore(e)},isVirtualMode:function(){return(0,i.hasWindow)()&&"virtual"===this.option("scrolling.columnRenderingMode")},resize:function(){this._setScrollPositionCore(this._position)},_setScrollPositionCore:function(e){var t=this;if(t.isVirtualMode()){var n=t.getBeginPageIndex(e),i=t.getEndPageIndex(e),o=e<t._position?t._beginPageIndex>n:t._endPageIndex<i;t._position=e,o&&(t._beginPageIndex=n,t._endPageIndex=i,t._fireColumnsChanged())}},getFixedColumns:function(e,t){var n=this.callBase(e);if(this.isVirtualMode()&&!t&&n.length){var i=n.map(function(e){return e.command}).indexOf("transparent");return n[i].colspan=this.getVisibleColumns().length-this.callBase().length+1,n}return n},getVisibleColumns:function(t,n){if(n||!this.isVirtualMode())return this.callBase(t);this._beginPageIndex||this._endPageIndex||(this._beginPageIndex=this.getBeginPageIndex(this._position),this._endPageIndex=this.getEndPageIndex(this._position));var i=this._beginPageIndex,a=this._endPageIndex,r=t+"-"+i+"-"+a;if(this._virtualVisibleColumns[r])return this._virtualVisibleColumns[r];var s=this.callBase(),l=this.getRowCount(),u=this.getColumnPageSize(),c=i*u,d=a*u,h=this.getFixedColumns(void 0,!0),p=h.map(function(e){return e.command}).indexOf("transparent"),f=h.length?p:0,g=s.slice(0,f),_=s.slice(f,c),m=e(_).reduce(function(e,t){return e+t},0);m||(c=0);var v=h.length?h.length-p-1:0,y=s.slice(s.length-v),x=s.slice(d,s.length-v),b=e(x).reduce(function(e,t){return e+t},0);if(b||(d=s.length),l>1&&"number"==typeof t){for(var w=[],C=0;C<l;C++)w.push(this.callBase(C));g=(0,o.createColumnsInfo)(w,0,g.length)[t]||[],y=(0,o.createColumnsInfo)(w,s.length-y.length,s.length)[t]||[],s=(0,o.createColumnsInfo)(w,c,d)[t]||[]}else s=s.slice(c,d);return m&&(s.unshift({command:"virtual",width:m}),s=g.concat(s)),b&&(s.push({command:"virtual",width:b}),s=s.concat(y)),this._virtualVisibleColumns[r]=s,s},dispose:function(){clearTimeout(this._changedTimeout),this.callBase.apply(this,arguments)}};return t}();e.exports={defaultOptions:function(){return{scrolling:{columnRenderingMode:"standard",columnPageSize:5,columnRenderingThreshold:300}}},extenders:{controllers:{columns:l},views:{columnHeadersView:s,footerView:s,rowsView:r}}}},function(e,t,n){function i(e,t,n,o,a,r){n=n||0,o=o||[],r=r||[],o[n]=o[n]||0;var s=e[n],l=r[n]+1||0,u=0;if(s){for(var c=l;c<s.length;c++){var d=s[c],h=c+o[n],p=d.colspan||1;if(i(e,t,n+(d.rowspan||1),o,p,r),o[n]+=p-1,u+=p,d.rowspan)for(var f=n+1;f<n+d.rowspan;f++)o[f]=o[f]||0,o[f]+=d.colspan||1;if(t(d,h,n,c)===!1)break;if(void 0!==a&&u>=a)break}r[n]=c}}function o(e,t,n){var o=[];i(e,function(e,i,r){var s,l=e,u=l.colspan||1,c=i+u-1>=t&&i<n;if(o[r]=o[r]||[],c)i<t?(s=u-(t-i),i=t):s=u,i+s>n&&(s=n-i),s!==u&&(l=(0,a.extend)({},l,{colspan:s})),o[r].push(l);else if(i>n)return!1});for(var r=0;r<o.length;r++)o[r]=o[r]||[];return o}var a=n(0);t.foreachColumnInfo=i,t.createColumnsInfo=o},function(e,t,n){var i=n(0);e.exports={_getEmptyCell:function(){return{text:"",value:void 0,colspan:1,rowspan:1}},_defaultSetter:function(e){return e?e:1},_cloneItem:function(e){return(0,i.extend)({},e,this._getEmptyCell())},_prepareItems:function(e){function t(e,o,a){var r=i[e]=i[e]||[];if(r[o]=a,a.colspan>1||a.rowspan>1){for(var s=n._cloneItem(a),l=1;l<a.colspan;l++)t(e,o+l,s);for(var u=1;u<a.rowspan;u++)for(var c=0;c<a.colspan;c++)t(e+u,o+c,s)}}for(var n=this,i=[],o=(e[0]||[]).reduce(function(e,t){return e+n._defaultSetter(t.colspan)},0),a=function(e){var t=0,i=0;return function(){var o=e[t]||[],a=o[i++];return i>=o.length&&(t++,i=0),a&&(a.colspan=n._defaultSetter(a.colspan),a.rowspan=n._defaultSetter(a.rowspan)),a}}(e),r=a(),s=0;r;){for(var l=0;l<o&&r;l++)i[s]&&i[s][l]||(t(s,l,r),l+=r.colspan-1,r=a());s++}return i}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(39),s=i(r),l=n(3),u=n(36),c=n(4),d=n(1),h=n(6),p="dx-row-focused",f=".dx-row."+p,g="dx-cell-focus-disabled";t.FocusController=s.default.ViewController.inherit(function(){return{init:function(){this._dataController=this.getController("data"),this._keyboardController=this.getController("keyboardNavigation"),this.component._optionsByReference.focusedRowKey=!0},optionChanged:function(e){"focusedRowIndex"===e.name?(this._focusRowByIndex(e.value),e.handled=!0):"focusedRowKey"===e.name?(this._focusRowByKey(e.value),e.handled=!0):"focusedColumnIndex"===e.name?e.handled=!0:"focusedRowEnabled"===e.name?e.handled=!0:this.callBase(e)},_focusRowByIndex:function(e){this.option("focusedRowEnabled")&&(e=void 0!==e?e:this.option("focusedRowIndex"),e<0?this._resetFocusedRow():this._focusRowByIndexCore(e))},_focusRowByIndexCore:function(e){var t=this,n=this.getController("data"),i=n.pageSize(),o=function(){if(t._isValidFocusedRowIndex(e)){var i=Math.min(e-n.getRowIndexOffset(),n.items().length-1),o=n.getKeyByRowIndex(i);void 0===o||t.isRowFocused(o)||t.option("focusedRowKey",o)}};if(i>=0)if(this._isLocalRowIndex(e))o();else{var a=Math.floor(e/n.pageSize());(0,h.when)(n.pageIndex(a),n.waitReady()).done(function(){o()})}},_isLocalRowIndex:function(e){var t=this.getController("data"),n=this.getController("keyboardNavigation")._isVirtualScrolling();if(n){var i=Math.floor(e/t.pageSize()),o=t.virtualItemsCount(),a=o?o.begin:-1,r=t.getVisibleRows().length+t.getRowIndexOffset(),s=Math.ceil(r/t.pageSize());return a<=e&&s>i}return!0},_setFocusedRowKeyByIndex:function(e){var t=this.getController("data");if(this._isValidFocusedRowIndex(e)){var n=Math.min(e-t.getRowIndexOffset(),t.items().length-1),i=t.getKeyByRowIndex(n);void 0===i||this.isRowFocused(i)||this.option("focusedRowKey",i)}},_focusRowByKey:function(e){void 0===e?this._resetFocusedRow():this.navigateToRow(e)},_resetFocusedRow:function(){void 0===this.option("focusedRowKey")&&this.option("focusedRowIndex")<0||(this.option("focusedRowKey",void 0),this.getController("keyboardNavigation").setFocusedRowIndex(-1),this.option("focusedRowIndex",-1),this.getController("data").updateItems({changeType:"updateFocusedRow",focusedRowKey:void 0}))},_isValidFocusedRowIndex:function(e){var t=this.getController("data"),n=t.getVisibleRows()[e];return!n||"data"===n.rowType||"group"===n.rowType},publicMethods:function(){return["navigateToRow","isRowFocused"]},navigateToRow:function(e){var t=this,n=this.getController("data"),i=this.option("focusedRowIndex"),o=new h.Deferred;if(void 0===e||!n.dataSource())return o.reject().promise();var a=t._getFocusedRowIndexByKey(e),r=n.getDataSource().paginate();return!r||i>=0&&i===a?t._triggerUpdateFocusedRow(e,o):n.getPageIndexByKey(e).done(function(i){return i<0?void o.resolve(-1):void(i===n.pageIndex()?n.reload().done(function(){t.isRowFocused(e)?o.resolve(t._getFocusedRowIndexByKey(e)):t._triggerUpdateFocusedRow(e,o)}).fail(o.reject):n.pageIndex(i).done(function(){"virtual"===t.option("scrolling.rowRenderingMode")?setTimeout(function(){t._navigateToVirtualRow(e,o)}):t._triggerUpdateFocusedRow(e,o)}).fail(o.reject))}).fail(o.reject),o.promise()},_navigateToVirtualRow:function(e,t){var n=this,i=this.getController("data"),o=i._rowsScrollController,a=(0,u.getIndexByKey)(e,i.items(!0)),r=n.getView("rowsView").getScrollable();if(o&&r&&a>=0){var s=a+i.getRowIndexOffset()-i.getRowIndexDelta(),l=o.getItemOffset(s),c=function i(){n.component.off("contentReady",i),n._triggerUpdateFocusedRow(e,t)};n.component.on("contentReady",c),r.scrollTo({y:l})}},_triggerUpdateFocusedRow:function(e,t){var n=this.getController("data"),i=this._getFocusedRowIndexByKey(e);if(this._isValidFocusedRowIndex(i)){if(this.getController("keyboardNavigation").setFocusedRowIndex(i),this.option("focusedRowEnabled"))n.updateItems({changeType:"updateFocusedRow",focusedRowKey:e});else{var o=n.getRowIndexByKey(e);this._scrollToFocusedRow(this.getView("rowsView").getRow(o))}t&&t.resolve(i)}else t&&t.resolve(-1)},_getFocusedRowIndexByKey:function(e){var t=this.getController("data"),n=t.getRowIndexByKey(e);return n>=0?n+t.getRowIndexOffset():-1},_focusRowByKeyOrIndex:function(){var e=this,t=this.option("focusedRowKey"),n=this.option("focusedRowIndex"),i=this.getController("keyboardNavigation"),o=this.getController("data");if(void 0!==t){var a=o.getRowIndexByKey(t);a>=0?(i._isVirtualScrolling()&&(n=a+o.getRowIndexOffset()),i.setFocusedRowIndex(n),this._triggerUpdateFocusedRow(t)):this.navigateToRow(t).done(function(t){n>=0&&t<0&&e._focusRowByIndex()})}else n>=0&&this.getController("focus")._focusRowByIndex(n)},isRowFocused:function(e){var t=this.option("focusedRowKey");if(void 0!==t)return(0,c.equalByValue)(e,this.option("focusedRowKey"))},updateFocusedRow:function(e){var t,n,i=this,o=i._dataController.getRowIndexByKey(e.focusedRowKey),r=i.getView("rowsView");(0,l.each)(r.getTableElements(),function(r,s){n=(0,a.default)(s),i._clearPreviousFocusedRow(n,o);var l=0===r;t=i._prepareFocusedRow(e.items[o],n,o),l&&i.getController("keyboardNavigation")._fireFocusedRowChanged(t)})},_clearPreviousFocusedRow:function(e,t){var n,i=e.find(f);i.removeClass(p).removeClass(g).removeAttr("tabindex"),i.children("td").removeAttr("tabindex"),0!==t&&(n=(0,a.default)(this.getView("rowsView").getRowElement(0)),n.removeClass(g).removeAttr("tabIndex"))},_prepareFocusedRow:function(e,t,n){var i,o=this.option("tabindex")||0;return!e||"data"!==e.rowType&&"group"!==e.rowType||(i=(0,a.default)(this.getView("rowsView")._getRowElements(t).eq(n)),i.addClass(p).attr("tabindex",o),this._scrollToFocusedRow(i)),i},_scrollToFocusedRow:function(e){var t,n=this,i=n.getView("rowsView"),o=i.element();if(o&&(t=e&&e.length?e:o.find(f),t.length>0)){var a,r=t[0].getBoundingClientRect(),s=i.element()[0].getBoundingClientRect();r.bottom>s.bottom?a=r.bottom-s.bottom:r.top<s.top&&(a=r.top-s.top),a&&i.scrollTo({y:i._scrollTop+a})}}}}()),e.exports={defaultOptions:function(){return{focusedRowEnabled:!1,focusedRowKey:void 0,focusedRowIndex:-1,focusedColumnIndex:-1}},controllers:{focus:t.FocusController},extenders:{controllers:{keyboardNavigation:{init:function(){var e=this.option("focusedRowIndex"),t=this.option("focusedColumnIndex");this.option("focusedRowEnabled")&&(this.createAction("onFocusedRowChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedRowChanged",{excludeValidators:["disabled","readOnly"]})),this.createAction("onFocusedCellChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanged",{excludeValidators:["disabled","readOnly"]}),this.callBase(),this.setRowFocusType(),this._focusedCellPosition={},(0,d.isDefined)(e)&&(this._focusedCellPosition.rowIndex=this.option("focusedRowIndex")),(0,d.isDefined)(t)&&(this._focusedCellPosition.columnIndex=this.option("focusedColumnIndex"))},setFocusedRowIndex:function(e){this.callBase(e);var t=this.getController("data").getVisibleRows()[e];t&&t.inserted||this.option("focusedRowIndex",e)},setFocusedColumnIndex:function(e){this.callBase(e),this.option("focusedColumnIndex",e)},_escapeKeyHandler:function(e,t){return t||!this.option("focusedRowEnabled")?void this.callBase(e,t):void(this.isCellFocusType()&&(this.setRowFocusType(),this._focus(this._getCellElementFromTarget(e.originalEvent.target),!0)))},_updateFocusedCellPosition:function(e,t){var n=this.option("focusedRowIndex"),i=this.option("focusedColumnIndex");this.callBase(e,t)&&this._fireFocusedCellChanged(e,i,n)}},editorFactory:{renderFocusOverlay:function(e,t){var n,i=this.getController("keyboardNavigation"),o=this.option("focusedRowEnabled"),a=this.getController("editing"),r="row"===i._getElementType(e);o&&i.isRowFocusType()&&!a.isEditing()?o&&r&&!e.hasClass(p)&&(n=i.getFirstValidCellInRow(e),i.focus(n)):this.callBase(e,t)}},columns:{getSortDataSourceParameters:function(){var e=this,t=this.callBase.apply(this,arguments),n=this.getController("data"),i=n._dataSource,o=n.store(),a=o&&o.key(),r=i&&i.remoteOperations()||{},s=Object.keys(r).every(function(e){return!r[e]});if(this.option("focusedRowEnabled")&&a){a=Array.isArray(a)?a:[a];var l=a.filter(function(t){return!e.columnOption(t,"sortOrder")});l.length&&(t=t||[],s?t.push({selector:i.getDataIndexGetter(),desc:!1}):l.forEach(function(e){return t.push({selector:e,desc:!1})}))}return t}},data:{_applyChange:function(e){if(!e||"updateFocusedRow"!==e.changeType)return this.callBase.apply(this,arguments)},_fireChanged:function(e){var t;if(this.option("focusedRowEnabled")&&this._dataSource){var n="update"===e.changeType&&e.repaintChangesOnly;t=n&&e.changeTypes&&e.changeTypes.indexOf("remove")>=0,t&&this.callBase(e),("refresh"===e.changeType||t)&&this.processUpdateFocusedRow()}t||this.callBase(e)},processUpdateFocusedRow:function(){var e=this._prevPageIndex,t=this.pageIndex(),n=this._prevRenderingPageIndex||0,i=this._rowsScrollController?this._rowsScrollController.pageIndex():0,o=this._dataSource.operationTypes()||{},a=this.getController("focus"),r=o.reload,s=this.getController("keyboardNavigation")._isVirtualScrolling(),l=this.option("focusedRowKey"),u=void 0!==e&&e!==t,c=i!==n;this._prevPageIndex=t,this._prevRenderingPageIndex=i,r&&void 0!==l?a.navigateToRow(l).done(function(e){e<0&&a._focusRowByIndex()}):u?!s&&this.option("focusedRowIndex")>=0&&a._focusRowByIndex():c||a._focusRowByKeyOrIndex()},getPageIndexByKey:function(e){var t=this,n=new h.Deferred;return t.getGlobalRowIndexByKey(e).done(function(e){n.resolve(e>=0?Math.floor(e/t.pageSize()):-1)}).fail(n.reject),n.promise()},getGlobalRowIndexByKey:function(e){return this._dataSource.group()?this._calculateGlobalRowIndexByGroupedData(e):this._calculateGlobalRowIndexByFlatData(e)},_calculateGlobalRowIndexByFlatData:function(e,t,n){var i=this,o=new h.Deferred,a=i._dataSource,r=i._generateFilterByKey(e);return a.load({filter:i._concatWithCombinedFilter(r),skip:0,take:1}).done(function(s){s.length>0?(r=i._generateOperationFilterByKey(e,s[0],n),a.load({filter:i._concatWithCombinedFilter(r,t),skip:0,take:1,requireTotalCount:!0}).done(function(e,t){o.resolve(t.totalCount)})):o.resolve(-1)}),o.promise()},_concatWithCombinedFilter:function(e,t){var n=this.getCombinedFilter();return(0,u.combineFilters)([e,n,t])},_generateBooleanFilter:function(e,t,n){var i=void 0;return t===!1?i=[e,"=",!!n.desc||null]:(t===!0?!n.desc:n.desc)&&(i=[e,"<>",t]),i},_generateOperationFilterByKey:function(e,t,n){var i,o=this,a=o._dataSource,r=o._generateFilterByKey(e,"<"),s=o._columnsController.getSortDataSourceParameters(!a.remoteOperations().filtering);if(n){var l=o._columnsController.getGroupDataSourceParameters(!a.remoteOperations().filtering);l&&(s=s?l.concat(s):l)}return s&&s.slice().reverse().forEach(function(e){var n,a,s=e.selector;n="function"==typeof s?s:o._columnsController.columnOption(s,"selector"),a=n?n(t):t[s],r=[[s,"=",a],"and",r],null===a||(0,d.isBoolean)(a)?(i=o._generateBooleanFilter(s,a,e),i&&(r=[i,"or",r])):r=[[s,e.desc?">":"<",a],"or",r]}),r},_generateFilterByKey:function(e,t){var n,i=this._dataSource.key(),o=[];if(t||(t="="),Array.isArray(i))for(var a=0;a<i.length;++a)n=e[i[a]],n&&(o.length>0&&o.push("and"),o.push([i[a],t,n]));else o=[i,t,e];return o}}},views:{rowsView:{_createRow:function(e){var t=this.callBase(e);return this.option("focusedRowEnabled")&&e&&this.getController("focus").isRowFocused(e.key)&&t.addClass(p),t},_checkRowKeys:function(e){if(this.callBase.apply(this,arguments),this.option("focusedRowEnabled")&&this.option("dataSource")){var t=this._dataController.store();t&&!t.key()&&this._dataController.fireError("E1042","Row focusing")}},_update:function(e){"updateFocusedRow"===e.changeType?this.option("focusedRowEnabled")&&this.getController("focus").updateFocusedRow(e):this.callBase(e)},updateFocusElementTabIndex:function(e){this.option("focusedRowEnabled")?this._setFocusedRowElementTabIndex():this.callBase(e)},_setFocusedRowElementTabIndex:function(){var e=this,t=e.option("focusedRowKey"),n=e.option("tabIndex"),i=e._dataController.getRowIndexByKey(t),o=e.option("focusedColumnIndex"),a=e.getCellElements(i>=0?i:0),r=a.eq(0).parent(),s=e.component.getController("data")._dataSource,l=s&&s.operationTypes();e._scrollToFocusOnResize=e._scrollToFocusOnResize||function(){e.getController("focus")._scrollToFocusedRow(r),e.resizeCompleted.remove(e._scrollToFocusOnResize)},r.length&&(r.attr("tabIndex",n),i>=0&&(o<0&&(o=0),i+=e.getController("data").getRowIndexOffset(),e.getController("keyboardNavigation").setFocusedCellPosition(i,o),l&&!l.paging&&(e.resizeCompleted.remove(e._scrollToFocusOnResize),e.resizeCompleted.add(e._scrollToFocusOnResize))))}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(17),s=i(r),l=n(4),u=i(l),c=n(1),d=i(c),h=n(3),p=n(20),f=i(p),g=n(0),_=n(36),m=i(_),v=n(68),y=i(v),x=n(41),b=i(x),w=n(337),C=i(w),k=n(6),S=n(80),I="id",T=function(e){return"fullBranch"===e.option("filterMode")},D=C.default.inherit(function(){var e=function(e,t){var n=[];return t.forEach(function(t){var i=e.getNodeByKey(t);i&&i.children.forEach(function(e){n.push(e.key)})}),n};return{_createKeyGetter:function(){var e=this.getKeyExpr();return f.default.compileGetter(e)},_createKeySetter:function(){var e=this.getKeyExpr();return d.default.isFunction(e)?e:f.default.compileSetter(e)},_createParentIdGetter:function(){return f.default.compileGetter(this.option("parentIdExpr"))},createParentIdSetter:function(){var e=this.option("parentIdExpr");return d.default.isFunction(e)?e:f.default.compileSetter(e)},_createItemsGetter:function(){return f.default.compileGetter(this.option("itemsExpr"))},_createHasItemsGetter:function(){var e=this.option("hasItemsExpr");return e&&f.default.compileGetter(e)},_createHasItemsSetter:function(){var e=this.option("hasItemsExpr");return d.default.isFunction(e)?e:e&&f.default.compileSetter(e)},_updateIndexByKeyObject:function(e){var t=this;t._indexByKey={},(0,h.each)(e,function(e,n){t._indexByKey[n.key]=e})},_calculateHasItems:function(e,t){var n,i=this,o=t.storeLoadOptions.parentIds,a=T(i);return i._hasItemsGetter&&(o||!t.storeLoadOptions.filter||a)&&(n=i._hasItemsGetter(e.data)),void 0===n&&(n=!(i._isChildrenLoaded[e.key]||!t.remoteOperations.filtering||!o&&!a)||(t.loadOptions.filter&&!t.remoteOperations.filtering&&a?e.children.length:e.hasChildren)),!!n},_createVisibleItemsByNodes:function(e,t){for(var n=this,i=[],o=0;o<e.length;o++)e[o].visible&&i.push(e[o]),(n.isRowExpanded(e[o].key,t)||!e[o].visible)&&e[o].hasChildren&&e[o].children.length&&(i=i.concat(n._createVisibleItemsByNodes(e[o].children,t)));return i},_convertItemToNode:function(e,t,n){var i,o,a=this._keyGetter(e),r=this._parentIdGetter(e);return r=d.default.isDefined(r)?r:t,i=n[r]=n[r]||{key:r,children:[]},o=n[a]=n[a]||{key:a,children:[]},o.data=e,o.parent=i,o},_createNodesByItems:function(e,t){var n,i=this,o=i.option("rootValue"),a={},r=i._nodeByKey={};if(t)for(n=0;n<t.length;n++)a[this._keyGetter(t[n])]=!0;for(n=0;n<e.length;n++){var s=i._convertItemToNode(e[n],o,r);if(void 0===s.key)return;s.visible=!t||!!a[s.key],s.parent&&s.parent.children.push(s)}var l=r[o]||{key:o,children:[]};return l.level=-1,l},_convertDataToPlainStructure:function(e,t,n){var i,o,a,r;if(this._itemsGetter&&!e.isConverted){n=n||[];for(var s=0;s<e.length;s++)o=m.default.createObjectWithChanges(e[s]),i=this._keyGetter(o),void 0===i&&(i=n.length+1,this._keySetter(o,i)),this._parentIdSetter(o,void 0===t?this.option("rootValue"):t),n.push(o),r=this._itemsGetter(o),r&&r.length&&(this._convertDataToPlainStructure(r,i,n),
59a=this.option("itemsExpr"),d.default.isFunction(a)||delete o[a]);return n.isConverted=!0,n}return e},_createIdFilter:function(e,t){for(var n=[],i=0;i<t.length;i++)n.push([e,"=",t[i]]);return m.default.combineFilters(n,"or")},_customizeRemoteOperations:function(e,t,n){this.callBase.apply(this,arguments),e.remoteOperations.paging=!1;var i=!1;this.option("autoExpandAll")&&(e.remoteOperations.sorting=!1,e.remoteOperations.filtering=!1,this._lastLoadOptions&&(!n.filtering||e.storeLoadOptions.filter)||e.isCustomLoading||(i=!0)),e.isCustomLoading||(this._isReload=this._isReload||t||n.reload,e.cachedStoreData||(this._isChildrenLoaded={}),this.option("expandNodesOnFiltering")&&(n.filtering||this._isReload&&e.storeLoadOptions.filter)&&(e.storeLoadOptions.filter?i=!0:e.collapseVisibleNodes=!0)),e.expandVisibleNodes=i},_getParentIdsToLoad:function(e){for(var t=[],n=0;n<e.length;n++){var i=this.getNodeByKey(e[n]);i&&i.hasChildren&&!i.children.length&&t.push(e[n])}return t},_handleDataLoading:function(e){var t,n,i=this.option("rootValue"),o=this.option("parentIdExpr"),a=e.storeLoadOptions.parentIds;a&&(e.isCustomLoading=!1),this.callBase.apply(this,arguments),e.remoteOperations.filtering&&!e.isCustomLoading&&(T(this)&&e.cachedStoreData||!e.storeLoadOptions.filter)&&(n=e.collapseVisibleNodes?[]:this.option("expandedRowKeys"),a=[i].concat(n).concat(a||[]),t=e.data?this._getParentIdsToLoad(a):a,t.length&&(e.cachedPagingData=void 0,e.data=void 0,e.mergeStoreLoadData=!0),e.storeLoadOptions.parentIds=t,e.storeLoadOptions.filter=this._createIdFilter(o,t))},_generateInfoToLoad:function(e,t){var n,i,o,a=this,r={},s={},l=[],u=a.option("rootValue");for(o=0;o<e.length;o++)n=t?a._parentIdGetter(e[o]):a._keyGetter(e[o]),r[n]=!0;for(o=0;o<e.length;o++)n=t?a._keyGetter(e[o]):a._parentIdGetter(e[o]),i=t?a.isRowExpanded(n):n!==u,r[n]||s[n]||!i||(s[n]=!0,l.push(n));return{keyMap:s,keys:l}},_loadParentsOrChildren:function(e,t,n){function i(t){return _&&(c._cachedStoreData=c._cachedStoreData.concat(t)),e.concat(t)}var o,a,r,s,l,u=this,c=this,d=c._generateInfoToLoad(e,n),h=d.keys,p=d.keyMap,f=new k.Deferred,_=t.remoteOperations.filtering,m=c.option("maxFilterLengthInRequest"),v=_?t.storeLoadOptions:t.loadOptions;if(!h.length)return f.resolve(e);var x=h.map(function(e){return u.getNodeByKey(e)}).filter(function(e){return e});return x.length===h.length&&(n&&(x=x.reduce(function(e,t){return e.concat(t.children)},[])),x.length)?c._loadParentsOrChildren(i(x.map(function(e){return e.data})),t,n):(r=n?c.option("parentIdExpr"):c.getKeyExpr(),a=c._createIdFilter(r,h),s=encodeURI(JSON.stringify(a)).length,s>m&&(a=function(e){return p[c._keyGetter(e)]},l=_),v=(0,g.extend)({},v,{filter:l?null:a}),o=t.fullData?new y.default(t.fullData):c._dataSource.store(),o.load(v).done(function(o){o.length?(l&&(o=(0,b.default)(o).filter(a).toArray()),c._loadParentsOrChildren(i(o),t,n).done(f.resolve).fail(f.reject)):f.resolve(e)}).fail(f.reject),f)},_loadParents:function(e,t){return this._loadParentsOrChildren(e,t)},_loadChildrenIfNeed:function(e,t){return T(this)?this._loadParentsOrChildren(e,t,!0):(0,k.when)(e)},_updateHasItemsMap:function(e){var t=e.storeLoadOptions.parentIds;if(t)for(var n=0;n<t.length;n++)this._isChildrenLoaded[t[n]]=!0},_getKeyInfo:function(){return{key:function(){return"key"},keyOf:function(e){return e.key}}},_applyBatch:function(e){var t=this,n=[];e.forEach(function(e){"insert"===e.type?n=n.concat(t._applyInsert(e)):"remove"===e.type?n=n.concat(t._applyRemove(e)):"update"===e.type&&n.push({type:e.type,key:e.key,data:{data:e.data}})}),this.callBase(n)},_setHasItems:function(e,t){var n=this._hasItemsSetter;e.hasChildren=t,n&&e.data&&n(e.data,t)},_applyInsert:function(e){var t=this,n=[],i=t.parentKeyOf(e.data),o=t.getNodeByKey(i);if(o){var a=t.option("rootValue"),r=t._convertItemToNode(e.data,a,t._nodeByKey);if(r.hasChildren=!1,r.level=o.level+1,r.visible=!0,o.children.push(r),t._isChildrenLoaded[r.key]=!0,t._setHasItems(o,!0),(!o.parent||t.isRowExpanded(o.key))&&void 0!==e.index){var s=t.items().indexOf(o)+1;s+=e.index>=0?Math.min(e.index,o.children.length):o.children.length,n.push({type:e.type,data:r,index:s})}}return n},_applyRemove:function(e){var t=[],n=this.getNodeByKey(e.key),i=n.parent;if(i){var o=i.children.indexOf(n);o>=0&&(i.children.splice(o,1),i.children.length||this._setHasItems(i,!1),t.push(e),t=t.concat(this.getChildNodeKeys(e.key).map(function(t){return{type:e.type,key:t}})))}return t},_handleDataLoaded:function(e){var t=e.data=this._convertDataToPlainStructure(e.data);!e.remoteOperations.filtering&&e.loadOptions.filter&&(e.fullData=(0,S.queryByOptions)((0,b.default)(e.data),{sort:e.loadOptions&&e.loadOptions.sort}).toArray()),this._updateHasItemsMap(e),this.callBase(e),t.isConverted&&this._cachedStoreData&&(this._cachedStoreData.isConverted=!0)},_fillNodes:function(e,t,n,i){var o=T(this);i=i||0;for(var r=0;r<e.length;r++){var s=e[r],l=!1;this._fillNodes(e[r].children,t,n,i+1),s.level=i,s.hasChildren=this._calculateHasItems(s,t),s.visible&&s.hasChildren&&(o?s.children.filter(function(e){return e.visible}).length?l=!0:s.children.length&&a.default.foreachNodes(s.children,function(e){e.visible=!0}):l=!0,t.expandVisibleNodes&&l&&n.push(s.key)),(s.visible||s.hasChildren)&&(s.parent.hasChildren=!0)}},_processTreeStructure:function(e,t){var n=e.data,i=e.storeLoadOptions.parentIds,o=[];if(i&&i.length||this._isReload){if(e.fullData&&e.fullData.length>e.data.length&&(n=e.fullData,t=t||e.data),this._rootNode=this._createNodesByItems(n,t),!this._rootNode)return void(e.data=(new k.Deferred).reject(s.default.Error("E1046",this.getKeyExpr())));this._fillNodes(this._rootNode.children,e,o),this._isNodesInitializing=!0,(e.collapseVisibleNodes||o.length)&&this.option("expandedRowKeys",o),this.executeAction("onNodesInitialized",{root:this._rootNode}),this._isNodesInitializing=!1,this._isReload=!1}n=this._createVisibleItemsByNodes(this._rootNode.children,e),e.data=n,this._totalItemsCount=n.length},_handleDataLoadedCore:function(e){var t,n=this,i=e.data,o=n.callBase,a=e.storeLoadOptions.filter||e.loadOptions.filter,r=n.option("filterMode"),s=e.storeLoadOptions.parentIds,l=a&&(!s||!s.length)&&"standard"!==r;if(!e.isCustomLoading){if(l){var u=e.data=new k.Deferred;return"matchOnly"===r&&(t=i),n._loadParents(i,e).done(function(i){n._loadChildrenIfNeed(i,e).done(function(i){e.data=i,n._processTreeStructure(e,t),o.call(n,e),u.resolve(e.data)})}).fail(u.reject)}n._processTreeStructure(e)}n.callBase(e)},init:function(e,t){this.callBase.apply(this,arguments);var n=this.option("dataStructure");this._keyGetter=this._createKeyGetter(),this._parentIdGetter=this._createParentIdGetter(),this._hasItemsGetter=this._createHasItemsGetter(),this._hasItemsSetter=this._createHasItemsSetter(),"tree"===n&&(this._itemsGetter=this._createItemsGetter(),this._keySetter=this._createKeySetter(),this._parentIdSetter=this.createParentIdSetter()),this._nodeByKey={},this._isChildrenLoaded={},this._totalItemsCount=0,this.createAction("onNodesInitialized")},getKeyExpr:function(){var e=this.store(),t=e&&e.key(),n=this.option("keyExpr");if(d.default.isDefined(t)&&d.default.isDefined(n)&&!u.default.equalByValue(t,n))throw s.default.Error("E1044");return t||n||I},keyOf:function(e){return this._keyGetter&&this._keyGetter(e)},parentKeyOf:function(e){return this._parentIdGetter&&this._parentIdGetter(e)},getRootNode:function(){return this._rootNode},totalItemsCount:function(){return this._totalItemsCount},isRowExpanded:function(e,t){if(t){var n=t.isExpandedByKey;return n||(n=t.isExpandedByKey={},this.option("expandedRowKeys").forEach(function(e){n[e]=!0})),!!n[e]}var i=m.default.getIndexByKey(e,this.option("expandedRowKeys"),null);return i>=0},_changeRowExpandCore:function(e){var t=this.option("expandedRowKeys"),n=m.default.getIndexByKey(e,t,null);n<0?t.push(e):t.splice(n,1),this.option("expandedRowKeys",t)},changeRowExpand:function(e){return this._changeRowExpandCore(e),this._isNodesInitializing?(new k.Deferred).resolve():this.load()},getNodeByKey:function(e){if(this._nodeByKey)return this._nodeByKey[e]},getNodeLeafKeys:function(){var e,t=this,n=[],i=t._rootNode?[t._rootNode.key]:[];return i.forEach(function(i){e=t.getNodeByKey(i),e&&a.default.foreachNodes([e],function(e){!e.children.length&&n.push(e.key)})}),n},getChildNodeKeys:function(e){var t=this.getNodeByKey(e),n=[];return t&&a.default.foreachNodes(t.children,function(e){n.push(e.key)}),n},loadDescendants:function(t,n){var i,o=this,a=new k.Deferred,r=o.remoteOperations();return t=d.default.isDefined(t)?Array.isArray(t)?t:[t]:o.getNodeLeafKeys(),r.filtering&&t.length?(i=o._dataSource._createStoreLoadOptions(),i.parentIds=t,o.load(i).done(function(){if(!n){var i=e(o,t);if(i.length)return void o.loadDescendants(i,n).done(a.resolve).fail(a.reject)}a.resolve()}).fail(a.reject),a.promise()):a.resolve()},forEachNode:function(){var e,t,n=[];1===arguments.length?(e=arguments[0],t=this.getRootNode(),n=t&&t.children||[]):2===arguments.length&&(e=arguments[1],n=arguments[0],n=Array.isArray(n)?n:[n]),a.default.foreachNodes(n,e)}}}());e.exports={extend:function(e){D=D.inherit(e)},create:function(e){return new D(e)}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a=n(2),r=i(a),s=n(7),l=n(15),u=i(l),c=n(45),d=n(35),h=n(4),p=n(0),f=n(1),g=n(3),_=n(13),m=n(78),v=n(6),y=n(279),x=(0,s.getWindow)();t.XmlaStore=u.default.inherit(function(){function e(e,t){var n=new v.Deferred,i=e.beforeSend,o={url:e.url,dataType:"text",data:t,headers:{"Content-Type":"text/xml"},xhrFields:{},method:"POST"};return(0,f.isFunction)(i)&&i(o),(0,m.sendRequest)(o).fail(function(){n.reject(arguments)}).done(function(e){var t,i=new x.DOMParser;try{try{t=i.parseFromString(e,"text/xml")}catch(e){t=void 0}if(!t||t.getElementsByTagName("parsererror").length||0===t.childNodes.length)throw new d.errors.Error("E4023",e)}catch(t){n.reject({statusText:t.message,stack:t.stack,responseText:e})}n.resolve(t)}),n}function t(){var e=(0,y.getLanguageId)();return void 0!==e?(0,c.format)("<LocaleIdentifier>{0}</LocaleIdentifier>",e):""}function n(e,t,n){var i=t?t:e;return"Descendants({"+i+"}, "+n+", SELF_AND_BEFORE)"}function i(e){return(e.hierarchyName||e.dataField)+".[All]"}function a(e){var t=e.dataField+".allMembers",n=e.searchValue;return n&&(n=n.replace(/'/g,"''"),t="Filter("+t+", instr("+e.dataField+".currentmember.member_caption,'"+n+"') > 0)"),t}function s(e){var t=e.join(",");return e.length>1?(0,c.format)(ce,t):t}function l(e){var t=e.join(",");return e.length>1?"Union("+t+")":t}function u(e,t,o,r,l,u,d,h){var p,f,g,_,m,v,y,x,b,w,C,k,S=[],I=u[d],T=[];for(k=r;k<=t;k++)if(w=I[k],p=w.dataField,v=I[k-1]&&I[k-1].hierarchyName,g=w.hierarchyName,y=!g||!I[k+1]||I[k+1].hierarchyName!==g,b=e.length+o+r,_=null,T.push(w),k<e.length?y&&(_="("+p+"."+H(e[k],p)+")"):k<=b?0===k&&0===o?(f=i(I[r]),_=g?f+","+I[r].dataField:a(I[r])):g?(C=H(l[l.length-1]),(y||k===b)&&(v===g?(l.length&&(m=I[l.length-1]),m&&m.hierarchyName===g||(m=I[k-1],C=""),_=n(m.dataField,C,p)):_=a(w))):_=a(w):(x=!g||v!==g,x&&(_="("+i(w)+")")),_){if(_=(0,c.format)(de,_),h){var D=(w.hierarchyName||w.dataField)+("displayText"===w.sortBy?".MEMBER_CAPTION":".MEMBER_VALUE");_=(0,c.format)(ae,_,D,"desc"===w.sortOrder?"DESC":"ASC")}S.push(_)}return s(S)}function b(e,t,n,i,o,a,r,s,l,d){var h,p=-1,f=a[r];do{p++,h=t.length+p+i;var g=u(t,n,p,i,o,a,r,l);l||d||(g=(0,c.format)(le,g,s)),e.push(g)}while(f[h]&&f[h+1]&&f[h].expanded)}function w(e,t,n,i){return n=n||"[DX_Set_"+t.length+"]",i=i||"set",t.push((0,c.format)(re,i,n,e)),n}function C(e,t,n,i,o){var a=e[t],r=[],u=[],d=[],h=0,p=0,f=[],_=(0,c.format)(de,n.join(","));if(a&&a.length){e.headerName===t?(u=e.path,h=u.length):e.headerName&&e.oppositePath?(u=e.oppositePath,h=u.length):d=("columns"===t?e.columnExpandedPaths:e.rowExpandedPaths)||d,p=(0,m.getExpandedLevel)(e,t),b(r,[],p,h,u,e,t,_,"rows"===t?e.rowTake:e.columnTake,e.totalsOnly),(0,g.each)(d,function(n,i){b(r,i,p,h,i,e,t,_)});for(var v=p;v>=u.length;v--)a[v].hierarchyName&&(o.visibleLevels[a[v].hierarchyName]=o.visibleLevels[a[v].hierarchyName]||[],o.visibleLevels[a[v].hierarchyName].push(a[v].dataField))}if(r.length){var y=l(r);"rows"===t&&e.rowTake&&(y=(0,c.format)(oe,y,e.rowSkip>0?e.rowSkip+1:0,e.rowSkip>0?e.rowTake:e.rowTake+1)),"columns"===t&&e.columnTake&&(y=(0,c.format)(oe,y,e.columnSkip>0?e.columnSkip+1:0,e.columnSkip>0?e.columnTake:e.columnTake+1));var x="[DX_"+t+"]";f.push(w(y,i,x)),e.totalsOnly&&f.push(w("COUNT("+x+")",i,"[DX_"+t+"_count]","member"))}return"columns"===t&&n.length&&!e.skipValues&&f.push(_),(0,c.format)(ue,s(f),t)}function k(e){var t=[];return(0,g.each)(e,function(e,n){var i,o=n.dataField,r=[],s=n.filterValues||[];n.hierarchyName&&(0,f.isNumeric)(n.groupIndex)||((0,g.each)(s,function(e,t){var i=o+"."+H(Array.isArray(t)?t[t.length-1]:t,o);"exclude"===n.filterType&&(r.push(i+".parent"),i="Descendants("+i+")"),r.push(i)}),s.length&&(i=(0,c.format)(de,r.join(",")),"exclude"===n.filterType&&(i="Except("+a(n)+","+i+")"),t.push(i)))}),t.length?s(t):""}function S(e,t,n,i){var o="["+i+"]";return(0,g.each)([e,t,n],function(e,t){t&&(o=(0,c.format)(ie,t+"on 0",o))}),o}function I(e,t,n,i,o,a,r){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l="",u=(t.length?"with "+t.join(" "):"")+" ";if(e.length){var d=void 0;if(s.totalsOnly){var h=[];i.length&&h.push("[DX_rows_count]"),n.length&&h.push("[DX_columns_count]"),d="{"+h.join(",")+"} on columns"}else d=e.join(",");l=u+(0,c.format)(ne,S(k(n),k(i),k(o||[]),r),a.length?(0,c.format)(se,a.join(",")):"",d)}return l}function T(e,t){return(0,g.map)(t,function(t){return(0,f.isString)(t.expression)&&w(t.expression,e,t.dataField,"member"),t.dataField})}function D(e,t,n,i){(0,g.each)(i,function(i,o){var a=t[n][i];a.hierarchyName&&a.hierarchyName===t[n][i+1].hierarchyName||e.push(a.dataField+"."+H(o,a.dataField))})}function E(e,t,n){var i=e.columns||[],o=e.rows||[],a=e.values&&e.values.length?e.values:[{dataField:"[Measures]"}],r=[],s=[],l=[],u=T(s,a);return n.measureCount=e.skipValues?1:a.length,n.visibleLevels={},e.headerName&&e.path&&D(r,e,e.headerName,e.path),e.headerName&&e.oppositePath&&D(r,e,"rows"===e.headerName?"columns":"rows",e.oppositePath),(i.length||u.length)&&l.push(C(e,"columns",u,s,n)),o.length&&l.push(C(e,"rows",u,s,n)),I(l,s,i,o,e.filters,r,t,e)}function A(e,t,n){(0,g.each)(n,function(n,i){var o=t[n];o.hierarchyName&&(t[n+1]||{}).hierarchyName===o.hierarchyName||e.push(o.dataField+"."+H(i,o.dataField))})}function O(e,t,n){var i,o=e.columns||[],a=e.rows||[],r=e.values&&e.values.length?e.values:[{dataField:"[Measures]"}],s=[],l=[],u=[],c=T(l,r),d=n.maxRowCount,h=n.customColumns||[],p=h.length>0?" return "+h.join(","):"";return A(s,o,n.columnPath||[]),A(s,a,n.rowPath||[]),(o.length||o.length||c.length)&&u.push([(c[n.dataIndex]||c[0])+" on 0"]),i=I(u,l,o,a,e.filters,s,t),i?"drillthrough"+(d>0?" maxrows "+d:"")+i+p:i}function B(e){return parseInt(e,10)}function P(e){return(0,f.isNumeric)(e)?parseFloat(e):e}function M(e,t){return(e.getElementsByTagName(t)||[])[0]}function R(e,t){return F(M(e,t))}function V(e,t){var n=[];for((0,g.each)(e.getElementsByTagName("Axis"),function(e,i){var o=i.getAttribute("name"),a=[],r=0;0===o.indexOf("Axis")&&(0,f.isNumeric)(B(o.substr(4)))&&(n.push(a),(0,g.each)(i.getElementsByTagName("Tuple"),function(e,i){var o,s,l,u=i.childNodes,c=0,d=[],h=t?u.length:u.length-1,p=1===n.length;for(p&&h--,a.push(d),l=h;l>=0;l--)o=u[l],s=B(R(o,"LNum")),d[l]={caption:R(o,"Caption"),value:P(R(o,"MEMBER_VALUE")),level:s,index:r++,hasValue:!(c||!s&&0!==l),name:R(o,"UName"),hierarchyName:u[l].getAttribute("Hierarchy"),parentName:R(o,"PARENT_UNIQUE_NAME"),levelName:R(o,"LName")},c+=s}))});n.length<2;)n.push([[{level:0}]]);return n}function F(e){return e&&e&&(e.textContent||e.text||e.innerHTML)||""}function L(e,t,n){for(var i,o,a=[],r=[],s=0,l=[],u=e.getElementsByTagName("Cell"),c={},h=0;h<u.length;h++){var p=u[h],f=p.getElementsByTagName("Value")[0],_=f&&f.getElementsByTagName("Error")||[],m=0===_.length?F(f):"#N/A",v=parseFloat(m),y=m-v+1>0,x=B(p.getAttribute("CellOrdinal"));_.length&&(c[F(_[0].getElementsByTagName("ErrorCode")[0])]=F(_[0].getElementsByTagName("Description")[0])),l[x]={value:y?v:m||null}}return(0,g.each)(t[1],function(){o=[],a.push(o),(0,g.each)(t[0],function(){i=s%n,0===i&&(r=[],o.push(r)),r.push(l[s]?l[s].value:null),s++})}),Object.keys(c).forEach(function(e){d.errors.log("W4002",c[e])}),a}function H(e,t){return e&&(e=(0,f.isString)(e)&&e.indexOf("&")!==-1?e:"["+e+"]",t&&0===e.indexOf(t+".")&&(e=e.slice(t.length+1,e.length))),e}function z(e,t,n,i){var o=e[t];return o||(o={},e[t]=o),!(0,f.isDefined)(o.value)&&n&&(o.text=n.caption,o.value=n.value,o.key=t?t:"",o.levelName=n.levelName,o.hierarchyName=n.hierarchyName,o.parentName=n.parentName,o.index=i,o.level=n.level),o}function N(e,t){var n=[],i=e.children&&(e.children.length?e.children:Object.keys(e.children.grandTotalHash||{}).reduce(function(t,n){return t.concat(e.children.grandTotalHash[n].children)},[])),o=i&&i[0];if(o&&(t[o.hierarchyName]&&(0,_.inArray)(o.levelName,t[o.hierarchyName])!==-1||!t[o.hierarchyName]||0===o.level)){var a=i.filter(function(e){return e.hierarchyName===o.hierarchyName});return a.grandTotalHash=i.grandTotalHash,a}if(o)for(var r=0;r<i.length;r++)i[r].hierarchyName===o.hierarchyName&&n.push.apply(n,N(i[r],t));return n}function $(e,t,n){var i,o=n.children=n.children||[],a=o.hash=o.hash||{},r=o.grandTotalHash=o.grandTotalHash||{};return t.parentName&&(n=z(a,t.parentName),o=n.children=n.children||[]),i=z(a,t.name,t,e),t.hasValue&&!i.added&&(i.index=e,i.added=!0,o.push(i)),n.value&&n.parentName||!t.parentName?r[n.name]&&delete r[t.parentName]:r[t.parentName]=n,i}function W(e,t){var n;if(1===e.children.length&&""===e.children[0].parentName){n=e.children[0].index;var i=e.children.grandTotalHash;e.children=e.children[0].children||[],e.children.grandTotalHash=i,e.children=N(e,t)}else 0===e.children.length&&(n=0);return n}function G(e,t,n,i){var o,a=[];(0,g.each)(t,function(e,t){var i={children:a},o=(0,f.isDefined)(n)?Math.floor(e/n):e;(0,g.each)(t,function(e,t){i=$(o,t,i)})});var r={children:a};return r.children=N(r,i),o=W(r,i),(0,m.foreachTree)(r.children,function(e){var t=e[0],n=N(t,i);n.length?t.children=n:delete t.children,delete t.levelName,delete t.hierarchyName,delete t.added,delete t.parentName,delete t.level},!0),(0,g.each)(r.children||[],function(t,n){e.push(n)}),o}function j(e){var t,n,i=e.getElementsByTagName("soap:Fault"),o=e.getElementsByTagName("Fault"),a=(0,r.default)([].slice.call(o.length?o:i)).find("Error");return a.length?(t=a.attr("Description"),n=new d.errors.Error("E4000",t),d.errors.log("E4000",t),n):null}function q(e,t){var n,i={columns:[],rows:[]},o=t.measureCount;return n=V(e,t.skipValues),i.grandTotalColumnIndex=G(i.columns,n[0],o,t.visibleLevels),i.grandTotalRowIndex=G(i.rows,n[1],void 0,t.visibleLevels),i.values=L(e,n,o),i}function K(e,t,n,i){var o=[],a="MEASURE"===t,r=a?"MEASUREGROUP_NAME":t+"_DISPLAY_FOLDER";return(0,g.each)(e.getElementsByTagName("row"),function(e,s){var l="LEVEL"===t?R(s,"HIERARCHY_UNIQUE_NAME"):void 0,u=R(s,"LEVEL_NUMBER"),c=R(s,r);if(a&&(c=i[c]||c),("0"!==u||"true"!==R(s,t+"_IS_VISIBLE"))&&R(s,"DIMENSION_TYPE")!==pe){var d=a?he:R(s,"DIMENSION_UNIQUE_NAME"),h=R(s,t+"_UNIQUE_NAME");o.push({dimension:n.names[d]||d,groupIndex:u?B(u)-1:void 0,dataField:h,caption:R(s,t+"_CAPTION"),hierarchyName:l,groupName:l,displayFolder:c,isMeasure:a,isDefault:!!n.defaultHierarchies[h]})}}),o}function U(e){var t={};return(0,g.each)(e.getElementsByTagName("row"),function(e,n){t[R(n,"MEASUREGROUP_NAME")]=R(n,"MEASUREGROUP_CAPTION")}),t}function Y(e){var t={names:{},defaultHierarchies:{}};return(0,g.each)((0,r.default)(e).find("row"),function(){var e=(0,r.default)(this),n=e.children("DIMENSION_TYPE").text(),i=n===pe?he:e.children("DIMENSION_UNIQUE_NAME").text();t.names[i]=e.children("DIMENSION_CAPTION").text(),t.defaultHierarchies[e.children("DEFAULT_HIERARCHY").text()]=!0}),t}function X(e){e=e.replace(/_x(....)_/g,function(e,t){return String.fromCharCode(parseInt(t,16))});var t=e.match(/\[.+?\]/gi);return t&&t.length&&(e=t[t.length-1]),e.replace(/\[/gi,"").replace(/\]/gi,"").replace(/\$/gi,"").replace(/\./gi," ")}function Z(e){for(var t=e.getElementsByTagName("row"),n=[],i={},o=0;o<t.length;o++){for(var a=t[o].childNodes,r={},s=0;s<a.length;s++){var l=a[s].tagName,u=i[l]=i[l]||X(l);r[u]=F(a[s])}n.push(r)}return n}function Q(n,i){return i=(0,r.default)("<div>").text(i).html(),e(n,(0,c.format)(te,i,n.catalog,t()))}function J(e,t,n){var i=[],a=t.columns||[],r=t.rows||[];a.length&&i.push({}),r.length&&i.push({});var s=L(n,[[{}],[{},{}]],1);if(!a.length&&r.length&&(e.rowCount=Math.max(s[0][0][0]-1,0)),!r.length&&a.length&&(e.columnCount=Math.max(s[0][0][0]-1,0)),r.length&&a.length&&(e.rowCount=Math.max(s[0][0][0]-1,0),e.columnCount=Math.max(s[1][0][0]-1,0)),void 0!==e.rowCount&&t.rowTake){e.rows=[].concat(o(Array(t.rowSkip))).concat(e.rows),e.rows.length=e.rowCount;for(var l=0;l<e.rows.length;l++)e.rows[l]=e.rows[l]||{}}if(void 0!==e.columnCount&&t.columnTake){e.columns=[].concat(o(Array(t.columnSkip))).concat(e.columns),e.columns.length=e.columnCount;for(var u=0;u<e.columns.length;u++)e.columns[u]=e.columns[u]||{}}}var ee='<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Discover xmlns="urn:schemas-microsoft-com:xml-analysis"><RequestType>{2}</RequestType><Restrictions><RestrictionList><CATALOG_NAME>{0}</CATALOG_NAME><CUBE_NAME>{1}</CUBE_NAME></RestrictionList></Restrictions><Properties><PropertyList><Catalog>{0}</Catalog>{3}</PropertyList></Properties></Discover></Body></Envelope>',te='<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Execute xmlns="urn:schemas-microsoft-com:xml-analysis"><Command><Statement>{0}</Statement></Command><Properties><PropertyList><Catalog>{1}</Catalog><ShowHiddenCubes>True</ShowHiddenCubes><SspropInitAppName>Microsoft SQL Server Management Studio</SspropInitAppName><Timeout>3600</Timeout>{2}</PropertyList></Properties></Execute></Body></Envelope>',ne="SELECT {2} FROM {0} {1} CELL PROPERTIES VALUE, FORMAT_STRING, LANGUAGE, BACK_COLOR, FORE_COLOR, FONT_FLAGS",ie="(SELECT {0} FROM {1})",oe="Subset({0}, {1}, {2})",ae="Order({0}, {1}, {2})",re="{0} {1} as {2}",se="WHERE ({0})",le="NonEmpty({0}, {1})",ue="{0} DIMENSION PROPERTIES PARENT_UNIQUE_NAME,HIERARCHY_UNIQUE_NAME, MEMBER_VALUE ON {1}",ce="CrossJoin({0})",de="{{0}}",he="DX_MEASURES",pe="2";return{ctor:function(e){this._options=e},getFields:function(){var n=this._options,i=n.catalog,o=n.cube,a=t(),r=e(n,(0,c.format)(ee,i,o,"MDSCHEMA_DIMENSIONS",a)),s=e(n,(0,c.format)(ee,i,o,"MDSCHEMA_MEASURES",a)),l=e(n,(0,c.format)(ee,i,o,"MDSCHEMA_HIERARCHIES",a)),u=e(n,(0,c.format)(ee,i,o,"MDSCHEMA_LEVELS",a)),d=new v.Deferred;return(0,v.when)(r,s,l,u).then(function(t,r,s,l){e(n,(0,c.format)(ee,i,o,"MDSCHEMA_MEASUREGROUPS",a)).done(function(e){var n=Y(t),i=K(s,"HIERARCHY",n),o=K(l,"LEVEL",n),a=U(e),u=K(r,"MEASURE",n,a).concat(i),c={};(0,g.each)(o,function(e,t){c[t.hierarchyName]=c[t.hierarchyName]||[],c[t.hierarchyName].push(t)}),(0,g.each)(i,function(e,t){c[t.dataField]&&c[t.dataField].length>1&&(t.groupName=t.hierarchyName=t.dataField,u.push.apply(u,c[t.hierarchyName]))}),d.resolve(u)}).fail(d.reject)}).fail(d.reject),d},load:function e(t){var n=new v.Deferred,i=this._options,o={skipValues:t.skipValues},a=E(t,i.cube,o),r=void 0;(t.rowSkip||t.rowTake||t.columnTake||t.columnSkip)&&(r=E((0,p.extend)({},t,{totalsOnly:!0,rowSkip:null,rowTake:null,columnSkip:null,columnTake:null}),i.cube,{}));var e=function(){a?(0,v.when)(Q(i,a),r&&Q(i,r)).done(function(e,i){var a=j(e)||i&&j(i);if(a)n.reject(a);else{var r=q(e,o);i&&J(r,t,i),n.resolve(r)}}).fail(n.reject):n.resolve({columns:[],rows:[],values:[],grandTotalColumnIndex:0,grandTotalRowIndex:0})};return t.delay?setTimeout(e,t.delay):e(),n},supportPaging:function(){return!0},getDrillDownItems:function(e,t){var n=new v.Deferred,i=this._options,o=O(e,i.cube,t);return o?(0,v.when)(Q(i,o)).done(function(e){var t=j(e);t?n.reject(t):n.resolve(Z(e))}).fail(n.reject):n.resolve([]),n},key:h.noop,filter:h.noop}}()).include(m.storeDrillDownMixin)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=[];if(e.items)for(var i=0;i<e.items.length;i++)n.push.apply(n,o(e.items[i],t));else(0,h.isDefined)(e.index)&&n.push(t[e.index]);return n}function a(e,t){if(e.items)for(var n=0;n<e.items.length;n++){var i=a(e.items[n],t);if(i)return i}if(t(e))return e}function r(e,t){for(var n=0,i=0;!n&&B[i];)n=B[i++](e,t);return n}function s(e){return e.find(".dx-scrollable").dxScrollable("instance")}var l=n(2),u=i(l),c=n(62),d=n(7),h=n(1),p=n(0),f=n(13),g=n(3),_=n(14),m=n(9),v=i(m),y=n(78),x=n(141),b=i(x),w=n(104),C=i(w),k=n(256),S=i(k);n(201);var I="<div>",T=(0,d.hasWindow)(),D="dx-pivotgridfieldchooser",E="dx-pivotgridfieldchooser-container",A="dx-pivotgrid-fields-container",O="dx-pivotgrid-drag-action",B=[function(e,t){var n=-!!e.isMeasure,i=+!!t.isMeasure;return n+i},function(e,t){var n=-!(!e.items||!e.items.length),i=+!(!t.items||!t.items.length);return n+i},function(e,t){var n=+!!(e.isMeasure===!1&&e.field&&e.field.levels&&e.field.levels.length),i=-!!(t.isMeasure===!1&&t.field&&t.field.levels&&t.field.levels.length);return n+i},(0,y.getCompareFunction)(function(e){return e.text})],P=S.default.inherit({_getDefaultOptions:function(){return(0,p.extend)(this.callBase(),{height:400,layout:0,dataSource:null,onContextMenuPreparing:null,allowSearch:!1,searchTimeout:500,texts:{columnFields:(0,_.format)("dxPivotGrid-columnFields"),rowFields:(0,_.format)("dxPivotGrid-rowFields"),dataFields:(0,_.format)("dxPivotGrid-dataFields"),filterFields:(0,_.format)("dxPivotGrid-filterFields"),allFields:(0,_.format)("dxPivotGrid-allFields")}})},_refreshDataSource:function(){var e=this;e._expandedPaths=[],e._changedHandler=e._changedHandler||function(){(0,g.each)(e._dataChangedHandlers,function(e,t){t()}),e._fireContentReadyAction(),e._skipStateChange=!0,e.option("state",e._dataSource.state()),e._skipStateChange=!1},e._dataSource&&(e._dataSource.off("changed",e._changedHandler),e._dataSource=void 0),e.callBase(),e._dataSource&&e._dataSource.on("changed",e._changedHandler)},_init:function(){this.callBase(),this._refreshDataSource(),this._dataChangedHandlers=[],this._initActions()},_initActions:function(){this._actions={onContextMenuPreparing:this._createActionByOption("onContextMenuPreparing")}},_trigger:function(e,t){this._actions[e](t)},_setOptionsByReference:function(){this.callBase(),(0,p.extend)(this._optionsByReference,{dataSource:!0})},_optionChanged:function(e){var t=this;switch(e.name){case"dataSource":t._refreshDataSource(),t._invalidate();break;case"layout":case"texts":case"allowSearch":case"searchTimeout":t._invalidate();break;case"onContextMenuPreparing":t._actions[e.name]=t._createActionByOption(e.name);break;default:t.callBase(e)}},_clean:function(e){!e&&this._dataSource&&this.option("state",this._dataSource.state()),this.$element().children("."+E).remove()},_renderLayout0:function(e){var t,n,i,o,a,r,s=this;e.addClass("dx-layout-0"),a=(0,u.default)(I).addClass("dx-row").appendTo(e),r=(0,u.default)(I).addClass("dx-row").appendTo(e),t=(0,u.default)(I).addClass("dx-col").appendTo(a),n=(0,u.default)(I).addClass("dx-col").appendTo(a),i=(0,u.default)(I).addClass("dx-col").appendTo(r),o=(0,u.default)(I).addClass("dx-col").appendTo(r),s._renderArea(t,"all"),s._renderArea(n,"row"),s._renderArea(n,"column"),s._renderArea(i,"filter"),s._renderArea(o,"data")},_renderLayout1:function(e){var t,n,i=this;t=(0,u.default)(I).addClass("dx-col").appendTo(e),n=(0,u.default)(I).addClass("dx-col").appendTo(e),i._renderArea(t,"all"),i._renderArea(n,"filter"),i._renderArea(n,"row"),i._renderArea(n,"column"),i._renderArea(n,"data")},_renderLayout2:function(e){var t,n,i,o,a=this;e.addClass("dx-layout-2"),i=(0,u.default)(I).addClass("dx-row").appendTo(e),a._renderArea(i,"all"),o=(0,u.default)(I).addClass("dx-row").appendTo(e),t=(0,u.default)(I).addClass("dx-col").appendTo(o),n=(0,u.default)(I).addClass("dx-col").appendTo(o),a._renderArea(t,"filter"),a._renderArea(t,"row"),a._renderArea(n,"column"),a._renderArea(n,"data")},_initMarkup:function(){var e=this,t=this.$element(),n=(0,u.default)(I).addClass(E).appendTo(t),i=e.option("layout");e.callBase(),t.addClass(D).addClass(A),e._dataChangedHandlers=[];var o=this._dataSource,a="instantly"!==e.option("applyChangesMode")&&o&&o.state();a&&e.option("state")&&o.state(e.option("state"),!0),0===i?e._renderLayout0(n):1===i?e._renderLayout1(n):e._renderLayout2(n),a&&o.state(a,!0)},_renderContentImpl:function(){this.callBase(),this.renderSortable(),this._renderContextMenu(),this.updateDimensions()},_fireContentReadyAction:function(){this._dataSource&&this._dataSource.isLoading()||this.callBase()},_getContextMenuArgs:function(e){var t,n,i=(0,u.default)(e.target).closest(".dx-area-field"),o=(0,u.default)(e.target).closest(".dx-area-fields");if(i.length){var a=i.data("field");a&&(t=this.getDataSource().field(a.index)||a)}return o.length&&(n=o.attr("group")),{event:e,field:t,area:n,items:[]}},_renderContextMenu:function(){var e=this,t=e.$element();e._contextMenu&&e._contextMenu.$element().remove(),e._contextMenu=e._createComponent((0,u.default)(I).appendTo(t),C.default,{onPositioning:function(t){var n,i=t.event;i&&(n=e._getContextMenuArgs(i),e._trigger("onContextMenuPreparing",n),n.items&&n.items.length?t.component.option("items",n.items):t.cancel=!0)},target:t,onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:"dx-pivotgridfieldchooser-context-menu"})},_createTreeItems:function(e,t,n){var i,o=this,a=[],r=[],s=t[0],l={};return s?((0,g.each)(e,function(e,t){var n=t[s]||"";l[n]=l[n]||[],l[n].push(t),void 0===i&&(i=!0),i=i&&t.isMeasure===!0}),(0,g.each)(l,function(e,i){var s=n?n+"."+e:e,l=o._createTreeItems(i,t.slice(1),s);e?r.push({key:e,text:e,path:s,isMeasure:l.isMeasure,expanded:(0,f.inArray)(s,o._expandedPaths)>=0,items:l}):a=l}),a=r.concat(a),a.isMeasure=i):(0,g.each)(e,function(e,t){var n;t.isMeasure===!0&&(n="measure"),t.isMeasure===!1&&(n=t.groupName?"hierarchy":"dimension"),a.push({index:t.index,field:t,key:t.dataField,selected:(0,h.isDefined)(t.area),text:t.caption||t.dataField,icon:n,isMeasure:t.isMeasure,isDefault:t.isDefault})}),a},_createFieldsDataSource:function(e){var t,n=e&&e.fields()||[];return n=n.filter(function(e){return e.visible!==!1&&!(0,h.isDefined)(e.groupIndex)}),t=this._createTreeItems(n,["dimension","displayFolder"]),(0,y.foreachDataLevel)(t,function(e){e.sort(r)},0,"items"),t},_renderFieldsTreeView:function(e){var t=this,n=t._dataSource,i=t._createComponent(e,b.default,{dataSource:t._createFieldsDataSource(n),showCheckBoxesMode:"normal",searchEnabled:t.option("allowSearch"),searchTimeout:t.option("searchTimeout"),itemTemplate:function(e,t,n){e.icon&&(0,c.getImageContainer)(e.icon).appendTo(n),(0,u.default)("<span>").toggleClass("dx-area-field",!e.items).data("field",e.field).text(e.text).appendTo(n)},onItemCollapsed:function(e){var n=(0,f.inArray)(e.itemData.path,t._expandedPaths);n>=0&&t._expandedPaths.splice(n,1)},onItemExpanded:function(e){var n=(0,f.inArray)(e.itemData.path,t._expandedPaths);n<0&&t._expandedPaths.push(e.itemData.path)},onItemSelectionChanged:function(e){var r,s,l,u=e.itemData,c=!0;if(u.items){if(u.selected)return void i.unselectItem(u);if(t._processDemandState(function(){s=o(u,n.fields());for(var e=0;e<s.length;e++)if(s[e].area){c=!1;break}}),c){var d=a(u,function(e){return e.isDefault})||a(u,function(e){return(0,h.isDefined)(e.index)});return void(d&&i.selectItem(d))}}else r=n.fields()[u.index],u.selected&&(l=r.isMeasure?"data":"column"),r&&(s=[r]);t._applyChanges(s,{area:l,areaIndex:void 0})}}),r=function(){var o=s(e),a=o?o.scrollTop():0;i.option({dataSource:t._createFieldsDataSource(n)}),o=s(e),o&&(o.scrollTo({y:a}),o.update())};t._dataChangedHandlers.push(r);
60},_renderAreaFields:function(e,t){var n=this,i=n._dataSource,o=i?(0,p.extend)(!0,[],i.getAreaFields(t,!0)):[];e.empty(),(0,g.each)(o,function(t,i){i.visible!==!1&&n.renderField(i,!0).appendTo(e)})},_renderArea:function(e,t){var n,i,o,a=this,r=(0,u.default)(I).addClass("dx-area").appendTo(e),s=(0,u.default)(I).addClass("dx-area-fields-header").appendTo(r),l=a.option("texts."+t+"Fields");(0,u.default)("<span>").addClass("dx-area-icon").addClass("dx-area-icon-"+t).appendTo(s),(0,u.default)("<span>").html("&nbsp;").appendTo(s),(0,u.default)("<span>").addClass("dx-area-caption").text(l).appendTo(s),n=(0,u.default)(I).addClass("dx-area-fields").addClass(O).appendTo(r),"all"!==t?(n.attr("group",t).attr("allow-scrolling",!0),i=(0,u.default)(I).addClass("dx-area-field-container").appendTo(n),o=function(){a._renderAreaFields(i,t)},a._dataChangedHandlers.push(o),o(),n.dxScrollable()):(r.addClass("dx-all-fields"),n.addClass("dx-treeview-border-visible"),a._renderFieldsTreeView(n))},_getSortableOptions:function(){return{}},_adjustSortableOnChangedArgs:function(){},resetTreeView:function(){var e=this.$element().find(".dx-treeview").dxTreeView("instance");e&&(e.option("searchValue",""),e.collapseAll())},applyChanges:function(){var e=this.option("state");(0,h.isDefined)(e)&&this._dataSource.state(e)},cancelChanges:function(){this.option("state",this._dataSource.state())},getDataSource:function(){return this._dataSource},updateDimensions:function(){var e=this.$element().find(".dx-area .dx-scrollable");e.dxScrollable("update")},_visibilityChanged:function(e){e&&T&&this.updateDimensions()}});(0,v.default)("dxPivotGridFieldChooser",P),e.exports=P},function(e,t,n){var i=n(41),o=n(21),a=n(698),r={_displayNames:a.displayNames,_list:a.timezones,getTimezones:function(){return this._list},getDisplayNames:function(){return this._displayNames},queryableTimezones:function(){return i(this.getTimezones())},getTimezoneById:function(e){var t,n=0,i=this.getTimezones();if(e)for(;!t;){if(!i[n])return void o.log("W0009",e);var a=i[n].id;a===e&&(t=i[n]),n++}return t},getTimezoneOffsetById:function(e,t){var n,i,o,a,r=this.getTimezoneById(e);if(r){if(r.link){var s=this.getTimezones()[r.link];n=s.offsets,o=s.untils,i=s.offsetIndices}else n=r.offsets,o=r.untils,i=r.offsetIndices;a=this.getUtcOffset(n,i,o,t)}return a},getUtcOffset:function(e,t,n,i){for(var o=0,a=t.split(""),r=n.split("|").map(function(e){return"Infinity"===e?null:1e3*parseInt(e,36)}),s=0,l=0,u=r.length;l<u;l++){s+=r[l];{if(!(i>=s))break;o=l}}return r[o+1]&&o++,e[Number(a[o])]},getTimezoneShortDisplayNameById:function(e){var t,n=this.getTimezoneById(e);return n&&(t=n.DisplayName.substring(0,11)),t},getTimezonesDisplayName:function(){return i(this.getDisplayNames()).sortBy().toArray()},getTimezoneDisplayNameById:function(e){var t=this.getTimezoneById(e);return t?this.getDisplayNames()[t.winIndex]:""},getSimilarTimezones:function(e){if(!e)return[];var t=this.getTimezoneById(e);return this.getTimezonesIdsByWinIndex(t.winIndex)},getTimezonesIdsByWinIndex:function(e){return this.queryableTimezones().filter(["winIndex",e]).sortBy("title").toArray().map(function(e){return{id:e.id,displayName:e.title}})},getTimezonesIdsByDisplayName:function(e){var t=this.getDisplayNames().indexOf(e);return this.getTimezonesIdsByWinIndex(t)},getClientTimezoneOffset:function(e){return 6e4*e.getTimezoneOffset()},processDateDependOnTimezone:function(e,t){var n=new Date(e);if(t){var i=t+this.getClientTimezoneOffset(e)/36e5;n=new Date(n.setHours(n.getHours()+i))}return n}};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")}Object.defineProperty(t,"__esModule",{value:!0}),t.TooltipStrategyBase=t.createDefaultTooltipTemplate=void 0;var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(34),s=i(r),l=n(22),u=i(l),c=n(85),d=i(c),h=n(2),p=i(h),f=n(297),g=i(f),_=n(0),m="dx-tooltip-appointment-item",v=m+"-content",y=m+"-content-subject",x=m+"-content-date",b=m+"-marker",w=m+"-marker-body",C=m+"-delete-button-container",k=m+"-delete-button",S=t.createDefaultTooltipTemplate=function(e,t,n,i){return new d.default(function(o){return e.render({model:t,targetedAppointmentData:n,container:o.container,currentIndex:i})})};t.TooltipStrategyBase=function(){function e(t){o(this,e),this.scheduler=t}return a(e,[{key:"show",value:function(e,t,n){this._canShowTooltip(e,t)&&(this.hide(),this._showCore(e,t,n))}},{key:"_showCore",value:function(e,t,n){var i=this;this.tooltip?(this._shouldUseTarget()&&this.tooltip.option("target",e),this.list.option("dataSource",t)):(this.tooltip=this._createTooltip(e),this.list=this._createList(t),this.tooltip.option("contentTemplate",function(){return i.list.$element()})),this.tooltip.option("visible",!0),this.list.option("focusStateEnabled",this.scheduler.option("focusStateEnabled"))}},{key:"dispose",value:function(){}},{key:"hide",value:function(){this.tooltip&&this.tooltip.option("visible",!1)}},{key:"_shouldUseTarget",value:function(){return!0}},{key:"_createTooltip",value:function(e,t){}},{key:"_canShowTooltip",value:function(e,t){return!(!t.length||this.tooltip&&this.tooltip.option("visible")&&(0,p.default)(this.tooltip.option("target")).get(0)===(0,p.default)(e).get(0))}},{key:"_createListOption",value:function(e){var t=this;return{dataSource:e,onItemRendered:function(e){return t._onListItemRendered(e)},onItemClick:function(e){return t._onListItemClick(e)},itemTemplate:function(e,n){return t._renderTemplate(t.tooltip.option("target"),e.data,e.currentData||e.data,n,e.color)}}}},{key:"_createList",value:function(e){return this.scheduler._createComponent((0,p.default)("<div>"),g.default,this._createListOption(e))}},{key:"_onListItemRendered",value:function(e){}},{key:"_getTargetData",value:function(e,t){return this.scheduler.fire("getTargetedAppointmentData",e,t)}},{key:"_renderTemplate",value:function(e,t,n,i,o){this._createTemplate(t,n,o);var a=this.scheduler._getAppointmentTemplate(this._getItemListTemplateName());return this._createFunctionTemplate(a,t,this._getTargetData(t,e),i)}},{key:"_createFunctionTemplate",value:function(e,t,n,i){return S(e,t,n,i)}},{key:"_getItemListTemplateName",value:function(){return"appointmentTooltipTemplate"}},{key:"_getItemListDefaultTemplateName",value:function(){return"appointmentTooltip"}},{key:"_onListItemClick",value:function(e){this.hide(),this._canRaiseClickEvent()?this._raiseClickEventAndShowAppointmentPopup(e):this.scheduler.showAppointmentPopup(e.itemData.data,!1,e.itemData.currentData)}},{key:"_canRaiseClickEvent",value:function(){return!0}},{key:"_raiseClickEventAndShowAppointmentPopup",value:function(e){var t={itemData:e.itemData.data,itemElement:e.itemElement},n=this.createAppointmentClickAction();n(this.createClickEventArgument(t,e))}},{key:"createAppointmentClickAction",value:function(){var e=this;return this.scheduler._createActionByOption("onAppointmentClick",{afterExecute:function(t){var n=t.args[0];n.event.stopPropagation(),e.scheduler.fire("showEditAppointmentPopup",{data:n.appointmentData})}})}},{key:"createClickEventArgument",value:function(e,t){var n=(0,_.extendFromObject)(this.scheduler.fire("mapAppointmentFields",e),t,!1);return this.trimClickEventArgument(n)}},{key:"trimClickEventArgument",value:function(e){return delete e.itemData,delete e.itemIndex,delete e.itemElement,e}},{key:"_onDeleteButtonClick",value:function(){this.hide()}},{key:"_createTemplate",value:function(e,t,n){var i=this;this.scheduler._defaultTemplates[this._getItemListDefaultTemplateName()]=new d.default(function(o){var a=(0,p.default)(o.container);return a.append(i._createItemListContent(e,t,n)),a})}},{key:"_createItemListContent",value:function(e,t,n){var i=this.scheduler.option("editing"),o=this.scheduler.fire("getField","allDay",e),a=this.scheduler.fire("getField","text",e),r=this.scheduler.fire("getField","startDateTimeZone",e),s=this.scheduler.fire("getField","endDateTimeZone",e),l=this.scheduler.fire("convertDateByTimezone",this.scheduler.fire("getField","startDate",t),r),u=this.scheduler.fire("convertDateByTimezone",this.scheduler.fire("getField","endDate",t),s),c=(0,p.default)("<div>").addClass(m);return c.append(this._createItemListMarker(n)),c.append(this._createItemListInfo(a,this._formatDate(l,u,o))),(i&&i.allowDeleting===!0||i===!0)&&c.append(this._createDeleteButton(e,t)),c}},{key:"_createItemListMarker",value:function(e){var t=(0,p.default)("<div>").addClass(b),n=(0,p.default)("<div>").addClass(w);return t.append(n),e&&e.done(function(e){return n.css("background",e)}),t}},{key:"_createItemListInfo",value:function(e,t){var n=(0,p.default)("<div>").addClass(v),i=(0,p.default)("<div>").addClass(y).text(e),o=(0,p.default)("<div>").addClass(x).text(t);return n.append(i).append(o)}},{key:"_createDeleteButton",value:function(e,t){var n=this,i=(0,p.default)("<div>").addClass(C),o=(0,p.default)("<div>").addClass(k);return i.append(o),this.scheduler._createComponent(o,s.default,{icon:"trash",stylingMode:"text",onClick:function(i){n._onDeleteButtonClick(),n.scheduler._checkRecurringAppointment(e,t,t.startDate,function(){return n.scheduler.deleteAppointment(e)},!0),i.event.stopPropagation()}}),i}},{key:"_formatDate",value:function(e,t,n){var i="";return this.scheduler.fire("formatDates",{startDate:e,endDate:t,formatType:this._getTypeFormat(e,t,n),callback:function(e){return i=e}}),i}},{key:"_getTypeFormat",value:function(e,t,n){return n?"DATE":"month"!==this.scheduler.option("currentView")&&u.default.sameDate(e,t)?"TIME":"DATETIME"}}]),e}()},function(e,t,n){var i=n(2),o=n(11),a=n(5),r=n(37),s=n(22),l=n(1),u=n(7),c=n(12).getPublicElement,d=n(0).extend,h=n(3).each,p=n(14),f=n(33),g=s.dateToMilliseconds,_=n(18),m=_.abstract,v=n(4).noop,y=n(1).isDefined,x=n(119),b=n(8),w=n(24),C=n(17),k=n(19),S=n(160),I=n(55),T=n(94),D=n(704),E=n(705),A=n(257),O=n(706),B="dx-scheduler-work-space",P="dx-scheduler-work-space-grouped",M="dx-scheduler-work-space-vertical-grouped",R="dx-scheduler-work-space-vertical-group-table",V="dx-scheduler-work-space-both-scrollbar",F="dx-scheduler-work-space-count",L="dx-scheduler-work-space-group-by-date",H="dx-scheduler-work-space-odd-cells",z="dx-scheduler-work-space-overlapping",N="dx-scheduler-time-panel",$="dx-scheduler-time-panel-cell",W="dx-scheduler-time-panel-row",G="dx-scheduler-all-day-panel",j="dx-scheduler-all-day-table",q="dx-scheduler-fixed-appointments",K="dx-scheduler-all-day-appointments",U="dx-scheduler-all-day-title",Y="dx-scheduler-all-day-title-hidden",X="dx-scheduler-all-day-table-cell",Z="dx-scheduler-all-day-table-row",Q="dx-scheduler-work-space-all-day",J="dx-scheduler-work-space-all-day-collapsed",ee="dx-scheduler-work-space-mouse-selection",te="dx-scheduler-cell-sizes-horizontal",ne="dx-scheduler-cell-sizes-vertical",ie="dx-scheduler-header-panel",oe="dx-scheduler-header-panel-cell",ae="dx-scheduler-header-row",re="dx-scheduler-group-row",se="dx-scheduler-group-header",le="dx-scheduler-group-header-content",ue="dx-scheduler-date-table",ce="dx-scheduler-date-table-cell",de="dx-scheduler-date-table-row",he="dx-scheduler-focused-cell",pe="dx-scheduler-date-table-droppable-cell",fe="dx-scheduler-header-scrollable",ge="dx-scheduler-sidebar-scrollable",_e="dx-scheduler-date-table-scrollable",me=b.addNamespace(w.down,"dxSchedulerWorkSpace"),ve=b.addNamespace(I.enter,"dxSchedulerDateTable"),ye=b.addNamespace(I.drop,"dxSchedulerDateTable"),xe=b.addNamespace(k.name,"dxSchedulerDateTable"),be=b.addNamespace(w.down,"dxSchedulerDateTable"),we=b.addNamespace(w.up,"dxSchedulerDateTable"),Ce=b.addNamespace(w.move,"dxSchedulerDateTable"),ke="dxCellData",Se=1,Ie=75,Te=g("day"),De=g("hour"),Ee=function(e){return f.getDayNames("abbreviated")[e.getDay()]},Ae=_.inherit({_supportedKeys:function(){var e=function(e){if(e.preventDefault(),e.stopPropagation(),this._focusedCells&&this._focusedCells.length){var t=i(this.option("focusedElement")),n=t.length?t:this._focusedCells;e.target=this._focusedCells,this._showPopup=!0,this._cellClickAction({event:e,cellElement:i(this._focusedCells),cellData:this.getCellData(n)})}},t=function(e,t){e.preventDefault(),e.stopPropagation(),this._moveToCell(t,e.shiftKey)};return d(this.callBase(),{enter:e,space:e,downArrow:function(e){var n=this._getCellFromNextRow("next",e.shiftKey);t.call(this,e,n)},upArrow:function(e){var n=this._getCellFromNextRow("prev",e.shiftKey);t.call(this,e,n)},rightArrow:function(e){var n=this._getRightCell(e.shiftKey);t.call(this,e,n)},leftArrow:function(e){var n=this._getLeftCell(e.shiftKey);t.call(this,e,n)}})},_isRTL:function(){return this.option("rtlEnabled")},_getFocusedCell:function(){return this._$focusedCell||this._$dateTable.find("."+ce).eq(0)},_getAllFocusedCells:function(){return this._focusedCells||this._$dateTable.find("."+ce).eq(0)},_getCellFromNextRow:function(e){var t=this._$focusedCell;if(y(t)){var n=t.index(),i=t.parent(),o=i[e]().children().eq(n);return o=this._checkForViewBounds(o)}},_checkForViewBounds:function(e){return e.length||(e=this._$focusedCell),e},_getRightCell:function(e){if(y(this._$focusedCell)){var t,n=this._$focusedCell,i=this._getGroupCount(),o=e?this._getCellCount():this._getTotalCellCount(i),a=o-1,r=this._isRTL()?0:a,s=n.index(),l=this._isRTL()?"prev":"next";if(s===r||e&&this._isGroupEndCell(n)){var u=n.parent(),c=this._isRTL()?1:-1;t=u[l]().children().eq(s+c*a),t=this._checkForViewBounds(t)}else t=n[l]();return t}},_isGroupEndCell:function(e){var t=this._getCellCount(),n=e.index(),i=n%t;return this._isRTL()?0===i:i===t-1},_getLeftCell:function(e){if(y(this._$focusedCell)){var t,n=this._$focusedCell,i=this._getGroupCount(),o=e?this._getCellCount():this._getTotalCellCount(i),a=o-1,r=this._isRTL()?a:0,s=n.index(),l=this._isRTL()?"next":"prev";if(s===r||e&&this._isGroupStartCell(n)){var u=n.parent(),c=this._isRTL()?-1:1;t=u[l]().children().eq(s+c*a),t=this._checkForViewBounds(t)}else t=n[l]();return t}},_isGroupStartCell:function(e){var t=this._getCellCount(),n=e.index(),i=n%t;return this._isRTL()?i===t-1:0===i},_moveToCell:function(e,t){t=t&&this.option("allowMultipleCellSelection"),this._setFocusedCell(e,t),this._dateTableScrollable.scrollToElement(e)},_setFocusedCell:function(e,t){if(y(e)&&e.length){if(this._releaseFocusedCell(),this._focusedCells=[],t){e=this._correctCellForGroup(e);var n=this._getCellsBetween(e,this._$prevCell);this._focusedCells=n.toArray()}else this._focusedCells=[e.get(0)],this._$prevCell=e;var o=i(this._focusedCells);this._toggleFocusClass(!0,o),this.setAria("label","Add appointment",o),this._toggleFocusedCellClass(!0,e),this._$focusedCell=e;var a=this.getFocusedCellData();this.option("selectedCellData",a),this._selectionChangedAction({selectedCellData:a})}},_correctCellForGroup:function(e){var t=this._$focusedCell,n=this._getGroupIndexByCell(e),i=this._getGroupIndexByCell(t),o=this._hasAllDayClass(e)!==this._hasAllDayClass(t);return i!==n||o?t:e},_getCellsBetween:function(e,t){var n=this._hasAllDayClass(t),o=this._getCells(n),a=o.index(e),r=o.index(t);if(a>r){var s=a;a=r,r=s}if(o=o.slice(a,r+1),this._getGroupCount()>1){var l=[],u=this._getGroupIndexByCell(e);h(o,function(e,t){var n=this._getGroupIndexByCell(i(t));u===n&&l.push(t)}.bind(this)),o=i(l)}return o},_hasAllDayClass:function(e){return e.hasClass(X)},_getGroupIndexByCell:function(e){var t=this._getCellCount(),n=e.index()+1,i=Math.ceil(n/t);return i},_toggleFocusedCellClass:function(e,t){var n=t&&t.length?t:this._focusTarget();n.toggleClass(he,e)},_releaseFocusedCell:function(e){e=e||i(this._focusedCells),y(e)&&e.length&&(this._toggleFocusClass(!1,e),this._toggleFocusedCellClass(!1,e),this.setAria("label",void 0,e)),this.option("selectedCellData",[])},_focusInHandler:function(e){if(i(e.target).is(this._focusTarget())&&this._isCellClick!==!1){delete this._isCellClick,delete this._contextMenuHandled,this.callBase.apply(this,arguments);var t=this._getFocusedCell();this._setFocusedCell(t)}},_focusOutHandler:function(){this.callBase.apply(this,arguments),this._contextMenuHandled||this._releaseFocusedCell()},_focusTarget:function(){return this.$element()},_activeStateUnit:"."+ce+", ."+X,_getDefaultOptions:function(){return d(this.callBase(),{currentDate:new Date,intervalCount:1,startDate:null,firstDayOfWeek:void 0,startDayHour:0,endDayHour:24,hoursInterval:.5,activeStateEnabled:!0,hoverStateEnabled:!0,groups:[],showAllDayPanel:!0,allDayExpanded:!1,onCellClick:null,crossScrollingEnabled:!1,dataCellTemplate:null,timeCellTemplate:null,resourceCellTemplate:null,dateCellTemplate:null,allowMultipleCellSelection:!0,indicatorTime:new Date,indicatorUpdateInterval:5*g("minute"),shadeUntilCurrentTime:!0,groupOrientation:"horizontal",selectedCellData:[],groupByDate:!1})},_optionChanged:function(e){switch(e.name){case"dateCellTemplate":case"resourceCellTemplate":case"dataCellTemplate":case"timeCellTemplate":case"startDayHour":case"endDayHour":case"hoursInterval":case"firstDayOfWeek":case"currentDate":case"startDate":this._cleanWorkSpace();break;case"groups":this._cleanView(),this._removeAllDayElements(),this._initGrouping(),this.repaint();break;case"groupOrientation":this._initGroupedStrategy(),this._createAllDayPanelElements(),this._removeAllDayElements(),this._cleanWorkSpace(),this._toggleGroupByDateClass();break;case"showAllDayPanel":this._isVerticalGroupedWorkSpace()?(this._cleanView(),this._removeAllDayElements(),this._initGrouping(),this.repaint()):this._toggleAllDayVisibility();break;case"allDayExpanded":this._changeAllDayVisibility(),this.notifyObserver("allDayPanelToggled"),this._attachTablesEvents(),this.headerPanelOffsetRecalculate(),this._updateScrollable();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"onCellClick":this._createCellClickAction();break;case"onCellContextMenu":this._attachContextMenuEvent();break;case"intervalCount":this._cleanWorkSpace(),this._toggleWorkSpaceCountClass(),this._toggleFixedScrollableClass();break;case"groupByDate":this._cleanWorkSpace(),this._toggleGroupByDateClass();break;case"crossScrollingEnabled":this._toggleHorizontalScrollClass(),this._dateTableScrollable.option(this._dateTableScrollableConfig());break;case"width":this.callBase(e),this._dimensionChanged();break;case"allowMultipleCellSelection":break;case"selectedCellData":break;default:this.callBase(e)}},_cleanWorkSpace:function(){this._cleanView(),this._toggleGroupedClass(),this._toggleWorkSpaceWithOddCells(),this._renderView()},_init:function(){this.callBase(),this._initGrouping(),this._toggleHorizontalScrollClass(),this._toggleWorkSpaceCountClass(),this._toggleGroupByDateClass(),this._toggleWorkSpaceWithOddCells(),this._toggleWorkSpaceOverlappingClass(),this.$element().addClass(B).addClass(this._getElementClass())},_initGrouping:function(){this._initGroupedStrategy(),this._toggleGroupingDirectionClass(),this._toggleGroupByDateClass()},_initGroupedStrategy:function(){var e=this.option("groups").length?this.option("groupOrientation"):this._getDefaultGroupStrategy(),t="vertical"===e?E:D;this._groupedStrategy=new t(this)},_getDefaultGroupStrategy:function(){return"horizontal"},_isVerticalGroupedWorkSpace:function(){return!!this.option("groups").length&&"vertical"===this.option("groupOrientation")},_isHorizontalGroupedWorkSpace:function(){return!!this.option("groups").length&&"horizontal"===this.option("groupOrientation")},_toggleHorizontalScrollClass:function(){this.$element().toggleClass(V,this.option("crossScrollingEnabled"))},_toggleGroupByDateClass:function(){this.$element().toggleClass(L,this.isGroupedByDate())},_toggleWorkSpaceCountClass:function(){this.$element().toggleClass(F,this._isWorkSpaceWithCount())},_isWorkSpaceWithCount:function(){return this.option("intervalCount")>1},_toggleWorkSpaceWithOddCells:function(){this.$element().toggleClass(H,this._isWorkspaceWithOddCells())},_isWorkspaceWithOddCells:function(){return.5===this.option("hoursInterval")},_toggleWorkSpaceOverlappingClass:function(){this.$element().toggleClass(z,this._isWorkSpaceWithOverlapping())},_isWorkSpaceWithOverlapping:function(){return null!==this.invoke("getMaxAppointmentsPerCell")},_toggleGroupingDirectionClass:function(){this.$element().toggleClass(M,this._isVerticalGroupedWorkSpace())},_getRealGroupOrientation:function(){return this._isVerticalGroupedWorkSpace()?"vertical":"horizontal"},_getTimePanelClass:function(){return N},_getDateTableClass:function(){return ue},_getDateTableRowClass:function(){return de},_getDateTableCellClass:function(e,t){var n=ce+" "+te+" "+ne;return this._needApplyLastGroupCellClass()?this._groupedStrategy.addAdditionalGroupCellClasses(n,t+1,e,t):n},_needApplyLastGroupCellClass:function(){return!0},_getGroupRowClass:function(){return re},_getGroupHeaderClass:function(e){var t=se;return this._groupedStrategy.addAdditionalGroupCellClasses(t,e+1)},_getGroupHeaderContentClass:function(){return le},_initWorkSpaceUnits:function(){this._$headerPanel=i("<table>"),this._$thead=i("<thead>").appendTo(this._$headerPanel),this._$fixedContainer=i("<div>").addClass(q),this._$allDayContainer=i("<div>").addClass(K),this._initAllDayPanelElements(),this._createAllDayPanelElements(),this._$timePanel=i("<table>").addClass(this._getTimePanelClass()),this._$dateTable=i("<table>"),this._$groupTable=i("<table>").addClass(R)},_initAllDayPanelElements:function(){this._allDayTitles=[],this._allDayTables=[],this._allDayPanels=[]},_createAllDayPanelElements:function(){var e=this._getGroupCount();if(this._isVerticalGroupedWorkSpace()&&0!==e)for(var t=0;t<e;t++){var n=i("<div>").addClass(U).text(p.format("dxScheduler-allDay"));this._allDayTitles.push(n),this._$allDayTable=i("<table>"),this._allDayTables.push(this._$allDayTable),this._$allDayPanel=i("<div>").addClass(G).append(this._$allDayTable),this._allDayPanels.push(this._$allDayPanel)}else this._$allDayTitle=i("<div>").addClass(U).text(p.format("dxScheduler-allDay")).appendTo(this.$element()),this._$allDayTable=i("<table>"),this._$allDayPanel=i("<div>").addClass(G).append(this._$allDayTable)},_initDateTableScrollable:function(){var e=i("<div>").addClass(_e);this._dateTableScrollable=this._createComponent(e,T,this._dateTableScrollableConfig())},_dateTableScrollableConfig:function(){var e={useKeyboard:!1,useNative:!1,bounceEnabled:!1,updateManually:!0,pushBackValue:0};return this._needCreateCrossScrolling()&&(e=d(e,this._createCrossScrollingConfig())),e},_createCrossScrollingConfig:function(){var e,t,n={};return n.direction="both",n.onStart=function(n){this._headerScrollable&&(e=this._headerScrollable.option("onScroll"),this._headerScrollable.option("onScroll",void 0)),this._sidebarScrollable&&(t=this._sidebarScrollable.option("onScroll"),this._sidebarScrollable.option("onScroll",void 0))}.bind(this),n.onScroll=function(e){this._sidebarScrollable&&this._sidebarScrollable.scrollTo({top:e.scrollOffset.top}),this._headerScrollable&&this._headerScrollable.scrollTo({left:e.scrollOffset.left})}.bind(this),n.onEnd=function(){this.notifyObserver("updateResizableArea",{}),this._headerScrollable&&this._headerScrollable.option("onScroll",e),this._sidebarScrollable&&this._sidebarScrollable.option("onScroll",t)}.bind(this),n},_createWorkSpaceElements:function(){this.option("crossScrollingEnabled")?this._createWorkSpaceScrollableElements():this._createWorkSpaceStaticElements()},_createWorkSpaceStaticElements:function(){this._isVerticalGroupedWorkSpace()?(this._dateTableScrollable.$content().append(this._$allDayContainer,this._$groupTable,this._$timePanel,this._$dateTable),this.$element().append(this._$fixedContainer,this._$headerPanel,this._dateTableScrollable.$element())):(this._dateTableScrollable.$content().append(this._$timePanel,this._$dateTable),this.$element().append(this._$fixedContainer,this._$headerPanel,this._$allDayContainer,this._$allDayPanel,this._dateTableScrollable.$element()))},_createWorkSpaceScrollableElements:function(){this.$element().append(this._$fixedContainer),this._createHeaderScrollable(),this._createSidebarScrollable(),this.$element().append(this._dateTableScrollable.$element()),this._headerScrollable.$content().append(this._$headerPanel),this._dateTableScrollable.$content().append(this._$dateTable),this._isVerticalGroupedWorkSpace()?(this._dateTableScrollable.$content().prepend(this._$allDayContainer),this._sidebarScrollable.$content().append(this._$groupTable,this._$timePanel)):this._headerScrollable.$content().append(this._$allDayContainer,this._$allDayPanel),this._sidebarScrollable.$content().append(this._$timePanel)},_createHeaderScrollable:function(){var e=i("<div>").addClass(fe).appendTo(this.$element());this._headerScrollable=this._createComponent(e,T,this._headerScrollableConfig())},_headerScrollableConfig:function(){var e,t={useKeyboard:!1,showScrollbar:!1,direction:"horizontal",useNative:!1,updateManually:!0,bounceEnabled:!1,pushBackValue:0,onStart:function(t){e=this._dateTableScrollable.option("onScroll"),this._dateTableScrollable.option("onScroll",void 0)}.bind(this),onScroll:function(e){this._dateTableScrollable.scrollTo({left:e.scrollOffset.left})}.bind(this),onEnd:function(t){this._dateTableScrollable.option("onScroll",e)}.bind(this)};return t},_createSidebarScrollable:function(){var e,t=i("<div>").addClass(ge).appendTo(this.$element());this._sidebarScrollable=this._createComponent(t,T,{useKeyboard:!1,showScrollbar:!1,direction:"vertical",useNative:!1,updateManually:!0,bounceEnabled:!1,pushBackValue:0,onStart:function(t){e=this._dateTableScrollable.option("onScroll"),this._dateTableScrollable.option("onScroll",void 0)}.bind(this),onScroll:function(e){this._dateTableScrollable.scrollTo({top:e.scrollOffset.top})}.bind(this),onEnd:function(t){this._dateTableScrollable.option("onScroll",e)}.bind(this)})},_visibilityChanged:function(e){e&&this._isVerticalGroupedWorkSpace()&&this._setHorizontalGroupHeaderCellsHeight(),e&&this._needCreateCrossScrolling()&&this._setTableSizes()},_attachTableClasses:function(){if(this._addTableClass(this._$dateTable,this._getDateTableClass()),this._isVerticalGroupedWorkSpace())for(var e=this._getGroupCount(),t=0;t<e;t++)this._addTableClass(this._allDayTables[t],j);else this._addTableClass(this._$allDayTable,j)},_attachHeaderTableClasses:function(){this._addTableClass(this._$headerPanel,ie)},_addTableClass:function(e,t){e&&!e.hasClass(t)&&e.addClass(t)},_setTableSizes:function(){this._attachTableClasses();var e=this.getCellWidth();e<this.getCellMinWidth()&&(e=this.getCellMinWidth());var t=this.getWorkSpaceMinWidth(),n=this._$headerPanel.find("tr").last().find("th"),i=e*n.length;i<t&&(i=t),this._$headerPanel.width(i),this._$dateTable.width(i),this._$allDayTable&&this._$allDayTable.width(i),this._attachHeaderTableClasses(),this._isVerticalGroupedWorkSpace()&&this._setHorizontalGroupHeaderCellsHeight()},getWorkSpaceMinWidth:function(){return this._groupedStrategy.getWorkSpaceMinWidth()},_dimensionChanged:function(){this.option("crossScrollingEnabled")&&this._setTableSizes(),this.headerPanelOffsetRecalculate(),this._cleanCellDataCache(),this._cleanAllowedPositions()},_needCreateCrossScrolling:function(){return this.option("crossScrollingEnabled")},_getElementClass:v,_getRowCount:v,_getCellCount:v,_initMarkup:function(){this._initWorkSpaceUnits(),this._initDateTableScrollable(),this._createWorkSpaceElements(),this.callBase(),this.option("crossScrollingEnabled")||(this._attachTableClasses(),this._attachHeaderTableClasses()),this._toggleGroupedClass(),this._toggleFixedScrollableClass(),this._renderView(),this._attachEvents(),this._setFocusOnCellByOption(this.option("selectedCellData"))},_render:function(){this.callBase(),this._renderDateTimeIndication(),this._setIndicationUpdateInterval()},_toggleGroupedClass:function(){this.$element().toggleClass(P,this._getGroupCount()>0)},_toggleFixedScrollableClass:v,_renderView:function(){if(this._setFirstViewDate(),this._applyCellTemplates(this._renderGroupHeader()),this._renderDateHeader(),this._renderTimePanel(),this._isVerticalGroupedWorkSpace())for(var e=this._getGroupCount(),t=0;t<e;t++)this._renderAllDayPanel(t);this._renderDateTable(),this._renderAllDayPanel(),this._updateGroupTableHeight(),this._shader=new O},_updateGroupTableHeight:function(){this._isVerticalGroupedWorkSpace()&&u.hasWindow()&&this._setHorizontalGroupHeaderCellsHeight()},_renderDateTimeIndication:v,_setIndicationUpdateInterval:v,_refreshDateTimeIndication:v,_setFocusOnCellByOption:function(e){var t=[];this._releaseFocusedCell();for(var n=0;n<e.length;n++){var i=e[n].groups,o=this.option("groups").length&&i?this._getGroupIndexByResourceId(i):0,a=!!e[n].allDay,r=this.getCoordinatesByDate(e[n].startDate,o,a),s=this._getCellByCoordinates(r,o);y(s)&&(this._toggleFocusClass(!0,s),t.push(s.get(0)))}this._focusedCells=t},_getGroupIndexByResourceId:function(e){for(var t=this.option("groups"),n=Object.keys(e)[0],i=e[n],o=this.invoke("createResourcesTree",t),a=0,r=0;r<o.length;r++)o[r].name===n&&o[r].value===i&&(a=o[r].leafIndex);return a},_setFirstViewDate:function(){var e=y(this._firstDayOfWeek())?this._firstDayOfWeek():f.firstDayOfWeekIndex();this._firstViewDate=s.getFirstWeekDate(this._getViewStartByOptions(),e),this._setStartDayHour(this._firstViewDate)},_getViewStartByOptions:function(){if(this.option("startDate")){for(var e=s.trimTime(this._getStartViewDate()),t=this.option("currentDate"),n=e.getTime()<=t.getTime()?1:-1,i=new Date(e.getTime()+this._getIntervalDuration()*n);!this._dateInRange(t,e,i,n);)e=i,i=new Date(e.getTime()+this._getIntervalDuration()*n);return n>0?e:i}return this.option("currentDate")},_getHeaderDate:function(){return this.getStartViewDate()},_getStartViewDate:function(){return this.option("startDate")},_dateInRange:function(e,t,n,i){return i>0?s.dateInRange(e,t,new Date(n.getTime()-1)):s.dateInRange(e,n,t,"date")},_getIntervalDuration:function(){return g("day")*this.option("intervalCount")},_setStartDayHour:function(e){var t=this.option("startDayHour");y(t)&&e.setHours(t,t%1*60,0,0)},_firstDayOfWeek:function(){return this.option("firstDayOfWeek")},_attachEvents:function(){this._createSelectionChangedAction(),this._attachClickEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var e=this,t=this._createAction(function(t){e._pointerDownHandler(t.event)});this._createCellClickAction();var n="."+ce+",."+X,o=this.$element();a.off(o,me),a.off(o,xe),a.on(o,me,function(e){return b.isMouseEvent(e)&&e.which>1?void e.preventDefault():void t({event:e})}),a.on(o,xe,n,function(t){var n=i(t.target);e._cellClickAction({event:t,cellElement:c(n),cellData:e.getCellData(n)})})},_createCellClickAction:function(){var e=this;this._cellClickAction=this._createActionByOption("onCellClick",{afterExecute:function(t){e._moveToClosestNonStub(t.args[0].event)}})},_createSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")},_moveToClosestNonStub:function(e){var t=i(e.target);this._showPopup&&this._hasFocusClass(t)&&(delete this._showPopup,this._showAddAppointmentPopup(t))},_pointerDownHandler:function(e){var t=i(e.target);return t.hasClass(ce)||t.hasClass(X)?(this._isCellClick=!0,void(t.hasClass(he)?this._showPopup=!0:this._setFocusedCell(t))):void(this._isCellClick=!1)},_showAddAppointmentPopup:function(e){var t=this.getCellData(e.first()),n=this.getCellData(e.last()),i={startDate:t.startDate,endDate:n.endDate};y(n.allDay)&&(i.allDay=n.allDay),d(i,n.groups),this.notifyObserver("showAddAppointmentPopup",i)},_attachContextMenuEvent:function(){this._createContextMenuAction();var e="."+ce+",."+X,t=this.$element(),n=b.addNamespace(S.name,this.NAME);a.off(t,n,e),a.on(t,n,e,this._contextMenuHandler.bind(this))},_contextMenuHandler:function(e){var t=i(e.target);this._contextMenuAction({event:e,cellElement:c(t),cellData:this.getCellData(t)}),this._contextMenuHandled=!0},_createContextMenuAction:function(){
61this._contextMenuAction=this._createActionByOption("onCellContextMenu")},_getGroupHeaderContainer:function(){return this._isVerticalGroupedWorkSpace()?this._$groupTable:this._$thead},_getDateHeaderContainer:function(){return this._$thead},_renderGroupHeader:function(){var e=this._getGroupHeaderContainer(),t=this._getGroupCount(),n=[];if(t){var i=this._makeGroupRows(this.option("groups"),this.option("groupByDate"));this._attachGroupCountAttr(t,i),e.append(i.elements),n=i.cellTemplates}else this._detachGroupCountAttr();return n},_applyCellTemplates:function(e){e.forEach(function(e){e()})},_detachGroupCountAttr:function(){var e=this._groupedStrategy.getGroupCountAttr();this.$element().removeAttr(e.attr)},_attachGroupCountAttr:function(e,t){var n=this._groupedStrategy.getGroupCountAttr(e,t);this.$element().attr(n.attr,n.count)},headerPanelOffsetRecalculate:function(){if(this.option("resourceCellTemplate")||this.option("dateCellTemplate")){var e=this.getHeaderPanelHeight(),t=this.invoke("getHeaderHeight"),n=this.supportAllDayRow()&&this.option("showAllDayPanel")?this._groupedStrategy.getAllDayTableHeight():0;e&&this._headerScrollable&&this._headerScrollable.$element().height(e+n),e&&this._dateTableScrollable.$element().css({paddingBottom:n+e+"px",marginBottom:-1*(parseInt(e,10)+n)+"px"}),e&&this._sidebarScrollable&&this._sidebarScrollable.$element().css({paddingBottom:n+e+"px",marginBottom:-1*(parseInt(e,10)+n)+"px"}),this._$allDayTitle&&this._$allDayTitle.css("top",t+e+"px")}},_makeGroupRows:function(e,t){var n=this._isVerticalGroupedWorkSpace()?A.VERTICAL:A.HORIZONTAL;return A.makeGroupedTable(n,e,{groupHeaderRowClass:this._getGroupRowClass(),groupRowClass:this._getGroupRowClass(),groupHeaderClass:this._getGroupHeaderClass.bind(this),groupHeaderContentClass:this._getGroupHeaderContentClass()},this._getCellCount()||1,this.option("resourceCellTemplate"),this._getGroupCount(),t)},_getDateHeaderTemplate:function(){return this.option("dateCellTemplate")},_renderDateHeader:function(){var e,t,n=this._getDateHeaderContainer(),o=i("<tr>").addClass(ae),a=this._getCellCount(),r=this._getDateHeaderTemplate(),s=this._calculateHeaderCellRepeatCount(),l=[],u=this.option("groupByDate")?this._getGroupCount():1,c=this.option("groupByDate");if(c){for(e=0;e<a;e++){var d=this._renderDateHeaderTemplate(o,e,e*s,r,l);d.attr("colSpan",u)}n.prepend(o)}else{for(t=0;t<s;t++)for(e=0;e<a;e++)this._renderDateHeaderTemplate(o,e,t*s+e,r,l);n.append(o)}return this._applyCellTemplates(l),o},_renderDateHeaderTemplate:function(e,t,n,o,a){var r=this._getHeaderText(t),s=i("<th>").addClass(this._getHeaderPanelCellClass(t)).attr("title",r);return o&&o.render?a.push(o.render.bind(o,{model:{text:r,date:this._getDateByIndex(t)},index:n,container:c(s)})):s.text(r),e.append(s),s},_getHeaderPanelCellClass:function(e){var t=oe+" "+te;return this._groupedStrategy.addAdditionalGroupCellClasses(t,e+1)},_calculateHeaderCellRepeatCount:function(){return this._groupedStrategy.calculateHeaderCellRepeatCount()},_renderAllDayPanel:function(e){var t=this._getCellCount();this._isVerticalGroupedWorkSpace()||(t*=this._getGroupCount()||1);var n=this._renderTableBody({container:c(this._allDayPanels.length?this._allDayTables[e]:this._$allDayTable),rowCount:1,cellCount:t,cellClass:this._getAllDayPanelCellClass.bind(this),rowClass:Z,cellTemplate:this.option("dataCellTemplate"),getCellData:this._getAllDayCellData.bind(this),groupIndex:e},!0);this._toggleAllDayVisibility(),this._applyCellTemplates(n)},_getAllDayPanelCellClass:function(e,t){var n=X+" "+te;return this._groupedStrategy.addAdditionalGroupCellClasses(n,t+1)},_getAllDayCellData:function(e,t,n,i){var o=this._getDateByCellIndexes(t,n);o=s.trimTime(o);var a={startDate:o,endDate:new Date(o.getTime()+Te),allDay:!0},r=this._getCellGroups(i||this._getGroupIndex(t,n));r.length&&(a.groups={});for(var l=0;l<r.length;l++)a.groups[r[l].name]=r[l].id;return{key:ke,value:a}},_toggleAllDayVisibility:function(){var e=this.option("showAllDayPanel");this._$allDayPanel.toggle(e),this._$allDayTitle&&this._$allDayTitle.toggleClass(Y,!e),this.$element().toggleClass(Q,e),this._changeAllDayVisibility(),this._updateScrollable()},_changeAllDayVisibility:function(){this.$element().toggleClass(J,!this.option("allDayExpanded")&&this.option("showAllDayPanel"))},_updateScrollable:function(){this._dateTableScrollable.update(),this._headerScrollable&&this._headerScrollable.update(),this._sidebarScrollable&&this._sidebarScrollable.update()},_renderTimePanel:function(){var e=this._groupedStrategy.calculateTimeCellRepeatCount();this._renderTableBody({container:c(this._$timePanel),rowCount:this._getTimePanelRowCount()*e,cellCount:1,cellClass:this._getTimeCellClass.bind(this),rowClass:W,cellTemplate:this.option("timeCellTemplate"),getCellText:this._getTimeText.bind(this),getCellDate:this._getTimeCellDate.bind(this),groupCount:this._getGroupCount(),allDayElements:this._insertAllDayRowsIntoDateTable()?this._allDayTitles:void 0})},_getTimePanelRowCount:function(){return this._getCellCountInDay()},_getCellCountInDay:function(){return Math.ceil(this._calculateDayDuration()/this.option("hoursInterval"))},_calculateDayDuration:function(){return this.option("endDayHour")-this.option("startDayHour")},_getTimeCellClass:function(e){var t=$+" "+ne;return this._groupedStrategy.addAdditionalGroupCellClasses(t,e,e)},_getTimeText:function(e){var t=this._getTimeCellDate(e),n=e%this._getRowCount();return n%2===0?f.format(t,"shorttime"):""},_getTimeCellDate:function(e){var t=new Date(this.getStartViewDate()),n=Math.round(this.getCellDuration()),i=this._calculateDayDuration()/this.option("hoursInterval");return t.setMilliseconds(t.getMilliseconds()+n*(e%i)),t},_renderDateTable:function(){var e=this._getGroupCount();this._renderTableBody({container:c(this._$dateTable),rowCount:this._getTotalRowCount(e),cellCount:this._getTotalCellCount(e),cellClass:this._getDateTableCellClass.bind(this),rowClass:this._getDateTableRowClass(),cellTemplate:this.option("dataCellTemplate"),getCellData:this._getCellData.bind(this),allDayElements:this._insertAllDayRowsIntoDateTable()?this._allDayPanels:void 0,groupCount:e,groupByDate:this.option("groupByDate")}),this._attachTablesEvents()},_insertAllDayRowsIntoDateTable:function(){return this._groupedStrategy.insertAllDayRowsIntoDateTable()},_getTotalCellCount:function(e){return this._groupedStrategy.getTotalCellCount(e)},_getTotalRowCount:function(){return this._groupedStrategy.getTotalRowCount()},_getCellData:function(e,t,n){var i=this._prepareCellData(t,n,e);return{key:ke,value:i}},_prepareCellData:function(e,t){var n=this._getDateByCellIndexes(e,t),i=this.calculateEndDate(n),o={startDate:n,endDate:i,allDay:this._getTableAllDay()},a=this._getCellGroups(this._getGroupIndex(e,t));a.length&&(o.groups={});for(var r=0;r<a.length;r++)o.groups[a[r].name]=a[r].id;return o},_getGroupIndex:function(e,t){return this._groupedStrategy.getGroupIndex(e,t)},_getTableAllDay:function(){return!1},calculateEndDate:function(e){var t=new Date(e);return t.setMilliseconds(t.getMilliseconds()+Math.round(this._getInterval())),t},_getGroupCount:function(){for(var e=this.option("groups"),t=0,n=0,i=e.length;n<i;n++)n?t*=e[n].items.length:t=e[n].items.length;return t},_getPathToLeaf:function(e){function t(e,n){for(var i=0;i<e.length;i++){if(e[i].leafIndex===n)return e[i];var o=t(e[i].children,n);if(o)return o}}function n(e,t){return t=t||[],t.push(e.value),e.parent&&n(e.parent,t),t}var i=this.invoke("createResourcesTree",this.option("groups")),o=t(i,e);return n(o).reverse()},_getCellGroups:function(e){var t=[];if(this._getGroupCount()){var n=this.option("groups");if(e<0)return;for(var i=this._getPathToLeaf(e),o=0;o<n.length;o++)t.push({name:n[o].name,id:i[o]})}return t},_attachTablesEvents:function(){this._attachTableEvents(this._getDateTable()),this._attachTableEvents(this._getAllDayTable())},_attachTableEvents:function(e){var t,n,r=this,s=!1;a.off(e,ve),a.off(e,ye),a.off(e,Ce),a.off(e,be),a.on(e,ve,"td",{itemSizeFunc:function(e){return t||(t=e.get(0).getBoundingClientRect().height),n||(n=e.get(0).getBoundingClientRect().width),{width:n,height:t}}},function(e){r._$currentTableTarget&&r._$currentTableTarget.removeClass(pe),r._$currentTableTarget=i(e.target),r._$currentTableTarget.addClass(pe)}),a.on(e,ye,"td",function(e){i(e.target).removeClass(pe),t=0,n=0}),a.on(e,be,"td",function(e){b.isMouseEvent(e)&&1===e.which&&(s=!0,r.$element().addClass(ee),a.off(o.getDocument(),we),a.on(o.getDocument(),we,function(){s=!1,r.$element().removeClass(ee)}))}),a.on(e,Ce,"td",function(e){s&&r._dateTableScrollable&&!r._dateTableScrollable.option("scrollByContent")&&(e.preventDefault(),e.stopPropagation(),r._moveToCell(i(e.target),!0))})},_getDateTables:function(){return this._$dateTable.add(this._$allDayTable)},_getDateTable:function(){return this._$dateTable},_getAllDayTable:function(){return this._$allDayTable},_getInterval:function(){return void 0===this._interval&&(this._interval=this.option("hoursInterval")*De),this._interval},_getHeaderText:function(e){return f.format(this._getDateByIndex(e),this._getFormat())},_getDateByIndex:m,_getFormat:m,_calculateCellIndex:function(e,t){return this._groupedStrategy.calculateCellIndex(e,t)},_renderTableBody:function(e,t){var n=[];return t?n=A.makeTable(e):this._applyCellTemplates(A.makeTable(e)),n},_removeAllDayElements:function(){this._$allDayTable&&this._$allDayTable.remove(),this._$allDayTitle&&this._$allDayTitle.remove()},_cleanView:function(){this._cleanCellDataCache(),this._cleanAllowedPositions(),this._$thead.empty(),this._$dateTable.empty(),this._shader&&this._shader.clean(),this._$timePanel.empty(),this._$allDayTable&&this._$allDayTable.empty(),this._$groupTable.empty(),delete this._hiddenInterval,delete this._interval},_clean:function(){a.off(o.getDocument(),we),this.callBase()},getWorkArea:function(){return this._dateTableScrollable.$content()},getScrollable:function(){return this._dateTableScrollable},getScrollableScrollTop:function(){return this._dateTableScrollable.scrollTop()},getGroupedScrollableScrollTop:function(e){return this._groupedStrategy.getScrollableScrollTop(e)},getScrollableScrollLeft:function(){return this._dateTableScrollable.scrollLeft()},getScrollableOuterWidth:function(){return this._dateTableScrollable.scrollWidth()},getScrollableContainer:function(){return this._dateTableScrollable._container()},getHeaderPanelHeight:function(){return this._$headerPanel&&this._$headerPanel.outerHeight(!0)},getTimePanelWidth:function(){return this._$timePanel&&this._$timePanel.get(0).getBoundingClientRect().width},getGroupTableWidth:function(){return this._$groupTable?this._$groupTable.outerWidth():0},getWorkSpaceLeftOffset:function(){return this._groupedStrategy.getLeftOffset()},getGroupedStrategy:function(){return this._groupedStrategy},_getCellCoordinatesByIndex:function(e){var t=Math.floor(e/this._getRowCount()),n=e-this._getRowCount()*t;return{cellIndex:t,rowIndex:n}},_getDateByCellIndexes:function(e,t,n){t=n?t:this._patchCellIndex(t);var i=this.getStartViewDate(),o=new Date(i.getTime()+this._getMillisecondsOffset(e,t)+this._getOffsetByCount(t));return o.setTime(o.getTime()+s.getTimezonesDifference(i,o)),o},_patchCellIndex:function(e){return this.isGroupedByDate()&&(e=Math.floor(e/this._getGroupCount())),e},_getOffsetByCount:function(){return 0},_getMillisecondsOffset:function(e,t){return this._getInterval()*this._calculateCellIndex(e,t)+this._calculateHiddenInterval(e,t)},_calculateHiddenInterval:function(e,t){var n=t%this._getCellCount();return n*this._getHiddenInterval()},_getHiddenInterval:function(){return void 0===this._hiddenInterval&&(this._hiddenInterval=Te-this.getVisibleDayDuration()),this._hiddenInterval},_getIntervalBetween:function(e,t){var n=this.getStartViewDate(),i=this.option("startDayHour")*De,o=s.getTimezonesDifference(n,e),a=e.getTime()-n.getTime()-o,r=this._getDaysOfInterval(a,i),l=this._getWeekendsCount(r),u=(r-l)*Te;return t||(u=a-r*this._getHiddenInterval()-l*this.getVisibleDayDuration()),u},_getWeekendsCount:function(){return 0},_getDaysOfInterval:function(e,t){return Math.floor((e+t)/Te)},_getGroupIndexes:function(e){var t=[];if(e&&this.option("groups").length){var n=this.invoke("createResourcesTree",this.option("groups"));t=this.invoke("getResourceTreeLeaves",n,e)}return t},_updateIndex:function(e){return e*this._getRowCount()},_getDroppableCell:function(){return this._getDateTables().find("."+pe)},_getWorkSpaceWidth:function(){return this._needCreateCrossScrolling()?this._$dateTable.get(0).getBoundingClientRect().width:this.$element().get(0).getBoundingClientRect().width-this.getTimePanelWidth()},_getCellPositionByIndex:function(e,t,n){var i=this._getCellCoordinatesByIndex(e),o=this._getCellByCoordinates(i,t,n),a=this._getCellPosition(o);return this.setCellDataCache(i,t,o),a&&(a.rowIndex=i.rowIndex,a.cellIndex=i.cellIndex),a},_getCellPosition:function(e){var t=this.option("rtlEnabled"),n=e.position();return n&&(n.left=Math.round(100*n.left)/100,n.top=Math.round(100*n.top)/100),t&&(n.left+=e.get(0).getBoundingClientRect().width),n},_getCellByCoordinates:function(e,t,n){var i=this._groupedStrategy.prepareCellIndexes(e,t,n);return this._$dateTable.find("tr").eq(i.rowIndex).find("td").eq(i.cellIndex)},_getCells:function(e){var t=e?X:ce;return this.$element().find("."+t)},_setHorizontalGroupHeaderCellsHeight:function(){var e=this._$dateTable.get(0).getBoundingClientRect().height;this._$groupTable.outerHeight(e)},_getDateTableBorder:function(){return Se},_getDateTableBorderOffset:function(){return 2*this._getDateTableBorder()},_getGroupHeaderCellsContent:function(){return this.$element().find("."+le)},_getGroupHeaderCells:function(){return this.$element().find("."+se)},_getScrollCoordinates:function(e,t,n){var i=n||new Date(this.option("currentDate")),o=this.option("startDayHour"),a=this.option("endDayHour");return e<o&&(e=o),e>=a&&(e=a-1),i.setHours(e,t,0,0),this.getCoordinatesByDate(i)},setCellDataCache:function(e,t,n){var i=this.getCellDataCache(),o=this.getCellData(n),a=JSON.stringify({rowIndex:e.rowIndex,cellIndex:e.cellIndex,groupIndex:t});i[a]=o},setCellDataCacheAlias:function(e,t){var n=JSON.stringify({rowIndex:e.rowIndex,cellIndex:e.cellIndex,groupIndex:e.groupIndex}),i=JSON.stringify({top:t.top,left:t.left}),o=this.getCellDataCache();o[n]&&(o[i]=o[n])},getCellDataCache:function(e){return this._cache||(this._cache={}),e?this._cache[e]:this._cache},_cleanCellDataCache:function(){delete this._cache},_cleanAllowedPositions:function(){delete this._maxAllowedVerticalPosition,delete this._maxAllowedPosition},supportAllDayRow:function(){return!0},keepOriginalHours:function(){return!1},getFocusedCellData:function(){var e=this._getAllFocusedCells(),t=[];if(e.length>1)t=this._getMultipleCellsData(e);else{var n=this.getCellData(e);n&&t.push(n)}return t},_getMultipleCellsData:function(e){for(var t=[],n=0;n<e.length;n++)t.push(r.data(e[n],ke));return t},getCellData:function(e){var t=e[0]?r.data(e[0],ke):void 0;return d(!0,{},t)},_getHorizontalMax:function(e){return e=this.option("groupByDate")?this._getGroupCount()-1:e,this._groupedStrategy.getHorizontalMax(e)},getCoordinatesByDate:function(e,t,n){t=t||0;var i=this.getCellIndexByDate(e,n),o=this._getCellPositionByIndex(i,t,n),a=this.getPositionShift(n?0:this.getTimeShift(e)),r=this._getHorizontalMax(t,e);if(!o)throw C.Error("E1039");var s={cellPosition:o.left+a.cellPosition,top:o.top+a.top,left:o.left+a.left,rowIndex:o.rowIndex,cellIndex:o.cellIndex,hMax:r,vMax:this.getVerticalMax(t),groupIndex:t};return s},getVerticalMax:function(e){return this._groupedStrategy.getVerticalMax(e)},_getOffsetByAllDayPanel:function(e){return this._groupedStrategy._getOffsetByAllDayPanel(e)},_getGroupTop:function(e){return this._groupedStrategy._getGroupTop(e)},isGroupedByDate:function(){return this.option("groupByDate")&&this._isHorizontalGroupedWorkSpace()&&this._getGroupCount()>0},getCellIndexByDate:function(e,t){var n=t?864e5:this._getInterval(),i=this._getIntervalBetween(e,t),o=Math.floor(i/n);return t&&(o=this._updateIndex(o)),o<0&&(o=0),o},getPositionShift:function(e){return{top:e*this.getCellHeight(),left:0,cellPosition:0}},getTimeShift:function(e){var t=this.getCellDuration(),n=new Date(e);return n.setHours(this.option("startDayHour"),0,0,0),(e.getTime()-n.getTime())%t/t},getCoordinatesByDateInGroup:function(e,t,n){var i=this._getGroupIndexes(t),o=[];if(i.length)for(var a=0;a<i.length;a++)o.push(this.getCoordinatesByDate(e,i[a],n));else o.push(this.getCoordinatesByDate(e,0,n));return o},getDroppableCellIndex:function(){var e=this._getDroppableCell(),t=e.parent(),n=t.index();return n*t.find("td").length+e.index()},getDataByDroppableCell:function(){var e=this.getCellData(this._getDroppableCell());return{date:e.startDate,allDay:e.allDay,groups:e.groups}},getDateRange:function(){return[this.getStartViewDate(),this.getEndViewDate()]},getCellWidth:function(){var e=this._getCells().first().get(0);return e&&e.getBoundingClientRect().width},getCellMinWidth:function(){return Ie},getRoundedCellWidth:function(e,t,n){if(e<0)return 0;var o=this.$element().find("."+this._getDateTableRowClass()).eq(0),a=0,r=o.find("."+ce),s=this._getCellCount()*e;n=n||this._getCellCount(),l.isDefined(t)||(t=s);for(var u=t;u<s+n;u++)a+=i(r).eq(u).get(0).getBoundingClientRect().width;return a/(s+n-t)},getCellHeight:function(){var e=this._getCells().first().get(0);return e&&e.getBoundingClientRect().height},getAllDayHeight:function(){var e=this._getCells(!0).first().get(0);return this.option("showAllDayPanel")?e&&e.getBoundingClientRect().height||0:0},getAllDayOffset:function(){return this._groupedStrategy.getAllDayOffset()},getMaxAllowedPosition:function(){if(!this._maxAllowedPosition){var e=this.option("rtlEnabled");this._maxAllowedPosition=[],this._$dateTable.find("tr").first().find("td:nth-child("+this._getCellCount()+"n)").each(function(t,n){var o=i(n).position().left;e||(o+=i(n).get(0).getBoundingClientRect().width),this._maxAllowedPosition.push(Math.round(o))}.bind(this))}return this._maxAllowedPosition},getMaxAllowedVerticalPosition:function(){if(!this._maxAllowedVerticalPosition){var e=this;this._maxAllowedVerticalPosition=[];var t=this._getRowCount();this._$dateTable.find("tr:nth-child("+t+"n)").each(function(t,n){var o=i(n).position().top+i(n).get(0).getBoundingClientRect().height;e._maxAllowedVerticalPosition.push(Math.round(o))})}return this._maxAllowedVerticalPosition},getFixedContainer:function(){return this._$fixedContainer},getAllDayContainer:function(){return this._$allDayContainer},getCellIndexByCoordinates:function(e,t){var n=this._getTotalCellCount(this._getGroupCount()),i=Math.floor(this._getWorkSpaceWidth()/n),o=t?this.getAllDayHeight():this.getCellHeight(),a=this._isRTL()||this.option("crossScrollingEnabled")?0:this.getWorkSpaceLeftOffset(),r=Math.floor(e.top/o),s=Math.floor((e.left+5-a)/i);return this._isRTL()&&(s=n-s-1),n*r+s},getStartViewDate:function(){return this._firstViewDate},getEndViewDate:function(){var e=this.getDateOfLastViewCell(),t=this.calculateEndViewDate(e);return this._adjustEndViewDateByDaylightDiff(e,t)},calculateEndViewDate:function(e){return new Date(e.getTime()+this.getCellDuration())},_adjustEndViewDateByDaylightDiff:function(e,t){var n=this.invoke("getDaylightOffset",e,t)*g("minute")||0,i=new Date(t.getTime()-n);return new Date(i.getTime()-g("minute"))},getDateOfLastViewCell:function(){var e=this._getRowCount()-1,t=this._getCellCount();return this.option("groupByDate")?t=t*this._getGroupCount()-1:t-=1,this._getDateByCellIndexes(e,t,!0)},getCellDuration:function(){return 36e5*this.option("hoursInterval")},getIntervalDuration:function(e){return e?g("day"):this.getCellDuration()},getVisibleDayDuration:function(){return this.option("hoursInterval")*this._getCellCountInDay()*De},getGroupBounds:function(e){var t=this._getCellCount(),n=this._getCells(),i=this.getCellWidth(),o=this._groupedStrategy.getGroupBoundsOffset(t,n,i,e);if(this._isRTL()){var a=o.left;o.left=o.right-2*i,o.right=a+2*i}return o},needRecalculateResizableArea:function(){return this._isVerticalGroupedWorkSpace()&&0!==this.getScrollable().scrollTop()},getCellDataByCoordinates:function(e,t){var n=JSON.stringify({top:e.top,left:e.left}),i=this.getCellDataCache(n);if(i)return i;var o=this._getCells(t),a=this.getCellIndexByCoordinates(e,t),r=o.eq(a);return this.getCellData(r)},getVisibleBounds:function(){var e={},t=this.getScrollable().$element(),n=this.getCellHeight(),i=this.getScrollableScrollTop()/n,o=i+t.height()/n;return e.top={hours:Math.floor(i*this.option("hoursInterval"))+this.option("startDayHour"),minutes:i%2?30:0},e.bottom={hours:Math.floor(o*this.option("hoursInterval"))+this.option("startDayHour"),minutes:Math.floor(o)%2?30:0},e},updateScrollPosition:function(e){e=this.invoke("convertDateByTimezone",e);var t=this.getVisibleBounds(),n=e.getHours(),i=e.getMinutes();this.needUpdateScrollPosition(n,i,t,e)&&this.scrollToTime(n,i,e)},needUpdateScrollPosition:function(e,t,n){var i=!1;return(e<n.top.hours||e>n.bottom.hours)&&(i=!0),e===n.top.hours&&t<n.top.minutes&&(i=!0),e===n.bottom.hours&&t>n.top.minutes&&(i=!0),i},getGroupWidth:function(e){var t=this._getCellCount()*this.getCellWidth(),n=this.getMaxAllowedPosition(),i=n[e];return n.length&&i&&(t=this._isRTL()?i-n[e+1]:0===e?i:i-n[e-1]),t},restoreScrollTop:function(){this.$element().scrollTop(0)},scrollToTime:function(e,t,n){var i=this.getStartViewDate(),o=this.getEndViewDate();if(n<i||n>o)return void C.log("W1008",n);var a=this._getScrollCoordinates(e,t,n),r=this.getScrollable();r.scrollBy({top:a.top-r.scrollTop(),left:0})},getDistanceBetweenCells:function(e,t){var n=0;return this.$element().find("."+this._getDateTableRowClass()).first().find("."+ce).each(function(o){return o<e||o>t||void(n+=i(this).get(0).getBoundingClientRect().width)}),n},needApplyCollectorOffset:function(){return!1},_supportCompactDropDownAppointments:function(){return!0},_formatWeekday:function(e){return Ee(e)},_formatWeekdayAndDay:function(e){return Ee(e)+" "+f.format(e,"day")}}).include(x);e.exports=Ae},function(e,t,n){var i=n(15),o=i.abstract,a="dx-scheduler-last-group-cell",r="dx-scheduler-first-group-cell",s=i.inherit({ctor:function(e){this._workSpace=e},getLastGroupCellClass:function(){return a},getFirstGroupCellClass:function(){return r},_getOffsetByAllDayPanel:function(){return 0},_getGroupTop:function(){return 0},prepareCellIndexes:o,calculateCellIndex:o,getGroupIndex:o,insertAllDayRowsIntoDateTable:o,getTotalCellCount:o,addAdditionalGroupCellClasses:o,getHorizontalMax:o,getVerticalMax:o,calculateTimeCellRepeatCount:o,getWorkSpaceMinWidth:o,getAllDayHeight:o,getGroupCountAttr:o,getLeftOffset:o,shiftIndicator:o,getShaderOffset:o,getShaderTopOffset:o,getShaderMaxHeight:o,getShaderWidth:o,getScrollableScrollTop:o});e.exports=s},function(e,t,n){var i=n(2),o=n(15),a="dx-scheduler-date-time-shader",r=o.inherit({render:function(e){var t=this;this._workspace=e,this._$container=e._dateTableScrollable.$content(),this._$shader=this._createShader(),this._shader=[],this._shader.push(this._$shader),this._renderShader(),this._$shader&&this._workspace.option("crossScrollingEnabled")&&(this._$shader.css("marginTop",-this._$container.get(0).getBoundingClientRect().height),this._$shader.css("height",this._$container.get(0).getBoundingClientRect().height)),this._shader.forEach(function(e,n){t._$container.append(e)})},_createShader:function(){return i("<div>").addClass(a)},clean:function(){this._$container&&this._$container.find("."+a).remove()}});e.exports=r},function(e,t,n){var i=n(2),o=n(9),a=n(22),r=n(33),s=n(3).each,l=n(202),u="dx-scheduler-work-space-week",c=a.dateToMilliseconds,d=l.inherit({_getElementClass:function(){return u},_getRowCount:function(){return this._getCellCountInDay()},_getCellCount:function(){return 7*this.option("intervalCount")},_getDateByIndex:function(e){var t=new Date(this._firstViewDate);return t.setDate(this._firstViewDate.getDate()+e),t},_getFormat:function(){return this._formatWeekdayAndDay},_getStartViewDate:function(){return a.getFirstWeekDate(this.option("startDate"),this._firstDayOfWeek()||r.firstDayOfWeekIndex())},_getIntervalDuration:function(){return 7*c("day")*this.option("intervalCount")},_getCellsBetween:function(e,t){if(this._hasAllDayClass(t))return this.callBase(e,t);for(var n=this._getCells(),o=e.index(),a=e.parent().index(),r=t.index(),l=t.parent().index(),u=this._getGroupCount(),c=u>0?this._getTotalCellCount(u):this._getCellCount(),d=this._getTotalRowCount(u),h=[],p=0;p<c;p++)for(var f=0;f<d;f++){var g=n.get(c*f+p);h.push(g)}var _=this.getCellData(t).groups,m=this.option("showAllDayPanel")&&this._isVerticalGroupedWorkSpace()?this._getGroupIndexByResourceId(_)+1:0,v=d*o+a-m,y=d*r+l-m;if(v>y){var x=v;v=y,y=x}if(n=i(h).slice(v,y+1),this._getGroupCount()){var b=[],w=this._getGroupIndexByCell(e);s(n,function(e,t){var n=this._getGroupIndexByCell(i(t));w===n&&b.push(t)}.bind(this)),n=i(b)}return n},_getRightCell:function(e){if(!e)return this.callBase(e);var t,n=this._$focusedCell,i=this._getGroupCount(),o=e?this._getCellCount():this._getTotalCellCount(i),a=this._isRTL()?0:o-1,r=this._isRTL()?"prev":"next";return n.index()===a||this._isGroupEndCell(n)?t=n:(t=n[r](),t=this._checkForViewBounds(t)),t},_getLeftCell:function(e){if(!e)return this.callBase(e);var t,n=this._$focusedCell,i=this._getGroupCount(),o=e?this._getCellCount():this._getTotalCellCount(i),a=this._isRTL()?o-1:0,r=this._isRTL()?"next":"prev";return n.index()===a||this._isGroupStartCell(n)?t=n:(t=n[r](),t=this._checkForViewBounds(t)),t}});o("dxSchedulerWorkSpaceWeek",d),e.exports=d},function(e,t,n){var i=n(9),o=n(258),a="dx-scheduler-timeline-week",r="dx-scheduler-header-row",s=o.inherit({_getElementClass:function(){return a},_getCellCount:function(){return this.callBase()*this._getWeekDuration()},_setTableSizes:function(){this.callBase();var e=this.getCellWidth(),t=this.getWorkSpaceMinWidth(),n=this.$element().find("."+r).last().find("th"),i=e*n.length;i<t&&(i=t),this._$headerPanel.width(i)},_getHeaderPanelCellWidth:function(e){return e.children().first().get(0).getBoundingClientRect().width},_getWeekDuration:function(){return 7},_needRenderWeekHeader:function(){return!0},_incrementDate:function(e){e.setDate(e.getDate()+1)}});i("dxSchedulerTimelineWeek",s),e.exports=s},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")}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(1),s=i(r),l=24,u=3,c=22,d=1,h=40,p=75,f=50,g=function(){function e(t){o(this,e),this._renderingStrategy=t}return a(e,[{key:"getRenderingStrategy",value:function(){return this._renderingStrategy}},{key:"getDropDownAppointmentWidth",value:function(e,t){return t||!s.default.isDefined(t)?p*this.getRenderingStrategy().getDefaultCellWidth()/100:l}},{key:"getCompactAppointmentTopOffset",value:function(){return u}},{key:"getCompactAppointmentLeftOffset",value:function(){return u}},{key:"getAppointmentDefaultOffset",value:function(){return this.getRenderingStrategy()._isCompactTheme()?c:this.getRenderingStrategy().instance.option("_appointmentOffset")}},{key:"getDynamicAppointmentCountPerCell",value:function(){var e=this.getRenderingStrategy(),t=e.instance.fire("getCellHeight"),n=Math.floor((t-e._getAppointmentDefaultOffset())/e._getAppointmentDefaultHeight())||this._getAppointmentMinCount();return e.hasAllDayAppointments()?{allDay:"vertical"===e.instance._groupOrientation?n:e.instance.option("_appointmentCountPerCell"),simple:this._calculateDynamicAppointmentCountPerCell()||this._getAppointmentMinCount()}:n}},{key:"getDropDownAppointmentHeight",value:function(){}},{key:"_getAppointmentMinCount",value:function(){return d}},{key:"_calculateDynamicAppointmentCountPerCell",value:function(){return Math.floor(this.getRenderingStrategy()._getAppointmentMaxWidth()/f)}},{key:"_getAppointmentDefaultWidth",value:function(){return h}}]),e}();e.exports=g},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(259),c=i(u),d=n(22),h=i(d),p=100,f=60,g=35,_=2,m=20,v=h.default.dateToMilliseconds,y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_needVerifyItemSize",value:function(){return!0}},{key:"calculateAppointmentWidth",value:function(e,t,n){var i,o=this.getDefaultCellWidth()||this.getAppointmentMinSize(),a=this.instance.fire("getField","allDay",e),r=this.startDate(e,!1,t),s=this.endDate(e,t,n),l=this._getAppointmentDurationInMs(r,s,a);l=this._adjustDurationByDaylightDiff(l,r,s);var u=this.instance.getAppointmentDurationInMinutes()*v("minute"),c=l/u;return i=c*o,i=this.cropAppointmentWidth(i,o)}},{key:"_needAdjustDuration",value:function(e){return e<0}},{key:"getAppointmentGeometry",value:function(e){var n=this._customizeAppointmentGeometry(e);return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getAppointmentGeometry",this).call(this,n)}},{key:"_customizeAppointmentGeometry",value:function(e){var t=this.instance.fire("getMaxAppointmentsPerCell");if(t){var n=this._calculateGeometryConfig(e);return this._customizeCoordinates(e,n.height,n.appointmentCountPerCell,n.offset)}var i=(this.getDefaultCellHeight()||this.getAppointmentMinSize())-m,o=i/e.count;o>p&&(o=p);var a=e.top+e.index*o;return{height:o,width:e.width,top:a,left:e.left}}},{key:"_getOffsets",value:function(){return{unlimited:0,auto:0}}},{key:"_checkLongCompactAppointment",value:function(e,t){var n=this.instance.fire("getMaxAppointmentsPerCell");if(n)return this._splitLongCompactAppointment(e,t),t}},{key:"_getCompactLeftCoordinate",value:function(e,t){var n=this.getDefaultCellWidth()||this.getAppointmentMinSize();return e+n*t}},{key:"_getMaxHeight",value:function(){return this.getDefaultCellHeight()||this.getAppointmentMinSize()}},{key:"_getAppointmentCount",value:function(e,t){return this._getMaxAppointmentCountPerCellByType(!1)}},{key:"_getAppointmentDefaultHeight",value:function(){return f}},{key:"_getAppointmentMinHeight",value:function(){return g}},{key:"_correctRtlCoordinatesParts",value:function(e,t){for(var n=1;n<e.length;n++)e[n].left-=t;return e}},{key:"_sortCondition",value:function(e,t){var n=this._columnCondition(e,t);return this._fixUnstableSorting(n,e,t)}},{key:"_getMaxAppointmentWidth",value:function(e){var t;return this.instance.fire("getMaxAppointmentWidth",{date:e,callback:function(e){t=e}}),t}},{key:"getDropDownAppointmentWidth",value:function(){return this.getDefaultCellWidth()-2*_}},{key:"getDeltaTime",value:function(e,t){var n=0,i=e.width-t.width;return n=v("minute")*Math.round(i/this.getDefaultCellWidth()*this.instance.getAppointmentDurationInMinutes());
62}},{key:"isAllDay",value:function(e){return this.instance.fire("getField","allDay",e)}},{key:"needSeparateAppointment",value:function(){return this.instance.fire("isGroupedByDate")}}]),t}(c.default);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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(390),c=i(u),d=n(22),h=i(d),p=n(41),f=i(p),g=24,_=60,m=6e4,v=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"calculateAppointmentWidth",value:function(e,t,n){var i=new Date(this.startDate(e,!1,t)),o=new Date(this.endDate(e,t,n)),a=this.getDefaultCellWidth()||this.getAppointmentMinSize();i=h.default.trimTime(i);var r=Math.ceil(this._getDurationInHour(i,o)/g)*a;return r=this.cropAppointmentWidth(r,a)}},{key:"_getDurationInHour",value:function(e,t){var n=this._adjustDurationByDaylightDiff(t.getTime()-e.getTime(),e,t);return n/h.default.dateToMilliseconds("hour")}},{key:"getDeltaTime",value:function(e,t){return g*_*m*this._getDeltaWidth(e,t)}},{key:"isAllDay",value:function(){return!1}},{key:"createTaskPositionMap",value:function(e,n){return n||this.instance.getAppointmentsInstance()._sortAppointmentsByStartDate(e),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createTaskPositionMap",this).call(this,e)}},{key:"_getSortedPositions",value:function(e,n){var i=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getSortedPositions",this).call(this,e);return n||(i=(0,f.default)(i).sortBy("top").thenBy("left").thenBy("cellPosition").thenBy("i").toArray()),i}},{key:"needCorrectAppointmentDates",value:function(){return!1}}]),t}(c.default);e.exports=v},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(5),h=i(d),p=n(6),f=n(0),g=n(62),_=n(4),m=n(18),v=i(m),y=n(350),x=i(y),b=n(137),w=n(203),C=i(w),k=n(116),S=n(393),I=i(S),T="dx-filemanager-dirs-tree",D="dx-filemanager-focused-item",E="dx-filemanager-dirs-tree-item-text",A="dx-treeview-item",O=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_initMarkup",value:function(){var e=this;this._initActions(),this._setSelectedItem(),this._createFileActionsButton=_.noop,this._model=new B({rootItemText:this.option("rootFolderDisplayName"),initialDir:this.option("initialFolder"),getItems:this.option("getItems"),onSelectedItemLoaded:function(t){return e._onModelSelectedItemLoaded(t)}});var t=(0,c.default)("<div>").addClass(T).appendTo(this.$element()),n={dataStructure:"plain",rootValue:"",createChildren:this._onFilesTreeViewCreateChildren.bind(this),itemTemplate:this._createFilesTreeViewItemTemplate.bind(this),hasItemsExpr:"dataItem.hasSubDirs",onItemClick:this._onFilesTreeViewItemClick.bind(this),onItemExpanded:function(t){var n=t.itemData;return e._model.changeItemExpandState(n,!0)},onItemCollapsed:function(t){var n=t.itemData;return e._model.changeItemExpandState(n,!1)},onItemRendered:function(t){return e._onFilesTreeViewItemRendered(t)}};this._contextMenu&&(this._contextMenu.option("onContextMenuHidden",function(){return e._onContextMenuHidden()}),n.onItemContextMenu=function(t){return e._onFilesTreeViewItemContextMenu(t)},this._createFileActionsButton=function(t,n){return e._createComponent(t,I.default,n)}),this._filesTreeView=this._createComponent(t,x.default,n),h.default.on(t,"click",this._raiseClick.bind(this))}},{key:"_onFilesTreeViewCreateChildren",value:function(e){return this._model.expandAndGetChildren(e&&e.itemData)}},{key:"_onFilesTreeViewItemClick",value:function(e){var t=e.itemElement,n=e.itemData;this._selectedItem&&this._selectedItem.dataItem.equals(n.dataItem)||(this._model.selectItem(n),this._changeSelectedItem(n,(0,c.default)(t)))}},{key:"_onFilesTreeViewItemRendered",value:function(e){var t=e.itemElement,n=e.itemData,i=this._selectedItem&&this._selectedItem.dataItem.equals(n.dataItem);i&&this._updateFocusedElement((0,c.default)(t))}},{key:"_createFilesTreeViewItemTemplate",value:function(e,t,n){var i=this,o=(0,c.default)(n),a=o.closest(this._filesTreeViewItemSelector);a.data("item",e);var r=(0,g.getImageContainer)(e.icon),s=(0,c.default)("<span>").text(e.text).addClass(E),l=(0,c.default)("<div>");o.append(r,s,l),this._createFileActionsButton(l,{onClick:function(e){return i._onFileItemActionButtonClick(e)}})}},{key:"_onFilesTreeViewItemContextMenu",value:function(e){var t=e.itemElement,n=e.event;n.preventDefault();var i=(0,c.default)(t).data("item");this._contextMenu.showAt([i.dataItem],t,n)}},{key:"_onFileItemActionButtonClick",value:function(e){var t=e.component,n=e.element,i=e.event;i.stopPropagation();var o=t.$element().closest(this._filesTreeViewItemSelector),a=o.data("item");this._contextMenu.showAt([a.dataItem],n),this._activeFileActionsButton=t,this._activeFileActionsButton.setActive(!0)}},{key:"_onContextMenuHidden",value:function(){this._activeFileActionsButton&&this._activeFileActionsButton.setActive(!1)}},{key:"_onModelSelectedItemLoaded",value:function(e){var t=this;this._filesTreeView?this._handleModelSelectedItemLoaded(e):setTimeout(function(){return t._handleModelSelectedItemLoaded(e)})}},{key:"_handleModelSelectedItemLoaded",value:function(e){var t=this._getItemElement(e);this._changeSelectedItem(e,t)}},{key:"_changeSelectedItem",value:function(e,t){this._setSelectedItem(e,t),this._raiseCurrentFolderChanged()}},{key:"_setSelectedItem",value:function(e,t){this._selectedItem=e||null,this._updateFocusedElement(t)}},{key:"_updateFocusedElement",value:function(e){this._$focusedElement&&this._$focusedElement.toggleClass(D,!1),this._$focusedElement=e||(0,c.default)(),this._$focusedElement.toggleClass(D,!0)}},{key:"_getItemElement",value:function(e){var t=this._filesTreeView._dataAdapter.getNodeByKey(e.id);if(t){var n=this._filesTreeView._getNodeElement(t);if(n)return n.children(this._filesTreeViewItemSelector)}return null}},{key:"_raiseCurrentFolderChanged",value:function(){this._actions.onCurrentFolderChanged()}},{key:"_raiseClick",value:function(){this._actions.onClick()}},{key:"_initActions",value:function(){this._actions={onCurrentFolderChanged:this._createActionByOption("onCurrentFolderChanged"),onClick:this._createActionByOption("onClick")}}},{key:"_getDefaultOptions",value:function(){return(0,f.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{rootFolderDisplayName:"Files",initialFolder:null,contextMenu:null,getItems:null,onCurrentFolderChanged:null,onClick:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"getItems":case"rootFolderDisplayName":case"initialFolder":case"contextMenu":this.repaint();break;case"onCurrentFolderChanged":case"onClick":this._actions[n]=this._createActionByOption(n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"refreshData",value:function(){var e=this.getCurrentFolderPath();this._setSelectedItem(),this._model.refresh(),this._filesTreeView.option("dataSource",[]);var t=this.getCurrentFolderPath()!==e;t&&this._raiseCurrentFolderChanged()}},{key:"setCurrentFolderPath",value:function(e){var t=this;if(e!==this.getCurrentFolderPath()){var n=new b.FileManagerItem((0,k.getParentPath)(e),(0,k.getName)(e),(!0)),i=n.getParent(),o=this._model.getItemByDataItem(n),a=i?this._model.getItemByDataItem(i):null;this._model.selectItem(o),!a||a.childrenLoaded?this._onModelSelectedItemLoaded(o):this._model.expandAndGetChildren(a).done(function(){a.expanded=!1,t._filesTreeView.expandItem(a)})}}},{key:"getCurrentFolderPath",value:function(){return this.getCurrentFolder()?this.getCurrentFolder().relativeName:null}},{key:"getCurrentFolder",value:function(){return this._selectedItem?this._selectedItem.dataItem:null}},{key:"_filesTreeViewItemSelector",get:function(){return"."+A}},{key:"_contextMenu",get:function(){return this.option("contextMenu")}}]),t}(v.default),B=function(){function e(t){o(this,e),this._options=t,this._expandedDataItems={},this._selectedDataItem=null,this._initState();var n=this._options.initialDir;n&&(this._selectedDataItem=n,this._setTreeLineExpandState(n))}return s(e,[{key:"selectItem",value:function(e){this._selectedDataItem=e.dataItem}},{key:"expandAndGetChildren",value:function(e){return e?e.isRoot?this._expandAndGetChildrenForRootItem():this._expandAndGetChildrenForGeneralItem(e):(this._onItemLoaded(this._rootItem),(new p.Deferred).resolve([this._rootItem]).promise())}},{key:"refresh",value:function(){this._initState()}},{key:"changeItemExpandState",value:function(e,t){t?this._expandedDataItems[e.dataKey]=e.dataItem:delete this._expandedDataItems[e.dataKey],e.expanded=t}},{key:"getItemByDataItem",value:function(e,t){var n=this._itemMap[e.relativeName];return n?t&&(n.dataItem=e):n=this._createItem(e),n}},{key:"_expandAndGetChildrenForRootItem",value:function(){var e=this,t=Object.keys(this._expandedDataItems).filter(function(t){return e._isVisibleAndExpandedItem(t)}).map(function(t){return e._expandedDataItems[t]}),n=t.map(function(t){var n=e.getItemByDataItem(t);return e._expandAndGetChildrenForGeneralItem(n)});return(0,C.default)(n).then(function(){return e._ensureSelectedItemLoaded(),e._rootItem.children})}},{key:"_expandAndGetChildrenForGeneralItem",value:function(e){var t=this;if(e.expanded&&e.childrenLoaded)return(new p.Deferred).resolve(e.children).promise();var n=this._loadMap[e.id];if(n)return n;if(this.changeItemExpandState(e,!0),e.isRoot)n=(new p.Deferred).resolve().promise();else{var i=e.dataItem.getParent(),o=this.getItemByDataItem(i);n=this._expandAndGetChildrenForGeneralItem(o)}n=n.then(function(n){return!n||n.some(function(t){return e.dataItem.equals(t.dataItem)})?t._loadChildren(e):(t._onItemNotFound(e),[])}),this._loadMap[e.id]=n;var a=function(){delete t._loadMap[e.id]};return n.done(a).fail(a),n}},{key:"_loadChildren",value:function(e){var t=this,n=this._options.getItems(e.dataItem);return(0,p.when)(n).then(function(n){return e.children=[],n.forEach(function(n){var i=t.getItemByDataItem(n,!0);e.children.push(i),t._onItemLoaded(i)}),e.childrenLoaded=!0,e.children})}},{key:"_isVisibleAndExpandedItem",value:function(e){var t=this._expandedDataItems[e];if(!t)return!1;if(t.isRoot())return!0;var n=(0,k.getParentPath)(t.relativeName);return this._isVisibleAndExpandedItem(n)}},{key:"_setTreeLineExpandState",value:function(e){var t=this.getItemByDataItem(e);if(this.changeItemExpandState(t,!0),!t.isRoot){var n=e.getParent();this._setTreeLineExpandState(n)}}},{key:"_ensureSelectedItemLoaded",value:function(){var e=this._getSelectedItem();if(!e.isRoot&&!e.childrenLoaded){for(var t in this._itemMap)if(Object.prototype.hasOwnProperty.call(this._itemMap,t)){var n=this._itemMap[t];if(n.childrenLoaded&&n.children.indexOf(e)!==-1)return}this._selectedDataItem=e.dataItem.getParent(),e=this._getSelectedItem(),this._raiseSelectedItemLoaded(e)}}},{key:"_onItemLoaded",value:function(e){this._isSelectedItem(e)&&this._raiseSelectedItemLoaded(e)}},{key:"_onItemNotFound",value:function(e){if(this.changeItemExpandState(e,!1),0===this._selectedDataItem.relativeName.indexOf(e.dataItem.relativeName)){this._selectedDataItem=e.dataItem.getParent();var t=this._getSelectedItem();this._raiseSelectedItemLoaded(t)}}},{key:"_getSelectedItem",value:function(){return this.getItemByDataItem(this._selectedDataItem)}},{key:"_isSelectedItem",value:function(e){return e===this._getSelectedItem()}},{key:"_initState",value:function(){this._itemMap={},this._loadMap={};var e=new b.FileManagerItem("","",(!0));e.name=this._options.rootItemText,this._rootItem=this.getItemByDataItem(e),this.changeItemExpandState(this._rootItem,!0),this._selectedDataItem||(this._selectedDataItem=e)}},{key:"_createItem",value:function(e){var t=e.relativeName,n=!e.relativeName,i=n?"":this._getTreeItemKey(e.parentPath),o=!!this._expandedDataItems[t],a={dataKey:t,childrenLoaded:!1,dataItem:e,isRoot:n,id:this._getTreeItemKey(e.relativeName),parentId:i,text:e.name,expanded:o,icon:"folder"};return this._itemMap[a.dataKey]=a,a}},{key:"_getTreeItemKey",value:function(e){return"TVK_"+e}},{key:"_raiseSelectedItemLoaded",value:function(e){this._options.onSelectedItemLoaded(e)}}]),e}();e.exports=O},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(0),h=n(18),p=i(h),f=n(34),g=i(f),_="dx-filemanager-file-actions-button",m="dx-filemanager-file-actions-button-activated",v="dx-state-active",y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_initMarkup",value:function(){var e=this;this._createClickAction();var n=(0,c.default)("<div>");this.$element().append(n).addClass(_),this._button=this._createComponent(n,g.default,{text:"&vellip;",stylingMode:"text",onClick:function(t){return e._raiseClick(t)},template:function(){return(0,c.default)("<i>").html("&vellip;")}}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"_createClickAction",value:function(){this._clickAction=this._createActionByOption("onClick")}},{key:"_raiseClick",value:function(e){this._clickAction(e)}},{key:"_getDefaultOptions",value:function(){return(0,d.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{cssClass:"",onClick:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"cssClass":this.repaint();break;case"onClick":this._createClickAction();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"setActive",value:function(e){var t=this;this.$element().toggleClass(m,e),setTimeout(function(){return t._button.$element().toggleClass(v,e)})}}]),t}(p.default);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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(0),c=n(154),d=n(8),h=n(5),p=i(h),f=n(62),g=n(18),_=i(g),m="dx-filemanager-files-view",v="dxFileManager_open",y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_initMarkup",value:function(){this._initActions(),this.$element().addClass(m);var e=(0,d.addNamespace)(c.name,v);p.default.on(this.$element(),e,this._getItemSelector(),this._onItemDblClick.bind(this)),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"_initActions",value:function(){this._actions={onError:this._createActionByOption("onError"),onSelectionChanged:this._createActionByOption("onSelectionChanged"),onSelectedItemOpened:this._createActionByOption("onSelectedItemOpened")}}},{key:"_getDefaultOptions",value:function(){return(0,u.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{selectionMode:"single",contextMenu:null,getItems:null,getItemThumbnail:null,onError:null,onSelectionChanged:null,onSelectedItemOpened:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"selectionMode":case"contextMenu":case"getItems":case"getItemThumbnail":this.repaint();break;case"onError":case"onSelectedItemOpened":case"onSelectionChanged":this._actions[n]=this._createActionByOption(n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_getItems",value:function(){var e=this.option("getItems");return e?e():[]}},{key:"_raiseOnError",value:function(e){this._actions.onError({error:e})}},{key:"_raiseSelectionChanged",value:function(){this._actions.onSelectionChanged()}},{key:"_raiseSelectedItemOpened",value:function(e){this._actions.onSelectedItemOpened({item:e})}},{key:"_getItemThumbnail",value:function(e){var t=this.option("getItemThumbnail");return t?t(e):{thumbnail:""}}},{key:"_getItemThumbnailContainer",value:function(e){var t=this._getItemThumbnail(e),n=t.thumbnail,i=t.cssClass,o=(0,f.getImageContainer)(n).addClass(this._getItemThumbnailCssClass());return i&&o.addClass(i),o}},{key:"_getItemThumbnailCssClass",value:function(){return""}},{key:"_getItemSelector",value:function(){}},{key:"_onItemDblClick",value:function(e){}},{key:"_showContextMenu",value:function(e,t,n){this._contextMenu.showAt(e,t,n)}},{key:"refreshData",value:function(){}},{key:"getSelectedItems",value:function(){}},{key:"clearSelection",value:function(){}},{key:"selectItem",value:function(){}},{key:"_contextMenu",get:function(){return this.option("contextMenu")}}]),t}(_.default);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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(0),h=n(18),p=i(h),f=n(46),g=i(f),_="dx-filemanager-dialog",m="dx-filemanager-dialog-popup",v=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_initMarkup",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._createOnClosedAction();var e=this._getDialogOptions(),n=(0,c.default)("<div>").addClass(m).appendTo(this.$element());e.popupCssClass&&n.addClass(e.popupCssClass),this._popup=this._createComponent(n,g.default,{showTitle:!0,title:e.title,visible:!1,closeOnOutsideClick:!0,contentTemplate:this._createContentTemplate.bind(this),toolbarItems:[{widget:"dxButton",toolbar:"bottom",location:"after",options:{text:e.buttonText,onClick:this._onButtonClick.bind(this)}}],onHidden:this._onPopupHidden.bind(this),onShown:this._onPopupShown.bind(this)})}},{key:"show",value:function(){this._dialogResult=null,this._popup.show()}},{key:"_getDialogOptions",value:function(){return{title:"Title",buttonText:"ButtonText",contentCssClass:"",popupCssClass:""}}},{key:"_createContentTemplate",value:function(e){this._$contentElement=(0,c.default)("<div>").appendTo(e).addClass(_);var t=this._getDialogOptions().contentCssClass;t&&this._$contentElement.addClass(t)}},{key:"_getDialogResult",value:function(){return null}},{key:"_onButtonClick",value:function(){var e=this._getDialogResult();e&&(this._dialogResult=e,this._popup.hide())}},{key:"_onPopupHidden",value:function(){this._onClosedAction({dialogResult:this._dialogResult})}},{key:"_onPopupShown",value:function(){}},{key:"_createOnClosedAction",value:function(){this._onClosedAction=this._createActionByOption("onClosed")}},{key:"_getDefaultOptions",value:function(){return(0,d.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{onClosed:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"onClosed":this._createOnPathChangedAction();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}(p.default);e.exports=v},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="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},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=n(4),c=n(20),d=n(3),h=n(1),p=i(h),f=n(35),g=n(137),_=n(203),m=n(116),v=function(e){function t(e){o(this,t),e=(0,u.ensureDefined)(e,{});var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),i=e.data;if(i&&!Array.isArray(i))throw f.errors.Error("E4006");var r=e.itemsExpr||"items";n._subFileItemsGetter=(0,c.compileGetter)(r),n._subFileItemsSetter=p.default.isFunction(r)?r:(0,c.compileSetter)(r);var s=n._getNameExpr(e);n._nameSetter=p.default.isFunction(s)?s:(0,c.compileSetter)(s);var l=n._getIsDirExpr(e);return n._getIsDirSetter=p.default.isFunction(l)?l:(0,c.compileSetter)(l),n._data=i||[],n}return r(t,e),l(t,[{key:"getItems",value:function(e,t){return this._getItems(e,t)}},{key:"renameItem",value:function(e,t){e.dataItem.name=t}},{key:"createFolder",value:function(e,t){var n={};this._nameSetter(n,t),this._getIsDirSetter(n,!0);var i=this._getChildrenArray(e.dataItem);i.push(n)}},{key:"deleteItems",value:function(e){var t=this;(0,d.each)(e,function(e,n){return t._deleteItem(n)})}},{key:"moveItems",value:function(e,t){var n=this,i=this._getChildrenArray(t.dataItem);(0,d.each)(e,function(e,o){n._checkAbilityToMoveOrCopyItem(o,t),n._deleteItem(o),i.push(o.dataItem)})}},{key:"copyItems",value:function(e,t){var n=this,i=this._getChildrenArray(t.dataItem);(0,d.each)(e,function(e,o){n._checkAbilityToMoveOrCopyItem(o,t);var a=n._createCopy(o.dataItem);i.push(a)})}},{key:"_checkAbilityToMoveOrCopyItem",value:function(e,t){var n=(0,m.pathCombine)(t.relativeName,e.name);if(0===n.indexOf(e.relativeName))throw{errorId:_.ErrorCode.Other,fileItem:e}}},{key:"_createCopy",value:function(e){var t=this,n={};this._nameSetter(n,this._nameGetter(e)),this._getIsDirSetter(n,this._isDirGetter(e));var i=this._subFileItemsGetter(e);if(Array.isArray(i)){var o=[];(0,d.each)(i,function(e,n){var i=t._createCopy(n);o.push(i)}),this._subFileItemsSetter(n,o)}return n}},{key:"_deleteItem",value:function(e){var t=e.parentPath,n=e.dataItem,i=this._data;if(""!==t){var o=this._findItem(t);i=this._subFileItemsGetter(o)}var a=i.indexOf(n);i.splice(a,1)}},{key:"_getChildrenArray",value:function(e){if(!e)return this._data;var t=this._subFileItemsGetter(e);return Array.isArray(t)||(t=[],this._subFileItemsSetter(e,t)),t}},{key:"_getItems",value:function(e,t){if(""===e||void 0===e)return this._convertDataObjectsToFileItems(this._data,"",t);var n=this._findItem(e),i=n&&this._subFileItemsGetter(n)||[];return this._convertDataObjectsToFileItems(i,e,t)}},{key:"_findItem",value:function(e){var t=this;if(""===e)return null;for(var n=null,i=this._data,o=e.split("/"),a=function(e){var a=o[e];if(n=i.filter(function(e){return t._isDirGetter(e)&&t._nameGetter(e)===a})[0],!n)return{v:null};var r=t._subFileItemsGetter(n);if(r)i=r;else if(e!==o.length-1)return{v:null}},r=0;r<o.length;r++){var l=a(r);if("object"===("undefined"==typeof l?"undefined":s(l)))return l.v}return n}},{key:"_hasSubDirs",value:function(e){var t=(0,u.ensureDefined)(this._subFileItemsGetter(e),[]);if(!Array.isArray(t))return!0;for(var n=0;n<t.length;n++)if(this._isDirGetter(t[n])===!0)return!0;return!1}}]),t}(g.FileProvider);e.exports=v},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(132),u=i(l),c=n(86),d=i(c),h=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n._diagramWidget=e,n}return r(t,e),s(t,[{key:"insert",value:function(e,t){this._dataSource.store().insert(e).done(function(e){t&&t(e)})}},{key:"update",value:function(e,t,n){this._dataSource.store().update(e,t).done(function(e,t){n&&n(t,e)})}},{key:"remove",value:function(e,t){this._dataSource.store().remove(e).done(function(e){t&&t(e)})}}]),t}(u.default);h.include(d.default),e.exports=h},function(e,t,n){var i=n(0).extend,o=n(121),a=i,r=Math.round,s=Math.sqrt,l=Math.acos,u=180/Math.PI,c=Math.abs,d=n(10),h=d.normalizeAngle,p=d.getCosAndSin,f=n(1).isDefined,g=d.getVerticallyShiftedAngularCoords,_=n(120).radialLabelIndent;e.exports=a({},o,{_updateData:function(e,t){var n=this;o._updateData.call(this,e),!t&&f(n._visible)||(n._visible=!0),n.minValue=n.initialMinValue=n.originalMinValue=f(e.minValue)?e.minValue:0},animate:function(e,t,n){var i=this;i.graphic.animate({x:i.centerX,y:i.centerY,outerRadius:i.radiusOuter,innerRadius:i.radiusInner,startAngle:i.toAngle,endAngle:i.fromAngle},{delay:n,partitionDuration:t},e)},correctPosition:function(e){var t=this;t.correctRadius(e),t.correctLabelRadius(e.radiusOuter+_),t.centerX=e.centerX,t.centerY=e.centerY},correctRadius:function(e){this.radiusInner=e.radiusInner,this.radiusOuter=e.radiusOuter},correctLabelRadius:function(e){this.radiusLabels=e},correctValue:function(e,t,n){var i=this;i.value=(n||i.normalInitialValue)+e,i.minValue=e,i.percent=t,i._label.setDataField("percent",t)},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_getShiftLabelCoords:function(){var e=this,t=e._label.getBoundingRect(),n=e._getLabelCoords(e._label),i=e._getVisibleArea();return e._isLabelDrawingWithoutPoints?e._checkLabelPosition(n,t,i):e._getLabelExtraCoord(n,e._checkVerticalLabelPosition(n,t,i),t)},_getLabelPosition:function(e){return e.position},_getLabelCoords:function(e){var t,n,i=this,o=e.getBoundingRect(),a=e.getLayoutOptions(),s=p(i.middleAngle),l=i._getLabelPosition(a),u=i.radiusInner,c=i.radiusOuter,d=i.radiusLabels,h="columns"===l;return"inside"===l?(t=u+(c-u)/2+a.radialOffset,n=i.centerX+t*s.cos-o.width/2):(t=d+a.radialOffset,n=s.cos>.1||h&&s.cos>=0?i.centerX+t*s.cos:s.cos<-.1||h&&s.cos<0?i.centerX+t*s.cos-o.width:i.centerX+t*s.cos-o.width/2),{x:n,y:r(i.centerY-t*s.sin-o.height/2)}},_correctLabelCoord:function(e,t){var n=this,i=n._label,o=i.getBoundingRect(),a=o.width,r=i.getLayoutOptions(),s=n._getVisibleArea(),l=s.maxX-a,u=s.minX,c=h(n.middleAngle),d=n.centerX,p=r.connectorOffset,f=e.x;return"columns"===r.position?(f=c<=90||c>=270?l:u,e.x=f):"inside"!==r.position&&t&&(c<=90||c>=270?f-p<d&&(f=d+p):f+a+p>d&&(f=d-a-p),e.x=f),e},drawLabel:function(){this.translate(),this._isLabelDrawingWithoutPoints=!0,
63this._drawLabel(),this._isLabelDrawingWithoutPoints=!1},updateLabelCoord:function(e){var t=this,n=t._label.getBoundingRect(),i=t._correctLabelCoord(n,e);i=t._checkHorizontalLabelPosition(i,n,t._getVisibleArea()),t._label.shift(r(i.x),r(n.y))},_checkVerticalLabelPosition:function(e,t,n){var i=e.x,o=e.y;return e.y+t.height>n.maxY?o=n.maxY-t.height:e.y<n.minY&&(o=n.minY),{x:i,y:o}},_getLabelExtraCoord:function(e,t,n){return e.y!==t.y?g({x:e.x,y:e.y,width:n.width,height:n.height},t.y-e.y,{x:this.centerX,y:this.centerY}):e},_checkHorizontalLabelPosition:function(e,t,n){var i=e.x,o=e.y;return e.x+t.width>n.maxX?i=n.maxX-t.width:e.x<n.minX&&(i=n.minX),{x:i,y:o}},applyWordWrap:function(e){var t=this,n=t._label,i=n.getBoundingRect(),o=t._getVisibleArea(),a=n.getLayoutOptions().position,r=i.width,s=!1;return"columns"===a&&t.series.index>0?r=o.maxX-t.centerX-t.radiusLabels:"inside"===a?r>o.maxX-o.minX&&(r=o.maxX-o.minX):e&&i.x<t.centerX&&i.width+i.x>t.centerX?r=Math.floor((o.maxX-o.minX)/2):i.x+r>o.maxX?r=o.maxX-i.x:i.x<o.minX&&(r=i.x+r-o.minX),r<i.width&&(s=n.fit(r)),s},setLabelTrackerData:function(){this._label.setTrackerData(this)},_checkLabelPosition:function(e,t,n){return e=this._checkHorizontalLabelPosition(e,t,n),this._checkVerticalLabelPosition(e,t,n)},_getLabelConnector:function(){var e=this,t=e.radiusOuter,n=e._options.styles.normal,i=n["stroke-width"]/2,o=r(e.series.getOptions().containerBackgroundColor===n.stroke?i:-i),a=p(r(e.middleAngle));return{x:r(e.centerX+(t-o)*a.cos),y:r(e.centerY-(t-o)*a.sin),angle:e.middleAngle}},_drawMarker:function(e,t,n,i){var o=this,a=o.radiusOuter,r=o.radiusInner,s=o.fromAngle,l=o.toAngle;n&&(r=a=0,i||(s=l=o.shiftedAngle)),o.graphic=e.arc(o.centerX,o.centerY,r,a,l,s).attr({"stroke-linejoin":"round"}).smartAttr(o._getStyle()).data({"chart-data-point":o}).sharp().append(t)},getTooltipParams:function(){var e=this,t=p(e.middleAngle),n=e.radiusInner,i=e.radiusOuter;return{x:e.centerX+(n+(i-n)/2)*t.cos,y:e.centerY-(n+(i-n)/2)*t.sin,offset:0}},_translate:function(){var e=this,t=e.shiftedAngle||0,n=e.value,i=e.minValue,o=e._getValTranslator();e.fromAngle=o.translate(i)+t,e.toAngle=o.translate(n)+t,e.middleAngle=o.translate((n-i)/2+i)+t,e.isVisible()||(e.middleAngle=e.toAngle=e.fromAngle=e.fromAngle||t)},getMarkerVisibility:function(){return!0},_updateMarker:function(e,t,n,i){var o=this;e||(t=a({x:o.centerX,y:o.centerY,outerRadius:o.radiusOuter,innerRadius:o.radiusInner,startAngle:o.toAngle,endAngle:o.fromAngle},t)),o.graphic.smartAttr(t).sharp(),i&&i()},getLegendStyles:function(){return this._styles.legendStyles},isInVisibleArea:function(){return!0},hide:function(){var e=this;e._visible&&(e._visible=!1,e.hideTooltip(),e._options.visibilityChanged())},show:function(){var e=this;e._visible||(e._visible=!0,e._options.visibilityChanged())},setInvisibility:function(){this._label.draw(!1)},isVisible:function(){return this._visible},_getFormatObject:function(e){var t=o._getFormatObject.call(this,e),n=this.percent;return t.percent=n,t.percentText=e.formatValue(n,"percent"),t},getColor:function(){return this._styles.normal.fill},coordsIn:function(e,t){var n,i=this,o=e-i.centerX,a=t-i.centerY,r=s(o*o+a*a),d=i.fromAngle%360,h=i.toAngle%360;return!(r<i.radiusInner||r>i.radiusOuter||0===r)&&(n=l(o/r)*u*(a>0?-1:1),n<0&&(n+=360),d===h&&c(i.toAngle-i.fromAngle)>1e-4||(d>=h?n<=d&&n>=h:!(n>=d&&n<=h)))}})},function(e,t,n){var i=n(3).each,o=n(0).extend,a=n(4).noop,r=n(270),s=n(121),l=o,u=n(1).isDefined,c=Math,d=c.abs,h=c.min,p=c.max,f=c.round,g=20,_=20;e.exports=l({},s,{deleteLabel:function(){var e=this;e._topLabel.dispose(),e._topLabel=null,e._bottomLabel.dispose(),e._bottomLabel=null},hideMarker:function(e){var t=this.graphic,n=t&&t[e+"Marker"],i=this["_"+e+"Label"];n&&"hidden"!==n.attr("visibility")&&n.attr({visibility:"hidden"}),i.draw(!1)},setInvisibility:function(){this.hideMarker("top"),this.hideMarker("bottom")},clearVisibility:function(){var e=this,t=e.graphic,n=t&&t.topMarker,i=t&&t.bottomMarker;n&&n.attr("visibility")&&n.attr({visibility:null}),i&&i.attr("visibility")&&i.attr({visibility:null})},clearMarker:function(){var e=this,t=e.graphic,n=t&&t.topMarker,i=t&&t.bottomMarker,o=e._emptySettings;n&&n.attr(o),i&&i.attr(o)},_getLabelPosition:function(e){var t,n="inside"===this._options.label.position;return t=this._options.rotated?"top"===e^n?"right":"left":"top"===e^n?"top":"bottom"},_getLabelMinFormatObject:function(){var e=this;return{index:0,argument:e.initialArgument,value:e.initialMinValue,seriesName:e.series.name,originalValue:e.originalMinValue,originalArgument:e.originalArgument,point:e}},_updateLabelData:function(){var e=this._getLabelFormatObject();e.index=1,this._topLabel.setData(e),this._bottomLabel.setData(this._getLabelMinFormatObject())},_updateLabelOptions:function(){var e=this,t=this._options.label;(!e._topLabel||!e._bottomLabel)&&e._createLabel(),e._topLabel.setOptions(t),e._bottomLabel.setOptions(t)},_createLabel:function(){var e={renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this};this._topLabel=new r.Label(e),this._bottomLabel=new r.Label(e)},_getGraphicBBox:function(e){var t,n=this._options,i=this._getImage(n.image),o="top"===e?this._checkImage(i.top):this._checkImage(i.bottom),a=this._getPositionFromLocation(e);return t=n.visible?o?this._getImageBBox(a.x,a.y):this._getSymbolBBox(a.x,a.y,n.styles.normal.r):{x:a.x,y:a.y,width:0,height:0}},_getPositionFromLocation:function(e){var t,n,i="top"===e;return this._options.rotated?(t=i?p(this.x,this.minX):h(this.x,this.minX),n=this.y):(t=this.x,n=i?h(this.y,this.minY):p(this.y,this.minY)),{x:t,y:n}},_checkOverlay:function(e,t,n){return e<t+n},_getOverlayCorrections:function(e,t){var n=this._options.rotated,i=n?"x":"y",o=n?"width":"height",a=this.series.getValueAxis().getVisibleArea(),r=a[0],s=a[1],l=f((e[i]+e[o]-t[i])/2),u=e[i]-l,c=t[i]+l;return u<r?(l=r-e[i],u+=l,c+=l):c+t[o]>s&&(l=-(t[i]+t[o]-s),u+=l,c+=l),{coord1:u,coord2:c}},_checkLabelsOverlay:function(e){var t=this,n=t._topLabel.getBoundingRect(),i=t._bottomLabel.getBoundingRect(),o={};t._options.rotated?"top"===e?this._checkOverlay(n.x,i.x,i.width)&&(o=this._getOverlayCorrections(i,n),t._topLabel.shift(o.coord2,n.y),t._bottomLabel.shift(o.coord1,i.y)):this._checkOverlay(i.x,n.x,n.width)&&(o=this._getOverlayCorrections(n,i),t._topLabel.shift(o.coord1,n.y),t._bottomLabel.shift(o.coord2,i.y)):"top"===e?this._checkOverlay(i.y,n.y,n.height)&&(o=this._getOverlayCorrections(n,i),t._topLabel.shift(n.x,o.coord1),t._bottomLabel.shift(i.x,o.coord2)):this._checkOverlay(n.y,i.y,i.height)&&(o=this._getOverlayCorrections(i,n),t._topLabel.shift(n.x,o.coord2),t._bottomLabel.shift(i.x,o.coord1))},_drawLabel:function(){var e=this,t=[],n=e._options.rotated?e.x>=e.minX:e.y<e.minY,o=e._getCustomLabelVisibility(),a=e._topLabel,r=e._bottomLabel;a.pointPosition=n?"top":"bottom",r.pointPosition=n?"bottom":"top",(e.series.getLabelVisibility()||o)&&e.hasValue()&&o!==!1?(e.visibleTopMarker!==!1&&t.push(a),e.visibleBottomMarker!==!1&&t.push(r),i(t,function(e,t){t.draw(!0)}),e._checkLabelsOverlay(e._topLabel.pointPosition)):(a.draw(!1),r.draw(!1))},_getImage:function(e){var t={};return u(e)&&("string"==typeof e?t.top=t.bottom=e:(t.top={url:"string"==typeof e.url?e.url:e.url&&e.url.rangeMaxPoint,width:"number"==typeof e.width?e.width:e.width&&e.width.rangeMaxPoint,height:"number"==typeof e.height?e.height:e.height&&e.height.rangeMaxPoint},t.bottom={url:"string"==typeof e.url?e.url:e.url&&e.url.rangeMinPoint,width:"number"==typeof e.width?e.width:e.width&&e.width.rangeMinPoint,height:"number"==typeof e.height?e.height:e.height&&e.height.rangeMinPoint})),t},_checkSymbol:function(e,t){var n=this,i=e.symbol,o=t.symbol,a="circle"===i&&"circle"!==o||"circle"!==i&&"circle"===o,r=n._getImage(e.image),s=n._getImage(t.image),l=n._checkImage(r.top)!==n._checkImage(s.top),u=n._checkImage(r.bottom)!==n._checkImage(s.bottom);return a||l||u},_getSettingsForTwoMarkers:function(e){var t=this,n=t._options,i={},o=n.rotated?h(t.x,t.minX):t.x,a=n.rotated?t.y:h(t.y,t.minY),r=e.r,s=t._populatePointShape(n.symbol,r);return i.top=l({translateX:o+t.width,translateY:a,r:r},e),i.bottom=l({translateX:o,translateY:a+t.height,r:r},e),s&&(i.top.points=i.bottom.points=s),i},_hasGraphic:function(){return this.graphic&&this.graphic.topMarker&&this.graphic.bottomMarker},_drawOneMarker:function(e,t,n,i){var o=this,a=o.graphic;a[t]?o._updateOneMarker(t,i):a[t]=o._createMarker(e,a,n,i)},_drawMarker:function(e,t,n,i,o){var a=this,r=a._getSettingsForTwoMarkers(o||a._getStyle()),s=a._getImage(a._options.image);a._checkImage(s.top)&&(r.top=a._getImageSettings(r.top,s.top)),a._checkImage(s.bottom)&&(r.bottom=a._getImageSettings(r.bottom,s.bottom)),a.graphic=a.graphic||e.g().append(t),a.visibleTopMarker&&a._drawOneMarker(e,"topMarker",s.top,r.top),a.visibleBottomMarker&&a._drawOneMarker(e,"bottomMarker",s.bottom,r.bottom)},_getSettingsForTracker:function(e){var t=this,n=t._options.rotated;return{translateX:n?h(t.x,t.minX)-e:t.x-e,translateY:n?t.y-e:h(t.y,t.minY)-e,width:t.width+2*e,height:t.height+2*e}},isInVisibleArea:function(){var e,t,n,i,o,a=this,r=a._options.rotated,s=r?a.y:a.x,l=r?p(a.minX,a.x):p(a.minY,a.y),u=r?h(a.minX,a.x):h(a.minY,a.y),c=!0,d=!0,f=!0;return i=a.series.getArgumentAxis().getVisibleArea(),o=a.series.getValueAxis().getVisibleArea(),e=i[1]<s||i[0]>s,t=o[0]>u&&o[0]>l||o[1]<u&&o[1]<l,e||t?c=d=f=!1:(c=o[0]<=u&&o[1]>u,d=o[0]<l&&o[1]>=l,r&&(n=c,c=d,d=n)),a.visibleTopMarker=c,a.visibleBottomMarker=d,f},getTooltipParams:function(){var e,t,n=this,i=n._options.rotated,o=i?h(n.x,n.minX):h(n.y,n.minY),a=i?"width":"height",r=n._getVisibleArea(),s=i?r.minX:r.minY,l=i?r.maxX:r.maxY,u=p(s,o),c=h(l,o+n[a]);return i?(t=n.y,e=u+(c-u)/2):(e=n.x,t=u+(c-u)/2),{x:e,y:t,offset:0}},_translate:function(){var e=this,t=e._options.rotated;s._translate.call(e),e.height=t?0:d(e.minY-e.y),e.width=t?d(e.x-e.minX):0},hasCoords:function(){return s.hasCoords.call(this)&&!(null===this.minX||null===this.minY)},_updateData:function(e){var t=this;s._updateData.call(t,e),t.minValue=t.initialMinValue=t.originalMinValue=e.minValue},_getImageSettings:function(e,t){return{href:t.url||t.toString(),width:t.width||g,height:t.height||_,translateX:e.translateX,translateY:e.translateY}},getCrosshairData:function(e,t){var n=this,i=n._options.rotated,o=n.minX,a=n.minY,r=n.vx,s=n.vy,l=n.value,u=n.minValue,c=n.argument,h={axis:n.series.axis,x:r,y:s,yValue:l,xValue:c};return i?(h.yValue=c,d(r-e)<d(o-e)?h.xValue=l:(h.x=o,h.xValue=u)):d(s-t)>=d(a-t)&&(h.y=a,h.yValue=u),h},_updateOneMarker:function(e,t){this.graphic&&this.graphic[e]&&this.graphic[e].attr(t)},_updateMarker:function(e,t){this._drawMarker(void 0,void 0,!1,!1,t)},_getFormatObject:function(e){var t=this,n=t.initialMinValue,i=t.initialValue,o=t.initialArgument,a=e.formatValue(n),r=e.formatValue(i);return{argument:o,argumentText:e.formatValue(o,"argument"),valueText:a+" - "+r,rangeValue1Text:a,rangeValue2Text:r,rangeValue1:n,rangeValue2:i,seriesName:t.series.name,point:t,originalMinValue:t.originalMinValue,originalValue:t.originalValue,originalArgument:t.originalArgument}},getLabel:function(){return[this._topLabel,this._bottomLabel]},getLabels:function(){return[this._topLabel,this._bottomLabel]},getBoundingRect:a,coordsIn:function(e,t){var n=this._storeTrackerR(),i=e>=this.x-n&&e<=this.x+n,o=t>=this.y-n&&t<=this.y+n;return this._options.rotated?o&&(i||e>=this.minX-n&&e<=this.minX+n):i&&(o||t>=this.minY-n&&t<=this.minY+n)},getMaxValue:function(){return"discrete"!==this.series.valueAxisType&&this.minValue>this.value?this.minValue:this.value},getMinValue:function(){return"discrete"!==this.series.valueAxisType?this.minValue<this.value?this.minValue:this.value:this.minValue}})},function(e,t,n){var i=n(0).extend,o=n(121),a=n(206),r=Math,s=r.abs,l=r.min,u=r.max,c=r.round,d=2;e.exports=i({},a,{_getContinuousPoints:function(e,t){var n,i=this,o=i.x,a=i._options.rotated?function(e,t){return[t,e]}:function(e,t){return[e,t]},r=i.width,l=i.highY,u=s(l-e)<s(l-t)?e:t,c=u===t?e:t;return n=c===u?[].concat(a(o,i.highY)).concat(a(o,i.lowY)).concat(a(o,i.closeY)).concat(a(o-r/2,i.closeY)).concat(a(o+r/2,i.closeY)).concat(a(o,i.closeY)):[].concat(a(o,i.highY)).concat(a(o,u)).concat(a(o+r/2,u)).concat(a(o+r/2,c)).concat(a(o,c)).concat(a(o,i.lowY)).concat(a(o,c)).concat(a(o-r/2,c)).concat(a(o-r/2,u)).concat(a(o,u))},_getCrockPoints:function(e){var t=this,n=t.x,i=t._options.rotated?function(e,t){return[t,e]}:function(e,t){return[e,t]};return[].concat(i(n,t.highY)).concat(i(n,t.lowY)).concat(i(n,e)).concat(i(n-t.width/2,e)).concat(i(n+t.width/2,e)).concat(i(n,e))},_getPoints:function(){var e,t=this,n=t.closeY,i=t.openY;return e=null!==n&&null!==i?t._getContinuousPoints(i,n):i===n?[t.x,t.highY,t.x,t.lowY]:t._getCrockPoints(null!==i?i:n)},getColor:function(){var e=this;return e._isReduction?e._options.reduction.color:e._styles.normal.stroke||e.series.getColor()},_drawMarkerInGroup:function(e,t,n){var i=this;i.graphic=n.path(i._getPoints(),"area").attr({"stroke-linecap":"square"}).attr(t).data({"chart-data-point":i}).sharp().append(e)},_fillStyle:function(){var e=this,t=e._options.styles;e._isReduction&&e._isPositive?e._styles=t.reductionPositive:e._isReduction?e._styles=t.reduction:e._isPositive?e._styles=t.positive:e._styles=t},_getMinTrackerWidth:function(){return 2+2*this._styles.normal["stroke-width"]},correctCoordinates:function(e){var t=this._getMinTrackerWidth(),n=10,i=e.width;i=i<t?t:i>n?n:i,this.width=i+i%2,this.xCorrection=e.offset},_getMarkerGroup:function(e){var t,n=this;return t=n._isReduction&&n._isPositive?e.reductionPositiveMarkersGroup:n._isReduction?e.reductionMarkersGroup:n._isPositive?e.defaultPositiveMarkersGroup:e.defaultMarkersGroup},_drawMarker:function(e,t){this._drawMarkerInGroup(this._getMarkerGroup(t),this._getStyle(),e)},_getSettingsForTracker:function(){var e,t,n,i,o=this,a=o.highY,r=o.lowY,u=o._options.rotated;return a===r&&(a=u?a+d:a-d,r=u?r-d:r+d),u?(e=l(r,a),t=o.x-o.width/2,n=s(r-a),i=o.width):(e=o.x-o.width/2,t=l(r,a),n=o.width,i=s(r-a)),{x:e,y:t,width:n,height:i}},_getGraphicBBox:function(){var e=this,t=e._options.rotated,n=e.x,i=e.width,o=e.lowY,a=e.highY;return{x:t?o:n-c(i/2),y:t?n-c(i/2):a,width:t?a-o:i,height:t?i:o-a}},getTooltipParams:function(e){var t=this;if(t.graphic){var n=l(t.lowY,t.highY),i=u(t.lowY,t.highY),o=t._getVisibleArea(),a=t._options.rotated,r=a?o.minX:o.minY,s=a?o.maxX:o.maxY,c=u(r,n),d=l(s,i),h=t.getCenterCoord();return"edge"===e&&(h[a?"x":"y"]=a?d:c),h.offset=0,h}},getCenterCoord:function(){if(this.graphic){var e,t,n=this,i=l(n.lowY,n.highY),o=u(n.lowY,n.highY),a=n._getVisibleArea(),r=n._options.rotated,s=r?a.minX:a.minY,c=r?a.maxX:a.maxY,d=u(s,i),h=l(c,o),p=d+(h-d)/2;return r?(t=n.x,e=p):(e=n.x,t=p),{x:e,y:t}}},hasValue:function(){return null!==this.highValue&&null!==this.lowValue},hasCoords:function(){return null!==this.x&&null!==this.lowY&&null!==this.highY},_translate:function(){var e,t=this,n=t._options.rotated,i=t._getValTranslator(),o=t._getArgTranslator().translate(t.argument);t.vx=t.vy=t.x=null===o?o:o+(t.xCorrection||0),t.openY=null!==t.openValue?i.translate(t.openValue):null,t.highY=i.translate(t.highValue),t.lowY=i.translate(t.lowValue),t.closeY=null!==t.closeValue?i.translate(t.closeValue):null,e=l(t.lowY,t.highY)+s(t.lowY-t.highY)/2,t._calculateVisibility(n?e:t.x,n?t.x:e)},getCrosshairData:function(e,t){var n,i,o=this,a=o._options.rotated,r=a?e:t,l=o.argument,u="low";return s(o.lowY-r)<s(o.closeY-r)?n=o.lowY:(n=o.closeY,u="close"),s(n-r)>=s(o.openY-r)&&(n=o.openY,u="open"),s(n-r)>=s(o.highY-r)&&(n=o.highY,u="high"),i=a?{y:o.vy,x:n,xValue:o[u+"Value"],yValue:l}:{x:o.vx,y:n,xValue:l,yValue:o[u+"Value"]},i.axis=o.series.axis,i},_updateData:function(e){var t=this,n=t._label,i=this._options.reduction.color;t.value=t.initialValue=e.reductionValue,t.originalValue=e.value,t.lowValue=t.originalLowValue=e.lowValue,t.highValue=t.originalHighValue=e.highValue,t.openValue=t.originalOpenValue=e.openValue,t.closeValue=t.originalCloseValue=e.closeValue,t._isPositive=e.openValue<e.closeValue,t._isReduction=e.isReduction,t._isReduction&&n.setColor(i)},_updateMarker:function(e,t,n){var i=this,o=i.graphic;o.attr({points:i._getPoints()}).smartAttr(t).sharp(),n&&o.append(i._getMarkerGroup(n))},_getLabelFormatObject:function(){var e=this;return{openValue:e.openValue,highValue:e.highValue,lowValue:e.lowValue,closeValue:e.closeValue,reductionValue:e.initialValue,argument:e.initialArgument,value:e.initialValue,seriesName:e.series.name,originalOpenValue:e.originalOpenValue,originalCloseValue:e.originalCloseValue,originalLowValue:e.originalLowValue,originalHighValue:e.originalHighValue,originalArgument:e.originalArgument,point:e}},_getFormatObject:function(e){var t=this,n=e.formatValue(t.highValue),a=e.formatValue(t.openValue),r=e.formatValue(t.closeValue),s=e.formatValue(t.lowValue),l=o,u=l._getFormatObject.call(t,e);return i({},u,{valueText:"h: "+n+(""!==a?" o: "+a:"")+(""!==r?" c: "+r:"")+" l: "+s,highValueText:n,openValueText:a,closeValueText:r,lowValueText:s})},getMaxValue:function(){return this.highValue},getMinValue:function(){return this.lowValue}})},function(e,t,n){var i=n(4).noop,o=n(1),a=n(0).extend,r=n(265).BaseThemeManager,s=o.isString,l=o.isDefined,u=n(10).normalizeEnum,c=r.inherit(function(){var e=function(e){var t=this;t.callBase.apply(t,arguments);var n=e.options||{};t._userOptions=n,t._mergeAxisTitleOptions=[],t._multiPieColors={},t._callback=i},t=function(){var e=this;return e.palette&&e.palette.dispose(),e.palette=e._userOptions=e._mergedSettings=e._multiPieColors=null,e.callBase.apply(e,arguments)},n=function(){this.palette.reset(),this._multiPieColors={}},r=function(e){return s(e)?{text:e}:e},c=function(e){return e?(e=a(!0,{},e),e.title=r(e.title),("logarithmic"===e.type&&e.logarithmBase<=0||e.logarithmBase&&!o.isNumeric(e.logarithmBase))&&(e.logarithmBase=void 0,e.logarithmBaseError=!0),e.label&&e.label.alignment&&(e.label.userAlignment=!0),e):{}},d=function(e,t,n){var i=this._theme,o=n^"valueAxis"===e?"verticalAxis":"horizontalAxis",r=c(t,e),s=c(this._userOptions.commonAxisSettings,e),u=a(!0,{},i.commonAxisSettings,i[o],i[e],s,r);return u.workWeek=r.workWeek||i[e].workWeek,u.forceUserTickInterval|=l(r.tickInterval)&&!l(r.axisDivisionFactor),u},h=function(e,t){t=t||this._userOptions[e];var n=this._theme[e],i=this._mergedSettings[e];return i?i:(i=o.isPlainObject(n)&&o.isPlainObject(t)?a(!0,{},n,t):l(t)?t:n,this._mergedSettings[e]=i,i)},p={base:h,argumentAxis:d,valueAxisRangeSelector:function(){return h.call(this,"valueAxis")},valueAxis:d,series:function(e,t,n){var i,o,r,s=this,l=s._theme,c=s._userOptions.commonSeriesSettings||{},d=l.commonSeriesSettings,h=s._themeSection.split(".").slice(-1)[0],g=u(t.type||c.type||d.type||"pie"===h&&l.type),_=s.palette,m=~g.indexOf("bar"),v=~g.indexOf("line"),y=~g.indexOf("area"),x="bubble"===g,b=s.getOptions("resolveLabelsOverlapping"),w=s.getOptions("containerBackgroundColor"),C=p.seriesTemplate.call(this);return(m||x)&&(t=a(!0,{},c,c[g],t),r=t.visible,c={type:{}},a(!0,t,t.point),t.visible=r),i=a(!0,{aggregation:{}},d,d[g],c,c[g],t),i.aggregation.enabled="chart"===h&&f(i.aggregation,s.getOptions("useAggregation")),i.type=g,i.widgetType=h,i.containerBackgroundColor=w,o="pie"!==h?i.color||_.getNextColor(n):function(e,t,n){var i=e+"-"+t;return s._multiPieColors[i]||(s._multiPieColors[i]=_.getNextColor(n)),s._multiPieColors[i]},i.mainSeriesColor=o,i.resolveLabelsOverlapping=b,i.label&&(v||y&&"rangearea"!==g||"scatter"===g)&&(i.label.position="outside"),C&&(i.nameField=C.nameField),i},animation:function(e){var t=this._userOptions[e];return t=o.isPlainObject(t)?t:l(t)?{enabled:!!t}:{},h.call(this,e,t)},seriesTemplate:function(){var e=h.call(this,"seriesTemplate");return e&&(e.nameField=e.nameField||"series"),e},zoomAndPan:function(){function e(e){e=u(e);var t="pan"===e||"both"===e,n="zoom"===e||"both"===e;return{pan:t,zoom:n,none:!t&&!n}}var t=this._userOptions.zoomAndPan;if(!l(t)){var n=u(this.getOptions("zoomingMode")),i=u(this.getOptions("scrollingMode")),o=["all","mouse","touch"].indexOf(n)!==-1,a=["all","mouse","touch"].indexOf(i)!==-1;t={argumentAxis:o&&a?"both":o?"zoom":a?"pan":"none",allowMouseWheel:"all"===n||"mouse"===n,allowTouchGestures:"all"===n||"touch"===n||"all"===i||"touch"===i}}var r=h.call(this,"zoomAndPan",t);return{valueAxis:e(r.valueAxis),argumentAxis:e(r.argumentAxis),dragToZoom:!!r.dragToZoom,dragBoxStyle:{"class":"dxc-shutter",fill:r.dragBoxStyle.color,opacity:r.dragBoxStyle.opacity},panKey:r.panKey,allowMouseWheel:!!r.allowMouseWheel,allowTouchGestures:!!r.allowTouchGestures}}},f=function(e,t){return!!(l(e.enabled)?e.enabled:t)};return{_themeSection:"chart",ctor:e,dispose:t,resetPalette:n,getOptions:function(e){return(p[e]||p.base).apply(this,arguments)},refresh:function(){return this._mergedSettings={},this.callBase.apply(this,arguments)},_initializeTheme:function(){var e=this;e.callBase.apply(e,arguments),e.updatePalette()},resetOptions:function(e){this._mergedSettings[e]=null},update:function(e){this._userOptions=e},updatePalette:function(){var e=this;e.palette=e.createPalette(e.getOptions("palette"),{useHighlight:!0,extensionMode:e.getOptions("paletteExtensionMode")})}}}());t.ThemeManager=c},function(e,t,n){function i(e,t,n){var i;return i=n<e?e:t<n?t:n}function o(e){if(e._label.isVisible()&&"inside"!==e._label.getLayoutOptions().position)return e._label.getBoundingRect()}function a(e,t,n,a,r){return e.some(function(e){return e.getVisiblePoints().reduce(function(e,s){var u=o(s);if(u){var c=i(u.x,u.x+u.width,t),d=i(u.y,u.y+u.height,n);a=x(b(l(c,d,t,n)-S,r),a),e=!0}return e},!1)}),a}function r(e){return e.reduce(function(e,t){var n=t.getVisiblePoints().reduce(function(e,t){var n=o(t);return n&&n.width>e&&(e=n.width),e},0),i=n;return n&&(e.outerLabelsCount++,e.outerLabelsCount>1&&(n+=k.pieLabelSpacing),i+=k.pieLabelSpacing),e.sizes.push(n),e.rSizes.push(i),e.common+=n,e},{sizes:[],rSizes:[],common:0,outerLabelsCount:0})}function s(e,t,n,i,o,a){var r,s,l=0,u=e.sizes,c=e.rSizes;for(s=0;s<n.length;s++)0!==u[s]?(r=w(r?r+c[s-1]:t),n[s].correctLabelRadius(r),l+=o||u[s],c[s]=o||c[s],n[s].setVisibleArea({left:w(a-t-l),right:w(i.width-(a+t+l)),top:i.top,bottom:i.bottom,width:i.width,height:i.height})):r&&(r+=c[s-1])}function l(e,t,n,i){return C((e-n)*(e-n)+(t-i)*(t-i))}function u(e){var t;return"pie"===e.type?t=0:(t=y(e.innerRadius)?Number(e.innerRadius):.5,t=t<.2?.2:t,t=t>.8?.8:t),t}function c(e,t){e[t.cutLayoutSide]+="horizontal"===t.cutSide?t.width:t.height}function d(e,t){var n=e.cutLayoutSide,i={horizontal:0,vertical:0};switch(n){case"top":case"left":i[e.cutSide]=-t[n];break;case"bottom":case"right":i[e.cutSide]=t[n]}return i}function h(){}function p(e){return new v.WrapperLayoutElement(null,{x:e.left,y:e.top,width:e.width-e.left-e.right,height:e.height-e.top-e.bottom})}function f(e,t,n,i){return(e-t-S-n.left)/i.outerLabelsCount}function g(e,t,n){return e-t.left-(n.outerLabelsCount>0?n.common+S:0)}function _(e,t,n,i,o,l){var u,c=r(n),d=g(o,t,c);return d<i?(e=i,u=f(o,e,t,c)):e=x(a(n,o,l,e,i),d),s(c,e+S,n,t,u,o),e}var m=n(0).extend,v=n(266),y=n(1).isNumeric,x=Math.min,b=Math.max,w=Math.floor,C=Math.sqrt,k=n(120),S=k.radialLabelIndent,I={left:"right",right:"left",top:"bottom",bottom:"top",center:"center"};h.prototype={constructor:h,setOptions:function(e){this._options=e},applyPieChartSeriesLayout:function(e,t,n){var i,o,a=e.height-e.top-e.bottom,r=e.width-e.left-e.right,s=r/2+e.left,l=a/2+e.top,c=this._options.piePercentage;return y(c)?i=o=c*x(e.height,e.width)/2:(i=x(r,a)/2,o=this._options.minPiePercentage*i),n||(i=_(i,e,t,o,s,l)),{centerX:w(s),centerY:w(l),radiusInner:w(i*u(t[0])),radiusOuter:w(i)}},applyEqualPieChartLayout:function(e,t){var n=t.radius;return{centerX:w(t.x),centerY:w(t.y),radiusInner:w(n*u(e[0])),radiusOuter:w(n)}},correctPieLabelRadius:function(e,t,n){var i,o=r(e),a=t.radiusOuter+S,l=t.centerX-n.left-a;o.common+S>l&&(i=f(t.centerX,t.radiusOuter,n,o)),s(o,a,e,n,i,t.centerX)},needMoreSpaceForPanesCanvas:function(e,t){var n=this._options,i=n.width,o=n.height,a=n.piePercentage,r=y(a),s=0,l=0;return e.forEach(function(e){var n=e.canvas,u=r?x(n.width,n.height)*a:void 0,c=(r?u:i)-(n.width-n.left-n.right),d=(r?u:o)-(n.height-n.top-n.bottom);t?(s+=c>0?c:0,l=b(d>0?d:0,l)):(s=b(c>0?c:0,s),l+=d>0?d:0)}),(s>0||l>0)&&{width:s,height:l}},layoutElements:function(e,t,n,i,o){this._elements=e,this._probeDrawing(t),this._drawElements(t),n(),this._processAdaptiveLayout(i,o,t,n),this._positionElements(t)},_processAdaptiveLayout:function(e,t,n,i){function o(e,t,i){e.getLayoutOptions()[i]||(n[t.cutLayoutSide]-=t[i],r[i]=r[i]-t[i])}var a=this,r=a.needMoreSpaceForPanesCanvas(e,t),s=this._elements;r&&(s.slice().reverse().forEach(function(e){var t,i,a=e.getLayoutOptions(),s=!1;if(a){if(t=m({},a),s="vertical"===a.cutSide&&r.width<0||"horizontal"===a.cutSide&&r.height<0||"vertical"===a.cutSide&&r.height>0||"horizontal"===a.cutSide&&r.width>0,i="horizontal"===a.cutSide?"width":"height",s){var l=t.width-r.width,u=t.height-r.height;"height"===i&&r.width<0&&(l=n.width-n.left-n.right),"width"===i&&r.height<0&&(u=n.height-n.top-n.bottom),e.draw(l,u)}o(e,a,i)}}),i(r))},_probeDrawing:function(e){var t=this;this._elements.forEach(function(n){var i,o=n.getLayoutOptions();o&&(i={width:e.width-e.left-e.right,height:e.height-e.top-e.bottom},"vertical"===o.cutSide?i.height-=t._options.height:i.width-=t._options.width,n.probeDraw(i.width,i.height),c(e,n.getLayoutOptions()))})},_drawElements:function(e){this._elements.slice().reverse().forEach(function(t){var n,i,o,a=t.getLayoutOptions();a&&(n={width:e.width-e.left-e.right,height:e.height-e.top-e.bottom},i=a.cutSide,o="horizontal"===i?"width":"height",n[o]=a[o],t.draw(n.width,n.height))})},_positionElements:function(e){var t={left:0,right:0,top:0,bottom:0};this._elements.slice().reverse().forEach(function(n){var i,o,a,r=n.getLayoutOptions();r&&(i=r.position,o=r.cutSide,a={horizontal:i.horizontal,vertical:i.vertical},a[o]=I[a[o]],n.position({of:p(e),my:a,at:i,offset:d(r,t)}),t[r.cutLayoutSide]+=r["horizontal"===r.cutSide?"width":"height"])})}},t.LayoutManager=h},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,n){return"a "+e+" "+e+" 0 0 1 "+t*e+" "+n*e}function a(e,t,n){return"A "+e+" "+e+" 0 0 1 "+t+" "+n}function r(e,t,n,i,o){return(e-i)*g(y(n))+(t-o)*g(v(n))+i}function s(e,t,n,i,o){return-(e-i)*g(v(n))+(t-o)*g(y(n))+o}function l(e,t){return t%90===0&&t%180!==0?{width:e.height,height:e.width}:e}function u(e,t,n,i,o){var a=e.width,r=e.height,s=a/2,l=r/2,u=Math.ceil(t+s),c=Math.floor(t-s),d=Math.floor(n-l),h=Math.ceil(n+l);return i<c&&o<d||i>=c&&i<=u&&o<d?270:i>u&&o>h||i>=c&&i<=u&&o>h?90:i<c&&o>h||i<c&&o>=d&&o<=h?180:0}function c(e,t,n,i,r,s,l){var u=e.width,c=e.height,d=s.arrowWidth,h=s.cornerRadius,p=void 0===h?0:h,f=d/2,g=u/2,C=c/2,k=Math.ceil(t+g),S=Math.floor(t-g),I=Math.floor(n-C),T=Math.ceil(n+C),D=[S,I],E=[k,I],A=[k,T],O=[S,T],B=i<=S?S:k<=i?k:i,P=r<=I?I:T<=r?T:r,M=m(P+f,T),R=_(P-f,I),V=_(B-f,S);p=Math.min(u/2,c/2,p);var F=void 0;if(D[1]+=p,E[0]-=p,A[1]-=p,O[0]+=p,!l||S<=i&&i<=k&&I<=r&&r<=T)F=w(D,o(p,1,-1),"L",E,o(p,1,1),"L",A,o(p,-1,1),"L",O,o(p,-1,-1));else if(i>k&&r<I){var L=d/p||0,H=b/4+L/2,z=b/4-L/2,N=E[0]+y(z)*p,$=E[1]+(1-v(z))*p,W=w("L",E,o(p,y(H),1-v(H)),"L",[i,r,N,$],a(p,E[0]+p,E[1]+p));Math.abs(H)>b/2&&(W=w("L",[V,I,i,r,k,M])),F=w(D,o(p,1,-1),W,"L",A,o(p,-1,1),"L",O,o(p,-1,-1))}else if(i>k&&r>=I&&r<=T){var G=void 0;if(R>=E[1]+p&&M<=A[1])G=w(o(p,1,1),"L",[k,R,i,r,k,M],"L",A,o(p,-1,1));else if(R<E[1]+p&&M>=E[1]+p&&M<=A[1]){var j=E[1]+p-R,q=j/p,K=E[0]+y(q)*p,U=E[1]+(1-v(q))*p;G=w(o(p,y(q),1-v(q)),"L",[K,U,i,r,k,M],"L",A,o(p,-1,1))}else if(R<E[1]+p&&M<E[1]+p){var Y=E[1]+p-R,X=Y/p,Z=X,Q=E[0]+y(Z)*p,J=E[1]+(1-v(Z))*p,ee=Math.sin((E[1]+p-M)/p),te=E[0]+p*y(ee),ne=E[1]+p*(1-v(ee));G=w(o(p,y(Z),1-v(Z)),"L",[Q,J,i,r,te,ne],a(p,E[0]+p,E[1]+p),"L",A,o(p,-1,1))}else if(R<=E[1]+p&&M>=A[1]){var ie=x((E[1]+p-R)/p),oe=E[0]+p*y(ie),ae=E[1]+p*(1-v(ie)),re=x((M-A[1])/p),se=A[0]+p*(y(re)-1),le=A[1]+p*v(re);G=w(o(p,y(ie),1-v(ie)),"L",[oe,ae,i,r,se,le],a(p,A[0]-p,A[1]+p))}else if(R>E[1]+p&&R<=A[1]&&M>A[1]){var ue=x((M-A[1])/p),ce=A[0]+p*(y(ue)-1),de=A[1]+p*v(ue);G=w(o(p,1,1),"L",[k,R,i,r,ce,de],a(p,A[0]-p,A[1]+p))}else if(R>E[1]+p&&M>A[1]){var he=x((M-A[1])/p),pe=A[0]+p*(y(he)-1),fe=A[1]+p*v(he),ge=x((R-A[1])/p),_e=A[0]+p*(y(ge)-1),me=A[1]+p*v(ge);G=w(o(p,1,1),"L",A,o(p,y(ge)-1,v(ge)),"L",[_e,me,i,r,pe,fe],a(p,A[0]-p,A[1]+p))}F=w(D,o(p,1,-1),"L",E,G,"L",O,o(p,-1,-1))}return w("M",F,"Z")}Object.defineProperty(t,"__esModule",{value:!0}),t.Plaque=void 0;var d=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),h=n(0),p=n(1),f=Math,g=f.round,_=f.max,m=f.min,v=f.sin,y=f.cos,x=f.asin,b=f.PI,w=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.join("")};t.Plaque=function(){function e(t,n,o,a){var r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(e,t){return t.getBBox()},l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(e,t,n,i){return t.move(n,i)};i(this,e),this.widget=n,this.options=t,this.root=o,this.renderContent=a,this.bonded=r,this.measureContent=s,this.moveContentGroup=l}return d(e,[{key:"draw",value:function(e){var t=e.x,n=e.y,i=e.canvas,o=void 0===i?{}:i,a=e.offsetX,r=e.offsetY,s=e.offset,l=void 0===s?0:s,u=this.options,c=u.x,d=u.y,f={xl:o.left,xr:o.width-o.right,width:o.width-o.right-o.left,yt:o.top,yb:o.height-o.bottom,height:o.height-o.bottom-o.top};if(((0,p.isDefined)(t)&&(0,p.isDefined)(n)||(0,p.isDefined)(c)&&(0,p.isDefined)(d))&&(!(0,p.isDefined)(t)||!(t<f.xl||f.xr<t||n<f.yt||f.yb<n))){this._root||this._draw();var v=(0,h.extend)({x:"-50%",y:"-50%",width:"200%",height:"200%"},u.shadow),y=u.width>0?u.width:null,x=u.height>0?u.height:null;this.renderContent(this.widget,this._contentGroup,{width:y,height:x});var b=this._contentBBox=this.measureContent(this.widget,this._contentGroup),w=this._size={width:_(y,b.width)+2*u.paddingLeftRight,height:_(x,b.height)+2*u.paddingTopBottom,offset:l},C=v.offsetX,k=v.offsetY,S=2*v.blur+1,I=_(S-C,0),T=_(S+C,0),D=_(S-k,0),E=_(S+k,0);if(this.margins={lm:I,rm:T,tm:D,bm:E},(0,p.isDefined)(c)?(c+=a||0,(0,p.isDefined)(t)||(t=c)):c=(0,p.isDefined)(a)?t+a:f.width<w.width?g(f.xl+f.width/2):m(_(t,Math.ceil(f.xl+w.width/2+I)),Math.floor(f.xr-w.width/2-T)),(0,p.isDefined)(d))d+=r||0,(0,p.isDefined)(n)||(n=d+w.height/2);else if((0,p.isDefined)(r))d=n+r;else{var A=n-u.arrowLength-w.height/2-l,O=n+u.arrowLength+w.height/2+l;f.height<w.height+u.arrowLength?d=g(f.yt+w.height/2):A-w.height/2-D<f.yt?O+w.height/2+E<f.yb?(d=O,n+=l):d=g(f.yt+w.height/2):(d=A,n-=l)}this.anchorX=t,this.anchorY=n,this.move(c,d)}}},{key:"_draw",value:function(){var e=this.widget._renderer,t=this.options,n={opacity:t.opacity,"stroke-width":0,fill:t.color},i=t.border||{};i.visible&&(0,h.extend)(n,{"stroke-width":i.width,stroke:i.color,"stroke-opacity":i.opacity,dashStyle:i.dashStyle});var o=(0,h.extend)({x:"-50%",y:"-50%",width:"200%",height:"200%"},t.shadow),a=this._shadow=e.shadowFilter().attr(o),r=this._root=e.g().append(this.root);t.type&&r.attr({"class":"dxc-"+t.type+"-annotation"});var s=e.g().attr({filter:a.id}).append(r);this._cloud=e.path([],"area").attr(n).sharp().append(s),this._contentGroup=e.g().append(r)}},{key:"getBBox",value:function(){var e=this._size||{},t=this.margins||{},n=u(e,this.x,this.y,this.anchorX,this.anchorY);return{x:Math.floor(this.x-e.width/2-t.lm),y:Math.floor(this.y-e.height/2-t.tm-(270===n?this.options.arrowLength:0)),width:e.width+t.lm+t.rm,height:e.height+t.tm+t.bm+(90===n||270===n?this.options.arrowLength:0)}}},{key:"clear",value:function(){return this._root&&(this._root.remove(),this._shadow.remove(),this._root=null),this}},{key:"customizeCloud",
64value:function(e){this._cloud&&this._cloud.attr(e)}},{key:"moveRoot",value:function(e,t){this._root&&this._root.move(e,t)}},{key:"move",value:function(e,t){e=g(e),t=g(t),this.x=e,this.y=t;var n=u(this._size,e,t,this.anchorX,this.anchorY),i=n*b/180;this._cloud.attr({d:c(l(this._size,n),e,t,r(this.anchorX,this.anchorY,i,e,t),s(this.anchorX,this.anchorY,i,e,t),this.options,this.bonded)}).rotate(n,e,t),this.moveContentGroup(this.widget,this._contentGroup,e-this._contentBBox.x-this._contentBBox.width/2,t-this._contentBBox.y-this._contentBBox.height/2)}},{key:"hitTest",value:function(e,t){var n=this._size||{},i=n.width,o=n.height;return Math.abs(e-this.x)<=i/2&&Math.abs(t-this.y)<=o/2}}]),e}()},function(e,t,n){function i(e){return g(e)?0===e.length?[{}]:e:[e]}function o(e,t){return e.processBubbleSize&&(e.size=t),e}function a(e,t,n,i){var o=i?e.width/t:e.width,a=i?e.height:e.height/t;return Math.min(o,a)*n}var r=n(0).extend,s=n(13).inArray,l=n(3),u=n(109),c="defaultAxisName",d=n(272),h=n(409),p=n(264).BaseChart,f=n(410),g=Array.isArray,_=n(1).isDefined,m=l.each,v=l.reverseEach,y=n(4).noop,x=r,b=n(10),w=b.map,C=b.mergeMarginOptions,k="font",S="commonAxisSettings",I=p.inherit({_setDeprecatedOptions:function(){this.callBase.apply(this,arguments),x(this._deprecatedOptions,{barWidth:{since:"18.1",message:"Use the 'commonSeriesSettings.barPadding' or 'series.barPadding' option instead"},equalBarWidth:{since:"18.1",message:"Use the 'commonSeriesSettings.ignoreEmptyPoints' or 'series.ignoreEmptyPoints' option instead"}})},_fontFields:[S+".label."+k,S+".title."+k],_dispose:function(){var e=this,t=this._disposeObjectsInArray;e.callBase(),e.panes=null,e._legend&&(e._legend.dispose(),e._legend=null),t.call(e,"panesBackground"),t.call(e,"seriesFamilies"),e._disposeAxes()},_reinitAxes:function(){this.panes=this._createPanes(),this._populateAxes(),this._axesReinitialized=!0},_getCrosshairMargins:function(){var e=this._getCrosshairOptions()||{},t=e.enabled,n=f.getMargins();return{x:t&&e.horizontalLine.visible?n.x:0,y:t&&e.verticalLine.visible?n.y:0}},_populateAxes:function(){function e(){return c+p++}var t=this,n=t.panes,o=t._isRotated(),a=i(t.option("argumentAxis")||{})[0],r=t.option("valueAxis"),l=i(r||{}),u=[],d=[],h=[],p=0,f=void 0,_=t._getCrosshairMargins();f=o?"right"===a.position?n[n.length-1].name:n[0].name:"top"===a.position?n[0].name:n[n.length-1].name,u=w(n,function(e){var n=e.name!==f;return t._populateAxesOptions("argumentAxis",a,{pane:e.name,name:null,optionPath:"argumentAxis",crosshairMargin:o?_.x:_.y},o,n)}),m(l,function(n,i){var a=[],l=i.name;return l&&s(l,h)!==-1?void t._incidentOccurred("E2102"):(l&&h.push(l),i.pane&&a.push(i.pane),i.panes&&i.panes.length&&(a=a.concat(i.panes.slice(0))),a=b.unique(a),a.length||a.push(void 0),void m(a,function(a,s){var u=g(r)?"valueAxis["+n+"]":"valueAxis";d.push(t._populateAxesOptions("valueAxis",i,{name:l||e(),pane:s,priority:n,optionPath:u,crosshairMargin:o?_.y:_.x},o))}))}),t._redesignAxes(u,!0,f),t._redesignAxes(d,!1)},_redesignAxes:function(e,t,n){var i=this,o=[],a=t?i._argumentAxes:i._valueAxes;m(e,function(e,t){var n=a&&a.filter(function(e){return e.name===t.name&&(!_(t.pane)&&i.panes.some(function(t){return t.name===e.pane})||e.pane===t.pane)});n&&n.length>0?m(n,function(e,n){n.updateOptions(t),o.push({axis:n})}):o.push({options:t})}),a?v(a,function(e,n){o.some(function(e){return e.axis&&e.axis===n})||i._disposeAxis(e,t)}):a=t?i._argumentAxes=[]:i._valueAxes=[],m(o,function(e,o){var r=o.axis;o.axis&&t?o.axis.isVirtual=o.axis.pane!==n:o.options&&(r=i._createAxis(t,o.options,t?o.options.pane!==n:void 0,t?e:void 0),a.push(r)),r.applyVisualRangeSetter(i._getVisualRangeSetter())})},_disposeAxis:function(e,t){var n=t?this._argumentAxes:this._valueAxes,i=n[e];i&&(i.dispose(),n.splice(e,1))},_prepareStackPoints:function(e,t){var n=e.getPoints(),i=e.getStackName();m(n,function(e,n){var o=n.argument;t[o]||(t[o]={},t[o][null]=[]),i&&!g(t[o][i])&&(t[o][i]=[],m(t[o][null],function(e,n){n.stackName||t[o][i].push(n)})),i?(t[o][i].push(n),t[o][null].push(n)):m(t[o],function(e,t){t.push(n)}),n.stackPoints=t[o][i],n.stackName=i})},_resetStackPoints:function(e){m(e.getPoints(),function(e,t){t.stackPoints=null,t.stackName=null})},_disposeAxes:function(){var e=this,t=e._disposeObjectsInArray;t.call(e,"_argumentAxes"),t.call(e,"_valueAxes")},_appendAdditionalSeriesGroups:function(){this._crosshairCursorGroup.linkAppend(),this._scrollBar&&this._scrollBarGroup.linkAppend()},_getLegendTargets:function(){var e=this;return(this.series||[]).map(function(t){var n=e._getLegendOptions(t);return n.legendData.series=t,t.getOptions().showInLegend||(n.legendData.visible=!1),n})},_legendItemTextField:"name",_seriesPopulatedHandlerCore:function(){this._processSeriesFamilies(),this._processValueAxisFormat()},_renderTrackers:function(){var e,t=this;for(e=0;e<t.series.length;++e)t.series[e].drawTrackers()},_specialProcessSeries:function(){this._processSeriesFamilies()},_processSeriesFamilies:function(){var e,t=this,n=[],i=[],o=t._themeManager,a=o.getOptions("negativesAsZeroes"),r=o.getOptions("negativesAsZeros"),l={equalBarWidth:o.getOptions("equalBarWidth"),minBubbleSize:o.getOptions("minBubbleSize"),maxBubbleSize:o.getOptions("maxBubbleSize"),barWidth:o.getOptions("barWidth"),barGroupPadding:o.getOptions("barGroupPadding"),barGroupWidth:o.getOptions("barGroupWidth"),negativesAsZeroes:_(a)?a:r};return t.seriesFamilies&&t.seriesFamilies.length?void m(t.seriesFamilies,function(e,t){t.updateOptions(l),t.adjustSeriesValues()}):(m(t.series,function(e,t){s(t.type,n)===-1&&n.push(t.type)}),m(t._getLayoutTargets(),function(o,a){e=t._getSeriesForPane(a.name),m(n,function(n,o){var r=new h.SeriesFamily({type:o,pane:a.name,equalBarWidth:l.equalBarWidth,minBubbleSize:l.minBubbleSize,maxBubbleSize:l.maxBubbleSize,barWidth:l.barWidth,barGroupPadding:l.barGroupPadding,barGroupWidth:l.barGroupWidth,negativesAsZeroes:l.negativesAsZeroes,rotated:t._isRotated()});r.add(e),r.adjustSeriesValues(),i.push(r)})}),void(t.seriesFamilies=i))},_updateSeriesDimensions:function(){var e,t=this,n=t.seriesFamilies||[];for(e=0;e<n.length;e++){var i=n[e];i.updateSeriesValues(),i.adjustSeriesDimensions()}},_getLegendCallBack:function(e){return this._legend&&this._legend.getActionCallback(e)},_appendAxesGroups:function(){var e=this;e._stripsGroup.linkAppend(),e._gridGroup.linkAppend(),e._axesGroup.linkAppend(),e._constantLinesGroup.linkAppend(),e._labelAxesGroup.linkAppend(),e._scaleBreaksGroup.linkAppend()},_populateMarginOptions:function(){var e=this,t=a(e.getSize(),e.panes.length,e._themeManager.getOptions("maxBubbleSize"),e._isRotated()),n={};e._valueAxes.forEach(function(i){var a=e.series.filter(function(e){return e.getValueAxis()===i}),r={};a.forEach(function(e){if(e.isVisible()){var i=o(e.getMarginOptions(),t);r=C(r,i),n=C(n,i)}}),i.setMarginOptions(r)}),e._argumentAxes.forEach(function(e){return e.setMarginOptions(n)})},_populateBusinessRange:function(e){var t=this,n=t._isRotated(),i=new u.Range({rotated:!!n}),o=t._getVisibleSeries();t._valueAxes.forEach(function(a){var r=new u.Range({rotated:!!n,pane:a.pane,axis:a.name}),s=o.filter(function(e){return e.getValueAxis()===a});s.forEach(function(e){var t=e.getRangeData();r.addRange(t.val),i.addRange(t.arg)}),(!e||e&&s.length&&a===e)&&(a.setGroupSeries(s),a.setBusinessRange(r,t._axesReinitialized,t._argumentAxes[0]._lastVisualRangeUpdateMode))}),(!e||e&&o.length)&&t._argumentAxes.forEach(function(e){return e.setBusinessRange(i,t._axesReinitialized)}),t._populateMarginOptions()},getArgumentAxis:function(){return(this._argumentAxes||[]).filter(function(e){return!e.isVirtual})[0]},getValueAxis:function(e){var t=this;return(this._valueAxes||[]).filter(_(e)?function(t){return t.name===e}:function(e){return e.pane===t.defaultPane})[0]},_getGroupsData:function(){var e=this,t=[];return e._valueAxes.forEach(function(n){t.push({series:e.series.filter(function(e){return e.getValueAxis()===n}),valueAxis:n,valueOptions:n.getOptions()})}),{groups:t,argumentAxes:e._argumentAxes,argumentOptions:e._argumentAxes[0].getOptions()}},_groupSeries:function(){var e=this;e._correctValueAxes(!1),e._groupsData=e._getGroupsData()},_processValueAxisFormat:function(){var e=[];this.series.forEach(function(t){var n=t.getValueAxis();t.isFullStackedSeries()&&(n.setPercentLabelFormat(),e.push(n))}),this._valueAxes.forEach(function(t){e.indexOf(t)===-1&&t.resetAutoLabelFormat()})},_populateAxesOptions:function(e,t,n,i,o){var a=this,r=a._prepareStripsAndConstantLines(e,t,i),s=x(!0,{},r,n,a._prepareAxisOptions(e,r,i));return o&&(s.visible=s.tick.visible=s.minorTick.visible=s.label.visible=!1,s.title={}),s},_createAxis:function(e,t,n,i){var o=this,a=e?"argumentAxis":"valueAxis",r=x({renderer:o._renderer,incidentOccurred:o._incidentOccurred,eventTrigger:o._eventTrigger,axisClass:e?"arg":"val",widgetClass:"dxc",stripsGroup:o._stripsGroup,labelAxesGroup:o._labelAxesGroup,constantLinesGroup:o._constantLinesGroup,scaleBreaksGroup:o._scaleBreaksGroup,axesContainerGroup:o._axesGroup,gridGroup:o._gridGroup,isArgumentAxis:e},o._getAxisRenderingOptions(a)),s=new d.Axis(r);return s.updateOptions(t),s.isVirtual=n,s},_getVisualRangeSetter:y,_getTrackerSettings:function(){return x(this.callBase(),{argumentAxis:this.getArgumentAxis()})},_prepareStripsAndConstantLines:function(e,t,n){return t=this._themeManager.getOptions(e,t,n),t.strips&&m(t.strips,function(e){t.strips[e]=x(!0,{},t.stripStyle,t.strips[e])}),t.constantLines&&m(t.constantLines,function(e,n){t.constantLines[e]=x(!0,{},t.constantLineStyle,n)}),t},_legendDataField:"series",_adjustSeriesLabels:y,_correctValueAxes:y,refresh:function(){this._disposeAxes(),this.callBase()},_layoutAxes:function(e){var t=this,n=e(),i=t.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),this._isRotated());if(i){var o=this._layout.backward(this._rect,this._rect,[i.width,i.height]);i.width=Math.max(0,o[0]),i.height=Math.max(0,o[1]),this._canvas=this._createCanvasFromRect(this._rect),e(i,n)}},_notify:function(){this._axesReinitialized=!1}});t.AdvancedChart=I},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,i){var o,l,u,c,d,h,p=A.length;if("week"===i?i="day":"quarter"===i?i="month":"shorttime"===i?i="hour":"longtime"===i&&(i="second"),c=A.indexOf(i),n){if(l=w.default.getDatesDifferences(t,n),o=w.default.getDatesDifferences(t,e),l[i])for(d=p-1;d>=c;d--)if(u=A[d],d===c)s(l,c+(l.millisecond?2:1));else if(l[u]){r(l,d);break}}else for(o=w.default.getDatesDifferences(e,t),d=p-1;d>=c;d--)if(u=A[d],o[u]){if(d-c>1){for(h=c+1;h>=0;h--)r(o,h);break}if(a(t,u)){for(h=d-1;h>0;h--)r(o,h);break}}return n?l:o}function a(e,t){var n,i=[e.getMilliseconds(),e.getSeconds(),e.getMinutes(),e.getHours(),e.getDate(),e.getMonth()],o=A.indexOf(t);for(n=0;n<o;n++)if(4===n&&1!==i[n]||4!==n&&0!==i[n])return!1;return!0}function r(e,t){var n=A[t];e[n]&&(e[n]=!1,e.count--)}function s(e,t){var n=A[t];e[n]===!1&&(e[n]=!0,e.count++)}function l(e){return e.length-parseInt(e).toString().length}function u(e,t){var n,i,o,a=0;for(o=T(t-e[0]),n=1;n<e.length;n++)i=T(t-e[n]),i<o&&(o=i,a=n);return a}function c(e){return e.toString().split(".")}function d(e){var t=void 0;return(0,x.isFunction)(e)&&(t=e,e=null),{type:e,formatter:t}}function h(e,t){var n,i,a,r,s,h,p,f,g,_=t.tickInterval,m=T(e).toString(),v=0,b=0,A=0,O=-1,B=t.labelOptions.format,P=t.ticks,M="logarithmic"===t.type;return 1!==P.length||0!==P.indexOf(e)||(0,x.isDefined)(_)||(_=T(e)>=1?1:(0,C.adjust)(1-T(e),e)),(0,x.isDefined)(B)||"discrete"===t.type||!e||10!==t.logarithmBase&&M||("datetime"!==t.dataType&&(0,x.isDefined)(_)?(P.length&&P.indexOf(e)===-1&&(O=u(P,e),_=(0,C.adjust)(T(e-P[O]),e)),s=c(_),s<2&&(s=c(e)),M?(p=(0,k.getAdjustedLog10)(T(e)),p>0?r=E[I(p/3)]||D:p<-4?r=D:v=void 0):s.length>1&&!(0,x.isExponential)(_)?(v=s[1].length,r=E[A]):(0,x.isExponential)(_)&&(m.indexOf(".")!==-1||(0,x.isExponential)(e))?(r=D,v=(0,x.isExponential)(e)?Math.max(T((0,C.getExponent)(e)-(0,C.getExponent)(_)),T((0,C.getPrecision)(e)-(0,C.getPrecision)(_))):T(l(m.split(".")[1])-(0,C.getExponent)(_)+1)):(n=I((0,k.getAdjustedLog10)(_)),a=i=I((0,k.getAdjustedLog10)(T(e))),i-n>=2&&(a=n),A=I(a/3),b=3*A,A<5?(n-b===2&&i>=3&&(A++,b=3*A),r=E[A]):r=E[E.length-1],b>0&&(s=c(_/Math.pow(10,b)),s[1]&&(v=s[1].length))),void 0===r&&void 0===v||(B={type:r,precision:v})):"datetime"===t.dataType&&(r=w.default.getDateFormatByTickInterval(_),t.showTransition&&P.length&&(O=P.map(Number).indexOf(+e),1===P.length&&0===O?r=y.default.getDateFormatByTicks(P):(O===-1?f=u(P,e):(f=0===O?P.length-1:O-1,g=0===O?1:-1),h=o(P[f],e,P[g],r),r=y.default.getDateFormatByDifferences(h,r))),B=d(r))),S(e,B)}function p(e){var t=!1;for(var n in e)e[n]===!0||"hour"===n||t?(e[n]=!1,t=!0):e[n]===!1&&(e[n]=!0);return d(y.default.getDateFormatByDifferences(e))}function f(e,t){var n=!1;for(var i in e)n?e[i]=!1:i===t?n=!0:e[i]=!0;return d(y.default.getDateFormatByDifferences(e))}function g(e,t,n){var i=o(e,t),a=w.default.getDateFormatByTickInterval(n),r=y.default.getDateFormatByDifferences(i,a),s=d(r),l=[];if(n in i){var u=f(o(e,t),n),c=S(e,u);c&&l.push(c)}else{var h=p(o(e,t)),g=S(e,h);g&&l.push(g),l.push(S(e,s)+" - "+S(t,s))}return l.join(", ")}function _(e){if((0,x.isObject)(e)){var t=Object.keys(e),n=t.reduce(function(t,n){return e[n]+t},0);if(1===n){var i=t.filter(function(t){return 1===e[t]})[0];return i.slice(0,i.length-1)}}return e}function m(e,t,n,i){var o=i.dataType,a=i.type,r=i.logarithmBase;if("discrete"===a)return"";if("datetime"===o)return g(e,t,_(n));var s={ticks:[],type:a,dataType:o,tickInterval:n,logarithmBase:r,labelOptions:{}};return h(e,s)+" - "+h(t,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.smartFormatter=h,t.formatRange=m;var v=n(63),y=i(v),x=n(1),b=n(22),w=i(b),C=n(29),k=n(10),S=y.default.format,I=Math.floor,T=Math.abs,D="exponential",E=["fixedPoint","thousands","millions","billions","trillions",D],A=["millisecond","second","minute","hour","day","month","year"]},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return function(t,n,i,o){var a=ee(n/e.axisDivisionFactor);a=a<1?1:a;var r=n/a;return{ticks:r>0?Array.apply(null,new Array(a+1)).map(function(e,t){return r*t}):[],tickInterval:r}}}function a(e){return function(t,n,i,o){var a=(0,G.getCategoriesInfo)(t.categories,t.min,t.max).categories;return{ticks:a,tickInterval:te(a.length*e.axisDivisionFactor/n)}}}function r(e,t,n,i){return(0,K.isDefined)(i)?i?e:t:function(i,o,a,r){var s=e(i,o);return i-s===0||!(0,K.isDefined)(a)||n(i,s,o,a)||r?s:t(i,o)}}function s(e,t,n,i){var o=n-J(t-e),a=Q.max(te(i.businessDelta/n),2),r=i.screenDelta/(a*n),s=Q.round(r*o),l=(0,G.getLog)(r*n/i.axisDivisionFactor,2)+1,u=(i.isSpacedMargin?2:1)*l,c=Q.round(ue*u);return i.businessDelta>i.interval&&s>=c}function l(e){return function(t,n,i,o){return s((0,G.getLog)(t,e),(0,G.getLog)(n,e),i,o)}}function u(e,t,n,i){return s(e.valueOf(),t.valueOf(),Z(n),i)}function c(e,t,n,i,o){var a=i.screenDelta/i.businessDelta,r=o?1:-1,s=o?-1:1;return e&&a*(t*r+n*s)<ue}function d(e){return function(t,n,i,o,a){return c(t,(0,G.getLog)(n,e),(0,G.getLog)(i,e),o,a)}}function h(e,t,n,i,o){return c(e,t.valueOf(),n.valueOf(),i,o)}function p(e,t){var n=0;return t&&(n=t.reduce(function(e,t){return e+(t.to-t.from)},0)),J(e.max-e.min-n)}function f(e){var t=he(e);return function(e,n){var i=0;return n&&(i=n.reduce(function(e,n){return e+J(t(n.to/n.from))},0)),te(J(t(e.max/e.min))-i)}}function g(e,t,n,i){var o=t/n-(i||0);return o=o<1?1:o,e/o}function _(e,t){return ne(10,ee((0,G.getLog)(e,10))+(t||0))}function m(e,t,n,i,o,a,r,s,l,u){var c=g(e,t,o,s),d=1,h=r===!1;return i&&n||((c>=1||!h&&c>0)&&(d=v(c,a,h)),(!n||!i&&n<d)&&(n=d)),!i&&u&&(u=v(u,a,h),u>n&&(n=u)),n}function v(e,t,n){var i=_(e,-1),o=1;return t=t||ie,e>0&&(e/=i,o=t.concat(10*t[0]).map(function(e){return 10*e}).reduce(function(t,o){return.1===i&&n&&25===o?t:t<e?o:t},0),o=(0,U.adjust)(o*i,i)),o}function y(e,t,n,i){var o=g(e,t,i);return n||le.reduce(function(t,n){var i=e/n;return i>=o?i:t},0)}function x(e){return function(t,n,i,o,a,r,s,l,u,c){var d=g(t,n,a),h=0,p=b(e);return o&&i||(d>0&&(h=p(d,r)),(!i||!o&&i<h)&&(i=h)),!o&&c&&(c=p(c,r),c>i&&(i=c)),i}}function b(e){return function(t,n){var i=_(t);return n=n||oe,!e&&i<1&&(i=1),n.concat(10*n[0]).reduce(function(e,n){return e<t?n*i:e},0)}}function w(e){return e&&e>2?re:ae}function C(e,t){return function(n,i){return!n&&e<=X(t,i)&&(n={},n[t+"s"]=i),n}}function k(e,t){return function(n,i){var o=t*i;return!n&&e<=X("year",o)&&2.5!==o&&(n={years:o}),n}}function S(e,t,n,i,o,a,r,s,l,u){if(!i||!n){var c=I(g(e,t,o),a,null,l);(!n||!i&&Z(n)<=Z(c))&&(n=c)}return!i&&u&&(u=I(u,a,null,l),Z(u)>Z(n)&&(n=u)),n}function I(e,t,n,i){var o=void 0;t=t||w(i);for(var a in t)if(o=t[a].reduce(C(e,a),o))break;if(!o)for(var r=1;!(o=ie.reduce(k(e,r),o));r*=10);return o}function T(e,t,n,i){return S(e,t,n,!0,i,se)}function D(e,t){return function(n){return n?t(J((0,U.adjust)(e(n[1])-e(n[0]))))||void 0:void 0}}function E(e,t,n){return q.default.addInterval(e,t,n)}function A(e){return function(t,n,i){return pe(e)(E((0,G.getLog)(t,e),n,i))}}function O(e,t,n){return E(e,t,n)}function B(e,t,n){return t=t.filter(function(e){return!e.gapSize}),function(i,o,a){var r=void 0;return i=e(i,o,a),t.every(function(t){return i>=e(t.from,o)&&e(i,o)<t.to&&(r=t.to-t.from-2*(e(t.from,o)-t.from)),!r})||(i=n(e(i,r),o)),i}}function P(e,t,n,i,o){return function(a,r,s,l,u,c,d,h,p){var f=V(e,l),g=a.min,_=a.max,m={screenDelta:d,businessDelta:c,axisDivisionFactor:h,isSpacedMargin:a.isSpacedMargin,interval:r},v=t(g,r,m),y=[];u&&u.length&&(e=B(e,u,t)),v>_&&(v=t(g,n(c/2),m),v>_&&(s=!0,v=t(g,r,m,s))),v=f(v);for(var x=void 0;v<_&&v!==x||p&&v<=_;)y.push(v),x=v,v=f(e(v,r));return(s||v-_===0||!(0,K.isDefined)(s)&&i(_,v,r,m))&&y.push(v),y.length>0&&(y[0].valueOf()>0&&o(a.checkMinDataVisibility,g,y[0],m,!0)?(v=e(y[0],r,!0),y.unshift(v)):y[y.length-1].valueOf()<0&&o(a.checkMaxDataVisibility,_,y[y.length-1],m,!1)&&(v=e(y[y.length-1],r),y.push(v))),y}}function M(e,t,n,i,o){return function(a,r,s,l,u,c,d){var h=u/l,p=s[s.length-1],f=s[0],g=d-1;if(c&&c.length&&(t=B(t,c,n)),l=e(l,f,h),0===l)return[];for(var _=i(n(a,u,a),l),m=[];_<f&&(!g||g>0);)_>=a&&m.push(_),g--,_=t(_,l);var v=s.reduce(function(n,o){if(g=d-1,null===n.prevTick)return n.prevTick=o,n;l=e(l,o,h);for(var a=i(n.prevTick,l);a<o&&(!g||g>0);)a!==n.prevTick&&n.minors.push(a),g--,a=t(a,l);return n.prevTick=o,n},{prevTick:null,minors:[]});m=m.concat(v.minors),l=e(l,o(r,u,a),h),_=i(p,l);for(var y=void 0;_<r&&_!==y;)m.push(_),y=_,_=t(_,l);return p-r!==0&&_-r===0&&m.push(_),m}}function R(e,t){if(t.length){var n=t.reduce(function(t,n){var i=[],o=void 0;for(o=t[1];o<e.length;o++){var a=e[o];if(a<n.from&&i.push(a),a>=n.to)break}return[t[0].concat(i),o]},[[],0]);return n[0].concat(e.slice(n[1]))}return e}function V(e,t){return function(n){var i=void 0;return t.every(function(e){return n>=e.from&&n<e.to&&(i=e.gapSize),!i})||(n=e(n,i)),n}}function F(e,t,n,i,o,a,r,s,l,u){function c(e){return{tickInterval:o(e.majors),ticks:e.majors||[],minorTickInterval:a(e.minors),minorTicks:e.minors||[]}}function d(t,n,i){return t&&n/r(t)>=i+1&&(e.incidentOccurred("W2003"),t=void 0),t}function h(t,i,o,a,r,l,c,h){if(c.majors)return t.breaks=h,t;var p=h.filter(function(e){return e.gapSize}),f=void 0;return r=e.skipCalculationLimits?r:d(r,o,a),r=n(o,a,r,l,e.axisDivisionFactor,e.numberMultipliers,e.allowDecimals,h.length,p[0]&&p[0].gapSize.days,e.minTickInterval),e.skipTickGeneration||(f=s(i,r,e.endOnTick,p,h,o,a,e.axisDivisionFactor,e.generateExtraTick),h=u(h,f,r),f=R(f,h),t.breaks=h,t.ticks=t.ticks.concat(f)),t.tickInterval=r,t}function p(t,n,o,s,u,c,h){if(!e.calculateMinors)return t;if(h.minors)return t;var p=r(t.tickInterval),f=s*p/o,g=t.breaks;return!u&&c?u=a([p/(c+1),p/(c+1)*2]):c=void 0,u=d(u,p,f),u=i(p,f,u,e.minorAxisDivisionFactor),t.minorTicks=R(t.minorTicks.concat(l(n.min,n.max,t.ticks,u,t.tickInterval,g,c)),g),t.minorTickInterval=u,t}return function(n,i,o,a,r,s,l,u){r=r||{};var d=t(n,u),f=c(r);return isNaN(d)||(0!==d||r.majors?(f=h(f,n,d,i,o,a,r,u||[]),!e.skipTickGeneration&&d>0&&(f=p(f,n,d,i,s,l,r))):f.ticks=[n.min]),f}}function L(e,t,n,i){var o=W(t,2),a=o[0],r=o[1];return(!(0,K.isDefined)(a)||J(i(e)-i(a))/n>.25)&&((0,K.isDefined)(r)?a=r:(0,K.isDefined)(a)||(a=e)),a}function H(e,t,n){return function(i,o,a){var r=e(a),s=.5*r;return i.reduce(function(e,i){var a=o.filter(function(e){return e<=i.from}),l=n(L(i.from,[].concat(a[a.length-1],o[a.length]),r,t),s);a=o.filter(function(e){return e>=i.to});var u=n(L(i.to,[].concat(a[0],o[o.length-a.length-1]),r,t),-s);return t(u)-t(l)<r&&!i.gapSize?e:i.gapSize?e.concat([i]):e.concat([{from:l,to:u,cumulativeWidth:i.cumulativeWidth}])},[])}}function z(e){var t=fe(de,ee,de),n=fe(de,te,de),i=D(de,de);return F(e,p,m,y,i,i,de,P(E,r(t,n,s,e.endOnTick),v,s,c),M(de,E,t,E,de),H(de,de,function(e,t){return e+t}))}function N(e){var t=e.logBase,n=pe(t),i=he(t),o=fe(n,ee,i),a=fe(n,te,i),s=fe(de,te,de);return F(e,f(t),x(e.skipCalculationLimits),y,D(i,de),D(de,de),de,P(A(t),r(o,a,l(t),e.endOnTick),b(e.skipCalculationLimits),l(t),d(t)),M(function(e,t,n){return t/n},E,o,s,a),H(de,i,function(e,t){return n(i(e)+t)}))}function $(e){function t(t,n){var i=fe(de,ee,de),o=(0,K.isString)(n)?q.default.getDateIntervalByString(n.toLowerCase()):n,a=Z(n);(o.days%7===0||n.quarters)&&(o=I(a));var r=function(t){return q.default.correctDateWithUnitBeginning(t,o,null,e.firstDayOfWeek)},s=function(e){return new Date(ee((e.getTime()-e.getTimezoneOffset()*ce)/a)*a+e.getTimezoneOffset()*ce)};return t=r(t),"years"in o?t.setFullYear(i(t.getFullYear(),o.years,0)):"quarters"in o?t=r(s(t)):"months"in o?t.setMonth(i(t.getMonth(),o.months,0)):"weeks"in o||"days"in o?t=r(s(t)):"hours"in o?t.setHours(i(t.getHours(),o.hours,0)):"minutes"in o?t.setMinutes(i(t.getMinutes(),o.minutes,0)):"seconds"in o?t.setSeconds(i(t.getSeconds(),o.seconds,0)):"milliseconds"in o&&(t=s(t)),t}function n(e,n){for(var i=t(e,n);e-i>0;)i=O(i,n);return i}var i=D(de,q.default.convertMillisecondsToDateUnits);return F(e,p,S,T,i,i,Z,P(O,r(t,n,u,e.endOnTick),I,u,h),M(de,O,t,O,de),H(Z,de,function(e,t){return new Date(e.getTime()+t)}))}var W=function(){function e(e,t){var n=[],i=!0,o=!1,a=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done)&&(n.push(r.value),!t||n.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),G=n(10),j=n(22),q=i(j),K=n(1),U=n(29),Y=n(0),X=q.default.convertDateUnitToMilliseconds,Z=q.default.dateToMilliseconds,Q=Math,J=Q.abs,ee=Q.floor,te=Q.ceil,ne=Q.pow,ie=[1,2,2.5,5],oe=[1,2,3,5],ae={millisecond:[1,2,5,10,25,50,100,250,500],second:[1,2,3,5,10,15,20,30],minute:[1,2,3,5,10,15,20,30],hour:[1,2,3,4,6,8,12],day:[1,2],week:[1,2],month:[1,2,3,6]},re=(0,Y.extend)({},ae,{day:[1]}),se={millisecond:[1,2,5,10,25,50,100,250,500],second:[1,2,3,5,10,15,20,30],minute:[1,2,3,5,10,15,20,30],hour:[1,2,3,4,6,8,12],day:[1,2,3,7,14],month:[1,2,3,6]},le=[2,4,5,8,10],ue=3,ce=6e4,de=function(e){return e},he=function(e){return function(t){return(0,G.getLog)(t,e)}},pe=function(e){return function(t){return ne(e,t)}},fe=function(e,t,n){return function(i,o){return(0,U.adjust)(e(t((0,U.adjust)(n(i)/o))*o))}};t.tickGenerator=function(e){var t=void 0;return t=e.rangeIsEmpty?o(e):"discrete"===e.axisType?a(e):"logarithmic"===e.axisType?N(e):"datetime"===e.dataType?$(e):z(e)}},function(e,t,n){function i(e){return{stroke:e.color,"stroke-width":e.width,"stroke-opacity":e.opacity,opacity:1}}function o(e,t,n,o,s,l,u){function c(t){var n=e._textFontStyles,i=y.customizeColor;return i&&i.call&&(n=r({},e._textFontStyles,{fill:i.call(t,t)})),n}function d(t,n){var i=e.formatHint(t.value,y,n);a(i)&&""!==i&&t.label.setTitle(i)}var h=u||e._tickOffset,p=e._axisLineGroup,f=e._axisElementsGroup,g=i(n),_=i(o),m=/^\s+$/,v=e.getOptions(),y=v.label,x=e._textOptions;return function(i){var r={value:i,updateValue:function(e){this.value=i=e},initCoords:function(){this.coords=e._getTranslatedValue(i,h),this.labelCoords=e._getTranslatedValue(i)},saveCoords:function(){this._storedCoords=this.coords,this._storedLabelsCoords=this.labelCoords},drawMark:function(t){n.visible&&s!==i&&(e.areCoordsOutsideAxis(this.coords)||(this.mark?(this.mark.append(p),e.sharp(this.mark,e.getSharpDirectionByCoords(this.coords)),this.updateTickPosition(t)):(this.mark=e._createPathElement([],g,e.getSharpDirectionByCoords(this.coords)).append(p),this.updateTickPosition(t))))},setSkippedCategory:function(e){s=e},_updateLine:function(t,n,i,o,a){if(t){if(null===n.points)return void t.remove();o&&i&&null!==i.points?(n.opacity=1,t.attr(i),t.animate(n)):(n.opacity=o?0:1,t.attr(n),o&&t.animate({opacity:1},{delay:.5,partitionDuration:.5})),this.coords.angle&&e._rotateTick(t,this.coords,a)}},updateTickPosition:function(t,i){this._updateLine(this.mark,{points:e._getTickMarkPoints(r.coords,n.length,t)},this._storedCoords&&{points:e._getTickMarkPoints(r._storedCoords,n.length,t)},i,!1)},drawLabel:function(n){var o=y.visible&&!l&&!e.getTranslator().getBusinessRange().isEmpty()&&!e.areCoordsOutsideAxis(this.labelCoords);if(!o)return void(this.label&&this.label.remove());var r=e.formatLabel(i,y,n);return this.label?(this.label.attr({text:r,rotate:0}).append(f),d(this,n),void this.updateLabelPosition()):void(a(r)&&""!==r&&!m.test(r)&&(this.label=t.text(r).css(c(this)).attr(x).data("chart-data-argument",this.value).append(f),this.updateLabelPosition(),d(this,n)))},fadeOutElements:function(){var t={opacity:1},n={opacity:0},i={partitionDuration:.5};this.label&&this._fadeOutLabel(),this.grid&&this.grid.append(e._axisGridGroup).attr(t).animate(n,i),this.mark&&this.mark.append(e._axisLineGroup).attr(t).animate(n,i)},_fadeInLabel:function(){var t=e._renderer.g().attr({opacity:0}).append(e._axisElementsGroup).animate({opacity:1},{delay:.5,partitionDuration:.5});this.label.append(t)},_fadeOutLabel:function(){var t=e._renderer.g().attr({opacity:1}).animate({opacity:0},{partitionDuration:.5}).append(e._axisElementsGroup);this.label.append(t)},updateLabelPosition:function(e){this.label&&(e&&this._storedLabelsCoords?(this.label.attr({x:this._storedLabelsCoords.x,y:this._storedLabelsCoords.y}),this.label.animate({x:this.labelCoords.x,y:this.labelCoords.y})):(this.label.attr({x:this.labelCoords.x,y:this.labelCoords.y}),e&&this._fadeInLabel()))},drawGrid:function(t){o.visible&&s!==this.value&&(this.grid?(this.grid.append(e._axisGridGroup),e.sharp(this.grid,e.getSharpDirectionByCoords(this.coords)),this.updateGridPosition()):(this.grid=t(this,_),this.grid&&this.grid.append(e._axisGridGroup)))},updateGridPosition:function(t){this._updateLine(this.grid,e._getGridPoints(r.coords),this._storedCoords&&e._getGridPoints(this._storedCoords),t,!0)},removeLabel:function(){this.label.remove(),this.label=null}};return r}}var a=n(1).isDefined,r=n(0).extend;t.tick=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n,i;if("week"===t&&(t="day"),"quarter"===t&&(t="month"),e[t])for(i=0;i<T.default.dateUnitIntervals.length&&(n=T.default.dateUnitIntervals[i],e[n]&&(e[n]=!1,e.count--),n!==t);i++);}function a(e){return e.sort(function(e,t){return e.from-t.from})}function r(e,t,n){var i=t.minVisible,o=t.maxVisible,a=n?n.width:0;return e.reduce(function(e,t){var n,r=t.from,s=t.to,l=e[e.length-1];return(0,P.isDefined)(r)&&(0,P.isDefined)(s)?(r>s&&(s=[r,r=s][0]),e.length&&r<l.to?s>l.to&&(l.to=s>o?o:s,l.gapSize&&(l.gapSize=void 0,l.cumulativeWidth+=a)):(r>=i&&r<o||s<=o&&s>i)&&s-r<o-i&&(r=r>=i?r:i,s=s<=o?s:o,n={from:r,to:s,cumulativeWidth:(l?l.cumulativeWidth:0)+a},t.gapSize&&(n.gapSize=T.default.convertMillisecondsToDateUnits(s-r),n.cumulativeWidth=l?l.cumulativeWidth:0),e.push(n)),e):e},[])}function s(e,t,n){var i,o=e;return e=F(e,n),t=F(t,n),i=T.default.getSequenceByInterval(e,t,n),i.length&&o>i[0]&&(i=i.slice(1)),i}function l(e){var t="start";return"center"===e&&(t="center"),"right"===e&&(t="end"),t}function u(e){var t="start";return"center"===e&&(t="center"),"bottom"===e&&(t="end"),t}function c(e){var t=V(e);return"quarter"===t&&(t=V(t)),t}function d(e,t,n,i){var a=i,r=t&&T.default.getDatesDifferences(t,e);return t&&"year"!==n&&(o(r,n),a=(0,S.getDateFormatByDifferences)(r)),a}function h(e,t){return t.reduce(function(t,n){return H(t,e(n))},0)}function p(e,t){t=L.abs(t),t=t%180>=90?90-t%90:t%90;var n=t*(L.PI/180);return n>=L.atan(e.height/e.width)?e.height/L.abs(L.sin(n)):e.width}function f(e){return e.reduce(function(e,t){return H(e,t.paddingTopBottom)},0)}function g(e,t,n){return e.some(function(e){return e.label.verticalAlignment===t})&&n||0}function _(e){return L.abs(e.x)||0}function m(e){return L.abs(e.width-L.abs(e.x))||0}function v(e,t,n){var i,o,a,r,s,l=null,u=[];for(i=1,o=e.length;i<o;i++)a=e[i],r=e[i-1],s=n(a,r),t.indexOf(a)>=0?(!l||s>l.length)&&(l={start:a,end:r,length:s}):(l&&s<l.length?u.push(l):u.push({start:a,end:r,length:s}),l=null);return l&&u.push(l),u}function y(e,t,n){var i,o,r,s=[],l="logarithmic"===e.type?function(t,n){return B.default.getLog(n/t,e.logarithmBase)}:function(e,t){return t-e},u=l(n.minVisible,n.maxVisible),c=t.reduce(function(e,t){var n=t.getPointsInViewPort();return e[0]=e[0].concat(n[0]),e[1]=e[1].concat(n[1]),e},[[],[]]),d=c[0].concat(c[1]).sort(function(e,t){return t-e}),h=c[1].filter(function(e){return c[0].indexOf(e)<0}),p=u/1e10,f=q*u;for(i=v(d,h,l).sort(function(e,t){return t.length-e.length}),r=(0,P.isDefined)(e.maxAutoBreakCount)?Math.min(e.maxAutoBreakCount,i.length):i.length,o=0;o<r&&i[o].length>=f&&!(u<=i[o].length);o++)u-=i[o].length,(u>p||u<-p)&&(s.push({from:i[o].start,to:i[o].end}),f=q*u);return a(s),s}function x(e,t,n,i,o,a,r,s,l){var u=l?"bezier":"line",c=e.g().append(i);return function(t,n){e.path(o(b(a,r,s,t,l)),u).attr(n).append(c)}}function b(e,t,n,i,o){if(!o)return[e,t+i,n,t+i];t+=i;var a,r=t+U,s=t+K,l=t+Y,u=[[e,s]];for(a=e;a<n+X;a+=X)u.push([a+6,r,a+6,r,a+12,s,a+18,l,a+18,l,a+24,s]);return[].concat.apply([],u)}function w(e){var t,n=[];for(t=0;t<e.length;t+=2)n.push(e[t+1]),n.push(e[t]);return n}var C=n(109),k=i(C),S=n(63),I=n(22),T=i(I),D=n(0),E=n(785),A=n(4),O=n(10),B=i(O),P=n(1),M=n(273),R=i(M),V=T.default.getNextDateUnit,F=T.default.correctDateWithUnitBeginning,L=Math,H=L.max,z=R.default.top,N=R.default.bottom,$=R.default.left,W=R.default.right,G=R.default.center,j=3,q=.3,K=2,U=0,Y=4,X=24,Z={left:-1,top:-1,right:0,bottom:0,center:-.5};e.exports={linear:{_getStep:function(e,t){var n=this._options.label.minSpacing,i=this._isHorizontal?function(e){return e.width+n}:function(e){return e.height},o=h(i,e);return t&&(o=p({width:o,height:this._getMaxLabelHeight(e,0)},t)),R.default.getTicksCountInRange(this._majorTicks,this._isHorizontal?"x":"y",o)},_getMaxLabelHeight:function(e,t){return h(function(e){return e.height},e)+t},_validateOverlappingMode:function(e,t){return this._isHorizontal&&("rotate"===t||"stagger"===t)||!this._isHorizontal?R.default.validateOverlappingMode(e):e},_validateDisplayMode:function(e){return this._isHorizontal?e:"standard"},getMarkerTrackers:function(){return this._markerTrackers},_getSharpParam:function(e){return this._isHorizontal^e?"h":"v"},_createAxisElement:function(){return this._renderer.path([],"line")},_updateAxisElementPosition:function(){if(this._axisElement){var e=this._axisPosition,t=this._getCanvasStartEnd();this._axisElement.attr({points:this._isHorizontal?[t.start,e,t.end,e]:[e,t.start,e,t.end]})}},_getTranslatedCoord:function(e,t){return this._translator.translate(e,t)},_initAxisPositions:function(){var e=this,t=e._options.position;e._axisPosition=e._orthogonalPositions["top"===t||"left"===t?"start":"end"]},_getTickMarkPoints:function(e,t,n){var i=this._isHorizontal,o=this._options,a=void 0;if((0,P.isDefined)(o.tickOrientation))a=Z[o.tickOrientation]*t;else{var r=n.shift||0;"left"!==o.position&&"top"!==o.position||(r=-r),a=r+this.getTickStartPositionShift(t)}
65return[e.x+(i?0:a),e.y+(i?a:0),e.x+(i?0:a+t),e.y+(i?a+t:0)]},getTickStartPositionShift:function(e){var t=this._options;return e%2===1?t.width%2===0&&("left"===t.position||"top"===t.position)||t.width%2===1&&("right"===t.position||"bottom"===t.position)?Math.floor(-e/2):-Math.floor(e/2):-e/2+(t.width%2===0?0:"bottom"===t.position||"right"===t.position?-1:1)},_getTitleCoords:function(){var e=this,t=e._isHorizontal,n=e._axisPosition,i=e._axisPosition,o=e._options.title.alignment,a=e._getCanvasStartEnd(),r=t||e._options.position===$,s=r?a.start:a.end,l=r?a.end:a.start,u=o===$?s:o===W?l:a.start+(a.end-a.start)/2;return t?n=u:i=u,{x:n,y:i}},_drawTitleText:function(e,t){var n=this._options,i=n.title,o={opacity:i.opacity,align:i.alignment,"class":i.cssClass};if(i.text&&e){t=t||this._getTitleCoords(),this._isHorizontal||(o.rotate=n.position===$?270:90);var a=this._renderer.text(i.text,t.x,t.y).css(B.default.patchFontOptions(i.font)).attr(o).append(e);return this._checkTitleOverflow(a),a}},_updateTitleCoords:function(){this._title&&this._title.element.attr(this._getTitleCoords())},_drawTitle:function(){var e=this._drawTitleText(this._axisTitleGroup);e&&(this._title={element:e})},_measureTitle:function(){this._title&&(this._title.bBox&&!this._title.originalSize&&(this._title.originalSize=this._title.bBox),this._title.bBox=this._title.element.getBBox())},_drawDateMarker:function(e,t,n){var i,o,a=this,r=a._options.marker,s=a._translator.getBusinessRange().invert,l=r.width+r.textLeftIndent;if(null!==t.x)return t.withoutStick||(o=a._renderer.path([t.x,t.y,t.x,t.y+r.separatorHeight],"line").attr({"stroke-width":r.width,stroke:r.color,"stroke-opacity":r.opacity,sharp:"h"}).append(a._axisElementsGroup)),i=String(a.formatLabel(e,t.labelOptions,n)),{date:e,x:t.x,y:t.y,cropped:t.withoutStick,label:a._renderer.text(i,t.x,t.y).css(B.default.patchFontOptions(r.label.font)).append(a._axisElementsGroup),line:o,getEnd:function(){return this.x+(s?-1:1)*(l+this.labelBBox.width)},setTitle:function(){this.title=i},hideLabel:function(){this.label.dispose(),this.label=null,this.title=i},hide:function(){o&&(o.dispose(),o=null),this.label.dispose(),this.label=null,this.hidden=!0}}},_drawDateMarkers:function(){function e(e,t,n){return r._drawDateMarker(e,{x:u.translate(e),y:o,labelOptions:r._getLabelFormatOptions(t),withoutStick:n},h)}var t,n,i,o,a,r=this,l=r._options,u=r._translator,h=r._getViewportRange(),p=h.minVisible,f=[];return h.isEmpty()||!l.marker.visible||"datetime"!==l.argumentType||"discrete"===l.type||r._majorTicks.length<=1?[]:(o=r._axisPosition+l.marker.topIndent,t=T.default.getDateUnitInterval(this._tickInterval),n=c(t),i=s(p,h.maxVisible,n),(i.length>1||1===i.length&&p<i[0])&&(f=i.reduce(function(i,o,a,r){var s=e(o,d(o,r[a-1]||p<o&&p,t,n));return s&&i.push(s),i},[]),p<i[0]&&(a=e(p,d(p,i[0],t,n),!0),a&&f.unshift(a))),f)},_adjustDateMarkers:function(e){e=e||0;var t=this,n=this._options.marker,i=n.width+n.textLeftIndent,o=this._translator.getBusinessRange().invert,a=t._getCanvasStartEnd(),r=this._dateMarkers;if(!r.length)return e;r[0].cropped&&(this._checkMarkersPosition(o,r[1],r[0])||r[0].hideLabel());var s;return r.forEach(function(e,n,i){e.cropped||((o?e.getEnd()<a.end:e.getEnd()>a.end)?e.hideLabel():t._checkMarkersPosition(o,e,s)?s=e:e.hide())}),this._dateMarkers.forEach(function(t){if(t.label){var a=t.labelBBox,r=t.y+n.textTopIndent-a.y;t.label.attr({translateX:o?t.x-i-a.x-a.width:t.x+i-a.x,translateY:r+e})}t.line&&t.line.attr({translateY:e})}),t._initializeMarkersTrackers(e),e+n.topIndent+n.separatorHeight},_checkMarkersPosition:function(e,t,n){return void 0===n||(e?t.x<n.getEnd():t.x>n.getEnd())},_initializeMarkersTrackers:function(e){var t=this,n=t._options.marker.separatorHeight,i=t._renderer,o=this._translator.getBusinessRange(),a=t._getCanvasStartEnd(),r=t._axisElementsGroup;t._markerTrackers=this._dateMarkers.filter(function(e){return!e.hidden}).map(function(t,s,l){var u=l[s+1]||{x:a.end,date:o.max},c=t.x,d=t.y+e,h=i.path([c,d,c,d+n,u.x,d+n,u.x,d,c,d],"area").attr({"stroke-width":1,stroke:"grey",fill:"grey",opacity:1e-4}).append(r);return h.data("range",{startValue:t.date,endValue:u.date}),t.title&&h.setTitle(t.title),h})},_getLabelFormatOptions:function(e){var t=this,n=t._markerLabelOptions;return n||(t._markerLabelOptions=n=(0,D.extend)(!0,{},t._options.marker.label)),(0,P.isDefined)(t._options.marker.label.format)||(n.format=e),n},_adjustConstantLineLabels:function(e){var t=this,n=t._options.position,i=t.getCanvas(),o=i.left,a=i.width-i.right,r=i.top,s=i.height-i.bottom,l=r+(s-r)/2,u=o+(a-o)/2,c=0;return e.forEach(function(e){var i,d,h=t._isHorizontal,p=e.options,f=p.paddingTopBottom,g=p.paddingLeftRight,_=p.label,m=_.verticalAlignment,v=_.horizontalAlignment,y="inside"===_.position,x=e.label,b=e.labelBBox;if(null!==x&&!b.isEmpty){if(h)if(y)switch(i=v===$?e.coord-g-b.x-b.width:e.coord+g-b.x,m){case G:d=l-b.y-b.height/2;break;case N:d=s-f-b.y-b.height;break;default:d=r+f-b.y}else n===m&&(c=H(c,b.height+f)),i=e.coord-b.x-b.width/2,d=m===N?s+f-b.y:r-f-b.y-b.height;else if(y)switch(d=m===N?e.coord+f-b.y:e.coord-f-b.y-b.height,v){case G:i=u-b.x-b.width/2;break;case W:i=a-g-b.x-b.width;break;default:i=o+g-b.x}else n===v&&(c=H(c,b.width+g)),d=e.coord-b.y-b.height/2,i=v===W?a+g-b.x:o-g-b.x-b.width;x.attr({translateX:i,translateY:d})}}),c},_drawConstantLinesForEstimating:function(e){var t=this,n=this._renderer,i=n.g();return e.forEach(function(e){t._drawConstantLineLabelText(e.label.text,0,0,e.label,i).attr({align:"center"})}),i.append(n.root)},_estimateLabelHeight:function(e,t){var n=e.height,i=t.drawingType;if("stagger"!==this._validateDisplayMode(i)&&"stagger"!==this._validateOverlappingMode(t.overlappingBehavior,i)||(n=2*n+t.staggeringSpacing),"rotate"===this._validateDisplayMode(i)||"rotate"===this._validateOverlappingMode(t.overlappingBehavior,i)){var o=B.default.getCosAndSin(t.rotationAngle);n=n*o.cos+e.width*o.sin}return n&&(n+t.indentFromAxis||0)||0},estimateMargins:function(e){this.updateCanvas(e);var t=this,n=t._getViewportRange(),i=this._createTicksAndLabelFormat(n),o=i.ticks,a=i.tickInterval,r=this._options,s=t._outsideConstantLines.filter(function(e){return e.labelOptions.visible}).map(function(e){return e.options}),l=t._renderer.root,u=r.label.visible&&!n.isEmpty()&&o.length,c=u&&t.formatLabel(o[o.length-1],r.label,void 0,void 0,a,o),d=u&&t._renderer.text(c,0,0).css(t._textFontStyles).attr(t._textOptions).append(l),h=t._drawTitleText(l,{x:0,y:0}),p=t._drawConstantLinesForEstimating(s),v=d&&d.getBBox()||{x:0,y:0,width:0,height:0},y=h&&h.getBBox()||{x:0,y:0,width:0,height:0},x=p.getBBox(),b=y.height?y.height+r.title.margin:0,w=t._estimateLabelHeight(v,r.label),C=x.height?x.height+f(s):0,k=w+b,S={left:H(_(v),_(x)),right:H(m(v),m(x)),top:("top"===r.position?k:0)+g(s,"top",C),bottom:("top"!==r.position?k:0)+g(s,"bottom",C)};return d&&d.remove(),h&&h.remove(),p&&p.remove(),S},_checkAlignmentConstantLineLabels:function(e){var t=e.position,n=(e.verticalAlignment||"").toLowerCase(),i=(e.horizontalAlignment||"").toLowerCase();this._isHorizontal?"outside"===t?(n=n===N?N:z,i=G):(n=n===G?G:n===N?N:z,i=i===$?$:W):"outside"===t?(n=G,i=i===$?$:W):(n=n===N?N:z,i=i===W?W:i===G?G:$),e.verticalAlignment=n,e.horizontalAlignment=i},_getConstantLineLabelsCoords:function(e,t){var n=this,i=e,o=e;return n._isHorizontal?o=n._orthogonalPositions["top"===t.verticalAlignment?"start":"end"]:i=n._orthogonalPositions["right"===t.horizontalAlignment?"end":"start"],{x:i,y:o}},_getAdjustedStripLabelCoords:function(e){var t=e.options,n=t.paddingTopBottom,i=t.paddingLeftRight,o=t.label.horizontalAlignment,a=t.label.verticalAlignment,r=e.labelBBox,s=r.height,l=r.width,u=e.labelCoords,c=u.y-r.y,d=u.x-r.x;return a===z?c+=n:a===G?c-=s/2:a===N&&(c-=n+s),o===$?d+=i:o===G?d-=l/2:o===W&&(d-=i+l),{translateX:d,translateY:c}},_adjustTitle:function(e){if(e=e||0,this._title){var t=this,n=t._options,i=n.position,o=n.title.margin,a=t._title,r=a.bBox,s=r.x,l=r.y,u=r.width,c=r.height,d=t._axisPosition,h=d-o-e,p=d+o+e,f={};t._isHorizontal?i===z?f.translateY=h-(l+c):f.translateY=p-l:i===$?f.translateX=h-(s+u):f.translateX=p-s,a.element.attr(f)}},_checkTitleOverflow:function(e){if(this._title||e){var t=this._getScreenDelta(),n=e?{bBox:e.getBBox(),element:e}:this._title,i=this._options.title,o=n.bBox;if((this._isHorizontal?o.width:o.height)>t)n.element.setMaxSize(t,void 0,{wordWrap:i.wordWrap||"none",textOverflow:i.textOverflow||"ellipsis"}),this._wrapped=i.wordWrap&&"none"!==i.wordWrap;else{var a=n.originalSize&&t>(this._isHorizontal?n.originalSize.width:n.originalSize.height);!this._wrapped&&a&&n.element.restoreText()}}},coordsIn:function(e,t){var n=this.getCanvas(),i=this._options.isHorizontal,o=this._options.position,a=i?t:e;return!(i&&(e<n.left||e>n.width-n.right)||!i&&(t<n.top||t>n.height-n.bottom))&&(i&&o===R.default.top||!i&&o===R.default.left?a<n[o]:a>n[i?"height":"width"]-n[o])},_boundaryTicksVisibility:{min:!0,max:!0},_setVisualRange:function(e){var t=this.adjustRange(B.default.getVizRangeObject(e));this._viewport=t},applyVisualRangeSetter:function(e){this._visualRange=e},adjust:function(e){var t=this,n=t._seriesData,i={min:n.min,max:n.max};e||(i=t._series.filter(function(e){return e.isVisible()}).reduce(function(e,t){var n=t.getViewport();return e.min=(0,P.isDefined)(n.min)?e.min<n.min?e.min:n.min:e.min,e.max=(0,P.isDefined)(n.max)?e.max>n.max?e.max:n.max:e.max,t.showZero&&(e=new k.default.Range(e),e.correctValueZeroLevel()),e},{})),(0,P.isDefined)(i.min)&&(0,P.isDefined)(i.max)&&(n.minVisible=i.min,n.maxVisible=i.max),t._translator.updateBusinessRange(t.adjustViewport(n)),t._breaks=t._getScaleBreaks(t._options,{minVisible:n.minVisible,maxVisible:n.maxVisible},t._series,t.isArgumentAxis)},hasWrap:function(){return this._wrapped},getAxisPosition:function(){return this._axisPosition},_getStick:function(){return!this._options.valueMarginsEnabled},_getStripLabelCoords:function(e,t,n){var i,o,a=this,r=a._orthogonalPositions,s=a._isHorizontal,c=n.horizontalAlignment,d=n.verticalAlignment;return s?(c===G?i=e+(t-e)/2:c===$?i=e:c===W&&(i=t),o=r[u(d)]):(i=r[l(c)],d===z?o=e:d===G?o=t+(e-t)/2:d===N&&(o=t)),{x:i,y:o}},_getTranslatedValue:function(e,t){var n=this._translator.translate(e,t,"semidiscrete"===this._options.type&&this._options.tickInterval),i=this._axisPosition,o=this._isHorizontal;return{x:o?n:i,y:o?i:n}},areCoordsOutsideAxis:function(e){var t=this._isHorizontal?e.x:e.y,n=this.getVisibleArea();return t<n[0]||t>n[1]},_getSkippedCategory:function(e){var t;return this._options.type===R.default.discrete&&this._tickOffset&&0!==e.length&&(t=e[e.length-1]),t},_getScaleBreaks:function(e,t,n,i){var o=this,s=(e.breaks||[]).map(function(e){return{from:o.parser(e.startValue),to:o.parser(e.endValue)}});return"discrete"!==e.type&&"datetime"===e.dataType&&e.workdaysOnly&&(s=s.concat((0,E.generateDateBreaks)(t.minVisible,t.maxVisible,e.workWeek,e.singleWorkdays,e.holidays))),!i&&"discrete"!==e.type&&"datetime"!==e.dataType&&e.autoBreaksEnabled&&0!==e.maxAutoBreakCount&&(s=s.concat(y(e,n,t))),r(a(s),t,e.breakStyle)},_drawBreak:function(e,t,n,i,o,a){var r=this,s=e-(r._translator.isInverted()?0:i+1),l={"stroke-width":1,stroke:o.borderColor,sharp:o.isWaved?void 0:o.isHorizontal?"h":"v"},u={stroke:o.color,"stroke-width":i},c=r._isHorizontal?w:function(e){return e},d=x(r._renderer,u,l,a,c,t,s,n,o.isWaved);d(i/2,u),d(0,l),d(i,l)},_createBreakClipRect:function(e,t){var n,i=this,o=i._canvas,a=t-e;return n=i._isHorizontal?i._renderer.clipRect(o.left,e,o.width,a):i._renderer.clipRect(e,o.top,a,o.height),i._breaksElements=i._breaksElements||[],i._breaksElements.push(n),n.id},_createBreaksGroup:function(e,t){var n=this,i=n._renderer.g().attr({"class":n._axisCssPrefix+"breaks","clip-path":n._createBreakClipRect(e,t)}).append(n._scaleBreaksGroup);return n._breaksElements=n._breaksElements||[],n._breaksElements.push(i),i},_disposeBreaksGroup:function(){(this._breaksElements||[]).forEach(function(e){e.dispose()}),this._breaksElements=null},drawScaleBreaks:function(e){var t,n,i,o,a,r,s,l=this,u=l._options,c=u.breakStyle,d=u.position,h=l._translator.getBusinessRange().breaks||[];l._disposeBreaksGroup(),h&&h.length&&(s={color:l._options.containerColor,borderColor:c.color,isHorizontal:l._isHorizontal,isWaved:"straight"!==c.line.toLowerCase()},e?(t=e.start,n=e.end):(t=l._orthogonalPositions.start-(!u.visible||l._axisShift||"left"!==d&&"top"!==d?0:j),n=l._orthogonalPositions.end+(!u.visible||"right"!==d&&"bottom"!==d?0:j)),r=l._createBreaksGroup(t,n),l._axisShift&&u.visible&&(o=l._axisPosition-l._axisShift-j,a=o+2*j,i=l._createBreaksGroup(o,a)),h.forEach(function(e){if(!e.gapSize){var d=l._getTranslatedCoord(e.to);l._drawBreak(d,t,n,c.width,s,r),l._axisShift&&u.visible&&l._drawBreak(d,o,a,c.width,s,i)}}))},_getSpiderCategoryOption:A.noop,shift:function(e){function t(t,n){var i={},r=e[t]?e[t]+a:0;return i[o?"translateY":"translateX"]=("left"===t||"top"===t?-1:1)*r,(n[t]||n).attr(i),r}var n=this,i=n._options,o=i.isHorizontal,a=n.getMultipleAxesSpacing(),r=n._axisConstantLineGroups;n._axisShift=t(i.position,n._axisGroup),(o?["top","bottom"]:["left","right"]).forEach(function(e){t(e,r.above),t(e,r.under)})}}}},function(e,t,n){function i(e){return e<0||e>1?void 0:e}function o(e){return e<0||e>1?V:e}function a(e,t,n){return e.some(function(e){return n&&!e.getOptions().ignoreEmptyPoints||e.getPointsByArg(t,!0).some(function(e){return e.hasValue()})})}function r(e,t,n,o,a,r,s){e.forEach(function(e){var d,h=s(t.indexOf(o),t.length),p=e.getPointsByArg(n,!0),f=i(e.getOptions().barPadding),g=e.getOptions().barWidth,_=u(h,a),m=a.width;h!==-1&&((D(f)||D(g))&&(d=l(r,t.length,1-f,g),m=d.width,_=u(h,d)),c(p,m,_))})}function s(e,t,n){var i=[],s=[],u={},c=t.barWidth,d=t.barGroupWidth,h=e[0]&&e[0].getArgumentAxis().getTranslator().getInterval(),p=d?h>d?d:h:h*(1-o(t.barGroupPadding));e.forEach(function(e,t){var n,o=e.getStackName()||e.getBarOverlapGroup()||t.toString();for(n in e.pointsByArgument)s.indexOf(n.valueOf())===-1&&s.push(n.valueOf());i.indexOf(o)===-1&&(i.push(o),u[o]=[]),u[o].push(e)}),s.forEach(function(e){var o=i.reduce(function(n,i){return a(u[i],e,t.equalBarWidth)&&n.push(i),n},[]),s=l(p,o.length,c);i.forEach(function(t){r(u[t],o,e,t,s,p,n)})})}function l(e,t,n,i){var o,a;return i?(a=Math.min(i,A(e/t)),o=t>1?A((e-a*t)/(t-1)):0):D(n)?(a=A(e*n/t),o=A(t>1?(e-e*n)/(t-1):0)):(o=A(e/t*.2),a=A((e-o*(t-1))/t)),{width:a>1?a:1,spacing:o,middleIndex:t/2}}function u(e,t){return(e-t.middleIndex+.5)*t.width-(t.middleIndex-e-.5)*t.spacing}function c(e,t,n){P(e,function(e,i){i.correctCoordinates({width:t,offset:n})})}function d(e){return e>=0?"positive":"negative"}function h(e){return e.series.filter(function(e){return e.isVisible()})}function p(e,t,n){var i=(e.positive[t]||{})[n]||0,o=-(e.negative[t]||{})[n]||0;return i+o}function f(e,t,n){var i=(e.positive[t]||{})[n]||0,o=(e.negative[t]||{})[n]||0;return i+o}function g(e){return e?function(e,t){return t-e-1}:function(e){return e}}function _(e){return e[0]&&e[0].getArgumentAxis().getTranslator().isInverted()}function m(){var e=h(this);s(e,this._options,g(_(e)))}function v(){var e=this,t=e._options.negativesAsZeroes,n=h(e),i={positive:{},negative:{}},o={left:{},right:{}},a={};n.forEach(function(e){var n=e.getStackName()||e.getBarOverlapGroup(),r=!1;e._prevSeries=a[n],a[n]=e,e.holes=I(!0,{},o),e.getPoints().forEach(function(a,s,l){var u,c=a.initialValue&&a.initialValue.valueOf(),d=a.argument.valueOf(),h=c>=0?i.positive:i.negative,p="bar"!==e.type;if(t&&c<0&&(h=i.positive,c=0,a.resetValue()),h[n]=h[n]||{},u=h[n],u[d]?(p&&a.correctValue(u[d]),u[d]+=c):(u[d]=c,p&&a.resetCorrection()),a.hasValue())r&&(r=!1,o.left[d]=(o.left[d]||0)+(a.value.valueOf()-(isFinite(a.minValue)?a.minValue.valueOf():0)),a._skipSetLeftHole=!0);else{var f=l[s-1];!r&&f&&f.hasValue()&&(d=f.argument.valueOf(),f._skipSetRightHole=!0,o.right[d]=(o.right[d]||0)+(f.value.valueOf()-(isFinite(f.minValue)?f.minValue.valueOf():0))),r=!0}})}),n.forEach(function(e){var t=e.holes;e.getPoints().forEach(function(e){var n=e.argument.valueOf();e.resetHoles(),!e._skipSetLeftHole&&e.setHole(t.left[n]||o.left[n]&&0,"left"),!e._skipSetRightHole&&e.setHole(t.right[n]||o.right[n]&&0,"right"),e._skipSetLeftHole=null,e._skipSetRightHole=null})}),e._stackKeepers=i,n.forEach(function(e){e.getPoints().forEach(function(t){var n=t.argument.valueOf(),a=e.getStackName()||e.getBarOverlapGroup(),r=p(i,a,n),s=f(i,a,n);t.setPercentValue(r,s,o.left[n],o.right[n])})})}function y(){var e=this,t=h(e),n=e._stackKeepers,i={positive:{},negative:{}};P(t,function(t,o){var a=o.getOptions().minBarSize,r=o.getValueAxis().getTranslator(),s=a&&r.getMinBarSize(a),l=o.getStackName();P(o.getPoints(),function(t,o){if(o.hasValue()){var a,u,c,h=o.initialValue&&o.initialValue.valueOf(),f=o.argument.valueOf();e.fullStacked&&(h=h/p(n,l,f)||0),a=r.checkMinBarSize(h,s,o.value),u=d(a),c=i[u][l]=i[u][l]||{},c[f]?(o.minValue=c[f],c[f]+=a):c[f]=a,o.value=c[f]}})}),e.fullStacked&&x(t,i)}function x(e,t){P(e,function(e,n){var i=n.getStackName?n.getStackName():"default";P(n.getPoints(),function(e,n){var o=p(t,i,n.argument.valueOf());n.value=n.value/o,S(n.minValue)&&(n.minValue=n.minValue/o)})})}function b(){P(this.series,function(e,t){var n=t.getOptions().minBarSize,i=t.getValueAxis().getTranslator(),o=n&&i.getMinBarSize(n);o&&P(t.getPoints(),function(e,t){t.hasValue()&&(t.value=i.checkMinBarSize(t.initialValue,o))})})}function w(){var e=h(this);s(e,{barWidth:null,equalBarWidth:!0,barGroupPadding:.3},g(_(e)))}function C(){var e=h(this);if(e.length){var t,n,i,o,a,r=this._options,s=e[0].getArgumentAxis().getVisibleArea(),l=e[0].getValueAxis().getVisibleArea(),u=E.min(s[1]-s[0],l[1]-l[0]),c=B(r.minBubbleSize,2),d=B(u*r.maxBubbleSize,2),p=(u*r.maxBubbleSize+r.minBubbleSize)/2,f=1/0,g=-(1/0);P(e,function(e,t){P(t.getPoints(),function(e,t){g=g>t.size?g:t.size,f=f<t.size?f:t.size})}),o=g-f,a=O(d-c),P(e,function(e,r){P(r.getPoints(),function(e,r){g===f?t=A(p):(i=O(r.size-f)/o,n=a*i+c,t=A(E.sqrt(n))),r.correctCoordinates(t)})})}}function k(e){var t=this;switch(t.type=F(e.type),t.pane=e.pane,t.series=[],t.updateOptions(e),t.type){case"bar":t.adjustSeriesDimensions=m,t.updateSeriesValues=b,t.adjustSeriesValues=v;break;case"rangebar":t.adjustSeriesDimensions=m;break;case"fullstackedbar":t.fullStacked=!0,t.adjustSeriesDimensions=m,t.adjustSeriesValues=v,t.updateSeriesValues=y;break;case"stackedbar":t.adjustSeriesDimensions=m,t.adjustSeriesValues=v,t.updateSeriesValues=y;break;case"fullstackedarea":case"fullstackedline":case"fullstackedspline":case"fullstackedsplinearea":t.fullStacked=!0,t.adjustSeriesValues=v;break;case"stackedarea":case"stackedsplinearea":case"stackedline":case"stackedspline":t.adjustSeriesValues=v;break;case"candlestick":case"stock":t.adjustSeriesDimensions=w;break;case"bubble":t.adjustSeriesDimensions=C}}var S=n(1).isNumeric,I=n(0).extend,T=n(3).each,D=n(1).isDefined,E=Math,A=E.round,O=E.abs,B=E.pow,P=T,M=n(4).noop,R=n(10),V=.3,F=R.normalizeEnum;t.SeriesFamily=k,k.prototype={constructor:k,adjustSeriesDimensions:M,adjustSeriesValues:M,updateSeriesValues:M,updateOptions:function(e){this._options=e},dispose:function(){this.series=null},add:function(e){var t=this.type;this.series=R.map(e,function(e){return e.type===t?e:null})}}},function(e,t,n){function i(e){return{x:e.x-g,y:e.y-_,width:e.width+2*g,height:e.height+2*_}}function o(e,t,n,o){var a=n?["x","width","y","height",t,0]:["y","height","x","width",e,1];return function(e,t,r){var s={x:r.x,y:r.y},l=i(e),u=n?r.y-e.y-e.height/2:r.y-e.y;return s.y=n||!n&&t===b?r.y+u:r.y,l[a[0]]<0?s[a[0]]-=l[a[0]]:l[a[0]]+l[a[1]]+u*a[5]>o[a[1]]&&(s[a[0]]-=l[a[0]]+l[a[1]]+u*a[5]-o[a[1]]),a[4]-l[a[3]]/2<0?s[a[2]]-=a[4]-l[a[3]]/2:a[4]+l[a[3]]/2>o[a[3]]&&(s[a[2]]-=a[4]+l[a[3]]/2-o[a[3]]),s}}function a(e,t,n,i){var o=this;o._renderer=e,o._crosshairGroup=i,o._options={},o.update(t,n)}var r=n(10),s=n(0),l=Math,u=l.abs,c=l.min,d=l.max,h=l.floor,p="horizontal",f="vertical",g=8,_=4,m="center",v="right",y="left",x="top",b="bottom";t.getMargins=function(){return{x:g,y:_}},a.prototype={constructor:a,update:function(e,t){var n=this,i=t.canvas;n._canvas={top:i.top,bottom:i.height-i.bottom,left:i.left,right:i.width-i.right,width:i.width,height:i.height},n._axes=t.axes,n._panes=t.panes,n._prepareOptions(e,p),n._prepareOptions(e,f)},dispose:function(){var e=this;e._renderer=e._crosshairGroup=e._options=e._axes=e._canvas=e._horizontalGroup=e._verticalGroup=e._horizontal=e._vertical=e._circle=e._panes=null},_prepareOptions:function(e,t){var n=e[t+"Line"];this._options[t]={visible:n.visible,line:{stroke:n.color||e.color,"stroke-width":n.width||e.width,dashStyle:n.dashStyle||e.dashStyle,opacity:n.opacity||e.opacity,"stroke-linecap":"butt"},label:(0,s.extend)(!0,{},e.label,n.label)}},_createLines:function(e,t,n){for(var i=[],o=this._canvas,a=[o.left,o.top,o.left,o.top],r=0;r<2;r++)i.push(this._renderer.path(a,"line").attr(e).sharp(t).append(n));return i},render:function(){var e=this,t=e._renderer,n=e._options,i=n.vertical,o=n.horizontal,a=o.visible?o.line:i.line,r={stroke:a.stroke,"stroke-width":a["stroke-width"],dashStyle:a.dashStyle,opacity:a.opacity},s=e._canvas;e._horizontal={},e._vertical={},e._circle=t.circle(s.left,s.top,0).attr(r).append(e._crosshairGroup),e._horizontalGroup=t.g().append(e._crosshairGroup),e._verticalGroup=t.g().append(e._crosshairGroup),i.visible&&(e._vertical.lines=e._createLines(i.line,"h",e._verticalGroup),e._vertical.labels=e._createLabels(e._axes[0],i,!1,e._verticalGroup)),o.visible&&(e._horizontal.lines=e._createLines(o.line,"v",e._horizontalGroup),e._horizontal.labels=e._createLabels(e._axes[1],o,!0,e._horizontalGroup)),e.hide()},_createLabels:function(e,t,n,i){var o,a,s,l,u,c=this,d=c._canvas,h=c._renderer,p=[],f=t.label;return f.visible&&e.forEach(function(e){var c,g=e.getOptions().position;e.getTranslator().getBusinessRange().isEmpty()||(u=e.getLabelsPosition(),n?(a=d.top,o=u):(o=d.left,a=u),c=g===x||g===b?m:g===v?y:v,l=h.rect(0,0,0,0).attr({fill:f.backgroundColor||t.line.stroke}).append(i),s=h.text("0",0,0).css((0,r.patchFontOptions)(t.label.font)).attr({align:c,"class":f.cssClass}).append(i),p.push({text:s,background:l,axis:e,options:f,pos:{coord:u,side:g},startXY:{x:o,y:a}}))}),p},_updateText:function(e,t,n,o,a){var r=this;n.forEach(function(n){var s=n.axis,l=n.startXY,u=n.text,c=n.background,d="";s.name&&s.name!==t||(d=s.getFormattedValue(e,n.options,o)),d?(u.attr({text:d,x:l.x,y:l.y}),u.attr(a(u.getBBox(),n.pos.side,l)),r._updateLinesCanvas(n),c.attr(i(u.getBBox()))):(u.attr({text:""}),c.attr({x:0,y:0,width:0,height:0}))})},hide:function(){this._crosshairGroup.attr({visibility:"hidden"})},_updateLinesCanvas:function(e){var t=e.pos.side,n=e.pos.coord,i=this._linesCanvas,o=this._canvas;i[t]=i[t]!==o[t]&&u(i[t]-o[t])<u(n-o[t])?i[t]:n},_updateLines:function(e,t,n,i,o){for(var a=this._linesCanvas,r=this._canvas,s=o?[[c(t-i,a.left),r.top,t-i,r.top],[t+i,r.top,d(a.right,t+i),r.top]]:[[r.left,c(a.top,n-i),r.left,n-i],[r.left,n+i,r.left,d(a.bottom,n+i)]],l=0;l<2;l++)e[l].attr({points:s[l]}).sharp(o?"v":"h",o?n===r.bottom?-1:1:t===r.right?-1:1)},_resetLinesCanvas:function(){var e=this._canvas;this._linesCanvas={left:e.left,right:e.right,top:e.top,bottom:e.bottom}},_getClipRectForPane:function(e,t){var n,i,o=this._panes;for(n=0;n<o.length;n++)if(i=o[n].coords,i.left<=e&&i.right>=e&&i.top<=t&&i.bottom>=t)return o[n].clipRect;return{id:null}},show:function(e){var t=this,n=e.point,i=n.getCrosshairData(e.x,e.y),a=n.getPointRadius(),r=t._horizontal,s=t._vertical,l=a?a+3:0,u=t._canvas,c=h(i.x),d=h(i.y);c>=u.left&&c<=u.right&&d>=u.top&&d<=u.bottom?(t._crosshairGroup.attr({visibility:"visible"}),t._resetLinesCanvas(),t._circle.attr({cx:c,cy:d,r:l,"clip-path":t._getClipRectForPane(c,d).id}),r.lines&&(t._updateText(i.yValue,i.axis,r.labels,n,o(c,d,!0,u)),t._updateLines(r.lines,c,d,l,!0),t._horizontalGroup.attr({translateY:d-u.top})),s.lines&&(t._updateText(i.xValue,i.axis,s.labels,n,o(c,d,!1,u)),t._updateLines(s.lines,c,d,l,!1),t._verticalGroup.attr({translateX:c-u.left}))):t.hide()}},t.Crosshair=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return{type:e.type,name:e.name,x:e.x,y:e.y,value:e.value,argument:e.argument,axis:e.axis,series:e.series,options:e,offsetX:e.offsetX,offsetY:e.offsetY,draw:function(n,i){var o=this,a=n._renderer.g().append(i);this.plaque=new p.Plaque(e,n,a,t.bind(this),(0,u.isDefined)(e.value)||(0,u.isDefined)(e.argument)),this.plaque.draw(n._getAnnotationCoords(this)),e.allowDragging&&a.on(S,{immediate:!0},function(e){o._dragOffsetX=o.plaque.x-e.pageX,o._dragOffsetY=o.plaque.y-e.pageY}).on(I,function(e){o.plaque.move(e.pageX+o._dragOffsetX,e.pageY+o._dragOffsetY)}).on(T,function(e){o.offsetX=(o.offsetX||0)+e.offset.x,o.offsetY=(o.offsetY||0)+e.offset.y})},hitTest:function(e,t){return this.plaque.hitTest(e,t)},showTooltip:function(e,t){var n=t.x,i=t.y;e.annotation!==this?e.show(this.options,{x:n,y:i},{target:this.options},this.options.customizeTooltip)&&(e.annotation=this):e.move(n,i)}}}function a(e){return o(e,function(t,n,i){var o=i.width,a=i.height,r=t._renderer.text(e.text).css((0,h.patchFontOptions)(e.font)).attr({"class":e.cssClass}).append(n);((0,u.isDefined)(o)||(0,u.isDefined)(a))&&r.setMaxSize(o,a,{wordWrap:e.wordWrap,textOverflow:e.textOverflow})})}function r(e){var t=e.image||{},n=t.width,i=t.height,a=t.url,r=t.location;return o(e,function(e,t,o){var s=o.width,l=o.height,u=s>0?Math.min(n,s):n,c=l>0?Math.min(i,l):i;e._renderer.image(0,0,u,c,a,r||"center").append(t)})}function s(e,t,n){var i=(0,d.extend)(!0,{},t,e);return n&&n.call&&(i=(0,d.extend)(!0,i,n(e))),"image"===i.type?r(i):"text"===i.type?a(i):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t.plugins=t.__test_utils=t.createAnnotations=void 0;var l=n(11),u=n(1),c=n(108),d=n(0),h=n(10),p=n(403),f=n(24),g=i(f),_=n(55),m=i(_),v=n(8),y=n(5),x=i(y),b="annotations",w="."+b,C=(0,v.addNamespace)([g.default.down,g.default.move],b),k=(0,v.addNamespace)(g.default.up,b),S=m.default.start+w,I=m.default.move+w,T=m.default.end+w,D=t.createAnnotations=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];return e.reduce(function(e,i){var o=s(i,t,n);return o&&e.push(o),e},[])},E={name:"annotations_chart",init:function(){},dispose:function(){},members:{_getAnnotationCoords:function(e){var t={offsetX:e.offsetX,offsetY:e.offsetY},n=this._options.rotated?"y":"x",i=this._options.rotated?"x":"y",o=this.getArgumentAxis(),a=o.validateUnit(e.argument),r=this.getValueAxis(e.axis),s=void 0,l=(0,u.isDefined)(r)?r.pane:void 0;if(e.series&&(s=this.series.filter(function(t){return t.name===e.series})[0],r=s&&s.getValueAxis(),(0,u.isDefined)(r)&&(l=r.pane)),(0,u.isDefined)(a)){if(s){var c=s.getPointCenterByArg(a);c&&(t[n]=c[n])}else t[n]=o.getTranslator().translate(a);!(0,u.isDefined)(l)&&(l=o.pane)}var d=r&&r.validateUnit(e.value);return(0,u.isDefined)(d)&&(t[i]=r&&r.getTranslator().translate(d),!(0,u.isDefined)(l)&&(0,u.isDefined)(r)&&(l=r.pane)),t.canvas=this._getCanvasForPane(l),(0,u.isDefined)(t[n])&&!(0,u.isDefined)(d)&&((0,u.isDefined)(r)||(0,u.isDefined)(s)?(0,u.isDefined)(r)&&!(0,u.isDefined)(s)?t[i]=this._argumentAxes.filter(function(e){return e.pane===r.pane})[0].getAxisPosition():(0,u.isDefined)(s)&&s.checkSeriesViewportCoord(o,t[n])&&(t[i]=s.getSeriesPairCoord(t[n],!0)):t[i]=o.getAxisPosition()),!(0,u.isDefined)(a)&&(0,u.isDefined)(t[i])&&((0,u.isDefined)(r)&&!(0,u.isDefined)(s)?t[n]=r.getAxisPosition():(0,u.isDefined)(s)&&s.checkSeriesViewportCoord(r,t[i])&&(t[n]=s.getSeriesPairCoord(t[i],!1))),t},_annotationsPointerEventHandler:function(e){var t=e.originalEvent||{},n=t.touches&&t.touches[0]||{},i=this._renderer.getRootOffset(),o={x:n.pageX||t.pageX||e.pageX,y:n.pageY||t.pageY||e.pageY},a=this._annotations.items.filter(function(e){return e.hitTest(o.x-i.left,o.y-i.top)})[0];return a&&a.options.tooltipEnabled?(this.hideTooltip(),this.clearHover(),a.options.allowDragging&&e.type===g.default.down&&(this._annotations._hideToolTipForDrag=!0),void(this._annotations._hideToolTipForDrag||(a.showTooltip(this._annotations.tooltip,o),e.stopPropagation()))):void this._annotations.hideTooltip()}}},A={name:"annotations_core",init:function(){this._annotations={items:[],_hideToolTipForDrag:!1,tooltip:new c.Tooltip({cssClass:this._rootClassPrefix+"-annotation-tooltip",eventTrigger:this._eventTrigger,widgetRoot:this.element()}),hideTooltip:function(){this.tooltip.annotation=null,this.tooltip.hide()}},this._annotations.tooltip.setRendererOptions(this._getRendererOptions());var e=(0,d.extend)({},this._themeManager.getOptions("tooltip"));e.customizeTooltip=void 0,this._annotations.tooltip.update(e)},dispose:function(){this._annotationsGroup.linkRemove().linkOff(),x.default.off((0,l.getDocument)(),w),this._annotationsGroup.off(w),this._annotations.tooltip&&this._annotations.tooltip.dispose()},extenders:{_createHtmlStructure:function(){var e=this;this._annotationsGroup=this._renderer.g().attr({"class":this._rootClassPrefix+"-annotations"}).linkOn(this._renderer.root,"annotations").linkAppend(),x.default.on((0,l.getDocument)(),C,function(){return e._annotations.hideTooltip()}),x.default.on((0,l.getDocument)(),k,function(t){e._annotations._hideToolTipForDrag=!1,e._annotationsPointerEventHandler(t)}),this._annotationsGroup.on(C,this._annotationsPointerEventHandler.bind(this))},_renderExtraElements:function(){var e=this;this._annotationsGroup.clear(),this._annotations.items.forEach(function(t){return t.draw(e,e._annotationsGroup)})},_stopCurrentHandling:function(){this._annotations.hideTooltip()}},members:{_buildAnnotations:function(){this._annotations.items=[];var e=this._getOption("annotations");e&&e.length&&(this._annotations.items=D(e,this._getOption("commonAnnotationSettings"),this._getOption("customizeAnnotation")))},_getAnnotationCoords:function(){return{}}},customize:function(e){e.addChange({code:"ANNOTATIONITEMS",handler:function(){this._requestChange(["ANNOTATIONS"])},isOptionChange:!0,option:"annotations"}),e.addChange({code:"ANNOTATIONSSETTINGS",handler:function(){this._requestChange(["ANNOTATIONS"])},isOptionChange:!0,option:"commonAnnotationSettings"}),e.addChange({code:"ANNOTATIONS",handler:function(){this._buildAnnotations(),this._change(["FORCE_RENDER"])},isThemeDependent:!0,isOptionChange:!0})},fontFields:["commonAnnotationSettings.font"]};t.plugins={core:A,chart:E}},function(e,t,n){function i(){this.setDomain(arguments[0],arguments[1]).setCodomain(arguments[2],arguments[3])}var o=Number;i.prototype={constructor:i,setDomain:function(e,t){var n=this;return n._domain1=o(e),n._domain2=o(t),n._domainDelta=n._domain2-n._domain1,n},setCodomain:function(e,t){var n=this;return n._codomain1=o(e),n._codomain2=o(t),n._codomainDelta=n._codomain2-n._codomain1,n},getDomain:function(){return[this._domain1,this._domain2]},getCodomain:function(){return[this._codomain1,this._codomain2]},getDomainStart:function(){return this._domain1},getDomainEnd:function(){return this._domain2},getCodomainStart:function(){return this._codomain1},getCodomainEnd:function(){return this._codomain2},getDomainRange:function(){return this._domainDelta},getCodomainRange:function(){return this._codomainDelta},translate:function(e){var t=(o(e)-this._domain1)/this._domainDelta;return 0<=t&&t<=1?this._codomain1+t*this._codomainDelta:NaN},adjust:function(e){var t=(o(e)-this._domain1)/this._domainDelta,n=NaN;return t<0?n=this._domain1:t>1?n=this._domain2:0<=t&&t<=1&&(n=o(e)),n}},t.Translator1D=i},function(e,t,n){function i(e,t,n,i){var o;return n>e&&i<t?o=[{start:e,end:n},{start:i,end:t}]:n>=t||i<=e?o=[{start:e,end:t}]:n<=e&&i>=t?o=[]:n>e?o=[{start:e,end:n}]:i<t&&(o=[{start:i,end:t}]),o}function o(e,t,n,i){var o;return n<e&&i>t?o=[{start:e,end:n},{start:i,end:t}]:n<=t||i>=e?o=[{start:e,end:t}]:n>=e&&i<=t?o=[]:n<e?o=[{start:e,end:n}]:i>t&&(o=[{start:i,end:t}]),o}function a(e,t,n){return t-e>=n}function r(e,t,n){return e-t>=n}var s=n(3),l=n(275).BaseElement,u=Number,c=Math.abs,d=n(1).isString,h=Array.isArray,p=isFinite,f=s.each,g=l.inherit({
66_init:function(){this._root=this._renderer.g().attr({"class":"dxg-range-container"}).linkOn(this._container,"range-container")},_dispose:function(){this._root.linkOff()},clean:function(){return this._root.linkRemove().clear(),this._options=this.enabled=null,this},_getRanges:function(){var e,t=this,n=t._options,s=t._translator,l=s.getDomain()[0],g=s.getDomain()[1],_=g-l,m=_>=0?a:r,v=_>=0?i:o,y=[],x=[],b=[{start:l,end:g}],w=c(_)/1e4,C=d(n.backgroundColor)?n.backgroundColor:"none",k=n.width||{},S=u(k>0?k:k.start),I=u(k>0?k:k.end),T=I-S;return(void 0===n.ranges||h(n.ranges))&&S>=0&&I>=0&&S+I>0?(y=(h(n.ranges)?n.ranges:[]).reduce(function(e,t,n){t=t||{};var i=s.adjust(t.startValue),o=s.adjust(t.endValue);return p(i)&&p(o)&&m(i,o,w)&&e.push({start:i,end:o,color:t.color,classIndex:n}),e},[]),e=t._themeManager.createPalette(n.palette,{type:"indicatingSet",extensionMode:n.paletteExtensionMode,keepLastColorInEnd:!0,count:y.length}),f(y,function(t,n){var i=e.getNextColor();n.color=d(n.color)&&n.color||i||"none",n.className="dxg-range dxg-range-"+n.classIndex,delete n.classIndex}),f(y,function(e,t){var n,i,o,a,r,s=[],l=[];for(n=0,i=x.length;n<i;++n)r=x[n],a=v(r.start,r.end,t.start,t.end),(o=a[0])&&(o.color=r.color)&&(o.className=r.className)&&s.push(o),(o=a[1])&&(o.color=r.color)&&(o.className=r.className)&&s.push(o);for(s.push(t),x=s,n=0,i=b.length;n<i;++n)r=b[n],a=v(r.start,r.end,t.start,t.end),(o=a[0])&&l.push(o),(o=a[1])&&l.push(o);b=l}),f(b,function(e,t){t.color=C,t.className="dxg-range dxg-background-range",x.push(t)}),f(x,function(e,t){t.startWidth=(t.start-l)/_*T+S,t.endWidth=(t.end-l)/_*T+S}),x):null},render:function(e){var t=this;return t._options=e,t._processOptions(),t._ranges=t._getRanges(),t._ranges&&(t.enabled=!0,t._root.linkAppend()),t},resize:function(e){var t=this;return t._root.clear(),t._isVisible(e)&&f(t._ranges,function(n,i){t._createRange(i,e).attr({fill:i.color,"class":i.className}).append(t._root)}),t},_processOptions:null,_isVisible:null,_createRange:null,getColorForValue:function(e){var t=null;return f(this._ranges,function(n,i){if(i.start<=e&&e<=i.end||i.start>=e&&e>=i.end)return t=i.color,!1}),t}});e.exports=g},function(e,t,n){function i(e,t){var n=_(e),i=_(t),o=n.cos,a=n.sin,r=i.cos,s=i.sin;return{left:a<=0&&s>=0||a<=0&&s<=0&&o<=r||a>=0&&s>=0&&o>=r?-1:w(o,r,0),right:a>=0&&s<=0||a>=0&&s>=0&&o>=r||a<=0&&s<=0&&o<=r?1:b(o,r,0),up:o<=0&&r>=0||o<=0&&r<=0&&a>=s||o>=0&&r>=0&&a<=s?-1:-b(a,s,0),down:o>=0&&r<=0||o>=0&&r>=0&&a<=s||o<=0&&r<=0&&a>=s?1:-w(a,s,0)}}function o(e){return e.right-e.left}function a(e){return e.bottom-e.top}function r(e,t,n){var i,r=c({},e),s=0,l=0;return n=n||{},t>0&&(r.left+=n.left||0,r.right-=n.right||0,r.top+=n.top||0,r.bottom-=n.bottom||0,o(r)>0&&a(r)>0?(i=a(r)/o(r),i>1?t<i?s=o(r):l=a(r):t>i?l=a(r):s=o(r),s>0||(s=l/t),l>0||(l=s*t),s=(o(r)-s)/2,l=(a(r)-l)/2,r.left+=s,r.right-=s,r.top+=l,r.bottom-=l):(r.left=r.right=(r.left+r.right)/2,r.top=r.bottom=(r.top+r.bottom)/2)),r}var s=isFinite,l=n(9),u=n(48),c=n(0).extend,d=n(3).each,h=n(146).dxBaseGauge,p=n(208).dxGauge,f=n(10),g=f.normalizeAngle,_=f.getCosAndSin,m=n(801),v=n(208).createIndicatorCreator,y=n(802),x=Math.abs,b=Math.max,w=Math.min,C=Math.round,k=d,S=Math.PI,I=p.inherit({_rootClass:"dxg-circular-gauge",_factoryMethods:{rangeContainer:"createCircularRangeContainer",indicator:"createCircularIndicator"},_gridSpacingFactor:17,_scaleTypes:{type:"polarAxes",drawingType:"circular"},_getThemeManagerOptions:function(){var e=this.callBase.apply(this,arguments);return e.subTheme="_circular",e},_updateScaleTickIndent:function(e){var t=e.label.indentFromTick,n=e.tick.visible?e.tick.length:0,i=this._scale.measureLabels(c({},this._canvas)),o=n;"inside"===e.orientation?o=0:"center"===e.orientation&&(o=.5*n),e.label.indentFromAxis=t>=0?t+o:t-o-b(i.width,i.height),this._scale.updateOptions(e)},_setupCodomain:function(){var e,t=this,n=t.option("geometry")||{},o=n.startAngle,a=n.endAngle;o=s(o)?g(o):225,a=s(a)?g(a):-45,x(o-a)<1?(a-=360,e={left:-1,up:-1,right:1,down:1}):(o<a&&(a-=360),e=i(o,a)),t._area={x:0,y:0,radius:100,startCoord:o,endCoord:a,sides:e},t._translator.setCodomain(o,a)},_shiftScale:function(e){var t,n=this._scale,i=n.getCanvas();i.width=i.height=2*e.radius,n.draw(i),t=n.getCenter(),n.shift({right:e.x-t.x,bottom:e.y-t.y})},_getScaleLayoutValue:function(){return this._area.radius},_getTicksOrientation:function(e){return e.orientation},_getTicksCoefficients:function(e){var t={inner:0,outer:1};return"inside"===e.orientation?(t.inner=1,t.outer=0):"center"===e.orientation&&(t.inner=t.outer=.5),t},_correctScaleIndents:function(e,t,n){t>=0?(e.horizontalOffset=t+n.width,e.verticalOffset=t+n.height):(e.horizontalOffset=e.verticalOffset=0,e.min-=-t+b(n.width,n.height)),e.inverseHorizontalOffset=n.width/2,e.inverseVerticalOffset=n.height/2},_measureMainElements:function(e,t){var n=this,i=n._area.radius,o=0,a=1/0,r=0,s=0,l=0,u=0,c=n._scale;return k(e.concat(c),function(e,n){var c=n.measure?n.measure({radius:i-n.getOffset()}):t;c.min>0&&(a=w(a,c.min)),c.max>0&&(o=b(o,c.max)),c.horizontalOffset>0&&(r=b(r,c.max+c.horizontalOffset)),c.verticalOffset>0&&(s=b(s,c.max+c.verticalOffset)),c.inverseHorizontalOffset>0&&(l=b(l,c.inverseHorizontalOffset)),c.inverseVerticalOffset>0&&(u=b(u,c.inverseVerticalOffset))}),r=b(r-o,0),s=b(s-o,0),{minRadius:a,maxRadius:o,horizontalMargin:r,verticalMargin:s,inverseHorizontalMargin:l,inverseVerticalMargin:u}},_applyMainLayout:function(e,t){var n,i,s=this._measureMainElements(e,t),l=this._area,u=l.sides,c={left:(u.left<-.1?s.horizontalMargin:s.inverseHorizontalMargin)||0,right:(u.right>.1?s.horizontalMargin:s.inverseHorizontalMargin)||0,top:(u.up<-.1?s.verticalMargin:s.inverseVerticalMargin)||0,bottom:(u.down>.1?s.verticalMargin:s.inverseVerticalMargin)||0},d=r(this._innerRect,(u.down-u.up)/(u.right-u.left),c),h=w(o(d)/(u.right-u.left),a(d)/(u.down-u.up));h=h-s.maxRadius+l.radius,n=d.left-o(d)*u.left/(u.right-u.left),i=d.top-a(d)*u.up/(u.down-u.up),l.x=C(n),l.y=C(i),l.radius=h,d.left-=c.left,d.right+=c.right,d.top-=c.top,d.bottom+=c.bottom,this._innerRect=d},_getElementLayout:function(e){return{x:this._area.x,y:this._area.y,radius:C(this._area.radius-e)}},_getApproximateScreenRange:function(){var e=this,t=e._area,n=w(e._canvas.width/(t.sides.right-t.sides.left),e._canvas.height/(t.sides.down-t.sides.up));return n>t.totalRadius&&(n=t.totalRadius),n=.8*n,-e._translator.getCodomainRange()*n*S/180},_getDefaultSize:function(){return{width:300,height:300}},_factory:u.clone(h.prototype._factory)}),T=I.prototype._factory.indicators={};I.prototype._factory.createIndicator=v(T),T._default=m._default,T.rectangleneedle=m.rectangleneedle,T.triangleneedle=m.triangleneedle,T.twocolorneedle=m.twocolorneedle,T.trianglemarker=m.trianglemarker,T.textcloud=m.textcloud,T.rangebar=m.rangebar,I.prototype._factory.RangeContainer=y,l("dxCircularGauge",I),e.exports=I},function(e,t,n){function i(e,t){return D(e-t)<1e-8}function o(e,t){return i(e[0],t[0])&&i(e[1],t[1])}function a(e,t,n,i){var o=S(e);return isFinite(o)?I(T(o,t),n):i}function r(e,t,n,i){return[a(e[0],t[0],n[0],i[0]),a(e[1],t[1],n[1],i[1])]}function s(e){return e instanceof p&&e||x.get(e)||x.get(F)}function l(e){var t=this;t._initEvents(),t._params=e,t._engine=s(),t._center=t._engine.center(),t._adjustCenter()}function u(e,t,n,i){var o=(n+i)/2;return D(e-o)>D(t-o)?e:t}function c(e,t,n,i){var o=(n+i)/2;return D(e-o)<D(t-o)?e:t}function d(e,t,n){var i=e([n[0],n[3]]),o=e([n[0],n[1]]),a=e([n[2],n[3]]),r=e([n[2],n[1]]),s=c(i[0],o[0],a[0],r[0]),l=c(a[0],r[0],i[0],o[0]),u=c(i[1],a[1],o[1],r[1]),d=c(o[1],r[1],i[1],a[1]);return[2/T(D(s-l),D(u-d)),t([(s+l)/2,(u+d)/2])]}function h(e,t,n){var i=b(t,n);e.min=y(i.min),e.max=y(i.max)}function p(e){var t=this,n=_(e.to),i=e.from?m(e.from):v(V);t.project=n,t.unproject=i,t.original=v(t),t.source=function(){return C({},e)},t.isInvertible=v(!!e.from),t.ar=v(e.aspectRatio>0?S(e.aspectRatio):1),t.center=y(i([0,0])),h(t,[i([-1,0])[0],i([0,1])[1]],[i([1,0])[0],i([0,-1])[1]])}function f(e){return e instanceof p}function g(e){return[e[0],-e[1]]}function _(e){return function(t){return g(e(t))}}function m(e){return function(t){return e(g(t))}}function v(e){return function(){return e}}function y(e){return function(){return e.slice()}}function x(e){return e&&e.to?new p(e):null}function b(e,t){return{min:[I(e[0],t[0]),I(e[1],t[1])],max:[T(e[0],t[0]),T(e[1],t[1])]}}function w(e,t,n,i,o){var a=(n[0]+i[0])/2-o/2,r=(n[1]+i[1])/2-o/2,s=2/o;return{to:function(t){var n=e(t);return[-1+(n[0]-a)*s,-1+(n[1]-r)*s]},from:function(e){var n=[a+(e[0]+1)/s,r+(e[1]+1)/s];return t(n)}}}var C=n(0).extend,k=n(416),S=Number,I=Math.min,T=Math.max,D=Math.abs,E=Math.round,A=Math.log,O=Math.pow,B=2/Math.LN2,P=1/3600/180/10,M=1,R=256,V=[NaN,NaN],F="mercator";l.prototype={constructor:l,_minZoom:M,_maxZoom:R,_zoom:M,_center:V,_canvas:{},_scale:[],dispose:function(){this._disposeEvents()},setEngine:function(e){var t=this,n=s(e);t._engine!==n&&(t._engine=n,t._fire("engine"),t._changeCenter(n.center())&&t._triggerCenterChanged(),t._changeZoom(t._minZoom)&&t._triggerZoomChanged(),t._adjustCenter(),t._setupScreen())},setBounds:function(e){void 0!==e&&this.setEngine(this._engine.original().bounds(e))},_setupScreen:function(){var e=this,t=e._canvas,n=t.width,i=t.height,o=e._engine.ar();e._x0=t.left+n/2,e._y0=t.top+i/2,n/i<=o?(e._xRadius=n/2,e._yRadius=n/2/o):(e._xRadius=i/2*o,e._yRadius=i/2),e._fire("screen")},setSize:function(e){var t=this;t._canvas=e,t._setupScreen()},_toScreen:function(e){return[this._x0+this._xRadius*e[0],this._y0+this._yRadius*e[1]]},_fromScreen:function(e){return[(e[0]-this._x0)/this._xRadius,(e[1]-this._y0)/this._yRadius]},_toTransformed:function(e){return[e[0]*this._zoom+this._xCenter,e[1]*this._zoom+this._yCenter]},_toTransformedFast:function(e){return[e[0]*this._zoom,e[1]*this._zoom]},_fromTransformed:function(e){return[(e[0]-this._xCenter)/this._zoom,(e[1]-this._yCenter)/this._zoom]},_adjustCenter:function(){var e=this,t=e._engine.project(e._center);e._xCenter=-t[0]*e._zoom||0,e._yCenter=-t[1]*e._zoom||0},project:function(e){return this._engine.project(e)},transform:function(e){return this._toScreen(this._toTransformedFast(e))},isInvertible:function(){return this._engine.isInvertible()},getSquareSize:function(e){return[e[0]*this._zoom*this._xRadius,e[1]*this._zoom*this._yRadius]},getZoom:function(){return this._zoom},_changeZoom:function(e){var t=this,n=t._zoom,o=t._zoom=a(e,t._minZoom,t._maxZoom,t._minZoom),r=!i(n,o);return r&&(t._adjustCenter(),t._fire("zoom")),r},setZoom:function(e){this._engine.isInvertible()&&this._changeZoom(e)&&this._triggerZoomChanged()},getScaledZoom:function(){return E((this._scale.length-1)*A(this._zoom)/A(this._maxZoom))},setScaledZoom:function(e){this.setZoom(this._scale[E(e)])},changeScaledZoom:function(e){this.setZoom(this._scale[T(I(E(this.getScaledZoom()+e),this._scale.length-1),0)])},getZoomScalePartition:function(){return this._scale.length-1},_setupScaling:function(){var e,t,n=this,i=E(B*A(n._maxZoom)),o=1;for(i=i>4?i:4,e=O(n._maxZoom,1/i),t=n._minZoom,n._scale=[t];o<=i;++o)n._scale.push(t*=e)},setMaxZoom:function(e){var t=this;t._minZoom=M,t._maxZoom=a(e,t._minZoom,S.MAX_VALUE,R),t._setupScaling(),t._zoom>t._maxZoom&&t.setZoom(t._maxZoom),t._fire("max-zoom")},getCenter:function(){return this._center.slice()},setCenter:function(e){this._engine.isInvertible()&&this._changeCenter(e||[])&&this._triggerCenterChanged()},_changeCenter:function(e){var t=this,n=t._engine,i=t._center,a=t._center=r(e,n.min(),n.max(),n.center()),s=!o(i,a);return s&&(t._adjustCenter(),t._fire("center")),s},_triggerCenterChanged:function(){this._params.centerChanged(this.getCenter())},_triggerZoomChanged:function(){this._params.zoomChanged(this.getZoom())},setCenterByPoint:function(e,t){var n=this,i=n._engine.project(e),o=n._fromScreen(t);n.setCenter(n._engine.unproject([-o[0]/n._zoom+i[0],-o[1]/n._zoom+i[1]]))},beginMoveCenter:function(){this._engine.isInvertible()&&(this._moveCenter=this._center)},endMoveCenter:function(){var e=this;e._moveCenter&&(o(e._moveCenter,e._center)||e._triggerCenterChanged(),e._moveCenter=null)},moveCenter:function(e){var t,n,i=this;i._moveCenter&&(t=i._toScreen(i._toTransformed(i._engine.project(i._center))),n=i._engine.unproject(i._fromTransformed(i._fromScreen([t[0]+e[0],t[1]+e[1]]))),i._changeCenter(n))},getViewport:function(){var e=this,t=e._engine.unproject,n=t(e._fromTransformed([-1,-1])),i=t(e._fromTransformed([-1,1])),o=t(e._fromTransformed([1,-1])),a=t(e._fromTransformed([1,1])),r=b([u(n[0],i[0],o[0],a[0]),u(n[1],o[1],i[1],a[1])],[u(o[0],a[0],n[0],i[0]),u(i[1],a[1],n[1],o[1])]);return[].concat(r.min,r.max)},setViewport:function(e){var t=this._engine,n=e?d(t.project,t.unproject,e):[this._minZoom,t.center()];this.setZoom(n[0]),this.setCenter(n[1])},getTransform:function(){return{translateX:this._xCenter*this._xRadius,translateY:this._yCenter*this._yRadius}},fromScreenPoint:function(e){return this._engine.unproject(this._fromTransformed(this._fromScreen(e)))},_eventNames:["engine","screen","center","zoom","max-zoom"]},k.makeEventEmitter(l),p.prototype.aspectRatio=function(e){var t=new p(C(this.source(),{aspectRatio:e}));return t.original=this.original,t.min=this.min,t.max=this.max,t},p.prototype.bounds=function(e){e=e||[];var t,n=this.source(),i=this.min(),o=this.max(),a=r([e[0],e[1]],i,o,i),s=r([e[2],e[3]],i,o,o),l=n.to(a),u=n.to(s),c=I(D(u[0]-l[0])>P?D(u[0]-l[0]):2,D(u[1]-l[1])>P?D(u[1]-l[1]):2);return c<2&&C(n,w(n.to,n.from,l,u,c)),t=new p(n),t.original=this.original,h(t,a,s),t};var L={};x.get=function(e){return L[e]||null},x.add=function(e,t){return!L[e]&&f(t)&&(L[e]=t),x},t.Projection=l,t.projection=x},function(e,t,n){var i=n(25),o={_initEvents:function(){var e,t=this._eventNames,n=t.length,o=this._events={};for(e=0;e<n;++e)o[t[e]]=i()},_disposeEvents:function(){var e,t=this._events;for(e in t)t[e].empty();this._events=null},on:function(e){function t(){for(n in e)i[n].remove(e[n])}var n,i=this._events;for(n in e)i[n].add(e[n]);return t},_fire:function(e,t){this._events[e].fire(t)}};t.makeEventEmitter=function(e){var t,n=e.prototype;for(t in o)n[t]=o[t]}},function(e,t,n){function i(e,t){return s(r(e,+t),-t)}var o=n(415),a=o.projection,r=Math.min,s=Math.max,l=Math.sin,u=Math.asin,c=Math.tan,d=Math.atan,h=Math.exp,p=Math.log,f=Math.PI,g=f/4,_=180,m=90,v=f/180,y=(2*d(h(f))-f/2)/v,x=(2.5*d(h(.8*f))-.625*f)/v;a.add("mercator",a({aspectRatio:1,to:function(e){return[e[0]/_,p(c(g+i(e[1],y)*v/2))/f]},from:function(e){return[e[0]*_,(2*d(h(e[1]*f))-f/2)/v]}})),a.add("equirectangular",a({aspectRatio:2,to:function(e){return[e[0]/_,e[1]/m]},from:function(e){return[e[0]*_,e[1]*m]}})),a.add("lambert",a({aspectRatio:2,to:function(e){return[e[0]/_,l(i(e[1],m)*v)]},from:function(e){return[e[0]*_,u(i(e[1],1))/v]}})),a.add("miller",a({aspectRatio:1,to:function(e){return[e[0]/_,1.25*p(c(g+i(e[1],x)*v*.4))/f]},from:function(e){return[e[0]*_,(2.5*d(h(.8*e[1]*f))-.625*f)/v]}})),t.projection=a},function(e,t,n){function i(e,t){var n=e.lineSpacing,i=(void 0!==n&&null!==n?n:h)+e.size;return function(e){for(var n="",o=e.valueText,a=0;a<o.length;a+=2)n+="<tr><td>"+o[a]+"</td><td style='width: 15px'></td><td style='text-align: "+(t?"left":"right")+"'>"+o[a+1]+"</td></tr>";return{html:"<table style='border-spacing:0px; line-height: "+i+"px'>"+n+"</table>"}}}function o(e,t,n){var o=i(t,n);return u(e)?function(t){var n=e.call(t,t);return"html"in n||"text"in n||_(n,o.call(t,t)),n}:o}function a(e){var t=new g.Translator2D({},{},{shiftZeroValue:!e,isHorizontal:!!e});return{getTranslator:function(){return t},update:function(e,n,i){t.update(e,n,i)},getVisibleArea:function(){var e=t.getCanvasVisibleArea();return[e.min,e.max]},visualRange:m,calculateInterval:m,getMarginOptions:function(){return{}}}}var r=n(5),s=n(11),l=n(47).add,u=n(1).isFunction,c=n(97),d=n(0).extend,h=2,p=100,f=n(8),g=n(274),_=d,m=n(4).noop,v=c.inherit({_getLayoutItems:m,_useLinks:!1,_themeDependentChanges:["OPTIONS"],_initCore:function(){var e=this;e._tooltipTracker=e._renderer.root,e._tooltipTracker.attr({"pointer-events":"visible"}),e._createHtmlElements(),e._initTooltipEvents(),e._argumentAxis=a(!0),e._valueAxis=a()},_getDefaultSize:function(){return this._defaultSize},_disposeCore:function(){this._disposeWidgetElements(),this._disposeTooltipEvents(),this._ranges=null},_optionChangesOrder:["OPTIONS"],_change_OPTIONS:function(){this._prepareOptions(),this._change(["UPDATE"])},_customChangesOrder:["UPDATE"],_change_UPDATE:function(){this._update()},_update:function(){var e=this;e._tooltipShown&&(e._tooltipShown=!1,e._tooltip.hide()),e._cleanWidgetElements(),e._updateWidgetElements(),e._drawWidgetElements()},_updateWidgetElements:function(){var e=this._getCorrectCanvas();this._updateRange(),this._argumentAxis.update(this._ranges.arg,e,this._getStick()),this._valueAxis.update(this._ranges.val,e)},_getStick:function(){},_applySize:function(e){this._allOptions.size={width:e[2]-e[0],height:e[3]-e[1]},this._change(["UPDATE"])},_setupResizeHandler:m,_prepareOptions:function(){return _(!0,{},this._themeManager.theme(),this.option())},_getTooltipCoords:function(){var e=this._canvas,t=this._renderer.getRootOffset();return{x:e.width/2+t.left,y:e.height/2+t.top}},_initTooltipEvents:function(){var e=this,t={widget:e};e._showTooltipCallback=function(){var t;e._tooltipShown||(e._tooltipShown=!0,t=e._getTooltip(),t.isEnabled()&&e._tooltip.show(e._getTooltipData(),e._getTooltipCoords(),{}))},e._hideTooltipCallback=function(){e._hideTooltipTimeout=null,e._tooltipShown&&(e._tooltipShown=!1,e._tooltip.hide())},e._disposeCallbacks=function(){e=e._showTooltipCallback=e._hideTooltipCallback=e._disposeCallbacks=null},e._tooltipTracker.on(x,t).on(T,t),e._tooltipTracker.on(y)},_stopCurrentHandling:function(){this._hideTooltip()},_disposeTooltipEvents:function(){var e=this;clearTimeout(e._hideTooltipTimeout),e._tooltipTracker.off(),e._disposeCallbacks()},_getTooltip:function(){var e=this;return e._tooltip||(D.apply(this,arguments),e._setTooltipRendererOptions(e._tooltipRendererOptions),e._tooltipRendererOptions=null,e._setTooltipOptions()),e._tooltip}}),y={"contextmenu.sparkline-tooltip":function(e){(f.isTouchEvent(e)||f.isPointerEvent(e))&&e.preventDefault()},"MSHoldVisual.sparkline-tooltip":function(e){e.preventDefault()}},x={"mouseover.sparkline-tooltip":function(e){I=!1;var t=e.data.widget;t._x=e.pageX,t._y=e.pageY,t._tooltipTracker.off(b).on(b,e.data),t._showTooltip()},"mouseout.sparkline-tooltip":function(e){if(!I){var t=e.data.widget;t._tooltipTracker.off(b),t._hideTooltip(p)}}},b={"mousemove.sparkline-tooltip":function(e){var t=e.data.widget;t._x=e.pageX,t._y=e.pageY,t._showTooltip()}},w=null,C=function(e){var t=w;t&&t!==e.data.widget&&t._hideTooltip(p),t=w=e.data.widget,t._showTooltip(),t._touch=!0},k=function(){var e=w;e&&(e._touch||(e._hideTooltip(p),w=null),e._touch=null)},S=function(){var e=w;e&&(e._hideTooltip(p),w=null)},I=!1,T={"pointerdown.sparkline-tooltip":C,"touchstart.sparkline-tooltip":C};l(function(){r.subscribeGlobal(s.getDocument(),{"pointerdown.sparkline-tooltip":function(){I=!0,k()},"touchstart.sparkline-tooltip":k,"pointerup.sparkline-tooltip":S,"touchend.sparkline-tooltip":S})}),e.exports=v,v.addPlugin(n(108).plugin);var D=v.prototype._initTooltip;v.prototype._initTooltip=m;var E=v.prototype._disposeTooltip;v.prototype._disposeTooltip=function(){this._tooltip&&E.apply(this,arguments)},v.prototype._setTooltipRendererOptions=function(){var e=this._getRendererOptions();this._tooltip?this._tooltip.setRendererOptions(e):this._tooltipRendererOptions=e},v.prototype._setTooltipOptions=function(){var e=this._tooltip,t=e&&this._getOption("tooltip");e&&e.update(_({},t,{customizeTooltip:o(t.customizeTooltip,t.font,this.option("rtlEnabled")),enabled:t.enabled&&this._isTooltipEnabled()}))},v.prototype._showTooltip=function(){var e=this;clearTimeout(e._hideTooltipTimeout),e._hideTooltipTimeout=null,e._showTooltipCallback()},v.prototype._hideTooltip=function(e){var t=this;clearTimeout(t._hideTooltipTimeout),e?t._hideTooltipTimeout=setTimeout(t._hideTooltipCallback,e):t._hideTooltipCallback()};var A=d(!0,{},n(96).plugin,{init:m,dispose:m,customize:null,members:{_getExportMenuOptions:null}});v.addPlugin(A)},function(e,t,n){function i(e,t){return a(e,t)}function o(e){return r(e,i,!1)}var a=Math.max,r=n(420);n(123).addAlgorithm("squarified",o),e.exports=o},function(e,t,n){function i(e,t){return t.value-e.value}function o(e){return l(e,1/e)}function a(e,t,n){var i,a,r,s,l,c=1/0,d=0,h=e.length,p=n.areaToValue/n.staticSide;for(r=t;r<h;){for(a=d+e[r].value,l=n.staticSide/p/a,i=0,s=t;s<=r;++s)i=n.accumulate(i,o(l*e[s].value/a),s-t+1);if(!(i<c))break;c=i,d=a,++r}return{sum:d,count:r-t,side:u(p*d)}}function r(e){return(e[2]-e[0])*(e[3]-e[1])}function s(e,t,n){var i=c.buildSidesData(n.rect,n.directions,n.staticSideIndex),o=r(n.rect),s=o>0?a(e,t,{areaToValue:o/n.sum,accumulate:n.accumulate,staticSide:i.staticSide}):{sum:1,side:i.variedSide,count:e.length-t};return c.calculateRectangles(e,t,n.rect,i,s),n.sum-=s.sum,t+s.count}var l=Math.max,u=Math.round,c=n(123);e.exports=function(e,t,n){var o,a=e.items,r=a.length,l={sum:e.sum,rect:e.rect,directions:e.directions,accumulate:t};for(n&&(l.staticSideIndex=c.getStaticSideIndex(l.rect)),a.sort(i),o=0;o<r;)o=s(a,o,l)}},function(e,t,n){function i(e,t,n){var i=t.createPalette(e.palette,{useHighlight:!0,extensionMode:e.paletteExtensionMode,count:e.colorizeGroups?r(n):o(n)});return(e.colorizeGroups?l:a)(i,n)}function o(e){var t,n,i=e.nodes.slice(),a=i.length,r=0;for(t=0;t<a;++t)n=i[t],n.isNode()?r=Math.max(r,o(n)):r+=1;return r}function a(e){var t=e.generateColors();return function(e){return t[e.index]}}function r(e){var t,n,i=e.nodes.slice(),o=i.length,a=0;for(t=0;t<o;++t)n=i[t],n.isNode()&&(a+=r(n)+1);return a}function s(e,t){var n,i,o={},a=t.nodes.slice(),r=a.length;for(n=0;n<r;++n)i=a[n],i.isNode()?(a=a.concat(i.nodes),r=a.length):o[i.parent._id]||(o[i.parent._id]=e.getNextColor());return o}function l(e,t){var n=s(e,t);return function(e){return n[e._id]}}n(124).addColorizer("discrete",i),e.exports=i},function(e,t,n){function i(e,t,n){var o,a=e.isNode()&&e.nodes,r=a&&a.length;for(e.setState(t,n),o=0;o<r;++o)i(a[o],t,n)}var o=n(73).prototype,a=n(170).prototype,r=n(143).expand,s=n(276),l=n(10).parseScalar,u=s.buildRectAppearance,c=1;n(147),n(423),o._eventsMap.onHoverChanged={name:"hoverChanged"},r(o._handlers,"calculateAdditionalStates",function(e,t){e[1]=t.hoverStyle?u(t.hoverStyle):{}}),n(73).addChange({code:"HOVER_ENABLED",handler:function(){var e=l(this._getOption("hoverEnabled",!0),!0);e||this.clearHover(),this._hoverEnabled=e},isThemeDependent:!0,isOptionChange:!0,option:"hoverEnabled"}),a.statesMap[1]=1,a.additionalStates.push(1),r(o,"_extendProxyType",function(e){var t=this;e.setHover=function(){t._hoverNode(this._id)},e.isHovered=function(){return t._hoverIndex===this._id}}),r(o,"_onNodesCreated",function(){this._hoverIndex=-1}),r(o,"_changeGroupSettings",function(){var e=this;e._groupHoverEnabled=l(e._getOption("group").hoverEnabled,!0),e._groupHoverEnabled||e.clearHover()}),o._applyHoverState=function(e,t){i(this._nodes[e],c,t),this._eventTrigger("hoverChanged",{node:this._nodes[e].proxy})},o._hoverNode=function(e){var t=this,n=t._hoverIndex;if(t._hoverEnabled&&n!==e){if(!t._groupHoverEnabled&&e>=0&&t._nodes[e].isNode())return void t.clearHover();t._context.suspend(),t._hoverIndex=-1,n>=0&&t._applyHoverState(n,!1),t._hoverIndex=e,e>=0&&t._applyHoverState(e,!0),t._context.resume()}},o.clearHover=function(){this._hoverNode(-1)}},function(e,t,n){function i(e,t,n,i){var o,a=i.length;for(o=0;o<a;++o)e[i[o]]=u({},t,n[i[o]])}var o=n(73).prototype,a=n(170).prototype,r=o._handlers,s=r.calculateState,l=a._buildState,u=n(0).extend;r.calculateState=function(e){var t={0:s(e)};return r.calculateAdditionalStates(t,e),t},r.calculateAdditionalStates=n(4).noop,a.code=0,a.statesMap={0:0},a.additionalStates=[],a._buildState=function(e,t){var n={0:l(e[0],t)};return this.additionalStates.length&&i(n,n[0],e,this.additionalStates),n},a._getState=function(){return this.state[this.statesMap[this.code]]},a.setState=function(e,t){t?this.code|=e:this.code&=~e,this.ctx.change(["TILES"])}},function(e,t,n){function i(e,t){var n=t.getRootOffset();return[(e[0]+e[2])/2+n.left,(e[1]+e[3])/2+n.top]}var o=n(73).prototype,a=n(143).expand;n(147),a(o,"_extendProxyType",function(e){var t=this;e.showTooltip=function(e){t._showTooltip(this._id,e)}}),a(o,"_onNodesCreated",function(){this._tooltipIndex>=0&&this._tooltip.hide(),this._tooltipIndex=-1}),a(o,"_onTilingPerformed",function(){this._tooltipIndex>=0&&this._moveTooltip(this._nodes[this._tooltipIndex])}),o._showTooltip=function(e,t){var n=this,i=n._tooltip,o=n._nodes[e],a=n._tooltipIndex===e||i.show({value:o.value,valueText:i.formatValue(o.value),node:o.proxy},{x:0,y:0,offset:0},{node:o.proxy});a?n._moveTooltip(o,t):i.hide(),n._tooltipIndex=a?e:-1},o._moveTooltip=function(e,t){var n=t||e.rect&&i(e.rect,this._renderer)||[-1e3,-1e3];this._tooltip.move(n[0],n[1],0)},o.hideTooltip=function(){this._tooltipIndex>=0&&(this._tooltipIndex=-1,this._tooltip.hide())},n(73).addPlugin(n(108).plugin)},function(e,t,n){function i(e){return e.map(function(e,t){return t%2?1-e:e})}var o=n(839),a=n(840),r=n(841),s=n(4).noop,l=n(842),u="NODES_CREATE";o.addAlgorithm("dynamicslope",a,!0),o.addAlgorithm("dynamicheight",r);var c=n(97).inherit({_rootClass:"dxf-funnel",_rootClassPrefix:"dxf",_proxyData:[],_optionChangesMap:{dataSource:"DATA_SOURCE",neckWidth:u,neckHeight:u,inverted:u,algorithm:u,item:u,valueField:u,argumentField:u,colorField:u,palette:u,paletteExtensionMode:u,sortData:u},_themeDependentChanges:[u],_getDefaultSize:function(){return{width:400,height:400}},_themeSection:"funnel",_fontFields:["legend.title.font","legend.title.subtitle.font","legend.font"],_optionChangesOrder:["DATA_SOURCE"],_initialChanges:["DATA_SOURCE"],_initCore:function(){this._group=this._renderer.g().append(this._renderer.root),this._items=[]},_eventsMap:{onHoverChanged:{name:"hoverChanged"},onSelectionChanged:{name:"selectionChanged"}},_disposeCore:s,_applySize:function(e){return this._rect=e.slice(),this._change(["TILING"]),this._rect},_getAlignmentRect:function(){return this._rect},_change_TILING:function(){var e=this,t=e._items,n=e._rect,i=function(e,t){var i=t%2;return n[0+i]+(n[2+i]-n[0+i])*e};this._group.clear(),t.forEach(function(t,n){var o=t.figure.map(i),a=e._renderer.path([],"area").attr({points:o}).append(e._group);t.coords=o,t.element=a}),this._requestChange(["TILES"])},_customChangesOrder:[u,"LAYOUT","TILING","TILES","DRAWN"],_dataSourceChangedHandler:function(){this._requestChange([u])},_change_DRAWN:function(){this._drawn()},_change_DATA_SOURCE:function(){this._change(["DRAWN"]),this._updateDataSource()},_change_NODES_CREATE:function(){this._buildNodes()},_change_TILES:function(){this._applyTilesAppearance()},_suspend:function(){this._applyingChanges||this._suspendChanges()},_resume:function(){this._applyingChanges||this._resumeChanges()},_applyTilesAppearance:function(){this._items.forEach(function(e){var t=e.getState();e.element.smartAttr(e.states[t])})},_hitTestTargets:function(e,t){var n,i=this;return this._proxyData.some(function(o){if(n=o.call(i,e,t))return!0}),n},clearHover:function(){this._suspend(),this._items.forEach(function(e){e.isHovered()&&e.hover(!1)}),this._resume()},clearSelection:function(){this._suspend(),this._items.forEach(function(e){e.isSelected()&&e.select(!1)}),this._resume()},_getData:function(){var e=this,t=e._dataSourceItems()||[],n=e._getOption("valueField",!0),i=e._getOption("argumentField",!0),o=e._getOption("colorField",!0),a=t.reduce(function(e,t){var a=Number(t[n]);return a>=0&&(e[0].push({value:a,color:t[o],argument:t[i],dataItem:t}),e[1]+=a),e},[[],0]),r=a[0];return a[1]||(r=r.map(function(e){return e.value+=1,e})),t.length>0&&0===r.length&&e._incidentOccurred("E2005",n),e._getOption("sortData",!0)&&r.sort(function(e,t){return t.value-e.value}),r},_buildNodes:function(){var e=this,t=e._getData(),n=o.getAlgorithm(e._getOption("algorithm",!0)),a=n.normalizeValues(t),r=e._getOption("item"),s=n.getFigures(a,e._getOption("neckWidth",!0),e._getOption("neckHeight",!0)),u=e._themeManager.createPalette(e._getOption("palette",!0),{useHighlight:!0,extensionMode:e._getOption("paletteExtensionMode",!0),count:s.length});e._items=s.map(function(n,i){var o=t[i],s=new l(e,{figure:n,data:o,percent:a[i],id:i,color:o.color||u.getNextColor(),itemOptions:r});return s}),e._getOption("inverted",!0)&&e._items.forEach(function(e){e.figure=i(e.figure)}),e._renderer.initHatching(),e._change(["TILING","DRAWN"])},_showTooltip:s,hideTooltip:s,getAllItems:function(){return this._items.slice()},_getLegendData:function(){return this._items.map(function(e){return{id:e.id,visible:!0,text:e.argument,item:e,states:e.states}})},_getMinSize:function(){var e=this._getOption("adaptiveLayout");return[e.width,e.height]}});n(9)("dxFunnel",c),e.exports=c,c.addPlugin(n(145).plugin)},function(e,t,n){function i(e,t,n,i){e.label.getBBox().width>n&&e.labelText.applyEllipsis(n);var o=e.label.getBBox(),a=t.verticalOffset,r=t.horizontalOffset,s=Math.round(e.rect.y+e.rect.height/2-o.y-o.height/2)+a,l=e.rect.x+r+e.rect.width-o.x;l+o.width>=i[2]-i[0]&&(l=e.rect.x-r-o.x-o.width),s>=i[3]&&(s=i[3]),s-o.height<i[1]&&(s=e.rect.y-o.y+a),e.labelText.attr({translateX:l,translateY:s})}function o(e,t,n){var i=[],o="in"===n?"_to":"_from",a="in"===n?"_from":"_to";return e.links.map(function(e){return e[o]._name===t}).forEach(function(t,n){t&&i.push({index:n,weight:e.links[n]._weight,node:e.links[n][a]._name})}),i}var a=n(427),r=n(4).noop,s=n(847),l=n(848),u=n(849),c=n(1),d=c.isString,h=c.isNumeric,p=n(97).inherit({_rootClass:"dxs-sankey",_rootClassPrefix:"dxs",_proxyData:[],_optionChangesMap:{dataSource:"DATA_SOURCE",sortData:"DATA_SOURCE",alignment:"DATA_SOURCE",node:"BUILD_LAYOUT",link:"BUILD_LAYOUT",palette:"BUILD_LAYOUT",paletteExtensionMode:"BUILD_LAYOUT"},_themeDependentChanges:["BUILD_LAYOUT"],_getDefaultSize:function(){return{width:400,height:400}},_themeSection:"sankey",_fontFields:["label.font"],_optionChangesOrder:["DATA_SOURCE"],_initialChanges:["DATA_SOURCE"],_initCore:function(){this._groupLinks=this._renderer.g().append(this._renderer.root),this._groupNodes=this._renderer.g().append(this._renderer.root),this._groupLabels=this._renderer.g().attr({"class":this._rootClassPrefix+"-labels"}).append(this._renderer.root),this._drawLabels=!0,this._nodes=[],this._links=[],this._gradients=[]},_disposeCore:r,_applySize:function(e){this._rect=e.slice();var t=this._getOption("adaptiveLayout");return t.keepLabels||this._rect[2]-this._rect[0]>t.width?this._drawLabels=!0:this._drawLabels=!1,this._change(["BUILD_LAYOUT"]),this._rect},_eventsMap:{onNodeHoverChanged:{name:"nodeHoverChanged"},onLinkHoverChanged:{name:"linkHoverChanged"}},_customChangesOrder:["BUILD_LAYOUT","NODES_DRAW","LINKS_DRAW","LABELS","DRAWN"],_dataSourceChangedHandler:function(){this._requestChange(["BUILD_LAYOUT"])},_change_DRAWN:function(){this._drawn()},_change_DATA_SOURCE:function(){this._change(["DRAWN"]),this._updateDataSource()},_change_LABELS:function(){this._applyLabelsAppearance()},_change_BUILD_LAYOUT:function(){this._groupNodes.clear(),this._groupLinks.clear(),this._groupLabels.clear(),this._buildLayout()},_change_NODES_DRAW:function(){var e=this,t=e._nodes;t.forEach(function(t,n){var i=e._renderer.rect().attr(t.rect).append(e._groupNodes);t.element=i}),this._applyNodesAppearance()},_change_LINKS_DRAW:function(){var e=this,t=e._links;t.forEach(function(t,n){var i=e._renderer.g().attr({"class":"link","data-link-idx":n}).append(e._groupLinks);t.overlayElement=e._renderer.path([],"area").attr({d:t.d}).append(i),t.element=e._renderer.path([],"area").attr({d:t.d}).append(i)}),this._applyLinksAppearance()},_suspend:function(){this._applyingChanges||this._suspendChanges()},_resume:function(){this._applyingChanges||this._resumeChanges()},_showTooltip:r,hideTooltip:r,clearHover:function(){this._suspend(),this._nodes.forEach(function(e){
67e.isHovered()&&e.hover(!1)}),this._links.forEach(function(e){e.isHovered()&&e.hover(!1),e.isAdjacentNodeHovered()&&e.adjacentNodeHover(!1)}),this._resume()},_applyNodesAppearance:function(){this._nodes.forEach(function(e){var t=e.getState();e.element.smartAttr(e.states[t])})},_applyLinksAppearance:function(){this._links.forEach(function(e){var t=e.getState();e.element.smartAttr(e.states[t]),e.overlayElement.smartAttr(e.overlayStates[t])})},_hitTestTargets:function(e,t){var n,i=this;return this._proxyData.some(function(o){if(n=o.call(i,e,t))return!0}),n},_getData:function(){var e=this,t=e._dataSourceItems()||[],n=e._getOption("sourceField",!0),i=e._getOption("targetField",!0),o=e._getOption("weightField",!0),a=[];return t.forEach(function(t){var r=Object.prototype.hasOwnProperty.bind(t);r(n)?r(i)?r(o)?d(t[n])?d(t[i])?!h(t[o])||t[o]<=0?e._incidentOccurred("E2009",o):a.push([t[n],t[i],t[o]]):e._incidentOccurred("E2008",i):e._incidentOccurred("E2008",n):e._incidentOccurred("E2007",o):e._incidentOccurred("E2007",i):e._incidentOccurred("E2007",n)}),a},_buildLayout:function(){var e=this,t=this,n=t._getData(),i=this._rect,r=t._getOption("node"),c=t._getOption("sortData"),d=t._getOption("layoutBuilder",!0)||u,h={x:i[0],y:i[1],width:i[2]-i[0],height:i[3]-i[1]},p=d.computeLayout(n,c,{availableRect:h,nodePadding:r.padding,nodeWidth:r.width,nodeAlign:t._getOption("alignment",!0)},t._incidentOccurred);if(t._layoutMap=p,!Object.prototype.hasOwnProperty.call(p,"error")){var f={},g=0,_=t._getOption("link"),m=p.nodes.map(function(e){return e.length}).reduce(function(e,t){return e+t},0),v=t._themeManager.createPalette(t._getOption("palette",!0),{useHighlight:!0,extensionMode:t._getOption("paletteExtensionMode",!0),count:m});t._nodes=[],t._links=[],t._gradients.forEach(function(e){e.dispose()}),t._gradients=[],t._shadowFilter&&t._shadowFilter.dispose(),p.nodes.forEach(function(e){e.forEach(function(e){var n=r.color||v.getNextColor(),i=new s(t,{id:g,color:n,rect:e,options:r,linksIn:o(p,e._name,"in"),linksOut:o(p,e._name,"out")});t._nodes.push(i),g++,f[e._name]=n})}),p.links.forEach(function(n){var i=null;_.colorMode===a.COLOR_MODE_GRADIENT&&(i=t._renderer.linearGradient([{offset:"0%","stop-color":f[n._from._name]},{offset:"100%","stop-color":f[n._to._name]}]),e._gradients.push(i));var o=_.color;_.colorMode===a.COLOR_MODE_SOURCE?o=f[n._from._name]:_.colorMode===a.COLOR_MODE_TARGET&&(o=f[n._to._name]);var r=new l(t,{d:n.d,boundingRect:n._boundingRect,color:o,options:_,connection:{source:n._from._name,target:n._to._name,weight:n._weight},gradient:i});t._links.push(r)}),t._renderer.initHatching(),t._change(["NODES_DRAW","LINKS_DRAW","LABELS"])}t._change(["DRAWN"])},_applyLabelsAppearance:function(){var e=this,t=e._getOption("label"),n=e._rect[2]-e._rect[0],o=e._getOption("node");if(e._shadowFilter=e._renderer.shadowFilter("-50%","-50%","200%","200%").attr(t.shadow),e._groupLabels.clear(),e._drawLabels&&t.visible){var a=(n-(o.width+t.horizontalOffset)-e._layoutMap.cascades.length*o.width)/(e._layoutMap.cascades.length-1)-t.horizontalOffset;e._nodes.forEach(function(n){e._createLabel(n,t,e._shadowFilter.id),i(n,t,a,e._rect)}),"none"!==t.overlappingBehavior&&e._nodes.forEach(function(n){var i=n.label.getBBox();e._nodes.forEach(function(e){var o=e.label.getBBox();n.id!==e.id&&u.overlap(i,o)&&("ellipsis"===t.overlappingBehavior?n.labelText.applyEllipsis(o.x-i.x):"hide"===t.overlappingBehavior&&n.labelText.remove())})})}},_createLabel:function(e,t,n){var i=t.customizeText(e),o=e.getLabelAttributes(t,n);i&&(e.label=this._renderer.g().append(this._groupLabels),e.labelText=this._renderer.text(i).attr(o.attr).css(o.css),e.labelText.append(e.label))},_getMinSize:function(){var e=this._getOption("adaptiveLayout");return[e.width,e.height]},getAllNodes:function(){return this._nodes.slice()},getAllLinks:function(){return this._links.slice()}});n(9)("dxSankey",p),e.exports=p,p.addPlugin(n(145).plugin)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});t.COLOR_MODE_GRADIENT="gradient",t.COLOR_MODE_SOURCE="source",t.COLOR_MODE_TARGET="target",t.COLOR_MODE_NONE="none"},function(e,t,n){var i="white",o="gray",a="black",r={maxOfArray:function(e,t){var n=0,i=function(e){return e};t&&(i=t);for(var o=0;o<e.length;o++)i(e[o])>n&&(n=i(e[o]));return n}},s=function(e){var t=[];return e.forEach(function(e){t.indexOf(e[0])===-1&&t.push(e[0]),t.indexOf(e[1])===-1&&t.push(e[1])}),t},l=function(e,t){var n=[];return e.forEach(function(e){e[0]===t&&n.indexOf(e[1])===-1&&n.push(e[1])}),n},u=function(e,t){var n=[];return e.forEach(function(e){e[1]===t&&n.indexOf(e[0])===-1&&n.push(e[0])}),n},c={_hasCycle:!1,_sortedList:[],hasCycle:function(e){var t=this;this._hasCycle=!1,this._sortedList=[];var n={},o=s(e);return o.forEach(function(e){n[e]={color:i}}),o.forEach(function(o){n[o].color===i&&t._depthFirstSearch(e,n,o)}),this._sortedList.reverse(),this._hasCycle},_depthFirstSearch:function(e,t,n){t[n].color=o;for(var r=l(e,n),s=0;s<r.length;s++)t[r[s]].color===i?this._depthFirstSearch(e,t,r[s]):t[r[s]].color===o&&(this._hasCycle=!0);this._sortedList.push({name:n,lp:null,incoming:u(e,n),outgoing:l(e,n)}),t[n].color=a},computeLongestPaths:function(e){var t=this._sortedList;return t.forEach(function(n){var i=u(e,n.name);if(0===i.length)n.lp=0;else{var o=[];i.forEach(function(e){o.push(t.filter(function(t){return t.name===e})[0].lp)}),n.lp=r.maxOfArray(o)+1}}),this._sortedList}};e.exports={struct:c,routines:r,getVertices:s,getAdjacentVertices:l,getReverseAdjacentVertices:u}},function(e,t,n){var 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},o=n(15),a=n(7).getWindow(),r=n(1),s=n(0).extend,l=n(17),u=n(45),c=n(430),d=n(183),h=n(216),p=n(431),f=r.isDefined,g='<?xml version="1.0" encoding="utf-8"?>',_='<sheetPr><outlinePr summaryBelow="0"/></sheetPr>',m="<sheetPr/>",v='<borders count="1"><border><left style="thin"><color rgb="FFD3D3D3"/></left><right style="thin"><color rgb="FFD3D3D3"/></right><top style="thin"><color rgb="FFD3D3D3"/></top><bottom style="thin"><color rgb="FFD3D3D3"/></bottom></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',y="http://schemas.openxmlformats.org",x="rels",b="xl",w="workbook.xml",C="[Content_Types].xml",k="sharedStrings.xml",S="styles.xml",I="worksheets",T="sheet1.xml",D='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">',E={"boolean":"b",date:"d",number:"n",string:"s"},A=Date.UTC(1899,11,30),O=60,B=7,P=o.inherit({_getXMLTag:function(e,t,n){var i,o,a="<"+e,s=t.length;for(i=0;i<s;i++)o=t[i],void 0!==o.value&&(a=a+" "+o.name+'="'+o.value+'"');return r.isDefined(n)?a+">"+n+"</"+e+">":a+" />"},_convertToExcelCellRef:function(e,t){for(var n,i,o="",a=26;!i;)n=65+(t>=a?t%a:Math.ceil(t)),o=String.fromCharCode(n)+o,t>=a?t=Math.floor(t/a)-1:i=!0;return o+(e+1)},_convertToExcelCellRefAndTrackMaxIndex:function(e,t){return this._maxRowIndex<Number(e)&&(this._maxRowIndex=Number(e)),this._maxColumnIndex<Number(t)&&(this._maxColumnIndex=Number(t)),this._convertToExcelCellRef(e,t)},_getDataType:function(e){return E[e]||E.string},_tryGetExcelCellDataType:function(e){if(r.isDefined(e)){if("number"==typeof e)return isFinite(e)?E.number:E.string;if(r.isString(e))return E.string;if(r.isDate(e))return E.number;if(r.isBoolean(e))return E.boolean}},_formatObjectConverter:function(e,t){var n={format:e,precision:e&&e.precision,dataType:t};return r.isObject(e)?s(n,e,{format:e.formatter||e.type,currency:e.currency}):n},_tryConvertToExcelNumberFormat:function(e,t){var n,i=this._formatObjectConverter(e,t);return e=i.format,n=i.currency,t=i.dataType,h.convertFormat(e,i.precision,t,n)},_appendString:function(e){if(r.isDefined(e)&&(e=String(e),e.length))return e=u.encodeHtml(e),void 0===this._stringHash[e]&&(this._stringHash[e]=this._stringArray.length,this._stringArray.push(e)),this._stringHash[e]},_tryGetExcelDateValue:function(e){var t,n;if(r.isDate(e))return t=Math.floor((Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())-A)/864e5),t<O&&t--,n=(3600*e.getHours()+60*e.getMinutes()+e.getSeconds())/86400,t+n},_prepareValue:function(e,t){var n,i=this._dataProvider,o=i.getCellData(e,t)||{},a=o.value,s=o.cellSourceData,l=this._getDataType(i.getCellType(e,t));switch(l!==E.date||r.isDate(a)||(l=E.string),l){case E.string:n=a,a=this._appendString(a);break;case E.date:n=a,a=this._tryGetExcelDateValue(a),l=E.number}return{value:a,type:l,sourceValue:n,cellSourceData:s}},_callCustomizeExcelCell:function(e){var t=e.dataProvider,n=e.value,i=e.style,o=e.sourceData,a=p.copyCellFormat(i),r={value:n,numberFormat:a.numberFormat,clearStyle:function(){this.horizontalAlignment=null,this.verticalAlignment=null,this.wrapTextEnabled=null,this.font=null,this.numberFormat=null}};f(a)&&(f(a.alignment)&&(r.horizontalAlignment=a.alignment.horizontal,r.verticalAlignment=a.alignment.vertical,r.wrapTextEnabled=a.alignment.wrapText),r.backgroundColor=a.backgroundColor,r.fillPatternType=a.fillPatternType,r.fillPatternColor=a.fillPatternColor,r.font=a.font),t.customizeExcelCell(r,o);var s=a||{};return s.font=r.font,s.alignment=s.alignment||{},s.alignment.horizontal=r.horizontalAlignment,s.alignment.vertical=r.verticalAlignment,s.alignment.wrapText=r.wrapTextEnabled,s.backgroundColor=r.backgroundColor,s.fillPatternType=r.fillPatternType,s.fillPatternColor=r.fillPatternColor,s.numberFormat=r.numberFormat,{value:r.value,style:s}},_getDataArray:function(){var e,t,n,o,a,s=this,l=[],u=s._dataProvider,c=u.getRowsCount(),d=u.getColumns();for(e=0;e<c;e++){for(n=[],a=d.length,t=0;t!==a;t++){o=s._prepareValue(e,t);var h=u.getStyleId(e,t),p=this._styleArrayIndexToCellStyleIdMap[h];if(u.hasCustomizeExcelCell&&u.hasCustomizeExcelCell()){var f=o.sourceValue||o.value,g=this._callCustomizeExcelCell({dataProvider:u,value:f,style:s._styleArray[h],sourceData:o.cellSourceData});if(g.value!==f){if(i(g.value)!==("undefined"==typeof f?"undefined":i(f))||"number"==typeof g.value&&!isFinite(g.value)){var _=this._tryGetExcelCellDataType(g.value);r.isDefined(_)&&(o.type=_)}switch(o.type){case E.string:o.value=this._appendString(g.value);break;case E.date:o.value=g.value;break;case E.number:var m=g.value,v=this._tryGetExcelDateValue(m);r.isDefined(v)&&(m=v),o.value=m;break;default:o.value=g.value}}p=this._excelFile.registerCellFormat(g.style)}n.push({style:p,value:o.value,type:o.type})}!s._needSheetPr&&u.getGroupLevel(e)>0&&(s._needSheetPr=!0),l.push(n)}return l},_calculateWidth:function(e){return e=parseInt(e,10),(!e||e<5)&&(e=100),Math.min(255,Math.floor((e-5)/B*100+.5)/100)},_prepareStyleData:function(){var e=this,t=this,n=t._dataProvider.getStyles();t._dataProvider.getColumns().forEach(function(e){t._colsArray.push(t._calculateWidth(e.width))});var i=[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!1},{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!0}];this._excelFile.registerFont(i[0]),this._excelFile.registerFont(i[1]),n.forEach(function(e){var n=t._tryConvertToExcelNumberFormat(e.format,e.dataType);r.isDefined(n)||(n=0),t._styleArray.push({font:i[Number(!!e.bold)],numberFormat:n,alignment:{vertical:"top",wrapText:!!e.wrapText,horizontal:e.alignment||"left"}})}),t._styleArrayIndexToCellStyleIdMap=t._styleArray.map(function(t){return e._excelFile.registerCellFormat(t)})},_prepareCellData:function(){this._cellsArray=this._getDataArray()},_createXMLRelationships:function(e){return this._getXMLTag("Relationships",[{name:"xmlns",value:y+"/package/2006/relationships"}],e)},_createXMLRelationship:function(e,t,n){return this._getXMLTag("Relationship",[{name:"Id",value:"rId"+e},{name:"Type",value:y+"/officeDocument/2006/relationships/"+t},{name:"Target",value:n}])},_getWorkbookContent:function(){var e='<bookViews><workbookView xWindow="0" yWindow="0" windowWidth="0" windowHeight="0"/></bookViews><sheets><sheet name="Sheet" sheetId="1" r:id="rId1" /></sheets><definedNames><definedName name="_xlnm.Print_Titles" localSheetId="0">Sheet!$1:$1</definedName><definedName name="_xlnm._FilterDatabase" hidden="0" localSheetId="0">Sheet!$A$1:$F$6332</definedName></definedNames>';return g+this._getXMLTag("workbook",[{name:"xmlns:r",value:y+"/officeDocument/2006/relationships"},{name:"xmlns",value:y+"/spreadsheetml/2006/main"}],e)},_getContentTypesContent:function(){return g+'<Types xmlns="'+y+'/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="xml" ContentType="application/xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /></Types>'},_generateStylesXML:function(){var e=this,t=e._zip.folder(b),n="";n+=this._excelFile.generateNumberFormatsXml(),n+=this._excelFile.generateFontsXml(),n+=this._excelFile.generateFillsXml(),n+=v,n+=this._excelFile.generateCellFormatsXml(),n+=e._getXMLTag("cellStyles",[{name:"count",value:1}],e._getXMLTag("cellStyle",[{name:"name",value:"Normal"},{name:"xfId",value:0},{name:"builtinId",value:0}])),n=g+e._getXMLTag("styleSheet",[{name:"xmlns",value:y+"/spreadsheetml/2006/main"}],n),t.file(S,n),e._styleArray=[]},_generateStringsXML:function(){var e,t=this._zip.folder(b),n=this._stringArray.length,i=g;for(e=0;e<n;e++)this._stringArray[e]=this._getXMLTag("si",[],this._getXMLTag("t",[],this._stringArray[e]));i+=this._getXMLTag("sst",[{name:"xmlns",value:y+"/spreadsheetml/2006/main"},{name:"count",value:this._stringArray.length},{name:"uniqueCount",value:this._stringArray.length}],this._stringArray.join("")),t.file(k,i),this._stringArray=[]},_getPaneXML:function(){var e=[{name:"activePane",value:"bottomLeft"},{name:"state",value:"frozen"}],t=this._dataProvider.getFrozenArea();return t.x||t.y?(t.x&&e.push({name:"xSplit",value:t.x}),t.y&&e.push({name:"ySplit",value:t.y}),e.push({name:"topLeftCell",value:this._convertToExcelCellRefAndTrackMaxIndex(t.y,t.x)}),this._getXMLTag("pane",e)):""},_getAutoFilterXML:function(e){return this._options.autoFilterEnabled?'<autoFilter ref="A'+this._dataProvider.getHeaderRowCount()+":"+e+'" />':""},_getIgnoredErrorsXML:function(e){return this._options.ignoreErrors?'<ignoredErrors><ignoredError sqref="A1:'+e+'" numberStoredAsText="1" /></ignoredErrors>':""},_generateWorksheetXML:function(){var e,t,n,i,o,a,s=[],l=this._cellsArray.length,u=this._colsArray.length,c="1:"+u,d=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():1,h=[D];for(h.push(this._needSheetPr?_:m),h.push('<dimension ref="A1:C1"/>'),h.push("<sheetViews><sheetView "),h.push(this._rtlEnabled?'rightToLeft="1" ':""),h.push('tabSelected="1" workbookViewId="0">'),h.push(this._getPaneXML()),h.push("</sheetView></sheetViews>"),h.push('<sheetFormatPr defaultRowHeight="15"'),h.push(' outlineLevelRow="'+(this._dataProvider.getRowsCount()>0?this._dataProvider.getGroupLevel(0):0)+'"'),h.push(' x14ac:dyDescent="0.25"/>'),e=0;e<u;e++)this._colsArray[e]=this._getXMLTag("col",[{name:"width",value:this._colsArray[e]},{name:"min",value:Number(e)+1},{name:"max",value:Number(e)+1}]);for(h.push(this._getXMLTag("cols",[],this._colsArray.join(""))+"<sheetData>"),t=0;t<l;t++){for(i=[],a=this._cellsArray[t].length,e=0;e<a;e++)t=Number(t),n=this._cellsArray[t][e],i.push(this._getXMLTag("c",[{name:"r",value:this._convertToExcelCellRefAndTrackMaxIndex(t,e)},{name:"s",value:n.style},{name:"t",value:n.type}],r.isDefined(n.value)?this._getXMLTag("v",[],n.value):null));s.push(this._getXMLTag("row",[{name:"r",value:Number(t)+1},{name:"spans",value:c},{name:"outlineLevel",value:t>=d?this._dataProvider.getGroupLevel(t):0},{name:"x14ac:dyDescent",value:"0.25"}],i.join(""))),this._cellsArray[t]=null,s.length>1e4&&(h.push(s.join("")),s=[])}h.push(s.join("")),s=[],o=this._convertToExcelCellRef(this._maxRowIndex,this._maxColumnIndex),h.push("</sheetData>"+this._getAutoFilterXML(o)+this._generateMergingXML()+this._getIgnoredErrorsXML(o)+"</worksheet>"),this._zip.folder(b).folder(I).file(T,h.join("")),this._colsArray=[],this._cellsArray=[],h=[]},_generateMergingXML:function(){var e,t,n,i,o,a,s=r.isDefined(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),l=this._dataProvider.getColumns().length,u=[],c=[],d="";for(i=0;i<s;i++)for(n=0;n!==l;n++)if(!r.isDefined(u[i])||!r.isDefined(u[i][n])){var h=this._dataProvider.getCellMerging(i,n);if(h.colspan||h.rowspan)for(c.push({start:this._convertToExcelCellRefAndTrackMaxIndex(i,n),end:this._convertToExcelCellRefAndTrackMaxIndex(i+(h.rowspan||0),n+(h.colspan||0))}),e=i;e<=i+h.rowspan;e++)for(t=n;t<=n+h.colspan;t++)r.isDefined(u[e])||(u[e]=[]),u[e][t]=!0}for(o=c.length,a=0;a<o;a++)d+=this._getXMLTag("mergeCell",[{name:"ref",value:c[a].start+":"+c[a].end}]);return d.length?this._getXMLTag("mergeCells",[{name:"count",value:o}],d):""},_generateCommonXML:function(){var e,t=g+this._createXMLRelationships(this._createXMLRelationship(1,"officeDocument","xl/"+w)),n=this._zip.folder(b),i=g;this._zip.folder("_"+x).file("."+x,t),e=this._createXMLRelationship(1,"worksheet","worksheets/"+T)+this._createXMLRelationship(2,"styles",S)+this._createXMLRelationship(3,"sharedStrings",k),i+=this._createXMLRelationships(e),n.folder("_"+x).file(w+".rels",i),n.file(w,this._getWorkbookContent()),this._zip.file(C,this._getContentTypesContent())},_generateContent:function(){this._prepareStyleData(),this._prepareCellData(),this._generateWorkXML(),this._generateCommonXML()},_generateWorkXML:function(){this._generateStylesXML(),this._generateStringsXML(),this._generateWorksheetXML()},ctor:function(e,t){this._rtlEnabled=t&&!!t.rtlEnabled,this._options=t,this._maxRowIndex=0,this._maxColumnIndex=0,this._stringArray=[],this._stringHash={},this._styleArray=[],this._colsArray=[],this._cellsArray=[],this._needSheetPr=!1,this._dataProvider=e,this._excelFile=new p,r.isDefined(P.JSZip)?this._zip=new P.JSZip:this._zip=null},_checkZipState:function(){if(!this._zip)throw l.Error("E1041","JSZip")},ready:function(){return this._dataProvider.ready()},getData:function(e){var t={type:e?"blob":"base64",compression:"DEFLATE",mimeType:d.MIME_TYPES.EXCEL};return this._checkZipState(),this._generateContent(),this._zip.generateAsync?this._zip.generateAsync(t):this._zip.generate(t)}});P.JSZip=c,t.ExcelCreator=P,t.getData=function(e,n,i){var o=new t.ExcelCreator(e,n);o._checkZipState(),o.ready().done(function(){o._zip.generateAsync?o.getData(r.isFunction(a.Blob)).then(i):i(o.getData(r.isFunction(a.Blob)))})}},function(e,t){e.exports=window.JSZip},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")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(1),s=n(74),l=i(s),u=n(432),c=i(u),d=n(220),h=i(d),p=n(222),f=i(p),g=n(435),_=i(g),m=function(){function e(){o(this,e),this._cellFormatTags=[],this._fillTags=[],this._fontTags=[],this._numberFormatTags=[],this._fillTags.push(h.default.tryCreateTag({patternFill:{patternType:"none"}}))}return a(e,[{key:"registerCellFormat",value:function(e){var t=void 0,n=c.default.tryCreateTag(e,{registerFill:this.registerFill.bind(this),registerFont:this.registerFont.bind(this),registerNumberFormat:this.registerNumberFormat.bind(this)});if((0,r.isDefined)(n)){for(var i=0;i<this._cellFormatTags.length;i++)if(c.default.areEqual(this._cellFormatTags[i],n)){t=i;break}void 0===t&&(t=this._cellFormatTags.push(n)-1)}return t}},{key:"generateCellFormatsXml",value:function(){var e=this._cellFormatTags.map(function(e){return c.default.toXml(e)});return l.default.toXml("cellXfs",{count:e.length},e.join(""))}},{key:"registerFill",value:function(e){var t=void 0,n=h.default.tryCreateTag(e);if((0,r.isDefined)(n)){for(var i=0;i<this._fillTags.length;i++)if(h.default.areEqual(this._fillTags[i],n)){t=i;break}void 0===t&&(this._fillTags.length<2&&this._fillTags.push(h.default.tryCreateTag({patternFill:{patternType:"Gray125"}})),t=this._fillTags.push(n)-1)}return t}},{key:"generateFillsXml",value:function(){var e=this._fillTags.map(function(e){return h.default.toXml(e)});return l.default.toXml("fills",{count:e.length},e.join(""))}},{key:"registerFont",value:function(e){var t=void 0,n=f.default.tryCreateTag(e);if((0,r.isDefined)(n)){for(var i=0;i<this._fontTags.length;i++)if(f.default.areEqual(this._fontTags[i],n)){t=i;break}void 0===t&&(t=this._fontTags.push(n)-1)}return t}},{key:"generateFontsXml",value:function(){var e=this._fontTags.map(function(e){return f.default.toXml(e)});return l.default.toXml("fonts",{count:e.length},e.join(""))}},{key:"_convertNumberFormatIndexToId",value:function(e){var t=165;return t+e}},{key:"registerNumberFormat",value:function(e){var t=void 0,n=_.default.tryCreateTag(e);if((0,r.isDefined)(n)){for(var i=0;i<this._numberFormatTags.length;i++)if(_.default.areEqual(this._numberFormatTags[i],n)){t=this._numberFormatTags[i][_.default.ID_PROPERTY_NAME];break}void 0===t&&(n[_.default.ID_PROPERTY_NAME]=this._convertNumberFormatIndexToId(this._numberFormatTags.length),t=n[_.default.ID_PROPERTY_NAME],this._numberFormatTags.push(n))}return t}},{key:"generateNumberFormatsXml",value:function(){if(this._numberFormatTags.length>0){var e=this._numberFormatTags.map(function(e){return _.default.toXml(e)});return l.default.toXml("numFmts",{count:e.length},e.join(""))}return""}}],[{key:"copyCellFormat",value:function(e){return c.default.copy(e)}}]),e}();t.default=m,e.exports=m},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(74),r=i(a),s=n(433),l=i(s),u=n(220),c=i(u),d=n(222),h=i(d),p={tryCreateTag:function(e,t){var n=null;if((0,o.isDefined)(e)){var i=void 0;i="number"==typeof e.numberFormat?e.numberFormat:t.registerNumberFormat(e.numberFormat);var a=e.fill;(0,o.isDefined)(a)||(a=c.default.tryCreateFillFromSimpleFormat(e)),n={numberFormatId:i,alignment:l.default.tryCreateTag(e.alignment),fontId:t.registerFont(e.font),fillId:t.registerFill(a)},p.isEmpty(n)&&(n=null)}return n},copy:function(e){var t=void 0;return null===e?t=null:(0,o.isDefined)(e)&&(t={},void 0!==e.numberFormat&&(t.numberFormat=e.numberFormat),void 0!==e.fill?t.fill=c.default.copy(e.fill):c.default.copySimpleFormat(e,t),void 0!==e.alignment&&(t.alignment=l.default.copy(e.alignment)),void 0!==e.font&&(t.font=h.default.copy(e.font))),t},areEqual:function(e,t){return p.isEmpty(e)&&p.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.fontId===t.fontId&&e.numberFormatId===t.numberFormatId&&e.fillId===t.fillId&&l.default.areEqual(e.alignment,t.alignment)},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.fontId)&&!(0,o.isDefined)(e.numberFormatId)&&!(0,o.isDefined)(e.fillId)&&l.default.isEmpty(e.alignment)},toXml:function(e){var t=l.default.isEmpty(e.alignment),n=void 0;return(0,o.isDefined)(e.numberFormatId)&&(n=e.numberFormatId>0?1:0),r.default.toXml("xf",{xfId:0,applyAlignment:t?null:1,fontId:e.fontId,applyNumberFormat:n,fillId:e.fillId,numFmtId:e.numberFormatId},t?null:l.default.toXml(e.alignment))}};t.default=p},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(74),r=i(a),s={tryCreateTag:function(e){var t=null;return(0,o.isDefined)(e)&&(t={vertical:e.vertical,wrapText:e.wrapText,horizontal:e.horizontal},s.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,o.isDefined)(e)&&(t={},void 0!==e.horizontal&&(t.horizontal=e.horizontal),void 0!==e.vertical&&(t.vertical=e.vertical),void 0!==e.wrapText&&(t.wrapText=e.wrapText)),t},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.vertical===t.vertical&&e.wrapText===t.wrapText&&e.horizontal===t.horizontal},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.vertical)&&!(0,o.isDefined)(e.wrapText)&&!(0,o.isDefined)(e.horizontal)},toXml:function(e){return r.default.toXml("alignment",{vertical:e.vertical,wrapText:(0,o.isDefined)(e.wrapText)?Number(e.wrapText):void 0,horizontal:e.horizontal})}};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(74),r=i(a),s=n(221),l=i(s),u={tryCreateTag:function(e){var t=null;return(0,o.isDefined)(e)&&(t={patternType:e.patternType,backgroundColor:l.default.tryCreateTag(e.backgroundColor),foregroundColor:l.default.tryCreateTag(e.foregroundColor)},u.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,o.isDefined)(e)&&(t={},void 0!==e.patternType&&(t.patternType=e.patternType),void 0!==e.backgroundColor&&(t.backgroundColor=l.default.copy(e.backgroundColor)),void 0!==e.foregroundColor&&(t.foregroundColor=l.default.copy(e.foregroundColor))),t},areEqual:function(e,t){return u.isEmpty(e)&&u.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.patternType===t.patternType&&l.default.areEqual(e.backgroundColor,t.backgroundColor)&&l.default.areEqual(e.foregroundColor,t.foregroundColor)},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.patternType)},toXml:function(e){var t=[(0,o.isDefined)(e.foregroundColor)?l.default.toXml("fgColor",e.foregroundColor):"",(0,o.isDefined)(e.backgroundColor)?l.default.toXml("bgColor",e.backgroundColor):""].join("");return r.default.toXml("patternFill",{patternType:e.patternType},t)}};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(74),r=i(a),s={ID_PROPERTY_NAME:"id",tryCreateTag:function(e){var t=null;return"string"==typeof e&&(t={formatCode:e},s.isEmpty(t)&&(t=null)),t},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.formatCode===t.formatCode},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.formatCode)||""===e.formatCode},toXml:function(e){return r.default.toXml("numFmt",{numFmtId:e[s.ID_PROPERTY_NAME],formatCode:e.formatCode})}};t.default=s},function(e,t,n){var i=n(2),o=n(57),a=n(7).getWindow(),r=n(1).isFunction,s=n(3).each,l=n(185),u=n(6),c=u.when,d=u.Deferred;t.svgCreator={_markup:"",_imageArray:{},_imageDeferreds:[],_getBinaryFile:function(e,t){o.sendRequest({url:e,method:"GET",responseType:"arraybuffer"}).done(t).fail(function(){t(!1)})},_loadImages:function(){var e=this;s(e._imageArray,function(t){var n=new d;e._imageDeferreds.push(n),e._getBinaryFile(t,function(i){if(!i)return delete e._imageArray[t],void n.resolve();var o,r="",s=new Uint8Array(i),l=s.byteLength;for(o=0;o<l;o++)r+=String.fromCharCode(s[o]);e._imageArray[t]="data:image/png;base64,"+a.btoa(r),n.resolve()})})},_parseImages:function(e){var t,n=this;"image"===e.tagName&&(t=i(e).attr("href")||i(e).attr("xlink:href"),n._imageArray[t]||(n._imageArray[t]="")),s(e.childNodes,function(e,t){n._parseImages(t)})},_prepareImages:function(e){return this._parseImages(e),this._loadImages(),c.apply(i,this._imageDeferreds)},getData:function(e,t){var n,o=this,u='<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>',c=new d,h=l.getSvgElement(e),p=i(h);return n=u+l.getSvgMarkup(p.get(0),t.backgroundColor),o._prepareImages(h).done(function(){s(o._imageArray,function(e,t){var i="href=['|\"]"+e+"['|\"]";n=n.replace(new RegExp(i,"gi"),'href="'+t+'"')}),c.resolve(r(a.Blob)?o._getBlob(n):o._getBase64(n))}),c},_getBlob:function(e){return new a.Blob([e],{type:"image/svg+xml"})},_getBase64:function(e){return a.btoa(e)}},t.getData=function(e,n,i){return t.svgCreator.getData(e,n).done(i)}},function(e,t,n){var i=n(7),o=i.getWindow(),a=n(52),r={getXhr:function(){return new o.XMLHttpRequest}};e.exports=a(r)},function(e,t,n){var i=n(156),o=n(7).getWindow(),a=n(223).imageCreator,r=n(1).isFunction,s=n(0).extend,l=n(6),u=l.when,c=l.Deferred,d="%PDF-1.3\r\n2 0 obj\r\n<</ProcSet[/PDF/ImageB/ImageC/ImageI]/XObject<</I0 5 0 R>>>>\r\nendobj\r\n4 0 obj\r\n<</Type/Pages/Kids[1 0 R]/Count 1>>\r\nendobj\r\n7 0 obj\r\n<</OpenAction[1 0 R /FitH null]/Type/Catalog/Pages 4 0 R/PageLayout/OneColumn>>\r\nendobj\r\n1 0 obj\r\n<</Type/Page/Resources 2 0 R/MediaBox[0 0 _width_ _height_]/Contents 3 0 R/Parent 4 0 R>>\r\nendobj\r\n",h="3 0 obj\r\n<</Length 52>>stream\r\n0.20 w\n0 G\nq _width_ 0 0 _height_ 0.00 0.00 cm /I0 Do Q\r\nendstream\r\nendobj\r\n",p="6 0 obj\r\n<</CreationDate _date_/Producer(DevExtreme _version_)>>\r\nendobj\r\n",f="5 0 obj\r\n<</Type/XObject/Subtype/Image/Width _width_/Height _height_/ColorSpace/DeviceRGB/BitsPerComponent 8/Filter/DCTDecode/Length _length_>>stream\r\n",g="\r\nendstream\r\nendobj\r\n",_="trailer\r\n<<\r\n/Size 8\r\n/Root 7 0 R\r\n/Info 6 0 R\r\n>>\r\nstartxref\r\n_length_\r\n%%EOF",m="xref\r\n0 8\r\n0000000000 65535 f\r\n0000000241 00000 n\r\n0000000010 00000 n\r\n_main_ 00000 n\r\n0000000089 00000 n\r\n_image_ 00000 n\r\n_info_ 00000 n\r\n0000000143 00000 n\r\n",v=function e(t,n){return t.length<n?e("0"+t,n):t},y=function(e,t,n){var o=2*(t.margin||0),a=t.width+o,r=t.height+o,s=(.75*a).toFixed(2),l=(.75*r).toFixed(2),u=d.replace("_width_",s).replace("_height_",l),c=h.replace("_width_",s).replace("_height_",l),m=p.replace("_date_",n).replace("_version_",i),v=f.replace("_width_",a).replace("_height_",r).replace("_length_",e.length)+e+g,y=x(u.length,c.length,m.length),b=u+c+m+v,w=_.replace("_length_",b.length);return b+y+w},x=function(e,t,n){return m.replace("_main_",v(e+"",10)).replace("_info_",v(e+t+"",10)).replace("_image_",v(e+t+n+"",10))},b=function(){return new Date},w=function(e){for(var t=0,n=new Uint8Array(e.length);t<e.length;t++)n[t]=e.charCodeAt(t);return new o.Blob([n.buffer],{type:"application/pdf"})},C=function(e){return o.btoa(e)};t.getData=function(e,t,n){var i=a.getImageData(e,s({},t,{format:"JPEG"})),l=new c;return l.done(n),u(i).done(function(e){var n=y(e,t,b()),i=r(o.Blob)?w(n):C(n);l.resolve(i)})}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.exportDataGrid=void 0;var o=n(440),a=i(o);t.exportDataGrid=a.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(s.default.isDefined(e)){var t=e.customizeCell,n=e.component,i=e.worksheet,o=e.topLeftCell,r=void 0===o?{row:1,column:1}:o,l=e.excelFilterEnabled;i.properties.outlineProperties={summaryBelow:!1,summaryRight:!1};var u={from:{row:r.row,column:r.column},to:{row:r.row,column:r.column}},c=n.getDataProvider();return new Promise(function(e){c.ready().done(function(){for(var n=c.getColumns(),o=c.getHeaderRowCount(),r=c.getRowsCount(),s=0;s<r;s++){var d=i.getRow(u.from.row+s);a(s,n.length,d,u.from.column,c,t),s>=o&&(d.outlineLevel=c.getGroupLevel(s)),s>=1&&u.to.row++}u.to.column+=n.length>0?n.length-1:0,l===!0&&(r>0&&(i.autoFilter=u),i.views=[{state:"frozen",ySplit:u.from.row+c.getFrozenArea().y-1}]),e(u)})})}}function a(e,t,n,i,o,a){for(var r=0;r<t;r++){var l=o.getCellData(e,r,!0),u=n.getCell(i+r);u.value=l.value,s.default.isDefined(a)&&a({
68cell:u,gridCell:{column:l.cellSourceData.column,rowType:l.cellSourceData.rowType,data:l.cellSourceData.data,value:l.value,groupIndex:l.cellSourceData.groupIndex}})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(1),s=i(r)},function(e,t,n){var i=n(25),o=n(1).isFunction,a=n(3).each,r=n(15);e.exports=r.inherit({ctor:function(e){this._events={},this._owner=e},hasEvent:function(e){var t=this._events[e];return!!t&&t.has()},fireEvent:function(e,t){var n=this._events[e];n&&n.fireWith(this._owner,t)},on:function(e,t){var n,o=this._events[e];o||(o=i(),this._events[e]=o),n=o.originalAdd||o.add,n.call(o,t)},off:function(e,t){var n=this._events[e];n&&(o(t)?n.remove(t):n.empty())},dispose:function(){a(this._events,function(){this.empty()})}})},function(e,t,n){var i=n(2),o=n(11),a=n(7),r=a.getWindow(),s=n(5),l=n(0).extend,u=n(126),c=n(42),d=n(83),h=n(16),p=function(e){e=l({},e);var t=h.real(),n=e.allowZoom,a=e.allowPan,p="allowSelection"in e?e.allowSelection:"generic"===t.platform,f="meta[name=viewport]";i(f).length||i("<meta>").attr("name","viewport").appendTo("head");var g=["width=device-width"],_=[];if(n?_.push("pinch-zoom"):g.push("initial-scale=1.0","maximum-scale=1.0, user-scalable=no"),a&&_.push("pan-x","pan-y"),a||n?i("html").css("msOverflowStyle","-ms-autohiding-scrollbar"):i("html, body").css({msContentZooming:"none",msUserSelect:"none",overflow:"hidden"}),!p&&c.supportProp("userSelect")&&i(".dx-viewport").css(d.styleProp("userSelect"),"none"),i(f).attr("content",g.join()),i("html").css("msTouchAction",_.join(" ")||"none"),t=h.real(),!c.touch||"win"===t.platform&&10===t.version[0]||(s.off(o.getDocument(),".dxInitMobileViewport"),s.on(o.getDocument(),"dxpointermove.dxInitMobileViewport",function(e){var t=e.pointers.length,i="touch"===e.pointerType,o=!n&&t>1,r=!a&&1===t&&!e.isScrollingEvent;i&&(o||r)&&e.preventDefault()})),t.ios){var m="file:"===o.getLocation().protocol;m||u.add(function(){var e=i(r).width();i("body").width(e)})}t.android&&u.add(function(){setTimeout(function(){var e=o.getActiveElement();e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded():e.scrollIntoView(!1)})})};t.initMobileViewport=p},function(e,t,n){var i,o=n(150),a=n(227),r=n(0).extend,s={dxpointerdown:"pointerdown",dxpointermove:"pointermove",dxpointerup:"pointerup",dxpointercancel:"pointercancel",dxpointerover:"pointerover",dxpointerout:"pointerout",dxpointerenter:"pointerenter",dxpointerleave:"pointerleave"},l=!1,u=function(){l||(i=new a(s,function(e,t){return e.pointerId===t.pointerId},function(e){e.isPrimary&&i.reset()}),l=!0)},c=o.inherit({ctor:function(){this.callBase.apply(this,arguments),u()},_fireEvent:function(e){return this.callBase(r({pointers:i.pointers(),pointerId:e.originalEvent.pointerId},e))}});c.map=s,c.resetObserver=function(){i.reset()},e.exports=c},function(e,t,n){var i=n(0).extend,o=n(150),a=n(228),r=n(226),s=n(8),l={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},u=!1,c=function(){u||(a.activate(),u=!0)},d=o.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),c()},_handler:function(e){var t=s.isMouseEvent(e);if(t||(this._skipNextEvents=!0),!t||!this._mouseLocked){if(t&&this._skipNextEvents){this._skipNextEvents=!1,this._mouseLocked=!0,clearTimeout(this._unlockMouseTimer);var n=this;return void(this._unlockMouseTimer=setTimeout(function(){n._mouseLocked=!1},this.EVENT_LOCK_TIMEOUT))}return this.callBase(e)}},_fireEvent:function(e){var t=s.isMouseEvent(e.originalEvent),n=t?a.normalize:r.normalize;return this.callBase(i(n(e.originalEvent),e))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}});d.map=l,d.resetObserver=a.resetObserver,e.exports=d},function(e,t,n){var i=n(84),o=n(14),a=n(51),r=n(33);n(148),t.locale=i.locale.bind(i),t.loadMessages=o.load.bind(o),t.formatMessage=o.format.bind(o),t.formatNumber=a.format.bind(a),t.parseNumber=a.parse.bind(a),t.formatDate=r.format.bind(r),t.parseDate=r.parse.bind(r),t.message=o,t.number=a,t.date=r},function(e,t,n){e.exports={en:{Yes:"Yes",No:"No",Cancel:"Cancel",Clear:"Clear",Done:"Done",Loading:"Loading...",Select:"Select...",Search:"Search",Back:"Back",OK:"OK","dxCollectionWidget-noDataText":"No data to display","dxDropDownEditor-selectLabel":"Select","validation-required":"Required","validation-required-formatted":"{0} is required","validation-numeric":"Value must be a number","validation-numeric-formatted":"{0} must be a number","validation-range":"Value is out of range","validation-range-formatted":"{0} is out of range","validation-stringLength":"The length of the value is not correct","validation-stringLength-formatted":"The length of {0} is not correct","validation-custom":"Value is invalid","validation-custom-formatted":"{0} is invalid","validation-compare":"Values do not match","validation-compare-formatted":"{0} does not match","validation-pattern":"Value does not match pattern","validation-pattern-formatted":"{0} does not match pattern","validation-email":"Email is invalid","validation-email-formatted":"{0} is invalid","validation-mask":"Value is invalid","dxLookup-searchPlaceholder":"Minimum character number: {0}","dxList-pullingDownText":"Pull down to refresh...","dxList-pulledDownText":"Release to refresh...","dxList-refreshingText":"Refreshing...","dxList-pageLoadingText":"Loading...","dxList-nextButtonText":"More","dxList-selectAll":"Select All","dxListEditDecorator-delete":"Delete","dxListEditDecorator-more":"More","dxScrollView-pullingDownText":"Pull down to refresh...","dxScrollView-pulledDownText":"Release to refresh...","dxScrollView-refreshingText":"Refreshing...","dxScrollView-reachBottomText":"Loading...","dxDateBox-simulatedDataPickerTitleTime":"Select time","dxDateBox-simulatedDataPickerTitleDate":"Select date","dxDateBox-simulatedDataPickerTitleDateTime":"Select date and time","dxDateBox-validation-datetime":"Value must be a date or time","dxFileUploader-selectFile":"Select file","dxFileUploader-dropFile":"or Drop file here","dxFileUploader-bytes":"bytes","dxFileUploader-kb":"kb","dxFileUploader-Mb":"Mb","dxFileUploader-Gb":"Gb","dxFileUploader-upload":"Upload","dxFileUploader-uploaded":"Uploaded","dxFileUploader-readyToUpload":"Ready to upload","dxFileUploader-uploadFailedMessage":"Upload failed","dxFileUploader-invalidFileExtension":"File type is not allowed","dxFileUploader-invalidMaxFileSize":"File is too large","dxFileUploader-invalidMinFileSize":"File is too small","dxRangeSlider-ariaFrom":"From","dxRangeSlider-ariaTill":"Till","dxSwitch-switchedOnText":"ON","dxSwitch-switchedOffText":"OFF","dxForm-optionalMark":"optional","dxForm-requiredMessage":"{0} is required","dxNumberBox-invalidValueMessage":"Value must be a number","dxDataGrid-columnChooserTitle":"Column Chooser","dxDataGrid-columnChooserEmptyText":"Drag a column here to hide it","dxDataGrid-groupContinuesMessage":"Continues on the next page","dxDataGrid-groupContinuedMessage":"Continued from the previous page","dxDataGrid-groupHeaderText":"Group by This Column","dxDataGrid-ungroupHeaderText":"Ungroup","dxDataGrid-ungroupAllText":"Ungroup All","dxDataGrid-editingEditRow":"Edit","dxDataGrid-editingSaveRowChanges":"Save","dxDataGrid-editingCancelRowChanges":"Cancel","dxDataGrid-editingDeleteRow":"Delete","dxDataGrid-editingUndeleteRow":"Undelete","dxDataGrid-editingConfirmDeleteMessage":"Are you sure you want to delete this record?","dxDataGrid-validationCancelChanges":"Cancel changes","dxDataGrid-groupPanelEmptyText":"Drag a column header here to group by that column","dxDataGrid-noDataText":"No data","dxDataGrid-searchPanelPlaceholder":"Search...","dxDataGrid-filterRowShowAllText":"(All)","dxDataGrid-filterRowResetOperationText":"Reset","dxDataGrid-filterRowOperationEquals":"Equals","dxDataGrid-filterRowOperationNotEquals":"Does not equal","dxDataGrid-filterRowOperationLess":"Less than","dxDataGrid-filterRowOperationLessOrEquals":"Less than or equal to","dxDataGrid-filterRowOperationGreater":"Greater than","dxDataGrid-filterRowOperationGreaterOrEquals":"Greater than or equal to","dxDataGrid-filterRowOperationStartsWith":"Starts with","dxDataGrid-filterRowOperationContains":"Contains","dxDataGrid-filterRowOperationNotContains":"Does not contain","dxDataGrid-filterRowOperationEndsWith":"Ends with","dxDataGrid-filterRowOperationBetween":"Between","dxDataGrid-filterRowOperationBetweenStartText":"Start","dxDataGrid-filterRowOperationBetweenEndText":"End","dxDataGrid-applyFilterText":"Apply filter","dxDataGrid-trueText":"true","dxDataGrid-falseText":"false","dxDataGrid-sortingAscendingText":"Sort Ascending","dxDataGrid-sortingDescendingText":"Sort Descending","dxDataGrid-sortingClearText":"Clear Sorting","dxDataGrid-editingSaveAllChanges":"Save changes","dxDataGrid-editingCancelAllChanges":"Discard changes","dxDataGrid-editingAddRow":"Add a row","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Min of {1} is {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Max of {1} is {0}","dxDataGrid-summaryAvg":"Avg: {0}","dxDataGrid-summaryAvgOtherColumn":"Avg of {1} is {0}","dxDataGrid-summarySum":"Sum: {0}","dxDataGrid-summarySumOtherColumn":"Sum of {1} is {0}","dxDataGrid-summaryCount":"Count: {0}","dxDataGrid-columnFixingFix":"Fix","dxDataGrid-columnFixingUnfix":"Unfix","dxDataGrid-columnFixingLeftPosition":"To the left","dxDataGrid-columnFixingRightPosition":"To the right","dxDataGrid-exportTo":"Export","dxDataGrid-exportToExcel":"Export to Excel file","dxDataGrid-excelFormat":"Excel file","dxDataGrid-selectedRows":"Selected rows","dxDataGrid-exportSelectedRows":"Export selected rows","dxDataGrid-exportAll":"Export all data","dxDataGrid-headerFilterEmptyValue":"(Blanks)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Cancel","dxDataGrid-ariaColumn":"Column","dxDataGrid-ariaValue":"Value","dxDataGrid-ariaFilterCell":"Filter cell","dxDataGrid-ariaCollapse":"Collapse","dxDataGrid-ariaExpand":"Expand","dxDataGrid-ariaDataGrid":"Data grid","dxDataGrid-ariaSearchInGrid":"Search in data grid","dxDataGrid-ariaSelectAll":"Select all","dxDataGrid-ariaSelectRow":"Select row","dxDataGrid-filterBuilderPopupTitle":"Filter Builder","dxDataGrid-filterPanelCreateFilter":"Create Filter","dxDataGrid-filterPanelClearFilter":"Clear","dxDataGrid-filterPanelFilterEnabledHint":"Enable the filter","dxTreeList-ariaTreeList":"Tree list","dxTreeList-editingAddRowToNode":"Add","dxPager-infoText":"Page {0} of {1} ({2} items)","dxPager-pagesCountText":"of","dxPivotGrid-grandTotal":"Grand Total","dxPivotGrid-total":"{0} Total","dxPivotGrid-fieldChooserTitle":"Field Chooser","dxPivotGrid-showFieldChooser":"Show Field Chooser","dxPivotGrid-expandAll":"Expand All","dxPivotGrid-collapseAll":"Collapse All","dxPivotGrid-sortColumnBySummary":'Sort "{0}" by This Column',"dxPivotGrid-sortRowBySummary":'Sort "{0}" by This Row',"dxPivotGrid-removeAllSorting":"Remove All Sorting","dxPivotGrid-dataNotAvailable":"N/A","dxPivotGrid-rowFields":"Row Fields","dxPivotGrid-columnFields":"Column Fields","dxPivotGrid-dataFields":"Data Fields","dxPivotGrid-filterFields":"Filter Fields","dxPivotGrid-allFields":"All Fields","dxPivotGrid-columnFieldArea":"Drop Column Fields Here","dxPivotGrid-dataFieldArea":"Drop Data Fields Here","dxPivotGrid-rowFieldArea":"Drop Row Fields Here","dxPivotGrid-filterFieldArea":"Drop Filter Fields Here","dxScheduler-editorLabelTitle":"Subject","dxScheduler-editorLabelStartDate":"Start Date","dxScheduler-editorLabelEndDate":"End Date","dxScheduler-editorLabelDescription":"Description","dxScheduler-editorLabelRecurrence":"Repeat","dxScheduler-openAppointment":"Open appointment","dxScheduler-recurrenceNever":"Never","dxScheduler-recurrenceDaily":"Daily","dxScheduler-recurrenceWeekly":"Weekly","dxScheduler-recurrenceMonthly":"Monthly","dxScheduler-recurrenceYearly":"Yearly","dxScheduler-recurrenceRepeatEvery":"Repeat Every","dxScheduler-recurrenceRepeatOn":"Repeat On","dxScheduler-recurrenceEnd":"End repeat","dxScheduler-recurrenceAfter":"After","dxScheduler-recurrenceOn":"On","dxScheduler-recurrenceRepeatDaily":"day(s)","dxScheduler-recurrenceRepeatWeekly":"week(s)","dxScheduler-recurrenceRepeatMonthly":"month(s)","dxScheduler-recurrenceRepeatYearly":"year(s)","dxScheduler-switcherDay":"Day","dxScheduler-switcherWeek":"Week","dxScheduler-switcherWorkWeek":"Work Week","dxScheduler-switcherMonth":"Month","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Timeline Day","dxScheduler-switcherTimelineWeek":"Timeline Week","dxScheduler-switcherTimelineWorkWeek":"Timeline Work Week","dxScheduler-switcherTimelineMonth":"Timeline Month","dxScheduler-recurrenceRepeatOnDate":"on date","dxScheduler-recurrenceRepeatCount":"occurrence(s)","dxScheduler-allDay":"All day","dxScheduler-confirmRecurrenceEditMessage":"Do you want to edit only this appointment or the whole series?","dxScheduler-confirmRecurrenceDeleteMessage":"Do you want to delete only this appointment or the whole series?","dxScheduler-confirmRecurrenceEditSeries":"Edit series","dxScheduler-confirmRecurrenceDeleteSeries":"Delete series","dxScheduler-confirmRecurrenceEditOccurrence":"Edit appointment","dxScheduler-confirmRecurrenceDeleteOccurrence":"Delete appointment","dxScheduler-noTimezoneTitle":"No timezone","dxScheduler-moreAppointments":"{0} more","dxCalendar-todayButtonText":"Today","dxCalendar-ariaWidgetName":"Calendar","dxColorView-ariaRed":"Red","dxColorView-ariaGreen":"Green","dxColorView-ariaBlue":"Blue","dxColorView-ariaAlpha":"Transparency","dxColorView-ariaHex":"Color code","dxTagBox-selected":"{0} selected","dxTagBox-allSelected":"All selected ({0})","dxTagBox-moreSelected":"{0} more","vizExport-printingButtonText":"Print","vizExport-titleMenuText":"Exporting/Printing","vizExport-exportButtonText":"{0} file","dxFilterBuilder-and":"And","dxFilterBuilder-or":"Or","dxFilterBuilder-notAnd":"Not And","dxFilterBuilder-notOr":"Not Or","dxFilterBuilder-addCondition":"Add Condition","dxFilterBuilder-addGroup":"Add Group","dxFilterBuilder-enterValueText":"<enter a value>","dxFilterBuilder-filterOperationEquals":"Equals","dxFilterBuilder-filterOperationNotEquals":"Does not equal","dxFilterBuilder-filterOperationLess":"Is less than","dxFilterBuilder-filterOperationLessOrEquals":"Is less than or equal to","dxFilterBuilder-filterOperationGreater":"Is greater than","dxFilterBuilder-filterOperationGreaterOrEquals":"Is greater than or equal to","dxFilterBuilder-filterOperationStartsWith":"Starts with","dxFilterBuilder-filterOperationContains":"Contains","dxFilterBuilder-filterOperationNotContains":"Does not contain","dxFilterBuilder-filterOperationEndsWith":"Ends with","dxFilterBuilder-filterOperationIsBlank":"Is blank","dxFilterBuilder-filterOperationIsNotBlank":"Is not blank","dxFilterBuilder-filterOperationBetween":"Is between","dxFilterBuilder-filterOperationAnyOf":"Is any of","dxFilterBuilder-filterOperationNoneOf":"Is none of","dxHtmlEditor-dialogColorCaption":"Change Font Color","dxHtmlEditor-dialogBackgroundCaption":"Change Background Color","dxHtmlEditor-dialogLinkCaption":"Add Link","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Text","dxHtmlEditor-dialogLinkTargetField":"Open link in new window","dxHtmlEditor-dialogImageCaption":"Add Image","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Alternate text","dxHtmlEditor-dialogImageWidthField":"Width (px)","dxHtmlEditor-dialogImageHeightField":"Height (px)","dxHtmlEditor-heading":"Heading","dxHtmlEditor-normalText":"Normal text","dxFileManager-newFolderName":"Untitled folder","dxFileManager-errorNoAccess":"Access denied. The operation cannot be completed.","dxFileManager-errorDirectoryExistsFormat":"Directory '{0}' already exists.","dxFileManager-errorFileExistsFormat":"File '{0}' already exists.","dxFileManager-errorFileNotFoundFormat":"File '{0}' not found","dxFileManager-errorDefault":"Unspecified error."}}},function(e,t,n){e.exports={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CA":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PH":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","az-Arab":"root","az-Cyrl":"root","blt-Latn":"root","bm-Nkoo":"root","bs-Cyrl":"root","byn-Latn":"root","cu-Glag":"root","dje-Arab":"root","dyo-Arab":"root","en-Dsrt":"root","en-Shaw":"root","ff-Adlm":"root","ff-Arab":"root","ha-Arab":"root","iu-Latn":"root","kk-Arab":"root","ku-Arab":"root","ky-Arab":"root","ky-Latn":"root","ml-Arab":"root","mn-Mong":"root","ms-Arab":"root","pa-Arab":"root","sd-Deva":"root","sd-Khoj":"root","sd-Sind":"root","shi-Latn":"root","so-Arab":"root","sr-Latn":"root","sw-Arab":"root","tg-Arab":"root","ug-Cyrl":"root","uz-Arab":"root","uz-Cyrl":"root","vai-Latn":"root","wo-Arab":"root","yo-Arab":"root","yue-Hans":"root","zh-Hant":"root","zh-Hant-MO":"zh-Hant-HK"}},function(e,t,n){var i=n(53),o=n(213),a=n(77)();a&&o.set(i)},function(e,t,n){var i=n(53),o=n(77)(),a=n(58).compare,r=n(3).each,s=n(1).isNumeric,l=n(8).setEventFixMethod,u=n(67),c=n(214);if(o)if(a(i.fn.jquery,[3])<0){var d={2:"touch",3:"pen",4:"mouse"};r(["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel","MSPointerOver","MSPointerOut","mouseenter","mouseleave","pointerdown","pointermove","pointerup","pointercancel","pointerover","pointerout","pointerenter","pointerleave"],function(){i.event.fixHooks[this]={filter:function(e,t){var n=t.pointerType;return s(n)&&(e.pointerType=d[n]),e},props:i.event.mouseHooks.props.concat(["pointerId","pointerType","originalTarget","width","height","pressure","result","tiltX","charCode","tiltY","detail","isPrimary","prevValue"])}}),r(["touchstart","touchmove","touchend","touchcancel"],function(){i.event.fixHooks[this]={filter:function(e,t){return c(function(n,i){e[n]=i(t)}),e},props:i.event.mouseHooks.props.concat(["touches","changedTouches","targetTouches","detail","result","originalTarget","charCode","prevValue"])}}),i.event.fixHooks.wheel=i.event.mouseHooks;var h={props:i.event.mouseHooks.props.concat(["pointerType","pointerId","pointers"])};u.callbacks.add(function(e){i.event.fixHooks[e]=h});var p=function(e,t){for(var n=i.event.fixHooks[t.type]||i.event.mouseHooks,o=n.props?i.event.props.concat(n.props):i.event.props,a=o.length;a--;){var r=o[a];e[r]=t[r]}return n.filter?n.filter(e,t):e};l(p)}else c(function(e,t){i.event.addProp(e,t)})},function(e,t,n){var i=n(53),o=n(6),a=n(77)(),r=n(58).compare;if(a){var s=i.Deferred,l={Deferred:s};l.when=r(i.fn.jquery,[3])<0?i.when:function(e){return 0===arguments.length?(new s).resolve():1===arguments.length?e&&e.then?e:(new s).resolve(e):i.when.apply(i,arguments)},o.setStrategy(l)}},function(e,t,n){var i=n(53),o=n(230),a=n(47).add;if(i&&!o.fired()){var r=i.holdReady||i.fn.holdReady;r(!0),o.add(function(){a(function(){r(!1)})})}},function(e,t,n){var i=n(53),o=n(5),a=n(77)(),r=n(113),s=n(11);a&&(r.add(function(e,t){i.event.special[e]=t}),o.forcePassiveFalseEventNames.forEach(function(e){i.event.special[e]={setup:function(t,n,i){s.listen(this,e,i,{passive:!1})}}}),o.set({on:function(e){i(e).on.apply(i(e),Array.prototype.slice.call(arguments,1))},one:function(e){i(e).one.apply(i(e),Array.prototype.slice.call(arguments,1))},off:function(e){i(e).off.apply(i(e),Array.prototype.slice.call(arguments,1))},trigger:function(e){i(e).trigger.apply(i(e),Array.prototype.slice.call(arguments,1))},triggerHandler:function(e){i(e).triggerHandler.apply(i(e),Array.prototype.slice.call(arguments,1))},Event:i.Event}))},function(e,t,n){var i=n(53),o=n(225);i&&o.setEasing(i.easing)},function(e,t,n){var i=n(53),o=n(37),a=n(77)();a&&o.setDataStrategy(i)},function(e,t,n){var i=n(12).setPublicElementWrapper,o=n(77)(),a=function(e){return e};o&&i(a)},function(e,t,n){var i=n(53),o=n(149),a=n(21);if(i){var r=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(r)}},function(e,t,n){var i=n(53),o=n(57),a=n(77)();a&&o.inject({sendRequest:function(e){return e.responseType||e.upload?this.callBase.apply(this,[e]):i.ajax(e)}})},function(e,t,n){var i=n(231);i&&(n(229),n(459),n(470),n(471),n(472))},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var 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},a=n(2),r=i(a),s=n(5),l=i(s),u=n(28),c=i(u),d=n(149),h=i(d),p=n(15),f=i(p),g=n(25),_=i(g),m=n(1),v=i(m),y=n(3),x=i(y),b=n(13),w=i(b),C=n(232),k=i(C),S=n(18),I=i(S),T=n(49),D=i(T),E=n(464),A=i(E),O=n(180),B=i(O),P=n(54),M=i(P),R=n(20),V=i(R),F=n(0),L=i(F),H=n(32),z=i(H),N=n(21),$=i(N),W=x.default.each,G=w.default.inArray,j=V.default.compileSetter,q=V.default.compileGetter,K=L.default.extendFromObject,U="dxItemAlias",Y=["rendering"],X="value",Z=function(e,t){return t.$root.$$phase?e(t):t.$apply(function(){return e(t)})},Q=f.default.inherit({ctor:function(e){this._componentDisposing=(0,_.default)(),this._optionChangedCallbacks=(0,_.default)(),this._ngLocker=new k.default,this._scope=e.scope,this._$element=e.$element,this._$templates=e.$templates,this._componentClass=e.componentClass,this._parse=e.parse,this._compile=e.compile,this._itemAlias=e.itemAlias,this._transcludeFn=e.transcludeFn,this._digestCallbacks=e.dxDigestCallbacks,this._normalizeOptions(e.ngOptions),this._initComponentBindings(),this._initComponent(this._scope),e.ngOptions||this._addOptionsStringWatcher(e.ngOptionsString)},_addOptionsStringWatcher:function(e){var t=this,n=this._scope.$watch(e,function(e){e&&(n(),t._normalizeOptions(e),t._initComponentBindings(),t._component.option(t._evalOptions(t._scope)))});this._componentDisposing.add(n)},_normalizeOptions:function(e){var t=this;this._ngOptions=K({},e),e&&(!Object.prototype.hasOwnProperty.call(e,"bindingOptions")&&e.bindingOptions&&(this._ngOptions.bindingOptions=e.bindingOptions),e.bindingOptions&&W(e.bindingOptions,function(e,n){"string"===v.default.type(n)&&(t._ngOptions.bindingOptions[e]={dataPath:n})}))},_initComponent:function(e){this._component=new this._componentClass(this._$element,this._evalOptions(e)),this._component._isHidden=!0,this._handleDigestPhase()},_handleDigestPhase:function(){var e=this,t=function(){e._component.beginUpdate()},n=function(){e._component.endUpdate()};this._digestCallbacks.begin.add(t),this._digestCallbacks.end.add(n),this._componentDisposing.add(function(){e._digestCallbacks.begin.remove(t),e._digestCallbacks.end.remove(n)})},_initComponentBindings:function(){var e=this,t={};this._ngOptions.bindingOptions&&(W(this._ngOptions.bindingOptions,function(n,i){var o=n.search(/\[|\./),a=o>-1?n.substring(0,o):n,r=void 0,s=void 0,l=i.dataPath,u=!0,c=!1;void 0!==i.deep&&(c=u=!!i.deep),t[a]||(t[a]={}),t[a][n]=l;var d=function(t,i){e._ngLocker.locked(n)||(e._ngLocker.obtain(n),e._component.option(n,t),h(),e._component._optionValuesEqual(n,i,t)&&e._ngLocker.locked(n)&&e._ngLocker.release(n))},h=function(){var t=Array.isArray(e._scope.$eval(l))&&!c?"$watchCollection":"$watch";r!==t&&(s&&s(),s=e._scope[t](l,d,u),r=t)};h(),e._componentDisposing.add(s)}),this._optionChangedCallbacks.add(function(n){var i=n.name,o=n.fullName,a=n.component;if(e._ngLocker.locked(o))return void e._ngLocker.release(o);if(t&&t[i]){var r=e._scope.$root.$$phase,s=function(){e._ngLocker.obtain(o)};r?e._digestCallbacks.begin.add(s):s(),Z(function(){W(t[i],function(t,i){if(e._optionsAreLinked(o,t)){var r=a.option(t);e._parse(i).assign(e._scope,r);var s=e._parse(i)(e._scope);s!==r&&n.component.option(t,s)}})},e._scope);var l=function t(){e._ngLocker.locked(o)&&e._ngLocker.release(o),e._digestCallbacks.begin.remove(s),e._digestCallbacks.end.remove(t)};r?e._digestCallbacks.end.addPrioritized(l):l()}}))},_optionsAreNested:function(e,t){var n=e[t.length];return 0===e.indexOf(t)&&("."===n||"["===n)},_optionsAreLinked:function(e,t){return e===t||(e.length>t.length?this._optionsAreNested(e,t):this._optionsAreNested(t,e))},_compilerByTemplate:function(e){var t=this,n=this._getScopeItemsPath();return function(i){var o=(0,r.default)(e).clone(),a=i.model&&i.model.constructor===t._scope.$root.constructor,s=a?i.model:i.noModel?t._scope:t._createScopeWithData(i);n&&t._synchronizeScopes(s,n,i.index),o.appendTo(i.container),i.noModel||l.default.on(o,"$destroy",function(){var e=!s.$parent;e||s.$destroy()});var u=t._compile(o,t._transcludeFn);return t._applyAsync(function(e){u(e,null,{parentBoundTranscludeFn:t._transcludeFn})},s),o}},_applyAsync:function(e,t){var n=this;e(t),t.$root.$$phase||(this._renderingTimer||(this._renderingTimer=setTimeout(function(){t.$apply(),n._renderingTimer=null})),this._componentDisposing.add(function(){clearTimeout(n._renderingTimer)}))},_getScopeItemsPath:function(){if(this._componentClass.subclassOf(M.default)&&this._ngOptions.bindingOptions&&this._ngOptions.bindingOptions.items)return this._ngOptions.bindingOptions.items.dataPath},_createScopeWithData:function(e){var t=this._scope.$new();return this._itemAlias&&(t[this._itemAlias]=e.model),v.default.isDefined(e.index)&&(t.$index=e.index),t},_synchronizeScopes:function(e,t,n){this._itemAlias&&"object"!==o(e[this._itemAlias])&&this._synchronizeScopeField({parentScope:this._scope,childScope:e,fieldPath:this._itemAlias,parentPrefix:t,itemIndex:n})},_synchronizeScopeField:function(e){var t=e.parentScope,n=e.childScope,i=e.fieldPath,o=e.parentPrefix,a=e.itemIndex,r=i===this._itemAlias?"":"."+i,s=void 0!==a,l=[o],u=void 0;if(s){if(!v.default.isNumeric(a))return;l.push("[",a,"]")}l.push(r),u=l.join("");var c=t.$watch(u,function(e,t){e!==t&&j(i)(n,e)}),d=n.$watch(i,function(e,n){if(e!==n){if(s&&!q(o)(t)[a])return void d();j(u)(t,e)}});this._componentDisposing.add([c,d])},_evalOptions:function(e){var t=this,n=K({},this._ngOptions);return delete n.bindingOptions,this._ngOptions.bindingOptions&&W(this._ngOptions.bindingOptions,function(t,i){n[t]=e.$eval(i.dataPath)}),n._optionChangedCallbacks=this._optionChangedCallbacks,n._disposingCallbacks=this._componentDisposing,n.onActionCreated=function(t,n,i){if(i&&G(i.category,Y)>-1)return n;var o=function(){var t=this,i=arguments;return e&&e.$root&&!e.$root.$$phase?Z(function(){return n.apply(t,i)},e):n.apply(this,i)};return o},n.beforeActionExecute=n.onActionCreated,n.nestedComponentOptions=function(e){return{templatesRenderAsynchronously:e.option("templatesRenderAsynchronously"),forceApplyBindings:e.option("forceApplyBindings"),modelByElement:e.option("modelByElement"),onActionCreated:e.option("onActionCreated"),beforeActionExecute:e.option("beforeActionExecute"),nestedComponentOptions:e.option("nestedComponentOptions")}},n.templatesRenderAsynchronously=!0,(0,c.default)().wrapActionsBeforeExecute&&(n.forceApplyBindings=function(){Z(function(){},e)}),n.integrationOptions={createTemplate:function(e){return new A.default(e,t._compilerByTemplate.bind(t))},watchMethod:function(n,i,o){o=o||{};var a=void 0,r=o.skipImmediate,s=e.$watch(function(){var e=n();return e instanceof Date&&(e=e.valueOf()),e},function(e){var t=a===e;!r&&(!t||t&&o.deep)&&i(e),r=!1},o.deep);return r||(a=n(),i(a)),(0,c.default)().wrapActionsBeforeExecute&&t._applyAsync(function(){},e),s},templates:{"dx-polymorph-widget":{render:function(e){var n=e.model.widget;if(n){if("button"===n||"tabs"===n||"dropDownMenu"===n){var i=n;n=z.default.camelize("dx-"+n),$.default.log("W0001","dxToolbar - 'widget' item field",i,"16.1","Use: '"+n+"' instead")}var o=(0,r.default)("<div>").attr(z.default.dasherize(n),"options").get(0),a=t._scope.$new();a.options=e.model.options,e.container.append(o),t._compile(o)(a)}}}}},n.modelByElement=function(){return e},n}});Q=Q.inherit({ctor:function(e){this._componentName=e.componentName,this._ngModel=e.ngModel,this._ngModelController=e.ngModelController,this.callBase.apply(this,arguments)},_isNgModelRequired:function(){return(this._componentClass.subclassOf(D.default)||this._componentClass.prototype instanceof D.default)&&this._ngModel},_initComponentBindings:function(){this.callBase.apply(this,arguments),this._initNgModelBinding()},_initNgModelBinding:function(){var e=this;if(this._isNgModelRequired()){var t=this._scope.$watch(this._ngModel,function(t,n){e._ngLocker.locked(X)||t!==n&&e._component.option(X,t)});this._optionChangedCallbacks.add(function(t){e._ngLocker.obtain(X);try{if(t.name!==X)return;e._ngModelController.$setViewValue(t.value)}finally{e._ngLocker.locked(X)&&e._ngLocker.release(X)}}),this._componentDisposing.add(t)}},_evalOptions:function(){if(!this._isNgModelRequired())return this.callBase.apply(this,arguments);var e=this.callBase.apply(this,arguments);return e[X]=this._parse(this._ngModel)(this._scope),e}});var J={},ee=function(e){var t="dxValidator"!==e?1:10;B.default.directive(e,["$compile","$parse","dxDigestCallbacks",function(n,i,o){return{restrict:"A",require:"^?ngModel",priority:t,compile:function(t){var a=J[e],r=a.subclassOf(I.default)?t.contents().detach():null;return function(t,s,l,u,c){s.append(r),Z(function(){new Q({componentClass:a,componentName:e,compile:n,parse:i,$element:s,scope:t,ngOptionsString:l[e],ngOptions:l[e]?t.$eval(l[e]):{},ngModel:l.ngModel,ngModelController:u,transcludeFn:c,itemAlias:l[U],dxDigestCallbacks:o})},t)}}}}])};h.default.add(function(e,t){J[e]||ee(e),J[e]=t})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(71),s=i(r),l=n(12),u=n(186);n(461),(0,u.registerTemplateEngine)("default",{compile:function(e){return(0,l.normalizeTemplateElement)(e)},render:function(e,t,n){return e.clone()}}),(0,u.setTemplateEngine)("default");var c=s.default.inherit({ctor:function(e){
69this._element=e},_renderCore:function(e){var t=e.transclude;return t||this._compiledTemplate||(this._compiledTemplate=(0,u.getCurrentTemplateEngine)().compile(this._element)),(0,a.default)("<div>").append(t?this._element:(0,u.getCurrentTemplateEngine)().render(this._compiledTemplate,e.model,e.index)).contents()},source:function(){return(0,a.default)(this._element).clone()}});e.exports=c},function(e,t,n){var i=n(12),o=n(186);(0,o.registerTemplateEngine)("jquery-tmpl",{compile:function(e){return(0,i.extractTemplateMarkup)(e)},render:function(e,t){return jQuery.tmpl(e,t)}}),(0,o.registerTemplateEngine)("jsrender",{compile:function(e){return(jQuery?jQuery:jsrender).templates((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e.render(t)}}),(0,o.registerTemplateEngine)("mustache",{compile:function(e){return(0,i.extractTemplateMarkup)(e)},render:function(e,t){return Mustache.render(e,t)}}),(0,o.registerTemplateEngine)("hogan",{compile:function(e){return Hogan.compile((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e.render(t)}}),(0,o.registerTemplateEngine)("underscore",{compile:function(e){return _.template((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(t)}}),(0,o.registerTemplateEngine)("handlebars",{compile:function(e){return Handlebars.compile((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(t)}}),(0,o.registerTemplateEngine)("doT",{compile:function(e){return doT.template((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(t)}})},function(e,t,n){var 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},o=n(2),a=n(11),r=n(7),s=n(47).add,l=r.getWindow(),u=r.getNavigator(),c=n(5),d=n(38),h=n(27),p=n(58).compare,f=n(75),g=n(0).extend,_=n(13).inArray,m=n(12).getPublicElement,v=f.changeCallback,y=n(211).hideCallback,x=n(76),b=n(29).fitIntoRange,w=n(12),C=n(4).noop,k=n(1),S=n(3).each,I=n(16),T=n(26),D=n(9),E=n(18),A=n(159),O=n(64),B=n(55),P=n(8),M=n(24),R=n(175),V=n(111),F=n(6).Deferred,L=n(463),H=n(151),z="dx-overlay",N="dx-overlay-wrapper",$="dx-overlay-content",W="dx-overlay-shader",G="dx-overlay-modal",j="dx-inner-overlay",q="dx-state-invisible",K="content",U="dx-rtl",Y=["onShowing","onShown","onHiding","onHidden","onPositioning","onPositioned","onResizeStart","onResize","onResizeEnd"],X=[],Z="dx-state-disabled",Q="dx-prevent-safari-scrolling",J="tab",ee={top:{my:"top center",at:"top center"},bottom:{my:"bottom center",at:"bottom center"},right:{my:"right center",at:"right center"},left:{my:"left center",at:"left center"},center:{my:"center",at:"center"},"right bottom":{my:"right bottom",at:"right bottom"},"right top":{my:"right top",at:"right top"},"left bottom":{my:"left bottom",at:"left bottom"},"left top":{my:"left top",at:"left top"}},te=I.real(),ne=te.version,ie=T.mozilla&&"desktop"===te.deviceType,oe="ios"===te.platform,ae=T.safari&&"desktop"!==te.deviceType,re=oe&&p(ne,[7,1])<0,se="android"===te.platform&&0===p(ne,[4,0],2)&&u.userAgent.indexOf("Chrome")===-1,le=function(e){if((re||ie)&&e.width(),se){var t=e.parents(),n=t.is(".dx-scrollable-native");n||(t.css("backfaceVisibility","hidden"),t.css("backfaceVisibility"),t.css("backfaceVisibility","visible"))}},ue=function(e){return e&&o(e.target||e)};s(function(){c.subscribeGlobal(a.getDocument(),M.down,function(e){for(var t=X.length-1;t>=0;t--)if(!X[t]._proxiedDocumentDownHandler(e))return})});var ce=E.inherit({_supportedKeys:function(){var e=5,t=function(e,t,n){if(this.option("dragEnabled")){n.preventDefault(),n.stopPropagation();var i=this._allowedOffsets(),o={top:b(e,-i.top,i.bottom),left:b(t,-i.left,i.right)};this._changePosition(o)}};return g(this.callBase(),{escape:function(){this.hide()},upArrow:t.bind(this,-e,0),downArrow:t.bind(this,e,0),leftArrow:t.bind(this,0,-e),rightArrow:t.bind(this,0,e)})},_getDefaultOptions:function(){return g(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",position:{my:"center",at:"center"},width:function(){return.8*o(l).width()},minWidth:null,maxWidth:null,height:function(){return.8*o(l).height()},minHeight:null,maxHeight:null,animation:{show:{type:"pop",duration:300,from:{scale:.55}},hide:{type:"pop",duration:300,to:{opacity:0,scale:.55},from:{opacity:1,scale:1}}},closeOnOutsideClick:!1,closeOnBackButton:!0,onShowing:null,onShown:null,onHiding:null,onHidden:null,contentTemplate:"content",dragEnabled:!1,resizeEnabled:!1,onResizeStart:null,onResize:null,onResizeEnd:null,innerOverlay:!1,target:void 0,container:void 0,hideTopOverlayHandler:void 0,closeOnTargetScroll:!1,onPositioned:null,boundaryOffset:{h:0,v:0},propagateOutsideClick:!1,ignoreChildEvents:!0,_checkParentVisibility:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=I.real(),t=e.platform,n=e.version;return"android"===t&&p(n,[4,2])<0},options:{animation:{show:{type:"fade",duration:400},hide:{type:"fade",duration:400,to:{opacity:0},from:{opacity:1}}}}},{device:function(){return!r.hasWindow()},options:{width:null,height:null,animation:null,_checkParentVisibility:!1}}])},_setOptionsByReference:function(){this.callBase(),g(this._optionsByReference,{animation:!0})},_getAnonymousTemplateName:function(){return K},_wrapper:function(){return this._$wrapper},_container:function(){return this._$content},_eventBindingTarget:function(){return this._$content},_init:function(){this.callBase(),this._initActions(),this._initCloseOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._$wrapper=o("<div>").addClass(N),this._$content=o("<div>").addClass($),this._initInnerOverlayClass();var e=this.$element();this._$wrapper.addClass(e.attr("class")),e.addClass(z),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),c.on(this._$wrapper,"MSPointerDown",C),c.on(this._$wrapper,"focusin",function(e){e.stopPropagation()}),this._toggleViewPortSubscription(!0)},_initOptions:function(e){this._initTarget(e.target),this._initContainer(e.container),this._initHideTopOverlayHandler(e.hideTopOverlayHandler),this.callBase(e)},_initInnerOverlayClass:function(){this._$content.toggleClass(j,this.option("innerOverlay"))},_initTarget:function(e){if(k.isDefined(e)){var t=this.option();S(["position.of","animation.show.from.position.of","animation.show.to.position.of","animation.hide.from.position.of","animation.hide.to.position.of"],function(n,i){for(var o=i.split("."),a=t;a;){if(1===o.length){k.isPlainObject(a)&&(a[o.shift()]=e);break}a=a[o.shift()]}})}},_initContainer:function(e){e=void 0===e?f.value():e;var t=this.$element(),n=t.closest(e);n.length||(n=o(e).first()),this._$container=n.length?n:t.parent()},_initHideTopOverlayHandler:function(e){this._hideTopOverlayHandler=void 0!==e?e:this._defaultHideTopOverlayHandler.bind(this)},_defaultHideTopOverlayHandler:function(){this.hide()},_initActions:function(){this._actions={},S(Y,function(e,t){this._actions[t]=this._createActionByOption(t,{excludeValidators:["disabled","readOnly"]})||C}.bind(this))},_initCloseOnOutsideClickHandler:function(){var e=this;this._proxiedDocumentDownHandler=function(){return e._documentDownHandler.apply(e,arguments)}},_documentDownHandler:function(e){this._showAnimationProcessing&&this._stopAnimation();var t=this.option("closeOnOutsideClick");k.isFunction(t)&&(t=t(e));var n=this._$content,i=o(l.document).is(e.target)||w.contains(l.document,e.target),a=o(e.target).closest("."+j).length,r=i&&!a&&!(n.is(e.target)||w.contains(n.get(0),e.target));return r&&t&&(this.option("shading")&&e.preventDefault(),this.hide()),this.option("propagateOutsideClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new V(this)},_isTopOverlay:function(){for(var e=this._overlayStack(),t=e.length-1;t>=0;t--){var n=e[t]._findTabbableBounds();if(n.first||n.last)return e[t]===this}return!1},_overlayStack:function(){return X},_zIndexInitValue:function(){return ce.baseZIndex()},_toggleViewPortSubscription:function(e){v.remove(this._viewPortChangeHandle),e&&(this._viewPortChangeHandle=this._viewPortChangeHandler.bind(this),v.add(this._viewPortChangeHandle))},_viewPortChangeHandler:function(){this._initContainer(this.option("container")),this._refresh()},_renderVisibilityAnimate:function(e){return this._stopAnimation(),e?this._show():this._hide()},_normalizePosition:function(){var e=this.option("position");this._position="function"==typeof e?e():e},_getAnimationConfig:function(){var e=this.option("animation");return k.isFunction(e)&&(e=e.call(this)),e},_show:function(){var e=this,t=new F;if(this._parentHidden=this._isParentHidden(),t.done(function(){delete e._parentHidden}),this._parentHidden)return this._isHidden=!0,t.resolve();if(this._currentVisible)return(new F).resolve().promise();this._currentVisible=!0,this._normalizePosition();var n=e._getAnimationConfig()||{},i=this._normalizeAnimation(n.show,"to"),o=i&&i.start||C,a=i&&i.complete||C;if(this._isHidingActionCanceled)delete this._isHidingActionCanceled,t.resolve();else{var r=function(){this._renderVisibility(!0),this._animate(i,function(){e.option("focusStateEnabled")&&c.trigger(e._focusTarget(),"focus"),a.apply(this,arguments),e._showAnimationProcessing=!1,e._actions.onShown(),e._toggleSafariScrolling(!1),t.resolve()},function(){o.apply(this,arguments),e._showAnimationProcessing=!0})}.bind(this);this.option("templatesRenderAsynchronously")?(this._stopShowTimer(),this._asyncShowTimeout=setTimeout(r)):r()}return t.promise()},_normalizeAnimation:function(e,t){return e&&(e=g({type:"slide"},e),e[t]&&"object"===i(e[t])&&g(e[t],{position:this._position})),e},_hide:function(){if(!this._currentVisible)return(new F).resolve().promise();this._currentVisible=!1;var e=this,t=new F,n=e._getAnimationConfig()||{},i=this._normalizeAnimation(n.hide,"from"),o=i&&i.start||C,a=i&&i.complete||C,r={cancel:!1};return this._actions.onHiding(r),e._toggleSafariScrolling(!0),r.cancel?(this._isHidingActionCanceled=!0,this.option("visible",!0),t.resolve()):(this._forceFocusLost(),this._toggleShading(!1),this._toggleSubscriptions(!1),this._stopShowTimer(),this._animate(i,function(){e._$content.css("pointerEvents",""),e._renderVisibility(!1),a.apply(this,arguments),e._actions.onHidden(),t.resolve()},function(){e._$content.css("pointerEvents","none"),o.apply(this,arguments)})),t.promise()},_forceFocusLost:function(){var e=a.getActiveElement();e&&this._$content.find(e).length&&e.blur()},_animate:function(e,t,n){e?(n=n||e.start||C,d.animate(this._$content,g({},e,{start:n,complete:t}))):t()},_stopAnimation:function(){d.stop(this._$content,!0)},_renderVisibility:function(e){e&&this._isParentHidden()||(this._currentVisible=e,this._stopAnimation(),e||w.triggerHidingEvent(this._$content),this._toggleVisibility(e),this._$content.toggleClass(q,!e),this._updateZIndexStackPosition(e),e?(this._renderContent(),this._actions.onShowing(),this._moveToContainer(),this._renderGeometry(),w.triggerShownEvent(this._$content),w.triggerResizeEvent(this._$content)):this._moveFromContainer(),this._toggleShading(e),this._toggleSubscriptions(e))},_updateZIndexStackPosition:function(e){var t=this._overlayStack(),n=_(this,t);e?(n===-1&&(this._zIndex=L.create(this._zIndexInitValue()),t.push(this)),this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)):n!==-1&&(t.splice(n,1),L.remove(this._zIndex))},_toggleShading:function(e){this._$wrapper.toggleClass(G,this.option("shading")&&!this.option("container")),this._$wrapper.toggleClass(W,e&&this.option("shading")),this._$wrapper.css("backgroundColor",this.option("shading")?this.option("shadingColor"):""),this._toggleTabTerminator(e&&this.option("shading"))},_initTabTerminatorHandler:function(){var e=this;this._proxiedTabTerminatorHandler=function(){e._tabKeyHandler.apply(e,arguments)}},_toggleTabTerminator:function(e){var t=P.addNamespace("keydown",this.NAME);e?c.on(a.getDocument(),t,this._proxiedTabTerminatorHandler):c.off(a.getDocument(),t,this._proxiedTabTerminatorHandler)},_findTabbableBounds:function(){for(var e=this._$wrapper.find("*"),t=e.length-1,n={first:null,last:null},i=0;i<=t&&(!n.first&&e.eq(i).is(O.tabbable)&&(n.first=e.eq(i)),!n.last&&e.eq(t-i).is(O.tabbable)&&(n.last=e.eq(t-i)),!n.first||!n.last);i++);return n},_tabKeyHandler:function(e){if(P.normalizeKeyName(e)===J&&this._isTopOverlay()){var t=this._findTabbableBounds(),n=t.first,i=t.last,o=!e.shiftKey&&e.target===i.get(0),a=e.shiftKey&&e.target===n.get(0),r=0===t.length,s=!w.contains(this._$wrapper.get(0),e.target);if(o||a||r||s){e.preventDefault();var l=e.shiftKey?i:n;c.trigger(l,"focusin"),c.trigger(l,"focus")}}},_toggleSubscriptions:function(e){r.hasWindow()&&(this._toggleHideTopOverlayCallback(e),this._toggleParentsScrollSubscription(e))},_toggleHideTopOverlayCallback:function(e){this._hideTopOverlayHandler&&(e&&this.option("closeOnBackButton")?y.add(this._hideTopOverlayHandler):y.remove(this._hideTopOverlayHandler))},_toggleParentsScrollSubscription:function(e){if(this._position){var t=this._position.of||o(),n=this.option("closeOnTargetScroll"),i=ue(t).parents(),a=P.addNamespace("scroll",this.NAME);"generic"===I.real().platform&&(i=i.add(l)),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(e){this._targetParentsScrollHandler(e)}.bind(this),c.off(o().add(this._$prevTargetParents),a,this._proxiedTargetParentsScrollHandler),e&&n&&(c.on(i,a,this._proxiedTargetParentsScrollHandler),this._$prevTargetParents=i)}},_targetParentsScrollHandler:function(e){var t=!1,n=this.option("closeOnTargetScroll");k.isFunction(n)&&(t=n(e)),t||this._showAnimationProcessing||this.hide()},_render:function(){this.callBase(),this._appendContentToElement(),this._renderVisibilityAnimate(this.option("visible"))},_appendContentToElement:function(){this._$content.parent().is(this.$element())||this._$content.appendTo(this.$element())},_renderContent:function(){var e=!this._currentVisible&&this.option("deferRendering"),t=this.option("visible")&&this._isParentHidden();return t?void(this._isHidden=!0):void(this._contentAlreadyRendered||e||(this._contentAlreadyRendered=!0,this._appendContentToElement(),this.callBase()))},_isParentHidden:function(){if(!this.option("_checkParentVisibility"))return!1;if(void 0!==this._parentHidden)return this._parentHidden;var e=this.$element().parent();if(e.is(":visible"))return!1;var t=!1;return e.add(e.parents()).each(function(){var e=o(this);if("none"===e.css("display"))return t=!0,!1}),t||!a.getBody().contains(e.get(0))},_renderContentImpl:function(){var e=this,t=new F,n=this.option("contentTemplate"),i=this._getTemplate(n),o=this._getAnonymousTemplateName()===n;return i&&i.render({container:m(this.$content()),noModel:!0,transclude:o,onRendered:function(){t.resolve()}}),this._renderDrag(),this._renderResize(),this._renderScrollTerminator(),t.done(function(){e.option("visible")&&e._moveToContainer()}),t.promise()},_renderDrag:function(){var e=this._getDragTarget();if(e){var t=P.addNamespace(B.start,this.NAME),n=P.addNamespace(B.move,this.NAME);c.off(e,t),c.off(e,n),this.option("dragEnabled")&&(c.on(e,t,this._dragStartHandler.bind(this)),c.on(e,n,this._dragUpdateHandler.bind(this)))}},_renderResize:function(){this._resizable=this._createComponent(this._$content,R,{handles:this.option("resizeEnabled")?"all":"none",onResizeEnd:this._resizeEndHandler.bind(this),onResize:this._actions.onResize.bind(this),onResizeStart:this._actions.onResizeStart.bind(this),minHeight:100,minWidth:100,area:this._getDragResizeContainer()})},_resizeEndHandler:function(){this._positionChangeHandled=!0;var e=this._resizable.option("width"),t=this._resizable.option("height");e&&this.option("width",e),t&&this.option("height",t),this._actions.onResizeEnd()},_renderScrollTerminator:function(){var e=this._wrapper(),t=P.addNamespace(B.move,this.NAME);c.off(e,t),c.on(e,t,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:C,_clearSelection:C,isNative:!0},function(e){var t=e.originalEvent.originalEvent;e._cancelPreventDefault=!0,t&&"mousemove"!==t.type&&e.preventDefault()})},_getDragTarget:function(){return this.$content()},_dragStartHandler:function(e){e.targetElements=[],this._prevOffset={x:0,y:0};var t=this._allowedOffsets();e.maxTopOffset=t.top,e.maxBottomOffset=t.bottom,e.maxLeftOffset=t.left,e.maxRightOffset=t.right},_getDragResizeContainer:function(){var e=f.originalViewPort().get(0)||this.option("container"),t=e?this._$container:o(l);return t},_deltaSize:function(){var e=this._$content,t=this._getDragResizeContainer(),n=e.outerWidth(),i=e.outerHeight(),r=t.outerWidth(),s=t.outerHeight();if(this._isWindow(t)){var l=a.getDocument(),u=Math.max(o(l).outerHeight(),s),c=Math.max(o(l).outerWidth(),r);s=u,r=c}return{width:r-n,height:s-i}},_dragUpdateHandler:function(e){var t=e.offset,n=this._prevOffset,i={top:t.y-n.y,left:t.x-n.x};this._changePosition(i),this._prevOffset=t},_changePosition:function(e){var t=h.locate(this._$content);h.move(this._$content,{left:t.left+e.left,top:t.top+e.top}),this._positionChangeHandled=!0},_allowedOffsets:function(){var e=h.locate(this._$content),t=this._deltaSize(),n=t.height>=0&&t.width>=0,i=!this.option("shading")||this.option("container")||this._isWindow(this._getContainer())?{top:0,left:0}:h.locate(this._$wrapper),o=this.option("boundaryOffset");return{top:n?e.top+i.top+o.v:0,bottom:n?-e.top-i.top+t.height-o.v:0,left:n?e.left+i.left+o.h:0,right:n?-e.left-i.left+t.width-o.h:0}},_moveFromContainer:function(){this._$content.appendTo(this.$element()),this._detachWrapperToContainer()},_detachWrapperToContainer:function(){this._$wrapper.detach()},_moveToContainer:function(){this._attachWrapperToContainer(),this._$content.appendTo(this._$wrapper)},_attachWrapperToContainer:function(){var e=this.$element(),t=void 0!==this.option("container"),n=t?this._$container:H.getSwatchContainer(e);n&&n[0]===e.parent()[0]&&(n=e),this._$wrapper.appendTo(n)},_fixHeightAfterSafariAddressBarResizing:function(){this._isWindow(this._getContainer())&&ae&&this._$wrapper.css("minHeight",l.innerHeight)},_renderGeometry:function(e){this.option("visible")&&r.hasWindow()&&this._renderGeometryImpl(e)},_renderGeometryImpl:function(e){this._stopAnimation(),this._normalizePosition(),this._renderShading(),this._fixHeightAfterSafariAddressBarResizing(),this._renderDimensions();var t=this._renderPosition();this._actions.onPositioned({position:t})},_fixWrapperPosition:function(){this._$wrapper.css("position",this._useFixedPosition()?"fixed":"absolute")},_useFixedPosition:function(){var e=this._getContainer();return this._isWindow(e)&&(!oe||void 0!==this._bodyScrollTop)},_toggleSafariScrolling:function(e){if(oe&&this._useFixedPosition()){var t=a.getBody();e?(o(t).removeClass(Q),l.scrollTo(0,this._bodyScrollTop),this._bodyScrollTop=void 0):this.option("visible")&&(this._bodyScrollTop=l.pageYOffset,o(t).addClass(Q))}},_renderShading:function(){this._fixWrapperPosition(),this._renderShadingDimensions(),this._renderShadingPosition()},_renderShadingPosition:function(){if(this.option("shading")){var e=this._getContainer();x.setup(this._$wrapper,{my:"top left",at:"top left",of:e})}},_renderShadingDimensions:function(){var e,t,n=this._getContainer();e=this._isWindow(n)?"100%":n.outerWidth(),t=this._isWindow(n)?"100%":n.outerHeight(),this._$wrapper.css({width:e,height:t})},_isWindow:function(e){return!!e&&k.isWindow(e.get(0))},_getContainer:function(){var e=this._position,t=this.option("container"),n=null;if(!t&&e){var i=!(!e.of||!e.of.preventDefault);n=i?l:e.of||l}return ue(t||n)},_renderDimensions:function(){var e=this._$content.get(0);this._$content.css({minWidth:this._getOptionValue("minWidth",e),maxWidth:this._getOptionValue("maxWidth",e),minHeight:this._getOptionValue("minHeight",e),maxHeight:this._getOptionValue("maxHeight",e),width:this._getOptionValue("width",e),height:this._getOptionValue("height",e)})},_renderPosition:function(){if(!this._positionChangeHandled){this._renderOverlayBoundaryOffset(),h.resetPosition(this._$content);var e=this._transformStringPosition(this._position,ee),t=x.setup(this._$content,e);return le(this._$content),this._actions.onPositioning(),t}var n=this._allowedOffsets();this._changePosition({top:b(0,-n.top,n.bottom),left:b(0,-n.left,n.right)})},_transformStringPosition:function(e,t){return k.isString(e)&&(e=g({},t[e])),e},_renderOverlayBoundaryOffset:function(){var e=this.option("boundaryOffset");this._$content.css("margin",e.v+"px "+e.h+"px")},_focusTarget:function(){return this._$content},_attachKeyboardEvents:function(){this._keyboardProcessor=new A({element:this._$content,handler:this._keyboardHandler,context:this})},_keyboardHandler:function(e){var t=e.originalEvent,n=o(t.target);!n.is(this._$content)&&this.option("ignoreChildEvents")||this.callBase.apply(this,arguments)},_isVisible:function(){return this.option("visible")},_visibilityChanged:function(e){e?this.option("visible")&&this._renderVisibilityAnimate(e):this._renderVisibilityAnimate(e)},_dimensionChanged:function(){this._renderGeometry(!0)},_clean:function(){this._contentAlreadyRendered||this.$content().empty(),this._renderVisibility(!1),this._stopShowTimer(),this._cleanFocusState()},_stopShowTimer:function(){this._asyncShowTimeout&&clearTimeout(this._asyncShowTimeout),this._asyncShowTimeout=null},_dispose:function(){d.stop(this._$content,!1),clearTimeout(this._deferShowTimer),this._toggleViewPortSubscription(!1),this._toggleSubscriptions(!1),this._updateZIndexStackPosition(!1),this._toggleTabTerminator(!1),this._toggleSafariScrolling(!0),this._actions=null,this.callBase(),L.remove(this._zIndex),this._$wrapper.remove(),this._$content.remove()},_toggleDisabledState:function(e){this.callBase.apply(this,arguments),this._$content.toggleClass(Z,Boolean(e))},_toggleRTLDirection:function(e){this._$content.toggleClass(U,e)},_optionChanged:function(e){var t=e.value;if(_(e.name,Y)>-1)return void this._initActions();switch(e.name){case"dragEnabled":this._renderDrag(),this._renderGeometry();break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"shading":case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"height":case"minWidth":case"maxWidth":case"minHeight":case"maxHeight":case"boundaryOffset":this._renderGeometry();break;case"position":this._positionChangeHandled=!1,this._renderGeometry();break;case"visible":this._renderVisibilityAnimate(t).done(function(){this._animateDeferred&&this._animateDeferred.resolveWith(this)}.bind(this));break;case"target":this._initTarget(t),this._invalidate();break;case"container":this._initContainer(t),this._invalidate();break;case"innerOverlay":this._initInnerOverlayClass();break;case"deferRendering":case"contentTemplate":this._contentAlreadyRendered=!1,this._clean(),this._invalidate();break;case"closeOnBackButton":this._toggleHideTopOverlayCallback(this.option("visible"));break;case"closeOnTargetScroll":this._toggleParentsScrollSubscription(this.option("visible"));break;case"closeOnOutsideClick":case"animation":case"propagateOutsideClick":break;case"rtlEnabled":this._contentAlreadyRendered=!1,this.option("visible",!1),this.callBase(e);break;default:this.callBase(e)}},toggle:function(e){if(e=void 0===e?!this.option("visible"):e,e===this.option("visible"))return(new F).resolve().promise();var t=new F;return this._animateDeferred=t,this.option("visible",e),t.promise().done(function(){delete this._animateDeferred}.bind(this))},$content:function(){return this._$content},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return m(this._$content)},repaint:function(){this._renderGeometry(),w.triggerResizeEvent(this._$content)}});ce.baseZIndex=function(e){return L.base(e)},D("dxOverlay",ce),e.exports=ce},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.clearStack=t.remove=t.create=t.base=void 0;var i=n(4),o=1500,a=[];t.base=function(e){return o=(0,i.ensureDefined)(e,o)},t.create=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=a.length,n=(t?a[t-1]:e)+1;return a.push(n),n},t.remove=function(e){var t=a.indexOf(e);t>=0&&a.splice(t,1)},t.clearStack=function(){a=[]}},function(e,t,n){var i=n(2),o=n(71),a=n(1).isFunction,r=n(12),s=o.inherit({ctor:function(e,t){this._element=e,this._compiledTemplate=t(r.normalizeTemplateElement(this._element))},_renderCore:function(e){var t=this._compiledTemplate;return a(t)?t(e):t},source:function(){return i(this._element).clone()}});e.exports=s},function(e,t,n){var i=n(2),o=n(5),a=n(4),r=n(12).getPublicElement,s=n(11),l=n(1).isPlainObject,u=n(6).when,c=n(0).extend,d=n(13).inArray,h=n(3),p=n(1).isFunction,f=n(110),g=n(43),_=n(12),m=n(20),v=n(18),y=n(8),x=n(24),b=n(86),w=n(153),C=n(64),k=n(14),S=n(89),I=n(20).compileGetter,T=n(19),D=n(160),E=n(65),A="dx-collection",O="dx-item",B="-content",P="dx-item-content-placeholder",M="dxItemData",R="dxItemIndex",V="tmpl-",F="[data-options*='dxItem']",L="dx-item-selected",H="dx-item-response-wait",z="dx-empty-collection",N="dx-template-wrapper",$=/^([^.]+\[\d+\]\.)+([\w.]+)$/,W="up",G="down",j="left",q="right",K="pageup",U="pagedown",Y="last",X="first",Z=v.inherit({_activeStateUnit:"."+O,_supportedKeys:function(){var e=function(e){var t=i(this.option("focusedElement"));t.length&&this._itemClickHandler(c({},e,{target:t,currentTarget:t}))},t=function(t){t.preventDefault(),e.call(this,t)},n=function(e,t){t.preventDefault(),t.stopPropagation(),this._moveFocus(e,t)};return c(this.callBase(),{space:t,enter:e,leftArrow:n.bind(this,j),rightArrow:n.bind(this,q),upArrow:n.bind(this,W),downArrow:n.bind(this,G),pageUp:n.bind(this,W),pageDown:n.bind(this,G),home:n.bind(this,X),end:n.bind(this,Y)})},_getDefaultOptions:function(){return c(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:k.format("dxCollectionWidget-noDataText"),dataSource:null,_itemAttributes:{},itemTemplateProperty:"template",focusOnSelectedItem:!0,focusedElement:null,displayExpr:void 0,disabledExpr:function(e){return e?e.disabled:void 0},visibleExpr:function(e){return e?e.visible:void 0}})},_getAnonymousTemplateName:function(){return"item"},_init:function(){this._compileDisplayGetter(),this.callBase(),this._cleanRenderedItems(),this._refreshDataSource()},_compileDisplayGetter:function(){var e=this.option("displayExpr");this._displayGetter=e?I(this.option("displayExpr")):void 0},_initTemplates:function(){this._initItemsFromMarkup(),this.callBase(),this._initDefaultItemTemplate()},_initDefaultItemTemplate:function(){var e=this._getFieldsMap();this._defaultTemplates.item=new E(function(t,n){l(n)?this._prepareDefaultItemTemplate(n,t):(e&&p(e.text)&&(n=e.text(n)),t.text(String(a.ensureDefined(n,""))))}.bind(this),this._getBindableFields(),this.option("integrationOptions.watchMethod"),e)},_getBindableFields:function(){return["text","html"]},_getFieldsMap:function(){if(this._displayGetter)return{text:this._displayGetter}},_prepareDefaultItemTemplate:function(e,t){e.text&&t.text(e.text),e.html&&t.html(e.html)},_initItemsFromMarkup:function(){var e=this,t=this.$element().contents().filter(F);if(t.length&&!this.option("items").length){var n=[].slice.call(t).map(function(t){var n=i(t),o=_.getElementOptions(t).dxItem,a=n.html().trim()&&!o.template;return a?o.template=e._prepareItemTemplate(n):n.remove(),o});this.option("items",n)}},_prepareItemTemplate:function(e){var t=V+new g,n=e.detach().clone().removeAttr("data-options").addClass(N);return this._saveTemplate(t,n),t},_dataSourceOptions:function(){return{paginate:!1}},_cleanRenderedItems:function(){this._renderedItemsCount=0},_focusTarget:function(){return this.$element()},_focusInHandler:function(e){if(this.callBase.apply(this,arguments),d(e.target,this._focusTarget())!==-1){var t=i(this.option("focusedElement"));if(t.length)this._setFocusedItem(t);else{var n=this._getActiveItem();n.length&&this.option("focusedElement",r(n))}}},_focusOutHandler:function(){this.callBase.apply(this,arguments);var e=i(this.option("focusedElement"));e.length&&this._toggleFocusClass(!1,e)},_getActiveItem:function(e){var t=i(this.option("focusedElement"));if(t.length)return t;var n=this.option("focusOnSelectedItem")?this.option("selectedIndex"):0,o=this._getActiveElement(),a=o.length-1;return n<0&&(n=e?a:0),o.eq(n)},_renderFocusTarget:function(){this.callBase.apply(this,arguments),this._refreshActiveDescendant()},_moveFocus:function(e){var t,n=this._getAvailableItems();switch(e){case K:case W:t=this._prevItem(n);break;case U:case G:t=this._nextItem(n);break;case q:t=this.option("rtlEnabled")?this._prevItem(n):this._nextItem(n);break;case j:t=this.option("rtlEnabled")?this._nextItem(n):this._prevItem(n);break;case X:t=n.first();break;case Y:t=n.last();break;default:return!1}0!==t.length&&this.option("focusedElement",r(t))},_getVisibleItems:function(e){return e=e||this._itemElements(),e.filter(":visible")},_getAvailableItems:function(e){return this._getVisibleItems(e).not(".dx-state-disabled")},_prevItem:function(e){var t=this._getActiveItem(),n=e.index(t),o=e.last(),a=i(e[n-1]),r=this.option("loopItemFocus");return 0===a.length&&r&&(a=o),a},_nextItem:function(e){var t=this._getActiveItem(!0),n=e.index(t),o=e.first(),a=i(e[n+1]),r=this.option("loopItemFocus");return 0===a.length&&r&&(a=o),a},_selectFocusedItem:function(e){this.selectItem(e)},_removeFocusedItem:function(e){var t=i(e);t.length&&(this._toggleFocusClass(!1,t),t.removeAttr("id"))},_refreshActiveDescendant:function(){this.setAria("activedescendant",""),this.setAria("activedescendant",this.getFocusedItemId())},_setFocusedItem:function(e){e&&e.length&&(e.attr("id",this.getFocusedItemId()),this._toggleFocusClass(!0,e),this.onFocusedItemChanged(this.getFocusedItemId()),this._refreshActiveDescendant(),this.option("selectOnFocus")&&this._selectFocusedItem(e))},_findItemElementByItem:function(e){var t=i(),n=this;return this.itemElements().each(function(){var o=i(this);if(o.data(n._itemDataKey())===e)return t=o,!1}),t},_getIndexByItem:function(e){return this.option("items").indexOf(e)},_itemOptionChanged:function(e,t,n,i){var o=this._findItemElementByItem(e);o.length&&(this.constructor.ItemClass.getInstance(o).setDataField(t,n)||this._refreshItem(o,e))},_refreshItem:function(e){var t=this._getItemData(e),n=e.data(this._itemIndexKey());this._renderItem(this._renderedItemsCount+n,t,null,e)},_optionChanged:function(e){if("items"===e.name){var t=e.fullName.match($);if(t&&t.length){var n=t[t.length-1],o=e.fullName.replace("."+n,""),a=this.option(o);return void this._itemOptionChanged(a,n,e.value,e.previousValue)}}switch(e.name){case"items":case"_itemAttributes":case"itemTemplateProperty":this._cleanRenderedItems(),this._invalidate();break;case"dataSource":this._refreshDataSource(),this._renderEmptyMessage();break;case"noDataText":this._renderEmptyMessage();break;case"itemTemplate":this._invalidate();break;case"onItemRendered":this._createItemRenderAction();break;case"onItemClick":break;case"onItemHold":case"itemHoldTimeout":this._attachHoldEvent();break;case"onItemContextMenu":this._attachContextMenuEvent();break;case"onFocusedItemChanged":this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged");break;case"selectOnFocus":case"loopItemFocus":case"focusOnSelectedItem":break;case"focusedElement":this._removeFocusedItem(e.previousValue),this._setFocusedItem(i(e.value));break;case"displayExpr":this._compileDisplayGetter(),this._initDefaultItemTemplate(),this._invalidate();break;case"visibleExpr":case"disabledExpr":this._invalidate();break;default:this.callBase(e)}},_loadNextPage:function(){var e=this._dataSource;return this._expectNextPageLoading(),e.pageIndex(1+e.pageIndex()),e.load()},_expectNextPageLoading:function(){this._startIndexForAppendedItems=0},_expectLastItemLoading:function(){this._startIndexForAppendedItems=-1;
70},_forgetNextPageLoading:function(){this._startIndexForAppendedItems=null},_dataSourceChangedHandler:function(e){var t=this.option("items");this._initialized&&t&&this._shouldAppendItems()?(this._renderedItemsCount=t.length,this._isLastPage()&&this._startIndexForAppendedItems===-1||(this.option().items=t.concat(e.slice(this._startIndexForAppendedItems))),this._forgetNextPageLoading(),this._refreshContent(),this._renderFocusTarget()):this.option("items",e.slice())},_refreshContent:function(){this._prepareContent(),this._renderContent()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this.option("items",this.option("items"))},_shouldAppendItems:function(){return null!=this._startIndexForAppendedItems&&this._allowDynamicItemsAppend()},_allowDynamicItemsAppend:function(){return!1},_clean:function(){this._cleanFocusState(),this._cleanItemContainer()},_cleanItemContainer:function(){i(this._itemContainer()).empty()},_dispose:function(){this.callBase(),clearTimeout(this._itemFocusTimeout)},_refresh:function(){this._cleanRenderedItems(),this.callBase.apply(this,arguments)},_itemContainer:function(){return this.$element()},_itemClass:function(){return O},_itemContentClass:function(){return this._itemClass()+B},_selectedItemClass:function(){return L},_itemResponseWaitClass:function(){return H},_itemSelector:function(){return"."+this._itemClass()},_itemDataKey:function(){return M},_itemIndexKey:function(){return R},_itemElements:function(){return this._itemContainer().find(this._itemSelector())},_initMarkup:function(){this.callBase(),this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged"),this.$element().addClass(A),this._prepareContent()},_prepareContent:a.deferRenderer(function(){this._renderContentImpl()}),_renderContent:function(){this._fireContentReadyAction()},_render:function(){this.callBase(),this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var e=this._itemSelector(),t=y.addNamespace(T.name,this.NAME),n=y.addNamespace(x.down,this.NAME),a=this,r=new f(function(e){var t=e.event;a._itemPointerDownHandler(t)});o.off(this._itemContainer(),t,e),o.off(this._itemContainer(),n,e),o.on(this._itemContainer(),t,e,function(e){this._itemClickHandler(e)}.bind(this)),o.on(this._itemContainer(),n,e,function(e){r.execute({element:i(e.target),event:e})})},_itemClickHandler:function(e,t,n){this._itemDXEventHandler(e,"onItemClick",t,n)},_itemPointerDownHandler:function(e){this.option("focusStateEnabled")&&(this._itemFocusHandler=function(){if(clearTimeout(this._itemFocusTimeout),this._itemFocusHandler=null,!e.isDefaultPrevented()){var t=i(e.target),n=t.closest(this._itemElements()),o=this._closestFocusable(t);n.length&&o&&d(o.get(0),this._focusTarget())!==-1&&this.option("focusedElement",r(n))}}.bind(this),this._itemFocusTimeout=setTimeout(this._forcePointerDownFocus.bind(this)))},_closestFocusable:function(e){if(e.is(C.focusable))return e;for(e=e.parent();e.length&&!s.isDocument(e.get(0));){if(e.is(C.focusable))return e;e=e.parent()}},_forcePointerDownFocus:function(){this._itemFocusHandler&&this._itemFocusHandler()},_updateFocusState:function(){this.callBase.apply(this,arguments),this._forcePointerDownFocus()},_attachHoldEvent:function(){var e=this._itemContainer(),t=this._itemSelector(),n=y.addNamespace(S.name,this.NAME);o.off(e,n,t),o.on(e,n,t,{timeout:this._getHoldTimeout()},this._itemHoldHandler.bind(this))},_getHoldTimeout:function(){return this.option("itemHoldTimeout")},_shouldFireHoldEvent:function(){return this.hasActionSubscription("onItemHold")},_itemHoldHandler:function(e){this._shouldFireHoldEvent()?this._itemDXEventHandler(e,"onItemHold"):e.cancel=!0},_attachContextMenuEvent:function(){var e=this._itemContainer(),t=this._itemSelector(),n=y.addNamespace(D.name,this.NAME);o.off(e,n,t),o.on(e,n,t,this._itemContextMenuHandler.bind(this))},_shouldFireContextMenuEvent:function(){return this.hasActionSubscription("onItemContextMenu")},_itemContextMenuHandler:function(e){this._shouldFireContextMenuEvent()?this._itemDXEventHandler(e,"onItemContextMenu"):e.cancel=!0},_renderContentImpl:function(){var e=this.option("items")||[];this._renderedItemsCount?this._renderItems(e.slice(this._renderedItemsCount)):this._renderItems(e)},_renderItems:function(e){e.length&&h.each(e,function(e,t){this._renderItem(this._renderedItemsCount+e,t)}.bind(this)),this._renderEmptyMessage()},_renderItem:function(e,t,n,i){n=n||this._itemContainer();var o=this._renderItemFrame(e,t,n,i);this._setElementData(o,t,e),o.attr(this.option("_itemAttributes")),this._attachItemClickEvent(t,o);var a=this._getItemContent(o),s=this._renderItemContent({index:e,itemData:t,container:r(a),contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),l=this;return u(s).done(function(n){l._postprocessRenderItem({itemElement:o,itemContent:n,itemData:t,itemIndex:e}),l._executeItemRenderAction(e,t,r(o))}),o},_getItemContent:function(e){var t=e.find("."+P);return t.removeClass(P),t},_attachItemClickEvent:function(e,t){e&&e.onClick&&o.on(t,T.name,function(n){this._itemEventHandlerByHandler(t,e.onClick,{event:n})}.bind(this))},_renderItemContent:function(e){var t=this._getItemTemplateName(e),n=this._getTemplate(t);this._addItemContentClasses(e);var o=i(this._createItemByTemplate(n,e));return o.hasClass(N)?this._renderItemContentByNode(e,o):e.container},_renderItemContentByNode:function(e,t){return i(e.container).replaceWith(t),e.container=r(t),this._addItemContentClasses(e),t},_addItemContentClasses:function(e){var t=[O+B,e.contentClass];i(e.container).addClass(t.join(" "))},_appendItemToContainer:function(e,t,n){t.appendTo(e)},_renderItemFrame:function(e,t,n,o){var a=i("<div>");return new this.constructor.ItemClass(a,this._itemOptions(),t||{}),o&&o.length?o.replaceWith(a):this._appendItemToContainer.call(this,n,a,e),a},_itemOptions:function(){var e=this;return{watchMethod:function(){return e.option("integrationOptions.watchMethod")},fieldGetter:function(t){var n=e.option(t+"Expr"),i=m.compileGetter(n);return i}}},_postprocessRenderItem:a.noop,_executeItemRenderAction:function(e,t,n){this._getItemRenderAction()({itemElement:n,itemIndex:e,itemData:t})},_setElementData:function(e,t,n){e.addClass([O,this._itemClass()].join(" ")).data(this._itemDataKey(),t).data(this._itemIndexKey(),n)},_createItemRenderAction:function(){return this._itemRenderAction=this._createActionByOption("onItemRendered",{element:this.element(),excludeValidators:["disabled","readOnly"],category:"rendering"})},_getItemRenderAction:function(){return this._itemRenderAction||this._createItemRenderAction()},_getItemTemplateName:function(e){var t=e.itemData,n=e.templateProperty||this.option("itemTemplateProperty"),i=t&&t[n];return i||e.defaultTemplateName},_createItemByTemplate:function(e,t){return e.render({model:t.itemData,container:t.container,index:t.index})},_emptyMessageContainer:function(){return this._itemContainer()},_renderEmptyMessage:function(e){e=e||this.option("items");var t=this.option("noDataText"),n=!t||e&&e.length||this._isDataSourceLoading();n&&this._$noData&&(this._$noData.remove(),this._$noData=null,this.setAria("label",void 0)),n||(this._$noData=this._$noData||i("<div>").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()).html(t),this.setAria("label",t)),this.$element().toggleClass(z,!n)},_itemDXEventHandler:function(e,t,n,i){this._itemEventHandler(e.target,t,c(n,{event:e}),i)},_itemEventHandler:function(e,t,n,i){var o=this._createActionByOption(t,c({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,o,n)},_itemEventHandlerByHandler:function(e,t,n,i){var o=this._createAction(t,c({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,o,n)},_itemEventHandlerImpl:function(e,t,n){var o=this._closestItemElement(i(e)),a=c({},n);return t(c(n,this._extendActionArgs(o),a))},_extendActionArgs:function(e){return{itemElement:r(e),itemIndex:this._itemElements().index(e),itemData:this._getItemData(e)}},_closestItemElement:function(e){return i(e).closest(this._itemSelector())},_getItemData:function(e){return i(e).data(this._itemDataKey())},_getSummaryItemsWidth:function(e,t){var n=0;return e&&h.each(e,function(e,o){n+=i(o).outerWidth(t||!1)}),n},getFocusedItemId:function(){return this._focusedItemId||(this._focusedItemId="dx-"+new g),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(b);Z.ItemClass=w,e.exports=Z},function(e,t,n){var i=n(181),o=n(35),a=n(3).each,r=n(1).isFunction,s=n(6).Deferred,l=n(152),u=function e(t,n,u){u=u||[],n=n||{};var c=function(e,t){return{name:e,args:t}},d=function(e){function d(e){switch(e.name){case"sortBy":return m=[e.args],!0;case"thenBy":if(!m)throw o.errors.Error("E4004");return m.push(e.args),!0}return!1}function h(){var e=g[0],t=[];e&&"multiSort"===e.name&&(g.shift(),a(e.args[0],function(){t.push(c(t.length?"thenBy":"sortBy",this))})),g=t.concat(g)}var p,f,g,_,m,v=new s,y=function(e){var t=n.errorHandler;t&&t(e),o._errorHandler(e),v.reject(e)};try{p=n.adapter,r(p)||(p=i[p]),f=p(n),g=[].concat(u).concat(e);var x=f.optimize;for(x&&x(g);g.length;){if(_=g[0],!d(_)){if(m){g.unshift(c("multiSort",[m])),m=null;continue}if("enumerate"!==String(_.name)&&(!f[_.name]||f[_.name].apply(f,_.args)===!1))break}g.shift()}h(),f.exec(t).done(function(e,t){if(g.length){var i=l(e,{errorHandler:n.errorHandler});a(g,function(){i=i[this.name].apply(i,this.args)}),i.done(v.resolve).fail(v.reject)}else v.resolve(e,t)}).fail(y)}catch(e){y(e)}return v.promise()},h={};return a(["sortBy","thenBy","filter","slice","select","groupBy"],function(){var i=String(this);h[i]=function(){return e(t,n,u.concat(c(i,arguments)))}}),a(["count","min","max","sum","avg","aggregate","enumerate"],function(){var e=String(this);h[e]=function(){return d.call(this,c(e,arguments))}}),h};e.exports=u},function(e,t,n){var i=n(2),o=n(15),a=n(4),r=o.abstract,s=o.inherit({ctor:function(e){this._collectionWidget=e},getIndexByItemData:r,getItemDataByIndex:r,getKeysByItems:r,getItemsByKeys:r,itemsGetter:r,getKeyByIndex:function(e){var t=this._denormalizeItemIndex(e);return this.getKeysByItems([this.getItemDataByIndex(t)])[0]},_equalKeys:function(e,t){return this._collectionWidget._isKeySpecified()?a.equalByValue(e,t):e===t},beginCache:function(){this._cache={}},endCache:function(){this._cache=null},getIndexByKey:r,getNormalizedIndex:function(e){return this._isNormalizedItemIndex(e)?e:this._isItemIndex(e)?this._normalizeItemIndex(e):this._isDOMNode(e)?this._getNormalizedItemIndex(e):this._normalizeItemIndex(this.getIndexByItemData(e))},getIndex:function(e){return this._isNormalizedItemIndex(e)?this._denormalizeItemIndex(e):this._isItemIndex(e)?e:this._isDOMNode(e)?this._denormalizeItemIndex(this._getNormalizedItemIndex(e)):this.getIndexByItemData(e)},getItemElement:function(e){if(this._isNormalizedItemIndex(e))return this._getItemByNormalizedIndex(e);if(this._isItemIndex(e))return this._getItemByNormalizedIndex(this._normalizeItemIndex(e));if(this._isDOMNode(e))return i(e);var t=this._normalizeItemIndex(this.getIndexByItemData(e));return this._getItemByNormalizedIndex(t)},deleteItemAtIndex:r,itemPlacementFunc:function(e,t){return this._itemsFromSameParent(e,t)&&e<t?"after":"before"},moveItemAtIndexToIndex:r,_isNormalizedItemIndex:function(e){return"number"==typeof e&&Math.round(e)===e},_isDOMNode:function(e){var t;try{t=i(e)}catch(e){return!1}return t&&t.length&&t.get(0).nodeType},_isItemIndex:r,_getNormalizedItemIndex:r,_normalizeItemIndex:r,_denormalizeItemIndex:r,_getItemByNormalizedIndex:r,_itemsFromSameParent:r});e.exports=s},function(e,t,n){var i=n(1),o=n(233),a=n(17),r=n(41),s=n(6).Deferred;e.exports=o.inherit({getSelectedItems:function(){return this._loadFilteredData(this.options.selectionFilter)},getSelectedItemKeys:function(){var e=new s,t=this,n=this.options.key(),o=i.isString(n)?[n]:n;return this._loadFilteredData(this.options.selectionFilter,null,o).done(function(n){var i=n.map(function(e){return t.options.keyOf(e)});e.resolve(i)}).fail(e.reject),e.promise()},selectedItemKeys:function(e,t,n,i){if(i){var o=this.options.filter();o?this._addSelectionFilter(n,o,i):this._setOption("selectionFilter",n?[]:null)}else{t||this._setOption("selectionFilter",[]);for(var a=0;a<e.length;a++)n?this.removeSelectedItem(e[a]):this.addSelectedItem(e[a])}return this.onSelectionChanged(),(new s).resolve()},setSelectedItems:function(e){this._setOption("selectionFilter",null);for(var t=0;t<e.length;t++)this.addSelectedItem(e[t])},isItemDataSelected:function(e){return this.isItemKeySelected(e)},isItemKeySelected:function(e){var t=this.options.selectionFilter;return!t||!!r([e]).filter(t).toArray().length},_processSelectedItem:function(e){var t=this.options.key(),n=[t,"=",e];if(Array.isArray(t)){n=[];for(var i=0;i<t.length;i++)n.push([t[i],"=",e[t[i]]]),i!==t.length-1&&n.push("and")}return n},addSelectedItem:function(e){var t=this._processSelectedItem(e);this._addSelectionFilter(!1,t)},removeSelectedItem:function(e){var t=this._processSelectedItem(e);this._addSelectionFilter(!0,t)},validate:function(){var e=this.options.key;if(e&&void 0===e())throw a.Error("E1042","Deferred selection")},_findSubFilter:function(e,t){if(!e)return-1;for(var n=JSON.stringify(t),i=0;i<e.length;i++){var o=e[i];if(o&&JSON.stringify(o)===n)return i}return-1},_isLastSubFilter:function(e,t){return!(!e||!t)&&(this._findSubFilter(e,t)===e.length-1||0===this._findSubFilter([e],t))},_addFilterOperator:function(e,t){return e.length>1&&i.isString(e[1])&&e[1]!==t&&(e=[e]),e.length&&e.push(t),e},_denormalizeFilter:function(e){return e&&i.isString(e[0])&&(e=[e]),e},_addSelectionFilter:function(e,t,n){var i=this,o=!0,a=e?["!",t]:t,r=e?"and":"or",s=i.options.selectionFilter||[];if(s=i._denormalizeFilter(s),s&&s.length){var l,u=i._removeSameFilter(s,t,e),c=u&&u.rootFilterIndex;n&&void 0!==c?s=c>=0&&s.length>1?s[c]:[]:(u=i._removeSameFilter(s,t,!e),l=u&&u.lastRemoveOperation),l&&("or"!==l&&e||"and"!==l&&!e)&&(o=!1,s=[]),o&&(s=i._addFilterOperator(s,r))}o&&s.push(a),s=i._normalizeFilter(s),i._setOption("selectionFilter",e||s.length?s:null)},_normalizeFilter:function(e){return e&&1===e.length&&(e=e[0]),e},_removeSameFilter:function(e,t,n,i){t=n?["!",t]:t;var o,a,r=this._findSubFilter(e,t),s=void 0!==i;if(JSON.stringify(t)===JSON.stringify(e))return e.splice(0,e.length),{lastRemoveOperation:"undefined"};if(r>=0)return a=r>0?e.splice(r-1,2)[0]:e.splice(r,2)[1]||"undefined",{lastRemoveOperation:a,rootFilterIndex:s?i:-1};for(var l=0;l<e.length;l++)if(i=s?i:l,o=Array.isArray(e[l])&&e[l].length>2&&this._removeSameFilter(e[l],t,!1,i),o&&o.lastRemoveOperation)return 1===e[l].length&&(e[l]=e[l][0]),o},getSelectAllState:function(){var e=this.options.filter(),t=this.options.selectionFilter;if(!t)return!0;if(!t.length)return!1;if(e&&e.length)return t=this._denormalizeFilter(t),!!this._isLastSubFilter(t,e)||!this._isLastSubFilter(t,["!",e])&&void 0}})},function(e,t,n){var i=n(4),o=n(1),a=i.getKeyHash,r=n(41),s=n(6),l=n(284).SelectionFilterCreator,u=s.when,c=s.Deferred,d=n(17),h=n(233);e.exports=h.inherit({ctor:function(e){this.callBase(e),this._initSelectedItemKeyHash()},_initSelectedItemKeyHash:function(){this._setOption("keyHashIndices",this.options.equalByReference?null:{})},getSelectedItemKeys:function(){return this.options.selectedItemKeys.slice(0)},getSelectedItems:function(){return this.options.selectedItems.slice(0)},_preserveSelectionUpdate:function(e,t){var n,i,o,a=this.options.keyOf;if(a){var r=t&&e.length>1&&!this.options.equalByReference;for(r&&(n={}),o=0;o<e.length;o++){var s=e[o],l=a(s);t?(i=this.removeSelectedItem(l,n),n&&i>=0&&(n[i]=!0)):this.addSelectedItem(l,s)}r&&this._batchRemoveSelectedItems(n)}},_batchRemoveSelectedItems:function(e){var t=this.options.selectedItemKeys.slice(0),n=this.options.selectedItems.slice(0);this.options.selectedItemKeys.length=0,this.options.selectedItems.length=0;for(var i=0;i<t.length;i++)e[i]||(this.options.selectedItemKeys.push(t[i]),this.options.selectedItems.push(n[i]));this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_loadSelectedItemsCore:function(e,t,n){var i=new c,o=this.options.key();if(!e.length&&!n)return i.resolve([]),i;var a=this.options.filter();if(n&&t&&!a)return i.resolve(this.getSelectedItems()),i;var s=new l(e,n),u=s.getCombinedFilter(o,a),d=[];t&&(d=u?r(this.options.selectedItems).filter(u).toArray():this.options.selectedItems.slice(0));var h=d.length?d:this.options.plainItems(!0).filter(this.options.isSelectableItem).map(this.options.getItemData),p=s.getLocalFilter(this.options.keyOf,this.equalKeys.bind(this),this.options.equalByReference,o);return h=h.filter(p),d.length||!n&&h.length===e.length?i.resolve(h):i=this._loadFilteredData(u,p),i},_replaceSelectionUpdate:function(e){var t=[],n=this.options.keyOf;if(n){for(var i=0;i<e.length;i++){var o=e[i],a=n(o);t.push(a)}this.setSelectedItems(t,e)}},_warnOnIncorrectKeys:function(e){for(var t=0;t<e.length;t++)this.isItemKeySelected(e[t])||d.log("W1002",e[t])},_loadSelectedItems:function(e,t,n){var i=this,o=new c;return u(i._lastLoadDeferred).always(function(){i._loadSelectedItemsCore(e,t,n).done(o.resolve).fail(o.reject)}),i._lastLoadDeferred=o,o},selectedItemKeys:function(e,t,n,i){var o=this,a=o._loadSelectedItems(e,n,i);return a.done(function(e){t?o._preserveSelectionUpdate(e,n):o._replaceSelectionUpdate(e),o.onSelectionChanged()}),a},addSelectedItem:function(e,t){var n=this._getKeyHash(e);this._indexOfSelectedItemKey(n)===-1&&(!o.isObject(n)&&this.options.keyHashIndices&&(this.options.keyHashIndices[n]=[this.options.selectedItemKeys.length]),this.options.selectedItemKeys.push(e),this.options.addedItemKeys.push(e),this.options.addedItems.push(t),this.options.selectedItems.push(t))},_getSelectedIndexByKey:function(e,t){for(var n=this.options.selectedItemKeys,i=0;i<n.length;i++)if((!t||!t[i])&&this.equalKeys(n[i],e))return i;return-1},_getSelectedIndexByHash:function(e,t){var n=this.options.keyHashIndices[e];return n&&n.length>1&&t&&(n=n.filter(function(e){return!t[e]})),n&&n[0]>=0?n[0]:-1},_indexOfSelectedItemKey:function(e,t){var n;return n=this.options.equalByReference?this.options.selectedItemKeys.indexOf(e):o.isObject(e)?this._getSelectedIndexByKey(e,t):this._getSelectedIndexByHash(e,t)},_shiftSelectedKeyIndices:function(e){for(var t=e;t<this.options.selectedItemKeys.length;t++){var n=this.options.selectedItemKeys[t],i=a(n),o=this.options.keyHashIndices[i];if(o)for(var r=0;r<o.length;r++)o[r]>e&&o[r]--}},removeSelectedItem:function(e,t){var n=this._getKeyHash(e),i=!!t,a=this._indexOfSelectedItemKey(n,t);if(a<0)return a;if(this.options.removedItemKeys.push(e),this.options.removedItems.push(this.options.selectedItems[a]),i)return a;if(this.options.selectedItemKeys.splice(a,1),this.options.selectedItems.splice(a,1),o.isObject(n)||!this.options.keyHashIndices)return a;var r=this.options.keyHashIndices[n];return r?(r.shift(),r.length||delete this.options.keyHashIndices[n],this._shiftSelectedKeyIndices(a),a):a},_updateAddedItemKeys:function(e,t){for(var n=0;n<e.length;n++)this.isItemKeySelected(e[n])||(this.options.addedItemKeys.push(e[n]),this.options.addedItems.push(t[n]))},_updateRemovedItemKeys:function(e,t,n){for(var i=0;i<t.length;i++)this.isItemKeySelected(t[i])||(this.options.removedItemKeys.push(t[i]),this.options.removedItems.push(n[i]))},_getKeyHash:function(e){return this.options.equalByReference?e:a(e)},setSelectedItems:function(e,t){this._updateAddedItemKeys(e,t);var n=this.options.selectedItemKeys,i=this.options.selectedItems;this.options.equalByReference||(this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(e)),this._setOption("selectedItemKeys",e),this._setOption("selectedItems",t),this._updateRemovedItemKeys(e,n,i)},isItemDataSelected:function(e){var t=this.options.keyOf(e);return this.isItemKeySelected(t)},isItemKeySelected:function(e){var t=this._getKeyHash(e),n=this._indexOfSelectedItemKey(t);return n!==-1},getSelectAllState:function(e){return e?this._getVisibleSelectAllState():this._getFullSelectAllState()}})},function(e,t,n){var i=n(113),o=n(5),a=n(180);i.add(function(e){var t=e.slice(0,2)+e.charAt(2).toUpperCase()+e.slice(3);a.directive(t,["$parse",function(n){return function(i,a,r){var s,l=r[t].trim(),u={};"{"===l.charAt(0)?(u=i.$eval(l),s=n(u.execute)):s=n(r[t]),o.on(a,e,u,function(e){i.$apply(function(){s(i,{$event:e})})})}}])})},function(e,t,n){var i=n(25),o=n(180);o.service("dxDigestCallbacks",["$rootScope",function(e){var t=i(),n=i(),o=i(),a=!1;return e.$watch(function(){a||(a=!0,t.fire(),e.$$postDigest(function(){a=!1,n.fire(),o.fire()}))}),{begin:{add:function(e){a&&e(),t.add(e)},remove:t.remove.bind(t)},end:{add:o.add.bind(o),addPrioritized:n.add.bind(n),remove:o.remove.bind(o)}}}])},function(e,t,n){var i=n(110);i.registerExecutor({ngExpression:{execute:function(e){"string"==typeof e.action&&e.context.$eval(e.action)}}})},function(e,t,n){var i=n(61);if(i){var o=n(21),a=n(58).compare;if(a(i.version,[2,3])<0)throw o.Error("E0013");n(474),n(476),n(477),n(478),n(479),n(480),n(481)}},function(e,t,n){var i=n(2),o=n(61),a=n(25),r=n(21),s=n(32),l=n(1).isPlainObject,u=n(149),c=n(18),d=n(475),h=n(49),p=n(232),f=n(234).getClosestNodeWithContext,g=n(28),_="dxKoLocks",m="dxKoCreation",v=[],y=function(e,t){t.subclassOf(h)&&v.push(e),o.bindingHandlers[e]={init:function(e,n){var u,h,v=i(e),y=a(),x={},b=g().knockout,w=b&&b.isBindingPropertyPredicateName,C={onInitializing:function(){x=this._getOptionsByReference(),o.computed(function(){var e=o.unwrap(n());u&&u.beginUpdate(),h=w&&e&&e[w],E(e),u&&u.endUpdate()},null,{disposeWhenNodeIsRemoved:e}),u=this},modelByElement:function(e){if(e.length){var t=f(e.get(0));return o.dataFor(t)}},nestedComponentOptions:function(e){return{modelByElement:e.option("modelByElement"),nestedComponentOptions:e.option("nestedComponentOptions")}},_optionChangedCallbacks:y,integrationOptions:{watchMethod:function(e,t,n){n=n||{};var i=n.skipImmediate,a=o.computed(function(){var n=o.unwrap(e());i||t(n),i=!1});return function(){a.dispose()}},templates:{"dx-polymorph-widget":{render:function(e){var t=o.utils.unwrapObservable(e.model.widget);if(t){if("button"===t||"tabs"===t||"dropDownMenu"===t){var n=t;t=s.camelize("dx-"+t),r.log("W0001","dxToolbar - 'widget' item field",n,"16.1","Use: '"+t+"' instead")}var a=i("<div>").attr("data-bind",t+": options").get(0);i(e.container).append(a),o.applyBindings(e.model,a)}}}},createTemplate:function(e){return new d(e)}}},k={},S=function(e,t,n){var i=v.data(_),a=n?o.unwrap(t):t;if(o.isWriteableObservable(t)&&(k[e]=t),u){if(i.locked(e))return;i.obtain(e);try{o.ignoreDependencies?o.ignoreDependencies(u.option,u,[e,a]):u.option(e,a)}finally{i.release(e)}}else C[e]=a},I=function(e){var t=e.fullName,n=e.value;if(t in k){var i=this._$element,o=i.data(_);if(!o.locked(t)){o.obtain(t);try{k[t](n)}finally{o.release(t)}}}},T=function(){y.add(I),v.data(m,!0).data(_,new p),new t(v,C),C=null},D=function(t,n,i){if(i!==w)if(!h||h(i,n,t)){var a;o.computed(function(){var e=t[n];S(i,e,!0),a=o.unwrap(e)},null,{disposeWhenNodeIsRemoved:e}),l(a)&&(x[i]||E(a,i))}else S(i,t[n],!1)},E=function(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&D(e,n,t?[t,n].join("."):n)};return T(),{controlsDescendantBindings:t.subclassOf(c)}}},"dxValidator"===e&&(o.bindingHandlers.dxValidator.after=v)};u.add(function(e,t){y(e,t)})},function(e,t,n){var i=n(2),o=n(11),a=n(61),r=n(1),s=n(71),l=n(12),u=n(234).getClosestNodeWithContext,c=function(e){var t=o.createElement("div");a.applyBindingsToNode(t,null,e);var n=a.contextFor(t);return a.cleanNode(t),n},d=s.inherit({ctor:function(e){this._element=e,this._template=i("<div>").append(l.normalizeTemplateElement(e)),this._registerKoTemplate()},_registerKoTemplate:function(){var e=this._template.get(0);new a.templateSources.anonymousTemplate(e).nodes(e)},_prepareDataForContainer:function(e,t){if(t&&t.length){var n=t.get(0),i=u(n),o=a.contextFor(i);if(e=void 0!==e?e:a.dataFor(i)||{},o)return e===o.$data?o:o.createChildContext(e)}return c(e).createChildContext(e)},_renderCore:function(e){var t=this._prepareDataForContainer(e.model,i(e.container));r.isDefined(e.index)&&(t.$index=e.index);var n,o=i("<div>").appendTo(e.container);return a.renderTemplate(this._template.get(0),t,{afterRender:function(e){n=i(e)}},o.get(0),"replaceNode"),n},source:function(){return i(this._element).clone()},dispose:function(){this._template.remove()}});e.exports=d},function(e,t,n){var i=n(2),o=n(5),a=n(61),r=n(1).isPlainObject,s=n(113),l=n(8);s.add(function(e){var t=l.addNamespace(e,e+"Binding");a.bindingHandlers[e]={update:function(e,n,s,l){var u=i(e),c=a.utils.unwrapObservable(n()),d=c.execute?c.execute:c;o.off(u,t),o.on(u,t,r(c)?c:{},function(e){d.call(l,l,e)})}}})},function(e,t,n){var i=n(61),o=n(62);i.bindingHandlers.dxControlsDescendantBindings={init:function(e,t){return{controlsDescendantBindings:i.unwrap(t())}}},i.bindingHandlers.dxIcon={init:function(e,t){var n=i.utils.unwrapObservable(t())||{},a=o.getImageContainer(n);i.virtualElements.emptyNode(e),a&&i.virtualElements.prepend(e,a.get(0))},update:function(e,t){var n=i.utils.unwrapObservable(t())||{},a=o.getImageContainer(n);i.virtualElements.emptyNode(e),a&&i.virtualElements.prepend(e,a.get(0))}},i.virtualElements.allowedBindings.dxIcon=!0},function(e,t,n){var i=n(3).each,o=n(15),a=n(79),r=n(99),s=n(61),l=o.inherit({ctor:function(e,t){var n=this;n.target=e,n.validationRules=t.validationRules,n.name=t.name,n.isValid=s.observable(!0),n.validationError=s.observable(),i(this.validationRules,function(e,t){t.validator=n})},validate:function(){var e=r.validate(this.target(),this.validationRules,this.name);return this._applyValidationResult(e),e},reset:function(){this.target(null);var e={isValid:!0,brokenRule:null};return this._applyValidationResult(e),e},_applyValidationResult:function(e){e.validator=this,this.target.dxValidator.isValid(e.isValid),this.target.dxValidator.validationError(e.brokenRule),this.fireEvent("validated",[e])}}).include(a);s.extenders.dxValidator=function(e,t){return e.dxValidator=new l(e,t),e.subscribe(e.dxValidator.validate.bind(e.dxValidator)),e},r.registerModelForValidation=function(e){i(e,function(t,n){s.isObservable(n)&&n.dxValidator&&r.registerValidatorInGroup(e,n.dxValidator)})},r.unregisterModelForValidation=function(e){i(e,function(t,n){s.isObservable(n)&&n.dxValidator&&r.removeRegisteredValidator(e,n.dxValidator)})},r.validateModel=r.validateGroup},function(e,t,n){var i=n(61),o=n(87);o.inject({isWrapped:i.isObservable,isWritableWrapped:i.isWritableObservable,wrap:i.observable,unwrap:function(e){return i.isObservable(e)?i.utils.unwrapObservable(e):this.callBase(e)},assign:function(e,t){i.isObservable(e)?e(t):this.callBase(e,t)}})},function(e,t,n){var i=n(37),o=i.afterCleanData,a=i.strategyChanging,r=n(61),s=n(58).compare,l=r.utils.domNodeDisposal.cleanExternalData,u=function(){o(function(e){for(var t=0;t<e.length;t++)e[t].cleanedByJquery=!0;for(t=0;t<e.length;t++)e[t].cleanedByKo||r.cleanNode(e[t]),delete e[t].cleanedByKo;for(t=0;t<e.length;t++)delete e[t].cleanedByJquery}),r.utils.domNodeDisposal.cleanExternalData=function(e){e.cleanedByKo=!0,e.cleanedByJquery||i.cleanData([e])}},c=function(){o(function(){}),r.utils.domNodeDisposal.cleanExternalData=l};u(),a.add(function(e){var t=!!e.fn;t&&s(e.fn.jquery,[2,0])<0&&c()})},function(e,t,n){var i=n(61),o=n(58).compare,a=n(37).strategyChanging,r=function(e){var t=function(e,t){var n=function(){i.cleanNode(this)};t?e.each(n):e.find("*").each(n)},n=e.fn.empty;e.fn.empty=function(){return t(this,!1),n.apply(this,arguments)};var o=e.fn.remove;e.fn.remove=function(e,n){if(!n){var i=this;e&&(i=i.filter(e)),t(i,!0)}return o.call(this,e,n)};var a=e.fn.html;e.fn.html=function(e){return"string"==typeof e&&t(this,!1),a.apply(this,arguments)};var r=e.fn.replaceWith;e.fn.replaceWith=function(){var e=r.apply(this,arguments);return this.parent().length||t(this,!0),e}};a.add(function(e){var t=!!e.fn;t&&o(e.fn.jquery,[2,0])<0&&r(e)})},function(e,t,n){n(115);var i=n(69),o=n(14),a=n(84);if(n(69),i&&i.formatMessage){var r="en",s=i.loadMessages;i.loadMessages=function(e){o.load(e)};var l={ctor:function(){this.load(this._dictionary)},load:function(e){this.callBase(e),s(e)},getMessagesByLocales:function(){return i.cldr.get("globalize-messages")},getFormatter:function(e,t){var n=t||a.locale(),i=this._getFormatterBase(e,t);return i||(i=this._formatterByGlobalize(e,t)),i||n===r||(i=this.getFormatter(e,r)),i},_formatterByGlobalize:function(e,t){var n,o=t&&t!==a.locale()?new i(t):i;return this._messageLoaded(e,t)&&(n=o.messageFormatter(e)),n},_messageLoaded:function(e,t){var n=t?new i(t).cldr:i.locale(),o=n.get(["globalize-messages/{bundle}",e]);return!!o},_loadSingle:function(e,t,n){var i={};i[n]={},i[n][e]=t,this.load(i)}};o.inject(l)}},function(e,t,n){n(115),n(182),n(69);var i={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},timeData:{"001":{_allowed:"H h",_preferred:"H"},DE:{_allowed:"H",_preferred:"H"},JP:{_allowed:"H K h",_preferred:"H"},RU:{_allowed:"H",_preferred:"H"},US:{_allowed:"H h",_preferred:"h"}}}},o={main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},dates:{calendars:{gregorian:{months:{format:{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}},"stand-alone":{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}}},days:{format:{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},"short":{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}},"stand-alone":{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},"short":{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}}},quarters:{format:{abbreviated:{1:"Q1",2:"Q2",3:"Q3",4:"Q4"},narrow:{1:"1",2:"2",3:"3",4:"4"},wide:{1:"1st quarter",2:"2nd quarter",3:"3rd quarter",4:"4th quarter"}},"stand-alone":{abbreviated:{1:"Q1",2:"Q2",3:"Q3",4:"Q4"},narrow:{1:"1",2:"2",3:"3",4:"4"},wide:{1:"1st quarter",2:"2nd quarter",3:"3rd quarter",4:"4th quarter"}}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",
71noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{eraNames:{0:"Before Christ","0-alt-variant":"Before Common Era",1:"Anno Domini","1-alt-variant":"Common Era"},eraAbbr:{0:"BC","0-alt-variant":"BCE",1:"AD","1-alt-variant":"CE"},eraNarrow:{0:"B","0-alt-variant":"BCE",1:"A","1-alt-variant":"CE"}},dateFormats:{full:"EEEE, MMMM d, y","long":"MMMM d, y",medium:"MMM d, y","short":"M/d/yy"},timeFormats:{full:"h:mm:ss a zzzz","long":"h:mm:ss a z",medium:"h:mm:ss a","short":"h:mm a"},dateTimeFormats:{full:"{1} 'at' {0}","long":"{1} 'at' {0}",medium:"{1}, {0}","short":"{1}, {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y"},appendItems:{Day:"{0} ({2}: {1})","Day-Of-Week":"{0} {1}",Era:"{0} {1}",Hour:"{0} ({2}: {1})",Minute:"{0} ({2}: {1})",Month:"{0} ({2}: {1})",Quarter:"{0} ({2}: {1})",Second:"{0} ({2}: {1})",Timezone:"{0} {1}",Week:"{0} ({2}: {1})",Year:"{0} {1}"},intervalFormats:{intervalFormatFallback:"{0} \u2013 {1}",d:{d:"d \u2013 d"},h:{a:"h a \u2013 h a",h:"h \u2013 h a"},H:{H:"HH \u2013 HH"},hm:{a:"h:mm a \u2013 h:mm a",h:"h:mm \u2013 h:mm a",m:"h:mm \u2013 h:mm a"},Hm:{H:"HH:mm \u2013 HH:mm",m:"HH:mm \u2013 HH:mm"},hmv:{a:"h:mm a \u2013 h:mm a v",h:"h:mm \u2013 h:mm a v",m:"h:mm \u2013 h:mm a v"},Hmv:{H:"HH:mm \u2013 HH:mm v",m:"HH:mm \u2013 HH:mm v"},hv:{a:"h a \u2013 h a v",h:"h \u2013 h a v"},Hv:{H:"HH \u2013 HH v"},M:{M:"M \u2013 M"},Md:{d:"M/d \u2013 M/d",M:"M/d \u2013 M/d"},MEd:{d:"E, M/d \u2013 E, M/d",M:"E, M/d \u2013 E, M/d"},MMM:{M:"MMM \u2013 MMM"},MMMd:{d:"MMM d \u2013 d",M:"MMM d \u2013 MMM d"},MMMEd:{d:"E, MMM d \u2013 E, MMM d",M:"E, MMM d \u2013 E, MMM d"},y:{y:"y \u2013 y"},yM:{M:"M/y \u2013 M/y",y:"M/y \u2013 M/y"},yMd:{d:"M/d/y \u2013 M/d/y",M:"M/d/y \u2013 M/d/y",y:"M/d/y \u2013 M/d/y"},yMEd:{d:"E, M/d/y \u2013 E, M/d/y",M:"E, M/d/y \u2013 E, M/d/y",y:"E, M/d/y \u2013 E, M/d/y"},yMMM:{M:"MMM \u2013 MMM y",y:"MMM y \u2013 MMM y"},yMMMd:{d:"MMM d \u2013 d, y",M:"MMM d \u2013 MMM d, y",y:"MMM d, y \u2013 MMM d, y"},yMMMEd:{d:"E, MMM d \u2013 E, MMM d, y",M:"E, MMM d \u2013 E, MMM d, y",y:"E, MMM d, y \u2013 E, MMM d, y"},yMMMM:{M:"MMMM \u2013 MMMM y",y:"MMMM y \u2013 MMMM y"}}}}}}}}},a={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},weekData:{minDays:{"001":"1",US:"1",DE:"4"},firstDay:{"001":"mon",DE:"mon",RU:"mon",JP:"sun",US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}},r=["skeleton","date","time","datetime","raw"],s=n(69),l=n(33),u=n(1).isObject,c=n(13).inArray,d=n(3);if(s&&s.formatDate){"en"===s.locale().locale&&(s.load(a,i,o),s.locale("en"));var h={},p={shortdate:{path:"dateTimeFormats/availableFormats/yMd"},shorttime:{path:"timeFormats/short"},longdate:{path:"dateFormats/full"},longtime:{path:"timeFormats/medium"},monthandday:{path:"dateTimeFormats/availableFormats/MMMMd"},monthandyear:{path:"dateTimeFormats/availableFormats/yMMMM"},quarterandyear:{path:"dateTimeFormats/availableFormats/yQQQ"},day:{path:"dateTimeFormats/availableFormats/d"},year:{path:"dateTimeFormats/availableFormats/y"},shortdateshorttime:{path:"dateTimeFormats/short",parts:["shorttime","shortdate"]},mediumdatemediumtime:{path:"dateTimeFormats/medium",parts:["shorttime","monthandday"]},longdatelongtime:{path:"dateTimeFormats/medium",parts:["longtime","longdate"]},month:{pattern:"LLLL"},shortyear:{pattern:"yy"},dayofweek:{pattern:"EEEE"},quarter:{pattern:"QQQ"},millisecond:{pattern:"SSS"},hour:{pattern:"HH"},minute:{pattern:"mm"},second:{pattern:"ss"}},f={_getPatternByFormat:function(e){var t=this,n=e.toLowerCase(),i=p[n];if("datetime-local"===n)return"yyyy-MM-ddTHH':'mm':'ss";if(i){var o=i.path&&t._getFormatStringByPath(i.path)||i.pattern;return i.parts&&d.each(i.parts,function(e,n){o=o.replace("{"+e+"}",t._getPatternByFormat(n))}),o}},_getFormatStringByPath:function(e){return s.locale().main("dates/calendars/gregorian/"+e)},getPeriodNames:function(){var e=s.locale().main("dates/calendars/gregorian/dayPeriods/stand-alone/wide");return[e.am,e.pm]},getMonthNames:function(e,t){var n=s.locale().main("dates/calendars/gregorian/months/"+(t||"stand-alone")+"/"+(e||"wide"));return d.map(n,function(e){return e})},getDayNames:function(e){var t=s.locale().main("dates/calendars/gregorian/days/stand-alone/"+(e||"wide"));return d.map(t,function(e){return e})},getTimeSeparator:function(){return s.locale().main("numbers/symbols-numberSystem-latn/timeSeparator")},format:function(e,t){if(e){if(!t)return e;var n,i;if("function"==typeof t)return t(e);if(t.formatter)return t.formatter(e);if(t=t.type||t,"string"==typeof t)i=s.locale().locale+":"+t,n=h[i],n||(t={raw:this._getPatternByFormat(t)||t},n=h[i]=s.dateFormatter(t));else{if(!this._isAcceptableFormat(t))return;n=s.dateFormatter(t)}return n(e)}},parse:function(e,t){if(e){if(!t||"function"==typeof t||u(t)&&!this._isAcceptableFormat(t)){if(t){var n=this.callBase(e,t);if(n)return n}return s.parseDate(e)}return t.parser?t.parser(e):("string"==typeof t&&(t={raw:this._getPatternByFormat(t)||t}),s.parseDate(e,t))}},_isAcceptableFormat:function(e){if(e.parser)return!0;for(var t=0;t<r.length;t++)if(Object.prototype.hasOwnProperty.call(e,r[t]))return!0},firstDayOfWeekIndex:function(){var e=s.locale().supplemental.weekData.firstDay();return c(e,this._getDayKeys())},_getDayKeys:function(){var e=s.locale().main("dates/calendars/gregorian/days/format/short");return d.map(e,function(e,t){return t})}};l.inject(f)}},function(e,t,n){var 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};n(115),n(182),n(148),n(69);var o={main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},numbers:{currencies:{USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}}}}}},a={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},currencyData:{fractions:{DEFAULT:{_rounding:"0",_digits:"2"}}}}},r=n(69),s=n(28),l=n(51);if(r&&r.formatCurrency){"en"===r.locale().locale&&(r.load(o,a),r.locale("en"));var u={},c=function(e,t){var n,o;return o="object"===("undefined"==typeof t?"undefined":i(t))?r.locale().locale+":"+e+":"+JSON.stringify(t):r.locale().locale+":"+e+":"+t,n=u[o],n||(n=u[o]=r.currencyFormatter(e,t)),n},d={_formatNumberCore:function(e,t,n){if("currency"===t){var i=n&&n.currency||s().defaultCurrency;return c(i,this._normalizeFormatConfig(t,n,e))(e)}return this.callBase.apply(this,arguments)},_normalizeFormatConfig:function(e,t,n){var i=this.callBase(e,t,n);return"currency"===e&&(i.style="accounting"),i},format:function(e,t){if("number"!=typeof e)return e;if(t=this._normalizeFormat(t)){if("default"===t.currency&&(t.currency=s().defaultCurrency),"currency"===t.type)return this._formatNumber(e,this._parseNumberFormatString("currency"),t);if(!t.type&&t.currency)return c(t.currency,t)(e)}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(e){return e||(e=s().defaultCurrency),r.cldr.main("numbers/currencies/"+e)},getOpenXmlCurrencyFormat:function(e){var t,n,i,o,a=this.getCurrencySymbol(e).symbol,s=r.cldr.main("numbers/currencyFormats-numberSystem-latn");if(s.accounting){for(o={".00":"{0}","'":"\\'","\\(":"\\(","\\)":"\\)"," ":"\\ ",'"':"&quot;","\\\xa4":a},n=s.accounting.split(";"),t=0;t<n.length;t++)for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[t]=n[t].replace(new RegExp(i,"g"),o[i]));return 2===n.length?n[0]+"_);"+n[1]:n[0]}}};l.inject(d)}},function(e,t,n){e.exports=n(44).DataSource},function(e,t,n){var i=n(5),o=n(11),a=n(7),r=a.getWindow(),s=n(15),l=s.abstract,u=n(35).errors,c=n(68),d=s.inherit({ctor:function(e,t){this._store=e,this._dirty=!!t.data,this.save();var n=this._immediate=t.immediate,a=Math.max(100,t.flushInterval||1e4);if(!n){var s=this.save.bind(this);setInterval(s,a),i.on(r,"beforeunload",s),r.cordova&&o.listen(o.getDocument(),"pause",s,!1)}},notifyChanged:function(){this._dirty=!0,this._immediate&&this.save()},load:function(){this._store._array=this._loadImpl(),this._dirty=!1},save:function(){this._dirty&&(this._saveImpl(this._store._array),this._dirty=!1)},_loadImpl:l,_saveImpl:l}),h=d.inherit({ctor:function(e,t){var n=t.name;if(!n)throw u.Error("E4013");this._key="dx-data-localStore-"+n,this.callBase(e,t)},_loadImpl:function(){var e=r.localStorage.getItem(this._key);return e?JSON.parse(e):[]},_saveImpl:function(e){e.length?r.localStorage.setItem(this._key,JSON.stringify(e)):r.localStorage.removeItem(this._key)}}),p={dom:h},f=c.inherit({ctor:function(e){e="string"==typeof e?{name:e}:e||{},this.callBase(e),this._backend=new p[e.backend||"dom"](this,e),this._backend.load()},clear:function(){this.callBase(),this._backend.notifyChanged()},_insertImpl:function(e){var t=this._backend;return this.callBase(e).done(t.notifyChanged.bind(t))},_updateImpl:function(e,t){var n=this._backend;return this.callBase(e,t).done(n.notifyChanged.bind(n))},_removeImpl:function(e){var t=this._backend;return this.callBase(e).done(t.notifyChanged.bind(t))}},"local");e.exports=f},function(e,t,n){function i(e){return/^(localhost$|127\.)/i.test(e)}var o,a,r=n(21),s=n(7).getWindow(),l=n(236),u=function(e){this.config=e,o="ms-appx:"===s.location.protocol,a=i(s.location.hostname)};u.prototype={urlFor:function(e){var t=this.config[e];if(!t)throw r.Error("E0006");return l.isProxyUsed()?l.formatProxyUrl(t.local):t.production&&(o&&!Debug.debuggerEnabled||!o&&!a)?t.production:t.local}},e.exports=u},function(e,t,n){n(235),DevExpress.data.ODataStore=n(237),DevExpress.data.ODataContext=n(489),DevExpress.data.utils=DevExpress.data.utils||{},DevExpress.data.utils.odata={},DevExpress.data.utils.odata.keyConverters=n(100).keyConverters,DevExpress.data.EdmLiteral=n(100).EdmLiteral;var i=n(100);DevExpress.data.utils.odata.serializePropName=i.serializePropName,DevExpress.data.utils.odata.serializeValue=i.serializeValue,DevExpress.data.utils.odata.serializeKey=i.serializeKey,DevExpress.data.utils.odata.sendRequest=i.sendRequest,DevExpress.data.queryAdapters=DevExpress.data.queryAdapters||{},DevExpress.data.queryAdapters.odata=n(155).odata},function(e,t,n){var i=n(15),o=n(0).extend,a=n(1),r=n(3).each,s=n(35),l=n(237),u=n(238),c=n(6),d=c.when,h=c.Deferred;n(155);var p=i.inherit({ctor:function(e){var t=this;t._extractServiceOptions(e),t._errorHandler=e.errorHandler,r(e.entities||[],function(n,i){t[n]=new l(o({},e,{url:t._url+"/"+encodeURIComponent(i.name||n)},i))})},get:function(e,t){return this.invoke(e,t,"GET")},invoke:function(e,t,n){t=t||{},n=(n||"POST").toLowerCase();var i,o=new h,r=this._url+"/"+encodeURIComponent(e);return 4===this.version()&&("get"===n?(r=u.formatFunctionInvocationUrl(r,u.escapeServiceOperationParams(t,this.version())),t=null):"post"===n&&(i=t,t=null)),d(this._sendRequest(r,n,u.escapeServiceOperationParams(t,this.version()),i)).done(function(t){a.isPlainObject(t)&&e in t&&(t=t[e]),o.resolve(t)}).fail(this._errorHandler).fail(s._errorHandler).fail(o.reject),o.promise()},objectLink:function(e,t){var n=this[e];if(!n)throw s.errors.Error("E4015",e);return a.isDefined(t)?{__metadata:{uri:n._byKeyUrl(t,!0)}}:null}}).include(u.SharedMethods);e.exports=p},function(e,t,n){var i=n(171);n(212),n(491);var o=i.ui=n(493);o.themes=n(31),o.setTemplateEngine=n(494),o.dialog=n(239),o.notify=n(291),o.repaintFloatingActionButton=n(496),o.dxActionSheet=n(240),o.dxAutocomplete=n(498),o.dxBox=n(192),o.dxButton=n(34),o.dxDropDownButton=n(526),o.dxButtonGroup=n(305),o.dxCalendar=n(245),o.dxCheckBox=n(103),o.dxColorBox=n(306),o.dxDateBox=n(193),o.dxDrawer=n(310),o.dxDeferRendering=n(552),o.dxDropDownBox=n(553),o.dxDropDownMenu=n(196),o.dxFileUploader=n(554),o.dxForm=n(140),o.dxGallery=n(559),o.dxHtmlEditor=n(560),o.dxList=n(101),o.dxLoadIndicator=n(93),o.dxLoadPanel=n(190),o.dxLookup=n(584),o.dxMap=n(585),o.dxMultiView=n(315),o.dxNavBar=n(589),o.dxNumberBox=n(117),o.dxOverlay=n(60),o.dxPopover=n(138),o.dxPopup=n(46),o.dxProgressBar=n(247),o.dxRadioGroup=n(323),o.dxRangeSlider=n(592),o.dxResizable=n(175),o.dxResponsiveBox=n(313),o.dxScrollView=n(162),o.dxSelectBox=n(95),o.dxSlider=n(324),o.dxSpeedDialAction=n(594),o.dxSwitch=n(327),o.dxTabPanel=n(314),o.dxTabs=n(198),o.dxTagBox=n(328),o.dxTextArea=n(329),o.dxTextBox=n(92),o.dxTileView=n(596),o.dxToast=n(292),o.dxToolbar=n(163),o.dxTooltip=n(164),o.dxTrackBar=n(248),i.validationEngine=n(99),o.dxValidationSummary=n(249),o.dxValidationGroup=n(317),o.dxValidator=n(197),n(597),o.CollectionWidget=n(54),o.dxDropDownEditor=n(161),e.exports=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(171),a=i(o),r=n(492),s=i(r);a.default.FileProviders=s.default,e.exports=s.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(130),a=i(o),r=n(288),s=i(r),l=n(289),u=i(l);e.exports=a.default.FileProviders=a.default.FileProviders||{},a.default.FileProviders.WebApi=s.default,a.default.FileProviders.OneDrive=u.default},function(e,t,n){n(130),e.exports=DevExpress.ui={},DevExpress.ui.templateRendered=n(71).renderedCallbacks},function(e,t,n){e.exports=n(186).setTemplateEngine},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(54),a=i(o),r=n(6),s=n(4),l=a.default.inherit({_initMarkup:function(){this._deferredItems=[],this.callBase()},_renderItemContent:function(e){var t=new r.Deferred,n=new r.Deferred,i=this;this._deferredItems[e.index]=n;var o=this.callBase.call(i,e);return n.done(function(){t.resolve(o)}),t.promise()},_createItemByTemplate:function(e,t){var n=this;return e.render({model:t.itemData,container:t.container,index:t.index,onRendered:function(){n._deferredItems[t.index].resolve()}})},_postProcessRenderItems:s.noop,_renderItemsAsync:function(){var e=this,t=new r.Deferred;return r.when.apply(this,this._deferredItems).done(function(){e._postProcessRenderItems(),t.resolve()}),t.promise()},_clean:function(){this.callBase(),this._deferredItems=[]}});e.exports=l},function(e,t,n){var i=n(293);e.exports=i.repaint},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(0),s=n(5),l=i(s),u=n(8),c=n(19),d=i(c),h=n(62),p=n(60),f=i(p),g=n(72),_=i(g),m=n(31),v=i(m),y="dx-fa-button",x="dx-fa-button-icon",b=".dx-overlay-content",w=f.default.inherit({_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{shading:!1,useInkRipple:!1,callOverlayRenderShading:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return v.default.isMaterial()},options:{useInkRipple:!0}}])},_render:function(){this.$element().addClass(y),this.callBase(),this._renderIcon(),this.option("useInkRipple")&&this._renderInkRipple(),this._renderClick()},_renderButtonIcon:function(e,t,n){!!e&&e.remove(),e=(0,a.default)("<div>").addClass(n);var i=(0,h.getImageContainer)(t);return e.append(i).appendTo(this.$content()),e},_renderIcon:function(){this._$icon=this._renderButtonIcon(this._$icon,this._options.icon,x)},_renderShading:function(){this._options.callOverlayRenderShading&&this.callBase()},_fixWrapperPosition:function(){var e=this._$wrapper,t=this._getContainer();e.css("position",this._isWindow(t)?"fixed":"absolute")},_setClickAction:function(){var e=this,t=(0,u.addNamespace)(d.default.name,this.NAME),n=this.$element().find(b);l.default.off(n,t),l.default.on(n,t,function(t){e._clickAction({event:t,element:e.$element()})})},_defaultActionArgs:function(){return{component:this.option("actionComponent")}},_renderClick:function(){this._clickAction=this._createActionByOption("onClick"),this._setClickAction()},_renderInkRipple:function(){this._inkRipple=_.default.render()},_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)}},_optionChanged:function(e){switch(e.name){case"icon":this._renderIcon();break;case"onClick":this._renderClick();break;case"useInkRipple":this._render();break;default:this.callBase(e)}}});e.exports=w},function(e,t,n){var i=n(2),o=n(4).noop,a=n(9),r=n(0).extend,s=n(241),l=n(6).Deferred,u="dx-autocomplete",c="dx-autocomplete-popup-wrapper",d=s.inherit({_supportedKeys:function(){var e=this._list?this._list.option("focusedElement"):null,t=this.callBase();return e=e&&i(e),r({},t,{upArrow:function(t){return t.preventDefault(),t.stopPropagation(),!(e&&!this._calcNextItem(-1))||(this._clearFocusedItem(),!1)},downArrow:function(t){return t.preventDefault(),t.stopPropagation(),!(e&&!this._calcNextItem(1))||(this._clearFocusedItem(),!1)},enter:function(){return e||this.close(),t.enter.apply(this,arguments),this.option("opened")}})},_getDefaultOptions:function(){return r(this.callBase(),{minSearchLength:1,maxItemCount:10,noDataText:"",showDropDownButton:!1,searchEnabled:!0})},_initMarkup:function(){this.callBase(),this.$element().addClass(u),this.setAria("autocomplete","inline")},_loadValue:function(){return(new l).resolve(this.option("value"))},_displayGetterExpr:function(){return this.option("valueExpr")},_setSelectedItem:function(e){this.callBase(e),this.option("displayValue",this.option("value"))},_popupConfig:function(){return r(this.callBase(),{closeOnOutsideClick:function(e){return!i(e.target).closest(this.$element()).length}.bind(this)})},_renderDimensions:function(){this.callBase(),this._setPopupOption("width")},_popupWrapperClass:function(){return this.callBase()+" "+c},_listConfig:function(){return r(this.callBase(),{pageLoadMode:"none",indicateLoading:!1})},_listItemClickHandler:function(e){var t=this._displayGetter(e.itemData);this.option("value",t),this.close()},_setListDataSource:function(){this._list&&(this._list.option("selectedItems",[]),this.callBase())},_refreshSelected:o,_searchCanceled:function(){this.callBase(),this.close()},_dataSourceOptions:function(){return{paginate:!0}},_searchDataSource:function(){this._dataSource.pageSize(this.option("maxItemCount")),this.callBase(),this._clearFocusedItem()},_clearFocusedItem:function(){this._list&&(this._list.option("focusedElement",null),this._list.option("selectedIndex",-1))},_renderValueEventName:function(){return"input keyup"},_valueChangeEventHandler:function(e){var t=this._input().val()||null;return this.callBase(e,t)},_optionChanged:function(e){switch(e.name){case"maxItemCount":this._searchDataSource();break;case"valueExpr":this._compileDisplayGetter(),this._setListOption("displayExpr",this._displayGetterExpr()),this.callBase(e);break;default:this.callBase(e)}},reset:function(){this.callBase(),this.close()}});a("dxAutocomplete",d),e.exports=d},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(5),h=i(d),p=n(14),f=i(p),g=n(188),_=i(g),m=n(34),v=i(m),y="dx-dropdowneditor-button",x="dx-dropdowneditor-button-visible",b="dxDropDownEditor-selectLabel",w=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_attachEvents",value:function(e){var t=this.editor;e.option("onClick",function(e){!t.option("openOnFieldClick")&&t._openHandler(e)}),h.default.on(e.$element(),"mousedown",function(e){e.preventDefault()})}},{key:"_create",value:function(){var e=this.editor,t=(0,c.default)("<div>"),n=this._getOptions();this._addToContainer(t);var i=e._createComponent(t,v.default,n);return i.setAria("label",f.default.format(b)),this._legacyRender(e.$element(),t,n.visible),{$element:t,instance:i}}},{key:"_getOptions",value:function(){var e=this.editor,t=this._isVisible(),n=e.option("readOnly"),i=e._getTemplateByOption("dropDownButtonTemplate");return{focusStateEnabled:!1,hoverStateEnabled:!1,activeStateEnabled:!1,useInkRipple:!1,disabled:n,visible:t,template:i}}},{key:"_isVisible",value:function(){var e=this.editor;return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_isVisible",this).call(this)&&e.option("showDropDownButton")}},{key:"_legacyRender",value:function(e,t,n){e.toggleClass(x,n),t&&(t.removeClass("dx-button"),t.addClass(y))}},{key:"update",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this);if(e){var n=this.editor,i=this.instance,o=n.$element(),a=this._getOptions();i&&i.option(a),this._legacyRender(o,i&&i.$element(),a.visible)}}}]),t}(_.default);t.default=w},function(e,t,n){var i=n(2),o=n(7),a=o.getWindow(),r=o.getNavigator(),s=n(26),l=n(5),u=n(16),c=n(13).inArray,d=n(0).extend,h=n(9),p=n(294),f=n(8),g=r.userAgent,_=["backspace","tab","enter","pageUp","pageDown","end","home","leftArrow","rightArrow","downArrow","upArrow","del"],m="dx-textbox",v="dx-searchbox",y="dx-icon",x="dx-icon-search",b=p.inherit({ctor:function(e,t){t&&(this._showClearButton=t.showClearButton),this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return d(this.callBase(),{value:"",mode:"text",maxLength:null})},_initMarkup:function(){this.$element().addClass(m),this.callBase(),this.setAria("role","textbox")},_renderContentImpl:function(){this._renderMaxLengthHandlers(),this.callBase()},_renderInputType:function(){this.callBase(),this._renderSearchMode()},_renderMaxLengthHandlers:function(){this._isAndroidOrIE()&&(l.on(this._input(),f.addNamespace("keydown",this.NAME),this._onKeyDownCutOffHandler.bind(this)),l.on(this._input(),f.addNamespace("change",this.NAME),this._onChangeCutOffHandler.bind(this)))},_renderProps:function(){this.callBase(),this._toggleMaxLengthProp()},_toggleMaxLengthProp:function(){if(!this._isAndroidOrIE()){var e=this.option("maxLength");e>0?this._input().attr("maxLength",e):this._input().removeAttr("maxLength")}},_renderSearchMode:function(){var e=this._$element;"search"===this.option("mode")?(e.addClass(v),this._renderSearchIcon(),void 0===this._showClearButton&&(this._showClearButton=this.option("showClearButton"),this.option("showClearButton",!0))):(e.removeClass(v),this._$searchIcon&&this._$searchIcon.remove(),this.option("showClearButton",void 0===this._showClearButton?this.option("showClearButton"):this._showClearButton),delete this._showClearButton)},_renderSearchIcon:function(){var e=i("<div>").addClass(y).addClass(x);e.prependTo(this._input().parent()),this._$searchIcon=e},_optionChanged:function(e){switch(e.name){case"maxLength":this._toggleMaxLengthProp(),this._renderMaxLengthHandlers();break;default:this.callBase(e)}},_onKeyDownCutOffHandler:function(e){var t=this.option("maxLength");if(t){var n=i(e.target),o=f.normalizeKeyName(e);return this._cutOffExtraChar(n),n.val().length<t||c(o,_)!==-1||""!==a.getSelection().toString()}return!0},_onChangeCutOffHandler:function(e){var t=i(e.target);this.option("maxLength")&&this._cutOffExtraChar(t)},_cutOffExtraChar:function(e){var t=this.option("maxLength"),n=e.val();n.length>t&&e.val(n.substr(0,t))},_isAndroidOrIE:function(){var e=u.real(),t=e.version.join(".");return s.msie||"android"===e.platform&&t&&/^(2\.|4\.1)/.test(t)&&!/chrome/i.test(g)}});h("dxTextBox",b),e.exports=b},function(e,t,n){var i=n(2),o=n(295),a=n(16),r=n(3).each,s=n(8),l=n(5),u=n(0).extend,c=n(64).focused,d=n(1).isDefined,h=n(14),p=n(4).noop,f=n(45),g=n(128),_=n(502),m=n(503),v=n(507).default,y=n(508).default,x=function(){return{}},b=" ",w="\\",C="dx-texteditor-masked",k="forward",S="backward",I={0:/[0-9]/,9:/[0-9\s]/,"#":/[-+0-9\s]/,L:function(e){return D(e)},l:function(e){return D(e)||E(e)},C:/\S/,c:/./,A:function(e){return D(e)||T(e)},a:function(e){return D(e)||T(e)||E(e)}},T=function(e){return/[0-9]/.test(e)},D=function(e){var t=e.charCodeAt();return 64<t&&t<91||96<t&&t<123||t>127},E=function(e){return" "===e},A=m.inherit({_getDefaultOptions:function(){return u(this.callBase(),{mask:"",maskChar:"_",maskRules:{},maskInvalidMessage:h.format("validation-mask"),useMaskedValue:!1,showMaskMode:"always"})},_supportedKeys:function(){var e=this,t={backspace:e._maskStrategy.getHandler("backspace"),del:e._maskStrategy.getHandler("del"),enter:e._changeHandler},n=e.callBase();return r(t,function(t,i){var o=n[t];n[t]=function(t){e.option("mask")&&i.call(e,t),o&&o(t)}}),n},_getSubmitElement:function(){return this.option("mask")?this._$hiddenElement:this.callBase()},_init:function(){this.callBase(),this._initMaskStrategy()},_initMaskStrategy:function(){var e=a.real();this._maskStrategy=e.android&&e.version[0]>4?new y(this):new v(this)},_initMarkup:function(){this._renderHiddenElement(),this.callBase()},_attachMouseWheelEventHandlers:function(){var e=this._onMouseWheel!==p;if(e){var t=this._input(),n=s.addNamespace(g.name,this.NAME),i=this._createAction(function(e){if(c(t)){var n=e.event;this._onMouseWheel(n),n.preventDefault(),n.stopPropagation()}}.bind(this));l.off(t,n),l.on(t,n,function(e){i({event:e})})}},_onMouseWheel:p,_render:function(){this.callBase(),this._renderMask(),this._attachMouseWheelEventHandlers()},_renderHiddenElement:function(){this.option("mask")&&(this._$hiddenElement=i("<input>").attr("type","hidden").appendTo(this._inputWrapper()))},_removeHiddenElement:function(){this._$hiddenElement&&this._$hiddenElement.remove()},_renderMask:function(){this.$element().removeClass(C),this._maskRulesChain=null,this._maskStrategy.detachEvents(),this.option("mask")&&(this.$element().addClass(C),this._maskStrategy.attachEvents(),this._parseMask(),this._renderMaskedValue(),this._changedValue=this._input().val())},_suppressCaretChanging:function(e,t){var n=o;o=x;try{e.apply(this,t)}finally{o=n}},_changeHandler:function(e){var t=this._input(),n=t.val();if(n!==this._changedValue){this._changedValue=n;var i=s.createEvent(e,{type:"change"});l.trigger(t,i)}},_parseMask:function(){this._maskRules=u({},I,this.option("maskRules")),this._maskRulesChain=this._parseMaskRule(0)},_parseMaskRule:function(e){var t=this.option("mask");if(e>=t.length)return new _.EmptyMaskRule;var n=t[e],i=n===w,o=i?new _.StubMaskRule({maskChar:t[e+1]}):this._getMaskRule(n);return o.next(this._parseMaskRule(e+1+i)),o},_getMaskRule:function(e){var t;return r(this._maskRules,function(n,i){if(n===e)return t={pattern:n,allowedChars:i},!1}),d(t)?new _.MaskRule(u({maskChar:this.option("maskChar")},t)):new _.StubMaskRule({maskChar:e})},_renderMaskedValue:function(){if(this._maskRulesChain){var e=this.option("value")||"";this._maskRulesChain.clear(this._normalizeChainArguments());var t={length:e.length};t[this._isMaskedValueMode()?"text":"value"]=e,this._handleChain(t),this._displayMask()}},_replaceSelectedText:function(e,t,n){if(void 0===n)return e;var i=e.slice(0,t.start),o=e.slice(t.end),a=i+n+o;return a},_isMaskedValueMode:function(){return this.option("useMaskedValue")},_displayMask:function(e){e=e||this._caret(),this._renderValue(),this._caret(e)},_isValueEmpty:function(){return f.isEmpty(this._value)},_shouldShowMask:function(){var e=this.option("showMaskMode");return"onFocus"!==e||(c(this._input())||!this._isValueEmpty())},_showMaskPlaceholder:function(){if(this._shouldShowMask()){var e=this._maskRulesChain.text();this.option("text",e),"onFocus"===this.option("showMaskMode")&&this._renderDisplayText(e)}},_renderValue:function(){if(this._maskRulesChain){var e=this._maskRulesChain.text();if(this._showMaskPlaceholder(),this._$hiddenElement){var t=this._maskRulesChain.value(),n=this._isMaskedValueMode()?e:t;this._$hiddenElement.val(f.isEmpty(t)?"":n)}}return this.callBase()},_valueChangeEventHandler:function(e){return this._maskRulesChain?(this._saveValueChangeEvent(e),void this.option("value",this._convertToValue().replace(/\s+$/,""))):void this.callBase.apply(this,arguments)},_isControlKeyFired:function(e){return this._isControlKey(s.normalizeKeyName(e))||e.ctrlKey||e.metaKey},_handleChain:function(e){var t=this._maskRulesChain.handle(this._normalizeChainArguments(e));return this._value=this._maskRulesChain.value(),this._textValue=this._maskRulesChain.text(),t},_normalizeChainArguments:function(e){return e=e||{},e.index=0,e.fullText=this._maskRulesChain.text(),e},_convertToValue:function(e){return e=this._isMaskedValueMode()?this._replaceMaskCharWithEmpty(e||this._textValue||""):e||this._value||""},_replaceMaskCharWithEmpty:function(e){return e.replace(new RegExp(this.option("maskChar"),"g"),b)},_maskKeyHandler:function(e,t){this.option("readOnly")||(this.setForwardDirection(),e.preventDefault(),this._handleSelection(),t.call(this)&&(this.setForwardDirection(),this._adjustCaret(),this._changedValue=this._input().val(),this._displayMask(),this._maskRulesChain.reset()))},_handleKey:function(e,t){this._direction(t||k),this._adjustCaret(e),this._handleKeyChain(e),this._moveCaret()},_handleSelection:function(){if(this._hasSelection()){var e=this._caret(),t=new Array(e.end-e.start+1).join(b);this._handleKeyChain(t)}},_handleKeyChain:function(e){var t=this._caret(),n=this.isForwardDirection()?t.start:t.start-1,i=this.isForwardDirection()?t.end:t.end-1,o=n===i?1:i-n;this._handleChain({text:e,start:n,length:o})},_tryMoveCaretBackward:function(){this.setBackwardDirection();var e=this._caret().start;return this._adjustCaret(),!e||e!==this._caret().start},_adjustCaret:function(e){var t=this._maskRulesChain.adjustedCaret(this._caret().start,this.isForwardDirection(),e);this._caret({start:t,end:t})},_moveCaret:function(){var e=this._caret().start,t=e+(this.isForwardDirection()?0:-1),n=this._maskRulesChain.isAccepted(t)?e+(this.isForwardDirection()?1:-1):e;this._caret({start:n,end:n})},_caret:function(e){var t=this._input();if(t.length)return arguments.length?void o(t,e):o(t)},_hasSelection:function(){var e=this._caret();return e.start!==e.end},_direction:function(e){return arguments.length?void(this._typingDirection=e):this._typingDirection},setForwardDirection:function(){this._direction(k)},setBackwardDirection:function(){this._direction(S)},isForwardDirection:function(){return this._direction()===k},_clean:function(){this._maskStrategy&&this._maskStrategy.clean(),this.callBase()},_validateMask:function(){if(this._maskRulesChain){var e=f.isEmpty(this.option("value"))||this._maskRulesChain.isValid(this._normalizeChainArguments());this.option({isValid:e,validationError:e?null:{editorSpecific:!0,message:this.option("maskInvalidMessage")}})}},_updateHiddenElement:function(){this._removeHiddenElement(),
72this.option("mask")&&(this._input().removeAttr("name"),this._renderHiddenElement()),this._setSubmitElementName(this.option("name"))},_updateMaskOption:function(){this._updateHiddenElement(),this._renderMask(),this._validateMask()},_processEmptyMask:function(e){if(!e){var t=this.option("value");this.option({text:t,isValid:!0}),this.validationRequest.fire({value:t,editor:this}),this._renderValue()}},_optionChanged:function(e){switch(e.name){case"mask":this._updateMaskOption(),this._processEmptyMask(e.value);break;case"maskChar":case"maskRules":case"useMaskedValue":this._updateMaskOption();break;case"value":this._renderMaskedValue(),this._validateMask(),this.callBase(e);break;case"maskInvalidMessage":break;case"showMaskMode":this.option("text",""),this._renderValue();break;default:this.callBase(e)}}});e.exports=A},function(e,t,n){var i=n(15),o=n(0).extend,a=n(13).inArray,r=n(1),s=n(4).noop,l=r.isFunction,u=" ",c=i.inherit({ctor:function(e){this._value=u,o(this,e)},next:function(e){return arguments.length?void(this._next=e):this._next},text:s,value:s,rawValue:s,handle:s,_prepareHandlingArgs:function(e,t){t=t||{};var n=Object.prototype.hasOwnProperty.call(e,"value")?"value":"text";return e[n]=r.isDefined(t.str)?t.str:e[n],e.start=r.isDefined(t.start)?t.start:e.start,e.length=r.isDefined(t.length)?t.length:e.length,e.index=e.index+1,e},reset:s,clear:s,first:function(e){return e=e||0,this.next().first(e+1)},isAccepted:function(){return!1},adjustedCaret:function(e,t,n){return t?this._adjustedForward(e,0,n):this._adjustedBackward(e,0,n)},_adjustedForward:s,_adjustedBackward:s,isValid:s}),d=c.inherit({next:s,handle:function(){return 0},text:function(){return""},value:function(){return""},first:function(){return 0},rawValue:function(){return""},adjustedCaret:function(){return 0},isValid:function(){return!0}}),h=c.inherit({text:function(){return(this._value!==u?this._value:this.maskChar)+this.next().text()},value:function(){return this._value+this.next().value()},rawValue:function(){return this._value+this.next().rawValue()},handle:function(e){var t=Object.prototype.hasOwnProperty.call(e,"value")?e.value:e.text;if(!t||!t.length||!e.length)return 0;if(e.start)return this.next().handle(this._prepareHandlingArgs(e,{start:e.start-1}));var n=t[0],i=t.substring(1);return this._tryAcceptChar(n,e),this._accepted()?this.next().handle(this._prepareHandlingArgs(e,{str:i,length:e.length-1}))+1:this.handle(this._prepareHandlingArgs(e,{str:i,length:e.length-1}))},clear:function(e){this._tryAcceptChar(u,e),this.next().clear(this._prepareHandlingArgs(e))},reset:function(){this._accepted(!1),this.next().reset()},_tryAcceptChar:function(e,t){if(this._accepted(!1),this._isAllowed(e,t)){var n=e===u?this.maskChar:e;t.fullText=t.fullText.substring(0,t.index)+n+t.fullText.substring(t.index+1),this._accepted(!0),this._value=e}},_accepted:function(e){return arguments.length?void(this._isAccepted=!!e):!!this._isAccepted},first:function(e){return this._value===u?e||0:this.callBase(e)},_isAllowed:function(e,t){return e===u||this._isValid(e,t)},_isValid:function(e,t){var n=this.allowedChars;return n instanceof RegExp?n.test(e):l(n)?n(e,t.index,t.fullText):Array.isArray(n)?a(e,n)>-1:n===e},isAccepted:function(e){return 0===e?this._accepted():this.next().isAccepted(e-1)},_adjustedForward:function(e,t,n){return t>=e?t:this.next()._adjustedForward(e,t+1,n)||t+1},_adjustedBackward:function(e,t){return t>=e-1?e:this.next()._adjustedBackward(e,t+1)||t+1},isValid:function(e){return this._isValid(this._value,e)&&this.next().isValid(this._prepareHandlingArgs(e))}}),p=h.inherit({value:function(){return this.next().value()},handle:function(e){var t=Object.prototype.hasOwnProperty.call(e,"value"),n=t?e.value:e.text;if(!n.length||!e.length)return 0;if(e.start||t)return this.next().handle(this._prepareHandlingArgs(e,{start:e.start&&e.start-1}));var i=n[0],o=n.substring(1);this._tryAcceptChar(i);var a=this._isAllowed(i)?this._prepareHandlingArgs(e,{str:o,length:e.length-1}):e;return this.next().handle(a)+1},clear:function(e){this._accepted(!1),this.next().clear(this._prepareHandlingArgs(e))},_tryAcceptChar:function(e){this._accepted(this._isValid(e))},_isValid:function(e){return e===this.maskChar},first:function(e){return e=e||0,this.next().first(e+1)},_adjustedForward:function(e,t,n){return t>=e&&n===this.maskChar?t:e===t+1&&this._accepted()?e:this.next()._adjustedForward(e,t+1,n)},_adjustedBackward:function(e,t){return t>=e-1?0:this.next()._adjustedBackward(e,t+1)},isValid:function(e){return this.next().isValid(this._prepareHandlingArgs(e))}});e.exports.MaskRule=h,e.exports.StubMaskRule=p,e.exports.EmptyMaskRule=d},function(e,t,n){function i(e){if(u(e)&&!Array.isArray(e))throw x.Error("E1053")}var o=n(2),a=n(11),r=n(5),s=n(12),l=n(64).focused,u=n(1).isDefined,c=n(0).extend,d=n(13).inArray,h=n(3).each,p=n(31),f=n(49),g=n(8),_=n(24),m=n(504).default,v=n(505).default,y=n(28),x=n(17),b=n(6).Deferred,w="dx-texteditor",C="dx-texteditor-input-container",k="dx-texteditor-input",S="."+k,I="dx-texteditor-container",T="dx-texteditor-buttons-container",D="dx-placeholder",E="dx-texteditor-empty",A="dx-editor-",O=[A+"outlined",A+"filled",A+"underlined"],B="dx-state-invisible",P=["KeyDown","KeyPress","KeyUp","Change","Cut","Copy","Paste","Input"],M=["tab","enter","shift","control","alt","escape","pageUp","pageDown","end","home","leftArrow","upArrow","rightArrow","downArrow"],R=f.inherit({ctor:function(e,t){t&&i(t.buttons),this._buttonCollection=new v(this,this._getDefaultButtons()),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return c(this.callBase(),{buttons:void 0,value:"",spellcheck:!1,showClearButton:!1,valueChangeEvent:"change",placeholder:"",inputAttr:{},onFocusIn:null,onFocusOut:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onChange:null,onInput:null,onCut:null,onCopy:null,onPaste:null,onEnterKey:null,mode:"text",hoverStateEnabled:!0,focusStateEnabled:!0,text:void 0,valueFormat:function(e){return u(e)&&e!==!1?e:""},stylingMode:y().editorStylingMode||"outlined"})},_defaultOptionsRules:function(){var e=p.current();return this.callBase().concat([{device:function(){return p.isMaterial(e)},options:{stylingMode:y().editorStylingMode||"underlined"}}])},_getDefaultButtons:function(){return[{name:"clear",Ctor:m}]},_isClearButtonVisible:function(){return this.option("showClearButton")&&!this.option("readOnly")},_input:function(){return this.$element().find(S).first()},_isFocused:function(){return l(this._input())||this.callBase()},_inputWrapper:function(){return this.$element()},_buttonsContainer:function(){return this._inputWrapper().find("."+T).eq(0)},_isControlKey:function(e){return M.indexOf(e)!==-1},_renderStylingMode:function(){var e=this,t="stylingMode",n=this.option(t);O.forEach(function(t){return e.$element().removeClass(t)});var i=A+n;if(O.indexOf(i)===-1){var o=this._getDefaultOptions()[t],a=this._convertRulesToOptions(this._defaultOptionsRules())[t];i=A+(a||o)}this.$element().addClass(i),this._updateButtonsStyling(n)},_initMarkup:function(){this.$element().addClass(w),this._renderInput(),this._renderStylingMode(),this._renderInputType(),this._renderPlaceholder(),this._renderProps(),this.callBase(),this._renderValue()},_render:function(){this._renderPlaceholder(),this._refreshValueChangeEvent(),this._renderEvents(),this._renderEnterKeyAction(),this._renderEmptinessEvent(),this.callBase()},_renderInput:function(){this._$textEditorContainer=o("<div>").addClass(I).appendTo(this.$element()),this._$textEditorInputContainer=o("<div>").addClass(C).appendTo(this._$textEditorContainer),this._$textEditorInputContainer.append(this._createInput()),this._renderButtonContainers()},_renderButtonContainers:function(){var e=this.option("buttons");this._$beforeButtonsContainer=this._buttonCollection.renderBeforeButtons(e,this._$textEditorContainer),this._$afterButtonsContainer=this._buttonCollection.renderAfterButtons(e,this._$textEditorContainer)},_clean:function(){this._buttonCollection.clean(),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this._$textEditorContainer=null,this.callBase()},_createInput:function(){var e=o("<input>");return this._applyInputAttributes(e,this.option("inputAttr")),e},_setSubmitElementName:function(e){var t=this.option("inputAttr.name");return this.callBase(e||t||"")},_applyInputAttributes:function(e,t){e.attr("autocomplete","off").attr(t).addClass(k).css("minHeight",this.option("height")?"0":"")},_updateButtons:function(e){this._buttonCollection.updateButtons(e)},_updateButtonsStyling:function(e){var t=this;h(this.option("buttons"),function(n,i){if(i.options&&!i.options.stylingMode){var o=t.getButton(i.name);o.option&&o.option("stylingMode","underlined"===e?"text":"contained")}})},_renderValue:function(){var e=this._renderInputValue();return e.promise()},_renderInputValue:function(e){e=e||this.option("value");var t=this.option("text"),n=this.option("displayValue"),i=this.option("valueFormat");return void 0!==n&&null!==e?t=i(n):u(t)||(t=i(e)),this.option("text",t),this._input().val()!==(u(t)?t:"")?this._renderDisplayText(t):this._toggleEmptinessEventHandler(),(new b).resolve()},_renderDisplayText:function(e){this._input().val(e),this._toggleEmptinessEventHandler()},_isValueValid:function(){if(this._input().length){var e=this._input().get(0).validity;if(e)return e.valid}return!0},_toggleEmptiness:function(e){this.$element().toggleClass(E,e),this._togglePlaceholder(e)},_togglePlaceholder:function(e){this._$placeholder&&this._$placeholder.toggleClass(B,!e)},_renderProps:function(){this._toggleReadOnlyState(),this._toggleSpellcheckState(),this._toggleTabIndex()},_toggleDisabledState:function(e){this.callBase.apply(this,arguments);var t=this._input();e?t.attr("disabled",!0):t.removeAttr("disabled")},_toggleTabIndex:function(){var e=this._input(),t=this.option("disabled"),n=this.option("focusStateEnabled");t||!n?e.attr("tabIndex",-1):e.removeAttr("tabIndex")},_toggleReadOnlyState:function(){this._input().prop("readOnly",this._readOnlyPropValue()),this.callBase()},_readOnlyPropValue:function(){return this.option("readOnly")},_toggleSpellcheckState:function(){this._input().prop("spellcheck",this.option("spellcheck"))},_renderPlaceholder:function(){this._renderPlaceholderMarkup(),this._attachPlaceholderEvents()},_renderPlaceholderMarkup:function(){this._$placeholder&&(this._$placeholder.remove(),this._$placeholder=null);var e=this._input(),t=this.option("placeholder"),n=this._$placeholder=o("<div>").attr("data-dx_placeholder",t);n.insertAfter(e),n.addClass(D)},_attachPlaceholderEvents:function(){var e=this,t=g.addNamespace(_.up,e.NAME);r.on(e._$placeholder,t,function(){r.trigger(e._input(),"focus")}),e._toggleEmptinessEventHandler()},_placeholder:function(){return this._$placeholder||o()},_clearValueHandler:function(e){var t=this._input();e.stopPropagation(),this._saveValueChangeEvent(e),this.reset(),!this._isFocused()&&r.trigger(t,"focus"),r.trigger(t,"input")},_renderEvents:function(){var e=this,t=e._input();h(P,function(n,i){if(e.hasActionSubscription("on"+i)){var o=e._createActionByOption("on"+i,{excludeValidators:["readOnly"]});r.on(t,g.addNamespace(i.toLowerCase(),e.NAME),function(t){e._disposed||o({event:t})})}})},_refreshEvents:function(){var e=this,t=this._input();h(P,function(n,i){r.off(t,g.addNamespace(i.toLowerCase(),e.NAME))}),this._renderEvents()},_keyPressHandler:function(){this.option("text",this._input().val())},_renderValueChangeEvent:function(){var e=g.addNamespace(this._renderValueEventName(),this.NAME+"TextChange"),t=g.addNamespace(this.option("valueChangeEvent"),this.NAME+"ValueChange");r.on(this._input(),e,this._keyPressHandler.bind(this)),r.on(this._input(),t,this._valueChangeEventHandler.bind(this))},_cleanValueChangeEvent:function(){var e=this.NAME+"ValueChange",t=g.addNamespace(this._renderValueEventName(),this.NAME+"TextChange");r.off(this._input(),"."+e),r.off(this._input(),t)},_refreshValueChangeEvent:function(){this._cleanValueChangeEvent(),this._renderValueChangeEvent()},_renderValueEventName:function(){return"input change keypress"},_focusTarget:function(){return this._input()},_focusClassTarget:function(){return this.$element()},_toggleFocusClass:function(e,t){this.callBase(e,this._focusClassTarget(t))},_hasFocusClass:function(e){return this.callBase(o(e||this.$element()))},_renderEmptinessEvent:function(){var e=this._input();r.on(e,"input blur",this._toggleEmptinessEventHandler.bind(this))},_toggleEmptinessEventHandler:function(){var e=this._input().val(),t=(""===e||null===e)&&this._isValueValid();this._toggleEmptiness(t)},_valueChangeEventHandler:function(e,t){this._saveValueChangeEvent(e),this.option("value",arguments.length>1?t:this._input().val()),this._saveValueChangeEvent(void 0)},_renderEnterKeyAction:function(){this._enterKeyAction=this._createActionByOption("onEnterKey",{excludeValidators:["readOnly"]}),r.off(this._input(),"keyup.onEnterKey.dxTextEditor"),r.on(this._input(),"keyup.onEnterKey.dxTextEditor",this._enterKeyHandlerUp.bind(this))},_enterKeyHandlerUp:function(e){this._disposed||"enter"===g.normalizeKeyName(e)&&this._enterKeyAction({event:e})},_updateValue:function(){this.option("text",void 0),this._renderValue()},_dispose:function(){this._enterKeyAction=void 0,this.callBase()},_getSubmitElement:function(){return this._input()},_optionChanged:function(e){var t=e.name;if(d(t.replace("on",""),P)>-1)return void this._refreshEvents();switch(t){case"valueChangeEvent":this._refreshValueChangeEvent(),this._refreshFocusEvent(),this._refreshEvents();break;case"onValueChanged":this._createValueChangeAction();break;case"focusStateEnabled":this.callBase(e),this._toggleTabIndex();break;case"spellcheck":this._toggleSpellcheckState();break;case"mode":this._renderInputType();break;case"onEnterKey":this._renderEnterKeyAction();break;case"placeholder":this._renderPlaceholder();break;case"readOnly":case"disabled":this._updateButtons(),this.callBase(e);break;case"showClearButton":this._updateButtons(["clear"]);break;case"text":break;case"value":this._updateValue(),this.callBase(e);break;case"inputAttr":this._applyInputAttributes(this._input(),e.value);break;case"stylingMode":this._renderStylingMode();break;case"buttons":e.fullName===e.name&&i(e.value),this._$beforeButtonsContainer&&this._$beforeButtonsContainer.remove(),this._$afterButtonsContainer&&this._$afterButtonsContainer.remove(),this._buttonCollection.clean(),this._renderButtonContainers();break;case"valueFormat":this._invalidate();break;default:this.callBase(e)}},_renderInputType:function(){this._setInputType(this.option("mode"))},_setInputType:function(e){var t=this._input();"search"===e&&(e="text");try{t.prop("type",e)}catch(e){t.prop("type","text")}},getButton:function(e){return this._buttonCollection.getButton(e)},focus:function(){r.trigger(this._input(),"focus")},blur:function(){this._input().is(a.getActiveElement())&&s.resetActiveElement()},reset:function(){var e=this._getDefaultOptions();this.option("value")===e.value?(this.option("text",""),this._renderValue()):this.option("value",e.value)},on:function(e,t){var n=this.callBase(e,t),i=e.charAt(0).toUpperCase()+e.substr(1);return P.indexOf(i)>=0&&this._refreshEvents(),n}});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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(5),h=i(d),p=n(188),f=i(p),g=n(8),_=n(24),m=n(19),v="dx-state-invisible",y="dx-clear-button-area",x="dx-icon-clear",b="dx-icon",w="dx-show-clear-button",C=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_create",value:function(){var e=(0,c.default)("<span>").addClass(y).append((0,c.default)("<span>").addClass(b).addClass(x));return this._addToContainer(e),this.update(!0),{instance:e,$element:e}}},{key:"_isVisible",value:function(){var e=this.editor;return e._isClearButtonVisible()}},{key:"_attachEvents",value:function(e,t){var n=this.editor,i=n.NAME;h.default.on(t,(0,g.addNamespace)(_.down,i),function(e){"mouse"===e.pointerType&&e.preventDefault()}),h.default.on(t,(0,g.addNamespace)(m.name,i),function(e){return n._clearValueHandler(e)})}},{key:"_legacyRender",value:function(e,t){e.toggleClass(w,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!e&&l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this);var n=this.editor,i=this.instance,o=n.$element(),a=this._isVisible();i&&i.toggleClass(v,!a),this._legacyRender(o,a)}}]),t}(f.default);t.default=C},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){var t=function(){if(!e||"object"!==("undefined"==typeof e?"undefined":u(e))||Array.isArray(e))throw m.default.Error("E1053")},n=function(){var t=e.location;"location"in e&&"after"!==t&&"before"!==t&&(e.location="after")},i=function(){if(!("name"in e))throw m.default.Error("E1054")},o=function(){var t=e.name;if("string"!=typeof t)throw m.default.Error("E1055")};t(),i(),o(),n()}function r(e,t){if(e.indexOf(t)!==-1)throw m.default.Error("E1055",t);e.push(t)}function s(e,t){return!!(0,g.find)(t,function(t){return t.name===e})}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u="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},c=n(2),d=i(c),h=n(506),p=i(h),f=n(0),g=n(13),_=n(17),m=i(_),v="dx-texteditor-buttons-container",y=function(){function e(t,n){o(this,e),this.buttons=[],this.defaultButtonsInfo=n,this.editor=t}return l(e,[{key:"_compileButtonInfo",value:function(e){var t=this,n=[];return e.map(function(e){var i="string"==typeof e;i||a(e);var o=i||s(e.name,t.defaultButtonsInfo);if(o){var l=(0,g.find)(t.defaultButtonsInfo,function(t){var n=t.name;return n===e||n===e.name});if(!l)throw m.default.Error("E1056",t.editor.NAME,e);return r(n,e),l}var u=e.name;return r(n,u),(0,f.extend)(e,{Ctor:p.default})})}},{key:"_createButton",value:function(e){var t=e.Ctor,n=e.options,i=e.name,o=new t(i,this.editor,n);return this.buttons.push(o),o}},{key:"_renderButtons",value:function(e,t,n){var i=this,o=null,a=e?this._compileButtonInfo(e):this.defaultButtonsInfo,r=function(){return o=o||(0,d.default)("<div>").addClass(v),"before"===n?t.prepend(o):t.append(o),o};return a.forEach(function(e){var t=e.location,o=void 0===t?"after":t;o===n&&i._createButton(e).render(r())}),o}},{key:"clean",value:function(){this.buttons.forEach(function(e){return e.dispose()}),this.buttons=[]}},{key:"getButton",value:function(e){var t=(0,g.find)(this.buttons,function(t){var n=t.name;return n===e});return t&&t.instance}},{key:"renderAfterButtons",value:function(e,t){return this._renderButtons(e,t,"after")}},{key:"renderBeforeButtons",value:function(e,t){return this._renderButtons(e,t,"before")}},{key:"updateButtons",value:function(e){this.buttons.forEach(function(t){e&&e.indexOf(t.name)===-1||t.update()})}}]),e}();t.default=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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(188),h=i(d),p=n(34),f=i(p),g=n(0),_=n(5),m=i(_),v=n(135),y=i(v),x=n(19),b=i(x),w="dx-custom-button-hovered",C=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_attachEvents",value:function(e,t){var n=this.editor;m.default.on(t,y.default.start,function(){n.$element().addClass(w)}),m.default.on(t,y.default.end,function(){n.$element().removeClass(w)}),m.default.on(t,b.default.name,function(e){e.stopPropagation()})}},{key:"_create",value:function(){var e=this.editor,t=(0,c.default)("<div>");this._addToContainer(t);var n=e._createComponent(t,f.default,(0,g.extend)({},this.options,{disabled:this._isDisabled()}));return{$element:t,instance:n}}},{key:"update",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this);return this.instance&&this.instance.option("disabled",this._isDisabled()),e}},{key:"_isVisible",value:function(){var e=this.editor;return e.option("visible")}},{key:"_isDisabled",value:function(){var e=void 0!==this.options.disabled;return e?this.instance?this.instance.option("disabled"):this.options.disabled:this.editor.option("readOnly")}}]),t}(h.default);t.default=C},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},c=n(296),d=i(c),h=n(8),p="deleteContentBackward",f=" ",g=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),l(t,[{key:"_getStrategyName",value:function(){return"default"}},{key:"getHandleEventNames",value:function(){return[].concat(o(u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getHandleEventNames",this).call(this)),["keyPress"])}},{key:"_keyDownHandler",value:function(){this._keyPressHandled=!1}},{key:"_keyPressHandler",value:function(e){this._keyPressHandled||(this._keyPressHandled=!0,this.editor._isControlKeyFired(e)||this.editor._maskKeyHandler(e,function(){return this._handleKey((0,h.getChar)(e)),!0}))}},{key:"_inputHandler",value:function(e){if(this._backspaceInputHandled(e.originalEvent&&e.originalEvent.inputType)&&this._handleBackspaceInput(e),!this._keyPressHandled){this._keyPressHandled=!0;var t=this.editorInput().val(),n=this.editorCaret();if(n.end){n.start=n.end-1;var i=t.substring(0,n.start)+t.substring(n.end),o=t[n.start];this.editorInput().val(i),this._inputHandlerTimer=setTimeout(function(){this._caret({start:n.start,end:n.start}),this._maskKeyHandler(e,function(){return this._handleKey(o),!0})}.bind(this.editor))}}}},{key:"_backspaceHandler",value:function(e){var t=this;this._keyPressHandled=!0;var n=function(e,n){e&&(t.editor._direction(t.DIRECTION.FORWARD),t.editor._adjustCaret());var i=t.editorCaret();clearTimeout(t._backspaceHandlerTimeout),t._backspaceHandlerTimeout=setTimeout(function(){n(i)})};this.editor._maskKeyHandler(e,function(){return t.editor._hasSelection()?void n(!0,function(e){t.editor._displayMask(e),t.editor._maskRulesChain.reset()}):t.editor._tryMoveCaretBackward()?void n(!1,function(e){t.editorCaret(e)}):(t.editor._handleKey(f,t.DIRECTION.BACKWARD),void n(!0,function(e){t.editor._displayMask(e),t.editor._maskRulesChain.reset()}))})}},{key:"_backspaceInputHandled",value:function(e){return e===p&&!this._keyPressHandled}},{key:"_handleBackspaceInput",value:function(e){var t=this.editorCaret(),n=t.start,i=t.end;this.editorCaret({start:n+1,end:i+1}),this._backspaceHandler(e)}},{key:"clean",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clean",this).call(this),clearTimeout(this._inputHandlerTimer)}}]),t}(d.default);t.default=g},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},c=n(296),d=i(c),h="deleteContentBackward",p=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),l(t,[{key:"_getStrategyName",value:function(){return"android"}},{key:"getHandleEventNames",value:function(){return[].concat(o(u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getHandleEventNames",this).call(this)),["beforeInput"])}},{key:"_beforeInputHandler",value:function(){this._prevCaret=this.editorCaret()}},{key:"_keyDownHandler",value:function(){this._keyPressHandled=!1}},{key:"_inputHandler",value:function(e){var t=e.originalEvent;if(t){var n=t.inputType,i=t.data,o=this.editorCaret();if(n===h){var a=this._prevCaret.end-this._prevCaret.start||1;this.editor.setBackwardDirection(),this._updateEditorMask({start:o.start,length:a,text:this._getEmptyString(a)})}else{if(!o.end)return;this.editorCaret(o);var r=this._prevCaret.end-this._prevCaret.start,s=i+(r?this._getEmptyString(r-i.length):"");this.editor.setForwardDirection();var l=this._updateEditorMask({start:this._prevCaret.start,length:r||s.length,text:s});l||this.editorCaret(this._prevCaret)}}}},{key:"_getEmptyString",value:function(e){return Array(e+1).join(" ")}},{key:"_updateEditorMask",value:function(e){var t=e.text.length,n=this.editor._handleChain(e);if(this.editor.isForwardDirection()){var i=this.editorCaret(),o=i.start,a=i.end,r=n-t;o<=n&&n>1&&this.editorCaret({start:o+r,end:a+r}),this.editor.isForwardDirection()&&this.editor._adjustCaret()}return this.editor._displayMask(),!!n}}]),t}(d.default);t.default=p},function(e,t,n){var i=n(297),o=n(243),a=i.inherit(o).inherit({_addWidgetPrefix:function(e){return"dx-list-"+e},_getCombinedFilter:function(){var e,t,n=this._dataSource;return n&&(t={filter:n.filter()},n._addSearchFilter(t),e=t.filter),e},_initDataSource:function(){var e=this.option("searchValue"),t=this.option("searchExpr"),n=this.option("searchMode");this.callBase(),this._dataSource&&(e&&e.length&&this._dataSource.searchValue(e),n.length&&this._dataSource.searchOperation(o.getOperationBySearchMode(n)),t&&this._dataSource.searchExpr(t))}});e.exports=a},function(e,t,n){var i=n(2),o=n(1).isNumeric,a=n(3).each,r=n(80).queryByOptions,s=n(41),l=n(187),u="dx-list-item",c="dx-list-group",d=20,h=2303,p=function(e){return(e.group<<d)+e.item},f=function(e){return{group:e>>d,item:e&h}},g=l.inherit({_groupElements:function(){return this._collectionWidget._itemContainer().find("."+c)},_groupItemElements:function(e){return e.find("."+u)},getIndexByItemData:function(e){var t=this._collectionWidget.option("items"),n=!1;return!!e&&(e.items&&e.items.length&&(e=e.items[0]),a(t,function(t,i){return!!i.items&&(a(i.items,function(i,o){return o!==e||(n={group:t,item:i},!1)}),!n&&void 0)}),n)},getItemDataByIndex:function(e){var t=this._collectionWidget.option("items");return o(e)?this.itemsGetter()[e]:e&&t[e.group]&&t[e.group].items[e.item]||null},itemsGetter:function(){for(var e=[],t=this._collectionWidget.option("items"),n=0;n<t.length;n++)t[n]&&t[n].items?e=e.concat(t[n].items):e.push(t[n]);return e},deleteItemAtIndex:function(e){var t=f(e),n=this._collectionWidget.option("items")[t.group].items;n.splice(t.item,1)},getKeysByItems:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&e[n].items?t=t.concat(e[n].items):t.push(e[n]);var i=[];for(n=0;n<t.length;n++)i.push(this._collectionWidget.keyOf(t[n]));return i},getIndexByKey:function(e,t){var n=t||this._collectionWidget.option("items"),i=-1,o=this;return a(n,function(t,n){if(n.items){var r=o.getKeysByItems(n.items);return a(r,function(n,a){if(o._equalKeys(a,e))return i={group:t,item:n},!1}),i===-1&&void 0}}),i},_getGroups:function(e){var t=this._collectionWidget.getDataSource(),n=t&&t.group();return n?r(s(e),{group:n}).toArray():this._collectionWidget.option("items")},getItemsByKeys:function(e,t){var n=[];return a(e,function(e,i){var o=function(e){var t=this.getIndexByKey(i,e),n=t&&e[t.group];if(n)return{groupKey:n.key,item:n.items[t.item]}}.bind(this),r=o(this._getGroups(t));if(r){var s,l=r.groupKey,u=r.item;a(n,function(e,t){if(t.key===l)return s=t,!1}),s||(s={key:l,
73items:[]},n.push(s)),s.items.push(u)}}.bind(this)),n},moveItemAtIndexToIndex:function(e,t){var n=this._collectionWidget.option("items"),i=f(e),o=f(t),a=n[i.group].items,r=n[o.group].items,s=a[i.item];a.splice(i.item,1),r.splice(o.item,0,s)},_isItemIndex:function(e){return e&&o(e.group)&&o(e.item)},_getNormalizedItemIndex:function(e){var t=i(e),n=t.closest("."+c);return n.length?p({group:this._groupElements().index(n),item:this._groupItemElements(n).index(t)}):-1},_normalizeItemIndex:function(e){return p(e)},_denormalizeItemIndex:function(e){return f(e)},_getItemByNormalizedIndex:function(e){var t=f(e),n=this._groupElements().eq(t.group);return this._groupItemElements(n).eq(t.item)},_itemsFromSameParent:function(e,t){return f(e).group===f(t).group}});e.exports=g},function(e,t,n){var i=n(2),o=n(4).noop,a=n(15),r=n(0).extend,s=n(3).each,l=n(17),u=n(102);n(512),n(513),n(514),n(515),n(516),n(523),n(525);var c=[],d=function(e,t,n){c.push({enabled:e,decoratorType:t,decoratorSubType:n})};d(function(){return this.option("menuItems").length},function(){return"menu"},function(){return this.option("menuMode")}),d(function(){return!this.option("menuItems").length&&this.option("allowItemDeleting")},function(){var e=this.option("itemDeleteMode");return"toggle"===e||"slideButton"===e||"swipe"===e||"static"===e?"delete":"menu"},function(){var e=this.option("itemDeleteMode");return"slideItem"===e&&(e="slide"),"hold"===e&&(e="context"),e}),d(function(){return"none"!==this.option("selectionMode")&&this.option("showSelectionControls")},function(){return"selection"},function(){return"default"}),d(function(){return this.option("allowItemReordering")},function(){return"reorder"},function(){return"default"});var h="dx-list-item-before-bag",p="dx-list-item-after-bag",f="beforeBag",g="afterBag",_="modifyElement",m="afterRender",v="getExcludedSelectors",y=a.inherit({ctor:function(e){this._list=e,this._fetchRequiredDecorators()},dispose:function(){this._decorators&&this._decorators.length&&s(this._decorators,function(e,t){t.dispose()})},_fetchRequiredDecorators:function(){this._decorators=[],s(c,function(e,t){var n=t.enabled.call(this._list);if(n){var i=t.decoratorType.call(this._list),o=t.decoratorSubType.call(this._list),a=this._createDecorator(i,o);this._decorators.push(a)}}.bind(this))},_createDecorator:function(e,t){var n=this._findDecorator(e,t);return new n(this._list)},_findDecorator:function(e,t){var n=u.registry[e][t];if(!n)throw l.Error("E1012",e,t);return n},modifyItemElement:function(e){var t=i(e.itemElement),n={$itemElement:t};this._prependBeforeBags(t,n),this._appendAfterBags(t,n),this._applyDecorators(_,n)},afterItemsRendered:function(){this._applyDecorators(m)},_prependBeforeBags:function(e,t){var n=this._collectDecoratorsMarkup(f,t,h);e.prepend(n)},_appendAfterBags:function(e,t){var n=this._collectDecoratorsMarkup(g,t,p);e.append(n)},_collectDecoratorsMarkup:function(e,t,n){var o=i("<div>");return s(this._decorators,function(){var a=i("<div>").addClass(n);this[e](r({$container:a},t)),a.children().length&&o.append(a)}),o.children()},_applyDecorators:function(e,t){s(this._decorators,function(){this[e](t)})},_handlerExists:function(e){if(!this._decorators)return!1;for(var t=this._decorators,n=t.length,i=0;i<n;i++)if(t[i][e]!==o)return!0;return!1},_eventHandler:function(e,t,n){if(!this._decorators)return!1;for(var i=!1,o=this._decorators,a=o.length,r=0;r<a&&!(i=o[r][e](t,n));r++);return i},handleClick:function(e,t){return this._eventHandler("handleClick",e,t)},handleKeyboardEvents:function(e,t){return this._eventHandler("handleKeyboardEvents",e,t)},handleEnterPressing:function(){return this._eventHandler("handleEnterPressing")},contextMenuHandlerExists:function(){return this._handlerExists("handleContextMenu")},handleContextMenu:function(e,t){return this._eventHandler("handleContextMenu",e,t)},getExcludedItemSelectors:function(){var e=[];return this._applyDecorators(v,e),e.join(",")}});e.exports=y},function(e,t,n){var i=n(2),o=n(34),a=n(102).register,r=n(139),s="dx-list-static-delete-button-container",l="dx-list-static-delete-button";a("delete","static",r.inherit({afterBag:function(e){var t=e.$itemElement,n=e.$container,a=i("<div>").addClass(l);this._list._createComponent(a,o,{icon:"remove",onClick:function(e){e.event.stopPropagation(),this._deleteItem(t)}.bind(this),integrationOptions:{}}),n.addClass(s).append(a)},_deleteItem:function(e){e.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(e)}}))},function(e,t,n){var i=n(2),o=n(38),a=n(34),r=n(14),s=n(102).register,l=n(298),u="dx-list-switchable-delete-button-container",c="dx-list-switchable-delete-button-wrapper",d="dx-list-switchable-delete-button-inner-wrapper",h="dx-list-switchable-delete-button",p=200,f=l.inherit({_init:function(){this.callBase.apply(this,arguments);var e=i("<div>").addClass(u),t=i("<div>").addClass(c),n=i("<div>").addClass(d),o=i("<div>").addClass(h);this._list._createComponent(o,a,{text:r.format("dxListEditDecorator-delete"),type:"danger",onClick:function(e){this._deleteItem(),e.event.stopPropagation()}.bind(this),integrationOptions:{}}),e.append(t),t.append(n),n.append(o),this._$buttonContainer=e},_enablePositioning:function(e){this.callBase.apply(this,arguments),o.stop(this._$buttonContainer,!0),this._$buttonContainer.appendTo(e)},_disablePositioning:function(){this.callBase.apply(this,arguments),this._$buttonContainer.detach()},_animatePrepareDeleteReady:function(){var e=this._isRtlEnabled(),t=this._list.$element().width(),n=this._buttonWidth(),i=e?t:-n,a=e?t-n:0;return o.animate(this._$buttonContainer,{type:"custom",duration:p,from:{right:i},to:{right:a}})},_animateForgetDeleteReady:function(){var e=this._isRtlEnabled(),t=this._list.$element().width(),n=this._buttonWidth(),i=e?t-n:0,a=e?t:-n;return o.animate(this._$buttonContainer,{type:"custom",duration:p,from:{right:i},to:{right:a}})},_buttonWidth:function(){return this._buttonContainerWidth||(this._buttonContainerWidth=this._$buttonContainer.outerWidth()),this._buttonContainerWidth},dispose:function(){this._$buttonContainer&&this._$buttonContainer.remove(),this.callBase.apply(this,arguments)}}),g="dx-list-toggle-delete-switch-container",_="dx-list-toggle-delete-switch";s("delete","toggle",f.inherit({beforeBag:function(e){var t=e.$itemElement,n=e.$container,r=i("<div>").addClass(_);this._list._createComponent(r,a,{icon:"toggle-delete",onClick:function(e){o.stop(this._$buttonContainer,!1),this._toggleDeleteReady(t),e.event.stopPropagation()}.bind(this),integrationOptions:{}}),n.addClass(g),n.append(r)}})),s("delete","slideButton",f.inherit({_shouldHandleSwipe:!0,_swipeEndHandler:function(e,t){return 0!==t.targetOffset&&(o.stop(this._$buttonContainer,!1),this._toggleDeleteReady(e)),!0}})),e.exports=f},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(19),s=n(14),l=n(27),u=n(8),c=n(129),d=n(299),h=n(102).register,p=n(298),f=n(38),g=n(31),_=n(240),m="dxListEditDecorator",v=u.addNamespace(r.name,m),y=u.addNamespace(c.active,m),x="dx-list-slide-menu",b="dx-list-slide-menu-wrapper",w="dx-list-slide-menu-content",C="dx-list-slide-menu-buttons-container",k="dx-list-slide-menu-buttons",S="dx-list-slide-menu-button",I="dx-list-slide-menu-button-menu",T="dx-list-slide-menu-button-delete",D=400,E="cubic-bezier(0.075, 0.82, 0.165, 1)";h("menu","slide",p.inherit({_shouldHandleSwipe:!0,_init:function(){this.callBase.apply(this,arguments),this._$buttonsContainer=i("<div>").addClass(C),o.on(this._$buttonsContainer,y,a),this._$buttons=i("<div>").addClass(k).appendTo(this._$buttonsContainer),this._renderMenu(),this._renderDeleteButton()},_renderMenu:function(){if(this._menuEnabled()){var e=this._menuItems();if(1===e.length){var t=e[0];this._renderMenuButton(t.text,function(e){e.stopPropagation(),this._fireAction(t)}.bind(this))}else{var n=i("<div>").addClass(x);this._menu=this._list._createComponent(n,_,{showTitle:!1,items:e,onItemClick:function(e){this._fireAction(e.itemData)}.bind(this),integrationOptions:{}}),n.appendTo(this._list.$element());var o=this._renderMenuButton(s.format("dxListEditDecorator-more"),function(e){e.stopPropagation(),this._menu.show()}.bind(this));this._menu.option("target",o)}}},_renderMenuButton:function(e,t){var n=i("<div>").addClass(S).addClass(I).text(e);return this._$buttons.append(n),o.on(n,v,t),n},_renderDeleteButton:function(){if(this._deleteEnabled()){var e=i("<div>").addClass(S).addClass(T).text(g.isMaterial()?"":s.format("dxListEditDecorator-delete"));o.on(e,v,function(e){e.stopPropagation(),this._deleteItem()}.bind(this)),this._$buttons.append(e)}},_fireAction:function(e){this._fireMenuAction(i(this._cachedNode),e.action),this._cancelDeleteReadyItem()},modifyElement:function(e){this.callBase.apply(this,arguments);var t=e.$itemElement;t.addClass(b);var n=i("<div>").addClass(w);t.wrapInner(n)},_getDeleteButtonContainer:function(){return this._$buttonsContainer},handleClick:function(e,t){return!!i(t.target).closest("."+w).length&&this.callBase.apply(this,arguments)},_swipeStartHandler:function(e){this._enablePositioning(e),this._cacheItemData(e),this._setPositions(this._getPositions(0))},_swipeUpdateHandler:function(e,t){var n=this._isRtlEnabled(),i=n?-1:1,o=this._isReadyToDelete(e),a=this._getCurrentPositions().content===this._getStartPositions().content;if(a&&!o&&t.offset*i>0)return void(t.cancel=!0);var r=this._cachedItemWidth*t.offset,s=o?-this._cachedButtonWidth*i:0,l=(r+s)*i,u=l<0?Math.abs((r+s)/this._cachedButtonWidth):0;return this._setPositions(this._getPositions(u)),!0},_getStartPositions:function(){var e=this._isRtlEnabled(),t=e?-1:1;return{content:0,buttonsContainer:e?-this._cachedButtonWidth:this._cachedItemWidth,buttons:-this._cachedButtonWidth*t}},_getPositions:function(e){var t=this._isRtlEnabled(),n=t?-1:1,i=this._getStartPositions();return{content:i.content-e*this._cachedButtonWidth*n,buttonsContainer:i.buttonsContainer-Math.min(e,1)*this._cachedButtonWidth*n,buttons:i.buttons+Math.min(e,1)*this._cachedButtonWidth*n}},_getCurrentPositions:function(){return{content:l.locate(this._$cachedContent).left,buttonsContainer:l.locate(this._$buttonsContainer).left,buttons:l.locate(this._$buttons).left}},_setPositions:function(e){l.move(this._$cachedContent,{left:e.content}),l.move(this._$buttonsContainer,{left:e.buttonsContainer}),l.move(this._$buttons,{left:e.buttons})},_cacheItemData:function(e){e[0]!==this._cachedNode&&(this._$cachedContent=e.find("."+w),this._cachedItemWidth=e.outerWidth(),this._cachedButtonWidth=this._cachedButtonWidth||this._$buttons.outerWidth(),this._$buttonsContainer.width(this._cachedButtonWidth),this._$cachedContent.length&&(this._cachedNode=e[0]))},_minButtonContainerLeftOffset:function(){return this._cachedItemWidth-this._cachedButtonWidth},_swipeEndHandler:function(e,t){this._cacheItemData(e);var n=this._isRtlEnabled()?1:-1,i=this._cachedItemWidth*t.offset,o=!this._isReadyToDelete(e)&&i*n>.2*this._cachedButtonWidth,a=t.targetOffset===n&&o;return this._toggleDeleteReady(e,a),!0},_enablePositioning:function(e){f.stop(this._$cachedContent,!0),this.callBase.apply(this,arguments),this._$buttonsContainer.appendTo(e)},_disablePositioning:function(){this.callBase.apply(this,arguments),this._$buttonsContainer.detach()},_animatePrepareDeleteReady:function(){return this._animateToPositions(this._getPositions(1))},_animateForgetDeleteReady:function(e){return this._cacheItemData(e),this._animateToPositions(this._getPositions(0))},_animateToPositions:function(e){var t=this,n=this._getCurrentPositions(),i=Math.min(Math.abs(n.content-e.content)/this._cachedButtonWidth,1);return f.animate(this._$cachedContent,{from:n,to:e,easing:E,duration:D*i,strategy:"frame",draw:function(e){t._setPositions(e)}})},dispose:function(){this._menu&&this._menu.$element().remove(),this._$buttonsContainer&&this._$buttonsContainer.remove(),this.callBase.apply(this,arguments)}}).include(d))},function(e,t,n){var i=n(27),o=n(38),a=n(102).register,r=n(139),s=n(6).Deferred;a("delete","swipe",r.inherit({_shouldHandleSwipe:!0,_renderItemPosition:function(e,t,n){var a=new s,r=t*this._itemElementWidth;return n?o.animate(e,{to:{left:r},type:"slide",complete:function(){a.resolve(e,t)}}):(i.move(e,{left:r}),a.resolve()),a.promise()},_swipeStartHandler:function(e){return this._itemElementWidth=e.width(),!0},_swipeUpdateHandler:function(e,t){return this._renderItemPosition(e,t.offset),!0},_swipeEndHandler:function(e,t){var n=t.targetOffset;return this._renderItemPosition(e,n,!0).done(function(e,t){Math.abs(t)&&this._list.deleteItem(e).fail(function(){this._renderItemPosition(e,0,!0)}.bind(this))}.bind(this)),!0}}))},function(e,t,n){var i=n(2),o=n(299),a=n(14),r=n(102).register,s=n(139),l=n(60),u=n(242),c="dx-list-context-menu",d="dx-list-context-menucontent";r("menu","context",s.inherit({_init:function(){var e=i("<div>").addClass(c);this._list.$element().append(e),this._menu=this._renderOverlay(e)},_renderOverlay:function(e){return this._list._createComponent(e,l,{shading:!1,deferRendering:!0,closeOnTargetScroll:!0,closeOnOutsideClick:function(e){return!i(e.target).closest("."+c).length},animation:{show:{type:"slide",duration:300,from:{height:0,opacity:1},to:{height:function(){return this._$menuList.outerHeight()}.bind(this),opacity:1}},hide:{type:"slide",duration:0,from:{opacity:1},to:{opacity:0}}},height:function(){return this._$menuList?this._$menuList.outerHeight():0}.bind(this),width:function(){return this._list.$element().outerWidth()}.bind(this),onContentReady:this._renderMenuContent.bind(this)})},_renderMenuContent:function(e){var t=e.component.$content(),n=this._menuItems().slice();this._deleteEnabled()&&n.push({text:a.format("dxListEditDecorator-delete"),action:this._deleteItem.bind(this)}),this._$menuList=i("<div>"),this._list._createComponent(this._$menuList,u,{items:n,onItemClick:this._menuItemClickHandler.bind(this),height:"auto",integrationOptions:{}}),t.addClass(d),t.append(this._$menuList)},_menuItemClickHandler:function(e){this._menu.hide(),this._fireMenuAction(this._$itemWithMenu,e.itemData.action)},_deleteItem:function(){this._list.deleteItem(this._$itemWithMenu)},handleContextMenu:function(e){return this._$itemWithMenu=e,this._menu.option({position:{my:"top",at:"bottom",of:e,collision:"flip"}}),this._menu.show(),!0},dispose:function(){this._menu&&this._menu.$element().remove(),this.callBase.apply(this,arguments)}}).include(o))},function(e,t,n){var i=n(2),o=n(153),a="dx-list-item-badge-container",r="dx-list-item-badge",s="dx-badge",l="dx-list-item-chevron-container",u="dx-list-item-chevron",c=o.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this)),this._startWatcher("showChevron",this._renderShowChevron.bind(this))},_renderBadge:function(e){if(this._$element.children("."+a).remove(),e){var t=i("<div>").addClass(a).append(i("<div>").addClass(r).addClass(s).text(e)),n=this._$element.children("."+l).first();n.length>0?t.insertBefore(n):t.appendTo(this._$element)}},_renderShowChevron:function(e){if(this._$element.children("."+l).remove(),e){var t=i("<div>").addClass(l),n=i("<div>").addClass(u);t.append(n).appendTo(this._$element)}}});e.exports=c},function(e,t,n){var i=n(2),o=n(16),a=n(7),r=n(14),s=n(9),l=n(12).getPublicElement,u=n(0).extend,c=n(4).noop,d=n(519),h=n(520),p=n(521),f=n(522),g=n(94),_=n(93),m=n(31),v=n(190),y="dx-scrollview",x=y+"-content",b=y+"-top-pocket",w=y+"-bottom-pocket",C=y+"-pull-down",k=y+"-scrollbottom",S=k+"-indicator",I=k+"-text",T=y+"-loadpanel",D={pullDown:d,swipeDown:h,slideDown:p,simulated:f},E=!a.hasWindow(),A={finishLoading:c,release:c,refresh:c,_optionChanged:function(e){if("onUpdated"!==e.name)return this.callBase.apply(this,arguments)}},O=g.inherit(E?A:{_getDefaultOptions:function(){return u(this.callBase(),{pullingDownText:r.format("dxScrollView-pullingDownText"),pulledDownText:r.format("dxScrollView-pulledDownText"),refreshingText:r.format("dxScrollView-refreshingText"),reachBottomText:r.format("dxScrollView-reachBottomText"),onPullDown:null,onReachBottom:null,refreshStrategy:"pullDown"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=o.real();return"android"===e.platform},options:{refreshStrategy:"swipeDown"}},{device:function(){return"win"===o.real().platform},options:{refreshStrategy:"slideDown"}},{device:function(){return m.isMaterial()},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",reachBottomText:""}}])},_init:function(){this.callBase(),this._loadingIndicatorEnabled=!0},_initScrollableMarkup:function(){this.callBase(),this.$element().addClass(y),this._initContent(),this._initTopPocket(),this._initBottomPocket(),this._initLoadPanel()},_initContent:function(){var e=i("<div>").addClass(x);this._$content.wrapInner(e)},_initTopPocket:function(){var e=this._$topPocket=i("<div>").addClass(b),t=this._$pullDown=i("<div>").addClass(C);e.append(t),this._$content.prepend(e)},_initBottomPocket:function(){var e=this._$bottomPocket=i("<div>").addClass(w),t=this._$reachBottom=i("<div>").addClass(k),n=i("<div>").addClass(S),o=new _(i("<div>")).$element(),a=this._$reachBottomText=i("<div>").addClass(I);this._updateReachBottomText(),t.append(n.append(o)).append(a),e.append(t),this._$content.append(e)},_initLoadPanel:function(){var e=i("<div>").addClass(T).appendTo(this.$element()),t={shading:!1,delay:400,message:this.option("refreshingText"),position:{of:this.$element()}};this._loadPanel=this._createComponent(e,v,t)},_updateReachBottomText:function(){this._$reachBottomText.text(this.option("reachBottomText"))},_createStrategy:function(){var e=this.option("useNative")?this.option("refreshStrategy"):"simulated",t=D[e];if(!t)throw Error("E1030",this.option("refreshStrategy"));this._strategy=new t(this),this._strategy.pullDownCallbacks.add(this._pullDownHandler.bind(this)),this._strategy.releaseCallbacks.add(this._releaseHandler.bind(this)),this._strategy.reachBottomCallbacks.add(this._reachBottomHandler.bind(this))},_createActions:function(){this.callBase(),this._pullDownAction=this._createActionByOption("onPullDown"),this._reachBottomAction=this._createActionByOption("onReachBottom"),this._tryRefreshPocketState()},_tryRefreshPocketState:function(){this._pullDownEnable(this.hasActionSubscription("onPullDown")),this._reachBottomEnable(this.hasActionSubscription("onReachBottom"))},on:function(e){var t=this.callBase.apply(this,arguments);return"pullDown"!==e&&"reachBottom"!==e||this._tryRefreshPocketState(),t},_pullDownEnable:function(e){return 0===arguments.length?this._pullDownEnabled:void(this._$pullDown&&this._strategy&&(this._$pullDown.toggle(e),this._strategy.pullDownEnable(e),this._pullDownEnabled=e))},_reachBottomEnable:function(e){return 0===arguments.length?this._reachBottomEnabled:void(this._$reachBottom&&this._strategy&&(this._$reachBottom.toggle(e),this._strategy.reachBottomEnable(e),this._reachBottomEnabled=e))},_pullDownHandler:function(){this._loadingIndicator(!1),this._pullDownLoading()},_loadingIndicator:function(e){return arguments.length<1?this._loadingIndicatorEnabled:void(this._loadingIndicatorEnabled=e)},_pullDownLoading:function(){this.startLoading(),this._pullDownAction()},_reachBottomHandler:function(){this._loadingIndicator(!1),this._reachBottomLoading()},_reachBottomLoading:function(){this.startLoading(),this._reachBottomAction()},_releaseHandler:function(){this.finishLoading(),this._loadingIndicator(!0)},_optionChanged:function(e){switch(e.name){case"onPullDown":case"onReachBottom":this._createActions();break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"refreshStrategy":this._invalidate();break;case"reachBottomText":this._updateReachBottomText();break;default:this.callBase(e)}},isEmpty:function(){return!i(this.content()).children().length},content:function(){return l(this._$content.children().eq(1))},release:function(e){return void 0!==e&&this.toggleLoading(!e),this._strategy.release()},toggleLoading:function(e){this._reachBottomEnable(e)},isFull:function(){return i(this.content()).height()>this._$container.height()},refresh:function(){this.hasActionSubscription("onPullDown")&&(this._strategy.pendingRelease(),this._pullDownLoading())},startLoading:function(){this._loadingIndicator()&&this.$element().is(":visible")&&this._loadPanel.show(),this._lock()},finishLoading:function(){this._loadPanel.hide(),this._unlock()},_dispose:function(){this._strategy.dispose(),this.callBase(),this._loadPanel&&this._loadPanel.$element().remove()}});s("dxScrollView",O),e.exports=O},function(e,t,n){var i=n(2),o=n(25),a=n(27),r=n(189),s=n(93),l=n(3).each,u=n(26),c=n(6).Deferred,d="dx-scrollview-pull-down-loading",h="dx-scrollview-pull-down-ready",p="dx-scrollview-pull-down-image",f="dx-scrollview-pull-down-indicator",g="dx-scrollview-pull-down-text",_="dx-scrollview-pull-down-text-visible",m=0,v=1,y=2,x=3,b=400,w=r.inherit({_init:function(e){this.callBase(e),this._$topPocket=e._$topPocket,this._$pullDown=e._$pullDown,this._$bottomPocket=e._$bottomPocket,this._$refreshingText=e._$refreshingText,this._$scrollViewContent=i(e.content()),this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=o(),this.releaseCallbacks=o(),this.reachBottomCallbacks=o()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var e=i("<div>").addClass(p),t=i("<div>").addClass(f),n=new s(i("<div>")).$element(),o=this._$pullDownText=i("<div>").addClass(g);this._$pullingDownText=i("<div>").text(this.option("pullingDownText")).appendTo(o),this._$pulledDownText=i("<div>").text(this.option("pulledDownText")).appendTo(o),this._$refreshingText=i("<div>").text(this.option("refreshingText")).appendTo(o),this._$pullDown.empty().append(e).append(t.append(n)).append(o)},_releaseState:function(){this._state=m,this._refreshPullDownText()},_pushBackFromBoundary:function(){this._isLocked()||this._component.isEmpty()||this.callBase()},_refreshPullDownText:function(){var e=this,t=[{element:this._$pullingDownText,visibleState:m},{element:this._$pulledDownText,visibleState:v},{element:this._$refreshingText,visibleState:y}];l(t,function(t,n){var i=e._state===n.visibleState?"addClass":"removeClass";n.element[i](_)})},update:function(){this.callBase(),this._setTopPocketOffset()},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.height(),this._bottomPocketSize=this._$bottomPocket.height(),u.msie?this._scrollOffset=Math.round(100*(this._$container.height()-this._$content.height()))/100:this._scrollOffset=this._$container.height()-this._$content.height()},_allowedDirections:function(){var e=this.callBase();return e.vertical=e.vertical||this._pullDownEnabled,e},_setTopPocketOffset:function(){this._$topPocket.css({top:-this._topPocketSize})},handleEnd:function(){this.callBase(),this._complete()},handleStop:function(){this.callBase(),this._complete()},_complete:function(){this._state===v&&(this._setPullDownOffset(this._topPocketSize),clearTimeout(this._pullDownRefreshTimeout),this._pullDownRefreshTimeout=setTimeout(function(){this._pullDownRefreshing()}.bind(this),400))},_setPullDownOffset:function(e){a.move(this._$topPocket,{top:e}),a.move(this._$scrollViewContent,{top:e})},handleScroll:function(e){if(this.callBase(e),this._state!==y){var t=this.location().top,n=(this._location||0)-t;this._location=t,this._isPullDown()?this._pullDownReady():n>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isPullDown:function(){return this._pullDownEnabled&&this._location>=this._topPocketSize},_isReachBottom:function(){return u.msie?this._reachBottomEnabled&&this._location-(this._scrollOffset+this._bottomPocketSize)<=.1:this._reachBottomEnabled&&this._location<=this._scrollOffset+this._bottomPocketSize},_reachBottom:function(){this._state!==x&&(this._state=x,this.reachBottomCallbacks.fire())},_pullDownReady:function(){this._state!==v&&(this._state=v,this._$pullDown.addClass(h),this._refreshPullDownText())},_stateReleased:function(){this._state!==m&&(this._$pullDown.removeClass(d).removeClass(h),this._releaseState())},_pullDownRefreshing:function(){this._state!==y&&(this._state=y,this._$pullDown.addClass(d).removeClass(h),this._refreshPullDownText(),this.pullDownCallbacks.fire())},pullDownEnable:function(e){e&&(this._updateDimensions(),this._setTopPocketOffset()),this._pullDownEnabled=e},reachBottomEnable:function(e){this._reachBottomEnabled=e},pendingRelease:function(){this._state=v},release:function(){var e=new c;return this._updateDimensions(),clearTimeout(this._releaseTimeout),this._state===x&&(this._state=m),this._releaseTimeout=setTimeout(function(){this._setPullDownOffset(0),this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),e.resolve()}.bind(this),b),e.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});e.exports=w},function(e,t,n){var i=n(2),o=n(25),a=n(27),r=n(8),s=n(189),l=n(93),u=n(6).Deferred,c="dx-scrollview-pull-down-loading",d="dx-scrollview-pull-down-indicator",h="dx-scrollview-pull-down-refreshing",p="dx-icon-pulldown",f=0,g=1,_=2,m=4,v=5,y=s.inherit({_init:function(e){this.callBase(e),this._$topPocket=e._$topPocket,this._$bottomPocket=e._$bottomPocket,this._$pullDown=e._$pullDown,this._$scrollViewContent=e.content(),this._initCallbacks(),this._location=0},_initCallbacks:function(){this.pullDownCallbacks=o(),this.releaseCallbacks=o(),this.reachBottomCallbacks=o()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var e=i("<div>").addClass(d),t=new l(i("<div>")).$element();this._$icon=i("<div>").addClass(p),this._$pullDown.empty().append(this._$icon).append(e.append(t))},_releaseState:function(){this._state=f,this._releasePullDown(),this._updateDimensions()},_releasePullDown:function(){this._$pullDown.css({opacity:0})},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.height(),this._bottomPocketSize=this._$bottomPocket.height(),this._scrollOffset=this._$container.height()-this._$content.height()},_allowedDirections:function(){var e=this.callBase();return e.vertical=e.vertical||this._pullDownEnabled,e},handleInit:function(e){this.callBase(e),this._state===f&&0===this._location&&(this._startClientY=r.eventData(e.originalEvent).y,this._state=m)},handleMove:function(e){this.callBase(e),this._deltaY=r.eventData(e.originalEvent).y-this._startClientY,this._state===m&&(this._pullDownEnabled&&this._deltaY>0?this._state=v:this._complete()),this._state===v&&(e.preventDefault(),this._movePullDown())},_movePullDown:function(){var e=this._getPullDownHeight(),t=Math.min(3*e,this._deltaY+this._getPullDownStartPosition()),n=180*t/e/3;this._$pullDown.css({opacity:1}).toggleClass(h,t<e),a.move(this._$pullDown,{top:t}),this._$icon.css({transform:"rotate("+n+"deg)"})},_isPullDown:function(){return this._pullDownEnabled&&this._state===v&&this._deltaY>=this._getPullDownHeight()-this._getPullDownStartPosition()},_getPullDownHeight:function(){return Math.round(.05*this._$element.outerHeight())},_getPullDownStartPosition:function(){return-Math.round(1.5*this._$pullDown.outerHeight())},handleEnd:function(){this._isPullDown()&&this._pullDownRefreshing(),this._complete()},handleStop:function(){this._complete()},_complete:function(){this._state!==m&&this._state!==v||this._releaseState()},handleScroll:function(e){if(this.callBase(e),this._state!==_){var t=this.location().top,n=this._location-t;this._location=t,n>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isReachBottom:function(){return this._reachBottomEnabled&&this._location<=this._scrollOffset+this._bottomPocketSize},_reachBottom:function(){this.reachBottomCallbacks.fire()},_stateReleased:function(){this._state!==f&&(this._$pullDown.removeClass(c),this._releaseState())},_pullDownRefreshing:function(){this._state=_,this._pullDownRefreshHandler()},_pullDownRefreshHandler:function(){this._refreshPullDown(),this.pullDownCallbacks.fire()},_refreshPullDown:function(){this._$pullDown.addClass(c),a.move(this._$pullDown,{top:this._getPullDownHeight()})},pullDownEnable:function(e){this._$topPocket.toggle(e),this._pullDownEnabled=e},reachBottomEnable:function(e){this._reachBottomEnabled=e},pendingRelease:function(){this._state=g},release:function(){var e=new u;return this._updateDimensions(),clearTimeout(this._releaseTimeout),this._releaseTimeout=setTimeout(function(){this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),e.resolve()}.bind(this),800),e.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});e.exports=y},function(e,t,n){var i=n(25),o=n(189),a=n(6).Deferred,r=0,s=1,l=2,u=80,c=o.inherit({_init:function(e){this.callBase(e),this._$topPocket=e._$topPocket,this._$bottomPocket=e._$bottomPocket,this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=i(),this.releaseCallbacks=i(),this.reachBottomCallbacks=i()},render:function(){this.callBase(),this._renderPullDown(),this._renderBottom(),this._releaseState(),this._updateDimensions()},_renderPullDown:function(){this._$topPocket.empty()},_renderBottom:function(){this._$bottomPocket.empty().append("<progress>")},_releaseState:function(){this._state!==r&&(this._state=r)},_updateDimensions:function(){this._scrollOffset=this._$container.prop("scrollHeight")-this._$container.prop("clientHeight"),this._containerSize={height:this._$container.prop("clientHeight"),width:this._$container.prop("clientWidth")},this._contentSize=this._componentContentSize={height:this._$container.prop("scrollHeight"),width:this._$container.prop("scrollWidth")}},handleScroll:function(e){this.callBase(e),this._isReachBottom(this._lastLocation.top)&&this._reachBottom()},_isReachBottom:function(e){return this._scrollContent=this._$container.prop("scrollHeight")-this._$container.prop("clientHeight"),this._reachBottomEnabled&&e<-this._scrollContent+u},_reachBottom:function(){this._state!==l&&(this._state=l,this.reachBottomCallbacks.fire())},pullDownEnable:function(e){this._pullDownEnabled=e},reachBottomEnable:function(e){this._reachBottomEnabled=e,this._$bottomPocket.toggle(e)},pendingRelease:function(){this._state=s},release:function(){var e=new a;return this._state=r,this.releaseCallbacks.fire(),this.update(),e.resolve().promise()}});e.exports=c},function(e,t,n){var i=n(2),o=n(25),a=n(3).each,r=n(4),s=n(0).extend,l=Math,u=n(301),c=n(93),d="dx-scrollview-pull-down-loading",h="dx-scrollview-pull-down-ready",p="dx-scrollview-pull-down-image",f="dx-scrollview-pull-down-indicator",g="dx-scrollview-pull-down-text",_="dx-scrollview-pull-down-text-visible",m=0,v=1,y=2,x=3,b=u.Scroller.inherit({ctor:function(){this._topPocketSize=0,this.callBase.apply(this,arguments),this._initCallbacks(),this._releaseState()},_releaseState:function(){this._state=m,this._refreshPullDownText()},_refreshPullDownText:function(){var e=this,t=[{element:this._$pullingDownText,visibleState:m},{element:this._$pulledDownText,visibleState:v},{element:this._$refreshingText,visibleState:y}];a(t,function(t,n){var i=e._state===n.visibleState?"addClass":"removeClass";n.element[i](_)})},_initCallbacks:function(){this.pullDownCallbacks=o(),this.releaseCallbacks=o(),this.reachBottomCallbacks=o()},_updateBounds:function(){var e="horizontal"!==this._direction;this._topPocketSize=e?this._$topPocket[this._dimension]():0,this._bottomPocketSize=e?this._$bottomPocket[this._dimension]():0,this.callBase(),this._bottomBound=this._minOffset+this._bottomPocketSize},_updateScrollbar:function(){this._scrollbar.option({containerSize:this._containerSize(),contentSize:this._contentSize()-this._topPocketSize-this._bottomPocketSize,scaleRatio:this._getScaleRatio()})},_moveContent:function(){this.callBase(),this._isPullDown()?this._pullDownReady():this._isReachBottom()?this._reachBottomReady():this._state!==m&&this._stateReleased()},_moveScrollbar:function(){this._scrollbar.moveTo(this._topPocketSize+this._location)},_isPullDown:function(){
74return this._pullDownEnabled&&this._location>=0},_isReachBottom:function(){return this._reachBottomEnabled&&this._location<=this._bottomBound},_scrollComplete:function(){this._inBounds()&&this._state===v?this._pullDownRefreshing():this._inBounds()&&this._state===x?this._reachBottomLoading():this.callBase()},_reachBottomReady:function(){this._state!==x&&(this._state=x,this._minOffset=this._getMinOffset())},_getMaxOffset:function(){return-this._topPocketSize},_getMinOffset:function(){return l.min(this.callBase(),-this._topPocketSize)},_reachBottomLoading:function(){this.reachBottomCallbacks.fire()},_pullDownReady:function(){this._state!==v&&(this._state=v,this._maxOffset=0,this._$pullDown.addClass(h),this._refreshPullDownText())},_stateReleased:function(){this._state!==m&&(this._releaseState(),this._updateBounds(),this._$pullDown.removeClass(d).removeClass(h),this.releaseCallbacks.fire())},_pullDownRefreshing:function(){this._state!==y&&(this._state=y,this._$pullDown.addClass(d).removeClass(h),this._refreshPullDownText(),this.pullDownCallbacks.fire())},_releaseHandler:function(){return this._state===m&&this._moveToBounds(),this._update(),this._releaseTask&&this._releaseTask.abort(),this._releaseTask=r.executeAsync(this._release.bind(this)),this._releaseTask.promise},_release:function(){this._stateReleased(),this._scrollComplete()},_reachBottomEnablingHandler:function(e){this._reachBottomEnabled!==e&&(this._reachBottomEnabled=e,this._updateBounds())},_pullDownEnablingHandler:function(e){this._pullDownEnabled!==e&&(this._pullDownEnabled=e,this._considerTopPocketChange(),this._updateHandler())},_considerTopPocketChange:function(){this._location-=this._$topPocket.height()||-this._topPocketSize,this._maxOffset=0,this._move()},_pendingReleaseHandler:function(){this._state=v},dispose:function(){this._releaseTask&&this._releaseTask.abort(),this.callBase()}}),w=u.SimulatedStrategy.inherit({_init:function(e){this.callBase(e),this._$pullDown=e._$pullDown,this._$topPocket=e._$topPocket,this._$bottomPocket=e._$bottomPocket,this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=o(),this.releaseCallbacks=o(),this.reachBottomCallbacks=o()},render:function(){this._renderPullDown(),this.callBase()},_renderPullDown:function(){var e=i("<div>").addClass(p),t=i("<div>").addClass(f),n=new c(i("<div>")).$element(),o=this._$pullDownText=i("<div>").addClass(g);this._$pullingDownText=i("<div>").text(this.option("pullingDownText")).appendTo(o),this._$pulledDownText=i("<div>").text(this.option("pulledDownText")).appendTo(o),this._$refreshingText=i("<div>").text(this.option("refreshingText")).appendTo(o),this._$pullDown.empty().append(e).append(t.append(n)).append(o)},pullDownEnable:function(e){this._eventHandler("pullDownEnabling",e)},reachBottomEnable:function(e){this._eventHandler("reachBottomEnabling",e)},_createScroller:function(e){var t=this,n=t._scrollers[e]=new b(t._scrollerOptions(e));n.pullDownCallbacks.add(function(){t.pullDownCallbacks.fire()}),n.releaseCallbacks.add(function(){t.releaseCallbacks.fire()}),n.reachBottomCallbacks.add(function(){t.reachBottomCallbacks.fire()})},_scrollerOptions:function(e){return s(this.callBase(e),{$topPocket:this._$topPocket,$bottomPocket:this._$bottomPocket,$pullDown:this._$pullDown,$pullDownText:this._$pullDownText,$pullingDownText:this._$pullingDownText,$pulledDownText:this._$pulledDownText,$refreshingText:this._$refreshingText})},pendingRelease:function(){this._eventHandler("pendingRelease")},release:function(){return this._eventHandler("release").done(this._updateAction)},location:function e(){var e=this.callBase();return e.top+=this._$topPocket.height(),e},dispose:function(){a(this._scrollers,function(){this.dispose()}),this.callBase()}});e.exports=w},function(e,t,n){var i=n(2),o=n(5),a=n(19),r=n(0).extend,s=n(17),l=n(103),u=n(524),c=n(8),d=n(102).register,h=n(139),p="dx-list-select-decorator-enabled",f="dx-list-select-all",g="dx-list-select-all-checkbox",_="dx-list-select-all-label",m="dx-list-select-checkbox-container",v="dx-list-select-checkbox",y="dx-list-select-radiobutton-container",x="dx-list-select-radiobutton",b="dx-state-focused",w=c.addNamespace(a.name,"dxListEditDecorator");d("selection","default",h.inherit({_init:function(){this.callBase.apply(this,arguments);var e=this._list.option("selectionMode");this._singleStrategy="single"===e,this._containerClass=this._singleStrategy?y:m,this._controlClass=this._singleStrategy?x:v,this._controlWidget=this._singleStrategy?u:l,this._list.$element().addClass(p)},beforeBag:function(e){var t=e.$itemElement,n=e.$container,o=i("<div>").addClass(this._controlClass);new this._controlWidget(o,r(this._commonOptions(),{value:this._isSelected(t),focusStateEnabled:!1,hoverStateEnabled:!1,onValueChanged:function(e){this._processCheckedState(t,e.value),e.event&&e.event.stopPropagation()}.bind(this)})),n.addClass(this._containerClass),n.append(o)},modifyElement:function(e){this.callBase.apply(this,arguments);var t=e.$itemElement,n=this._controlWidget.getInstance(t.find("."+this._controlClass));o.on(t,"stateChanged",function(e,t){n.option("value",t)}.bind(this))},_updateSelectAllState:function(){this._$selectAll&&this._selectAllCheckBox.option("value",this._list.isSelectAll())},afterRender:function(){"all"===this._list.option("selectionMode")&&(this._$selectAll?this._updateSelectAllState():this._renderSelectAll())},handleKeyboardEvents:function(e,t){return this._$selectAll&&this._needMoveFocus(e,t)?(this._list.option("focusedElement",void 0),this._selectAllCheckBox.$element().addClass(b),!0):(this._$selectAll&&this._selectAllCheckBox.$element().removeClass(b),this._list.focusListItem(e),!1)},_needMoveFocus:function(e,t){return!t&&(0===e||e===this._list._getLastItemIndex())},handleEnterPressing:function(){if(this._$selectAll&&this._selectAllCheckBox.$element().hasClass(b))return this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value")),!0},_renderSelectAll:function(){var e=this._$selectAll=i("<div>").addClass(f),t=this._list,n=t._supportedKeys().downArrow.bind(t);this._selectAllCheckBox=t._createComponent(i("<div>").addClass(g).appendTo(e),l),this._selectAllCheckBox.registerKeyHandler("downArrow",n),i("<div>").addClass(_).text(this._list.option("selectAllText")).appendTo(e),this._list.itemsContainer().prepend(e),this._updateSelectAllState(),this._attachSelectAllHandler()},_attachSelectAllHandler:function(){this._selectAllCheckBox.option("onValueChanged",this._selectAllHandler.bind(this)),o.off(this._$selectAll,w),o.on(this._$selectAll,w,this._selectAllClickHandler.bind(this))},_selectAllHandler:function(e){e.event&&e.event.stopPropagation();var t=this._selectAllCheckBox.option("value"),n=this._list._createActionByOption("onSelectAllValueChanged")({value:t});n!==!1&&(t===!0?this._selectAllItems():t===!1&&this._unselectAllItems())},_checkSelectAllCapability:function(){var e=this._list,t=e.getDataSource();return!!("allPages"!==e.option("selectAllMode")||!e.option("grouped")||t&&t.group())||(s.log("W1010"),!1)},_selectAllItems:function(){this._checkSelectAllCapability()&&this._list._selection.selectAll("page"===this._list.option("selectAllMode"))},_unselectAllItems:function(){this._checkSelectAllCapability()&&this._list._selection.deselectAll("page"===this._list.option("selectAllMode"))},_selectAllClickHandler:function(){this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value"))},_isSelected:function(e){return this._list.isItemSelected(e)},_processCheckedState:function(e,t){t?this._list.selectItem(e):this._list.unselectItem(e)},dispose:function(){this._disposeSelectAll(),this._list.$element().removeClass(p),this.callBase.apply(this,arguments)},_disposeSelectAll:function(){this._$selectAll&&(this._$selectAll.remove(),this._$selectAll=null)}}))},function(e,t,n){var i=n(2),o=n(5),a=n(16),r=n(0).extend,s=n(72),l=n(9),u=n(49),c=n(8),d=n(19),h="dx-radiobutton",p="dx-radiobutton-icon",f="dx-radiobutton-icon-dot",g="dx-radiobutton-checked",_="dx-radiobutton-icon-checked",m=u.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,useInkRipple:!1})},_canValueBeChangedByClick:function(){return!0},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.$element().addClass(h)},_initMarkup:function(){this.callBase(),this._renderIcon(),this.option("useInkRipple")&&this._renderInkRipple(),this._renderCheckedState(this.option("value")),this._renderClick(),this.setAria("role","radio")},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:3.3,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("<div>").addClass(p),i("<div>").addClass(f).appendTo(this._$icon),this.$element().append(this._$icon)},_renderCheckedState:function(e){this.$element().toggleClass(g,e).find("."+p).toggleClass(_,e),this.setAria("checked",e)},_renderClick:function(){var e=c.addNamespace(d.name,this.NAME);this._clickAction=this._createAction(function(e){this._clickHandler(e.event)}.bind(this)),o.off(this.$element(),e),o.on(this.$element(),e,function(e){this._clickAction({event:e})}.bind(this))},_clickHandler:function(e){this._saveValueChangeEvent(e),this.option("value",!0)},_optionChanged:function(e){switch(e.name){case"useInkRipple":this._invalidate();break;case"value":this._renderCheckedState(e.value),this.callBase(e);break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});l("dxRadioButton",m),e.exports=m},function(e,t,n){var i=n(2),o=n(3).each,a=n(5),r=n(27),s=n(38),l=n(55),u=n(29),c=n(302),d=n(8),h=n(102).register,p=n(139),f=c.inherit({ctor:function(e){this.callBase(),this._strategy=e},_isFinished:function(){return this._strategy.scrollFinished()},_step:function(){this._strategy.scrollByStep()}}),g="dxListEditDecorator",_=d.addNamespace(l.start,g),m=d.addNamespace(l.move,g),v=d.addNamespace(l.end,g),y="dx-list-reorder-handle-container",x="dx-list-reorder-handle",b="dx-list-item-reordering",w="dx-list-item-ghost-reordering";h("reorder","default",p.inherit({_init:function(){this._groupedEnabled=this._list.option("grouped"),this._initAnimator()},_initAnimator:function(){this._scrollAnimator=new f(this)},_startAnimator:function(){this._scrollAnimator.inProgress()||this._scrollAnimator.start()},_stopAnimator:function(){this._scrollAnimator.stop()},afterBag:function(e){var t=e.$itemElement,n=e.$container,o=i("<div>").addClass(x),r=!1;a.on(o,"dxpointerdown",function(e){r=!d.isMouseEvent(e)}),a.on(o,"dxhold",{timeout:30},function(e){e.cancel=!0,r=!1}),a.on(o,_,{direction:"vertical",immediate:!0},function(e){return r?void(e.cancel=!0):void this._dragStartHandler(t,e)}.bind(this)),a.on(o,m,this._dragHandler.bind(this,t)),a.on(o,v,this._dragEndHandler.bind(this,t)),n.addClass(y),n.append(o)},_dragStartHandler:function(e,t){if(e.is(".dx-state-disabled, .dx-state-disabled *"))return void(t.cancel=!0);this._stopPreviousAnimation(),t.targetElements=[],this._cacheItemsPositions(),this._startPointerOffset=t.pageY-e.offset().top,this._elementHeight=e.outerHeight();var n=this._list.getFlatIndexByItemElement(e);this._startIndex=n,this._lastIndex=n,this._cacheScrollData();var i=this;this._createGhostTimeout=setTimeout(function(){i._createGhost(e),i._updateGhostPosition(),e.addClass(b)})},_stopPreviousAnimation:function(){s.stop(this._$ghostItem,!0)},_cacheItemsPositions:function(){var e=this._itemPositions=[];o(this._list.itemElements(),function(t,n){var o=null;e.push(function(){return o=null===o?i(n).position().top:o})})},_getDraggingElementPosition:function(){return this._itemPositions[this._startIndex]()},_getLastElementPosition:function(){return this._itemPositions[this._lastIndex]()},_cacheScrollData:function(){this._list.updateDimensions(),this._startScrollTop=this._list.scrollTop(),this._scrollOffset=0,this._scrollHeight=this._list.scrollHeight(),this._clientHeight=this._list.clientHeight()},_scrollTop:function(){return this._startScrollTop+this._scrollOffset},_createGhost:function(e){this._$ghostItem=e.clone(),this._$ghostItem.addClass(w).appendTo(this._list.itemsContainer()),this._startGhostPosition=this._getDraggingElementPosition()-this._$ghostItem.position().top,r.move(this._$ghostItem,{top:this._startGhostPosition})},_dragHandler:function(e,t){this._topOffset=t.offset.y,this._updateItemPositions();var n=this._getPointerPosition();this._toggleScroll(n)},_getPointerPosition:function(){return this._getDraggingElementPosition()+this._startPointerOffset+this._scrollOffset+this._topOffset},_toggleScroll:function(e){if(!(this._scrollHeight<=this._clientHeight)){var t=.7*this._elementHeight,n=this._clientHeight-(e-this._scrollTop()),i=n/t,o=e-this._scrollTop(),a=o/t;i<1?(this._stepSize=this._adjustRationIntoRange(i),this._startAnimator()):a<1?(this._stepSize=-this._adjustRationIntoRange(a),this._startAnimator()):this._stopAnimator()}},_adjustRationIntoRange:function(e){return u.fitIntoRange(Math.round(7*Math.abs(e-1)),1,7)},_updateItemPositions:function(){this._updateGhostPosition(),this._updateOthersPositions()},_updateGhostPosition:function(){this._$ghostItem&&r.move(this._$ghostItem,{top:this._startGhostPosition+this._scrollOffset+this._topOffset})},_updateOthersPositions:function(){var e=this._findItemIndexByPosition(this._getPointerPosition());if(this._lastIndex!==e&&(!this._groupedEnabled||this._sameParent(e))){for(var t=e-this._startIndex,n=u.sign(t),i=Math.min(e,this._lastIndex),o=Math.max(e,this._lastIndex),a=i;a<=o;a++)if(a!==this._startIndex){var r=this._list.getItemElementByFlatIndex(a),l=a-this._startIndex,c=u.sign(l),d=Math.abs(l)<=Math.abs(t),h=n===c,p=d&&h,f=!d||!h;s.stop(r),p&&s.animate(r,{type:"slide",to:{top:this._elementHeight*-n},duration:300}),f&&s.animate(r,{type:"slide",to:{top:0},duration:300})}this._lastIndex=e}},_sameParent:function(e){var t=this._list.getItemElementByFlatIndex(this._startIndex),n=this._list.getItemElementByFlatIndex(e);return n.parent().get(0)===t.parent().get(0)},scrollByStep:function(){this._scrollOffset+=this._stepSize,this._list.scrollBy(this._stepSize),this._updateItemPositions()},scrollFinished:function(){var e=this._scrollTop(),t=e<=0&&this._stepSize<0,n=e>=this._scrollHeight-this._clientHeight&&this._stepSize>0;return t||n},_dragEndHandler:function(e){this._scrollAnimator.stop(),s.animate(this._$ghostItem,{type:"slide",to:{top:this._startGhostPosition+this._getLastElementPosition()-this._getDraggingElementPosition()},duration:300}).done(function(){e.removeClass(b),this._resetPositions(),this._list.reorderItem(e,this._list.getItemElementByFlatIndex(this._lastIndex)),this._deleteGhost()}.bind(this))},_deleteGhost:function(){this._$ghostItem&&this._$ghostItem.remove()},_resetPositions:function(){for(var e=Math.min(this._startIndex,this._lastIndex),t=Math.max(this._startIndex,this._lastIndex),n=e;n<=t;n++){var i=this._list.getItemElementByFlatIndex(n);r.resetPosition(i)}},_findItemIndexByPosition:function(e){for(var t,n,i=0,o=this._itemPositions.length-1;i<=o;)if(t=(i+o)/2|0,n=this._itemPositions[t](),n<e)i=t+1;else{if(!(n>e))return t;o=t-1}return u.fitIntoRange(i,0,Math.max(o,0))},getExcludedSelectors:function(e){e.push("."+w)},dispose:function(){clearTimeout(this._createGhostTimeout),this.callBase.apply(this,arguments)}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(18),s=i(r),l=n(85),u=i(l),c=n(9),d=i(c),h=n(305),p=i(h),f=n(46),g=i(f),_=n(101),m=i(_),v=n(20),y=n(12),x=i(y),b=n(62),w=n(86),C=i(w),k=n(44),S=n(68),I=i(S),T=n(6),D=n(0),E=n(1),A=n(4),O=n(14),B="dx-dropdownbutton",P="dx-dropdownbutton-content",M="dx-dropdownbutton-action",R="dx-dropdownbutton-toggle",V="dx-button-content",F="dx-icon-right",L=s.default.inherit({_getDefaultOptions:function(){return(0,D.extend)(this.callBase(),{itemTemplate:"item",keyExpr:"this",displayExpr:"this",selectedItem:null,selectedItemKey:null,stylingMode:"outlined",deferRendering:!0,noDataText:(0,O.format)("dxCollectionWidget-noDataText"),useSelectMode:!1,splitButton:!1,showArrowIcon:!0,text:"",icon:void 0,onButtonClick:null,onSelectionChanged:null,onItemClick:null,opened:!1,items:null,dataSource:null,focusStateEnabled:!0,hoverStateEnabled:!0,dropDownOptions:{},dropDownContentTemplate:"content",grouped:!1,groupTemplate:"group",buttonGroupOptions:{}})},_setOptionsByReference:function(){this.callBase(),(0,D.extend)(this._optionsByReference,{selectedItem:!0})},_init:function(){this.callBase(),this._createItemClickAction(),this._createActionClickAction(),this._createSelectionChangedAction(),this._compileKeyGetter(),this._compileDisplayGetter(),this._initDataSource(),this._itemsToDataSource(),this._initInnerOptionCache("buttonGroupOptions"),this._initInnerOptionCache("dropDownOptions")},_initTemplates:function(){var e=this;this.callBase(),this._defaultTemplates.content=new u.default(function(t){var n=(0,a.default)(t.container),i=(0,a.default)("<div>").appendTo(n);e._list=e._createComponent(i,m.default,e._listOptions()),e._list.registerKeyHandler("escape",e._escHandler.bind(e)),e._list.registerKeyHandler("tab",e._escHandler.bind(e)),e._list.registerKeyHandler("leftArrow",e._escHandler.bind(e)),e._list.registerKeyHandler("rightArrow",e._escHandler.bind(e))})},_itemsToDataSource:function(){this._dataSource||(this._dataSource=new k.DataSource({store:new I.default(this.option("items")),pageSize:0}))},_compileKeyGetter:function(){this._keyGetter=(0,v.compileGetter)(this.option("keyExpr"))},_compileDisplayGetter:function(){this._displayGetter=(0,v.compileGetter)(this.option("displayExpr"))},_initMarkup:function(){this.callBase(),this.$element().addClass(B),this._renderButtonGroup(),this._loadSelectedItem().done(this._updateActionButton.bind(this)),this.option("deferRendering")&&!this.option("opened")||this._renderPopup()},_loadSelectedItem:function(){var e=this,t=new T.Deferred;if(this._list)return t.resolve(this._list.option("selectedItem"));var n=this.option("selectedItemKey");return this._loadSingle(this.option("keyExpr"),n).done(t.resolve).fail(function(){t.resolve(e.option("selectedItem"))}),t.promise()},_createActionClickAction:function(){this._actionClickAction=this._createActionByOption("onButtonClick")},_createSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")},_createItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_fireSelectionChangedAction:function(e){var t=e.previousValue,n=e.value;this._selectionChangedAction({item:n,previousItem:t})},_fireItemClickAction:function(e){var t=e.event,n=e.itemElement,i=e.itemData;return this._itemClickAction({event:t,itemElement:n,itemData:this._actionItem||i})},_actionButtonConfig:function(){return{text:this.option("text"),icon:this.option("icon"),elementAttr:{"class":M}}},_getButtonGroupItems:function(){var e=[];return e.push(this._actionButtonConfig()),this.option("splitButton")&&e.push({icon:"spindown",width:26,elementAttr:{"class":R}}),e},_buttonGroupItemClick:function(e){var t=e.event,n=e.itemData,i=n.elementAttr.class===M,o=n.elementAttr.class===R;o?this.toggle():i&&(this._actionClickAction({event:t,selectedItem:this.option("selectedItem")}),this.option("splitButton")||this.toggle())},_buttonGroupOptions:function(){return(0,D.extend)({items:this._getButtonGroupItems(),focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),onItemClick:this._buttonGroupItemClick.bind(this),width:this.option("width"),height:this.option("height"),stylingMode:this.option("stylingMode"),selectionMode:"none"},this._getInnerOptionsCache("buttonGroupOptions"))},_renderPopupContent:function(){var e=this._popup.$content(),t=this._getTemplateByOption("dropDownContentTemplate");return e.empty(),t.render({container:x.default.getPublicElement(e),model:this.option("items")||this._dataSource})},_popupOptions:function(){var e=this;return(0,D.extend)({dragEnabled:!1,focusStateEnabled:!1,deferRendering:this.option("deferRendering"),minWidth:function(){return e.$element().outerWidth()},closeOnOutsideClick:function(t){var n=e.$element(),i=(0,a.default)(t.target).closest("."+B);return!i.is(n)},showTitle:!1,animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},width:"auto",height:"auto",shading:!1,visible:this.option("opened"),position:{of:this.$element(),collision:"flipfit",my:"top left",at:"bottom left",offset:{y:-1}}},this._getInnerOptionsCache("dropDownOptions"))},_listOptions:function(){var e=this,t=this.option("selectedItemKey");return{selectionMode:"single",focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),selectedItemKeys:t?[t]:[],grouped:this.option("grouped"),keyExpr:this.option("keyExpr"),noDataText:this.option("noDataText"),displayExpr:this.option("displayExpr"),itemTemplate:this.option("itemTemplate"),items:this.option("items"),dataSource:this._dataSource,onItemClick:function(t){e.option("selectedItemKey",e._keyGetter(t.itemData));var n=e._fireItemClickAction(t);n!==!1&&(e.toggle(!1),e._buttonGroup.focus())}}},_upDownKeyHandler:function(){this._popup&&this._popup.option("visible")&&this._list?this._list.focus():this.open()},_escHandler:function(){this.close(),this._buttonGroup.focus()},_renderPopup:function(){var e=(0,a.default)("<div>");this.$element().append(e),this._popup=this._createComponent(e,g.default,this._popupOptions()),this._popup.$content().addClass(P),this._popup.on("hiding",this._popupHidingHandler.bind(this)),this._popup.on("showing",this._popupShowingHandler.bind(this)),this._renderPopupContent(),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_popupHidingHandler:function(){this.option("opened",!1)},_popupShowingHandler:function(){this.option("opened",!0)},_renderAdditionalIcon:function(){if(!this.option("splitButton")&&this.option("showArrowIcon")){var e=this._buttonGroup.$element().find("."+V).eq(0),t=(0,b.getImageContainer)("spindown");t.addClass(F).appendTo(e)}},_renderButtonGroup:function(){var e=this._buttonGroup&&this._buttonGroup.$element()||(0,a.default)("<div>");this._buttonGroup||this.$element().append(e),this._buttonGroup=this._createComponent(e,p.default,this._buttonGroupOptions()),this._buttonGroup.registerKeyHandler("downArrow",this._upDownKeyHandler.bind(this)),this._buttonGroup.registerKeyHandler("tab",this.close.bind(this)),this._buttonGroup.registerKeyHandler("upArrow",this._upDownKeyHandler.bind(this)),this._buttonGroup.registerKeyHandler("escape",this._escHandler.bind(this)),this._renderAdditionalIcon(),this._bindInnerWidgetOptions(this._buttonGroup,"buttonGroupOptions")},toggle:function(e){return this._popup||this._renderPopup(),this._popup.toggle(e)},open:function(){return this.toggle(!0)},close:function(){return this.toggle(!1)},_setListOption:function(e,t){this._list&&this._list.option(e,t)},_getDisplayValue:function(e){var t=!(0,E.isPlainObject)(e),n=t?e:this._displayGetter(e);return(0,E.isPlainObject)(n)?"":String((0,A.ensureDefined)(n,""))},_updateActionButton:function(e){this.option("useSelectMode")&&this.option({text:this._getDisplayValue(e),icon:(0,E.isPlainObject)(e)?e.icon:void 0}),this._setOptionSilent("selectedItem",e)},_clean:function(){this._list&&this._list.$element().remove(),this._popup&&this._popup.$element().remove()},_selectedItemKeyChanged:function(e){var t=this;this._setListOption("selectedItemKeys",e?[e]:[]);var n=this.option("selectedItem");this._loadSelectedItem().done(function(e){t._updateActionButton(e),t._displayGetter(n)!==t._displayGetter(e)&&t._fireSelectionChangedAction({previousValue:n,value:e})})},_optionChanged:function(e){var t=e.name,n=e.value;switch(e.name){case"useSelectMode":break;case"splitButton":this._renderButtonGroup();break;case"displayExpr":this._compileDisplayGetter();break;case"keyExpr":this._compileKeyGetter();break;case"buttonGroupOptions":this._innerOptionChanged(this._buttonGroup,e);break;case"dropDownOptions":this._innerOptionChanged(this._popup,e);break;case"opened":this.toggle(n);break;case"focusStateEnabled":case"hoverStateEnabled":this._setListOption(t,n),this._buttonGroup.option(t,n);break;case"items":this._dataSource=null,this._itemsToDataSource(),this._setListOption(t,n),this._setListOption("selectedItemKeys",[]),this._loadSelectedItem().done(this._updateActionButton.bind(this));break;case"dataSource":this._initDataSource(),this._setListOption(t,n),this._setListOption("selectedItemKeys",[]),this._loadSelectedItem().done(this._updateActionButton.bind(this));break;case"icon":this._buttonGroup.option("items[0]",(0,D.extend)({},this._actionButtonConfig(),{icon:n})),this._renderAdditionalIcon();break;case"text":this._buttonGroup.option("items[0]",(0,D.extend)({},this._actionButtonConfig(),{text:n})),this._renderAdditionalIcon();break;case"showArrowIcon":n||this._buttonGroup.$element().find("."+F).remove(),this._renderAdditionalIcon();break;case"stylingMode":case"width":case"height":this._buttonGroup.option(t,n);break;case"itemTemplate":case"grouped":case"noDataText":case"groupTemplate":this._setListOption(t,n);break;case"dropDownContentTemplate":this._popup&&this._renderPopupContent();break;case"selectedItemKey":this._selectedItemKeyChanged(n);break;case"selectedItem":break;case"onItemClick":this._createItemClickAction();break;case"onButtonClick":this._createActionClickAction();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"deferRendering":n||this._popup||this._renderPopup();break;default:this.callBase(e)}}}).include(C.default);(0,d.default)("dxDropDownButton",L),e.exports=L},function(e,t,n){var i=n(2),o=n(43),a=n(9),r=n(4).noop,s=n(1),l=n(29).inRange,u=n(0).extend,c=n(34),d=n(49),h=n(158),p=n(528),f=n(529),g=n(27),_=n(26),m=n(22),v=n(56),y=n(16),x=n(38),b=n(7),w=n(14),C=n(85),k="dx-calendar",S="dx-calendar-body",I="dx-calendar-cell",T="dx-calendar-footer",D="dx-calendar-today-button",E="dx-calendar-with-footer",A="dx-calendar-views-wrapper",O="dx-calendar-view",B="dx-state-focused",P=250,M=.6,R=1,V="yyyy-MM-dd",F="dxDateValueKey",L={month:3,year:2,decade:1,century:0},H={MONTH:"month",YEAR:"year",DECADE:"decade",CENTURY:"century"},z=d.inherit({_activeStateUnit:"."+I,_getDefaultOptions:function(){return u(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,currentDate:new Date,value:null,dateSerializationFormat:void 0,min:new Date(1e3,0),max:new Date(3e3,0),firstDayOfWeek:void 0,zoomLevel:H.MONTH,maxZoomLevel:H.MONTH,minZoomLevel:H.CENTURY,showTodayButton:!1,cellTemplate:"cell",disabledDates:null,onCellClick:null,onContouredChanged:null,hasFocus:function(e){return e.hasClass(B)}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===y.real().deviceType&&!y.isSimulator()},options:{focusStateEnabled:!0}}])},_supportedKeys:function(){return u(this.callBase(),{rightArrow:function(e){e.preventDefault(),e.ctrlKey?this._waitRenderView(1):this._moveCurrentDate(1*this._getRtlCorrection())},leftArrow:function(e){e.preventDefault(),e.ctrlKey?this._waitRenderView(-1):this._moveCurrentDate(-1*this._getRtlCorrection())},upArrow:function(e){if(e.preventDefault(),e.ctrlKey)this._navigateUp();else{if(x.isAnimating(this._view.$element()))return;this._moveCurrentDate(-1*this._view.option("colCount"))}},downArrow:function(e){if(e.preventDefault(),e.ctrlKey)this._navigateDown();else{if(x.isAnimating(this._view.$element()))return;this._moveCurrentDate(1*this._view.option("colCount"))}},home:function(e){e.preventDefault();var t=this.option("zoomLevel"),n=this.option("currentDate"),i=this._dateOption("min"),o=m.sameView(t,n,i)?i:m.getViewFirstCellDate(t,n);this._moveToClosestAvailableDate(o,1)},end:function(e){e.preventDefault();var t=this.option("zoomLevel"),n=this.option("currentDate"),i=this._dateOption("max"),o=m.sameView(t,n,i)?i:m.getViewLastCellDate(t,n);this._moveToClosestAvailableDate(o,-1)},pageUp:function(e){e.preventDefault(),this._waitRenderView(-1)},pageDown:function(e){e.preventDefault(),this._waitRenderView(1)},tab:r,enter:function(e){if(this._isMaxZoomLevel()){var t=this._updateTimeComponent(this.option("currentDate"));this._dateValue(t,e)}else this._navigateDown()}})},_getSerializationFormat:function(e){var t=this.option(e||"value");if(this.option("dateSerializationFormat"))return this.option("dateSerializationFormat");if(s.isNumeric(t))return"number";if(s.isString(t))return v.getDateSerializationFormat(t)},_convertToDate:function(e,t){return v.deserializeDate(e)},_dateValue:function(e,t){t&&this._saveValueChangeEvent(t),this._dateOption("value",e)},_dateOption:function(e,t){if(1===arguments.length)return this._convertToDate(this.option(e),e);var n=this._getSerializationFormat(e);this.option(e,v.serializeDate(t,n))},_moveCurrentDate:function(e,t){for(var n=t||new Date(this.option("currentDate")),i=this._getMaxDate(),o=this._getMinDate(),a=this.option("zoomLevel"),r=l(n,o,i),s=new Date(n),u=new Date(n),c=r,d=r;!e&&(c||d)||e&&c;){var h=e||1;switch(a){case H.MONTH:s.setDate(s.getDate()+h),u.setDate(u.getDate()-h);break;case H.YEAR:s.setMonth(s.getMonth()+h),u.setMonth(u.getMonth()-h);break;case H.DECADE:s.setFullYear(s.getFullYear()+h),u.setFullYear(u.getFullYear()-h);break;case H.CENTURY:s.setFullYear(s.getFullYear()+10*h),u.setFullYear(u.getFullYear()-10*h)}if(!this._view.isDateDisabled(s)){n=s;break}if(!e&&!this._view.isDateDisabled(u)){n=u;break}d=l(u,o,i),c=l(s,o,i)}this.option("currentDate",n)},_moveToClosestAvailableDate:function(e,t){this._view.isDateDisabled(e)?this._moveCurrentDate(t,e):this.option("currentDate",e)},_init:function(){this.callBase(),this._correctZoomLevel(),this._initCurrentDate(),this._initActions()},_correctZoomLevel:function(){var e=this.option("minZoomLevel"),t=this.option("maxZoomLevel"),n=this.option("zoomLevel");L[t]<L[e]||(L[n]>L[t]?this.option("zoomLevel",t):L[n]<L[e]&&this.option("zoomLevel",e))},_initCurrentDate:function(){var e=this._getNormalizedDate(this._dateOption("value"))||this._getNormalizedDate(this.option("currentDate"));this.option("currentDate",e)},_getNormalizedDate:function(e){return e=m.normalizeDate(e,this._getMinDate(),this._getMaxDate()),s.isDefined(e)?new Date(e):e},_initActions:function(){this._cellClickAction=this._createActionByOption("onCellClick"),this._onContouredChanged=this._createActionByOption("onContouredChanged")},_initTemplates:function(){this.callBase(),this._defaultTemplates.cell=new C(function(e){var t=e.model;i(e.container).append(i("<span>").text(t&&t.text||String(t)))},this)},_updateCurrentDate:function(e){x.isAnimating(this._$viewsWrapper)&&x.stop(this._$viewsWrapper,!0);var t=this._getMinDate(),n=this._getMaxDate();if(t>n)return void this.option("currentDate",new Date);var i=this._getNormalizedDate(e);if(e.getTime()!==i.getTime())return void this.option("currentDate",new Date(i));var o=this._getViewsOffset(this._view.option("date"),i);0!==o&&!this._isMaxZoomLevel()&&this._isOtherViewCellClicked&&(o=0),this._view&&0!==o&&!this._suppressNavigation?this._navigate(o,i):(this._renderNavigator(),this._setViewContoured(i),this._updateAriaId(i))},_setViewContoured:function(e){this.option("hasFocus")(this._focusTarget())&&this._view.option("contouredDate",e)},_getMinDate:function(){return this.min?this.min:(this.min=this._dateOption("min")||new Date(1e3,0),this.min)},_getMaxDate:function(){return this.max?this.max:(this.max=this._dateOption("max")||new Date(3e3,0),
75this.max)},_getViewsOffset:function(e,t){var n=this.option("zoomLevel");if(n===H.MONTH)return this._getMonthsOffset(e,t);var i;switch(n){case H.CENTURY:i=100;break;case H.DECADE:i=10;break;default:i=1}return parseInt(t.getFullYear()/i)-parseInt(e.getFullYear()/i)},_getMonthsOffset:function(e,t){var n=t.getFullYear()-e.getFullYear(),i=t.getMonth()-e.getMonth();return 12*n+i},_waitRenderView:function(e){if(!this._alreadyViewRender){this._alreadyViewRender=!0;var t=this._getDateByOffset(e*this._getRtlCorrection());this._moveToClosestAvailableDate(t,e),setTimeout(function(){this._alreadyViewRender=!1}.bind(this))}},_getRtlCorrection:function(){return this.option("rtlEnabled")?-1:1},_getDateByOffset:function(e,t){t=new Date(t||this.option("currentDate"));var n=t.getDate(),i=m.getDifferenceInMonth(this.option("zoomLevel"))*e;t.setDate(1),t.setMonth(t.getMonth()+i);var o=m.getLastMonthDate(t).getDate();return t.setDate(n>o?o:n),t},_focusTarget:function(){return this.$element()},_initMarkup:function(){this._renderSubmitElement(),this.callBase();var e=this.$element();e.addClass(k),this._renderBody(),e.append(this.$body),this._renderViews(),this._renderNavigator(),e.append(this._navigator.$element()),this._renderSwipeable(),this._renderFooter(),this.setAria({role:"listbox",label:w.format("dxCalendar-ariaWidgetName")}),this._updateAriaSelected(),this._updateAriaId(),this._view.isDateDisabled(this.option("currentDate"))&&this._moveCurrentDate(0)},_render:function(){this.callBase(),this._setViewContoured(this.option("currentDate"))},_renderBody:function(){this._$viewsWrapper||(this.$body=i("<div>").addClass(S),this._$viewsWrapper=i("<div>").addClass(A),this.$body.append(this._$viewsWrapper))},_renderViews:function(){this.$element().addClass(O+"-"+this.option("zoomLevel"));var e=this.option("currentDate");if(this._view=this._renderSpecificView(e),this._view.option("_keyboardProcessor",this._viewKeyboardProcessor),b.hasWindow()){var t=this._getDateByOffset(-1,e);this._beforeView=this._isViewAvailable(t)?this._renderSpecificView(t):null;var n=this._getDateByOffset(1,e);n.setDate(1),this._afterView=this._isViewAvailable(n)?this._renderSpecificView(n):null}this._translateViews()},_renderSpecificView:function(e){var t=f[this.option("zoomLevel")],n=i("<div>").appendTo(this._$viewsWrapper),o=this._viewConfig(e);return new t(n,o)},_viewConfig:function(e){var t=this.option("disabledDates");return t=s.isFunction(t)?this._injectComponent(t.bind(this)):t,{date:e,min:this._getMinDate(),max:this._getMaxDate(),firstDayOfWeek:this.option("firstDayOfWeek"),value:this._dateOption("value"),rtl:this.option("rtlEnabled"),disabled:this.option("disabled"),tabIndex:void 0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),disabledDates:t,onCellClick:this._cellClickHandler.bind(this),cellTemplate:this._getTemplateByOption("cellTemplate"),allowValueSelection:this._isMaxZoomLevel()}},_injectComponent:function(e){var t=this;return function(n){return u(n,{component:t}),e(n)}},_isViewAvailable:function(e){var t=this.option("zoomLevel"),n=m.getViewMinBoundaryDate(t,this._getMinDate()),i=m.getViewMaxBoundaryDate(t,this._getMaxDate());return m.dateInRange(e,n,i)},_translateViews:function(){g.move(this._view.$element(),{left:0,top:0}),this._beforeView&&g.move(this._beforeView.$element(),{left:this._getViewPosition(-1),top:0}),this._afterView&&g.move(this._afterView.$element(),{left:this._getViewPosition(1),top:0})},_getViewPosition:function(e){var t=this.option("rtlEnabled")&&!_.msie?-1:1;return 100*e*t+"%"},_cellClickHandler:function(e){var t=this.option("zoomLevel"),n=m.getViewDown(t),i=this._isMaxZoomLevel();if(n&&!i)this._navigateDown(e.event.currentTarget);else{var o=this._updateTimeComponent(e.value);this._dateValue(o,e.event),this._cellClickAction(e)}},_updateTimeComponent:function(e){var t=new Date(e),n=this._dateOption("value");return n&&(t.setHours(n.getHours()),t.setMinutes(n.getMinutes()),t.setSeconds(n.getSeconds()),t.setMilliseconds(n.getMilliseconds())),t},_isMaxZoomLevel:function(){return this.option("zoomLevel")===this.option("maxZoomLevel")},_navigateDown:function(e){var t=this.option("zoomLevel");if(!this._isMaxZoomLevel()){var n=m.getViewDown(t);if(n){var o=this._view.option("contouredDate")||this._view.option("date");e&&(o=i(e).data(F)),this._isOtherViewCellClicked=!0,this.option("currentDate",o),this.option("zoomLevel",n),this._isOtherViewCellClicked=!1,this._renderNavigator(),this._animateShowView(),this._setViewContoured(this._getNormalizedDate(o))}}},_renderNavigator:function(){this._navigator||(this._navigator=new p(i("<div>"),this._navigatorConfig())),this._navigator.option("text",this._view.getNavigatorCaption()),this._updateButtonsVisibility()},_navigatorConfig:function(){return{text:this._view.getNavigatorCaption(),onClick:this._navigatorClickHandler.bind(this),onCaptionClick:this._navigateUp.bind(this),rtlEnabled:this.option("rtlEnabled")}},_navigatorClickHandler:function(e){var t=this._getDateByOffset(e.direction,this.option("currentDate"));this._moveToClosestAvailableDate(t,1*e.direction),this._updateNavigatorCaption(-e.direction*this._getRtlCorrection())},_navigateUp:function(){var e=this.option("zoomLevel"),t=m.getViewUp(e);if(t&&!this._isMinZoomLevel(e)){var n=this._view.option("contouredDate");this.option("zoomLevel",t),this.option("currentDate",n||this._view.option("date")),this._renderNavigator(),this._animateShowView().done(function(){this._setViewContoured(n)}.bind(this))}},_isMinZoomLevel:function(e){var t=this._getMinDate(),n=this._getMaxDate();return m.sameView(e,t,n)||this.option("minZoomLevel")===e},_updateButtonsVisibility:function(){this._navigator.toggleButton("next",!s.isDefined(this._getRequiredView("next"))),this._navigator.toggleButton("prev",!s.isDefined(this._getRequiredView("prev")))},_renderSwipeable:function(){this._swipeable||(this._swipeable=this._createComponent(this.$element(),h,{onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._viewWidth.bind(this)}))},_swipeStartHandler:function(e){x.stop(this._$viewsWrapper,!0),e.event.maxLeftOffset=this._getRequiredView("next")?1:0,e.event.maxRightOffset=this._getRequiredView("prev")?1:0},_getRequiredView:function(e){var t,n=this.option("rtlEnabled");return"next"===e?t=n?this._beforeView:this._afterView:"prev"===e&&(t=n?this._afterView:this._beforeView),t},_swipeUpdateHandler:function(e){var t=e.event.offset;g.move(this._$viewsWrapper,{left:t*this._viewWidth(),top:0}),this._updateNavigatorCaption(t)},_swipeEndHandler:function(e){var t=e.event.targetOffset,n=t?t/Math.abs(t):0;if(0===n)return void this._animateWrapper(0,P);var i=this._getDateByOffset(-n*this._getRtlCorrection());this._isDateInInvalidRange(i)&&(i=n>=0?new Date(this._getMinDate()):new Date(this._getMaxDate())),this.option("currentDate",i)},_viewWidth:function(){return this._viewWidthValue||(this._viewWidthValue=this.$element().width()),this._viewWidthValue},_updateNavigatorCaption:function(e){e*=this._getRtlCorrection();var t=this._view;e>.5&&this._beforeView?t=this._beforeView:e<-.5&&this._afterView&&(t=this._afterView),this._navigator.option("text",t.getNavigatorCaption())},_isDateInInvalidRange:function(e){if(!this._view.isBoundary(e)){var t=this._getMinDate(),n=this._getMaxDate(),i=m.normalizeDate(e,t,n);return i===t||i===n}},_renderFooter:function(){var e=this.option("showTodayButton");if(e){var t=this._createComponent(i("<a>"),c,{focusStateEnabled:!1,text:w.format("dxCalendar-todayButtonText"),onClick:function(){this._toTodayView()}.bind(this),integrationOptions:{}}).$element().addClass(D);this._$footer=i("<div>").addClass(T).append(t),this.$element().append(this._$footer)}this.$element().toggleClass(E,e)},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(e){var t=this._convertToDate(e);this._getSubmitElement().val(v.serializeDate(t,V))},_getSubmitElement:function(){return this._$submitElement},_animateShowView:function(){return x.stop(this._view.$element(),!0),this._popAnimationView(this._view,M,R,P).promise()},_popAnimationView:function(e,t,n,i){return x.animate(e.$element(),{type:"pop",from:{scale:t,opacity:t},to:{scale:n,opacity:n},duration:i})},_navigate:function(e,t){if(0!==e&&1!==Math.abs(e)&&this._isViewAvailable(t)){var n=this._renderSpecificView(t);e>0?(this._afterView&&this._afterView.$element().remove(),this._afterView=n):(this._beforeView&&this._beforeView.$element().remove(),this._beforeView=n),this._translateViews()}var i=this._getRtlCorrection(),o=e>0?1:e<0?-1:0,a=-i*o*this._viewWidth(),r=this._$viewsWrapper.position().left;r!==a&&(this._preventViewChangeAnimation?this._wrapperAnimationEndHandler(e,t):this._animateWrapper(a,P).done(this._wrapperAnimationEndHandler.bind(this,e,t)))},_animateWrapper:function(e,t){return x.animate(this._$viewsWrapper,{type:"slide",from:{left:this._$viewsWrapper.position().left},to:{left:e},duration:t})},_toTodayView:function(){var e=new Date;return this._isMaxZoomLevel()?void this._dateOption("value",e):(this._preventViewChangeAnimation=!0,this.option("zoomLevel",this.option("maxZoomLevel")),this._dateOption("value",e),this._animateShowView(),void(this._preventViewChangeAnimation=!1))},_wrapperAnimationEndHandler:function(e,t){this._rearrangeViews(e),this._translateViews(),this._resetLocation(),this._renderNavigator(),this._setViewContoured(t),this._updateAriaId(t)},_rearrangeViews:function(e){if(0!==e){var t,n,i;if(e<0?(t=1,n="_beforeView",i="_afterView"):(t=-1,n="_afterView",i="_beforeView"),this[n]){var o=this[n].option("date");this[i]&&this[i].$element().remove(),e===t?this[i]=this._view:(this[i]=this._renderSpecificView(this._getDateByOffset(t,o)),this._view.$element().remove()),this._view=this[n];var a=this._getDateByOffset(-t,o);this[n]=this._isViewAvailable(a)?this._renderSpecificView(a):null}}},_resetLocation:function(){g.move(this._$viewsWrapper,{left:0,top:0})},_clean:function(){this.callBase(),this._clearViewWidthCache(),delete this._$viewsWrapper,delete this._navigator,delete this._$footer},_clearViewWidthCache:function(){delete this._viewWidthValue},_disposeViews:function(){this._view.$element().remove(),this._beforeView&&this._beforeView.$element().remove(),this._afterView&&this._afterView.$element().remove(),delete this._view,delete this._beforeView,delete this._afterView},_refreshViews:function(){this._disposeViews(),this._renderViews()},_visibilityChanged:function(){this._translateViews()},_focusInHandler:function(){this.callBase.apply(this,arguments),this._view.option("contouredDate",this.option("currentDate"))},_focusOutHandler:function(){this.callBase.apply(this,arguments),this._view.option("contouredDate",null)},_updateViewsValue:function(e){var t=e?new Date(e):null;this._view.option("value",t),this._beforeView&&this._beforeView.option("value",t),this._afterView&&this._afterView.option("value",t)},_updateAriaSelected:function(e,t){e=e||this._dateOption("value");var n=this._view._getCellByDate(t),i=this._view._getCellByDate(e);this.setAria("selected",void 0,n),this.setAria("selected",!0,i),e&&this.option("currentDate").getTime()===e.getTime()&&this._updateAriaId(e)},_updateAriaId:function(e){e=e||this.option("currentDate");var t="dx-"+new o,n=this._view._getCellByDate(e);this.setAria("id",t,n),this.setAria("activedescendant",t),this._onContouredChanged(t)},_suppressingNavigation:function(e,t){this._suppressNavigation=!0,e.apply(this,t),delete this._suppressNavigation},_optionChanged:function(e){var t=e.value,n=e.previousValue;switch(e.name){case"width":this.callBase(e),this._clearViewWidthCache();break;case"min":case"max":this.min=void 0,this.max=void 0,this._suppressingNavigation(this._updateCurrentDate,[this.option("currentDate")]),this._refreshViews(),this._renderNavigator();break;case"firstDayOfWeek":this._refreshViews(),this._updateButtonsVisibility();break;case"currentDate":this.setAria("id",void 0,this._view._getCellByDate(n)),this._updateCurrentDate(t);break;case"zoomLevel":this.$element().removeClass(O+"-"+n),this._correctZoomLevel(),this._refreshViews(),this._renderNavigator(),this._updateAriaId();break;case"minZoomLevel":case"maxZoomLevel":this._correctZoomLevel(),this._updateButtonsVisibility();break;case"value":t=this._convertToDate(t),n=this._convertToDate(n),this._updateAriaSelected(t,n),this.option("currentDate",s.isDefined(t)?new Date(t):new Date),this._updateViewsValue(t),this._setSubmitValue(t),this.callBase(e);break;case"disabled":this._view.option("disabled",t),this.callBase(e);break;case"onCellClick":this._view.option("onCellClick",t);break;case"onContouredChanged":this._onContouredChanged=this._createActionByOption("onContouredChanged");break;case"disabledDates":case"dateSerializationFormat":case"cellTemplate":case"showTodayButton":this._invalidate();break;case"hasFocus":break;default:this.callBase(e)}}});a("dxCalendar",z),e.exports=z},function(e,t,n){var i=n(2),o=n(0).extend,a=n(18),r=n(34),s="dx-calendar-navigator",l="dx-calendar-navigator-previous-month",u="dx-calendar-navigator-next-month",c="dx-calendar-navigator-previous-view",d="dx-calendar-navigator-next-view",h="dx-calendar-disabled-navigator-link",p="dx-calendar-caption-button",f=a.inherit({_getDefaultOptions:function(){return o(this.callBase(),{onClick:null,onCaptionClick:null,text:""})},_init:function(){this.callBase(),this._initActions()},_initActions:function(){this._clickAction=this._createActionByOption("onClick"),this._captionClickAction=this._createActionByOption("onCaptionClick")},_initMarkup:function(){this.callBase(),this.$element().addClass(s),this._renderButtons(),this._renderCaption()},_renderButtons:function(){var e=this,t=this.option("rtlEnabled")?-1:1;this._prevButton=this._createComponent(i("<a>"),r,{focusStateEnabled:!1,icon:"chevronleft",onClick:function(n){e._clickAction({direction:-t,event:n})},integrationOptions:{}});var n=this._prevButton.$element().addClass(c).addClass(l);this._nextButton=this._createComponent(i("<a>"),r,{focusStateEnabled:!1,icon:"chevronright",onClick:function(n){e._clickAction({direction:t,event:n})},integrationOptions:{}});var o=this._nextButton.$element().addClass(d).addClass(u);this._caption=this._createComponent(i("<a>").addClass(p),r,{focusStateEnabled:!1,onClick:function(t){e._captionClickAction({event:t})},integrationOptions:{}});var a=this._caption.$element();this.$element().append(n,a,o)},_renderCaption:function(){this._caption.option("text",this.option("text"))},toggleButton:function(e,t){var n="_"+e+"Button",i=this[n];i&&(i.option("disabled",t),i.$element().toggleClass(h,t))},_optionChanged:function(e){switch(e.name){case"text":this._renderCaption();break;default:this.callBase(e)}}});e.exports=f},function(e,t,n){var i=n(2),o=n(4).noop,a=n(530),r=n(22),s=n(0).extend,l=n(33),u=n(56),c=n(1),d="dx-calendar-other-month",h="dx-calendar-other-view",p={month:a.inherit({_getViewName:function(){return"month"},_getDefaultOptions:function(){return s(this.callBase(),{firstDayOfWeek:void 0,rowCount:6,colCount:7})},_renderImpl:function(){this.callBase(),this._renderHeader()},_renderBody:function(){this.callBase(),this._$table.find("."+h).addClass(d)},_renderFocusTarget:o,getCellAriaLabel:function(e){return l.format(e,"longdate")},_renderHeader:function(){var e=this,t=i("<thead>");this._$table.prepend(t);var n=i("<tr>");t.append(n);var o=this.option("rtl")?function(e,t){e.prepend(t)}:function(e,t){e.append(t)};this._iterateCells(this.option("colCount"),function(t){var a=i("<th>").text(e._getDayCaption(e._getFirstDayOfWeek()+t));o(n,a)})},getNavigatorCaption:function(){return l.format(this.option("date"),"monthandyear")},_isTodayCell:function(e){var t=new Date;return r.sameDate(e,t)},_isDateOutOfRange:function(e){var t=this.option("min"),n=this.option("max");return!r.dateInRange(e,t,n,"date")},_isOtherView:function(e){return e.getMonth()!==this.option("date").getMonth()},_getCellText:function(e){return l.format(e,"d")},_getDayCaption:function(e){var t=this.option("colCount");return l.getDayNames("abbreviated")[e%t]},_getFirstCellData:function(){var e=r.getFirstMonthDate(this.option("date")),t=this._getFirstDayOfWeek()-e.getDay(),n=this.option("colCount");return t>=0&&(t-=n),e.setDate(e.getDate()+t),e},_getNextCellData:function(e){return e=new Date(e),e.setDate(e.getDate()+1),e},_getFirstDayOfWeek:function(){return c.isDefined(this.option("firstDayOfWeek"))?this.option("firstDayOfWeek"):l.firstDayOfWeekIndex()},_getCellByDate:function(e){return this._$table.find("td[data-value='"+u.serializeDate(e,r.getShortDateFormat())+"']")},isBoundary:function(e){return r.sameMonthAndYear(e,this.option("min"))||r.sameMonthAndYear(e,this.option("max"))},_getDefaultDisabledDatesHandler:function(e){return function(t){var n=e.some(function(e){return r.sameDate(e,t.date)});if(n)return!0}}}),year:a.inherit({_getViewName:function(){return"year"},_isTodayCell:function(e){return r.sameMonthAndYear(e,new Date)},_isDateOutOfRange:function(e){return!r.dateInRange(e,r.getFirstMonthDate(this.option("min")),r.getLastMonthDate(this.option("max")))},_isOtherView:function(){return!1},_getCellText:function(e){return l.getMonthNames("abbreviated")[e.getMonth()]},_getFirstCellData:function(){var e=new Date(this.option("date"));return e.setDate(1),e.setMonth(0),e},_getNextCellData:function(e){return e=new Date(e),e.setMonth(e.getMonth()+1),e},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),this._$table.find("td[data-value='"+u.serializeDate(t,r.getShortDateFormat())+"']")},getCellAriaLabel:function(e){return l.format(e,"monthandyear")},getNavigatorCaption:function(){return l.format(this.option("date"),"yyyy")},isBoundary:function(e){return r.sameYear(e,this.option("min"))||r.sameYear(e,this.option("max"))}}),decade:a.inherit({_getViewName:function(){return"decade"},_isTodayCell:function(e){return r.sameYear(e,new Date)},_isDateOutOfRange:function(e){var t=this.option("min"),n=this.option("max");return!r.dateInRange(e.getFullYear(),t&&t.getFullYear(),n&&n.getFullYear())},_isOtherView:function(e){var t=new Date(e);return t.setMonth(1),!r.sameDecade(t,this.option("date"))},_getCellText:function(e){return l.format(e,"yyyy")},_getFirstCellData:function(){var e=r.getFirstYearInDecade(this.option("date"))-1;return new Date(e,0,1)},_getNextCellData:function(e){return e=new Date(e),e.setFullYear(e.getFullYear()+1),e},getNavigatorCaption:function(){var e=this.option("date"),t=r.getFirstYearInDecade(e),n=new Date(e),i=new Date(e);return n.setFullYear(t),i.setFullYear(t+9),l.format(n,"yyyy")+"-"+l.format(i,"yyyy")},_isValueOnCurrentView:function(e,t){return r.sameDecade(e,t)},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),t.setMonth(0),this._$table.find("td[data-value='"+u.serializeDate(t,r.getShortDateFormat())+"']")},isBoundary:function(e){return r.sameDecade(e,this.option("min"))||r.sameDecade(e,this.option("max"))}}),century:a.inherit({_getViewName:function(){return"century"},_isTodayCell:function(e){return r.sameDecade(e,new Date)},_isDateOutOfRange:function(e){var t=r.getFirstYearInDecade(e),n=r.getFirstYearInDecade(this.option("min")),i=r.getFirstYearInDecade(this.option("max"));return!r.dateInRange(t,n,i)},_isOtherView:function(e){var t=new Date(e);return t.setMonth(1),!r.sameCentury(t,this.option("date"))},_getCellText:function(e){var t=l.format(e,"yyyy"),n=new Date(e);return n.setFullYear(n.getFullYear()+9),t+" - "+l.format(n,"yyyy")},_getFirstCellData:function(){var e=r.getFirstDecadeInCentury(this.option("date"))-10;return new Date(e,0,1)},_getNextCellData:function(e){return e=new Date(e),e.setFullYear(e.getFullYear()+10),e},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),t.setMonth(0),t.setFullYear(r.getFirstYearInDecade(t)),this._$table.find("td[data-value='"+u.serializeDate(t,r.getShortDateFormat())+"']")},getNavigatorCaption:function(){var e=this.option("date"),t=r.getFirstDecadeInCentury(e),n=new Date(e),i=new Date(e);return n.setFullYear(t),i.setFullYear(t+99),l.format(n,"yyyy")+"-"+l.format(i,"yyyy")},isBoundary:function(e){return r.sameCentury(e,this.option("min"))||r.sameCentury(e,this.option("max"))}})};e.exports=p},function(e,t,n){var i=n(2),o=n(11),a=n(5),r=n(37),s=n(12),l=n(18),u=n(22),c=n(0).extend,d=n(4).noop,h=n(56),p=n(8),f=n(19),g=l.abstract,_="dx-calendar-other-view",m="dx-calendar-cell",v="dx-calendar-empty-cell",y="dx-calendar-today",x="dx-calendar-selected-date",b="dx-calendar-contoured-date",w=p.addNamespace(f.name,"dxCalendar"),C="dxDateValueKey",k=l.inherit({_getViewName:function(){return"base"},_getDefaultOptions:function(){return c(this.callBase(),{date:new Date,focusStateEnabled:!1,cellTemplate:null,disabledDates:null,onCellClick:null,rowCount:3,colCount:4,allowValueSelection:!0})},_init:function(){this.callBase();var e=this.option("value");this.option("value",new Date(e)),this.option("value").valueOf()||this.option("value",new Date(0,0,0,0,0,0))},_initMarkup:function(){this.callBase(),this._renderImpl()},_renderImpl:function(){this._$table=i("<table>"),this.$element().append(this._$table),this._createDisabledDatesHandler(),this._renderBody(),this._renderContouredDate(),this._renderValue(),this._renderEvents()},_renderBody:function(){function e(e){t&&u.fixTimezoneGap(t,c),t=c;var d=o.createElement("td"),p=i(d),f=m;n._isTodayCell(c)&&(f=f+" "+y),(n._isDateOutOfRange(c)||n.isDateDisabled(c))&&(f=f+" "+v),n._isOtherView(c)&&(f=f+" "+_),d.className=f,d.setAttribute("data-value",h.serializeDate(c,u.getShortDateFormat())),r.data(d,C,c),n.setAria({role:"option",label:n.getCellAriaLabel(c)},p),l(g,d),a?a.render({model:{text:n._getCellText(c),date:c,view:n._getViewName()},container:s.getPublicElement(p),index:e}):d.innerHTML=n._getCellText(c),c=n._getNextCellData(c)}this.$body=i("<tbody>").appendTo(this._$table);for(var t,n=this,a=this.option("cellTemplate"),l=this.option("rtl")?function(e,t){e.insertBefore(t,e.firstChild)}:function(e,t){e.appendChild(t)},c=this._getFirstCellData(),d=this.option("colCount"),p=0,f=this.option("rowCount");p<f;p++){var g=o.createElement("tr");this.$body.get(0).appendChild(g),this._iterateCells(d,e)}},_iterateCells:function(e,t){for(var n=0;n<e;)t(n),++n},_renderEvents:function(){this._createCellClickAction(),a.off(this._$table,w),a.on(this._$table,w,"td",function(e){i(e.currentTarget).hasClass(v)||this._cellClickAction({event:e,value:i(e.currentTarget).data(C)})}.bind(this))},_createCellClickAction:function(){this._cellClickAction=this._createActionByOption("onCellClick")},_createDisabledDatesHandler:function(){var e=this.option("disabledDates");this._disabledDatesHandler=Array.isArray(e)?this._getDefaultDisabledDatesHandler(e):e||d},_getDefaultDisabledDatesHandler:function(e){return d},_isTodayCell:g,_isDateOutOfRange:g,isDateDisabled:function(e){var t={date:e,view:this._getViewName()};return this._disabledDatesHandler(t)},_isOtherView:g,_getCellText:g,_getFirstCellData:g,_getNextCellData:g,_renderContouredDate:function(e){if(this.option("focusStateEnabled")){e=e||this.option("contouredDate");var t=this._$table.find("."+b),n=this._getCellByDate(e);t.removeClass(b),n.addClass(b)}},_dispose:function(){this._keyboardProcessor=void 0,this.callBase()},_changeValue:function(e){if(e){var t=this.option("value"),n=t?new Date(t):new Date;n.setDate(e.getDate()),n.setMonth(e.getMonth()),n.setFullYear(e.getFullYear()),n.setDate(e.getDate()),this.option("value",n)}else this.option("value",null)},_renderValue:function(){if(this.option("allowValueSelection")){var e=this.option("value"),t=this._getCellByDate(e);this._selectedCell&&this._selectedCell.removeClass(x),t.addClass(x),this._selectedCell=t}},getCellAriaLabel:function(e){return this._getCellText(e)},_getFirstAvailableDate:function(){var e=this.option("date"),t=this.option("min");return e=u.getFirstDateView(this._getViewName(),e),new Date(t&&e<t?t:e)},_getCellByDate:g,isBoundary:g,_optionChanged:function(e){var t=e.name;switch(t){case"value":this._renderValue();break;case"contouredDate":this._renderContouredDate(e.value);break;case"onCellClick":this._createCellClickAction();break;case"disabledDates":case"cellTemplate":this._invalidate();break;default:this.callBase(e)}}});e.exports=k},function(e,t,n){var i=n(2),o=n(5),a=n(90),r=n(307),s=n(0).extend,l=n(1).isFunction,u=n(9),c=n(161),d="dx-colorbox",h=d+"-input",p=h+"-container",f=d+"-color-result-preview",g=d+"-color-is-not-defined",_=d+"-overlay",m="dx-colorview-container-cell",v="dx-colorview-button-cell",y="dx-colorview-buttons-container",x="dx-colorview-apply-button",b="dx-colorview-cancel-button",w=r.prototype,C={makeTransparentBackground:w._makeTransparentBackground.bind(w),makeRgba:w._makeRgba.bind(w)},k=c.inherit({_supportedKeys:function(){var e=function(e){if(e.stopPropagation(),this.option("opened"))return e.preventDefault(),!0},t=function(e){return this.option("opened")?!e.altKey||(this.close(),!1):(e.preventDefault(),!1)},n=function(e){return this.option("opened")||e.altKey?!(!this.option("opened")&&e.altKey)||(this._validatedOpening(),!1):(e.preventDefault(),!1)};return s(this.callBase(),{tab:function(e){this.option("opened")&&(e.preventDefault(),this._colorView._rgbInputs[0].focus())},enter:this._enterKeyHandler,leftArrow:e,rightArrow:e,upArrow:t,downArrow:n})},_getDefaultOptions:function(){return s(this.callBase(),{editAlphaChannel:!1,applyValueMode:"useButtons",keyStep:1,fieldTemplate:null,onApplyButtonClick:null,onCancelButtonClick:null,buttonsLocation:"bottom after"})},_popupConfig:function(){return s(this.callBase(),{height:"auto",width:""})},_contentReadyHandler:function(){this._createColorView(),this._addPopupBottomClasses()},_addPopupBottomClasses:function(){var e=this._popup.bottomToolbar();e&&(e.addClass(m).addClass(v).find(".dx-toolbar-items-container").addClass(y),e.find(".dx-popup-done").addClass(x),e.find(".dx-popup-cancel").addClass(b))},_createColorView:function(){this._popup.overlayContent().addClass(_);var e=i("<div>").appendTo(this._popup.$content());this._colorView=this._createComponent(e,r,this._colorViewConfig()),o.on(e,"focus",function(){this.focus()}.bind(this))},_applyNewColor:function(e){this.option("value",e),e&&C.makeTransparentBackground(this._$colorResultPreview,e),this._colorViewEnterKeyPressed&&(this.close(),this._colorViewEnterKeyPressed=!1)},_colorViewConfig:function(){var e=this;return{value:e.option("value"),matchValue:e.option("value"),editAlphaChannel:e.option("editAlphaChannel"),applyValueMode:e.option("applyValueMode"),focusStateEnabled:e.option("focusStateEnabled"),stylingMode:this.option("stylingMode"),onEnterKeyPressed:function(){e._colorViewEnterKeyPressed=!0,e._colorView.option("value")!==e.option("value")&&(e._applyNewColor(e._colorView.option("value")),e.close())},onValueChanged:function(t){if(C.makeRgba(t.value)!==t.previousValue){var n="instantly"===e.option("applyValueMode");(n||e._colorViewEnterKeyPressed)&&e._applyNewColor(t.value)}},_keyboardProcessor:e._colorViewProcessor}},_enterKeyHandler:function(){var e=this._input().val(),t=this.option("value"),n=this.option("editAlphaChannel")?C.makeRgba(t):t;if(!e)return!1;var i=new a(e);if(i.colorIsInvalid)return void this._input().val(n);if(e!==n&&(this._applyColorFromInput(e),this.option("value",this.option("editAlphaChannel")?C.makeRgba(e):e)),this._colorView){var o=this._colorView.option("value");t!==o&&this.option("value",o)}return this.close(),!1},_applyButtonHandler:function(){this._applyNewColor(this._colorView.option("value")),l(this.option("onApplyButtonClick"))&&this.option("onApplyButtonClick")(),this.callBase()},_cancelButtonHandler:function(){this._resetInputValue(),l(this.option("onCancelButtonClick"))&&this.option("onCancelButtonClick")(),this.callBase()},_attachChildKeyboardEvents:function(){if(this._colorViewProcessor=this._keyboardProcessor.attachChildProcessor(),this._colorView)return void this._colorView.option("_keyboardProcessor",this._colorViewProcessor)},_init:function(){this.callBase()},_initMarkup:function(){this.$element().addClass(d),this.callBase()},_renderInput:function(){this.callBase(),this._input().addClass(h),this._renderColorPreview()},_renderColorPreview:function(){this.$element().wrapInner(i("<div>").addClass(p)),this._$colorBoxInputContainer=this.$element().children().eq(0),this._$colorResultPreview=i("<div>").addClass(f).appendTo(this._$textEditorInputContainer),this.option("value")?C.makeTransparentBackground(this._$colorResultPreview,this.option("value")):this._$colorBoxInputContainer.addClass(g)},_renderValue:function(){var e=this.option("value");return this.option("text",this.option("editAlphaChannel")?C.makeRgba(e):e),this.callBase()},_resetInputValue:function(){var e=this._input(),t=this.option("value");e.val(t),this._updateColorViewValue(t)},_updateColorViewValue:function(e){this._colorView&&this._colorView.option({value:e,matchValue:e})},_valueChangeEventHandler:function(e){var t=this._input().val();t&&(t=this._applyColorFromInput(t),this._updateColorViewValue(t)),this.callBase(e,t)},_applyColorFromInput:function(e){var t=new a(e);return t.colorIsInvalid&&(this._resetInputValue(),e=this.option("value")),e},_optionChanged:function(e){var t=e.value,n=e.name;switch(n){case"value":this._$colorBoxInputContainer.toggleClass(g,!t),t?C.makeTransparentBackground(this._$colorResultPreview,t):this._$colorResultPreview.removeAttr("style"),this._updateColorViewValue(t),this.callBase(e);break;case"applyButtonText":case"cancelButtonText":this.callBase(e),this._popup&&this._addPopupBottomClasses();break;case"editAlphaChannel":case"onCancelButtonClick":case"onApplyButtonClick":case"keyStep":this._colorView&&this._colorView.option(n,t);break;case"applyValueMode":this.callBase(e);break;case"rtlEnabled":this._colorView&&this._colorView.option(n,t),this.callBase(e);break;default:this.callBase(e)}}});u("dxColorBox",k),e.exports=k},function(e,t,n){var i=n(9),o=n(533);i("dxNumberBox",o),e.exports=o},function(e,t,n){var i=n(5),o=n(0).extend,a=n(1).isNumeric,r=n(26),s=n(16),l=n(29).fitIntoRange,u=n(29).inRange,c=n(4).escapeRegExp,d=n(51),h=n(534),p=n(278).getFormat,f=n(535),g=n(8),_=n(1),m="dxNumberFormatter",v=1,y=-1,x="-",b="minus",w="Subtract",C="input",k=r.msie?300:0,S=function(e,t){return void 0===e?t:e},I=f.inherit({_getDefaultOptions:function(){return o(this.callBase(),{useMaskBehavior:!0,format:null})},_isDeleteKey:function(e){return"del"===e},_supportedKeys:function(){if(!this._useMaskBehavior())return this.callBase();var e=this;return o(this.callBase(),{minus:e._revertSign.bind(e),del:e._removeHandler.bind(e),backspace:e._removeHandler.bind(e),leftArrow:e._arrowHandler.bind(e,y),rightArrow:e._arrowHandler.bind(e,v),home:e._moveCaretToBoundaryEventHandler.bind(e,v),enter:e._updateFormattedValue.bind(e),end:e._moveCaretToBoundaryEventHandler.bind(e,y)})},_focusInHandler:function(e){this.callBase(e),this.clearCaretTimeout(),this._caretTimeout=setTimeout(function(){this._caretTimeout=null;var t=this._caret();if(t.start===t.end&&this._useMaskBehavior()){var n=this._getInputVal(),i=d.getDecimalSeparator(),o=n.indexOf(i);o>=0?this._caret({start:o,end:o}):this._moveCaretToBoundaryEventHandler(y,e)}}.bind(this),k)},_focusOutHandler:function(e){this._focusOutOccurs=!0,this._useMaskBehavior()&&this._updateFormattedValue(),this.callBase(e),this._focusOutOccurs=!1},_hasValueBeenChanged:function(e){var t=this._getFormatPattern(),n=this.option("value"),i=this._format(n,t)||"";return i!==e},_updateFormattedValue:function(){var e=this._getInputVal();this._hasValueBeenChanged(e)&&(this._parsedValue=this._tryParse(e,this._caret()),this._adjustParsedValue(),this._setTextByParsedValue(),this._parsedValue!==this.option("value")&&i.trigger(this._input(),"change"))},_arrowHandler:function(e,t){if(this._useMaskBehavior()){var n=this._getInputVal(),i=this._getFormatPattern(),o=h.getCaretWithOffset(this._caret(),e);h.isCaretInBoundaries(o,n,i)||(o=e===v?o.end:o.start,
76t.preventDefault(),this._caret(h.getCaretInBoundaries(o,n,i)))}},_moveCaretToBoundary:function(e){var t=h.getCaretBoundaries(this._getInputVal(),this._getFormatPattern()),n=h.getCaretWithOffset(e===v?t.start:t.end,0);this._caret(n)},_moveCaretToBoundaryEventHandler:function(e,t){!this._useMaskBehavior()||t&&t.shiftKey||(this._moveCaretToBoundary(e),t&&t.preventDefault())},_shouldMoveCaret:function(e,t){var n=d.getDecimalSeparator(),i=e.charAt(t.end)===n,o="0"===e.charAt(t.end),a=(this._lastKey===n||"."===this._lastKey)&&i,r="0"===this._lastKey&&o;return a||r},_getInputVal:function(){return d.convertDigits(this._input().val(),!0)},_keyboardHandler:function(e){if(this.clearCaretTimeout(),this._lastKey=d.convertDigits(g.getChar(e),!0),this._lastKeyName=g.normalizeKeyName(e),!this._shouldHandleKey(e.originalEvent))return this.callBase(e);var t=this._getInputVal(),n=this._caret(),i=this._lastKeyName===b?"":this._lastKey,o=this._tryParse(t,n,i);return void 0===o?(this._lastKeyName!==b&&e.originalEvent.preventDefault(),this._shouldMoveCaret(t,n)&&this._moveCaret(1)):this._parsedValue=o,this.callBase(e)},_keyPressHandler:function(e){this._useMaskBehavior()||this.callBase(e)},_removeHandler:function(e){var t=this._caret(),n=this._getInputVal(),i=t.start,o=t.end;this._lastKey=g.getChar(e),this._lastKeyName=g.normalizeKeyName(e);var a=this._isDeleteKey(this._lastKeyName),r=!a;if(i===o){var s=i,l=r&&s>0||a&&s<n.length;if(!l)return void e.preventDefault();a&&o++,r&&i--}var u=n.slice(i,o);if(this._isStub(u))return this._moveCaret(a?1:-1),(this._parsedValue<0||1/this._parsedValue===-(1/0))&&(this._revertSign(e),this._setTextByParsedValue()),void e.preventDefault();var c=d.getDecimalSeparator();if(u===c){var h=n.indexOf(c);return void(this._isNonStubAfter(h+1)&&(this._moveCaret(a?1:-1),e.preventDefault()))}if(o-i<n.length){var p=this._replaceSelectedText(n,{start:i,end:o},""),f=p.search(/[0-9]/)<0;if(f&&this._isValueInRange(0))return void(this._parsedValue=this._parsedValue<0||1/this._parsedValue===-(1/0)?-0:0)}var _=this._tryParse(n,{start:i,end:o},"");void 0===_?e.preventDefault():this._parsedValue=_},_isPercentFormat:function(){var e=this._getFormatPattern(),t=e.replace(/'[^']+'/g,"");return t.indexOf("%")!==-1},_parse:function(e,t){var n=this.option("format"),i=_.isFunction(n.parser),o=i?n.parser:d.parse;return o(e,t)},_format:function(e,t){var n=this.option("format"),i=_.isFunction(n.formatter),o=i?n.formatter:d.format;return o(e,t)},_getFormatPattern:function(){var e=this.option("format"),t="string"==typeof e&&(e.indexOf("0")>=0||e.indexOf("#")>=0);return t?e:p(function(t){var n=this._format(t,e);return d.convertDigits(n,!0)}.bind(this))},_getFormatForSign:function(e){var t=this._getFormatPattern(),n=t.split(";"),i=d.getSign(e,t);return n[1]=n[1]||"-"+n[0],i<0?n[1]:n[0]},_removeStubs:function(e,t){var n=this._getFormatForSign(e),i=d.getThousandsSeparator(),o=n.replace(/[#0.,]/g,""),a=new RegExp("[-"+c((t?"":i)+o)+"]","g");return e.replace(a,"")},_truncateToPrecision:function(e,t){if(_.isDefined(e)){var n=e.toString(),i=n.indexOf(".");if(n&&i>-1){var o=parseFloat(n.substr(0,i+t+1));return isNaN(o)?e:o}}return e},_tryParse:function(e,t,n){var i=this._replaceSelectedText(e,t,n),o=this._getFormatPattern(),a=t.start!==t.end,r=this._parse(i,o),s=this._getPrecisionLimits(o,i).max,l=r!==this._parsedValue,u=d.getDecimalSeparator(),c=n===u&&0===s,h=!a&&!l&&n!==x&&!this._isValueIncomplete(i)&&this._isStub(n);if(!c&&!h&&(""===this._removeStubs(i)&&(r=0*this._parsedValue),!isNaN(r))){var p=null===r?this._parsedValue:r;return r=this._truncateToPrecision(p,s),this._isPercentFormat()?r&&r/100:r}},_isValueIncomplete:function(e){if(!this._useMaskBehavior())return this.callBase(e);var t=this._caret(),n=d.getDecimalSeparator(),i=e.indexOf(n),o=i>=0&&i<t.start,a=this._removeStubs(e,!0).split(n);if(!o||2!==a.length)return!1;var r=a[1].length,s=this._getPrecisionLimits(this._getFormatPattern(),e),l=u(r,s.min,s.max),c="0"===a[1].charAt(r-1);return l&&(c||!r)},_isValueInRange:function(e){var t=S(this.option("min"),-(1/0)),n=S(this.option("max"),1/0);return u(e,t,n)},_setInputText:function(e){var t=d.convertDigits(e,!0),n=h.getCaretAfterFormat(this._getInputVal(),t,this._caret(),this._getFormatPattern());this._input().val(e),this._toggleEmptinessEventHandler(),this._formattedValue=e,this._focusOutOccurs||this._caret(n)},_useMaskBehavior:function(){return!!this.option("format")&&this.option("useMaskBehavior")},_renderInputType:function(){var e="number"===this.option("mode"),t="desktop"===s.real().deviceType;this._useMaskBehavior()&&e?this._setInputType(t||this._isSupportInputMode()?"text":"tel"):this.callBase()},_isChar:function(e){return"string"==typeof e&&1===e.length},_moveCaret:function(e){if(e){var t=h.getCaretWithOffset(this._caret(),e),n=h.getCaretInBoundaries(t,this._getInputVal(),this._getFormatPattern());this._caret(n)}},_shouldHandleKey:function(e){var t=g.normalizeKeyName(e),n=e.ctrlKey||e.shiftKey||e.altKey||!this._isChar(t),i=t===b,o=this._useMaskBehavior();return o&&!n&&!i},_renderInput:function(){this.callBase(),this._renderFormatter()},_renderFormatter:function(){this._clearCache(),this._detachFormatterEvents(),this._useMaskBehavior()&&this._attachFormatterEvents()},_detachFormatterEvents:function(){i.off(this._input(),"."+m)},_isInputFromPaste:function(e){var t=e.originalEvent&&e.originalEvent.inputType;return _.isDefined(t)?"insertFromPaste"===t:this._isValuePasted},_attachFormatterEvents:function(){var e=this._input();i.on(e,g.addNamespace(C,m),function(e){this._formatValue(e),this._isValuePasted=!1}.bind(this)),r.msie&&r.version<12&&i.on(e,g.addNamespace("paste",m),function(){this._isValuePasted=!0}.bind(this)),i.on(e,g.addNamespace("dxclick",m),function(){this._caretTimeout||(this._caretTimeout=setTimeout(function(){this._caret(h.getCaretInBoundaries(this._caret(),this._getInputVal(),this._getFormatPattern()))}.bind(this),k))}.bind(this)),i.on(e,"dxdblclick",function(){this.clearCaretTimeout()}.bind(this))},clearCaretTimeout:function(){clearTimeout(this._caretTimeout),this._caretTimeout=null},_forceRefreshInputValue:function(){if(!this._useMaskBehavior())return this.callBase()},_isNonStubAfter:function(e,t){return t=(t||this._getInputVal()).slice(e),t&&!this._isStub(t,!0)},_isStub:function(e,t){var n=c(d.getDecimalSeparator()),i="^[^0-9"+n+"]+$",o=new RegExp(i,"g");return o.test(e)&&(t||this._isChar(e))},_parseValue:function(e){return this._useMaskBehavior()?this._parsedValue:this.callBase(e)},_getPrecisionLimits:function(e){var t=this._getFormatForSign(e),n=(t.split(".")[1]||"").replace(/[^#0]/g,""),i=n.replace(/^(0*)#*/,"$1").length,o=n.length;return{min:i,max:o}},_revertSign:function(e){if(this._useMaskBehavior()){var t=this._caret();if(t.start!==t.end){if(g.normalizeKeyName(e)===b)return void this._applyRevertedSign(e,t,!0);this._caret(h.getCaretInBoundaries(0,this._getInputVal(),this._getFormatPattern()))}this._applyRevertedSign(e,t)}},_applyRevertedSign:function(e,t,n){var o=-1*S(this._parsedValue,null);if(this._isValueInRange(o)){if(this._parsedValue=o,n){var a=this._getFormatPattern(),s=this._getInputVal();this._setTextByParsedValue(),e.preventDefault();var l=this._getInputVal(),u=h.getCaretOffset(s,l,a);t=h.getCaretWithOffset(t,u);var c=h.getCaretInBoundaries(t,l,a);r.msie?(clearTimeout(this._caretTimeout),this._caretTimeout=setTimeout(this._caret.bind(this,c))):this._caret(c)}e.key===w&&i.trigger(this._input(),C)}},_removeMinusFromText:function(e,t){var n=this._lastKeyName===b&&e.charAt(t.start-1)===x;return n?this._replaceSelectedText(e,{start:t.start-1,end:t.start},""):e},_setTextByParsedValue:function(){var e=this._getFormatPattern(),t=this._parseValue(),n=this._format(t,e)||"";this._setInputText(n)},_formatValue:function(e){var t=this._getInputVal(),n=this._caret(),i=this._removeMinusFromText(t,n),o=i!==t;if(t=i,!this._isInputFromPaste(e)&&this._isValueIncomplete(i))return this._formattedValue=t,void(o&&this._setTextByParsedValue());var a=d.convertDigits(this._formattedValue,!0)!==t;if(a){var r=this._tryParse(t,n,"");_.isDefined(r)&&(this._parsedValue=r)}this._setTextByParsedValue()},_renderDisplayText:function(){this._useMaskBehavior()?this._toggleEmptinessEventHandler():this.callBase.apply(this,arguments)},_renderValue:function(){return this._useMaskBehavior()&&(this._parsedValue=this.option("value"),this._setTextByParsedValue()),this.callBase()},_adjustParsedValue:function(){if(this._useMaskBehavior()){var e=this._removeStubs(this._getInputVal()),t=e?this._parseValue():null;return a(t)?void(this._parsedValue=l(t,this.option("min"),this.option("max"))):void(this._parsedValue=t)}},_valueChangeEventHandler:function(e){if(!this._useMaskBehavior())return this.callBase(e);var t=this._caret();this._saveValueChangeEvent(e),this._lastKey=null,this._lastKeyName=null,this._adjustParsedValue(),this.option("value",this._parsedValue),t&&this._caret(t)},_optionChanged:function(e){switch(e.name){case"format":case"useMaskBehavior":this._renderFormatter(),this._renderValue();break;case"min":case"max":this._adjustParsedValue(),this.callBase(e);break;default:this.callBase(e)}},_optionValuesEqual:function(e,t,n){return"value"===e&&0===t&&0===n?1/t===1/n:this.callBase.apply(this,arguments)},_clearCache:function(){delete this._formattedValue,delete this._lastKey,delete this._lastKeyName,delete this._parsedValue,delete this._focusOutOccurs,clearTimeout(this._caretTimeout),delete this._caretTimeout},_clean:function(){this._clearCache(),this.callBase()}});e.exports=I},function(e,t,n){var i=n(29).fitIntoRange,o=n(4).escapeRegExp,a=n(51),r=function(e,t){var n=t.split(";"),i=a.getSign(e,t);n[1]=n[1]||"-"+n[0],t=n[i<0?1:0];var o=function(e){return e.replace(/'([^']*)'/g,function(e){return e.split("").map(function(){return" "}).join("").substr(2)})};t=o(t);var r=/^[^#0.,]*/.exec(t)[0].length,s=/[^#0.,]*$/.exec(t)[0].length;return{start:r,end:e.length-s}},s=function(e,t){var n=a.getDecimalSeparator(),i=new RegExp("[^0-9"+o(n)+"]","g"),r=t.slice(0,e);return r.replace(i,"").length},l=function(e){return e.split("").reverse().join("")},u=function(e,t){if(!e)return-1;for(var n=/[0-9]/g,i=1,o=null,a=n.exec(t);a;){if(o=a.index,!e||i>=e)return o;i++,a=n.exec(t)}return null===o?t.length:o},c=function(e,t){return void 0===e.start&&(e={start:e,end:e}),{start:e.start+t,end:e.end+t}},d=function(e,t,n,i){n=c(n,0);var o=a.getDecimalSeparator(),r=e.indexOf(o),d=t.indexOf(o),h=e.split(o),f=t.split(o),g=r!==-1&&n.start>r;if(g){var _=n.start-r-1,m=s(_,h[1]),v=f[1]?d+1+u(m,f[1])+1:t.length;return p(v,t,i)}var y=h[0].length-n.start,x=s(y,l(h[0])),b=u(x,l(f[0])),w=f[0].length-(b+1);return p(w,t,i)},h=function(e,t,n){e=c(e,0);var i=p(e,t,n);return e.start>=i.start&&e.end<=i.end},p=function(e,t,n){e=c(e,0);var o=r(t,n),a={start:i(e.start,o.start,o.end),end:i(e.end,o.start,o.end)};return a},f=function(e,t,n){var i=r(e,n),o=r(t,n);return o.start-i.start};t.getCaretBoundaries=r,t.isCaretInBoundaries=h,t.getCaretWithOffset=c,t.getCaretInBoundaries=p,t.getCaretAfterFormat=d,t.getCaretOffset=f},function(e,t,n){var i=n(2),o=n(11),a=n(5),r=n(4),s=n(29),l=n(0).extend,u=n(13).inArray,c=n(16),d=n(26),h=n(294),p=n(8),f=n(536).default,g=n(14),_=n(6).Deferred,m=Math,v="dx-numberbox",y=["tab","del","backspace","leftArrow","rightArrow","home","end","enter"],x=h.inherit({_supportedKeys:function(){return l(this.callBase(),{upArrow:function(e){e.preventDefault(),e.stopPropagation(),this._spinUpChangeHandler(e)},downArrow:function(e){e.preventDefault(),e.stopPropagation(),this._spinDownChangeHandler(e)},enter:function(){}})},_getDefaultOptions:function(){return l(this.callBase(),{value:0,min:void 0,max:void 0,step:1,showSpinButtons:!1,useLargeSpinButtons:!0,mode:"text",invalidValueMessage:g.format("dxNumberBox-invalidValueMessage"),buttons:void 0})},_getDefaultButtons:function(){return this.callBase().concat([{name:"spins",Ctor:f}])},_isSupportInputMode:function(){var e=parseFloat(d.version);return d.chrome&&e>=66||d.safari&&e>=12||d.msie&&e>=75},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return c.real().generic&&!c.isSimulator()},options:{useLargeSpinButtons:!1}},{device:function(){return"generic"!==c.real().platform&&!this._isSupportInputMode()}.bind(this),options:{mode:"number"}}])},_initMarkup:function(){this._renderSubmitElement(),this.$element().addClass(v),this.callBase()},_applyInputAttributes:function(e,t){e.attr("inputmode","decimal"),this.callBase(e,t)},_renderContentImpl:function(){this.option("isValid")&&this._validateValue(this.option("value")),this.setAria("role","spinbutton")},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(e){this._getSubmitElement().val(r.applyServerDecimalSeparator(e))},_getSubmitElement:function(){return this._$submitElement},_keyPressHandler:function(e){this.callBase(e);var t=p.getChar(e),n=/[\d.,eE\-+]|Subtract/,i=n.test(t);if(!i){var o=p.normalizeKeyName(e);if(e.metaKey||e.ctrlKey||o&&u(o,y)>=0)return;return e.preventDefault(),!1}this._keyPressed=!0},_onMouseWheel:function(e){e.delta>0?this._spinValueChange(1,e):this._spinValueChange(-1,e)},_renderValue:function(){var e=this._input().val();e.length&&Number(e)===this.option("value")||(this._forceValueRender(),this._toggleEmptinessEventHandler());var t=this.option("value");return this.setAria("valuenow",t),this.option("text",this._input().val()),this._updateButtons(),(new _).resolve()},_forceValueRender:function(){var e=this.option("value"),t=Number(e),n=isNaN(t)?"":this._applyValueFormat(e);this._renderDisplayText(n)},_applyValueFormat:function(e){return this.option("valueFormat")(e)},_renderProps:function(){this.callBase(),this._input().prop({min:this.option("min"),max:this.option("max"),step:this.option("step")}),this.setAria({valuemin:r.ensureDefined(this.option("min"),""),valuemax:r.ensureDefined(this.option("max"),"")})},_spinButtonsPointerDownHandler:function(){var e=this._input();this.option("useLargeSpinButtons")||o.getActiveElement()===e[0]||a.trigger(e,"focus")},_spinUpChangeHandler:function(e){this.option("readOnly")||this._spinValueChange(1,e.event||e)},_spinDownChangeHandler:function(e){this.option("readOnly")||this._spinValueChange(-1,e.event||e)},_spinValueChange:function(e,t){var n=parseFloat(this.option("step"));if(0!==n){var i=parseFloat(this._normalizeInputValue())||0;i=this._correctRounding(i,n*e);var o=this.option("min"),a=this.option("max");void 0!==o&&(i=Math.max(o,i)),void 0!==a&&(i=Math.min(a,i)),this._saveValueChangeEvent(t),this.option("value",i)}},_correctRounding:function(e,t){var n=/[,.](.*)/,i=n.test(e),o=n.test(t);if(i||o){var a=i?n.exec(e)[0].length:0,r=o?n.exec(t)[0].length:0,s=m.max(a,r);return e=this._round(e+t,s)}return e+t},_round:function(e,t){t=t||0;var n=Math.pow(10,t);return e*=n,e=Math.round(e)/n},_renderValueChangeEvent:function(){this.callBase(),a.on(this._input(),"focusout",this._forceRefreshInputValue.bind(this))},_forceRefreshInputValue:function(){if("number"!==this.option("mode")){var e=this._input(),t=this._applyValueFormat(this.option("value"));e.val(null),e.val(t)}},_valueChangeEventHandler:function(e){var t=this._input(),n=this._normalizeText(),i=this._parseValue(n),o="."!==n&&"-"!==n;return this._isValueValid()&&!this._validateValue(i)?void t.val(this._applyValueFormat(i)):(o&&this.callBase(e,isNaN(i)?null:i),this._applyValueBoundaries(n,i),void this.validationRequest.fire({value:i,editor:this}))},_applyValueBoundaries:function(e,t){var n=this._isValueIncomplete(e),i=this._isValueInRange(e);n||i||null===t||Number(e)!==t&&this._input().val(this._applyValueFormat(t))},_replaceCommaWithPoint:function(e){return e.replace(",",".")},_inputIsInvalid:function(){var e="number"===this.option("mode"),t=this._input().get(0).validity;return e&&t&&t.badInput},_renderDisplayText:function(e){this._inputIsInvalid()||this.callBase(e)},_isValueIncomplete:function(e){var t=/(^-$)|(^-?\d*\.$)|(\d+e-?$)/i;return t.test(e)},_isValueInRange:function(e){return s.inRange(e,this.option("min"),this.option("max"))},_isNumber:function(e){return null!==this._parseValue(e)},_validateValue:function(e){var t=this._normalizeText(),n=this._isValueValid(),i=!0,o=this._isNumber(t);return isNaN(Number(e))&&(i=!1),!e&&n?i=!0:o||n||(i=!1),this.option({isValid:i,validationError:i?null:{editorSpecific:!0,message:this.option("invalidValueMessage")}}),i},_normalizeInputValue:function(){return this._parseValue(this._normalizeText())},_normalizeText:function(){var e=this._input().val().trim();return this._replaceCommaWithPoint(e)},_parseValue:function(e){var t=parseFloat(e);return isNaN(t)?null:s.fitIntoRange(t,this.option("min"),this.option("max"))},reset:function(){null===this.option("value")?(this.option("text",""),this._renderValue()):this.option("value",null)},_optionChanged:function(e){switch(e.name){case"value":this._validateValue(e.value),this._setSubmitValue(e.value),this.callBase(e),this._resumeValueChangeAction();break;case"step":this._renderProps();break;case"min":case"max":this._renderProps(),this.option("value",this._parseValue(this.option("value")));break;case"showSpinButtons":case"useLargeSpinButtons":this._updateButtons(["spins"]);break;case"invalidValueMessage":break;default:this.callBase(e)}}});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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(5),h=i(d),p=n(188),f=i(p),g=n(537),_=i(g),m=n(8),v=n(24),y=n(0),x="dx-numberbox-spin",b="dx-numberbox-spin-container",w="dx-numberbox-spin-touch-friendly",C=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_attachEvents",value:function(e,t){var n=this.editor,i=(0,m.addNamespace)(v.down,n.NAME),o=t.children(),a=n._createAction(function(e){return n._spinButtonsPointerDownHandler(e)});h.default.off(t,i),h.default.on(t,i,function(e){return a({event:e})}),_.default.getInstance(o.eq(0)).option("onChange",function(e){return n._spinUpChangeHandler(e)}),_.default.getInstance(o.eq(1)).option("onChange",function(e){return n._spinDownChangeHandler(e)})}},{key:"_create",value:function(){var e=this.editor,t=(0,c.default)("<div>").addClass(b),n=(0,c.default)("<div>").appendTo(t),i=(0,c.default)("<div>").appendTo(t),o=this._getOptions();return this._addToContainer(t),e._createComponent(n,_.default,(0,y.extend)({direction:"up"},o)),e._createComponent(i,_.default,(0,y.extend)({direction:"down"},o)),this._legacyRender(e.$element(),this._isTouchFriendly(),o.visible),{instance:t,$element:t}}},{key:"_getOptions",value:function(){var e=this.editor,t=this._isVisible(),n=e.option("disabled");return{visible:t,disabled:n}}},{key:"_isVisible",value:function(){var e=this.editor;return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_isVisible",this).call(this)&&e.option("showSpinButtons")}},{key:"_isTouchFriendly",value:function(){var e=this.editor;return e.option("showSpinButtons")&&e.option("useLargeSpinButtons")}},{key:"_legacyRender",value:function(e,t,n){e.toggleClass(w,t),e.toggleClass(x,n)}},{key:"update",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this);if(e){var n=this.editor,i=this.instance,o=n.$element(),a=this._isVisible(),r=this._isTouchFriendly(),s=i.children(),u=_.default.getInstance(s.eq(0)),c=_.default.getInstance(s.eq(1)),d=this._getOptions();u.option(d),c.option(d),this._legacyRender(o,r,a)}}}]),t}(f.default);t.default=C},function(e,t,n){var i=n(2),o=n(11),a=n(5),r=n(18),s=n(0).extend,l=n(8),u=n(24),c=n(129),d=n(89),h=n(6).Deferred,p="dx-numberbox-spin",f="dx-numberbox-spin-button",g=100,_="dxNumberBox",m=l.addNamespace(u.up,_),v=l.addNamespace(u.cancel,_),y=r.inherit({_getDefaultOptions:function(){return s(this.callBase(),{direction:"up",onChange:null,activeStateEnabled:!0,hoverStateEnabled:!0})},_initMarkup:function(){this.callBase();var e=p+"-"+this.option("direction");this.$element().addClass(f).addClass(e),this._spinIcon=i("<div>").addClass(e+"-icon").appendTo(this.$element())},_render:function(){this.callBase();var e=l.addNamespace(u.down,this.NAME),t=this.$element();a.off(t,e),a.on(t,e,this._spinDownHandler.bind(this)),this._spinChangeHandler=this._createActionByOption("onChange")},_spinDownHandler:function(e){e.preventDefault(),this._clearTimer(),a.on(this.$element(),d.name,function(){this._feedBackDeferred=new h,c.lock(this._feedBackDeferred),this._spinChangeHandler({event:e}),this._holdTimer=setInterval(this._spinChangeHandler,g,{event:e})}.bind(this));var t=o.getDocument();a.on(t,m,this._clearTimer.bind(this)),a.on(t,v,this._clearTimer.bind(this)),this._spinChangeHandler({event:e})},_dispose:function(){this._clearTimer(),this.callBase()},_clearTimer:function(){a.off(this.$element(),d.name);var e=o.getDocument();a.off(e,m),a.off(e,v),this._feedBackDeferred&&this._feedBackDeferred.resolve(),this._holdTimer&&clearInterval(this._holdTimer)},_optionChanged:function(e){switch(e.name){case"onChange":case"direction":this._invalidate();break;default:this.callBase(e)}}});e.exports=y},function(e,t,n){var i=n(9),o=n(539);i("dxDateBox",o),e.exports=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(8),a=n(1),r=n(12),s=n(0),l=n(29),u=n(5),c=i(u),d=n(540),h=n(33),p=i(h),f=n(210),g=n(184),_=n(541),m=i(_),v="dateBoxMask",y=1,x=-1,b=m.default.inherit({_supportedKeys:function(e){var t=this,n=this.callBase(e),i=function(e){return n[(0,o.normalizeKeyName)(e)].apply(t,[e])},a=function(e,n){return t._shouldUseOriginalHandler(e)?i.apply(t,[e]):n.apply(t,[e])};return(0,s.extend)({},n,{del:function(e){return a(e,function(e){t._revertPart(y),t._isAllSelected()||e.preventDefault()})},backspace:function(e){return a(e,function(e){t._revertPart(x),t._isAllSelected()||e.preventDefault()})},home:function(e){return a(e,function(e){t._selectFirstPart(),e.preventDefault()})},end:function(e){return a(e,function(e){t._selectLastPart(),e.preventDefault()})},escape:function(e){return a(e,function(e){t._revertChanges(e)})},enter:function(e){return a(e,function(e){t._enterHandler(e)})},leftArrow:function(e){return a(e,function(e){t._selectNextPart(x),e.preventDefault()})},rightArrow:function(e){return a(e,function(e){t._selectNextPart(y),e.preventDefault()})},upArrow:function(e){return a(e,function(e){t._upDownArrowHandler(y),e.preventDefault()})},downArrow:function(e){return a(e,function(e){t._upDownArrowHandler(x),e.preventDefault()})}})},_shouldUseOriginalHandler:function(e){return!this._useMaskBehavior()||this.option("opened")||e&&e.altKey},_upDownArrowHandler:function(e){this._setNewDateIfEmpty();var t=this._getActivePartValue(this._initialMaskValue),n=this._getActivePartValue(),i=n-t;this._loadMaskValue(this._initialMaskValue),this._partIncrease(i+e)},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{useMaskBehavior:!1,emptyDateValue:new Date(2e3,0,1,0,0,0),advanceCaret:!0})},_isSingleCharKey:function(e){var t=e.originalEvent.key;return"string"==typeof t&&1===t.length&&!e.ctrl&&!e.alt},_keyboardHandler:function(e){var t=e.originalEvent.key,n=this.callBase(e);return this._useMaskBehavior()&&this._isSingleCharKey(e)?(this._isAllSelected()&&(this._activePartIndex=0),this._setNewDateIfEmpty(),isNaN(parseInt(t))?this._searchString(t):this._searchNumber(t),e.originalEvent.preventDefault(),n):n},_isAllSelected:function(){var e=this._caret();return e.end-e.start===this.option("text").length},_getFormatPattern:function(){if(this._formatPattern)return this._formatPattern;var e=this._strategy.getDisplayFormat(this.option("displayFormat")),t=(0,a.isString)(e)&&!p.default._getPatternByFormat(e);return t?this._formatPattern=e:this._formatPattern=(0,g.getFormat)(function(t){return p.default.format(t,e)}),this._formatPattern},_setNewDateIfEmpty:function(){this._maskValue||(this._maskValue=new Date,this._initialMaskValue=new Date,this._renderDateParts())},_searchNumber:function(e){var t=this._getActivePartLimits(),n=t.max,i=String(n).length,o=this._getActivePartProp("pattern").length;if(this._searchValue=(this._searchValue+e).substr(-i),isNaN(this._searchValue)&&(this._searchValue=e),this._setActivePartValue(this._searchValue),this.option("advanceCaret")){var a=1===o,r=a?i:Math.min(o,i),s=this._searchValue.length===r,l=parseInt(this._searchValue+"0")>n;(s||l)&&this._selectNextPart(y)}},_searchString:function(e){if(isNaN(parseInt(this._getActivePartProp("text")))){for(var t=this._getActivePartProp("limits")(this._maskValue),n=this._searchValue+e.toLowerCase(),i=t.max-t.min,o=0;o<=i;o++)if(this._loadMaskValue(this._initialMaskValue),this._partIncrease(o+1),0===this._getActivePartProp("text").toLowerCase().indexOf(n))return void(this._searchValue=n);this._setNewDateIfEmpty(),this._searchValue&&(this._clearSearchValue(),this._searchString(e))}},_clearSearchValue:function(){this._searchValue=""},_revertPart:function(e){if(!this._isAllSelected()){var t=this._getActivePartValue(this.option("emptyDateValue"));this._setActivePartValue(t),this._selectNextPart(e)}this._clearSearchValue()},_useMaskBehavior:function(){return this.option("useMaskBehavior")&&"text"===this.option("mode")},_initMaskState:function(){this._activePartIndex=0,this._formatPattern=null,this._regExpInfo=(0,f.getRegExpInfo)(this._getFormatPattern(),p.default),this._loadMaskValue()},_renderMask:function(){this.callBase(),this._detachMaskEvents(),this._clearMaskState(),this._useMaskBehavior()&&(this._attachMaskEvents(),this._initMaskState(),this._renderDateParts())},_renderDateParts:function(){if(this._useMaskBehavior()){var e=this.option("text")||this._getDisplayedText(this._maskValue);e&&(this._dateParts=(0,d.renderDateParts)(e,this._regExpInfo),this._selectNextPart())}},_detachMaskEvents:function(){c.default.off(this._input(),"."+v)},_attachMaskEvents:function(){var e=this;c.default.on(this._input(),(0,o.addNamespace)("dxclick",v),this._maskClickHandler.bind(this)),c.default.on(this._input(),(0,o.addNamespace)("paste",v),this._maskPasteHandler.bind(this)),c.default.on(this._input(),(0,o.addNamespace)("drop",v),function(){e._renderDisplayText(e._getDisplayedText(e._maskValue)),e._selectNextPart()})},_selectLastPart:function(){this.option("text")&&(this._activePartIndex=this._dateParts.length,this._selectNextPart(x))},_selectFirstPart:function(){this.option("text")&&(this._activePartIndex=-1,this._selectNextPart(y))},_onMouseWheel:function(e){this._useMaskBehavior()&&this._partIncrease(e.delta>0?y:x,e)},_selectNextPart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.option("text")){e&&(this._initialMaskValue=new Date(this._maskValue));var t=(0,l.fitIntoRange)(this._activePartIndex+e,0,this._dateParts.length-1);if(this._dateParts[t].isStub){var n=0===t&&e<0||t===this._dateParts.length-1&&e>0;if(!n)return void this._selectNextPart(e>=0?e+1:e-1);t=this._activePartIndex}this._activePartIndex!==t&&this._clearSearchValue(),this._activePartIndex=t,this._caret(this._getActivePartProp("caret"))}},_getActivePartLimits:function(){var e=this._getActivePartProp("limits");return e(this._maskValue)},_getActivePartValue:function(e){e=e||this._maskValue;var t=this._getActivePartProp("getter");return(0,a.isFunction)(t)?t(e):e[t]()},_addLeadingZeroes:function(e){var t=this._searchValue.match(/^0+/),n=this._getActivePartLimits(),i=String(n.max).length;return((t&&t[0]||"")+String(e)).substr(-i)},_setActivePartValue:function(e,t){t=t||this._maskValue;var n=this._getActivePartProp("setter"),i=this._getActivePartLimits();e=(0,l.inRange)(e,i.min,i.max)?e:e%10,e=this._addLeadingZeroes((0,l.fitIntoRange)(e,i.min,i.max)),(0,a.isFunction)(n)?n(t,e):t[n](e),this._renderDisplayText(this._getDisplayedText(t)),this._renderDateParts()},_getActivePartProp:function(e){if(this._dateParts&&this._dateParts[this._activePartIndex])return this._dateParts[this._activePartIndex][e]},_loadMaskValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dateOption("value");this._maskValue=e&&new Date(e),this._initialMaskValue=e&&new Date(e)},_saveMaskValue:function(){var e=this._maskValue&&new Date(this._maskValue);this._initialMaskValue=new Date(e),this.dateOption("value",e)},_revertChanges:function(){this._loadMaskValue(),this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts()},_renderDisplayText:function(e){this.callBase(e),this._useMaskBehavior()&&this.option("text",e)},_partIncrease:function(e){this._setNewDateIfEmpty();var t=this._getActivePartLimits(),n=t.max,i=t.min,o=n-i;1===o&&o++;var a=e+this._getActivePartValue();a>n?a=this._applyLimits(a,{limitBase:i,limitClosest:n,limitDelta:o}):a<i&&(a=this._applyLimits(a,{limitBase:n,limitClosest:i,limitDelta:o})),this._setActivePartValue(a)},_applyLimits:function(e,t){var n=t.limitBase,i=t.limitClosest,o=t.limitDelta,a=(e-i)%o;return a?n+a-1*(0,l.sign)(a):i},_maskClickHandler:function(){this.option("text")&&(this._activePartIndex=(0,d.getDatePartIndexByPosition)(this._dateParts,this._caret().start),this._caret(this._getActivePartProp("caret")))},_maskPasteHandler:function(e){var t=this._replaceSelectedText(this.option("text"),this._caret(),(0,r.clipboardText)(e)),n=p.default.parse(t,this._getFormatPattern());n&&(this._maskValue=n,this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts(),this._selectNextPart()),e.preventDefault()},_isValueDirty:function(){var e=this.dateOption("value");return(this._maskValue&&this._maskValue.getTime())!==(e&&e.getTime())},_fireChangeEvent:function(){this._clearSearchValue(),this._isValueDirty()&&c.default.trigger(this._input(),"change")},_enterHandler:function(e){this._fireChangeEvent(),this._selectNextPart(y),e.preventDefault()},_focusOutHandler:function(e){this.callBase(e),this._useMaskBehavior()&&(this._fireChangeEvent(),this._selectFirstPart(e))},_valueChangeEventHandler:function(e){this._useMaskBehavior()?(this._saveValueChangeEvent(e),this.option("text")||(this._maskValue=null),this._saveMaskValue()):this.callBase(e)},_optionChanged:function(e){switch(e.name){case"useMaskBehavior":this._renderMask();break;case"displayFormat":case"mode":this.callBase(e),this._renderMask();break;case"value":this._loadMaskValue(),this.callBase(e),this._renderDateParts();break;case"advanceCaret":case"emptyDateValue":break;default:this.callBase(e)}},_clearMaskState:function(){this._clearSearchValue(),delete this._dateParts,delete this._activePartIndex,delete this._maskValue},reset:function(){this.callBase(),this._clearMaskState(),this._activePartIndex=0},_clean:function(){this.callBase(),this._detachMaskEvents(),this._clearMaskState()}});e.exports=b},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.renderDateParts=t.getDatePartIndexByPosition=void 0;var i=n(210),o=n(0),a=n(29),r=n(4),s=function(e){return e.getMonth()+1;
77},l=function(e,t){var n=e.getDate(),i=p("M",e),o=(0,a.fitIntoRange)(parseInt(t),i.min,i.max);e.setMonth(o-1,1);var r=p("dM",e),s=r.min,l=r.max,u=(0,a.fitIntoRange)(n,s,l);e.setDate(u)},u={a:function(e){return e.getHours()<12?0:1},E:"getDay",y:"getFullYear",M:s,L:s,d:"getDate",H:"getHours",h:"getHours",m:"getMinutes",s:"getSeconds",S:"getMilliseconds"},c=(0,o.extend)({},(0,i.getPatternSetters)(),{a:function(e,t){var n=e.getHours(),i=n>=12;i!==!!parseInt(t)&&e.setHours((n+12)%24)},d:function(e,t){var n=p("dM",e).max;t>n&&e.setMonth(e.getMonth()+1),e.setDate(t)},M:l,L:l,E:function(e,t){t<0||e.setDate(e.getDate()-e.getDay()+parseInt(t))},y:function(e,t){var n=e.getFullYear(),i=String(t).length,o=String(p("y",e).max).length,a=parseInt(String(n).substr(0,o-i)+t);e.setFullYear(a)}}),d=function(e){var t=function(){return e};return u[e]||t},h=function(e,t){for(var n=t.regexp.exec(e),i=0,o=0,a=[],s=1;s<n.length;s++){i=o,o=i+n[s].length;var l=t.patterns[s-1].replace(/^'|'$/g,""),u=d(l[0]);a.push({index:s-1,isStub:l===n[s],caret:{start:i,end:o},pattern:l,text:n[s],limits:p.bind(void 0,l[0]),setter:c[l[0]]||r.noop,getter:u})}return a},p=function(e,t){var n={y:{min:0,max:9999},M:{min:1,max:12},L:{min:1,max:12},d:{min:1,max:31},dM:{min:1,max:new Date(t.getFullYear(),t.getMonth()+1,0).getDate()},E:{min:0,max:6},H:{min:0,max:23},h:{min:0,max:23},m:{min:0,max:59},s:{min:0,max:59},S:{min:0,max:999},a:{min:0,max:1}};return n[e]||n.getAmPm},f=function(e,t){for(var n=0;n<e.length;n++){var i=e[n].caret.end>=t;if(!e[n].isStub&&i)return n}return null};t.getDatePartIndexByPosition=f,t.renderDateParts=h},function(e,t,n){var i=n(2),o=n(7),a=o.getWindow(),r=n(9),s=n(1),l=n(3).each,u=n(58).compare,c=n(0).extend,d=n(42),h=n(16),p=n(28),f=n(22),g=n(118),_=n(56),m=n(161),v=n(33),y=n(14),x="dx-datebox",b="dx-auto-width",w="dx-datebox-wrapper",C={calendar:"calendar",rollers:"rollers",list:"list","native":"native"},k={date:"date",datetime:"datetime",time:"time"},S={calendar:"Calendar",dateView:"DateView","native":"Native",calendarWithTime:"CalendarWithTime",list:"List"},I={Calendar:n(309),DateView:n(542),Native:n(545),CalendarWithTime:n(546),List:n(548)},T=function(e){var t=e[0].style.width;return!(!t||"auto"===t||"inherit"===t)},D=m.inherit({_supportedKeys:function(){return c(this.callBase(),this._strategy.supportedKeys())},_setDeprecatedOptions:function(){this.callBase(),c(this._deprecatedOptions,{maxZoomLevel:{since:"18.1",alias:"calendarOptions.maxZoomLevel"},minZoomLevel:{since:"18.1",alias:"calendarOptions.minZoomLevel"}})},_getDefaultOptions:function(){return c(this.callBase(),{type:"date",showAnalogClock:!0,value:null,dateSerializationFormat:void 0,min:void 0,max:void 0,displayFormat:null,interval:30,disabledDates:null,maxZoomLevel:"month",minZoomLevel:"century",pickerType:C.calendar,invalidDateMessage:y.format("dxDateBox-validation-datetime"),dateOutOfRangeMessage:y.format("validation-range"),applyButtonText:y.format("OK"),adaptivityEnabled:!1,calendarOptions:{},useHiddenSubmitElement:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{showPopupTitle:!0}},{device:{platform:"android"},options:{buttonsLocation:"bottom after"}},{device:function(){var e=h.real(),t=e.platform;return"ios"===t||"android"===t},options:{pickerType:C.native}},{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{buttonsLocation:"bottom after"}},{device:function(e){return"win"===e.platform&&e.version&&10===e.version[0]},options:{buttonsLocation:"bottom center"}},{device:function(e){var t=h.real(),n=t.platform,i=t.version,o=t.phone;return"generic"===n&&"desktop"!==e.deviceType||"win"===n&&o||"android"===n&&u(i,[4,4])<0},options:{pickerType:C.rollers}},{device:{platform:"generic",deviceType:"desktop"},options:{buttonsLocation:"bottom after"}}])},_initOptions:function(e){this._userOptions=c({},e),this.callBase(e),this._updatePickerOptions()},_updatePickerOptions:function(){var e=this.option("pickerType"),t=this.option("type");e!==C.list||t!==k.datetime&&t!==k.date||(e=C.calendar),t===k.time&&e===C.calendar&&(e=C.list),this.option("showDropDownButton","generic"!==h.real().platform||e!==C.native),this._pickerType=e},_init:function(){this._initStrategy(),this.option(c({},this._strategy.getDefaultOptions(),this._userOptions)),delete this._userOptions,this.callBase()},_toLowerCaseFirstLetter:function(e){return e.charAt(0).toLowerCase()+e.substr(1)},_initStrategy:function(){var e=this._getStrategyName(this._getFormatType()),t=I[e];this._strategy&&this._strategy.NAME===e||(this._strategy=new t(this))},_getFormatType:function(){var e=this.option("type"),t=/h|m|s/g.test(e),n=/d|M|Y/g.test(e),i="";return n&&(i+=k.date),t&&(i+=k.time),i},_getStrategyName:function(e){var t=this._pickerType;return t===C.rollers?S.dateView:t===C.native?S.native:e===k.date?S.calendar:e===k.datetime?S.calendarWithTime:S.list},_initMarkup:function(){this.$element().addClass(x),this.callBase(),this._refreshFormatClass(),this._refreshPickerTypeClass(),this._strategy.renderInputMinMax(this._input())},_render:function(){this.callBase(),this._updateSize()},_renderDimensions:function(){this.callBase(),this.$element().toggleClass(b,!this.option("width"))},_refreshFormatClass:function(){var e=this.$element();l(k,function(t,n){e.removeClass(x+"-"+n)}),e.addClass(x+"-"+this.option("type"))},_refreshPickerTypeClass:function(){var e=this.$element();l(C,function(t,n){e.removeClass(x+"-"+n)}),e.addClass(x+"-"+this._pickerType)},_updateSize:function(){var e=this.$element(),t=this.option("width"),n=s.isDefined(t)||T(e)&&!this._isSizeUpdatable,i=this._pickerType,a=i!==C.rollers&&"generic"===h.current().platform;if(o.hasWindow()&&!n&&a&&e.is(":visible")){var r=this._strategy.getDisplayFormat(this.option("displayFormat")),l=v.format(g.getLongestDate(r,v.getMonthNames(),v.getDayNames()),r);e.width(this._calculateWidth(l)),this._isSizeUpdatable=!0}},_calculateWidth:function(e){var t=10,n=48,o=this._input(),r=i("<div>").text(e).css({fontStyle:o.css("fontStyle"),fontVariant:o.css("fontVariant"),fontWeight:o.css("fontWeight"),fontSize:o.css("fontSize"),fontFamily:o.css("fontFamily"),letterSpacing:o.css("letterSpacing"),border:o.css("border"),visibility:"hidden",whiteSpace:"nowrap",position:"absolute","float":"left"});r.appendTo(this.$element());var s=parseFloat(a.getComputedStyle(r.get(0)).width),l=parseFloat(a.getComputedStyle(o.get(0)).paddingRight),u=parseFloat(a.getComputedStyle(o.get(0)).paddingLeft),c=this._$beforeButtonsContainer?parseFloat(a.getComputedStyle(this._$beforeButtonsContainer.get(0)).width):0,d=this._$afterButtonsContainer?parseFloat(a.getComputedStyle(this._$afterButtonsContainer.get(0)).width):0,h=s+l+u+t+c+d+("text"!==o.prop("type")?n:0);return r.remove(),h},_attachChildKeyboardEvents:function(){this._strategy.attachKeyboardEvents(this._keyboardProcessor)},_renderPopup:function(){this.callBase(),this._popup._wrapper().addClass(w),this._renderPopupWrapper()},_popupConfig:function(){var e=this.callBase();return c(this._strategy.popupConfig(e),{title:this._getPopupTitle(),dragEnabled:!1})},_renderPopupWrapper:function(){if(this._popup){var e=this.$element(),t=c({},k,C);l(t,function(t,n){e.removeClass(w+"-"+n)}.bind(this)),this._popup._wrapper().addClass(w+"-"+this.option("type")).addClass(w+"-"+this._pickerType)}},_renderPopupContent:function(){this.callBase(),this._strategy.renderPopupContent()},_getFirstPopupElement:function(){return this._strategy.getFirstPopupElement()||this.callBase()},_getLastPopupElement:function(){return this._strategy.getLastPopupElement()||this.callBase()},_popupShowingHandler:function(){this.callBase(),this._strategy.popupShowingHandler()},_popupHiddenHandler:function(){this.callBase(),this._strategy.popupHiddenHandler()},_visibilityChanged:function(e){e&&this._updateSize()},_clearValueHandler:function(e){this.option("text",""),this.callBase(e)},_readOnlyPropValue:function(){if(this._pickerType===C.rollers)return!0;var e=h.real().platform,t=this._isNativeType()&&("ios"===e||"android"===e);return t?this.option("readOnly"):this.callBase()},_isClearButtonVisible:function(){return this.callBase()&&!this._isNativeType()},_renderValue:function(){var e=this.dateOption("value");return this.option("text",this._getDisplayedText(e)),this._strategy.renderValue(),this.callBase()},_setSubmitValue:function(){var e=this.dateOption("value"),t=this.option("dateSerializationFormat"),n=g.SUBMIT_FORMATS_MAP[this.option("type")],i=t?_.serializeDate(e,t):g.toStandardDateFormat(e,n);this._getSubmitElement().val(i)},_getDisplayedText:function(e){var t,n=this.option("mode");if("text"===n){var i=this._strategy.getDisplayFormat(this.option("displayFormat"));t=v.format(e,i)}else{var o=this._getFormatByMode(n);t=o?v.format(e,o):g.toStandardDateFormat(e,n)}return t},_getFormatByMode:function(e){return d.inputType(e)?null:g.FORMATS_MAP[e]},_valueChangeEventHandler:function(e){var t=this.option("text"),n=this.dateOption("value");if(t===this._getDisplayedText(n))return void this._validateValue(n);var i=this._getParsedDate(t),o=n||this._getDateByDefault(),a=this.option("type"),r=g.mergeDates(o,i,a),s=i&&"time"===a?r:i;if(this._applyInternalValidation(s)){var l=this._getDisplayedText(r);o&&r&&o.getTime()===r.getTime()&&l!==t?this._renderValue():this.dateValue(r,e)}this._applyCustomValidation(r)},_getDateByDefault:function(){return this._strategy.useCurrentDateByDefault()&&new Date},_getParsedDate:function(e){var t=this._strategy.getDisplayFormat(this.option("displayFormat")),n=this._strategy.getParsedText(e,t);return s.isDefined(n)?n:void 0},_validateValue:function(e){return this._applyInternalValidation(e)&&this._applyCustomValidation(e)},_applyInternalValidation:function(e){var t=this.option("text"),n=!!t&&null!==e,i=!!e&&s.isDate(e)&&!isNaN(e.getTime()),o=i&&f.dateInRange(e,this.dateOption("min"),this.dateOption("max"),this.option("type")),a=!n&&!e||o,r="";return i?o||(r=this.option("dateOutOfRangeMessage")):r=this.option("invalidDateMessage"),this.option({isValid:a,validationError:a?null:{editorSpecific:!0,message:r}}),a},_applyCustomValidation:function(e){return this.validationRequest.fire({editor:this,value:e}),this.option("isValid")},_isValueChanged:function(e){var t=this.dateOption("value"),n=t&&t.getTime(),i=e&&e.getTime();return n!==i},_isTextChanged:function(e){var t=this.option("text"),n=e&&this._getDisplayedText(e)||"";return t!==n},_renderProps:function(){this.callBase(),this._input().attr("autocomplete","off")},_renderOpenedState:function(){this._isNativeType()||this.callBase(),this._strategy.isAdaptivityChanged()&&this._refreshStrategy(),this._strategy.renderOpenedState()},_getPopupTitle:function(){var e=this.option("placeholder");if(e)return e;var t=this.option("type");return t===k.time?y.format("dxDateBox-simulatedDataPickerTitleTime"):t===k.date||t===k.datetime?y.format("dxDateBox-simulatedDataPickerTitleDate"):""},_renderPlaceholder:function(){this._popup&&this._popup.option("title",this._getPopupTitle()),this.callBase()},_refreshStrategy:function(){this._strategy.dispose(),this._initStrategy(),this.option(this._strategy.getDefaultOptions()),this._refresh()},_applyButtonHandler:function(e){var t=this._strategy.getValue();this._validateValue(t)&&this.dateValue(t,e.event),this.callBase()},_dispose:function(){this._strategy&&this._strategy.dispose(),this.callBase()},_isNativeType:function(){return this._pickerType===C.native},_optionChanged:function(e){switch(e.name){case"showClearButton":this.callBase.apply(this,arguments),this._updateSize();break;case"pickerType":this._updatePickerOptions({pickerType:e.value}),this._refreshStrategy(),this._refreshPickerTypeClass(),this._invalidate();break;case"type":this._updatePickerOptions({format:e.value}),this._refreshStrategy(),this._refreshFormatClass(),this._renderPopupWrapper(),this._updateSize();break;case"placeholder":this._renderPlaceholder();break;case"min":case"max":this._applyInternalValidation(this.dateOption("value")),this._invalidate();break;case"dateSerializationFormat":case"interval":case"disabledDates":case"calendarOptions":case"minZoomLevel":case"maxZoomLevel":this._invalidate();break;case"displayFormat":this.option("text",this._getDisplayedText(this.dateOption("value"))),this._renderInputValue();break;case"formatWidthCalculator":break;case"closeOnValueChange":var t=e.value?"instantly":"useButtons";this.option("applyValueMode",t);break;case"applyValueMode":this._suppressDeprecatedWarnings(),this.option("closeOnValueChange","instantly"===e.value),this._resumeDeprecatedWarnings(),this.callBase.apply(this,arguments);break;case"text":this._strategy.textChangedHandler(e.value),this.callBase.apply(this,arguments);break;case"isValid":this.callBase.apply(this,arguments),this._updateSize();break;case"showDropDownButton":this._updateSize();break;case"readOnly":this.callBase.apply(this,arguments),this._updateSize();break;case"invalidDateMessage":case"dateOutOfRangeMessage":case"adaptivityEnabled":case"showAnalogClock":break;default:this.callBase.apply(this,arguments)}},_getSerializationFormat:function(){var e=this.option("value");if(this.option("dateSerializationFormat")&&p().forceIsoDateParsing)return this.option("dateSerializationFormat");if(s.isNumeric(e))return"number";if(s.isString(e))return _.getDateSerializationFormat(e)},_updateValue:function(e){this.callBase(),this._validateValue(e||this.dateOption("value"))},dateValue:function(e,t){var n=this._isValueChanged(e);return n&&t&&this._saveValueChangeEvent(t),!n&&this._isTextChanged(e)&&this._updateValue(e),this.dateOption("value",e)},dateOption:function(e,t){if(1===arguments.length)return _.deserializeDate(this.option(e));var n=this._getSerializationFormat();this.option(e,_.serializeDate(t,n))},reset:function(){this.callBase(),this._updateValue(this.dateOption("value"))}});r("dxDateBox",D),e.exports=D},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(543),r=n(194),s=n(42),l=n(0).extend,u=n(118),c=n(14),d=r.inherit({NAME:"DateView",getDefaultOptions:function(){return l(this.callBase(),{openOnFieldClick:!0,applyButtonText:c.format("OK")})},getDisplayFormat:function(e){return e||u.FORMATS_MAP[this.dateBox.option("type")]},popupConfig:function(e){return{showTitle:!0,toolbarItems:this.dateBox._popupToolbarItemsConfig(),onInitialized:e.onInitialized,defaultOptionsRules:[{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{showNames:!0}},{device:function(e){return"win"===e.platform&&e.phone&&e.version&&8===e.version[0]},options:{animation:null}},{device:{platform:"android"},options:{width:333,height:331}},{device:function(e){var t=e.platform,n=e.version;return"generic"===t||"ios"===t||"win"===t&&n&&10===n[0]},options:{width:"auto",height:"auto"}},{device:function(e){var t=e.platform,n=e.phone;return"generic"===t&&n},options:{width:333,maxWidth:"100%",maxHeight:"100%",height:"auto",position:{collision:"flipfit flip"}}},{device:{platform:"ios",phone:!0},options:{width:"100%",position:{my:"bottom",at:"bottom",of:o}}}]}},_renderWidget:function(){if(s.inputType(this.dateBox.option("mode"))&&this.dateBox._isNativeType()||this.dateBox.option("readOnly"))return void(this._widget&&(this._widget.$element().remove(),this._widget=null));var e=this._getPopup();if(this._widget)this._widget.option(this._getWidgetOptions());else{var t=i("<div>").appendTo(e.$content());this._widget=this._createWidget(t)}this._widget.$element().appendTo(this._getWidgetContainer())},_getWidgetName:function(){return a},_getWidgetOptions:function(){return{value:this.dateBoxValue()||new Date,type:this.dateBox.option("type"),minDate:this.dateBox.dateOption("min")||new Date(1900,0,1),maxDate:this.dateBox.dateOption("max")||new Date(Date.now()+50*u.ONE_YEAR),onDisposing:function(){this._widget=null}.bind(this)}}});e.exports=d},function(e,t,n){var i=n(2),o=n(49),a=n(544),r=n(22),s=n(3).each,l=n(0).extend,u=n(118),c=n(9),d=n(33),h="dx-dateview",p="dx-dateview-compact",f="dx-dateview-wrapper",g="dx-dateview-rollers",_="dx-dateviewroller",m={date:"date",datetime:"datetime",time:"time"},v={year:"year",month:"month",day:"day",hours:"hours"},y=o.inherit({_valueOption:function(){var e=this.option("value"),t=new Date(e);return!e||isNaN(t)?this._getDefaultDate():t},_getDefaultDate:function(){var e=new Date;return this.option("type")===m.date?new Date(e.getFullYear(),e.getMonth(),e.getDate()):e},_getDefaultOptions:function(){return l(this.callBase(),{minDate:u.MIN_DATEVIEW_DEFAULT_DATE,maxDate:u.MAX_DATEVIEW_DEFAULT_DATE,type:m.date,value:new Date,showNames:!1,applyCompactClass:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{showNames:!0}},{device:function(e){return"desktop"!==e.deviceType},options:{applyCompactClass:!0}}])},_render:function(){this.callBase(),this.$element().addClass(h),this._toggleFormatClasses(this.option("type")),this._toggleCompactClass()},_toggleFormatClasses:function(e,t){this.$element().addClass(h+"-"+e),t&&this.$element().removeClass(h+"-"+t)},_toggleCompactClass:function(){this.$element().toggleClass(p,this.option("applyCompactClass"))},_wrapper:function(){return this._$wrapper},_renderContentImpl:function(){this._$wrapper=i("<div>").addClass(f),this._renderRollers(),this._$wrapper.appendTo(this.$element())},_renderRollers:function(){this._$rollersContainer||(this._$rollersContainer=i("<div>").addClass(g)),this._$rollersContainer.empty(),this._createRollerConfigs(),this._rollers={};var e=this;s(e._rollerConfigs,function(t){var n=i("<div>").appendTo(e._$rollersContainer).addClass(_+"-"+e._rollerConfigs[t].type);e._rollers[e._rollerConfigs[t].type]=e._createComponent(n,a,{items:e._rollerConfigs[t].displayItems,selectedIndex:e._rollerConfigs[t].selectedIndex,showScrollbar:!1,onStart:function(n){var i=n.component;i._toggleActive(!0),e._setActiveRoller(e._rollerConfigs[t],i.option("selectedIndex"))},onEnd:function(e){var t=e.component;t._toggleActive(!1)},onClick:function(n){var i=n.component;i._toggleActive(!0),e._setActiveRoller(e._rollerConfigs[t],i.option("selectedIndex")),e._setRollerState(e._rollerConfigs[t],i.option("selectedIndex")),i._toggleActive(!1)},onSelectedIndexChanged:function(n){var i=n.component;e._setRollerState(e._rollerConfigs[t],i.option("selectedIndex"))}})}),e._$rollersContainer.appendTo(e._wrapper())},_createRollerConfigs:function(e){var t=this;e=e||t.option("type"),t._rollerConfigs={},d.getFormatParts(u.FORMATS_MAP[e]).forEach(function(e){t._createRollerConfig(e)})},_createRollerConfig:function(e){for(var t=u.DATE_COMPONENTS_INFO[e],n=this._calculateRollerConfigValueRange(e),i=n.startValue,o=n.endValue,a=t.formatter,r=this.option("showNames"),s=this._getCurrentDate(),l={type:e,setValue:t.setter,valueItems:[],displayItems:[],getIndex:function(e){return e[t.getter]()-i}},c=i;c<=o;c++)l.valueItems.push(c),l.displayItems.push(a(c,r,s));l.selectedIndex=l.getIndex(s),this._rollerConfigs[e]=l},_setActiveRoller:function(e){var t=e&&this._rollers[e.type];s(this._rollers,function(){this.toggleActiveState(this===t)})},_updateRollersPosition:function(){var e=this;s(this._rollers,function(t){var n=e._rollerConfigs[t].getIndex(e._getCurrentDate());this.option("selectedIndex",n)})},_setRollerState:function(e,t){if(t!==e.selectedIndex){var n=e.valueItems[t],i=e.setValue,o=new Date(this._getCurrentDate()),a=o.getDate();e.type===v.month?a=Math.min(a,u.getMaxMonthDay(o.getFullYear(),n)):e.type===v.year&&(a=Math.min(a,u.getMaxMonthDay(n,o.getMonth()))),o.setDate(a),o[i](n),o=r.normalizeDate(o,this.option("minDate"),this.option("maxDate")),this.option("value",o),e.selectedIndex=t}e.type===v.year&&this._refreshRollers(),e.type===v.month&&(this._refreshRoller(v.day),this._refreshRoller(v.hours))},_refreshRoller:function(e){var t=this._rollers[e];if(t){this._createRollerConfig(e);var n=this._rollerConfigs[e];e!==v.day&&n.displayItems.toString()===t.option("items").toString()||t.option({items:n.displayItems,selectedIndex:n.selectedIndex})}},_getCurrentDate:function(){var e=this._valueOption(),t=this.option("minDate"),n=this.option("maxDate");return t&&e.getTime()<=t.getTime()?e=t:n&&e.getTime()>=n.getTime()&&(e=n),e},_calculateRollerConfigValueRange:function(e){var t=this._getCurrentDate(),n=this.option("minDate"),i=this.option("maxDate"),o=r.sameYear(t,n),a=o&&t.getMonth()===n.getMonth(),s=r.sameYear(t,i),l=s&&t.getMonth()===i.getMonth(),c=a&&t.getDate()===n.getDate(),d=l&&t.getDate()===i.getDate(),h=u.DATE_COMPONENTS_INFO[e],p=h.startValue,f=h.endValue;return e===v.year&&(p=n.getFullYear(),f=i.getFullYear()),e===v.month&&(o&&(p=n.getMonth()),s&&(f=i.getMonth())),e===v.day&&(f=u.getMaxMonthDay(t.getFullYear(),t.getMonth()),o&&a&&(p=n.getDate()),s&&l&&(f=i.getDate())),e===v.hours&&(p=c?n.getHours():p,f=d?i.getHours():f),{startValue:p,endValue:f}},_refreshRollers:function(){this._refreshRoller(v.month),this._refreshRoller(v.day),this._refreshRoller(v.hours)},_optionChanged:function(e){switch(e.name){case"showNames":case"minDate":case"maxDate":case"type":this._renderRollers(),this._toggleFormatClasses(e.value,e.previousValue);break;case"visible":this.callBase(e),e.value&&this._renderRollers();break;case"value":this.option("value",this._valueOption()),this._refreshRollers(),this._updateRollersPosition();break;default:this.callBase(e)}},_clean:function(){this.callBase(),delete this._$rollersContainer},_dispose:function(){clearTimeout(this._deferredRenderDayTimeout),clearTimeout(this._deferredRenderMonthTimeout),this.callBase()}});c("dxDateView",y),e.exports=y},function(e,t,n){var i=n(2),o=n(5),a=n(9),r=n(0).extend,s=n(3).each,l=n(8),u=n(19),c=n(94),d=n(38),h=n(27),p="dx-dateviewroller",f="dx-state-active",g="dx-dateviewroller-current",_="dx-dateview-item",m="dx-dateview-item-selected",v="dx-dateview-item-selected-frame",y="dx-dateview-item-selected-border",x=c.inherit({_getDefaultOptions:function(){return r(this.callBase(),{showScrollbar:!1,useNative:!1,selectedIndex:0,bounceEnabled:!1,items:[],showOnClick:!1,onClick:null,onSelectedIndexChanged:null})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{showOnClick:!0}},{device:{platform:"generic"},options:{scrollByContent:!0}}])},_init:function(){this.callBase(),this._renderSelectedItemFrame()},_render:function(){this.callBase(),this.$element().addClass(p),this._renderContainerClick(),this._renderItems(),this._renderSelectedValue(),this._renderItemsClick(),this._wrapAction("_endAction",this._endActionHandler.bind(this)),this._renderSelectedIndexChanged()},_renderSelectedIndexChanged:function(){this._selectedIndexChanged=this._createActionByOption("onSelectedIndexChanged")},_renderContainerClick:function(){if(this.option("showOnClick")){var e=l.addNamespace(u.name,this.NAME),t=this._createActionByOption("onClick");o.off(this._$container,e),o.on(this._$container,e,function(e){t({event:e})})}},_wrapAction:function(e,t){var n=this._strategy,i=n[e];n[e]=function(){return t.apply(this,arguments),i.apply(this,arguments)}},_renderItems:function(){var e=this.option("items")||[],t=i();this._$content.empty(),e.forEach(function(e){t=t.add(i("<div>").addClass(_).append(e))}),this._$content.append(t),this._$items=t,this.update()},_renderSelectedItemFrame:function(){i("<div>").addClass(v).append(i("<div>").addClass(y)).appendTo(this._$container)},_renderSelectedValue:function(e){var t=this._fitIndex(e||this.option("selectedIndex"));this._moveTo({top:this._getItemPosition(t)}),this._renderActiveStateItem()},_fitIndex:function(e){var t=this.option("items")||[],n=t.length;return e>=n?n-1:e<0?0:e},_getItemPosition:function(e){return Math.round(this._itemHeight()*e)},_renderItemsClick:function(){var e=this._getItemSelector(),t=l.addNamespace(u.name,this.NAME);o.off(this.$element(),t,e),o.on(this.$element(),t,e,this._itemClickHandler.bind(this))},_getItemSelector:function(){return"."+_},_itemClickHandler:function(e){this.option("selectedIndex",this._itemElementIndex(e.currentTarget))},_itemElementIndex:function(e){return this._itemElements().index(e)},_itemElements:function(){return this.$element().find(this._getItemSelector())},_renderActiveStateItem:function(){var e=this.option("selectedIndex");s(this._$items,function(t){i(this).toggleClass(m,e===t)})},_moveTo:function(e){e=this._normalizeLocation(e);var t=this._location(),n={x:-(t.left-e.left),y:-(t.top-e.top)};if(this._isVisible()&&(n.x||n.y))if(this._strategy._prepareDirections(!0),this._animation){var i=this;d.stop(this._$content),d.animate(this._$content,{duration:200,type:"slide",to:{top:Math.floor(n.y)},complete:function(){h.resetPosition(i._$content),i._strategy.handleMove({delta:n})}}),delete this._animation}else this._strategy.handleMove({delta:n})},_validate:function(e){return this._strategy.validate(e)},_endActionHandler:function(){var e=this.option("selectedIndex"),t=-this._location().top/this._itemHeight(),n=Math.round(t);this._animation=!0,n===e?this._renderSelectedValue(n):this.option("selectedIndex",n)},_itemHeight:function(){var e=this._$items.first();return e.get(0)&&e.get(0).getBoundingClientRect().height||0},_toggleActive:function(e){this.$element().toggleClass(f,e)},_isVisible:function(){return this._$container.is(":visible")},_fireSelectedIndexChanged:function(e,t){this._selectedIndexChanged({value:e,previousValue:t,event:void 0})},_visibilityChanged:function(e){this.callBase(e),e&&this._renderSelectedValue(this.option("selectedIndex")),this.toggleActiveState(!1)},toggleActiveState:function(e){this.$element().toggleClass(g,e)},_refreshSelectedIndex:function(){var e=this.option("selectedIndex"),t=this._fitIndex(e);t===e?this._renderActiveStateItem():this.option("selectedIndex",t)},_optionChanged:function(e){switch(e.name){case"selectedIndex":this._fireSelectedIndexChanged(e.value,e.previousValue),this._renderSelectedValue(e.value);break;case"items":this._renderItems(),this._refreshSelectedIndex();break;case"onClick":case"showOnClick":this._renderContainerClick();break;case"onSelectedIndexChanged":this._renderSelectedIndexChanged();break;default:this.callBase(e)}}});a("dxDateViewRoller",x),e.exports=x},function(e,t,n){var i=n(4).noop,o=n(194),a=n(42),r=n(13).inArray,s=n(118),l=n(56),u=o.inherit({NAME:"Native",popupConfig:i,getParsedText:function(e){return e?"datetime"===this.dateBox.option("type")?new Date(e.replace(/-/g,"/").replace("T"," ").split(".")[0]):s.fromStandardDateFormat(e):null},renderPopupContent:i,_getWidgetName:i,_getWidgetOptions:i,_getDateBoxType:function(){var e=this.dateBox.option("type");return r(e,s.SUPPORTED_FORMATS)===-1?e="date":"datetime"!==e||a.inputType(e)||(e="datetime-local"),e},getDefaultOptions:function(){return{mode:this._getDateBoxType()}},getDisplayFormat:function(e){var t=this._getDateBoxType();return e||s.FORMATS_MAP[t]},renderInputMinMax:function(e){e.attr({min:l.serializeDate(this.dateBox.dateOption("min"),"yyyy-MM-dd"),max:l.serializeDate(this.dateBox.dateOption("max"),"yyyy-MM-dd")})}});e.exports=u},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(309),r=n(547),s=n(33),l=n(0).extend,u=n(192),c=n(118),d=573,h="dx-datebox-adaptivity-mode",p=a.inherit({NAME:"CalendarWithTime",getDefaultOptions:function(){return l(this.callBase(),{applyValueMode:"useButtons",buttonsLocation:"bottom after",showPopupTitle:!1})},getDisplayFormat:function(e){return e||"shortdateshorttime"},_is24HourFormat:function(){return s.is24HourFormat(this.getDisplayFormat(this.dateBox.option("displayFormat")))},_renderWidget:function(){this.callBase(),this._timeView=this.dateBox._createComponent(i("<div>"),r,{value:this.dateBoxValue(),_showClock:!this._isShrinkView(),use24HourFormat:this._is24HourFormat(),onValueChanged:this._valueChangedHandler.bind(this),stylingMode:this.dateBox.option("stylingMode")})},renderOpenedState:function(){this.callBase();var e=this._getPopup();e&&e._wrapper().toggleClass(h,this._isSmallScreen()),clearTimeout(this._repaintTimer),this._repaintTimer=setTimeout(function(){this._getPopup()&&this._getPopup().repaint()}.bind(this),0)},isAdaptivityChanged:function(){var e=this._isShrinkView(),t=this._currentAdaptiveMode;return e!==t?(this._currentAdaptiveMode=e,void 0!==t):this.callBase()},_updateValue:function(e){var t=this.dateBoxValue();t||e||(t=new Date,c.normalizeTime(t)),this.callBase(),this._timeView&&(t&&this._timeView.option("value",t),this._timeView.option("use24HourFormat",this._is24HourFormat()))},_isSmallScreen:function(){return i(o).width()<=d},_isShrinkView:function(){return!this.dateBox.option("showAnalogClock")||this.dateBox.option("adaptivityEnabled")&&this._isSmallScreen()},_getBoxItems:function(){var e=[{ratio:0,shrink:0,baseSize:"auto",name:"calendar"}];return this._isShrinkView()||e.push({ratio:0,shrink:0,baseSize:"auto",name:"time"}),e},renderPopupContent:function(){this.callBase(),this._currentAdaptiveMode=this._isShrinkView();var e=this._getPopup().$content();this._box=this.dateBox._createComponent(i("<div>").appendTo(e),u,{direction:"row",crossAlign:"start",items:this._getBoxItems(),itemTemplate:function(e){var t=i("<div>");switch(e.name){case"calendar":t.append(this._widget.$element()),this._isShrinkView()&&t.append(this._timeView.$element());break;case"time":t.append(this._timeView.$element())}return t}.bind(this)}),this._attachTabHandler()},popupConfig:function(e){var t=this.callBase(e),n=l(t,{onShowing:function(){if("fallback"===this._box.option("_layoutStrategy")){var e=this._getPopup().$content().find(".dx-timeview-clock").css("minWidth");this._timeView.$element().css("maxWidth",e)}}.bind(this)});return n},getFirstPopupElement:function(){return this._timeView._hourBox.$element().find("input")},_attachTabHandler:function(){var e=this.dateBox,t=function(t){t.shiftKey&&(t.preventDefault(),e.focus())};this._timeView._hourBox.registerKeyHandler("tab",t)},_preventFocusOnPopup:function(e){i(e.target).hasClass("dx-texteditor-input")||(this.callBase.apply(this,arguments),this.dateBox._hasFocusClass()||this.dateBox.focus())},getValue:function(){var e=this._widget.option("value"),t=this._timeView.option("value");return e=e?new Date(e):new Date,e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},dispose:function(){clearTimeout(this._removeMinWidthTimer),clearTimeout(this._repaintTimer),this.callBase()}});e.exports=p},function(e,t,n){var i=n(2),o=n(49),a=n(117),r=n(95),s=n(192),l=n(0).extend,u=n(9),c=n(33),d=n(118),h="dx-timeview",p="dx-timeview-clock",f="dx-timeview-field",g="dx-timeview-hourarrow",_="dx-timeview-time-separator",m="dx-timeview-format12",v=-1,y=1,x="dx-timeview-minutearrow",b=24,w=function(e,t,n){C(e,t,n)},C=function(e,t,n){e.css("transform","rotate("+t+"deg) translate(0,"+n+"px)")},k=o.inherit({_getDefaultOptions:function(){return l(this.callBase(),{value:new Date(Date.now()),use24HourFormat:!0,_showClock:!0,_arrowOffset:0,stylingMode:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"android"},options:{_arrowOffset:15}},{device:{platform:"generic"},options:{_arrowOffset:5}}])},_getValue:function(){return this.option("value")||new Date},_init:function(){this.callBase(),this.$element().addClass(h)},_render:function(){this.callBase(),this._renderBox(),this._updateTime()},_renderBox:function(){var e=i("<div>").appendTo(this.$element()),t=[];this.option("_showClock")&&t.push({ratio:1,shrink:0,baseSize:"auto",template:this._renderClock.bind(this)}),t.push({ratio:0,shrink:0,baseSize:50,template:this._renderField.bind(this)}),this._createComponent(e,s,{height:"100%",width:"100%",direction:"col",items:t})},_renderClock:function(e,t,n){this._$hourArrow=i("<div>").addClass(g),this._$minuteArrow=i("<div>").addClass(x);var o=i(n);o.addClass(p).append(this._$hourArrow).append(this._$minuteArrow),this.setAria("role","presentation",o)},_updateClock:function(){var e=this._getValue(),t=e.getHours()/12*360+e.getMinutes()/60*30,n=e.getMinutes()/60*360;w(this._$hourArrow,t,this.option("_arrowOffset")),
78w(this._$minuteArrow,n,this.option("_arrowOffset"))},_getBoxItems:function(e){var t=[{ratio:0,shrink:0,baseSize:"auto",template:function(){return this._hourBox.$element()}.bind(this)},{ratio:0,shrink:0,baseSize:"auto",template:i("<div>").addClass(_).text(c.getTimeSeparator())},{ratio:0,shrink:0,baseSize:"auto",template:function(){return this._minuteBox.$element()}.bind(this)}];return e&&t.push({ratio:0,shrink:0,baseSize:"auto",template:function(){return this._format12.$element()}.bind(this)}),t},_renderField:function(){var e=!this.option("use24HourFormat");return this._createHourBox(),this._createMinuteBox(),e&&this._createFormat12Box(),this._createComponent(i("<div>").addClass(f),s,{direction:"row",align:"center",crossAlign:"center",items:this._getBoxItems(e)}).$element()},_createHourBox:function(){this._hourBox=this._createComponent(i("<div>"),a,l({min:-1,max:24,value:this._getValue().getHours(),onValueChanged:this._onHourBoxValueChanged.bind(this)},this._getNumberBoxConfig())),this._hourBox.setAria("label","hours")},_onHourBoxValueChanged:function(e){var t=this._getValue(),n=this._convertMaxHourToMin(this._getCalculatedHours(t.getHours(),e.previousValue,e.value)),i=new Date(t);i.setHours(n),d.normalizeTime(i),this.option("value",i)},_getCalculatedHours:function(e,t,n){return 1===Math.abs(t-n)?e+(n-t):n},_convertMaxHourToMin:function(e){return(b+e)%b},_createMinuteBox:function(){this._minuteBox=this._createComponent(i("<div>"),a,l({min:-1,max:60,value:this._getValue().getMinutes(),onValueChanged:function(e){var t=(60+e.value)%60;this._minuteBox.option("value",t);var n=new Date(this._getValue());n.setMinutes(t),d.normalizeTime(n),this.option("value",n)}.bind(this)},this._getNumberBoxConfig())),this._minuteBox.setAria("label","minutes")},_createFormat12Box:function(){var e=c.getPeriodNames();this._format12=this._createComponent(i("<div>").addClass(m),r,l({items:[{value:v,text:e[0]},{value:y,text:e[1]}],valueExpr:"value",displayExpr:"text",onValueChanged:function(e){var t=this._getValue().getHours(),n=new Date(this._getValue()),i=(t+12*e.value)%24;n.setHours(i),this.option("value",n)}.bind(this),value:this._getValue().getHours()>=12?y:v},{stylingMode:this.option("stylingMode")})),this._format12.setAria("label","type")},_refreshFormat12:function(){if(!this.option("use24HourFormat")){var e=this._getValue(),t=e.getHours(),n=t>=12;this._format12._valueChangeActionSuppressed=!0,this._format12.option("value",n?y:v),this._format12._valueChangeActionSuppressed=!1}},_getNumberBoxConfig:function(){return l({showSpinButtons:!0,disabled:this.option("disabled"),valueFormat:function(e){return(e<10?"0":"")+e}},{stylingMode:this.option("stylingMode")})},_normalizeHours:function(e){return this.option("use24HourFormat")?e:e%12||12},_updateField:function(){this._hourBox&&(this._hourBox._valueChangeActionSuppressed=!0,this._hourBox.option("value",this._normalizeHours(this._getValue().getHours())),this._hourBox._valueChangeActionSuppressed=!1),this._minuteBox&&(this._minuteBox._valueChangeActionSuppressed=!0,this._minuteBox.option("value",this._getValue().getMinutes()),this._minuteBox._valueChangeActionSuppressed=!1),this._refreshFormat12()},_updateTime:function(){this.option("_showClock")&&this._updateClock(),this._updateField()},_visibilityChanged:function(e){e&&this._updateTime()},_toggleDisabledState:function(e){this._hourBox&&this._hourBox.option("disabled",e),this._minuteBox&&this._minuteBox.option("disabled",e)},_optionChanged:function(e){switch(e.name){case"value":this._updateTime(),this.callBase(e);break;case"_arrowOffset":break;case"use24HourFormat":case"_showClock":case"stylingMode":this._invalidate();break;default:this.callBase(e)}}});u("dxTimeView",k),e.exports=k},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(101),r=n(194),s=n(4).noop,l=n(1).isDate,u=n(0).extend,c=n(118),d=n(33),h={min:new Date(0,0,0,0,0),max:new Date(0,0,0,23,59)},p=r.inherit({NAME:"List",supportedKeys:function(){return{tab:function(){this.option("opened")&&this.close()},space:s,home:s,end:s}},getDefaultOptions:function(){return u(this.callBase(),{applyValueMode:"instantly"})},getDisplayFormat:function(e){return e||"shorttime"},popupConfig:function(e){return u(e,{width:this._getPopupWidth()})},useCurrentDateByDefault:function(){return!0},_getPopupWidth:function(){return this.dateBox.$element().outerWidth()},popupShowingHandler:function(){this._dimensionChanged()},_renderWidget:function(){this.callBase(),this._refreshItems()},_getWidgetName:function(){return a},_getWidgetOptions:function(){var e=this.dateBox._keyboardProcessor;return{_keyboardProcessor:e?e.attachChildProcessor():null,itemTemplate:this._timeListItemTemplate.bind(this),onItemClick:this._listItemClickHandler.bind(this),tabIndex:-1,onFocusedItemChanged:this._refreshActiveDescendant.bind(this),selectionMode:"single"}},_refreshActiveDescendant:function(e){this.dateBox.setAria("activedescendant",""),this.dateBox.setAria("activedescendant",e.actionValue)},_refreshItems:function(){this._widgetItems=this._getTimeListItems(),this._widget.option("items",this._widgetItems)},renderOpenedState:function(){this._widget&&(this._widget.option("focusedElement",null),this._setSelectedItemsByValue(),this._widget.option("templatesRenderAsynchronously")?this._asyncScrollTimeout=setTimeout(this._scrollToSelectedItem.bind(this)):this._scrollToSelectedItem())},dispose:function(){this.callBase(),clearTimeout(this._asyncScrollTimeout)},_updateValue:function(){this._widget&&(this._refreshItems(),this._setSelectedItemsByValue(),this._scrollToSelectedItem())},_setSelectedItemsByValue:function(){var e=this.dateBoxValue(),t=this._getDateIndex(e);t===-1?this._widget.option("selectedItems",[]):this._widget.option("selectedIndex",t)},_scrollToSelectedItem:function(){this._widget.scrollToItem(this._widget.option("selectedIndex"))},_getDateIndex:function(e){for(var t=-1,n=0,i=this._widgetItems.length;n<i;n++)if(this._areDatesEqual(e,this._widgetItems[n])){t=n;break}return t},_areDatesEqual:function(e,t){return l(e)&&l(t)&&e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()},_getTimeListItems:function(){var e=this.dateBox.dateOption("min")||this._getBoundaryDate("min"),t=this.dateBox.dateOption("max")||this._getBoundaryDate("max"),n=this.dateBox.dateOption("value")||null,i=t-e,o=e.getMinutes()%this.dateBox.option("interval");return i<0?[]:(i>c.ONE_DAY&&(i=c.ONE_DAY),n-e<c.ONE_DAY?this._getRangeItems(e,new Date(e),i):(e=this._getBoundaryDate("min"),e.setMinutes(o),n&&Math.abs(n-t)<c.ONE_DAY&&(i=(60*t.getHours()+Math.abs(t.getMinutes()-o))*c.ONE_MINUTE),this._getRangeItems(e,new Date(e),i)))},_getRangeItems:function(e,t,n){for(var i=[],o=this.dateBox.option("interval");t-e<n;)i.push(new Date(t)),t.setMinutes(t.getMinutes()+o);return i},_getBoundaryDate:function(e){var t=h[e],n=new Date(this.dateBox.dateOption("value"));return new Date(n.getFullYear(),n.getMonth(),n.getDate(),t.getHours(),t.getMinutes())},_timeListItemTemplate:function(e){var t=this.dateBox.option("displayFormat");return d.format(e,this.getDisplayFormat(t))},_listItemClickHandler:function(e){this.dateBox.option("opened",!1);var t=this.dateBox.option("value"),n=e.itemData,i=n.getHours(),o=n.getMinutes(),a=n.getSeconds(),r=n.getFullYear(),s=n.getMonth(),l=n.getDate();t?(t=new Date(t),t.setHours(i),t.setMinutes(o),t.setSeconds(a),t.setFullYear(r),t.setMonth(s),t.setDate(l)):t=new Date(r,s,l,i,o,0,0),this.dateBoxValue(t)},attachKeyboardEvents:function(e){var t=e.attachChildProcessor();this._widget&&this._widget.option("_keyboardProcessor",t)},_dimensionChanged:function(){this._getPopup()&&this._updatePopupDimensions()},_updatePopupDimensions:function(){this._updatePopupWidth(),this._updatePopupHeight()},_updatePopupWidth:function(){this.dateBox._setPopupOption("width",this._getPopupWidth())},_updatePopupHeight:function(){this.dateBox._setPopupOption("height","auto");var e=this._widget.$element().outerHeight(),t=.45*i(o).height();this.dateBox._setPopupOption("height",Math.min(e,t)),this.dateBox._timeList&&this.dateBox._timeList.updateDimensions()}});e.exports=p},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(195),c=i(u),d=n(2),h=i(d),p=n(27),f=i(p),g=n(0),_=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"useDefaultAnimation",value:function(){return!0}},{key:"defaultPositionRendering",value:function(e,t,n){var i=this,o=this.getDrawerInstance();if((0,h.default)(o.content()).css(o.isHorizontalDirection()?"width":"height",e.maxSize),n){var a={$element:e.$content,position:e.contentPosition,direction:o.getDrawerPosition(),duration:o.option("animationDuration"),complete:function(){i._elementsAnimationCompleteHandler()}};u.animation.moveTo(a)}else o.isHorizontalDirection()?f.default.move(e.$content,{left:e.contentPosition}):f.default.move(e.$content,{top:e.contentPosition})}},{key:"getPositionRenderingConfig",value:function(e){return(0,g.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getPositionRenderingConfig",this).call(this,e),{contentPosition:this._getPanelSize(e)*this.getDrawerInstance()._getPositionCorrection(),maxSize:this._getPanelSize(!0)})}}]),t}(c.default);e.exports=_},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(195),c=i(u),d=n(2),h=i(d),p=n(0),f=n(32),g=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"slidePositionRendering",value:function(e,t,n){if(n){var i=(0,p.extend)(e.defaultAnimationConfig,{$element:e.$panel,margin:e.panelOffset,duration:this.getDrawerInstance().option("animationDuration"),direction:e.direction});u.animation.margin(i)}else e.$panel.css("margin"+(0,f.camelize)(e.direction,!0),e.panelOffset)}},{key:"expandPositionRendering",value:function(e,t,n){var i=this.getDrawerInstance();if(n){var o=(0,p.extend)(e.defaultAnimationConfig,{$element:e.$panel,size:e.size,duration:i.option("animationDuration"),direction:e.direction});u.animation.size(o)}else i.isHorizontalDirection()?(0,h.default)(e.$panel).css("width",e.size):(0,h.default)(e.$panel).css("height",e.size)}},{key:"getPositionRenderingConfig",value:function(e){return(0,p.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getPositionRenderingConfig",this).call(this,e),{panelOffset:this._getPanelOffset(e)})}},{key:"needOrderContent",value:function(e,t){return(t?"left"===e:"right"===e)||"bottom"===e}}]),t}(c.default);e.exports=g},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(195),c=i(u),d=n(2),h=i(d),p=n(27),f=i(p),g=n(60),_=i(g),m=n(1),v=i(m),y=n(0),x=n(32),b=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"renderPanel",value:function(e,t){var n=this;delete this._initialPosition;var i=this.getOverlayPosition(),o=this.getDrawerInstance(),a=o.option(),r=a.opened,s=a.minSize;o._overlay=o._createComponent(o.content(),_.default,{shading:!1,container:o.getOverlayTarget(),position:i,width:r?"auto":s||0,height:"100%",templatesRenderAsynchronously:o.option("templatesRenderAsynchronously"),animation:{show:{duration:0}},onPositioned:function(e){this._fixOverlayPosition(e.component.$content())}.bind(this),contentTemplate:o.option("template"),onContentReady:function(e){t.resolve(),n._processOverlayZIndex(e.component.content())},visible:!0,propagateOutsideClick:!0})}},{key:"_fixOverlayPosition",value:function(e){var t=this.getDrawerInstance();v.default.isDefined(this._initialPosition)&&f.default.move(e,{left:this._initialPosition.left,top:this._initialPosition.top}),"right"===t.getDrawerPosition()&&(e.css("left","auto"),t.option("rtlEnabled")&&f.default.move(e,{left:0}))}},{key:"getOverlayPosition",value:function(){var e=this.getDrawerInstance(),t=e.getDrawerPosition(),n={};if("left"===t&&(n={my:"top left",at:"top left"}),"right"===t){var i=e.option("rtlEnabled")?"top left":"top right";n={my:i,at:"top right"}}return"top"!==t&&"bottom"!==t||(n={my:t,at:t}),n.of=e.getOverlayTarget(),n}},{key:"setPanelSize",value:function(e){var t=this.getDrawerInstance(),n=t.getOverlay();t.isHorizontalDirection()?(n.option("height","100%"),n.option("width",e?t.getRealPanelWidth():this._getPanelSize(t.option("opened")))):(n.option("width",n.option("container").width()),n.option("height",e?t.getRealPanelHeight():this._getPanelSize(t.option("opened"))))}},{key:"setupContent",value:function(e,t){var n=this.getDrawerInstance();e.css("padding"+(0,x.camelize)(t,!0),n.option("minSize")),e.css("transform","inherit")}},{key:"slidePositionRendering",value:function(e,t,n){var i=this.getDrawerInstance();this._initialPosition=i.getOverlay().$content().position();var o=i.getDrawerPosition();if(this.setupContent(e.$content,o,e.drawer),n){var a=(0,y.extend)(e.defaultAnimationConfig,{$element:e.$panel,position:e.panelOffset,duration:i.option("animationDuration"),direction:o});u.animation.moveTo(a)}else i.isHorizontalDirection()?f.default.move(e.$panel,{left:e.panelOffset}):f.default.move(e.$panel,{top:e.panelOffset})}},{key:"expandPositionRendering",value:function(e,t,n){var i=this.getDrawerInstance();this._initialPosition=i.getOverlay().$content().position();var o=i.getDrawerPosition();this.setupContent(e.$content,o),f.default.move(e.$panelOverlayContent,{left:0});var a=(0,y.extend)(e.defaultAnimationConfig,{$element:e.$panelOverlayContent,size:e.size,duration:i.option("animationDuration"),direction:o,marginTop:e.marginTop});n?u.animation.size(a):i.isHorizontalDirection()?(0,h.default)(e.$panelOverlayContent).css("width",e.size):((0,h.default)(e.$panelOverlayContent).css("height",e.size),"bottom"===o&&(0,h.default)(e.$panelOverlayContent).css("marginTop",e.marginTop))}},{key:"getPositionRenderingConfig",value:function(e){var n=this.getDrawerInstance(),i=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getPositionRenderingConfig",this).call(this,e);return(0,y.extend)(i,{panelOffset:this._getPanelOffset(e)*this.getDrawerInstance()._getPositionCorrection(),$panelOverlayContent:n.getOverlay().$content(),marginTop:n.getRealPanelHeight()-i.size})}},{key:"getPanelContent",value:function(){return(0,h.default)(this.getDrawerInstance().getOverlay().content())}},{key:"_processOverlayZIndex",value:function(e){var t=(0,h.default)(e).get(0).style,n=t.zIndex||1;this.getDrawerInstance().setZIndex(n)}},{key:"needOrderContent",value:function(e){return"right"===e||"bottom"===e}}]),t}(c.default);e.exports=b},function(e,t,n){var i=n(2),o=n(11),a=n(7),r=a.getWindow(),s=n(5),l=n(9),u=n(4),c=n(0).extend,d=n(3).each,h=n(12),p=n(281),f=n(18),g=n(93),_=n(1).isPromise,m=n(6),v=m.Deferred,y="dx-widget",x="dx-deferrendering",b="dx-pending-rendering",w="dx-pending-rendering-manual",C="dx-pending-rendering-active",k="dx-visible-while-pending-rendering",S="dx-invisible-while-pending-rendering",I="dx-loadindicator-container",T="dx-deferrendering-loadindicator-container",D="dx-deferrendering-load-indicator",E="content",A=["onRendered","onShown"],O=f.inherit({_getDefaultOptions:function(){return c(this.callBase(),{showLoadIndicator:!1,renderWhen:void 0,animation:void 0,staggerItemSelector:void 0,onRendered:null,onShown:null})},_getAnonymousTemplateName:function(){return E},_init:function(){this.transitionExecutor=new p.TransitionExecutor,this._initElement(),this._initRender(),this._$initialContent=this.$element().clone().contents(),this._initActions(),this.callBase()},_initElement:function(){this.$element().addClass(x)},_initRender:function(){var e=this,t=this.$element(),n=this.option("renderWhen"),i=function(){return e._renderDeferredContent()};_(n)?m.fromPromise(n).done(i):(t.data("dx-render-delegate",i),void 0===n&&t.addClass(w))},_initActions:function(){this._actions={},d(A,function(e,t){this._actions[t]=this._createActionByOption(t)||u.noop}.bind(this))},_initMarkup:function(){this.callBase(),this._initContent||(this._initContent=this._renderContent,this._renderContent=function(){}),this._initContent()},_renderContentImpl:function(){this.$element().removeClass(y),this.$element().append(this._$initialContent),this._setLoadingState()},_renderDeferredContent:function(){var e=this,t=this.$element(),n=new v;return t.removeClass(w),t.addClass(C),this._abortRenderTask(),this._renderTask=u.executeAsync(function(){e._renderImpl().done(function(){var i={element:t};e._actions.onShown([i]),n.resolve(i)}).fail(function(){n.rejectWith(n,arguments)})}),n.promise()},_isElementInViewport:function(e){var t=e.getBoundingClientRect();return t.bottom>=0&&t.right>=0&&t.top<=(r.innerHeight||o.getDocumentElement().clientHeight)&&t.left<=(r.innerWidth||o.getDocumentElement().clientWidth)},_animate:function(){var e,t=this,n=this.$element(),o=a.hasWindow()&&this.option("animation"),r=this.option("staggerItemSelector");return t.transitionExecutor.stop(),o?(r?n.find(r).each(function(){t._isElementInViewport(this)&&t.transitionExecutor.enter(i(this),o)}):t.transitionExecutor.enter(n,o),e=t.transitionExecutor.start()):e=(new v).resolve().promise(),e},_renderImpl:function(){var e=this.$element(),t={element:e},n=this._getTemplate(this._getAnonymousTemplateName());return n&&n.render({container:e.empty(),noModel:!0}),this._setRenderedState(e),s.trigger(e,"dxcontentrendered"),this._actions.onRendered([t]),this._isRendered=!0,this._animate()},_setLoadingState:function(){var e=this.$element(),t=!!e.find("."+k).length;e.addClass(b),t||e.children().addClass(S),this.option("showLoadIndicator")&&this._showLoadIndicator(e)},_showLoadIndicator:function(e){this._$loadIndicator=new g(i("<div>"),{visible:!0}).$element().addClass(D),i("<div>").addClass(I).addClass(T).append(this._$loadIndicator).appendTo(e)},_setRenderedState:function(){var e=this.$element();this._$loadIndicator&&this._$loadIndicator.remove(),e.removeClass(b),e.removeClass(C),h.triggerShownEvent(e.children())},_optionChanged:function(e){var t=e.value,n=e.previousValue;switch(e.name){case"renderWhen":n===!1&&t===!0?this._renderOrAnimate():n===!0&&t===!1&&(this.transitionExecutor.stop(),this._setLoadingState());break;case"showLoadIndicator":case"onRendered":case"onShown":break;default:this.callBase(e)}},_renderOrAnimate:function(){var e;return this._isRendered?(this._setRenderedState(),e=this._animate()):e=this._renderDeferredContent(),e},renderContent:function(){return this._renderOrAnimate()},_abortRenderTask:function(){this._renderTask&&(this._renderTask.abort(),this._renderTask=void 0)},_dispose:function(){this.transitionExecutor.stop(!0),this._abortRenderTask(),this._actions=void 0,this._$initialContent=void 0,this.callBase()}});l("dxDeferRendering",O),e.exports=O},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(161),a=i(o),r=n(244),s=i(r),l=n(4),u=n(1),c=n(3),d=n(64),h=i(d),p=n(159),f=i(p),g=n(6),_=n(2),m=i(_),v=n(5),y=i(v),x=n(0),b=n(246),w=n(9),C=i(w),k=n(8),S="dx-dropdownbox",I="content",T=a.default.inherit({_supportedKeys:function(){return(0,x.extend)({},this.callBase(),{tab:function(e){if(this.option("opened")){var t=this._getTabbableElements(),n=e.shiftKey?t.last():t.first();n&&y.default.trigger(n,"focus"),e.preventDefault()}}})},_getTabbableElements:function(){return this._getElements().filter(h.default.tabbable)},_getElements:function(){return(0,m.default)(this.content()).find("*")},_getAnonymousTemplateName:function(){return I},_getDefaultOptions:function(){return(0,x.extend)(this.callBase(),{acceptCustomValue:!1,contentTemplate:"content",openOnFieldClick:!0,valueFormat:function(e){return Array.isArray(e)?e.join(", "):e},useHiddenSubmitElement:!0})},_initMarkup:function(){this._initDataExpressions(),this.$element().addClass(S),this.callBase()},_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")&&(0,u.isObject)(e)},_renderInputValue:function(){var e=this.callBase.bind(this),t=[];if(!this._dataSource)return e(t),(new g.Deferred).resolve();var n=this._getCurrentValue(),i=(0,l.ensureDefined)(n,[]);i=Array.isArray(i)?i:[i];var o=(0,c.map)(i,function(e){return this._loadItem(e).always(function(n){var i=this._displayGetter(n);t.push((0,l.ensureDefined)(i,e))}.bind(this))}.bind(this));return g.when.apply(this,o).always(function(){this.option("displayValue",t),e(t.length&&t)}.bind(this)).fail(e)},_loadItem:function(e){var t=new g.Deferred,n=this,i=(0,l.grep)(this.option("items")||[],function(t){return this._isValueEquals(this._valueGetter(t),e)}.bind(this))[0];return void 0!==i?t.resolve(i):this._loadValue(e).done(function(e){t.resolve(e)}).fail(function(i){n.option("acceptCustomValue")?t.resolve(e):t.reject()}),t.promise()},_updatePopupWidth:function(){this._setPopupOption("width",this.$element().outerWidth())},_popupElementTabHandler:function(e){if("tab"===(0,k.normalizeKeyName)(e)){var t=this._getTabbableElements().first().get(0),n=this._getTabbableElements().last().get(0),i=e.originalEvent.target,o=!(i!==t||!e.shift),a=!(i!==n||e.shift);(o||a)&&(this.close(),y.default.trigger(this._input(),"focus"),o&&e.originalEvent.preventDefault())}},_renderPopup:function(e){this.callBase(),this.option("focusStateEnabled")&&this._popup._keyboardProcessor.push(new f.default({element:this.content(),handler:this._popupElementTabHandler,context:this}))},_renderPopupContent:function(){if(this.option("contentTemplate")!==I)return this.callBase()},_popupConfig:function(){return(0,x.extend)(this.callBase(),{width:function(){return this.$element().outerWidth()}.bind(this),height:"auto",tabIndex:-1,dragEnabled:!1,focusStateEnabled:this.option("focusStateEnabled"),maxHeight:function(){return(0,b.getElementMaxHeightByWindow)(this.$element())}.bind(this)})},_popupShownHandler:function(){this.callBase();var e=this._getTabbableElements().first();y.default.trigger(e,"focus")},_setCollectionWidgetOption:l.noop,_optionChanged:function(e){switch(this._dataExpressionOptionChanged(e),e.name){case"width":this.callBase(e),this._updatePopupWidth();break;case"dataSource":this._renderInputValue();break;case"displayValue":this.option("text",e.value);break;case"displayExpr":this._renderValue();break;default:this.callBase(e)}}}).include(s.default);(0,C.default)("dxDropDownBox",T),e.exports=T},function(e,t,n){var i=n(2),o=n(15),a=n(43),r=n(7).getWindow(),s=n(5),l=n(9),u=n(25),c=n(1).isDefined,d=n(3).each,h=n(0).extend,p=n(13).inArray,f=n(57),g=n(49),_=n(34),m=n(247),v=n(26),y=n(16),x=n(8),b=n(19),w=n(14),C=n(31),k="dx-fileuploader",S="dx-fileuploader-empty",I="dx-fileuploader-show-file-list",T="dx-fileuploader-dragover",D="dx-fileuploader-wrapper",E="dx-fileuploader-container",A="dx-fileuploader-content",O="dx-fileuploader-input-wrapper",B="dx-fileuploader-input-container",P="dx-fileuploader-input-label",M="dx-fileuploader-input",R="dx-fileuploader-files-container",V="dx-fileuploader-file-container",F="dx-fileuploader-file-info",L="dx-fileuploader-file-status-message",H="dx-fileuploader-file",z="dx-fileuploader-file-name",N="dx-fileuploader-file-size",$="dx-fileuploader-button",W="dx-fileuploader-button-container",G="dx-fileuploader-cancel-button",j="dx-fileuploader-upload-button",q="dx-fileuploader-invalid",K=400,U="chunkMetadata",Y=function(){return i("<input>").attr("type","file")},X=function(){return!!r.FormData},Z=g.inherit({_uploadStrategy:null,_supportedKeys:function(){var e=function(e){e.preventDefault();var t=this._selectButton.$element();s.trigger(t,b.name)};return h(this.callBase(),{space:e,enter:e})},_setOptionsByReference:function(){this.callBase(),h(this._optionsByReference,{value:!0})},_getDefaultOptions:function(){return h(this.callBase(),{chunkSize:0,value:[],selectButtonText:w.format("dxFileUploader-selectFile"),uploadButtonText:w.format("dxFileUploader-upload"),labelText:w.format("dxFileUploader-dropFile"),name:"files[]",multiple:!1,accept:"",uploadUrl:"/",allowCanceling:!0,showFileList:!0,progress:0,readyToUploadMessage:w.format("dxFileUploader-readyToUpload"),uploadedMessage:w.format("dxFileUploader-uploaded"),uploadFailedMessage:w.format("dxFileUploader-uploadFailedMessage"),uploadMode:"instantly",uploadMethod:"POST",uploadHeaders:{},onUploadStarted:null,onUploaded:null,onProgress:null,onUploadError:null,onUploadAborted:null,allowedFileExtensions:[],maxFileSize:0,minFileSize:0,invalidFileExtensionMessage:w.format("dxFileUploader-invalidFileExtension"),invalidMaxFileSizeMessage:w.format("dxFileUploader-invalidMaxFileSize"),invalidMinFileSizeMessage:w.format("dxFileUploader-invalidMinFileSize"),extendSelection:!0,validationMessageMode:"always",validationMessageOffset:{h:0,v:0},useNativeInputClick:!1,useDragOver:!0,nativeDropSupported:!0,_uploadButtonType:"normal"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===y.real().deviceType&&!y.isSimulator()},options:{focusStateEnabled:!0}},{device:[{platform:"android"},{platform:"win"}],options:{validationMessageOffset:{v:0}}},{device:function(){return"generic"!==y.real().platform},options:{useDragOver:!1}},{device:function(){return!X()},options:{uploadMode:"useForm"}},{device:function(){return v.msie||"generic"!==y.real().platform},options:{nativeDropSupported:!1}},{device:function(){return C.isMaterial()},options:{_uploadButtonType:"default"}}])},_init:function(){this.callBase.apply(this,arguments),this._initFileInput(),this._initLabel(),this._createFiles(),this._createUploadStartedAction(),this._createUploadedAction(),this._createProgressAction(),this._createUploadErrorAction(),this._createUploadAbortedAction(),this._setUploadStrategy()},_setUploadStrategy:function(){this._uploadStrategy=this.option("chunkSize")>0?new ee(this):new te(this)},_initFileInput:function(){this._isCustomClickEvent=!1,this._$fileInput||(this._$fileInput=Y(),s.on(this._$fileInput,"change",this._inputChangeHandler.bind(this)),s.on(this._$fileInput,"click",function(e){return e.stopPropagation(),this.option("useNativeInputClick")||this._isCustomClickEvent}.bind(this))),this._$fileInput.prop({multiple:this.option("multiple"),accept:this.option("accept"),tabIndex:-1})},_inputChangeHandler:function(){if(!this._doPreventInputChange){var e=this._$fileInput.val().replace(/^.*\\/,""),t=this._$fileInput.prop("files");if(!t||t.length){var n=t?this._getFiles(t):[{name:e}];this._changeValue(n),"instantly"===this.option("uploadMode")&&this._uploadFiles()}}},_shouldFileListBeExtended:function(){return"useForm"!==this.option("uploadMode")&&this.option("extendSelection")&&this.option("multiple")},_removeDuplicates:function(e,t){for(var n=[],i=0;i<t.length;i++)this._isFileInArray(e,t[i])||n.push(t[i]);return n},_isFileInArray:function(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(i.size===t.size&&i.name===t.name)return!0}return!1},_changeValue:function(e){var t=this._shouldFileListBeExtended()?this.option("value").slice():[];"instantly"!==this.option("uploadMode")&&(e=this._removeDuplicates(t,e)),this.option("value",t.concat(e))},_getFiles:function(e){var t=[];return d(e,function(e,n){t.push(n)}),t},_initLabel:function(){this._$inputLabel||(this._$inputLabel=i("<div>")),this._$inputLabel.text(this.option("labelText"))},_focusTarget:function(){return this.$element().find("."+$)},_getSubmitElement:function(){return this._$fileInput},_initMarkup:function(){this.callBase(),this.$element().addClass(k),this._renderWrapper(),this._renderInputWrapper(),this._renderSelectButton(),this._renderInputContainer(),this._renderUploadButton(),this._preventRecreatingFiles=!0},_render:function(){this._preventRecreatingFiles=!1,this._renderDragEvents(),this._renderFiles(),this.callBase()},_createFileProgressBar:function(e){e.progressBar=this._createProgressBar(e.value.size),e.progressBar.$element().appendTo(e.$file),this._initStatusMessage(e),this._initCancelButton(e)},_setStatusMessage:function(e,t){setTimeout(function(){this.option("showFileList")&&(e.$statusMessage.text(this.option(t)),e.$statusMessage.css("display",""),e.progressBar.$element().remove())}.bind(this),K)},_createFiles:function(){var e=this.option("value");this._files&&0!==e.length&&this._shouldFileListBeExtended()||(this._preventFilesUploading(this._files),this._files=[]),d(e.slice(this._files.length),function(e,t){var n=this._createFile(t);this._validateFile(n),this._files.push(n)}.bind(this))},_preventFilesUploading:function(e){d(e,function(e,t){t.request&&t.request.abort()}.bind(this))},_validateFile:function(e){e.isValidFileExtension=this._validateFileExtension(e),e.isValidMinSize=this._validateMinFileSize(e),e.isValidMaxSize=this._validateMaxFileSize(e)},_validateFileExtension:function(e){var t=this.option("allowedFileExtensions"),n=e.value.name.substring(e.value.name.lastIndexOf(".")).toLowerCase();
79if(0===t.length)return!0;for(var i=0;i<t.length;i++)if(n===t[i].toLowerCase())return!0;return!1},_validateMaxFileSize:function(e){var t=e.value.size,n=this.option("maxFileSize");return!(n>0)||t<=n},_validateMinFileSize:function(e){var t=e.value.size,n=this.option("minFileSize");return!(n>0)||t>=n},_createUploadStartedAction:function(){this._uploadStartedAction=this._createActionByOption("onUploadStarted")},_createUploadedAction:function(){this._uploadedAction=this._createActionByOption("onUploaded")},_createProgressAction:function(){this._progressAction=this._createActionByOption("onProgress")},_createUploadAbortedAction:function(){this._uploadAbortedAction=this._createActionByOption("onUploadAborted")},_createUploadErrorAction:function(){this._uploadErrorAction=this._createActionByOption("onUploadError")},_createFile:function(e){return{value:e,loadedSize:0,onProgress:u(),onAbort:u(),onLoad:u(),onError:u(),onLoadStart:u(),isValidFileExtension:!0,isValidMaxSize:!0,isValidMinSize:!0,isValid:function(){return this.isValidFileExtension&&this.isValidMaxSize&&this.isValidMinSize}}},_renderFiles:function(){var e=this.option("value");this._$filesContainer?this._shouldFileListBeExtended()&&0!==e.length||this._$filesContainer.empty():this._$filesContainer=i("<div>").addClass(R).appendTo(this._$content);var t=this.option("showFileList");if(t){var n=this;d(this._files,function(e,t){t.$file||n._renderFile(t)})}this.$element().toggleClass(I,t),this._toggleFileUploaderEmptyClassName(),this._updateFileNameMaxWidth(),this._$validationMessage&&this._$validationMessage.dxOverlay("instance").repaint()},_renderFile:function(e){var t=e.value,n=i("<div>").addClass(V).appendTo(this._$filesContainer);this._renderFileButtons(e,n),e.$file=i("<div>").addClass(H).appendTo(n);var o=i("<div>").addClass(F).appendTo(e.$file);e.$statusMessage=i("<div>").addClass(L).appendTo(e.$file),i("<div>").addClass(z).text(t.name).appendTo(o),c(t.size)&&i("<div>").addClass(N).text(this._getFileSize(t.size)).appendTo(o),e.isValid()?e.$statusMessage.text(this.option("readyToUploadMessage")):(e.isValidFileExtension||e.$statusMessage.append(this._createValidationElement("invalidFileExtensionMessage")),e.isValidMaxSize||e.$statusMessage.append(this._createValidationElement("invalidMaxFileSizeMessage")),e.isValidMinSize||e.$statusMessage.append(this._createValidationElement("invalidMinFileSizeMessage")),n.addClass(q))},_createValidationElement:function(e){return i("<span>").text(this.option(e))},_updateFileNameMaxWidth:function(){var e=this.option("allowCanceling")&&"useForm"!==this.option("uploadMode")?1:0,t="useButtons"===this.option("uploadMode")?1:0,n=this._$filesContainer.find("."+V).first().width()||this._$filesContainer.width(),i=this._$filesContainer.find("."+W).eq(0),o=i.width()*(e+t),a=this._$filesContainer.find("."+N).eq(0),r=a.text();a.text("1000 Mb");var s=a.width();a.text(r),this._$filesContainer.find("."+z).css("maxWidth",n-o-s)},_renderFileButtons:function(e,t){var n=this._getCancelButton(e);n&&t.append(n);var i=this._getUploadButton(e);i&&t.append(i)},_getCancelButton:function(e){return"useForm"===this.option("uploadMode")?null:(e.cancelButton=this._createComponent(i("<div>").addClass($+" "+G),_,{onClick:function(){this._removeFile(e)}.bind(this),icon:"close",visible:this.option("allowCanceling"),integrationOptions:{}}),i("<div>").addClass(W).append(e.cancelButton.$element()))},_getUploadButton:function(e){return e.isValid()&&"useButtons"===this.option("uploadMode")?(e.uploadButton=this._createComponent(i("<div>").addClass($+" "+j),_,{onClick:function(){this._uploadFile(e)}.bind(this),icon:"upload"}),e.onLoadStart.add(function(){e.uploadButton.$element().remove()}.bind(this)),i("<div>").addClass(W).append(e.uploadButton.$element())):null},_removeFile:function(e){e.$file.parent().remove(),this._files.splice(p(e,this._files),1);var t=this.option("value").slice();t.splice(p(e.value,t),1),this._preventRecreatingFiles=!0,this.option("value",t),this._preventRecreatingFiles=!1,this._toggleFileUploaderEmptyClassName(),this._doPreventInputChange=!0,this._$fileInput.val(""),this._doPreventInputChange=!1},_toggleFileUploaderEmptyClassName:function(){this.$element().toggleClass(S,!this._files.length||this._hasInvalidFile(this._files))},_hasInvalidFile:function(e){for(var t=0;t<e.length;t++)if(!e[t].isValid())return!0;return!1},_getFileSize:function(e){for(var t=0,n=[w.format("dxFileUploader-bytes"),w.format("dxFileUploader-kb"),w.format("dxFileUploader-Mb"),w.format("dxFileUploader-Gb")],i=n.length-1;t<i&&e>=1024;)e/=1024,t++;return Math.round(e)+" "+n[t]},_renderSelectButton:function(){var e=i("<div>").addClass($).appendTo(this._$inputWrapper);this._selectButton=this._createComponent(e,_,{text:this.option("selectButtonText"),focusStateEnabled:!1,integrationOptions:{}}),"desktop"===y.real().deviceType?this._selectButton.option("onClick",this._selectButtonClickHandler.bind(this)):(s.off(e,"click"),s.on(e,"click",this._selectButtonClickHandler.bind(this)))},_selectButtonClickHandler:function(){var e=this;if(!e.option("useNativeInputClick")){if(e.option("disabled"))return!1;e._isCustomClickEvent=!0,s.trigger(e._$fileInput,"click"),e._isCustomClickEvent=!1}},_renderUploadButton:function(){if("useButtons"===this.option("uploadMode")){var e=i("<div>").addClass($).addClass(j).appendTo(this._$content);this._uploadButton=this._createComponent(e,_,{text:this.option("uploadButtonText"),onClick:this._uploadButtonClickHandler.bind(this),type:this.option("_uploadButtonType"),integrationOptions:{}})}},_uploadButtonClickHandler:function(){this._uploadFiles()},_shouldDragOverBeRendered:function(){return"useForm"!==this.option("uploadMode")||this.option("nativeDropSupported")},_renderInputContainer:function(){this._$inputContainer=i("<div>").addClass(B).appendTo(this._$inputWrapper),this._shouldDragOverBeRendered()||this._$inputContainer.css("display","none"),this._$fileInput.addClass(M),this._renderInput(),this._$inputLabel.addClass(P).appendTo(this._$inputContainer)},_renderInput:function(){this.option("useNativeInputClick")?this._selectButton.option("template",this._selectButtonInputTemplate.bind(this)):(this._$fileInput.appendTo(this._$inputContainer),this._selectButton.option("template","content"))},_selectButtonInputTemplate:function(e,t){var n=i(t),o=i("<span>").addClass("dx-button-text").text(e.text);return n.append(o).append(this._$fileInput),n},_renderInputWrapper:function(){this._$inputWrapper=i("<div>").addClass(O).appendTo(this._$content)},_renderDragEvents:function(){s.off(this._$inputWrapper,"."+this.NAME),this._shouldDragOverBeRendered()&&(this._dragEventsTargets=[],s.on(this._$inputWrapper,x.addNamespace("dragenter",this.NAME),this._dragEnterHandler.bind(this)),s.on(this._$inputWrapper,x.addNamespace("dragover",this.NAME),this._dragOverHandler.bind(this)),s.on(this._$inputWrapper,x.addNamespace("dragleave",this.NAME),this._dragLeaveHandler.bind(this)),s.on(this._$inputWrapper,x.addNamespace("drop",this.NAME),this._dropHandler.bind(this)))},_useInputForDrop:function(){return this.option("nativeDropSupported")&&"useForm"===this.option("uploadMode")},_dragEnterHandler:function(e){return!this.option("disabled")&&(this._useInputForDrop()||e.preventDefault(),this._updateEventTargets(e),void this.$element().addClass(T))},_dragOverHandler:function(e){this._useInputForDrop()||e.preventDefault()},_dragLeaveHandler:function(e){this._useInputForDrop()||e.preventDefault(),this._updateEventTargets(e),this._dragEventsTargets.length||this.$element().removeClass(T)},_updateEventTargets:function(e){var t=this._dragEventsTargets.indexOf(e.target),n=t!==-1;"dragenter"===e.type?!n&&this._dragEventsTargets.push(e.target):n&&this._dragEventsTargets.splice(t,1)},_dropHandler:function(e){if(this._dragEventsTargets=[],this.$element().removeClass(T),!this._useInputForDrop()){e.preventDefault();var t=e.originalEvent.dataTransfer.files,n=this._getFiles(t);!this.option("multiple")&&n.length>1||(this._changeValue(this._filterFiles(n)),"instantly"===this.option("uploadMode")&&this._uploadFiles())}},_filterFiles:function(e){if(!e.length)return e;var t=this.option("accept");if(!t.length)return e;for(var n=[],i=this._getAllowedFileTypes(t),o=0,a=e.length;o<a;o++)this._isFileTypeAllowed(e[o],i)&&n.push(e[o]);return n},_getAllowedFileTypes:function(e){return e.length?e.split(",").map(function(e){return e.trim()}):[]},_isFileTypeAllowed:function(e,t){for(var n=0,i=t.length;n<i;n++){var o=t[n];if("."===o[0]){if(o=o.replace(".","\\."),e.name.match(new RegExp(o+"$","i")))return!0}else if(o=o.replace("*",""),e.type.match(new RegExp(o,"i")))return!0}return!1},_renderWrapper:function(){var e=i("<div>").addClass(D).appendTo(this.$element()),t=i("<div>").addClass(E).appendTo(e);this._$content=i("<div>").addClass(A).appendTo(t)},_clean:function(){this._$fileInput.detach(),delete this._$filesContainer,this.callBase.apply(this,arguments)},_uploadFiles:function(){X()&&d(this._files,function(e,t){this._uploadFile(t)}.bind(this))},_uploadFile:function(e){this._uploadStrategy.upload(e)},_updateProgressBar:function(e,t){e.progressBar&&e.progressBar.option({value:t.loaded,showStatus:!0}),this._progressAction({file:e.value,segmentSize:t.currentSegmentSize,bytesLoaded:t.loaded,bytesTotal:t.total,event:t.event,request:e.request})},_updateTotalProgress:function(e,t){var n=e?Math.round(t/e*100):0;this.option("progress",n),this._setLoadedSize(t)},_initStatusMessage:function(e){e.$statusMessage.css("display","none")},_initCancelButton:function(e){e.cancelButton.option("onClick",function(){this._preventFilesUploading([e]),this._removeFile(e)}.bind(this));var t=function(){setTimeout(function(){e.cancelButton.option({visible:!1})},K)};e.onLoad.add(t),e.onError.add(t)},_createProgressBar:function(e){return this._createComponent(i("<div>"),m,{value:void 0,min:0,max:e,statusFormat:function(e){return Math.round(100*e)+"%"},showStatus:!1,statusPosition:"right"})},_getTotalFilesSize:function(){return this._totalFilesSize||(this._totalFilesSize=0,d(this._files,function(e,t){this._totalFilesSize+=t.value.size}.bind(this))),this._totalFilesSize},_getTotalLoadedFilesSize:function(){return this._totalLoadedFilesSize||(this._totalLoadedFilesSize=0,d(this._files,function(e,t){this._totalLoadedFilesSize+=t.loadedSize}.bind(this))),this._totalLoadedFilesSize},_setLoadedSize:function(e){this._totalLoadedFilesSize=e},_recalculateProgress:function(){this._totalFilesSize=0,this._totalLoadedFilesSize=0,this._updateTotalProgress(this._getTotalFilesSize(),this._getTotalLoadedFilesSize())},_getValidationMessageTarget:function(){return this._$inputWrapper},_optionChanged:function(e){var t=e.value;switch(e.name){case"height":case"width":this._updateFileNameMaxWidth(),this.callBase(e);break;case"value":!t.length&&this._$fileInput.val(""),this._preventRecreatingFiles||(this._createFiles(),this._renderFiles()),this._recalculateProgress(),this.callBase(e);break;case"name":this._initFileInput(),this.callBase(e);break;case"accept":this._initFileInput();break;case"multiple":this._initFileInput(),e.value||this.reset();break;case"selectButtonText":this._selectButton.option("text",t);break;case"uploadButtonText":this._uploadButton&&this._uploadButton.option("text",t);break;case"_uploadButtonType":this._uploadButton&&this._uploadButton.option("type",t);break;case"maxFileSize":case"minFileSize":case"allowedFileExtensions":case"invalidFileExtensionMessage":case"invalidMaxFileSizeMessage":case"invalidMinFileSizeMessage":case"readyToUploadMessage":case"uploadedMessage":case"uploadFailedMessage":this._invalidate();break;case"labelText":this._$inputLabel.text(t);break;case"showFileList":this._preventRecreatingFiles||this._renderFiles();break;case"chunkSize":this._setUploadStrategy();break;case"uploadUrl":case"progress":case"uploadMethod":case"uploadHeaders":case"extendSelection":break;case"allowCanceling":case"uploadMode":this.reset(),this._invalidate();break;case"onUploadStarted":this._createUploadStartedAction();break;case"onUploaded":this._createUploadedAction();break;case"onProgress":this._createProgressAction();break;case"onUploadError":this._createUploadErrorAction();break;case"onUploadAborted":this._createUploadAbortedAction();break;case"useNativeInputClick":this._renderInput();break;case"useDragOver":this._renderDragEvents();break;case"nativeDropSupported":this._invalidate();break;default:this.callBase(e)}},reset:function(){this.option("value",[])}}),Q=o.inherit({ctor:function(e,t){this.file=e,this.chunkSize=t,this.index=0},read:function(){if(!this.file)return null;var e=this.createBlobResult(this.file,this.index,this.chunkSize);return e.isCompleted&&(this.file=null),this.index++,e},createBlobResult:function(e,t,n){var i=t*n;return{blob:this.sliceFile(e,i,n),index:t,isCompleted:i+n>=e.size}},sliceFile:function(e,t,n){return e.slice?e.slice(t,t+n):e.webkitSlice?e.webkitSlice(t,t+n):null}}),J=o.inherit({ctor:function(e){this.fileUploader=e},upload:function(e){e.isValid()&&!e.uploadStarted&&(this._prepareFileBeforeUpload(e),this._uploadCore(e))},_uploadCore:function(e){},_prepareFileBeforeUpload:function(e){e.$file&&this.fileUploader._createFileProgressBar(e),e.onLoadStart.add(this._onUploadStarted.bind(this,e)),e.onLoad.add(this._onLoadedHandler.bind(this,e)),e.onError.add(this._onErrorHandler.bind(this,e)),e.onAbort.add(this._onAbortHandler.bind(this,e)),e.onProgress.add(this._onProgressHandler.bind(this,e))},_isStatusError:function(e){return 400<=e&&e<500||500<=e&&e<600},_onUploadStarted:function(e,t){e.uploadStarted=!0,this.fileUploader._uploadStartedAction({file:e.value,event:t,request:e.request})},_onAbortHandler:function(e,t){this.fileUploader._uploadAbortedAction({file:e.value,event:t,request:e.request})},_onErrorHandler:function(e,t){this.fileUploader._setStatusMessage(e,"uploadFailedMessage"),this.fileUploader._uploadErrorAction({file:e.value,event:t,request:e.request})},_onLoadedHandler:function(e,t){this.fileUploader._setStatusMessage(e,"uploadedMessage"),this.fileUploader._uploadedAction({file:e.value,event:t,request:e.request})},_onProgressHandler:function(e,t){if(e){var n=this.fileUploader._getTotalFilesSize(),i=this.fileUploader._getTotalLoadedFilesSize(),o=Math.min(t.loaded,e.value.size),a=o-e.loadedSize;e.loadedSize=o,this.fileUploader._updateTotalProgress(n,i+a),this.fileUploader._updateProgressBar(e,this._getLoadedData(o,t.total,a,t))}},_getLoadedData:function(e,t,n,i){return{loaded:e,total:t,currentSegmentSize:n}}}),ee=J.inherit({ctor:function(e){this.callBase(e),this.chunkSize=this.fileUploader.option("chunkSize")},_uploadCore:function(e){var t=e.value;this._sendChunk(e,{name:t.name,loadedBytes:0,type:t.type,blobReader:new Q(t,this.chunkSize),guid:new a,fileSize:t.size,count:Math.ceil(t.size/this.chunkSize)})},_sendChunk:function(e,t){var n=t.blobReader.read();n&&(t.loadedBytes+=n.blob.size,f.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:function(t){e.request=t},upload:{onloadstart:function(){e.isStartLoad||(e.isStartLoad=!0,e.onLoadStart.fire())},onabort:function(){e.onAbort.fire()}},data:this._createFormData({fileName:t.name,blobName:this.fileUploader.option("name"),blob:n.blob,index:n.index,count:t.count,type:t.type,guid:t.guid,size:t.fileSize})}).done(function(){e.onProgress.fire({loaded:t.loadedBytes,total:e.value.size}),n.isCompleted&&e.onLoad.fire(),this._sendChunk(e,t)}.bind(this)).fail(function(t){this._isStatusError(t.status)&&(e._isError=!0,e.onError.fire())}.bind(this)))},_createFormData:function(e){var t=new r.FormData;return t.append(e.blobName,e.blob),t.append(U,JSON.stringify({FileName:e.fileName,Index:e.index,TotalCount:e.count,FileSize:e.size,FileType:e.type,FileGuid:e.guid})),t},_getEvent:function(e){return null}}),te=J.inherit({_uploadCore:function(e){e.loadedSize=0,f.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:function(t){e.request=t},upload:{onprogress:function(t){e._isError||(e._isProgressStarted=!0,e.onProgress.fire(t))},onloadstart:function(){e.onLoadStart.fire()},onabort:function(){e.onAbort.fire()}},data:this._createFormData(this.fileUploader.option("name"),e.value)}).done(function(){e.onLoad.fire()}).fail(function(t){!this._isStatusError(t.status)&&e._isProgressStarted||(e._isError=!0,e.onError.fire())}.bind(this))},_createFormData:function(e,t){var n=new r.FormData;return n.append(e,t),n},_getLoadedData:function(e,t,n,i){var o=this.callBase(e,t,n,i);return o.event=i,o}});l("dxFileUploader",Z),e.exports=Z},function(e,t,n){var i=n(2),o=n(5),a=n(9),r=n(43),s=n(4),l=n(1),u=n(37),c=n(3).each,d=n(13).inArray,h=n(0).extend,p=n(45),f=n(26),g=n(12),_=n(14),m=n(18),v=n(7),y=n(99),x=(n(556),n(312).default),b=n(314),w=n(94),C=n(6).Deferred,k=n(31);n(249),n(317);var S="dx-form",I="dx-field-item",T="dx-field-item-label-text",D="dx-form-group",E="dx-form-group-content",A="dx-form-group-with-caption",O="dx-form-group-caption",B="dx-layout-manager-hidden-label",P="dx-field-item-label",M="dx-field-item-label-content",R="dx-field-item-tab",V="dx-col-",F="dx-group-colcount-",L="dx-field-item-content",H="dx-form-validation-summary",z="dx-widget",N="dx-state-focused",$=m.inherit({_init:function(){this.callBase(),this._cachedColCountOptions=[],this._itemsRunTimeInfo=new x,this._groupsColCount=[],this._attachSyncSubscriptions()},_initOptions:function(e){"screenByWidth"in e||(e.screenByWidth=v.defaultScreenFactorFunc),this.callBase(e)},_getDefaultOptions:function(){return h(this.callBase(),{formID:"dx-"+new r,formData:{},colCount:1,screenByWidth:null,colCountByScreen:void 0,labelLocation:"left",readOnly:!1,onFieldDataChanged:null,customizeItem:null,onEditorEnterKey:null,minColWidth:200,alignItemLabels:!0,alignItemLabelsInAllGroups:!0,showColonAfterLabel:!0,showRequiredMark:!0,showOptionalMark:!1,requiredMark:"*",optionalMark:_.format("dxForm-optionalMark"),requiredMessage:_.getFormatter("dxForm-requiredMessage"),showValidationSummary:!1,items:void 0,scrollingEnabled:!1,validationGroup:void 0,stylingMode:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return k.isMaterial()},options:{showColonAfterLabel:!1,labelLocation:"top"}}])},_setOptionsByReference:function(){this.callBase(),h(this._optionsByReference,{formData:!0,validationGroup:!0})},_getColCount:function(e){for(var t,n=0,i=!0;i;)t=e.find("."+V+n),t.length?n++:i=!1;return n},_createHiddenElement:function(e){this._$hiddenElement=i("<div>").addClass(z).addClass(B).appendTo("body");var t=e._renderLabel({text:" ",location:this.option("labelLocation")}).appendTo(this._$hiddenElement);this._hiddenLabelText=t.find("."+T)[0]},_removeHiddenElement:function(){this._$hiddenElement.remove(),this._hiddenLabelText=null},_getLabelWidthByText:function(e){return this._hiddenLabelText.innerHTML=e,this._hiddenLabelText.offsetWidth},_getLabelsSelectorByCol:function(e,t){t=t||{};var n=t.inOneColumn?I:V+e,i=t.excludeTabbed?":not(."+R+")":"",o="> ."+P+" > ."+M;return"."+n+i+o},_getLabelText:function(e){var t,n,i=e.children.length,o="";for(n=0;n<i;n++)t=e.children[n],o+=p.isEmpty(t.innerText)?t.innerHTML:t.innerText;return o},_applyLabelsWidthByCol:function(e,t,n){var i,o,a=e.find(this._getLabelsSelectorByCol(t,n)),r=a.length,s=0;for(o=0;o<r;o++)i=this._getLabelWidthByText(this._getLabelText(a[o])),i>s&&(s=i);for(o=0;o<r;o++)a[o].style.width=s+"px"},_applyLabelsWidth:function(e,t,n,i){i=n?1:i||this._getColCount(e);var o,a={excludeTabbed:t,inOneColumn:n};for(o=0;o<i;o++)this._applyLabelsWidthByCol(e,o,a)},_getGroupElementsInColumn:function(e,t,n){var i=l.isDefined(n)?"."+F+n:"",o="."+V+t+" > ."+L+" > ."+D+i;return e.find(o)},_applyLabelsWidthWithGroups:function(e,t,n){var i=this.option("alignItemLabelsInAllGroups");if(i)this._applyLabelsWidthWithNestedGroups(e,t,n);else{var o,a=this.$element().find("."+D);for(o=0;o<a.length;o++)this._applyLabelsWidth(a.eq(o),n)}},_applyLabelsWidthWithNestedGroups:function(e,t,n){var i,o,a,r,s={excludeTabbed:n};for(i=0;i<t;i++)for(r=this._getGroupElementsInColumn(e,i),this._applyLabelsWidthByCol(r,0,s),o=0;o<this._groupsColCount.length;o++){r=this._getGroupElementsInColumn(e,i,this._groupsColCount[o]);var l=this._getColCount(r);for(a=1;a<l;a++)this._applyLabelsWidthByCol(r,a,s)}},_alignLabelsInColumn:function(e){v.hasWindow()&&(this._createHiddenElement(e.layoutManager),e.inOneColumn?this._applyLabelsWidth(e.$container,e.excludeTabbed,!0):this._checkGrouping(e.items)?this._applyLabelsWidthWithGroups(e.$container,e.layoutManager._getColCount(),e.excludeTabbed):this._applyLabelsWidth(e.$container,e.excludeTabbed,!1,e.layoutManager._getColCount()),this._removeHiddenElement())},_prepareFormData:function(){l.isDefined(this.option("formData"))||this.option("formData",{})},_initMarkup:function(){y.addGroup(this._getValidationGroup()),this._clearCachedInstances(),this._prepareFormData(),this.$element().addClass(S),this.callBase(),this.setAria("role","form",this.$element()),this.option("scrollingEnabled")&&this._renderScrollable(),this._renderLayout(),this._renderValidationSummary(),this._lastMarkupScreenFactor=this._targetScreenFactor||this._getCurrentScreenFactor()},_getCurrentScreenFactor:function(){return v.hasWindow()?v.getCurrentScreenFactor(this.option("screenByWidth")):"lg"},_clearCachedInstances:function(){this._itemsRunTimeInfo.clear(),this._cachedLayoutManagers=[]},_alignLabels:function(e,t){this._alignLabelsInColumn({$container:this.$element(),layoutManager:e,excludeTabbed:!0,items:this.option("items"),inOneColumn:t})},_clean:function(){this.callBase(),this._groupsColCount=[],this._cachedColCountOptions=[],this._lastMarkupScreenFactor=void 0},_renderScrollable:function(){var e=this.option("useNativeScrolling");this._scrollable=new w(this.$element(),{useNative:!!e,useSimulatedScrollbar:!e,useKeyboard:!1,direction:"both",bounceEnabled:!1})},_getContent:function(){return this.option("scrollingEnabled")?this._scrollable.$content():this.$element()},_renderValidationSummary:function(){var e=this.$element().find("."+H);e.length>0&&e.remove(),this.option("showValidationSummary")&&i("<div>").addClass(H).dxValidationSummary({validationGroup:this._getValidationGroup()}).appendTo(this._getContent())},_prepareItems:function(e,t){if(e){for(var n=[],i=0;i<e.length;i++){var o=e[i],a=this._itemsRunTimeInfo.add(o);if(l.isObject(o)){var r=h({},o);r.guid=a,this._tryPrepareGroupItem(r),this._tryPrepareTabbedItem(r),this._tryPrepareItemTemplate(r),t&&(r.cssItemClass=R),r.items&&(r.items=this._prepareItems(r.items,t)),n.push(r)}else n.push(o)}return n}},_tryPrepareGroupItem:function(e){"group"===e.itemType&&(e.alignItemLabels=s.ensureDefined(e.alignItemLabels,!0),e.template&&(e.groupContentTemplate=this._getTemplate(e.template)),e.template=this._itemGroupTemplate.bind(this,e))},_tryPrepareTabbedItem:function(e){"tabbed"===e.itemType&&(e.template=this._itemTabbedTemplate.bind(this,e),e.tabs=this._prepareItems(e.tabs,!0))},_tryPrepareItemTemplate:function(e){e.template&&(e.template=this._getTemplate(e.template))},_checkGrouping:function(e){if(e)for(var t=0;t<e.length;t++){var n=e[t];if("group"===n.itemType)return!0}},_renderLayout:function(){var e=this,t=e.option("items"),n=e._getContent();t=e._prepareItems(t),e._rootLayoutManager=e._renderLayoutManager(t,n,{colCount:e.option("colCount"),alignItemLabels:e.option("alignItemLabels"),screenByWidth:this.option("screenByWidth"),colCountByScreen:this.option("colCountByScreen"),onLayoutChanged:function(t){e._alignLabels.bind(e)(e._rootLayoutManager,t)},onContentReady:function(t){e._alignLabels(t.component,t.component.isSingleColumnMode())}})},_tryGetItemsForTemplate:function(e){return e.items||[]},_itemTabbedTemplate:function(e,t,n){var o=this,a=i("<div>").appendTo(n),r=h({},e.tabPanelOptions,{dataSource:e.tabs,onItemRendered:function(e){g.triggerShownEvent(e.itemElement)},itemTemplate:function(e,t,n){var a,r=i(n),l=s.ensureDefined(e.alignItemLabels,!0);a=o._renderLayoutManager(o._tryGetItemsForTemplate(e),r,{colCount:e.colCount,alignItemLabels:l,screenByWidth:this.option("screenByWidth"),colCountByScreen:e.colCountByScreen,cssItemClass:e.cssItemClass,onLayoutChanged:function(t){o._alignLabelsInColumn.bind(o)({$container:r,layoutManager:a,items:e.items,inOneColumn:t})}}),l&&o._alignLabelsInColumn.bind(o)({$container:r,layoutManager:a,items:e.items,inOneColumn:a.isSingleColumnMode()})}});o._createComponent(a,b,r)},_itemGroupTemplate:function(e,t,n){var o,a,r,s=i("<div>").toggleClass(A,l.isDefined(e.caption)&&e.caption.length).addClass(D).appendTo(n);if(e.caption&&i("<span>").addClass(O).text(e.caption).appendTo(s),o=i("<div>").addClass(E).appendTo(s),e.groupContentTemplate){var u={formData:this.option("formData"),component:this};e.groupContentTemplate.render({model:u,container:g.getPublicElement(o)})}else r=this._renderLayoutManager(this._tryGetItemsForTemplate(e),o,{colCount:e.colCount,colCountByScreen:e.colCountByScreen,alignItemLabels:e.alignItemLabels,cssItemClass:e.cssItemClass}),a=r._getColCount(),d(a,this._groupsColCount)===-1&&this._groupsColCount.push(a),s.addClass(F+a)},_renderLayoutManager:function(e,t,n){var o,a=i("<div>"),r=this,s=r._getLayoutManagerConfig(e,n),l={lg:n.colCount,md:n.colCount,sm:n.colCount,xs:1};return r._cachedColCountOptions.push({colCountByScreen:h(l,n.colCountByScreen)}),a.appendTo(t),o=r._createComponent(a,"dxLayoutManager",s),o.on("autoColCountChanged",function(){r._refresh()}),r._cachedLayoutManagers.push(o),o},_getValidationGroup:function(){return this.option("validationGroup")||this},_getLayoutManagerConfig:function(e,t){var n=this,i={form:n,validationGroup:n._getValidationGroup(),showRequiredMark:n.option("showRequiredMark"),showOptionalMark:n.option("showOptionalMark"),requiredMark:n.option("requiredMark"),optionalMark:n.option("optionalMark"),requiredMessage:n.option("requiredMessage"),screenByWidth:n.option("screenByWidth"),layoutData:n.option("formData"),labelLocation:n.option("labelLocation"),customizeItem:n.option("customizeItem"),minColWidth:n.option("minColWidth"),showColonAfterLabel:n.option("showColonAfterLabel"),onEditorEnterKey:n.option("onEditorEnterKey"),onFieldDataChanged:function(e){n._isDataUpdating||n._triggerOnFieldDataChanged(e)},validationBoundary:n.option("scrollingEnabled")?n.$element():void 0};return h(i,{items:e,onContentReady:function(e){n._itemsRunTimeInfo.addItemsOrExtendFrom(e.component._itemsRunTimeInfo),t.onContentReady&&t.onContentReady(e)},colCount:t.colCount,alignItemLabels:t.alignItemLabels,cssItemClass:t.cssItemClass,colCountByScreen:t.colCountByScreen,onLayoutChanged:t.onLayoutChanged,width:t.width})},_createComponent:function(e,t,n){var i=this;return n=n||{},i._extendConfig(n,{readOnly:i.option("readOnly")}),i.callBase(e,t,n)},_attachSyncSubscriptions:function(){var e=this;e.on("optionChanged",function(t){var n=t.fullName;"formData"===n&&(l.isDefined(t.value)||(e._options.formData=t.value={}),e._triggerOnFieldDataChangedByDataSet(t.value)),e._cachedLayoutManagers.length&&c(e._cachedLayoutManagers,function(i,o){"formData"===n&&(e._isDataUpdating=!0,o.option("layoutData",t.value),e._isDataUpdating=!1),"readOnly"!==t.name&&"disabled"!==t.name||o.option(n,t.value)})})},_optionChanged:function(e){var t=this._getRootLevelOfExpectedComplexOption(e.fullName,["formData","items"]);if(t)return void this._customHandlerOfComplexOption(e,t);switch(e.name){case"formData":this.option("items")?l.isEmptyObject(e.value)&&this._resetValues():this._invalidate();break;case"items":case"colCount":case"onFieldDataChanged":case"onEditorEnterKey":case"labelLocation":case"alignItemLabels":case"showColonAfterLabel":case"customizeItem":case"alignItemLabelsInAllGroups":case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":case"requiredMessage":case"scrollingEnabled":case"formID":case"colCountByScreen":case"screenByWidth":case"stylingMode":this._invalidate();break;case"showValidationSummary":this._renderValidationSummary();break;case"minColWidth":"auto"===this.option("colCount")&&this._invalidate();break;case"readOnly":break;case"width":this.callBase(e),this._rootLayoutManager.option(e.name,e.value),this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode());break;case"visible":this.callBase(e),e.value&&g.triggerShownEvent(this.$element());break;case"validationGroup":y.removeGroup(e.previousValue||this),this._invalidate();break;default:this.callBase(e)}},_getRootLevelOfExpectedComplexOption:function(e,t){var n,i=e.split(".");if(i.length>1){var o,a=i[0];for(o=0;o<t.length;o++)a.search(t[o])!==-1&&(n=t[o])}return n},_customHandlerOfComplexOption:function(e,t){var n=e.fullName.split(".");switch(t){case"items":var i=this._getItemPath(n),o=this.option(i),a=this._itemsRunTimeInfo.findWidgetInstanceByItem(o),r=this._itemsRunTimeInfo.findItemContainerByItem(o),s=e.fullName;if(a){if(s.search("buttonOptions")!==-1){a.option(o.buttonOptions);break}if(a&&s.search("editorOptions")!==-1){a.option(o.editorOptions);break}if(s.search("validationRules")!==-1){var l=u.data(a.$element()[0],"dxValidator");if(l){var c=function(e){return"required"===e.type},d=(l.option("validationRules")||[]).some(c),h=(o.validationRules||[]).some(c);if(!d&&!h||d&&h){l.option("validationRules",o.validationRules);break}}}else if(r&&"cssClass"===s.substring(s.length-8,s.length)){r.removeClass(e.previousValue).addClass(e.value);break}}if(o){var p,f=e.fullName.replace(i+".","");this._changeItemOption(o,f,e.value),p=this._generateItemsFromData(this.option("items")),this.option("items",p)}break;case"formData":var g=n.slice(1).join("."),_=this.getEditor(g);_?_.option("value",e.value):this._triggerOnFieldDataChanged({dataField:g,value:e.value})}},_getItemPath:function(e){var t,n=e[0];for(t=1;t<e.length&&e[t].search("items|tabs")!==-1;t++)n+="."+e[t];return n},_triggerOnFieldDataChanged:function(e){this._createActionByOption("onFieldDataChanged")(e)},_triggerOnFieldDataChangedByDataSet:function(e){var t=this;e&&l.isObject(e)&&c(e,function(e,n){t._triggerOnFieldDataChanged({dataField:e,value:n})})},_updateFieldValue:function(e,t){if(l.isDefined(this.option("formData"))){var n=this.getEditor(e);if(this.option("formData."+e,t),n){var i=n.option("value");i!==t&&n.option("value",t)}}},_generateItemsFromData:function(e){var t=this.option("formData"),n=[];return!e&&l.isDefined(t)&&c(t,function(e){n.push({dataField:e})}),e&&c(e,function(e,t){l.isObject(t)?n.push(t):n.push({dataField:t})}),n},_getItemByField:function(e,t){var n,i=this,o=l.isObject(e)?e:i._getFieldParts(e),a=o.fieldName,r=o.fieldPath;return t.length&&c(t,function(e,t){var o=t.itemType;if(r.length){var s=r.slice();t=i._getItemByFieldPath(s,a,t)}else if("group"===o&&!t.caption&&!t.name||"tabbed"===o){var l=i._getSubItemField(o);t.items=i._generateItemsFromData(t.items),t=i._getItemByField({fieldName:a,fieldPath:r},t[l])}if(i._isExpectedItem(t,a))return n=t,!1}),n},_getFieldParts:function(e){for(var t=".",n=e,i=n.indexOf(t),o=[];i!==-1;)o.push(n.substr(0,i)),n=n.substr(i+1),i=n.indexOf(t);return{fieldName:n,fieldPath:o.reverse()}},_getItemByFieldPath:function(e,t,n){var i,o=this,a=n.itemType,r=o._getSubItemField(a),s="group"===a||"tabbed"===a||n.title;do{if(!s)break;var u,c=n.name||n.caption||n.title,d=l.isDefined(c),h=o._getTextWithoutSpaces(c);if(n[r]=o._generateItemsFromData(n[r]),d&&(u=e.pop()),!e.length&&(i=o._getItemByField(t,n[r])))break;(!d||d&&h===u)&&e.length&&(i=o._searchItemInEverySubItem(e,t,n[r]))}while(e.length&&!l.isDefined(i));return i},_getSubItemField:function(e){return"tabbed"===e?"tabs":"items"},_searchItemInEverySubItem:function(e,t,n){var i,o=this;return c(n,function(n,a){if(i=o._getItemByFieldPath(e.slice(),t,a))return!1}),i||(i=!1),i},_getTextWithoutSpaces:function(e){return e?e.replace(/\s/g,""):void 0},_isExpectedItem:function(e,t){return e&&(e.dataField===t||e.name===t||this._getTextWithoutSpaces(e.title)===t||"group"===e.itemType&&this._getTextWithoutSpaces(e.caption)===t);
80},_changeItemOption:function(e,t,n){l.isObject(e)&&(e[t]=n)},_dimensionChanged:function(){var e=this._getCurrentScreenFactor();this._lastMarkupScreenFactor!==e&&(this._isColCountChanged(this._lastMarkupScreenFactor,e)&&(this._targetScreenFactor=e,this._refresh(),this._targetScreenFactor=void 0),this._lastMarkupScreenFactor=e)},_isColCountChanged:function(e,t){var n=!1;return c(this._cachedColCountOptions,function(i,o){if(o.colCountByScreen[e]!==o.colCountByScreen[t])return n=!0,!1}),n},_refresh:function(){var e="."+N+" input, ."+N+" textarea";o.trigger(this.$element().find(e),"change"),this.callBase()},_resetValues:function(){var e=this._getValidationGroup(),t=y.getGroupConfig(e);t&&t.reset(),this._itemsRunTimeInfo.each(function(e,t){l.isDefined(t.widgetInstance)&&l.isDefined(t.item)&&"button"!==t.item.itemType&&(t.widgetInstance.reset(),t.widgetInstance.option("isValid",!0))})},_updateData:function(e,t,n){var i=this,o=n?t:e;l.isObject(o)?c(o,function(t,o){i._updateData(n?e+"."+t:t,o,l.isObject(o))}):l.isString(e)&&i._updateFieldValue(e,t)},registerKeyHandler:function(e,t){this.callBase(e,t),this._itemsRunTimeInfo.each(function(n,i){l.isDefined(i.widgetInstance)&&i.widgetInstance.registerKeyHandler(e,t)})},_focusTarget:function(){return this.$element().find("."+L+" [tabindex]").first()},_visibilityChanged:function(e){e&&f.msie&&this._refresh()},_dispose:function(){y.removeGroup(this._getValidationGroup()),this.callBase()},resetValues:function(){this._resetValues()},updateData:function(e,t){this._updateData(e,t)},getEditor:function(e){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(e)||this._itemsRunTimeInfo.findWidgetInstanceByName(e)},getButton:function(e){return this._itemsRunTimeInfo.findWidgetInstanceByName(e)},updateDimensions:function(){var e=this,t=new C;return e._scrollable?e._scrollable.update().done(function(){t.resolveWith(e)}):t.resolveWith(e),t.promise()},itemOption:function(e,t,n){var i=this,o=arguments.length,a=i._generateItemsFromData(i.option("items")),r=i._getItemByField(e,a);switch(o){case 1:return r;case 3:i._changeItemOption(r,t,n);break;default:l.isObject(t)&&c(t,function(e,t){i._changeItemOption(r,e,t)})}this.option("items",a)},validate:function(){return y.validateGroup(this._getValidationGroup())},getItemID:function(e){return"dx_"+this.option("formID")+"_"+(e||new r)},getTargetScreenFactor:function(){return this._targetScreenFactor}});a("dxForm",$),e.exports=$},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var 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},a=n(2),r=i(a),s=n(5),l=i(s),u=n(43),c=i(u),d=n(312),h=i(d),p=n(9),f=i(p),g=n(1),_=i(g),m=n(12),v=i(m),y=n(87),x=n(7),b=i(x),w=n(45),C=i(w),k=n(3),S=n(0),I=n(13),T=n(20),D=i(T),E=n(131),A=i(E),O=n(19),B=i(O),P=n(17),M=i(P),R=n(14),V=i(R),F=n(83),L=i(F),H=n(32),z=i(H),N=n(18),$=i(N),W=n(197),G=i(W),j=n(313),q=i(j),K=n(31),U=i(K);n(92),n(117),n(103),n(193),n(34);var Y="dxTextBox",X="dx-field-item",Z="dx-field-empty-item",Q="dx-field-button-item",J="dx-field-item-required",ee="dx-field-item-optional",te="dx-field-item-required-mark",ne="dx-field-item-optional-mark",ie="dx-field-item-label",oe="dx-field-item-label-align",ae="dx-field-item-label-content",re="dx-field-item-label-text",se="dx-field-item-label-location-",le="dx-field-item-content",ue="dx-field-item-content-location-",ce="dx-field-item-content-wrapper",de="dx-field-item-help-text",he="dx-single-column-item-content",pe="dx-label-h-align",fe="dx-label-v-align",ge="dx-layout-manager",_e="dx-first-row",me="dx-first-col",ve="dx-last-col",ye="dx-layout-manager-one-col",xe="dx-flex-layout",be="dx-invalid",we="flex",Ce="fallback",ke="simple",Se="dx-template-wrapper",Ie=["dataSource","items"],Te=["dxTagBox","dxRangeSlider"],De=$.default.inherit({_getDefaultOptions:function(){return(0,S.extend)(this.callBase(),{layoutData:{},readOnly:!1,colCount:1,colCountByScreen:void 0,labelLocation:"left",onFieldDataChanged:null,onEditorEnterKey:null,customizeItem:null,alignItemLabels:!0,minColWidth:200,showRequiredMark:!0,screenByWidth:null,showOptionalMark:!1,requiredMark:"*",optionalMark:V.default.format("dxForm-optionalMark"),requiredMessage:V.default.getFormatter("dxForm-requiredMessage")})},_setOptionsByReference:function(){this.callBase(),(0,S.extend)(this._optionsByReference,{layoutData:!0,validationGroup:!0})},_init:function(){var e=this.option("layoutData");this.callBase(),this._itemWatchers=[],this._itemsRunTimeInfo=new h.default,this._updateReferencedOptions(e),this._initDataAndItems(e)},_dispose:function(){this.callBase(),this._cleanItemWatchers()},_initDataAndItems:function(e){this._syncDataWithItems(),this._updateItems(e)},_syncDataWithItems:function(){var e=this,t=e.option("items");_.default.isDefined(t)&&(0,k.each)(t,function(t,n){var i;n.dataField&&void 0===e._getDataByField(n.dataField)&&(n.editorOptions&&(i=n.editorOptions.value),e._updateFieldValue(n.dataField,i))})},_getDataByField:function(e){return e?this.option("layoutData."+e):null},_updateFieldValue:function(e,t){var n=this.option("layoutData"),i=t;!(0,y.isWrapped)(n[e])&&_.default.isDefined(e)?this.option("layoutData."+e,i):(0,y.isWritableWrapped)(n[e])&&(i=_.default.isFunction(i)?i():i,n[e](i)),this._triggerOnFieldDataChanged({dataField:e,value:i})},_triggerOnFieldDataChanged:function(e){this._createActionByOption("onFieldDataChanged")(e)},_updateItems:function(e){var t,n,i=this,o=this.option("items"),a=_.default.isDefined(o),r=i.option("customizeItem");t=a?o:this._generateItemsByData(e),_.default.isDefined(t)&&(n=[],(0,k.each)(t,function(e,t){i._isAcceptableItem(t)&&(t=i._processItem(t),r&&r(t),_.default.isObject(t)&&(0,y.unwrap)(t.visible)!==!1&&n.push(t))}),i._itemWatchers.length&&a||i._updateItemWatchers(t),this._items=n,this._sortItems())},_cleanItemWatchers:function(){this._itemWatchers.forEach(function(e){e()}),this._itemWatchers=[]},_updateItemWatchers:function(e){var t=this,n=t._getWatch();e.forEach(function(e){_.default.isObject(e)&&_.default.isDefined(e.visible)&&_.default.isFunction(n)&&t._itemWatchers.push(n(function(){return(0,y.unwrap)(e.visible)},function(){t._updateItems(t.option("layoutData")),t.repaint()},{skipImmediate:!0}))})},_generateItemsByData:function(e){var t=[];return _.default.isDefined(e)&&(0,k.each)(e,function(e){t.push({dataField:e})}),t},_isAcceptableItem:function(e){var t=e.dataField||e,n=this._getDataByField(t);return!(_.default.isFunction(n)&&!(0,y.isWrapped)(n))},_processItem:function(e){if("string"==typeof e&&(e={dataField:e}),"object"!==("undefined"==typeof e?"undefined":o(e))||e.itemType||(e.itemType=ke),!_.default.isDefined(e.editorType)&&_.default.isDefined(e.dataField)){var t=this._getDataByField(e.dataField);e.editorType=_.default.isDefined(t)?this._getEditorTypeByDataType(_.default.type(t)):Y}return e},_getEditorTypeByDataType:function(e){switch(e){case"number":return"dxNumberBox";case"date":return"dxDateBox";case"boolean":return"dxCheckBox";default:return"dxTextBox"}},_sortItems:function(){(0,I.normalizeIndexes)(this._items,"visibleIndex"),this._sortIndexes()},_sortIndexes:function(){this._items.sort(function(e,t){var n,i=e.visibleIndex,o=t.visibleIndex;return n=i>o?1:i<o?-1:0})},_initMarkup:function(){this._itemsRunTimeInfo.clear(),this.$element().addClass(ge),this.callBase(),this._renderResponsiveBox()},_hasBrowserFlex:function(){return L.default.styleProp(we)===we},_renderResponsiveBox:function(){var e=this,t=[];if(e._items&&e._items.length){var n,i=e._getColCount(),o=(0,r.default)("<div>").appendTo(e.$element());e._prepareItemsWithMerging(i),n=e._generateLayoutItems(),e._extendItemsWithDefaultTemplateOptions(n,e._items),e._responsiveBox=e._createComponent(o,q.default,e._getResponsiveBoxConfig(n,i,t)),b.default.hasWindow()||e._renderTemplates(t)}},_extendItemsWithDefaultTemplateOptions:function(e,t){t.forEach(function(t){t.merged||(_.default.isDefined(t.disabled)&&(e[t.visibleIndex].disabled=t.disabled),_.default.isDefined(t.visible)&&(e[t.visibleIndex].visible=t.visible))})},_itemStateChangedHandler:function(e){this._refresh()},_renderTemplate:function(e,t){switch(t.itemType){case"empty":this._renderEmptyItem(e);break;case"button":this._renderButtonItem(t,e);break;default:this._renderFieldItem(t,e)}},_renderTemplates:function(e){var t=this;(0,k.each)(e,function(e,n){t._renderTemplate(n.container,n.formItem)})},_getResponsiveBoxConfig:function(e,t,n){var i=this,o=i.option("colCountByScreen"),a=o&&o.xs;return{onItemStateChanged:this._itemStateChangedHandler.bind(this),_layoutStrategy:i._hasBrowserFlex()?we:Ce,onLayoutChanged:function e(){var e=i.option("onLayoutChanged"),t=i.isSingleColumnMode();e&&(i.$element().toggleClass(ye,t),e(t))},onContentReady:function(e){b.default.hasWindow()&&i._renderTemplates(n),i.option("onLayoutChanged")&&i.$element().toggleClass(ye,i.isSingleColumnMode(e.component)),i._fireContentReadyAction()},itemTemplate:function(e,o,a){if(e.location){var s=(0,r.default)(a),l=e.location.row*t,u=i._items[e.location.col+l],c=(0,r.default)("<div>").addClass(u.cssClass).appendTo(s);n.push({container:c,formItem:u}),s.toggleClass(he,i.isSingleColumnMode(this)),0===e.location.row&&c.addClass(_e),0===e.location.col&&c.addClass(me),e.location.col!==t-1&&e.location.col+e.location.colspan!==t||c.addClass(ve)}},cols:i._generateRatio(t),rows:i._generateRatio(i._getRowsCount(),!0),dataSource:e,screenByWidth:i.option("screenByWidth"),singleColumnScreen:!a&&"xs"}},_getColCount:function(){var e=this.option("colCount"),t=this.option("colCountByScreen");if(t){var n=this.option("form").getTargetScreenFactor();n||(n=b.default.hasWindow()?b.default.getCurrentScreenFactor(this.option("screenByWidth")):"lg"),e=t[n]||e}if("auto"===e){if(this._cashedColCount)return this._cashedColCount;this._cashedColCount=e=this._getMaxColCount()}return e<1?1:e},_getMaxColCount:function(){if(!b.default.hasWindow())return 1;var e=this.option("minColWidth"),t=this.$element().width(),n=this._items.length,i=Math.floor(t/e)||1;return n<i?n:i},isCachedColCountObsolete:function(){return this._cashedColCount&&this._getMaxColCount()!==this._cashedColCount},_prepareItemsWithMerging:function(e){var t,n,i,o,a=this._items.slice(0),r=[];for(o=0;o<a.length;o++)if(t=a[o],r.push(t),(this.option("alignItemLabels")||t.alignItemLabels||t.colSpan)&&(t.col=this._getColByIndex(r.length-1,e)),t.colSpan>1&&t.col+t.colSpan<=e){for(n=[],i=0;i<t.colSpan-1;i++)n.push({merged:!0});r=r.concat(n)}else delete t.colSpan;this._items=r},_getColByIndex:function(e,t){return e%t},_generateLayoutItems:function(){var e,t,n=this._items,i=this._getColCount(),o=[];for(t=0;t<n.length;t++)if(e=n[t],!e.merged){var a={location:{row:parseInt(t/i),col:this._getColByIndex(t,i)}};_.default.isDefined(e.colSpan)&&(a.location.colspan=e.colSpan),_.default.isDefined(e.rowSpan)&&(a.location.rowspan=e.rowSpan),o.push(a)}return o},_renderEmptyItem:function(e){return e.addClass(Z).html("&nbsp;")},_getButtonHorizontalAlignment:function(e){return _.default.isDefined(e.horizontalAlignment)?e.horizontalAlignment:_.default.isDefined(e.alignment)?(M.default.log("W0001","dxForm","alignment","18.1","Use the 'horizontalAlignment' option in button items instead."),e.alignment):"right"},_getButtonVerticalAlignment:function(e){switch(e.verticalAlignment){case"center":return"center";case"bottom":return"flex-end";default:return"flex-start"}},_renderButtonItem:function(e,t){var n=(0,r.default)("<div>").appendTo(t),i={validationGroup:this.option("validationGroup")};t.addClass(Q).css("textAlign",this._getButtonHorizontalAlignment(e)),t.parent().css("justifyContent",this._getButtonVerticalAlignment(e));var o=this._createComponent(n,"dxButton",(0,S.extend)(i,e.buttonOptions));return this._itemsRunTimeInfo.add(e,o,e.guid,t),this._addItemClasses(t,e.col),n},_addItemClasses:function(e,t){e.addClass(X).addClass(this.option("cssItemClass")).addClass(_.default.isDefined(t)?"dx-col-"+t:"")},_renderFieldItem:function(e,t){var n,i=this,o=i._getName(e),a=i.getItemID(o),s=_.default.isDefined(e.isRequired)?e.isRequired:!!i._hasRequiredRuleInSet(e.validationRules),l=i._getLabelOptions(e,a,s),u=(0,r.default)("<div>"),d=e.helpText?"dx-"+new c.default:null;this._addItemClasses(t,e.col),t.addClass(s?J:ee),l.visible&&l.text&&(n=i._renderLabel(l).appendTo(t)),e.itemType===ke&&(i._isLabelNeedBaselineAlign(e)&&"top"!==l.location&&t.addClass(oe),i._hasBrowserFlex()&&t.addClass(xe)),u.data("dx-form-item",e),i._appendEditorToField({$fieldItem:t,$label:n,$editor:u,labelOptions:l});var h=i._renderEditor({$container:u,dataField:e.dataField,name:o,editorType:e.editorType,editorOptions:e.editorOptions,template:i._getTemplateByFieldItem(e),isRequired:s,helpID:d,id:a,validationBoundary:i.option("validationBoundary")});this._itemsRunTimeInfo.add(e,h,e.guid,t);var p=u.children().first(),f=p.hasClass(Se)?p.children().first():p;f&&f.data("dx-validation-target")&&i._renderValidator(f,e),i._renderHelpText(e,u,d),i._attachClickHandler(n,u,e.editorType)},_hasRequiredRuleInSet:function(e){var t;return e&&e.length&&(0,k.each)(e,function(e,n){if("required"===n.type)return t=!0,!1}),t},_getName:function(e){return e.dataField||e.name},_isLabelNeedBaselineAlign:function(e){var t=["dxTextArea","dxRadioGroup","dxCalendar"];return!!e.helpText&&!this._hasBrowserFlex()||(0,I.inArray)(e.editorType,t)!==-1},_getLabelOptions:function(e,t,n){var i=(0,S.extend)({showColon:this.option("showColonAfterLabel"),location:this.option("labelLocation"),id:t,visible:!0,isRequired:n},e?e.label:{});return!i.text&&e.dataField&&(i.text=z.default.captionize(e.dataField)),i.text&&(i.text+=i.showColon?":":""),i},_renderLabel:function(e){if(_.default.isDefined(e.text)&&e.text.length>0){var t=ie+" "+se+e.location,n=(0,r.default)("<label>").addClass(t).attr("for",e.id),i=(0,r.default)("<span>").addClass(ae).appendTo(n);return(0,r.default)("<span>").addClass(re).text(e.text).appendTo(i),e.alignment&&n.css("textAlign",e.alignment),i.append(this._renderLabelMark(e.isRequired)),n}},_renderLabelMark:function(e){var t,n=this._getRequiredMarksConfig(),i=n.showRequiredMark&&e,o=n.showOptionalMark&&!e;if(i||o){var a=i?te:ne,s=i?n.requiredMark:n.optionalMark;t=(0,r.default)("<span>").addClass(a).html("&nbsp"+s)}return t},_getRequiredMarksConfig:function(){return this._cashedRequiredConfig||(this._cashedRequiredConfig={showRequiredMark:this.option("showRequiredMark"),showOptionalMark:this.option("showOptionalMark"),requiredMark:this.option("requiredMark"),optionalMark:this.option("optionalMark")}),this._cashedRequiredConfig},_renderEditor:function(e){var t,n=this._getDataByField(e.dataField),i=void 0!==n?{value:n}:{},o=!0;Te.indexOf(e.editorType)!==-1&&(i.value=i.value||[]);var a=this.option("form");t=(0,S.extend)(o,i,e.editorOptions,{inputAttr:{id:e.id},validationBoundary:e.validationBoundary,stylingMode:a&&a.option("stylingMode")}),this._replaceDataOptions(e.editorOptions,t);var r={editorType:e.editorType,dataField:e.dataField,template:e.template,name:e.name,helpID:e.helpID,isRequired:e.isRequired};return this._createEditor(e.$container,r,t)},_replaceDataOptions:function(e,t){e&&Ie.forEach(function(n){t[n]&&(t[n]=e[n])})},_renderValidator:function(e,t){var n=this._getFieldLabelName(t),i=this._prepareValidationRules(t.validationRules,t.isRequired,t.itemType,n);Array.isArray(i)&&i.length&&this._createComponent(e,G.default,{validationRules:i,validationGroup:this.option("validationGroup")})},_getFieldLabelName:function(e){var t=e.label&&e.label.text,n=t?null:this._getName(e);return t?e.label.text:n&&z.default.captionize(n)},_prepareValidationRules:function(e,t,n,i){var o,a=n===ke;if(a)if(e)o=e;else{var r=C.default.format(this.option("requiredMessage"),i||"");o=t?[{type:"required",message:r}]:null}return o},_addWrapperInvalidClass:function(e){var t="."+ce,n=function(e){(0,r.default)(e.element).parents(t).toggleClass(be,e.component._isFocused()&&e.component.option("isValid")===!1)};e.on("focusIn",n).on("focusOut",n).on("enterKey",n)},_createEditor:function(e,t,n){var i,o=this,a=t.template;if(t.dataField&&!n.name&&(n.name=t.dataField),o._addItemContentClasses(e),a){var s={dataField:t.dataField,editorType:t.editorType,editorOptions:n,component:o._getComponentOwner(),name:t.name};a.render({model:s,container:v.default.getPublicElement(e)})}else{var l=(0,r.default)("<div>").appendTo(e);try{i=o._createComponent(l,t.editorType,n),i.setAria("describedby",t.helpID),i.setAria("required",t.isRequired),U.default.isMaterial()&&o._addWrapperInvalidClass(i),t.dataField&&o._bindDataField(i,t,e)}catch(e){M.default.log("E1035",e.message)}}return i},_getComponentOwner:function(){return this.option("form")||this},_bindDataField:function(e,t,n){var i=this._getComponentOwner();e.on("enterKey",function(e){i._createActionByOption("onEditorEnterKey")((0,S.extend)(e,{dataField:t.dataField}))}),this._createWatcher(e,n,t),this.linkEditorToDataField(e,t.dataField,t.editorType)},_createWatcher:function(e,t,n){var i=this,o=i._getWatch();if(_.default.isFunction(o)){var a=o(function(){return i._getDataByField(n.dataField)},function(){e.option("value",i._getDataByField(n.dataField))},{deep:!0,skipImmediate:!0});l.default.on(t,A.default,a)}},_getWatch:function(){if(!_.default.isDefined(this._watch)){var e=this.option("form");this._watch=e&&e.option("integrationOptions.watchMethod")}return this._watch},_addItemContentClasses:function(e){var t=this._getItemContentLocationSpecificClass();e.addClass([le,t].join(" "))},_getItemContentLocationSpecificClass:function(){var e=this.option("labelLocation"),t={right:"left",left:"right",top:"bottom"};return ue+t[e]},_createComponent:function(e,t,n){var i,o=this,a=this.option("readOnly");return i=o.callBase(e,t,n),a&&i.option("readOnly",a),o.on("optionChanged",function(e){"readOnly"!==e.name||_.default.isDefined(n.readOnly)||i.option(e.name,e.value)}),i},_getTemplateByFieldItem:function(e){return e.template?this._getTemplate(e.template):null},_appendEditorToField:function(e){if(e.$label){var t=e.labelOptions.location;"top"!==t&&"left"!==t||e.$fieldItem.append(e.$editor),"right"===t&&e.$fieldItem.prepend(e.$editor),this._addInnerItemAlignmentClass(e.$fieldItem,t)}else e.$fieldItem.append(e.$editor)},_addInnerItemAlignmentClass:function(e,t){"top"===t?e.addClass(fe):e.addClass(pe)},_renderHelpText:function(e,t,n){var i=e.helpText,o=e.itemType===ke;if(i&&o){var a=(0,r.default)("<div>").addClass(ce);t.wrap(a),(0,r.default)("<div>").addClass(de).attr("id",n).text(i).appendTo(t.parent())}},_attachClickHandler:function(e,t,n){var i="dxCheckBox"===n||"dxSwitch"===n;e&&i&&l.default.on(e,B.default.name,function(){l.default.trigger(t.children(),B.default.name)})},_generateRatio:function(e,t){var n,i,o=[];for(i=0;i<e;i++)n={ratio:1},t&&(n.baseSize="auto"),o.push(n);return o},_getRowsCount:function(){return Math.ceil(this._items.length/this._getColCount())},_updateReferencedOptions:function(e){var t=this,n=this.option("layoutData");_.default.isObject(n)&&Object.getOwnPropertyNames(n).forEach(function(e){return delete t._optionsByReference["layoutData."+e]}),_.default.isObject(e)&&Object.getOwnPropertyNames(e).forEach(function(e){return t._optionsByReference["layoutData."+e]=!0})},_resetWidget:function(e){var t=e._getDefaultOptions();e._setOptionSilent("value",t.value),e.option("isValid",!0)},_optionChanged:function(e){var t=this;if(0!==e.fullName.search("layoutData."))switch(e.name){case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":this._cashedRequiredConfig=null,this._invalidate();break;case"layoutData":this._updateReferencedOptions(e.value),this.option("items")?_.default.isEmptyObject(e.value)||this._itemsRunTimeInfo.each(function(n,i){if(_.default.isDefined(i.item)){var o=i.item.dataField;if(o&&_.default.isDefined(i.widgetInstance)){var a=D.default.compileGetter(o),r=a(e.value);void 0===r?t._resetWidget(i.widgetInstance):i.widgetInstance.option("value",r)}}}):(this._initDataAndItems(e.value),this._invalidate());break;case"items":this._cleanItemWatchers(),this._initDataAndItems(e.value),this._invalidate();break;case"alignItemLabels":case"labelLocation":case"requiredMessage":this._invalidate();break;case"customizeItem":this._updateItems(this.option("layoutData")),this._invalidate();break;case"colCount":this._resetColCount();break;case"minColWidth":"auto"===this.option("colCount")&&this._resetColCount();break;case"readOnly":break;case"width":this.callBase(e),"auto"===this.option("colCount")&&this._resetColCount();break;case"onFieldDataChanged":break;default:this.callBase(e)}},_resetColCount:function(){this._cashedColCount=null,this._invalidate()},linkEditorToDataField:function(e,t,n){var i,a="layoutData."+t,r=this;r.on("optionChanged",function(t){t.fullName===a&&(i=!0,"object"===o(t.value)?r._managedUpdateEditorOption(e,"value",t.value):e.option("value",t.value),i=!1)}),e.on("valueChanged",function(e){var n="object"===o(e.value),a=n&&e.value===e.previousValue;i||a||(n?r._managedUpdateFieldValue(t,e.value):r._updateFieldValue(t,e.value))})},_managedUpdateEditorOption:function(e,t,n){this._isValueChangedCalled||(this._isFieldValueChanged=!0,e.option(t,n),this._isFieldValueChanged=!1)},_managedUpdateFieldValue:function(e,t){this._isValueChangedCalled=!0,this._isFieldValueChanged||this._updateFieldValue(e,t),this._isValueChangedCalled=!1},_dimensionChanged:function(){"auto"===this.option("colCount")&&this.isCachedColCountObsolete()&&this.fireEvent("autoColCountChanged")},getItemID:function(e){var t=this.option("form");return t&&t.getItemID(e)},updateData:function(e,t){var n=this;_.default.isObject(e)?(0,k.each)(e,function(e,t){n._updateFieldValue(e,t)}):"string"==typeof e&&n._updateFieldValue(e,t)},getEditor:function(e){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(e)||this._itemsRunTimeInfo.findWidgetInstanceByName(e)},isSingleColumnMode:function(e){var t=this._responsiveBox||e;if(t)return t.option("currentScreenFactor")===t.option("singleColumnScreen")}});(0,f.default)("dxLayoutManager",De),e.exports=De},function(e,t,n){var i=n(25),o=n(15),a=o.inherit({ctor:function(e,t){var n=this;n.editor=e,n.validator=t,n.validationRequestsCallbacks=i();var o=function(e){n.validationRequestsCallbacks.fire(e)};e.validationRequest.add(o),e.on("disposing",function(){e.validationRequest.remove(o)})},getValue:function(){return this.editor.option("value")},getCurrentValidationError:function(){return this.editor.option("validationError")},bypass:function(){return this.editor.option("disabled")},applyValidationResults:function(e){this.editor.option({isValid:e.isValid,validationError:e.brokenRule})},reset:function(){this.editor.reset()},focus:function(){this.editor.focus()}});e.exports=a},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(153),c=i(u),d=n(4),h=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_renderWatchers",value:function(){return this._startWatcher("badge",d.noop),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_renderWatchers",this).call(this)}}]),t}(c.default);t.default=h},function(e,t,n){var i=n(2),o=n(5),a=n(9),r=n(4),s=n(1),l=n(7),u=n(0).extend,c=n(12).getPublicElement,d=n(38),h=n(19),p=n(27),f=n(16),g=n(18),_=n(8),m=n(54),v=n(158),y=n(65),x=n(6).Deferred,b="dx-gallery",w=b+"-wrapper",C="dx-gallery-loop",k=b+"-container",S=b+"-active",I=b+"-item",T=b+"-item-invisible",D=I+"-loop",E="."+I,A=I+"-selected",O=b+"-indicator",B=O+"-item",P="."+B,M=B+"-selected",R="dx-gallery-item-image",V="dxGalleryItemData",F=1,L=g.inherit({_supportedKeys:function(){return u(this.callBase(),{pageUp:r.noop,pageDown:r.noop})},_getDefaultOptions:function(){return u(this.callBase(),{direction:"next",onClick:null,hoverStateEnabled:!0,activeStateEnabled:!0})},_render:function(){this.callBase();var e=this,t=this.$element(),n=_.addNamespace(h.name,this.NAME);t.addClass(b+"-nav-button-"+this.option("direction")),o.off(t,n),o.on(t,n,function(t){e._createActionByOption("onClick")({event:t})})},_optionChanged:function(e){switch(e.name){case"onClick":case"direction":this._invalidate();break;default:this.callBase(e)}}}),H=m.inherit({_activeStateUnit:E,_getDefaultOptions:function(){return u(this.callBase(),{activeStateEnabled:!1,animationDuration:400,animationEnabled:!0,loop:!1,swipeEnabled:!0,indicatorEnabled:!0,showIndicator:!0,selectedIndex:0,slideshowDelay:0,showNavButtons:!1,wrapAround:!1,initialItemWidth:void 0,stretchImages:!1,_itemAttributes:{role:"option"},loopItemFocus:!1,selectOnFocus:!0,selectionMode:"single",selectionRequired:!0,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===f.real().deviceType&&!f.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.option("loopItemFocus",this.option("loop"))},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new y(function(e,t){var n=i("<img>").addClass(R);s.isPlainObject(t)?(this._prepareDefaultItemTemplate(t,e),n.attr({src:t.imageSrc,alt:t.imageAlt}).appendTo(e)):n.attr("src",String(t)).appendTo(e)}.bind(this),["imageSrc","imageAlt","text","html"],this.option("integrationOptions.watchMethod"))},_dataSourceOptions:function(){return{paginate:!1}},_itemContainer:function(){return this._$container},_itemClass:function(){return I},_itemDataKey:function(){return V},_actualItemWidth:function(){var e=this.option("wrapAround");if(this.option("stretchImages")){var t=e?this._itemsPerPage()+1:this._itemsPerPage();return 1/t}return e?this._itemPercentWidth()*this._itemsPerPage()/(this._itemsPerPage()+1):this._itemPercentWidth()},_itemPercentWidth:function(){var e,t=this.$element().outerWidth(),n=this.option("initialItemWidth");return e=n&&n<=t?n/t:1},_itemsPerPage:function(){var e=l.hasWindow()?Math.floor(1/this._itemPercentWidth()):1;return Math.min(e,this._itemsCount())},_pagesCount:function(){return Math.ceil(this._itemsCount()/this._itemsPerPage())},_itemsCount:function(){return(this.option("items")||[]).length},_offsetDirection:function(){return this.option("rtlEnabled")?-1:1},_initMarkup:function(){this._renderWrapper(),this._renderItemsContainer(),this.$element().addClass(b),this.$element().toggleClass(C,this.option("loop")),this.callBase(),this.setAria({role:"listbox",label:"gallery"})},_render:function(){this._renderDragHandler(),this._renderContainerPosition(),this._renderItemSizes(),this._renderItemPositions(),this._renderNavButtons(),this._renderIndicator(),this._renderSelectedItem(),this._renderItemVisibility(),this._renderUserInteraction(),this._setupSlideShow(),this._reviseDimensions(),this.callBase()},_dimensionChanged:function(){var e=this.option("selectedIndex")||0;this._stopItemAnimations(),this._clearCacheWidth(),this._cloneDuplicateItems(),this._renderItemSizes(),this._renderItemPositions(),this._renderIndicator(),this._renderContainerPosition(this._calculateIndexOffset(e),!0),this._renderItemVisibility()},_renderDragHandler:function(){var e=_.addNamespace("dragstart",this.NAME);o.off(this.$element(),e),o.on(this.$element(),e,"img",function(){return!1})},_renderWrapper:function(){this._$wrapper||(this._$wrapper=i("<div>").addClass(w).appendTo(this.$element()))},_renderItems:function(e){if(!l.hasWindow()){var t=this.option("selectedIndex");e=e.length>t?e.slice(t,t+1):e.slice(0,1)}this.callBase(e),this._loadNextPageIfNeeded()},_renderItemsContainer:function(){this._$container||(this._$container=i("<div>").addClass(k).appendTo(this._$wrapper))},_cloneDuplicateItems:function(){if(this.option("loop")){var e,t=this.option("items")||[],n=t.length,i=n-1;if(n){this._getLoopedItems().remove();var o=Math.min(this._itemsPerPage(),n),a=this._getRealItems(),r=this._itemContainer();for(e=0;e<o;e++)this._cloneItemForDuplicate(a[e],r);for(e=0;e<o;e++)this._cloneItemForDuplicate(a[i-e],r)}}},_cloneItemForDuplicate:function(e,t){e&&i(e).clone(!0).addClass(D).css("margin",0).appendTo(t)},_getRealItems:function(){var e="."+I+":not(."+D+")";return this.$element().find(e)},_getLoopedItems:function(){return this.$element().find("."+D)},_emptyMessageContainer:function(){return this._$wrapper},_renderItemSizes:function(e){var t=this._itemElements(),n=this._actualItemWidth();void 0!==e&&(t=t.slice(e)),t.each(function(e){i(t[e]).outerWidth(100*n+"%")})},_renderItemPositions:function(){var e=this._actualItemWidth(),t=this._itemsCount(),n=this._itemsPerPage(),o=this.$element().find("."+D).length,a=t+o-1,r=this.option("wrapAround")?.5:0,s=this._itemFreeSpace(),l=!!s,u=this.option("rtlEnabled"),c=this.option("selectedIndex"),d=u?"Right":"Left";this._itemElements().each(function(o){var u=o,c=i(this).hasClass(D);if(o>t+n-1&&(u=a-u-n),!c&&0!==u)return void(l&&i(this).css("margin"+d,100*s+"%"));var h=e*(u+r)+s*(u+1-r),p=c?d.toLowerCase():"margin"+d;i(this).css(p,100*h+"%")}),this._relocateItems(c,c,!0)},_itemFreeSpace:function(){var e=this._itemsPerPage();return this.option("wrapAround")&&(e+=1),(1-this._actualItemWidth()*e)/(e+1)},_renderContainerPosition:function(e,t,n){this._releaseInvisibleItems(),e=e||0;var i,o=this,a=this._actualItemWidth(),r=e,l=this._offsetDirection()*r*(a+this._itemFreeSpace());return s.isDefined(this._animationOverride)&&(n=this._animationOverride,delete this._animationOverride),n?(o._startSwipe(),i=o._animate(l).done(o._endSwipe.bind(o))):(p.move(this._$container,{left:l*this._elementWidth(),top:0}),i=(new x).resolveWith(o)),i.done(function(){this._deferredAnimate&&o._deferredAnimate.resolveWith(o),t&&this._renderItemVisibility()}),i.promise()},_startSwipe:function(){this.$element().addClass(S)},_endSwipe:function(){this.$element().removeClass(S)},_animate:function(e,t){var n=this,i=this._$container,o=new x;return d.animate(this._$container,u({type:"slide",to:{left:e*this._elementWidth()},duration:n.option("animationDuration"),complete:function(){n._needMoveContainerForward()&&p.move(i,{left:0,top:0}),n._needMoveContainerBack()&&p.move(i,{left:n._maxContainerOffset()*n._elementWidth(),top:0}),o.resolveWith(n)}},t||{})),o},_needMoveContainerForward:function(){var e=this._$container.position().left*this._offsetDirection(),t=-this._maxItemWidth()*this._elementWidth()*this._itemsCount();return e<=t+F},_needMoveContainerBack:function(){var e=this._$container.position().left*this._offsetDirection(),t=this._actualItemWidth()*this._elementWidth();return e>=t-F},_maxContainerOffset:function(){return-this._maxItemWidth()*(this._itemsCount()-this._itemsPerPage())*this._offsetDirection()},_maxItemWidth:function(){return this._actualItemWidth()+this._itemFreeSpace()},_reviseDimensions:function(){var e=this,t=e._itemElements().first().find(".dx-item-content");t&&!t.is(":hidden")&&(e.option("height")||e.option("height",t.outerHeight()),e.option("width")||e.option("width",t.outerWidth()),
81this._dimensionChanged())},_renderIndicator:function(){if(this._cleanIndicators(),this.option("showIndicator")){for(var e=this._$indicator=i("<div>").addClass(O).appendTo(this._$wrapper),t=0;t<this._pagesCount();t++)i("<div>").addClass(B).appendTo(e);this._renderSelectedPageIndicator()}},_cleanIndicators:function(){this._$indicator&&this._$indicator.remove()},_renderSelectedItem:function(){var e=this.option("selectedIndex");this._itemElements().removeClass(A).eq(e).addClass(A)},_renderItemVisibility:function(){return this.option("initialItemWidth")||this.option("wrapAround")?void this._releaseInvisibleItems():(this._itemElements().each(function(e,t){this.option("selectedIndex")===e?i(t).removeClass(T):i(t).addClass(T)}.bind(this)),void this._getLoopedItems().addClass(T))},_releaseInvisibleItems:function(){this._itemElements().removeClass(T),this._getLoopedItems().removeClass(T)},_renderSelectedPageIndicator:function(){if(this._$indicator){var e=this.option("selectedIndex"),t=this._pagesCount()-1,n=Math.ceil(e/this._itemsPerPage());n=Math.min(t,n),this._$indicator.find(P).removeClass(M).eq(n).addClass(M)}},_renderUserInteraction:function(){var e=this.$element(),t=this.option("swipeEnabled")&&this._itemsCount()>1;this._createComponent(e,v,{disabled:this.option("disabled")||!t,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._elementWidth.bind(this)});var n=this._createAction(this._indicatorSelectHandler);o.off(e,_.addNamespace(h.name,this.NAME),P),o.on(e,_.addNamespace(h.name,this.NAME),P,function(e){n({event:e})})},_indicatorSelectHandler:function(e){var t=e.event,n=e.component;if(n.option("indicatorEnabled")){var o=i(t.target).index(),a=n._fitPaginatedIndex(o*n._itemsPerPage());n._needLongMove=!0,n.option("selectedIndex",a),n._loadNextPageIfNeeded(a)}},_renderNavButtons:function(){var e=this;return e.option("showNavButtons")?(e._prevNavButton=i("<div>").appendTo(this._$wrapper),e._createComponent(e._prevNavButton,L,{direction:"prev",onClick:function(){e._prevPage()}}),e._nextNavButton=i("<div>").appendTo(this._$wrapper),e._createComponent(e._nextNavButton,L,{direction:"next",onClick:function(){e._nextPage()}}),void this._renderNavButtonsVisibility()):void e._cleanNavButtons()},_prevPage:function(){var e=this._itemsPerPage(),t=this.option("selectedIndex")-e;return t===-e&&e===this._itemsCount()?this._relocateItems(t,0):this.goToItem(this._fitPaginatedIndex(t))},_nextPage:function(){var e=this._itemsPerPage(),t=this.option("selectedIndex")+e;return t===e&&e===this._itemsCount()?this._relocateItems(t,0):this.goToItem(this._fitPaginatedIndex(t)).done(this._loadNextPageIfNeeded)},_loadNextPageIfNeeded:function(e){e=void 0===e?this.option("selectedIndex"):e,this._dataSource&&this._dataSource.paginate()&&this._shouldLoadNextPage(e)&&!this._isDataSourceLoading()&&!this._isLastPage()&&this._loadNextPage().done(function(){this._renderIndicator(),this._renderItemPositions(),this._renderNavButtonsVisibility(),this._renderItemSizes(e)}.bind(this))},_shouldLoadNextPage:function(e){var t=this._itemsPerPage();return e+2*t>this.option("items").length},_allowDynamicItemsAppend:function(){return!0},_fitPaginatedIndex:function(e){var t=this._itemsPerPage(),n=e<0?t+e:this._itemsCount()-e;return e>this._itemsCount()-1?(e=0,this._goToGhostItem=!0):n<t&&n>0&&(e>0?e-=t-n:e+=t-n),e},_cleanNavButtons:function(){this._prevNavButton&&(this._prevNavButton.remove(),delete this._prevNavButton),this._nextNavButton&&(this._nextNavButton.remove(),delete this._nextNavButton)},_renderNavButtonsVisibility:function(){if(this.option("showNavButtons")&&this._prevNavButton&&this._nextNavButton){var e=this.option("selectedIndex"),t=this.option("loop"),n=this._itemsCount();if(this._prevNavButton.show(),this._nextNavButton.show(),0===n&&(this._prevNavButton.hide(),this._nextNavButton.hide()),!t){var i=e===n-this._itemsPerPage(),o=n<2||0===e;i=this._dataSource&&this._dataSource.paginate()?i&&this._isLastPage():i||n<2,o&&this._prevNavButton.hide(),i&&this._nextNavButton.hide()}}},_setupSlideShow:function(){var e=this,t=e.option("slideshowDelay");clearTimeout(e._slideshowTimer),t&&(e._slideshowTimer=setTimeout(function(){return e._userInteraction?void e._setupSlideShow():void e.nextItem(!0).done(e._setupSlideShow)},t))},_elementWidth:function(){return this._cacheElementWidth||(this._cacheElementWidth=this.$element().width()),this._cacheElementWidth},_clearCacheWidth:function(){delete this._cacheElementWidth},_swipeStartHandler:function(e){this._releaseInvisibleItems(),this._clearCacheWidth(),this._elementWidth();var t=this._itemsCount();if(!t)return void(e.event.cancel=!0);if(this._stopItemAnimations(),this._startSwipe(),this._userInteraction=!0,!this.option("loop")){var n=this.option("selectedIndex"),i=t-n-this._itemsPerPage(),o=n,a=this.option("rtlEnabled");e.event.maxLeftOffset=a?o:i,e.event.maxRightOffset=a?i:o}},_stopItemAnimations:function(){d.stop(this._$container,!0)},_swipeUpdateHandler:function(e){var t=this.option("wrapAround")?1:0,n=this._offsetDirection()*e.event.offset*(this._itemsPerPage()+t)-this.option("selectedIndex");n<0&&this._loadNextPageIfNeeded(Math.ceil(Math.abs(n))),this._renderContainerPosition(n)},_swipeEndHandler:function(e){var t=e.event.targetOffset*this._offsetDirection()*this._itemsPerPage(),n=this.option("selectedIndex"),i=this._fitIndex(n-t),o=this._fitPaginatedIndex(i);return Math.abs(t)<this._itemsPerPage()?void this._relocateItems(n):this._itemsPerPage()===this._itemsCount()?void(t>0?this._relocateItems(-t):this._relocateItems(0)):void this.option("selectedIndex",o)},_setFocusOnSelect:function(){this._userInteraction=!0;var e=this.itemElements().filter("."+A);this.option("focusedElement",c(e)),this._userInteraction=!1},_flipIndex:function(e){var t=this._itemsCount();return e%=t,e>(t+1)/2&&(e-=t),e<-(t-1)/2&&(e+=t),e},_fitIndex:function(e){if(!this.option("loop"))return e;var t=this._itemsCount();return(e>=t||e<0)&&(this._goToGhostItem=!0),e>=t&&(e=t-e),e%=t,e<0&&(e+=t),e},_clean:function(){this.callBase(),this._cleanIndicators(),this._cleanNavButtons()},_dispose:function(){clearTimeout(this._slideshowTimer),this.callBase()},_updateSelection:function(e,t){this._stopItemAnimations(),this._renderNavButtonsVisibility(),this._renderSelectedItem(),this._relocateItems(e[0],t[0]),this._renderSelectedPageIndicator()},_relocateItems:function(e,t,n){void 0===t&&(t=e);var i=this._calculateIndexOffset(e,t);this._renderContainerPosition(i,!0,this.option("animationEnabled")&&!n).done(function(){this._setFocusOnSelect(),this._userInteraction=!1,this._setupSlideShow()})},_focusInHandler:function(){d.isAnimating(this._$container)||this._userInteraction||this.callBase.apply(this,arguments)},_focusOutHandler:function(){d.isAnimating(this._$container)||this._userInteraction||this.callBase.apply(this,arguments)},_selectFocusedItem:r.noop,_moveFocus:function(){this._stopItemAnimations(),this.callBase.apply(this,arguments);var e=this.itemElements().index(i(this.option("focusedElement")));this.goToItem(e,this.option("animationEnabled"))},_visibilityChanged:function(e){e&&this._reviseDimensions()},_calculateIndexOffset:function(e,t){void 0===t&&(t=e);var n=t-e;return this.option("loop")&&!this._needLongMove&&this._goToGhostItem&&(this._isItemOnFirstPage(e)&&this._isItemOnLastPage(t)?n=-this._itemsPerPage():this._isItemOnLastPage(e)&&this._isItemOnFirstPage(t)&&(n=this._itemsPerPage()),this._goToGhostItem=!1),this._needLongMove=!1,n-=t},_isItemOnLastPage:function(e){return e>=this._itemsCount()-this._itemsPerPage()},_isItemOnFirstPage:function(e){return e<=this._itemsPerPage()},_optionChanged:function(e){switch(e.name){case"width":case"initialItemWidth":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"animationDuration":this._renderNavButtonsVisibility();break;case"animationEnabled":break;case"loop":this.$element().toggleClass(C,e.value),this.option("loopItemFocus",e.value),l.hasWindow()&&(this._cloneDuplicateItems(),this._renderItemPositions(),this._renderNavButtonsVisibility());break;case"showIndicator":this._renderIndicator();break;case"showNavButtons":this._renderNavButtons();break;case"slideshowDelay":this._setupSlideShow();break;case"wrapAround":case"stretchImages":l.hasWindow()&&(this._renderItemSizes(),this._renderItemPositions(),this._renderItemVisibility());break;case"swipeEnabled":case"indicatorEnabled":this._renderUserInteraction();break;default:this.callBase(e)}},goToItem:function(e,t){var n=this.option("selectedIndex"),i=this._itemsCount();return void 0!==t&&(this._animationOverride=t),e=this._fitIndex(e),this._deferredAnimate=new x,e>i-1||e<0||n===e?this._deferredAnimate.resolveWith(this).promise():(this.option("selectedIndex",e),this._deferredAnimate.promise())},prevItem:function(e){return this.goToItem(this.option("selectedIndex")-1,e)},nextItem:function(e){return this.goToItem(this.option("selectedIndex")+1,e)}});a("dxGallery",H),e.exports=H},function(e,t,n){e.exports=n(561)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(0),s=n(1),l=n(12),u=n(4),c=n(9),d=i(c),h=n(111),p=i(h),f=n(49),g=i(f),_=n(17),m=i(_),v=n(25),y=i(v),x=n(6),b=n(562),w=i(b);n(580);var C=n(250),k=i(C),S=n(581),I=i(S),T=n(582),D=i(T),E=n(583),A=i(E),O="dx-htmleditor",B="dx-quill-container",P="ql-clipboard",M="dx-htmleditor-submit-element",R="dx-htmleditor-content",V="markdown",F="htmlContent",L=g.default.inherit({_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{focusStateEnabled:!0,valueType:"html",placeholder:"",toolbar:null,variables:null,mediaResizing:null,mentions:null,customizeModules:null,formDialogOptions:null})},_init:function(){this.callBase(),this._cleanCallback=(0,y.default)(),this._contentInitializedCallback=(0,y.default)()},_getAnonymousTemplateName:function(){return F},_initTemplates:function(){this.callBase(),this._defaultTemplates[F]=new p.default(this)},_focusTarget:function(){return this.$element().find("."+R)},_focusInHandler:function(e){var t=e.relatedTarget;this._shouldSkipFocusEvent(t)||(this._toggleFocusClass(!0,this.$element()),this.callBase.apply(this,arguments))},_focusOutHandler:function(e){var t=e.relatedTarget;this._shouldSkipFocusEvent(t)||(this._toggleFocusClass(!1,this.$element()),this.callBase.apply(this,arguments))},_shouldSkipFocusEvent:function(e){return(0,a.default)(e).hasClass(P)},_initMarkup:function(){this._$htmlContainer=(0,a.default)("<div>").addClass(B),this.$element().addClass(O).wrapInner(this._$htmlContainer);var e=this._getTemplate(F),t=!0;this._$templateResult=e&&e.render({container:(0,l.getPublicElement)(this._$htmlContainer),noModel:!0,transclude:t}),this._renderSubmitElement(),this.callBase(),this._updateContainerMarkup()},_renderSubmitElement:function(){this._$submitElement=(0,a.default)("<textarea>").addClass(M).attr("hidden",!0).appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(e){this._getSubmitElement().val(e)},_getSubmitElement:function(){return this._$submitElement},_updateContainerMarkup:function(){var e=this.option("value");this._isMarkdownValue()&&(this._prepareMarkdownConverter(),e=this._markdownConverter.toHtml(e)),e&&this._$htmlContainer.html(e)},_prepareMarkdownConverter:function(){var e=k.default.getConverter("markdown");if(!e)throw m.default.Error("E1051","markdown");this._markdownConverter=new e},_render:function(){this._prepareConverters(),this.callBase()},_prepareQuillRegistrator:function(){this._quillRegistrator||(this._quillRegistrator=new w.default)},_getRegistrator:function(){return this._prepareQuillRegistrator(),this._quillRegistrator},_prepareConverters:function(){if(!this._deltaConverter){var e=k.default.getConverter("delta");e&&(this._deltaConverter=new e)}this.option("valueType")!==V||this._markdownConverter||this._prepareMarkdownConverter()},_renderContentImpl:function(){this._contentRenderedDeferred=new x.Deferred;var e=this._contentRenderedDeferred.promise();return this.callBase(),this._renderHtmlEditor(),this._renderFormDialog(),e},_renderHtmlEditor:function(){var e=this,t=this.option("customizeModules"),n=this._getModulesConfig();(0,s.isFunction)(t)&&t(n),this._quillInstance=this._getRegistrator().createEditor(this._$htmlContainer[0],{placeholder:this.option("placeholder"),readOnly:this.option("readOnly")||this.option("disabled"),modules:n,theme:"basic"}),this._deltaConverter.setQuillInstance(this._quillInstance),this._textChangeHandlerWithContext=this._textChangeHandler.bind(this),this._quillInstance.on("text-change",this._textChangeHandlerWithContext),this._hasTranscludedContent()?this._updateContentTask=(0,u.executeAsync)(function(){e._applyTranscludedContent()}):this._finalizeContentRendering()},_applyTranscludedContent:function(){var e=this._deltaConverter.toHtml(),t=this._quillInstance.clipboard.convert(e);t.ops.length?this._quillInstance.setContents(t):this._finalizeContentRendering()},_hasTranscludedContent:function(){return this._$templateResult&&this._$templateResult.length},_getModulesConfig:function(){var e=this._getRegistrator().getQuill(),t=(0,I.default)(e),n=(0,r.extend)({toolbar:this._getModuleConfigByOption("toolbar"),variables:this._getModuleConfigByOption("variables"),dropImage:this._getBaseModuleConfig(),resizing:this._getModuleConfigByOption("mediaResizing"),mentions:this._getModuleConfigByOption("mentions"),clipboard:{matchVisual:!1,matchers:[["p.MsoListParagraphCxSpFirst",t],["p.MsoListParagraphCxSpMiddle",t],["p.MsoListParagraphCxSpLast",t],[Node.ELEMENT_NODE,(0,D.default)(e)]]}},this._getCustomModules());return n},_getModuleConfigByOption:function(e){var t=this.option(e),n={};if((0,s.isDefined)(t))return Array.isArray(t)?n[e]=t:n=t,(0,r.extend)(this._getBaseModuleConfig(),n)},_getBaseModuleConfig:function(){return{editorInstance:this}},_getCustomModules:function(){var e=this,t={},n=this._getRegistrator().getRegisteredModuleNames();return n.forEach(function(n){t[n]=e._getBaseModuleConfig()}),t},_textChangeHandler:function(e,t,n){var i=this._deltaConverter.toHtml(),o=this._isMarkdownValue()?this._updateValueByType(V,i):i;this.option("value")!==o&&(this._isEditorUpdating=!0,this.option("value",o)),this._finalizeContentRendering()},_finalizeContentRendering:function(){this._contentRenderedDeferred&&(this.clearHistory(),this._contentInitializedCallback.fire(),this._contentRenderedDeferred.resolve(),this._contentRenderedDeferred=void 0)},_updateValueByType:function(e,t){var n=this._markdownConverter;if((0,s.isDefined)(n)){var i=t||this.option("value");return e===V?n.toMarkdown(i):n.toHtml(i)}},_isMarkdownValue:function(){return this.option("valueType")===V},_resetEnabledState:function(){if(this._quillInstance){var e=!(this.option("readOnly")||this.option("disabled"));this._quillInstance.enable(e)}},_renderFormDialog:function(){var e=(0,r.extend)(!0,{width:"auto",height:"auto",closeOnOutsideClick:!0},this.option("formDialogOptions"));this._formDialog=new A.default(this,e)},_getQuillContainer:function(){return this._$htmlContainer},_optionChanged:function(e){switch(e.name){case"value":if(this._quillInstance)if(this._isEditorUpdating)this._isEditorUpdating=!1;else{var t=this._isMarkdownValue()?this._updateValueByType("HTML",e.value):e.value;this._updateHtmlContent(t)}else this._$htmlContainer.html(e.value);this._setSubmitValue(e.value),this.callBase(e);break;case"placeholder":case"variables":case"toolbar":case"mentions":case"customizeModules":this._invalidate();break;case"valueType":this._prepareConverters();var n=this._updateValueByType(e.value);"html"===e.value&&this._quillInstance?this._updateHtmlContent(n):this.option("value",n);break;case"readOnly":case"disabled":this.callBase(e),this._resetEnabledState();break;case"formDialogOptions":this._renderFormDialog();break;case"mediaResizing":e.previousValue&&e.value?this._quillInstance.getModule("resizing").option(e.name,e.value):this._invalidate();break;default:this.callBase(e)}},_updateHtmlContent:function(e){var t=this._quillInstance.clipboard.convert(e);this._quillInstance.setContents(t)},_clean:function(){this._quillInstance&&(this._quillInstance.off("text-change",this._textChangeHandlerWithContext),this._cleanCallback.fire()),this._abortUpdateContentTask(),this._cleanCallback.empty(),this._contentInitializedCallback.empty(),this.callBase()},_abortUpdateContentTask:function(){this._updateContentTask&&(this._updateContentTask.abort(),this._updateContentTask=void 0)},_applyQuillMethod:function(e,t){if(this._quillInstance)return this._quillInstance[e].apply(this._quillInstance,t)},_applyQuillHistoryMethod:function(e){this._quillInstance&&this._quillInstance.history&&this._quillInstance.history[e]()},addCleanCallback:function(e){this._cleanCallback.add(e)},addContentInitializedCallback:function(e){this._contentInitializedCallback.add(e)},register:function(e){this._getRegistrator().registerModules(e),this.repaint()},get:function(e){return this._getRegistrator().getQuill().import(e)},getQuillInstance:function(){return this._quillInstance},getSelection:function(){return this._applyQuillMethod("getSelection")},setSelection:function(e,t){this._applyQuillMethod("setSelection",arguments)},format:function(e,t){this._applyQuillMethod("format",arguments)},formatText:function(e,t,n,i){this._applyQuillMethod("formatText",arguments)},formatLine:function(e,t,n,i){this._applyQuillMethod("formatLine",arguments)},getFormat:function(e,t){return this._applyQuillMethod("getFormat",arguments)},removeFormat:function(e,t){return this._applyQuillMethod("removeFormat",arguments)},clearHistory:function(){this._applyQuillHistoryMethod("clear")},undo:function(){this._applyQuillHistoryMethod("undo")},redo:function(){this._applyQuillHistoryMethod("redo")},getLength:function(){return this._applyQuillMethod("getLength")},"delete":function(e,t){this._applyQuillMethod("deleteText",arguments)},insertText:function(e,t,n){this._applyQuillMethod("insertText",arguments)},insertEmbed:function(e,t,n){this._applyQuillMethod("insertEmbed",arguments)},showFormDialog:function(e){return this._formDialog.show(e)},formDialogOption:function(e,t){return this._formDialog.popupOption.apply(this._formDialog,arguments)},focus:function(){this.callBase(),this._applyQuillMethod("focus")}});(0,d.default)("dxHtmlEditor",L),e.exports=L},function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(59),r=function(){function e(){if(i(this,e),!e.initialized){var t=this.getQuill(),o=n(564).default,a=n(565).default,r=n(566).default,s=n(567).default,l=n(568).default,u=n(569).default,c=n(318).default,d=n(570).default,h=n(575).default,p=n(576).default,f=n(578).default,g=n(579).default,_=t.import("attributors/style/direction");t.register({"formats/align":u,"formats/direction":_,"formats/font":s,"formats/size":l,"formats/extendedImage":a,"formats/link":r,"formats/mention":c,"modules/toolbar":d,"modules/dropImage":h,"modules/variables":p,"modules/resizing":f,"modules/mentions":g,"themes/basic":o},!0),this._customModules=[],e._initialized=!0}}return o(e,[{key:"createEditor",value:function(e,t){var n=this.getQuill();return new n(e,t)}},{key:"registerModules",value:function(e){var t=RegExp("modules/*"),n=this.getQuill(),i=function(e){return!!n.imports[e]};for(var o in e)t.test(o)&&!i(o)&&this._customModules.push(o.slice(8));n.register(e,!0)}},{key:"getRegisteredModuleNames",value:function(){return this._customModules}},{key:"getQuill",value:function(){return(0,a.getQuill)()}}]),e}();t.default=r},function(e,t){e.exports=window.Quill},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var r=n(59),s=(0,r.getQuill)().import("core/theme"),l=function(e){function t(e,n){i(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return a.quill.root.classList.add("dx-htmleditor-content"),a}return a(t,e),t}(s);t.default=l},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},l=n(59),u=n(1),c=(0,l.getQuill)(),d=c.import("formats/image"),h=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),r(t,[{key:"formats",value:function e(){var e=s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formats",this).call(this),n=this.domNode.style.float;return n&&(e.float=n),e}},{key:"format",value:function(e,n){"float"===e?this.domNode.style[e]=n:s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=e&&e.src||e,i=s(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);if((0,u.isObject)(e)){var o=function(t,n){e[t]&&i.setAttribute(t,n)};o("alt",e.alt),o("width",e.width),o("height",e.height)}return i}},{key:"formats",value:function e(n){var e=s(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,n);return e.imageSrc=n.getAttribute("src"),e}},{key:"value",value:function(e){return{src:e.getAttribute("src"),width:e.getAttribute("width"),height:e.getAttribute("height"),alt:e.getAttribute("alt")}}}]),t}(d);h.blotName="extendedImage",t.default=h},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},l=n(59),u=n(1),c=(0,l.getQuill)(),d=c.import("formats/link"),h=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),r(t,[{key:"formats",value:function e(){var e=s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formats",this).call(this),n=t.formats(this.domNode),i=n.href,o=n.target;return e.link=i,e.target=o,e}},{key:"format",value:function(e,n){"link"===e&&(0,u.isObject)(n)?(n.text&&(this.domNode.innerText=n.text),n.target?this.domNode.setAttribute("target","_blank"):this.domNode.removeAttribute("target"),this.domNode.setAttribute("href",n.href)):s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=e&&e.href||e,i=s(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return(0,u.isObject)(e)&&(e.text&&(i.innerText=e.text),e.target||i.removeAttribute("target")),i}},{key:"formats",value:function(e){return{href:e.getAttribute("href"),target:e.getAttribute("target")}}},{key:"value",value:function(e){return{href:e.getAttribute("href"),text:e.innerText,target:!!e.getAttribute("target")}}}]),t}(d);t.default=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(59),o=(0,i.getQuill)(),a=o.import("attributors/style/font");a.whitelist=null,t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(59),o=(0,i.getQuill)(),a=o.import("attributors/style/size");a.whitelist=null,t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(59),o=(0,i.getQuill)(),a=o.import("attributors/style/align");a.whitelist.push("left"),t.default=a},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(59),u=n(2),c=i(u),d=n(163),h=i(d);n(95),n(307);var p=n(574),f=i(p),g=n(3),_=n(1),m=n(0),v=n(14),y=n(32),x=n(5),b=i(x),w=n(8),C=(0,l.getQuill)().import("core/module"),k="dx-htmleditor-toolbar-wrapper",S="dx-htmleditor-toolbar",I="dx-htmleditor-toolbar-format",T="dx-htmleditor-toolbar-separator",D="dx-htmleditor-toolbar-menu-separator",E="dx-format-active",A="dx-box-item-content",O="dx-icon",B="selection-change",P="dxHtmlEditor-dialogColorCaption",M="dxHtmlEditor-dialogBackgroundCaption",R="dxHtmlEditor-dialogLinkCaption",V="dxHtmlEditor-dialogLinkUrlField",F="dxHtmlEditor-dialogLinkTextField",L="dxHtmlEditor-dialogLinkTargetField",H="dx-formdialog-field-target",z="dxHtmlEditor-dialogImageCaption",N="dxHtmlEditor-dialogImageUrlField",$="dxHtmlEditor-dialogImageAltField",W="dxHtmlEditor-dialogImageWidthField",G="dxHtmlEditor-dialogImageHeightField",j="user",q="silent",K=(0,v.format)("dxHtmlEditor-heading"),U=(0,v.format)("dxHtmlEditor-normalText"),Y=function(e){function t(e,n){o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i._editorInstance=n.editorInstance,i._toolbarWidgets=new f.default,i._formatHandlers=i._getFormatHandlers(),(0,_.isDefined)(n.items)&&(i._addCallbacks(),i._renderToolbar(),i.quill.on("editor-change",function(e){var t=e===B;i._updateToolbar(t)})),i}return r(t,e),s(t,[{key:"_addCallbacks",value:function(){this._editorInstance.addCleanCallback(this.clean.bind(this)),this._editorInstance.addContentInitializedCallback(this.updateHistoryWidgets.bind(this))}},{key:"_updateToolbar",value:function(e){this.updateFormatWidgets(e),this.updateHistoryWidgets()}},{key:"_getDefaultClickHandler",value:function(e){var t=this;return function(n){var i=t.quill.getFormat(),o=i[e],a=!((0,_.isBoolean)(o)?o:(0,_.isDefined)(o));t.quill.format(e,a,j),t._updateFormatWidget(e,a,i)}}},{key:"_updateFormatWidget",value:function(e,t,n){var i=this._toolbarWidgets.getByName(e);i&&(t?this._markActiveFormatWidget(e,i,n):(this._resetFormatWidget(e,i),Object.prototype.hasOwnProperty.call(e)&&delete n[e]),this._toggleClearFormatting(t||!(0,_.isEmptyObject)(n)))}},{key:"_getFormatHandlers",value:function(){var e=this;return{clear:function(t){var n=e.quill.getSelection();n&&(e.quill.removeFormat(n),e.updateFormatWidgets())},link:this._prepareLinkHandler(),image:this._prepareImageHandler(),color:this._prepareColorClickHandler("color"),background:this._prepareColorClickHandler("background"),orderedList:this._prepareShortcutHandler("list","ordered"),bulletList:this._prepareShortcutHandler("list","bullet"),alignLeft:this._prepareShortcutHandler("align","left"),alignCenter:this._prepareShortcutHandler("align","center"),alignRight:this._prepareShortcutHandler("align","right"),alignJustify:this._prepareShortcutHandler("align","justify"),codeBlock:this._getDefaultClickHandler("code-block"),undo:function(){e.quill.history.undo()},redo:function(){e.quill.history.redo()},increaseIndent:function(){e.quill.format("indent","+1",j)},decreaseIndent:function(){e.quill.format("indent","-1",j)},superscript:this._prepareShortcutHandler("script","super"),subscript:this._prepareShortcutHandler("script","sub")}}},{key:"_prepareShortcutHandler",value:function(e,t){var n=this;return function(){var i=n.quill.getFormat(),o=i[e]!==t&&t;n.quill.format(e,o,j),n.updateFormatWidgets(!0)}}},{key:"_prepareLinkHandler",value:function(){var e=this;return function(){e.quill.focus();var t=e.quill.getSelection(),n=e._hasEmbedContent(t),i=t?e.quill.getFormat():{},o={href:i.link||"",text:t&&!n?e.quill.getText(t):"",target:!Object.prototype.hasOwnProperty.call(i,"target")||!!i.target};e._editorInstance.formDialogOption("title",(0,v.format)(R));var a=e._editorInstance.showFormDialog({formData:o,items:e._getLinkFormItems(t)});a.done(function(i){if(t&&!n){var o=i.text||i.href,a=t.index,r=t.length;i.text=void 0,r&&e.quill.deleteText(a,r,q),e.quill.insertText(a,o,"link",i,j),e.quill.setSelection(a+o.length,0,j)}else i.text=t||i.text?i.text:i.href,e.quill.format("link",i,j)}),a.fail(function(){e.quill.focus()})}}},{key:"_hasEmbedContent",value:function(e){return!!e&&this.quill.getText(e).trim().length<e.length}},{key:"_getLinkFormItems",value:function(e){return[{dataField:"href",label:{text:(0,v.format)(V)}},{dataField:"text",label:{text:(0,v.format)(F)},visible:!this._hasEmbedContent(e)},{dataField:"target",editorType:"dxCheckBox",editorOptions:{text:(0,v.format)(L)},cssClass:H,label:{visible:!1}}]}},{key:"_prepareImageHandler",value:function(){var e=this;return function(){var t=e.quill.getFormat(),n=Object.prototype.hasOwnProperty.call(t,"imageSrc"),i=e._defaultPasteIndex;if(n){var o=e.quill.getFormat(i-1,1),a=o.imageSrc;t.src=t.imageSrc,delete t.imageSrc,a&&0!==i||e.quill.setSelection(i+1,0,q)}var r=e._embedFormatIndex;e._editorInstance.formDialogOption("title",(0,v.format)(z));var s=e._editorInstance.showFormDialog({formData:t,items:e._imageFormItems});s.done(function(t){var o=i;n&&(o=r,e.quill.deleteText(o,1,q)),e.quill.insertEmbed(o,"extendedImage",t,j),e.quill.setSelection(o+1,0,j)}).always(function(){e.quill.focus()})}}},{key:"_renderToolbar",value:function(){var e=this,t=this.options.container||this._getContainer();
82this._$toolbar=(0,c.default)("<div>").addClass(S).appendTo(t),this._$toolbarContainer=(0,c.default)(t).addClass(k),b.default.on(this._$toolbar,(0,w.addNamespace)("mousedown",this._editorInstance.NAME),function(e){e.preventDefault()}),this.toolbarInstance=this._editorInstance._createComponent(this._$toolbar,h.default,this.toolbarConfig),this._editorInstance.on("optionChanged",function(t){var n=t.name;"readOnly"!==n&&"disabled"!==n||e.toolbarInstance.option("disabled",e.isInteractionDisabled)})}},{key:"clean",value:function(){this._toolbarWidgets.clear(),this._$toolbarContainer&&this._$toolbarContainer.empty().removeClass(k)}},{key:"_getContainer",value:function(){var e=(0,c.default)("<div>");return this._editorInstance.$element().prepend(e),e}},{key:"_prepareToolbarItems",value:function(){var e=this,t=[];return(0,g.each)(this.options.items,function(n,i){var o=void 0;if((0,_.isObject)(i))o=e._handleObjectItem(i);else if((0,_.isString)(i)){var a=e._prepareButtonItemConfig(i);o=e._getToolbarItem(a)}o&&t.push(o)}),t}},{key:"_handleObjectItem",value:function(e){if(e.formatName&&e.formatValues&&this._isAcceptableItem("dxSelectBox")){var t=this._prepareSelectItemConfig(e);return this._getToolbarItem(t)}if(e.formatName&&this._isAcceptableItem("dxButton")){var n=this._prepareButtonItemConfig(e.formatName),i=(0,m.extend)(!0,n,e);return this._getToolbarItem(i)}return this._getToolbarItem(e)}},{key:"_isAcceptableItem",value:function(e,t){return!e.widget||e.widget===t}},{key:"_prepareButtonItemConfig",value:function(e){var t="clear"===e?"clearformat":e,n=(0,y.titleize)(e);return{widget:"dxButton",formatName:e,options:{hint:n,text:n,icon:t.toLowerCase(),onClick:this._formatHandlers[e]||this._getDefaultClickHandler(e),stylingMode:"text"},showText:"inMenu"}}},{key:"_prepareSelectItemConfig",value:function(e){var t=this;return(0,m.extend)(!0,{widget:"dxSelectBox",formatName:e.formatName,options:{stylingMode:"filled",dataSource:e.formatValues,placeholder:(0,y.titleize)(e.formatName),onValueChanged:function(n){t._isReset||(t.quill.format(e.formatName,n.value,j),t._setValueSilent(n.component,n.value))}}},e)}},{key:"_prepareColorClickHandler",value:function(e){var t=this;return function(){var n=t.quill.getFormat(),i="color"===e?P:M;t._editorInstance.formDialogOption("title",(0,v.format)(i));var o=t._editorInstance.showFormDialog({formData:n,items:[{dataField:e,editorType:"dxColorView",editorOptions:{onContentReady:function(e){(0,c.default)(e.element).closest("."+A).css("flexBasis","auto")},focusStateEnabled:!1},label:{visible:!1}}]});o.done(function(n){t.quill.format(e,n[e],j)}),o.fail(function(){t.quill.focus()})}}},{key:"_getToolbarItem",value:function(e){var t=this,n={options:{onInitialized:function(n){e.formatName&&(n.component.$element().addClass(I),n.component.$element().toggleClass("dx-"+e.formatName.toLowerCase()+"-format",!!e.formatName),t._toolbarWidgets.add(e.formatName,n.component))}}};return(0,m.extend)(!0,{location:"before",locateInMenu:"auto"},this._getDefaultConfig(e.formatName),e,n)}},{key:"_getDefaultItemsConfig",value:function(){return{header:{options:{displayExpr:function(e){var t=(0,_.isDefined)(e)&&e!==!1;return t?K+" "+e:U}}},clear:{options:{disabled:!0}},undo:{options:{disabled:!0}},redo:{options:{disabled:!0}},separator:{template:function(e,t,n){(0,c.default)(n).addClass(T)},menuItemTemplate:function(e,t,n){(0,c.default)(n).addClass(D)}}}}},{key:"_getDefaultConfig",value:function(e){return this._getDefaultItemsConfig()[e]}},{key:"updateHistoryWidgets",value:function(){var e=this.quill.history;if(e){var t=e.stack.undo,n=e.stack.redo;this._updateHistoryWidget(this._toolbarWidgets.getByName("undo"),t),this._updateHistoryWidget(this._toolbarWidgets.getByName("redo"),n)}}},{key:"_updateHistoryWidget",value:function(e,t){e&&e.option("disabled",!t.length)}},{key:"updateFormatWidgets",value:function(e){var t=this.quill.getSelection();if(t){var n=this.quill.getFormat(t),i=!(0,_.isEmptyObject)(n);i&&!e||this._resetFormatWidgets();for(var o in n){var a=this._getFormatWidgetName(o,n),r=this._toolbarWidgets.getByName(a)||this._toolbarWidgets.getByName(o);r&&this._markActiveFormatWidget(o,r,n)}this._toggleClearFormatting(i)}}},{key:"_markActiveFormatWidget",value:function(e,t,n){this._isColorFormat(e)&&this._updateColorWidget(e,n[e]),"value"in t.option()?this._setValueSilent(t,n[e]):t.$element().addClass(E)}},{key:"_toggleClearFormatting",value:function(e){var t=this._toolbarWidgets.getByName("clear");t&&t.option("disabled",!e)}},{key:"_isColorFormat",value:function(e){return"color"===e||"background"===e}},{key:"_updateColorWidget",value:function(e,t){var n=this._toolbarWidgets.getByName(e);n&&n.$element().find("."+O).css("borderBottomColor",t||"transparent")}},{key:"_getFormatWidgetName",value:function(e,t){var n=void 0;switch(e){case"align":n=e+(0,y.titleize)(t[e]);break;case"list":n=t[e]+(0,y.titleize)(e);break;case"code-block":n="codeBlock";break;case"script":n=t[e]+e;break;case"imageSrc":n="image";break;default:n=e}return n}},{key:"_setValueSilent",value:function(e,t){this._isReset=!0,e.option("value",t),this._isReset=!1}},{key:"_resetFormatWidgets",value:function(){var e=this;this._toolbarWidgets.each(function(t,n){e._resetFormatWidget(t,n)})}},{key:"_resetFormatWidget",value:function(e,t){t.$element().removeClass(E),this._isColorFormat(e)&&this._updateColorWidget(e),"clear"===e&&t.option("disabled",!0),"dxSelectBox"===t.NAME&&this._setValueSilent(t,null)}},{key:"addClickHandler",value:function(e,t){this._formatHandlers[e]=t;var n=this._toolbarWidgets.getByName(e);n&&"dxButton"===n.NAME&&n.option("onClick",t)}},{key:"_embedFormatIndex",get:function(){var e=this.quill.getSelection();return e?e.length?e.index:e.index-1:this.quill.getLength()}},{key:"_defaultPasteIndex",get:function(){var e=this.quill.getSelection();return e&&e.index||this.quill.getLength()}},{key:"_imageFormItems",get:function(){return[{dataField:"src",label:{text:(0,v.format)(N)}},{dataField:"width",label:{text:(0,v.format)(W)}},{dataField:"height",label:{text:(0,v.format)(G)}},{dataField:"alt",label:{text:(0,v.format)($)}}]}},{key:"toolbarConfig",get:function(){return{dataSource:this._prepareToolbarItems(),disabled:this.isInteractionDisabled,menuContainer:this._$toolbar}}},{key:"isInteractionDisabled",get:function(){return this._editorInstance.option("readOnly")||this._editorInstance.option("disabled")}}]),t}(C);t.default=Y},function(e,t,n){var i=n(319),o=n(0).extend,a=n(240),r=i.inherit({NAME:"actionSheet",_getMenuItemTemplate:function(){return this._toolbar._getTemplate("actionSheetItem")},render:function(){this._hasVisibleMenuItems()&&this.callBase()},_menuWidgetClass:function(){return a},_menuContainer:function(){return this._toolbar.$element()},_widgetOptions:function(){return o({},this.callBase(),{target:this._$button,showTitle:!1})},_menuButtonOptions:function(){return o({},this.callBase(),{icon:"overflow"})},_toggleMenu:function(){this.callBase.apply(this,arguments),this._menu.toggle(this._menuShown),this._menuShown=!1}});e.exports=r},function(e,t,n){var i=n(0).extend,o=n(319),a=n(573),r=n(196),s="dx-state-invisible",l=o.inherit({NAME:"dropDownMenu",render:function(){this._hasVisibleMenuItems()&&(this._renderMenuButtonContainer(),this._renderWidget())},renderMenuItems:function(){this._menu||this.render(),this.callBase(),this._menu&&!this._menu.option("items").length&&this._menu.close()},_menuWidgetClass:function(){return r},_widgetOptions:function(){var e=this;return i(this.callBase(),{deferRendering:!0,container:e._toolbar.option("menuContainer"),menuWidget:a,onOptionChanged:function(t){"items"===t.name&&e._updateMenuVisibility(t.value)},popupPosition:{at:"bottom right",my:"top right"}})},_updateMenuVisibility:function(e){var t=e||this._getMenuItems(),n=t.length&&this._hasVisibleMenuItems(t);this._toggleMenuVisibility(n)},_toggleMenuVisibility:function(e){this._menuContainer()&&this._menuContainer().toggleClass(s,!e)},_menuContainer:function(){return this._$menuButtonContainer}});e.exports=l},function(e,t,n){var i=n(2),o=n(9),a=n(3).each,r=n(242),s="dx-toolbar-menu-action",l="dx-toolbar-hidden-button",u="dx-toolbar-menu-section",c="dx-toolbar-menu-last-section",d=r.inherit({_activeStateUnit:"."+s,_initMarkup:function(){this._renderSections(),this.callBase()},_getSections:function(){return this._itemContainer().children()},_itemElements:function(){return this._getSections().children(this._itemSelector())},_renderSections:function(){var e=this,t=this._itemContainer();a(["before","center","after","menu"],function(){var n="_$"+this+"Section",o=e[n];o||(e[n]=o=i("<div>").addClass(u)),o.appendTo(t)})},_renderItems:function(){this.callBase.apply(this,arguments),this._updateSections()},_updateSections:function(){var e=this.$element().find("."+u);e.removeClass(c),e.not(":empty").eq(-1).addClass(c)},_renderItem:function(e,t,n,i){var o,a=t.location||"menu",r=this["_$"+a+"Section"];return o=this.callBase(e,t,r,i),this._getItemTemplateName({itemData:t})&&o.addClass("dx-toolbar-menu-custom"),("menu"===a||"dxButton"===t.widget||t.isAction)&&o.addClass(s),"dxButton"===t.widget&&o.addClass(l),o.addClass(t.cssClass),o},_getItemTemplateName:function(e){var t=this.callBase(e),n=e.itemData,i=n&&n.menuItemTemplate;return i||t},_itemClickHandler:function(e,t,n){i(e.target).closest("."+s).length&&this.callBase(e,t,n)},_clean:function(){this._getSections().empty(),this.callBase()}});o("dxToolbarMenu",d),e.exports=d},function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(){function e(){i(this,e),this._collection=[]}return o(e,[{key:"clear",value:function(){this._collection=[]}},{key:"add",value:function(e,t){this._collection.push({name:e,instance:t})}},{key:"getByName",value:function(e){var t=this._collection.find(function(t){var n=t.name;return e===n})||{},n=t.instance;return n}},{key:"each",value:function(e){this._collection.forEach(function(t){var n=t.name,i=t.instance;return i&&e(n,i)})}}]),e}();t.default=a},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(59),u=n(5),c=i(u),d=n(8),h=n(3),p=n(26),f=i(p),g=n(7),_=(0,l.getQuill)().import("core/module"),m=function(e){function t(e,n){o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));i.editorInstance=n.editorInstance;var r=i.editorInstance.NAME;return c.default.on(i.quill.root,(0,d.addNamespace)("dragover",r),i._dragOverHandler.bind(i)),c.default.on(i.quill.root,(0,d.addNamespace)("drop",r),i._dropHandler.bind(i)),c.default.on(i.quill.root,(0,d.addNamespace)("paste",r),i._pasteHandler.bind(i)),i}return r(t,e),s(t,[{key:"_dragOverHandler",value:function(e){f.default.msie&&e.preventDefault()}},{key:"_dropHandler",value:function(e){var t=e.originalEvent.dataTransfer,n=t&&t.files&&t.files.length;e.preventDefault(),n&&this._getImage(t.files,this._addImage.bind(this))}},{key:"_pasteHandler",value:function(e){var t=this,n=e.originalEvent,i=n.clipboardData;if(i){var o=i.items&&i.items.length,a=i.getData("text/html");!a&&o&&this._getImage(i.items,function(e){f.default.mozilla||(f.default.msie?setTimeout(function(){t._addImage(e)}):t._addImage(e))})}}},{key:"_isImage",value:function(e){return!!e.type.match(/^image\/(a?png|bmp|gif|p?jpe?g|svg|vnd\.microsoft\.icon|webp)/i)}},{key:"_getImage",value:function(e,t){var n=this,i=(0,g.getWindow)();(0,h.each)(e,function(e,o){if(n._isImage(o)){var a=new i.FileReader;a.onload=function(e){var n=e.target;t(n.result)};var r=o.getAsFile?o.getAsFile():o;r instanceof i.Blob&&a.readAsDataURL(r)}})}},{key:"_addImage",value:function(e){var t=this.quill.getSelection(),n=t?t.index:this.quill.getLength();this.quill.insertEmbed(n,"extendedImage",e,"user")}}]),t}(_);t.default=m},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(59),c=n(2),d=i(c),h=n(320),p=i(h),f=n(577),g=i(f),_=n(0),m="dx-variable-format",v="dx-format-active";(0,u.getQuill)().register({"formats/variable":g.default},!0);var y=function(e){function t(e,n){o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),r=e.getModule("toolbar");return r&&r.addClickHandler("variable",i.showPopup.bind(i)),e.keyboard.addBinding({key:"P",altKey:!0},i.showPopup.bind(i)),i._popup.on("shown",function(e){var t=(0,d.default)(e.component.option("position").of);t.hasClass(m)&&t.addClass(v)}),i}return r(t,e),s(t,[{key:"_getDefaultOptions",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this);return(0,_.extend)(e,{escapeChar:""})}}]),s(t,[{key:"showPopup",value:function(e){var n=this.quill.getSelection(),i=n?n.index:this.quill.getLength();this.savePosition(i),this._resetPopupPosition(e,i),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"showPopup",this).call(this)}},{key:"_resetPopupPosition",value:function(e,t){if(e&&e.element)this._popup.option("position",{of:e.element,offset:{h:0,v:0},my:"top center",at:"bottom center",collision:"fit"});else{var n=this.quill.getBounds(t),i=this.quill.root.getBoundingClientRect();this._popup.option("position",{of:this.quill.root,offset:{h:n.left,v:n.bottom-i.height},my:"top center",at:"bottom left",collision:"fit flip"})}}},{key:"insertEmbedContent",value:function(e){var t=this.getPosition(),n=e.component.option("selectedItem"),i=(0,_.extend)({},{value:n,escapeChar:this.options.escapeChar});setTimeout(function(){this.quill.insertEmbed(t,"variable",i),this.quill.setSelection(t+1)}.bind(this))}}]),t}(p.default);t.default=y},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},l=n(59),u=n(4),c=n(0),d=(0,l.getQuill)(),h=d.import("blots/embed"),p="dx-variable",f=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),r(t,null,[{key:"create",value:function(e){var n=s(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this),i=void 0,o=void 0,a=e.value;return Array.isArray(e.escapeChar)?(i=(0,u.ensureDefined)(e.escapeChar[0],""),o=(0,u.ensureDefined)(e.escapeChar[1],"")):i=o=e.escapeChar,n.innerText=i+a+o,n.dataset.varStartEscChar=i,n.dataset.varEndEscChar=o,n.dataset.varValue=e.value,n}},{key:"value",value:function(e){return(0,c.extend)({},{value:e.dataset.varValue,escapeChar:[e.dataset.varStartEscChar||"",e.dataset.varEndEscChar||""]})}}]),t}(h);f.blotName="variable",f.tagName="span",f.className=p,t.default=f},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")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(2),s=i(r),l=n(5),u=i(l),c=n(19),d=n(8),h=n(27),p=n(16),f=i(p),g=n(175),_=i(g),m="dx-resize-frame",v="dx-touch-device",y="dxHtmlResizingModule",x=(0,d.addNamespace)("keydown",y),b=(0,d.addNamespace)("scroll",y),w=1,C=function(){function e(t,n){o(this,e),this.quill=t,this.editorInstance=n.editorInstance,this.allowedTargets=n.allowedTargets||["image"],this.enabled=!!n.enabled,this.enabled&&(this._attachEvents(),this._createResizeFrame())}return a(e,[{key:"_attachEvents",value:function(){u.default.on(this.quill.root,(0,d.addNamespace)(c.name,y),this._clickHandler.bind(this)),u.default.on(this.quill.root,b,this._scrollHandler.bind(this))}},{key:"_detachEvents",value:function(){u.default.off(this.quill.root,y)}},{key:"_clickHandler",value:function(e){if(this._isAllowedTarget(e.target)){if(this._$target===e.target)return;this._$target=e.target,this.updateFramePosition(),this.showFrame()}else this._$target&&this.hideFrame()}},{key:"_scrollHandler",value:function(e){this._$target&&this.updateFramePosition()}},{key:"_isAllowedTarget",value:function(e){return this._isImage(e)}},{key:"_isImage",value:function(e){return this.allowedTargets.indexOf("image")!==-1&&"IMG"===e.tagName.toUpperCase()}},{key:"showFrame",value:function(){this._$resizeFrame.show(),u.default.on(this.quill.root,x,this.hideFrame.bind(this))}},{key:"hideFrame",value:function(){this._$target=null,this._$resizeFrame.hide(),u.default.off(this.quill.root,x)}},{key:"updateFramePosition",value:function(){var e=this._$target,t=e.height,n=e.width,i=e.offsetTop,o=e.offsetLeft,a=this.quill.root,r=a.scrollTop,s=a.scrollLeft,l=this._getBorderWidth();this._$resizeFrame.css({height:t,width:n,padding:w,top:i-l-r-w,left:o-l-s-w}),(0,h.move)(this._$resizeFrame,{left:0,top:0})}},{key:"_getBorderWidth",value:function(){return parseInt(this._$resizeFrame.css("borderTopWidth"))}},{key:"_createResizeFrame",value:function(){var e=this;if(!this._$resizeFrame){var t=f.default.current(),n=t.deviceType;this._$resizeFrame=(0,s.default)("<div>").addClass(m).toggleClass(v,"desktop"!==n).appendTo(this.editorInstance._getQuillContainer()).hide(),this.editorInstance._createComponent(this._$resizeFrame,_.default,{onResize:function(t){if(e._$target){var n=2*(w+e._getBorderWidth());(0,s.default)(e._$target).attr({height:t.height-n,width:t.width-n}),e.updateFramePosition()}}})}}},{key:"option",value:function(e,t){var n=this;return"mediaResizing"===e?void Object.keys(t).forEach(function(e){return n.option(e,t[e])}):void("enabled"===e?(this.enabled=t,t?this._attachEvents():this._detachEvents()):"allowedTargets"===e&&Array.isArray(t)&&(this.allowedTargets=t))}},{key:"clean",value:function(){this._detachEvents(),this._$resizeFrame.remove(),this._$resizeFrame=void 0}}]),e}();t.default=C},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(20),h=n(1),p=n(0),f=n(12),g=n(282),_=n(320),m=i(_),v=n(318),y=i(v),x="user",b="silent",w="@",C={ARROW_UP:38,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ENTER:13,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36},k=[C.ARROW_LEFT,C.ARROW_RIGHT,C.PAGE_UP,C.PAGE_DOWN,C.END,C.HOME],S=[" ","\n"],I="dx-state-disabled",T=function(e){function t(e,n){o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i._mentions={},i.editorInstance=n.editorInstance,n.mentions.forEach(function(e){var t=e.marker,n=e.template;if(t||(e.marker=t=w),n){var o=i.editorInstance._getTemplate(n);o&&y.default.addTemplate(t,o)}i._mentions[t]=(0,p.extend)({},i._getDefaultOptions(),e)}),i._attachKeyboardHandlers(),i.editorInstance.addCleanCallback(i.clean.bind(i)),i.quill.on("text-change",i.onTextChange.bind(i)),i}return r(t,e),s(t,[{key:"_getDefaultOptions",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this);return(0,p.extend)(e,{itemTemplate:"item",valueExpr:"this",displayExpr:"this",template:null,searchExpr:null,searchTimeout:500,minSearchLength:0})}}]),s(t,[{key:"_attachKeyboardHandlers",value:function(){var e=this;this.quill.keyboard.addBinding({key:C.ARROW_UP},this._arrowUpKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:C.ARROW_DOWN},this._arrowDownKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:C.ENTER},this._selectItemHandler.bind(this));var t=this.quill.keyboard.bindings[C.ENTER];t.unshift(t.pop()),this.quill.keyboard.addBinding({key:C.ESCAPE},this._escapeKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:C.SPACE},this._selectItemHandler.bind(this)),this.quill.keyboard.addBinding({key:C.ARROW_LEFT,shiftKey:!0},this._ignoreKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:C.ARROW_RIGHT,shiftKey:!0},this._ignoreKeyHandler.bind(this)),k.forEach(function(t){e.quill.keyboard.addBinding({key:t},e._ignoreKeyHandler.bind(e))})}},{key:"_arrowUpKeyHandler",value:function(){if(this._isMentionActive){var e=(0,c.default)(this._list.option("focusedElement")),t=e.prev();t=t.length?t:this._activeListItems.last(),this._list.option("focusedElement",(0,f.getPublicElement)(t)),this._list.scrollToItem(t)}return!this._isMentionActive}},{key:"_arrowDownKeyHandler",value:function(){if(this._isMentionActive){var e=(0,c.default)(this._list.option("focusedElement")),t=e.next();t=t.length?t:this._activeListItems.first(),this._list.option("focusedElement",(0,f.getPublicElement)(t)),this._list.scrollToItem(t)}return!this._isMentionActive}},{key:"_ignoreKeyHandler",value:function(){return!this._isMentionActive}},{key:"_fitIntoRange",value:function(e,t,n){return e>n?t:e<t?n:e}},{key:"_selectItemHandler",value:function(){return this._isMentionActive&&this._list.selectItem(this._list.option("focusedElement")),!this._isMentionActive}},{key:"_escapeKeyHandler",value:function(){return this._isMentionActive&&this._popup.hide(),!this._isMentionActive}},{key:"renderList",value:function(e,n){this.compileGetters(this.options),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderList",this).call(this,e,n)}},{key:"compileGetters",value:function(e){var t=e.displayExpr,n=e.valueExpr;this._valueGetter=(0,d.compileGetter)(t),this._idGetter=(0,d.compileGetter)(n)}},{key:"_getListConfig",value:function(e){var n=this,i=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getListConfig",this).call(this,e);return(0,p.extend)(i,{itemTemplate:this.options.itemTemplate,onContentReady:function(){n._hasSearch&&(n._popup.repaint(),n._focusFirstElement(),n._hasSearch=!1)}})}},{key:"insertEmbedContent",value:function(){var e=this._activeMentionConfig.marker.length,t=e+this._searchValue.length,n=this.getPosition(),i=Math.max(0,n-e),o=this._list.option("selectedItem"),a={value:this._valueGetter(o),id:this._idGetter(o),marker:this._activeMentionConfig.marker};setTimeout(function(){this.quill.deleteText(i,t,b),this.quill.insertEmbed(i,"mention",a),this.quill.insertText(i+1," ",b),this.quill.setSelection(i+2)}.bind(this))}},{key:"onTextChange",value:function(e,t,n){if(n===x){var i=e.ops[e.ops.length-1];this._isMentionActive?this._processSearchValue(i)&&this._filterList(this._searchValue):this.checkMentionRequest(i,e.ops)}}},{key:"_processSearchValue",value:function(e){var t="insert"in e;if(t)this._searchValue+=e.insert;else{if(!this._searchValue.length)return this._popup.hide(),!1;this._searchValue=this._searchValue.slice(0,-1)}return!0}},{key:"checkMentionRequest",value:function(e,t){var n=e.insert,i=this.quill.getSelection();n&&(0,h.isString)(n)&&i&&!this._isMarkerPartOfText(t[0].retain)&&(this._activeMentionConfig=this._mentions[n],this._activeMentionConfig&&(this._updateList(this._activeMentionConfig),this.savePosition(i.index),this._popup.option("position",this._popupPosition),this._searchValue="",this._popup.show()))}},{key:"_isMarkerPartOfText",value:function(e){return!(!e||S.indexOf(this._getCharByIndex(e-1))!==-1)}},{key:"_getCharByIndex",value:function(e){return this.quill.getContents(e,1).ops[0].insert}},{key:"_updateList",value:function(e){var t=e.dataSource,n=e.displayExpr,i=e.valueExpr,o=e.itemTemplate,a=e.searchExpr;this.compileGetters({displayExpr:n,valueExpr:i}),this._list.unselectAll(),this._list.option({dataSource:t,displayExpr:n,itemTemplate:o,searchExpr:a})}},{key:"_filterList",value:function(e){var t=this;if(!this._isMinSearchLengthExceeded(e))return void this._resetFilter();var n=this._activeMentionConfig.searchTimeout;n?(clearTimeout(this._searchTimer),this._searchTimer=setTimeout(function(){t._search(e)},n)):this._search(e)}},{key:"_isMinSearchLengthExceeded",value:function(e){return e.length>=this._activeMentionConfig.minSearchLength}},{key:"_resetFilter",value:function(){clearTimeout(this._searchTimer),this._search(null)}},{key:"_search",value:function(e){this._hasSearch=!0,this._list.option("searchValue",e)}},{key:"_focusFirstElement",value:function(){if(this._list){var e=this._activeListItems.first();this._list.option("focusedElement",(0,f.getPublicElement)(e)),this._list.scrollToItem(e)}}},{key:"_getPopupConfig",value:function(){var e=this;return(0,p.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getPopupConfig",this).call(this),{closeOnTargetScroll:!1,onShown:function(){e._isMentionActive=!0,e._hasSearch=!1,e._focusFirstElement()},onHidden:function(){e._list.unselectAll(),e._list.option("focusedElement",null),e._isMentionActive=!1,e._search(null)},focusStateEnabled:!1})}},{key:"clean",value:function(){var e=this;Object.keys(this._mentions).forEach(function(t){e._mentions[t].template&&y.default.removeTemplate(t)})}},{key:"_popupPosition",get:function(){var e=this.getPosition(),t=this.quill.getBounds(e?e-1:e),n=t.left,i=t.top,o=t.height,a=(0,c.default)(this.quill.root).offset(),r=a.left,s=a.top,l=(0,g.Event)("positionEvent",{pageX:r+n,pageY:s+i});return{of:l,offset:{v:o},my:"top left",at:"top left",collision:{y:"flip",x:"flipfit"}}}},{key:"_activeListItems",get:function(){return this._list.itemElements().filter(":not(."+I+")")}}]),t}(m.default);t.default=T},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e){return Array.isArray(e)?e:Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){var n=[],i=!0,o=!1,a=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done)&&(n.push(r.value),!t||n.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=n(250),c=i(u),d=n(59),h=n(1),p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},f="list",g="list-item",_=function(){function e(){r(this,e),this.TextBlot=(0,d.getQuill)().import("blots/text"),this.BreakBlot=(0,d.getQuill)().import("blots/break")}return l(e,[{key:"setQuillInstance",value:function(e){this.quillInstance=e}},{key:"toHtml",value:function(){if(this.quillInstance)return this._isQuillEmpty()?"":this._convertHTML(this.quillInstance.scroll,0,this.quillInstance.getLength(),!0)}},{key:"_isQuillEmpty",value:function(){var e=this.quillInstance.getContents();return 1===e.length()&&this._isDeltaEmpty(e)}},{key:"_isDeltaEmpty",value:function(e){return e.reduce(function(e,t){var n=t.insert;return n.indexOf("\n")!==-1})}},{key:"_convertHTML",value:function(e,t,n){var i=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if((0,h.isFunction)(e.html))return e.html(t,n);if(e instanceof this.TextBlot)return this._escapeText(e.value().slice(t,t+n));if(e.children){if(e.statics.blotName===f)return this._convertList(e,t,n);var a=[];if(e.children.forEachAt(t,n,function(e,t,n){a.push(i._convertHTML(e,t,n))}),this._handleBreakLine(e.children,a),o||e.statics.blotName===g)return a.join("");var r=e.domNode,l=r.outerHTML,u=r.innerHTML,c=l.split(">"+u+"<"),d=s(c,2),p=d[0],_=d[1];return p+">"+a.join("")+"<"+_}return e.domNode.outerHTML}},{key:"_handleBreakLine",value:function(e,t){1===e.length&&e.head instanceof this.BreakBlot&&t.push("<br>")}},{key:"_convertList",value:function(e,t,n){var i=[],o=e.formats();return e.children.forEachAt(t,n,function(e,t,n){var a=e.formats();i.push({child:e,offset:t,length:n,indent:a.indent||0,
83type:o.list})}),this._getListMarkup(i,-1,[])}},{key:"_getListMarkup",value:function(e,t,n){if(0===e.length){var i=this._getListType(n.pop());return t<=0?"</li></"+i+">":this._processListMarkup([[],t-1,n],i)}var o=a(e),r=o[0],s=r.child,l=r.offset,u=r.length,c=r.indent,d=r.type,h=o.slice(1),p=this._getListType(d),f=[s,l,u],g=[h,c,n];if(c>t){n.push(d);var _=this._correctListMultiIndent(n,d,p,c-t-1);return _+this._processIndentListMarkup(f,g,p)}if(c===t)return this._processIndentListMarkup(f,g);var m=this._getListType(n.pop());return this._processListMarkup([e,t-1,n],m)}},{key:"_correctListMultiIndent",value:function(e,t,n,i){for(var o="";i;)o+="<"+n+">",e.push(t),i--;return o}},{key:"_processListMarkup",value:function(e,t){return"</li></"+t+">"+this._getListMarkup.apply(this,o(e))}},{key:"_processIndentListMarkup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/li",i=this._getListItemAttributes(e[0]);return"<"+n+"><li"+i+">"+this._convertHTML.apply(this,o(e))+this._getListMarkup.apply(this,o(t))}},{key:"_getListItemAttributes",value:function(e){var t=e.domNode;if(!t.hasAttributes())return"";for(var n=t.attributes,i=" ",o=0;o<n.length;o++){var a=n[o],r=a.name,s=a.value;"class"===r&&(s=this._removeIndentClass(s)),s.length&&(i+=r+'="'+s+'"')}return i.length>1?i:""}},{key:"_getListType",value:function(e){return"ordered"===e?"ol":"ul"}},{key:"_removeIndentClass",value:function(e){return e.replace(/ql-indent-\d/g,"").trim()}},{key:"_escapeText",value:function(e){return e.replace(/[&<>"']/g,function(e){return p[e]})}}]),e}();c.default.addConverter("delta",_),t.default=_},function(e,t,n){function i(e){var t=e[1];return t.match(/\S+\./)?"ordered":"bullet"}function o(e){var t=e.getAttribute("style").replace(/\n+/g,""),n=t.match(/level(\d+)/);return n?n[1]-1:0}function a(e){var t=e[e.length-1];t.insert=t.insert.trim()}Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){var t=e.import("delta");return function(e,n){var r=n.ops.slice(),s=r[0];s.insert=s.insert.replace(/^\s+/,"");var l=s.insert.match(/^(\S+)\s+/);if(!l)return n;s.insert=s.insert.substring(l[0].length,s.insert.length);var u=o(e);return a(r),r.push({insert:"\n",attributes:{list:i(l),indent:u}}),new t(r)}};t.default=r},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=e.import("delta"),n=function e(n,o,s){return(0,r.isObject)(o)?Object.keys(o).reduce(function(t,n){return e(t,n,o[n])},n):n.reduce(function(e,t){var n=t.attributes,r=t.insert;return n&&n[o]?e.push(t):e.insert(r,(0,a.extend)({},i({},o,s),n))},new t)};return function(e,t){var i={},o=e.style||{},a=o.textDecoration,r=a&&a.indexOf("line-through")!==-1,s=a&&a.indexOf("underline")!==-1;return r&&(i.strike=!0),s&&(i.underline=!0),(r||s)&&(t=n(t,i)),t}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),r=n(1);t.default=o},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")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(2),s=i(r),l=n(0),u=n(46),c=i(u),d=n(140),h=i(d),p=n(11),f=n(12),g=n(6),_=n(14),m=n(26),v=i(m),y="dx-formdialog",x="dx-formdialog-form",b=function(){function e(t,n){o(this,e),this._editorInstance=t,this._popupUserConfig=n,this._renderPopup()}return a(e,[{key:"_renderPopup",value:function(){var e=this._editorInstance,t=(0,s.default)("<div>").addClass(y).appendTo(e.$element()),n=this._getPopupConfig();return e._createComponent(t,c.default,n)}},{key:"_escKeyHandler",value:function(){this._popup.hide()}},{key:"_addEscapeHandler",value:function(e){e.component.registerKeyHandler("escape",this._escKeyHandler.bind(this))}},{key:"_getPopupConfig",value:function(){var e=this;return(0,l.extend)({onInitialized:function(t){e._popup=t.component,e._popup.on("hiding",function(){e.deferred.reject()}),e._popup.on("shown",function(){e._form.focus()})},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,contentTemplate:function(t){var n=(0,s.default)("<div>").appendTo(t);e._renderForm(n,{onEditorEnterKey:function(t){var n=t.component,i=t.dataField;e._updateEditorValue(n,i),e.hide(n.option("formData"))},customizeItem:function(t){"simple"===t.itemType&&(t.editorOptions=(0,l.extend)(!0,{},t.editorOptions,{onInitialized:e._addEscapeHandler.bind(e)}))}})},toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{onInitialized:this._addEscapeHandler.bind(this),text:(0,_.format)("OK"),onClick:function(){e.hide(e._form.option("formData"))}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{onInitialized:this._addEscapeHandler.bind(this),text:(0,_.format)("Cancel"),onClick:function(){e._popup.hide()}}}]},this._popupUserConfig)}},{key:"_updateEditorValue",value:function(e,t){if(v.default.msie&&parseInt(v.default.version)<=11){var n=e.getEditor(t),i=(0,p.getActiveElement)();n.$element().find(i).length&&(0,f.resetActiveElement)()}}},{key:"_renderForm",value:function(e,t){e.addClass(x),this._form=this._editorInstance._createComponent(e,h.default,t)}},{key:"show",value:function(e){if(!this._popup.option("visible")){this.deferred=new g.Deferred;var t=(0,l.extend)({},e);return this._form.option(t),this._popup.show(),this.deferred.promise()}}},{key:"hide",value:function(e){this.deferred.resolve(e),this._popup.hide()}},{key:"popupOption",value:function(e,t){return this._popup.option.apply(this._popup,arguments)}}]),e}();t.default=b},function(e,t,n){var i=n(2),o=n(5),a=n(7).getWindow(),r=n(42),s=n(4),l=n(12),u=n(3).each,c=n(0).extend,d=n(72),h=n(14),p=n(16),f=n(9),g=n(8),_=n(241),m=n(31),v=n(19),y=n(138),x=n(92),b=n(134),w=n(27),C="dx-lookup",k="dx-lookup-search",S="dx-lookup-search-wrapper",I="dx-lookup-field",T="dx-lookup-arrow",D="dx-lookup-field-wrapper",E="dx-lookup-popup",A="dx-lookup-popup-wrapper",O="dx-lookup-popup-search",B="dx-lookup-popover-mode",P="dx-lookup-empty",M="dx-popover-flipped-vertical",R="dx-texteditor-input",V={popupWidth:"width",popupHeight:"height"},F="dx-list-item-selected",L=4,H=8,z=_.inherit({_supportedKeys:function(){return c(this.callBase(),{space:function(e){e.preventDefault(),this._validatedOpening()},enter:function(){this._validatedOpening()}})},_getDefaultOptions:function(){return c(this.callBase(),{title:"",titleTemplate:"title",onTitleRendered:null,placeholder:h.format("Select"),searchPlaceholder:h.format("Search"),searchEnabled:!0,cleanSearchOnOpening:!0,fullScreen:!1,showCancelButton:!0,showClearButton:!1,clearButtonText:h.format("Clear"),applyButtonText:h.format("OK"),popupWidth:function(){return.8*i(a).width()},popupHeight:function(){return.8*i(a).height()},shading:!0,closeOnOutsideClick:!1,position:void 0,animation:{},pullRefreshEnabled:!1,useNativeScrolling:!0,pullingDownText:h.format("dxList-pullingDownText"),pulledDownText:h.format("dxList-pulledDownText"),refreshingText:h.format("dxList-refreshingText"),pageLoadingText:h.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:h.format("dxList-nextButtonText"),grouped:!1,groupTemplate:"group",usePopover:!1,showDropDownButton:!1,showPopupTitle:!0,focusStateEnabled:!1,_scrollToSelectedItemEnabled:!1,useHiddenSubmitElement:!0})},_defaultOptionsRules:function(){var e=m.current();return this.callBase().concat([{device:function(){return!r.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(e){return!p.isSimulator()&&"generic"===p.real().platform&&"generic"===e.platform},options:{usePopover:!0,popupHeight:"auto"}},{device:function(e){return"win"===e.platform&&e.phone&&e.version&&8===e.version[0]},options:{showCancelButton:!1,fullScreen:!0}},{device:function(e){return"win"===e.platform&&!e.phone&&e.version&&8===e.version[0]},options:{popupWidth:function(){return i(a).width()}}},{device:{platform:"ios",phone:!0},options:{fullScreen:!0}},{device:{platform:"ios",tablet:!0},options:{popupWidth:function(){return.4*Math.min(i(a).width(),i(a).height())},popupHeight:"auto",usePopover:!0,useInkRipple:!1}},{device:function(){return"desktop"===p.real().deviceType&&!p.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return m.isMaterial(e)},options:{usePopover:!1,closeOnOutsideClick:!0,popupWidth:function(){return i(this.element()).outerWidth()}.bind(this),popupHeight:function(){return this._getPopupHeight(L)}.bind(this),searchEnabled:!1,showCancelButton:!1,showPopupTitle:!1,position:{my:"left top",at:"left top",of:this.element()},_scrollToSelectedItemEnabled:!0}}])},_initTemplates:function(){this.callBase(),this._defaultTemplates.group=new b("group",this),this._defaultTemplates.title=new b("title",this)},_initMarkup:function(){this.$element().addClass(C).toggleClass(B,this.option("usePopover")),this.callBase()},_inputWrapper:function(){return this.$element().find("."+D)},_dataSourceOptions:function(){return c(this.callBase(),{paginate:!0})},_fireContentReadyAction:s.noop,_popupWrapperClass:function(){return""},_renderInput:function(){var e=this._createAction(function(){this._toggleOpenState()}.bind(this));this._$field=i("<div>").addClass(I),o.on(this._$field,g.addNamespace(v.name,this.NAME),function(t){e({event:t})});var t=i("<div>").addClass(T);this._$fieldWrapper=i("<div>").addClass(D).append(this._$field).append(t).appendTo(this.$element()),this.option("useInkRipple")&&this._renderInkRipple()},_renderInkRipple:function(){this._inkRipple=d.render()},_toggleOpenState:function(){this.callBase(),!this.option("fullScreen")&&this.option("_scrollToSelectedItemEnabled")&&this._setPopupPosition()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:this._inputWrapper(),event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_renderField:function(){var e=this._getTemplateByOption("fieldTemplate");return e&&this.option("fieldTemplate")?void this._renderFieldTemplate(e):(this._$field.text(this.option("displayValue")||this.option("placeholder")),void this.$element().toggleClass(P,!this.option("selectedItem")))},_renderFieldTemplate:function(e){this._$field.empty();var t=this._fieldRenderData();e.render({model:t,container:l.getPublicElement(this._$field)})},_fieldRenderData:function(){return this.option("selectedItem")},_popupShowingHandler:function(){this.callBase.apply(this,arguments),this.option("cleanSearchOnOpening")&&(this.option("searchEnabled")&&this._searchBox.option("value")&&(this._searchBox.option("value",""),this._searchCanceled()),this._list&&this._list.option("focusedElement",null)),this.option("fullScreen")&&this.option("_scrollToSelectedItemEnabled")&&(this._popup.option("position").of=i(a))},_scrollToSelectedItem:function(){var e=this._list.option("selectedIndex"),t=this._list.option("items"),n=t.length;0!==n&&(this._list.option("grouped")?this._list.scrollToItem({group:n-1,item:t[n-1].items.length-1}):this._list.scrollToItem(n-1),this._list.scrollToItem(e))},_setPopupPosition:function(){var e=this._list.option("selectedIndex"),t=this._popup._$wrapper.hasClass(M);if(e!==-1&&!t){var n=i(this._list.element()).find("."+F);n.offset().top<0&&this._scrollToSelectedItem();var o=(n.height()-i(this.element()).height())/2,a=i(this._popup.content()).parent(),r=n.offset().top-a.offset().top,s=i(this.element()).offset().top,l=o;s>r?l+=r:this._scrollToSelectedItem();var u=w.locate(a);w.move(a,{top:u.top-l})}},_getPopupHeight:function(e){return this._list&&this._list.itemElements()?this._list.itemElements().height()*e+2*H:"auto"},_renderPopup:function(){this.option("usePopover")&&!this.option("fullScreen")?this._renderPopover():this.callBase(),this._$popup.addClass(E),this._popup._wrapper().addClass(A)},_popupOptionMap:function(e){return V[e]||e},_renderPopover:function(){this._popup=this._createComponent(this._$popup,y,c(this._popupConfig(),{showEvent:null,hideEvent:null,target:this.$element(),fullScreen:!1,shading:!1,closeOnTargetScroll:!0,width:this._isInitialOptionValue("popupWidth")?function(){return this.$element().outerWidth()}.bind(this):this._popupConfig().width})),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()},_popupHidingHandler:function(){this.callBase(),this.option("focusStateEnabled")&&this.focus()},_popupHiddenHandler:function(){this.callBase(),this.option("_scrollToSelectedItemEnabled")&&w.resetPosition(i(this._popup.content()).parent())},_preventFocusOnPopup:s.noop,_popupConfig:function(){var e=c(this.callBase(),{showTitle:this.option("showPopupTitle"),title:this.option("title"),titleTemplate:this._getTemplateByOption("titleTemplate"),onTitleRendered:this.option("onTitleRendered"),toolbarItems:this._getPopupToolbarItems(),fullScreen:this.option("fullScreen"),shading:this.option("shading"),closeOnTargetScroll:!1,closeOnOutsideClick:this.option("closeOnOutsideClick"),onPositioned:null});return delete e.animation,delete e.position,e.maxHeight=function(){return i(a).height()},u(["position","animation","popupWidth","popupHeight"],function(t,n){void 0!==this.option(n)&&(e[this._popupOptionMap(n)]=this.option(n))}.bind(this)),e},_getPopupToolbarItems:function(){var e="useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[],t=this._getCancelButtonConfig();t&&e.push(t);var n=this._getClearButtonConfig();return n&&e.push(n),this._applyButtonsLocation(e)},_popupToolbarItemsConfig:function(){return[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText")}}]},_getCancelButtonConfig:function(){return this.option("showCancelButton")?{shortcut:"cancel",onClick:this._cancelButtonHandler.bind(this),options:{text:this.option("cancelButtonText")}}:null},_getClearButtonConfig:function(){return this.option("showClearButton")?{shortcut:"clear",onClick:this._resetValue.bind(this),options:{text:this.option("clearButtonText")}}:null},_applyButtonHandler:function(){this.option("value",this._valueGetter(this._currentSelectedItem())),this.callBase()},_cancelButtonHandler:function(){this._refreshSelected(),this.callBase()},_refreshPopupVisibility:function(){this.option("opened")&&this._updatePopupHeight()},_dimensionChanged:function(){this.option("usePopover")&&!this.option("popupWidth")&&this.option("popupWidth",this.$element().width()),this.callBase()},_updatePopupDimensions:function(){this._updatePopupHeight()},_input:function(){return this._$searchBox||this.callBase()},_renderPopupContent:function(){this.callBase(),this._renderSearch(),this._attachSearchChildProcessor()},_attachSearchChildProcessor:function(){this.option("searchEnabled")&&this._searchBox?(this._listKeyboardProcessor=this._searchBox._keyboardProcessor.attachChildProcessor(),this._setListOption("_keyboardProcessor",this._listKeyboardProcessor)):this._setListOption("_keyboardProcessor",void 0)},_renderSearch:function(){if(this._$searchWrapper&&this._$searchWrapper.remove(),delete this._$searchWrapper,this._$searchBox&&this._$searchBox.remove(),delete this._$searchBox,delete this._searchBox,this.option("searchEnabled")){var e=this._$searchWrapper=i("<div>").addClass(S),t=this._$searchBox=i("<div>").addClass(k).appendTo(e),n=p.current(),o=n.android&&n.version[0]>=5?"text":"search";this._searchBox=this._createComponent(t,x,{mode:o,showClearButton:!0,valueChangeEvent:this.option("valueChangeEvent"),onValueChanged:this._searchHandler.bind(this)}),this._registerSearchKeyHandlers(),e.insertBefore(this._$list)}this._renderSearchVisibility(),this._setSearchPlaceholder()},_selectListItemHandler:function(e){var t=i(this._list.option("focusedElement"));t.length&&(e.preventDefault(),this._selectListItem(e.itemData,t))},_registerSearchKeyHandlers:function(){this._searchBox.registerKeyHandler("escape",this.close.bind(this)),this._searchBox.registerKeyHandler("enter",this._selectListItemHandler.bind(this)),this._searchBox.registerKeyHandler("space",this._selectListItemHandler.bind(this)),this._searchBox.registerKeyHandler("end",s.noop),this._searchBox.registerKeyHandler("home",s.noop)},_renderSearchVisibility:function(){this._popup&&this._popup._wrapper().toggleClass(O,this.option("searchEnabled"))},_setSearchPlaceholder:function(){if(this._$searchBox){var e=this.option("minSearchLength"),t=this.option("searchPlaceholder");e&&t===h.format("Search")&&(t=h.getFormatter("dxLookup-searchPlaceholder")(e)),this._searchBox.option("placeholder",t)}},_setAriaTargetForList:s.noop,_renderList:function(){this.callBase(),this._list.registerKeyHandler("escape",function(){this.close()}.bind(this))},_listConfig:function(){return c(this.callBase(),{tabIndex:0,grouped:this.option("grouped"),groupTemplate:this._getTemplateByOption("groupTemplate"),pullRefreshEnabled:this.option("pullRefreshEnabled"),useNativeScrolling:this.option("useNativeScrolling"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),pageLoadingText:this.option("pageLoadingText"),onScroll:this.option("onScroll"),onPullRefresh:this.option("onPullRefresh"),onPageLoading:this.option("onPageLoading"),pageLoadMode:this.option("pageLoadMode"),nextButtonText:this.option("nextButtonText"),_keyboardProcessor:this._listKeyboardProcessor,onFocusIn:this._onFocusInHandler.bind(this),onSelectionChanged:this._getSelectionChangedHandler()})},_getSelectionChangedHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):s.noop},_onFocusInHandler:function(){this._setListOption("_keyboardProcessor",void 0)},_listContentReadyHandler:function(){this.callBase.apply(this,arguments),this._refreshSelected()},_setFocusPolicy:function(){this.option("focusStateEnabled")&&(this.option("searchEnabled")?this._searchBox.focus():o.trigger(this._$list,"focus"))},_attachChildKeyboardEvents:s.noop,_focusTarget:function(){return this._$field},_keyboardEventBindingTarget:function(){return this._$field},_listItemClickHandler:function(e){this._saveValueChangeEvent(e.event),this._selectListItem(e.itemData,e.event.currentTarget)},_selectListItem:function(e,t){this._list.selectItem(t),"instantly"===this.option("applyValueMode")&&this._applyButtonHandler()},_currentSelectedItem:function(){return this.option("grouped")?this._list.option("selectedItems[0]").items[0]:this._list.option("selectedItems[0]")},_resetValue:function(e){this._saveValueChangeEvent(e.event),this.option("value",null),this.option("opened",!1)},_searchValue:function(){return this.option("searchEnabled")&&this._searchBox?this._searchBox.option("value"):""},_renderInputValue:function(){return this.callBase().always(function(){this._refreshSelected()}.bind(this))},_renderPlaceholder:function(){0!==this.$element().find("."+R).length&&this.callBase()},_clean:function(){this._$fieldWrapper.remove(),this._$searchBox=null,delete this._inkRipple,this.callBase()},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"dataSource":this.callBase.apply(this,arguments),this._renderField();break;case"searchEnabled":this._popup&&this._renderSearch(),this._attachSearchChildProcessor();break;case"searchPlaceholder":this._setSearchPlaceholder();break;case"minSearchLength":this._setSearchPlaceholder(),this.callBase.apply(this,arguments);break;case"title":case"titleTemplate":case"onTitleRendered":case"shading":case"animation":case"position":case"closeOnOutsideClick":this._setPopupOption(t);break;case"fullScreen":case"usePopover":case"placeholder":this._invalidate();break;case"clearButtonText":case"showClearButton":case"showCancelButton":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"applyValueMode":this.callBase.apply(this,arguments);break;case"popupWidth":this._setPopupOption("popupWidth","auto"===n?this.initialOption("popupWidth"):n);break;case"popupHeight":this._setPopupOption("popupHeight","auto"===n?this.initialOption("popupHeight"):n);break;case"pullRefreshEnabled":case"useNativeScrolling":case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"onScroll":case"onPullRefresh":case"onPageLoading":case"nextButtonText":case"grouped":case"groupTemplate":this._setListOption(t);break;case"pageLoadMode":this._setListOption("pageLoadMode",this.option("pageLoadMode"));break;case"cleanSearchOnOpening":case"_scrollToSelectedItemEnabled":break;default:this.callBase.apply(this,arguments)}},focus:function(){this.option("opened")?this._setFocusPolicy():o.trigger(this._focusTarget(),"focus")},field:function(){return this._$field}});f("dxLookup",z),e.exports=z},function(e,t,n){var i=n(2),o=n(5),a=n(82),r=n(6).fromPromise,s=n(9),l=n(17),u=n(16),c=n(18),d=n(32),h=n(3).each,p=n(0).extend,f=n(13).inArray,g=n(1).isNumeric,_=n(8),m=n(24),v=n(13).wrapToArray,y={googleStatic:n(586),google:n(587),bing:n(588)},x="dx-map",b="dx-map-container",w="dx-map-shield",C="dx-native-click",k=c.inherit({_getDefaultOptions:function(){return p(this.callBase(),{bounds:{northEast:null,southWest:null},center:{lat:0,lng:0},zoom:1,width:300,height:300,type:"roadmap",provider:"google",autoAdjust:!0,markers:[],markerIconSrc:null,onMarkerAdded:null,onMarkerRemoved:null,routes:[],onRouteAdded:null,onRouteRemoved:null,key:{bing:"",google:"",googleStatic:""},controls:!1,onReady:null,onUpdated:null,onClick:null})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===u.real().deviceType&&!u.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.$element().addClass(x).addClass(C),this._lastAsyncAction=a.resolve(),this._checkOption("provider"),this._checkOption("markers"),this._checkOption("routes"),this._initContainer(),this._grabEvents(),this._rendered={}},_checkOption:function(e){var t=this.option(e);if("markers"===e&&!Array.isArray(t))throw l.Error("E1022");if("routes"===e&&!Array.isArray(t))throw l.Error("E1023")},_initContainer:function(){this._$container=i("<div>").addClass(b),this.$element().append(this._$container)},_grabEvents:function(){var e=_.addNamespace(m.down,this.NAME);o.on(this.$element(),e,this._cancelEvent.bind(this))},_cancelEvent:function(e){var t=this._provider&&this._provider.isEventsCanceled(e)&&!this.option("disabled");t&&e.stopPropagation()},_saveRendered:function(e){var t=this.option(e);this._rendered[e]=t.slice()},_render:function(){this.callBase(),this._renderShield(),this._saveRendered("markers"),this._saveRendered("routes"),this._provider=new(y[this.option("provider")])(this,this._$container),this._queueAsyncAction("render",this._rendered.markers,this._rendered.routes)},_renderShield:function(){var e;this.option("disabled")?(e=i("<div>").addClass(w),this.$element().append(e)):(e=this.$element().find("."+w),e.remove())},_clean:function(){this._cleanFocusState(),this._provider&&this._provider.clean(),this._provider=null,this._lastAsyncAction=a.resolve(),this.setOptionSilent("bounds",{northEast:null,southWest:null}),delete this._suppressAsyncAction},_optionChanged:function(e){var t=e.name,n=this._optionChangeBag;switch(this._optionChangeBag=null,t){case"disabled":this._renderShield(),this.callBase(e);break;case"width":case"height":this.callBase(e),this._dimensionChanged();break;case"provider":this._suppressAsyncAction=!0,this._invalidate();break;case"key":l.log("W1001");break;case"bounds":this._queueAsyncAction("updateBounds");break;case"center":this._queueAsyncAction("updateCenter");break;case"zoom":this._queueAsyncAction("updateZoom");break;case"type":this._queueAsyncAction("updateMapType");break;case"controls":this._queueAsyncAction("updateControls",this._rendered.markers,this._rendered.routes);break;case"autoAdjust":this._queueAsyncAction("adjustViewport");break;case"markers":case"routes":this._checkOption(t);var i=this._rendered[t];this._saveRendered(t),this._queueAsyncAction("update"+d.titleize(t),n?n.removed:i,n?n.added:this._rendered[t]).then(function(e){n&&n.resolve(e)});break;case"markerIconSrc":this._queueAsyncAction("updateMarkers",this._rendered.markers,this._rendered.markers);break;case"onReady":case"onUpdated":case"onMarkerAdded":case"onMarkerRemoved":case"onRouteAdded":case"onRouteRemoved":case"onClick":break;default:this.callBase.apply(this,arguments)}},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._queueAsyncAction("updateDimensions")},_queueAsyncAction:function(e){var t=[].slice.call(arguments).slice(1),n=this._suppressAsyncAction;return this._lastAsyncAction=this._lastAsyncAction.then(function(){return!this._provider||n?a.resolve():this._provider[e].apply(this._provider,t).then(function(e){e=v(e);var t=e[0];return t&&this._triggerReadyAction(),e[1]}.bind(this))}.bind(this)),this._lastAsyncAction},_triggerReadyAction:function(){this._createActionByOption("onReady")({originalMap:this._provider.map()})},_triggerUpdateAction:function(){this._createActionByOption("onUpdated")()},setOptionSilent:function(e,t){this._setOptionSilent(e,t)},addMarker:function(e){return this._addFunction("markers",e)},removeMarker:function(e){return this._removeFunction("markers",e)},addRoute:function(e){return this._addFunction("routes",e)},removeRoute:function(e){return this._removeFunction("routes",e)},_addFunction:function(e,t){var n=this.option(e),i=v(t);return n.push.apply(n,i),this._partialArrayOptionChange(e,n,i,[])},_removeFunction:function(e,t){var n=this.option(e),i=v(t);return h(i,function(t,o){var a=g(o)?o:f(o,n);if(a===-1)throw l.log("E1021",d.titleize(e.substring(0,e.length-1)),o);var r=n.splice(a,1)[0];i.splice(t,1,r)}),this._partialArrayOptionChange(e,n,[],i)},_partialArrayOptionChange:function(e,t,n,i){return r(new a(function(o){this._optionChangeBag={resolve:o,added:n,removed:i},this.option(e,t)}.bind(this)).then(function(e){return e&&1===e.length?e[0]:e}),this)}});s("dxMap",k),e.exports=k},function(e,t,n){var i=n(3).each,o=n(5),a=n(82),r=n(321),s=n(90),l=n(19),u="https://maps.google.com/maps/api/staticmap?",c=r.inherit({_locationToString:function(e){var t=this._getLatLng(e);return t?t.lat+","+t.lng:e.toString().replace(/ /g,"+")},_renderImpl:function(){return this._updateMap()},updateDimensions:function(){return this._updateMap()},updateMapType:function(){return this._updateMap()},updateBounds:function(){return a.resolve()},updateCenter:function(){return this._updateMap()},updateZoom:function(){return this._updateMap()},updateControls:function(){return a.resolve()},addMarkers:function(e){var t=this;return this._updateMap().then(function(n){return i(e,function(e,n){t._fireMarkerAddedAction({options:n})}),n})},removeMarkers:function(e){var t=this;return this._updateMap().then(function(n){return i(e,function(e,n){t._fireMarkerRemovedAction({options:n})}),n})},adjustViewport:function(){return a.resolve()},addRoutes:function(e){var t=this;return this._updateMap().then(function(n){return i(e,function(e,n){t._fireRouteAddedAction({options:n})}),n})},removeRoutes:function(e){var t=this;return this._updateMap().then(function(n){return i(e,function(e,n){t._fireRouteRemovedAction({options:n})}),n})},clean:function(){return this._$container.css("backgroundImage","none"),o.off(this._$container,this._addEventNamespace(l.name)),a.resolve()},mapRendered:function(){return!0},_updateMap:function(){var e=this._keyOption("googleStatic"),t=this._$container,n=["sensor=false","size="+Math.round(t.width())+"x"+Math.round(t.height()),"maptype="+this._option("type"),"center="+this._locationToString(this._option("center")),"zoom="+this._option("zoom"),this._markersSubstring()];n.push.apply(n,this._routeSubstrings()),e&&n.push("key="+e);var i=u+n.join("&");return this._$container.css("background",'url("'+i+'") no-repeat 0 0'),this._attachClickEvent(),a.resolve(!0)},_markersSubstring:function(){var e=this,t=[],n=this._option("markerIconSrc");return n&&t.push("icon:"+n),i(this._option("markers"),function(n,i){t.push(e._locationToString(i.location))}),"markers="+t.join("|")},_routeSubstrings:function(){var e=this,t=[];return i(this._option("routes"),function(n,o){var a=new s(o.color||e._defaultRouteColor()).toHex().replace("#","0x"),r=Math.round(255*(o.opacity||e._defaultRouteOpacity())).toString(16),l=o.weight||e._defaultRouteWeight(),u=[];i(o.locations,function(t,n){u.push(e._locationToString(n))}),t.push("path=color:"+a+r+"|weight:"+l+"|"+u.join("|"))}),t},_attachClickEvent:function(){var e=this,t=this._addEventNamespace(l.name);o.off(this._$container,t),o.on(this._$container,t,function(t){e._fireClickAction({event:t})})}});e.exports=c},function(e,t,n){var i,o,a=n(2),r=n(7).getWindow(),s=n(4).noop,l=n(16),u=n(82),c=n(0).extend,d=n(3).map,h=n(322),p=n(17),f=n(90),g=n(57),_=n(1).isDefined,m="_googleScriptReady",v="https://maps.googleapis.com/maps/api/js?callback="+m,y="gm-style-iw",x=function(){i=function(e){this._position=e.position,this._offset=e.offset,this._$overlayContainer=a("<div>").css({position:"absolute",display:"none",cursor:"pointer"}).append(e.html),this.setMap(e.map)},i.prototype=new google.maps.OverlayView,i.prototype.onAdd=function(){var e=a(this.getPanes().overlayMouseTarget);e.append(this._$overlayContainer),this._clickListener=google.maps.event.addDomListener(this._$overlayContainer.get(0),"click",function(e){google.maps.event.trigger(this,"click"),e.preventDefault()}.bind(this)),this.draw()},i.prototype.onRemove=function(){google.maps.event.removeListener(this._clickListener),this._$overlayContainer.remove()},i.prototype.draw=function(){var e=this.getProjection().fromLatLngToDivPixel(this._position);this._$overlayContainer.css({left:e.x+this._offset.left,top:e.y+this._offset.top,display:"block"})}},b=function(){return r.google&&r.google.maps},w=h.inherit({_mapType:function(e){var t={hybrid:google.maps.MapTypeId.HYBRID,roadmap:google.maps.MapTypeId.ROADMAP,satellite:google.maps.MapTypeId.SATELLITE};return t[e]||t.hybrid},_movementMode:function(e){var t={driving:google.maps.TravelMode.DRIVING,walking:google.maps.TravelMode.WALKING};return t[e]||t.driving},_resolveLocation:function(e){return new u(function(t){var n=this._getLatLng(e);n?t(new google.maps.LatLng(n.lat,n.lng)):this._geocodeLocation(e).then(function(e){t(e)})}.bind(this))},_geocodedLocations:{},_geocodeLocationImpl:function(e){return new u(function(t){if(!_(e))return void t(new google.maps.LatLng(0,0));var n=new google.maps.Geocoder;n.geocode({address:e},function(e,n){n===google.maps.GeocoderStatus.OK?t(e[0].geometry.location):(p.log("W1006",n),t(new google.maps.LatLng(0,0)))})})},_normalizeLocation:function(e){return{lat:e.lat(),lng:e.lng()}},_normalizeLocationRect:function(e){return{northEast:this._normalizeLocation(e.getNorthEast()),southWest:this._normalizeLocation(e.getSouthWest())}},_loadImpl:function(){return new u(function(e){b()?e():(o||(o=this._loadMapScript()),o.then(function(){return b()?void e():void this._loadMapScript().then(e)}.bind(this)))}.bind(this)).then(function(){x()})},_loadMapScript:function(){return new u(function(e){var t=this._keyOption("google");r[m]=e,g.sendRequest({url:v+(t?"&key="+t:""),dataType:"script"})}.bind(this)).then(function(){try{delete r[m]}catch(e){r[m]=void 0}})},_init:function(){return new u(function(e){this._resolveLocation(this._option("center")).then(function(t){var n=this._option("controls");this._map=new google.maps.Map(this._$container[0],{zoom:this._option("zoom"),center:t,disableDefaultUI:!n});var i=google.maps.event.addListener(this._map,"idle",function(){e(i)})}.bind(this))}.bind(this)).then(function(e){google.maps.event.removeListener(e)})},_attachHandlers:function(){this._boundsChangeListener=google.maps.event.addListener(this._map,"bounds_changed",this._boundsChangeHandler.bind(this)),
84this._clickListener=google.maps.event.addListener(this._map,"click",this._clickActionHandler.bind(this))},_boundsChangeHandler:function(){var e=this._map.getBounds();this._option("bounds",this._normalizeLocationRect(e));var t=this._map.getCenter();this._option("center",this._normalizeLocation(t)),this._preventZoomChangeEvent||this._option("zoom",this._map.getZoom())},_clickActionHandler:function(e){this._fireClickAction({location:this._normalizeLocation(e.latLng)})},updateDimensions:function(){var e=this._option("center");return google.maps.event.trigger(this._map,"resize"),this._option("center",e),this.updateCenter()},updateMapType:function(){return this._map.setMapTypeId(this._mapType(this._option("type"))),u.resolve()},updateBounds:function(){return u.all([this._resolveLocation(this._option("bounds.northEast")),this._resolveLocation(this._option("bounds.southWest"))]).then(function(e){var t=new google.maps.LatLngBounds;t.extend(e[0]),t.extend(e[1]),this._map.fitBounds(t)}.bind(this))},updateCenter:function(){return this._resolveLocation(this._option("center")).then(function(e){this._map.setCenter(e),this._option("center",this._normalizeLocation(e))}.bind(this))},updateZoom:function(){return this._map.setZoom(this._option("zoom")),u.resolve()},updateControls:function(){var e=this._option("controls");return this._map.setOptions({disableDefaultUI:!e}),u.resolve()},isEventsCanceled:function(e){var t=this._map&&this._map.get("gestureHandling"),n=a(e.target).closest("."+y).length>0;return!(n||"desktop"!==l.real().deviceType&&"cooperative"===t)&&this.callBase()},_renderMarker:function(e){return this._resolveLocation(e.location).then(function(t){var n;n=e.html?new i({map:this._map,position:t,html:e.html,offset:c({top:0,left:0},e.htmlOffset)}):new google.maps.Marker({position:t,map:this._map,icon:e.iconSrc||this._option("markerIconSrc")});var o,a=this._renderTooltip(n,e.tooltip);if(e.onClick||e.tooltip){var r=this._mapWidget._createAction(e.onClick||s),l=this._normalizeLocation(t);o=google.maps.event.addListener(n,"click",function(){r({location:l}),a&&a.open(this._map,n)}.bind(this))}return{location:t,marker:n,listener:o}}.bind(this))},_renderTooltip:function(e,t){if(t){t=this._parseTooltipOptions(t);var n=new google.maps.InfoWindow({content:t.text});return t.visible&&n.open(this._map,e),n}},_destroyMarker:function(e){e.marker.setMap(null),e.listener&&google.maps.event.removeListener(e.listener)},_renderRoute:function(e){return u.all(d(e.locations,function(e){return this._resolveLocation(e)}.bind(this))).then(function(t){return new u(function(n){var i=t.shift(),o=t.pop(),a=d(t,function(e){return{location:e,stopover:!0}}),r={origin:i,destination:o,waypoints:a,optimizeWaypoints:!0,travelMode:this._movementMode(e.mode)};(new google.maps.DirectionsService).route(r,function(t,i){if(i===google.maps.DirectionsStatus.OK){var o=new f(e.color||this._defaultRouteColor()).toHex(),a={directions:t,map:this._map,suppressMarkers:!0,preserveViewport:!0,polylineOptions:{strokeWeight:e.weight||this._defaultRouteWeight(),strokeOpacity:e.opacity||this._defaultRouteOpacity(),strokeColor:o}},r=new google.maps.DirectionsRenderer(a),s=t.routes[0].bounds;n({instance:r,northEast:s.getNorthEast(),southWest:s.getSouthWest()})}else p.log("W1006",i),n({instance:new google.maps.DirectionsRenderer({})})}.bind(this))}.bind(this))}.bind(this))},_destroyRoute:function(e){e.instance.setMap(null)},_fitBounds:function(){if(this._updateBounds(),this._bounds&&this._option("autoAdjust")){var e=this._map.getZoom();this._preventZoomChangeEvent=!0,this._map.fitBounds(this._bounds),this._boundsChangeHandler();var t=this._map.getZoom();e<t?this._map.setZoom(e):this._option("zoom",t),delete this._preventZoomChangeEvent}return u.resolve()},_extendBounds:function(e){this._bounds?this._bounds.extend(e):(this._bounds=new google.maps.LatLngBounds,this._bounds.extend(e))},clean:function(){return this._map&&(google.maps.event.removeListener(this._boundsChangeListener),google.maps.event.removeListener(this._clickListener),this._clearMarkers(),this._clearRoutes(),delete this._map,this._$container.empty()),u.resolve()}});e.exports=w},function(e,t,n){var i,o=n(4).noop,a=n(7).getWindow(),r=n(82),s=n(0).extend,l=n(17),u=n(3),c=n(322),d=n(90),h=n(57),p=n(1).isDefined,f="_bingScriptReady",g="https://www.bing.com/api/maps/mapcontrol?callback="+f,_=13,m="AhuxC0dQ1DBTNo8L-H9ToVMQStmizZzBJdraTSgCzDSWPsA1Qd8uIvFSflzxdaLH",v=1e-16,y=function(){return a.Microsoft&&a.Microsoft.Maps},x=c.inherit({_mapType:function(e){var t={roadmap:Microsoft.Maps.MapTypeId.road,hybrid:Microsoft.Maps.MapTypeId.aerial,satellite:Microsoft.Maps.MapTypeId.aerial};return t[e]||t.road},_movementMode:function(e){var t={driving:Microsoft.Maps.Directions.RouteMode.driving,walking:Microsoft.Maps.Directions.RouteMode.walking};return t[e]||t.driving},_resolveLocation:function(e){return new r(function(t){var n=this._getLatLng(e);n?t(new Microsoft.Maps.Location(n.lat,n.lng)):this._geocodeLocation(e).then(function(e){t(e)})}.bind(this))},_geocodedLocations:{},_geocodeLocationImpl:function(e){return new r(function(t){if(!p(e))return void t(new Microsoft.Maps.Location(0,0));var n=new Microsoft.Maps.Search.SearchManager(this._map),i={where:e,count:1,callback:function(e){var n=e.results[0];if(n){var i=e.results[0].location;t(new Microsoft.Maps.Location(i.latitude,i.longitude))}else t(new Microsoft.Maps.Location(0,0))}};n.geocode(i)}.bind(this))},_normalizeLocation:function(e){return{lat:e.latitude,lng:e.longitude}},_normalizeLocationRect:function(e){var t=this._normalizeLocation(e.getNorthwest()),n=this._normalizeLocation(e.getSoutheast());return{northEast:{lat:t.lat,lng:n.lng},southWest:{lat:n.lat,lng:t.lng}}},_loadImpl:function(){return new r(function(e){y()?e():(i||(i=this._loadMapScript()),i.then(function(){return y()?void e():void this._loadMapScript().then(e)}.bind(this)))}.bind(this)).then(function(){return r.all([new r(function(e){Microsoft.Maps.loadModule("Microsoft.Maps.Search",{callback:e})}),new r(function(e){Microsoft.Maps.loadModule("Microsoft.Maps.Directions",{callback:e})})])})},_loadMapScript:function(){return new r(function(e){a[f]=e,h.sendRequest({url:g,dataType:"script"})}).then(function(){try{delete a[f]}catch(e){a[f]=void 0}})},_init:function(){return this._createMap(),r.resolve()},_createMap:function(){var e=this._option("controls");this._map=new Microsoft.Maps.Map(this._$container[0],{credentials:this._keyOption("bing")||m,zoom:this._option("zoom"),showDashboard:e,showMapTypeSelector:e,showScalebar:e})},_attachHandlers:function(){this._providerViewChangeHandler=Microsoft.Maps.Events.addHandler(this._map,"viewchange",this._viewChangeHandler.bind(this)),this._providerClickHandler=Microsoft.Maps.Events.addHandler(this._map,"click",this._clickActionHandler.bind(this))},_viewChangeHandler:function(){var e=this._map.getBounds();this._option("bounds",this._normalizeLocationRect(e));var t=this._map.getCenter();this._option("center",this._normalizeLocation(t)),this._preventZoomChangeEvent||this._option("zoom",this._map.getZoom())},_clickActionHandler:function(e){"map"===e.targetType&&this._fireClickAction({location:this._normalizeLocation(e.location)})},updateDimensions:function(){var e=this._$container;return this._map.setOptions({width:e.width(),height:e.height()}),r.resolve()},updateMapType:function(){var e=this._option("type"),t=Microsoft.Maps.LabelOverlay;return this._map.setView({animate:!1,mapTypeId:this._mapType(e),labelOverlay:"satellite"===e?t.hidden:t.visible}),r.resolve()},updateBounds:function(){return r.all([this._resolveLocation(this._option("bounds.northEast")),this._resolveLocation(this._option("bounds.southWest"))]).then(function(e){var t=new Microsoft.Maps.LocationRect.fromLocations(e[0],e[1]);this._map.setView({animate:!1,bounds:t})}.bind(this))},updateCenter:function(){return this._resolveLocation(this._option("center")).then(function(e){this._map.setView({animate:!1,center:e})}.bind(this))},updateZoom:function(){return this._map.setView({animate:!1,zoom:this._option("zoom")}),r.resolve()},updateControls:function(){return this.clean(),this.render.apply(this,arguments)},_renderMarker:function(e){return this._resolveLocation(e.location).then(function(t){var n={icon:e.iconSrc||this._option("markerIconSrc")};if(e.html){s(n,{htmlContent:e.html,width:null,height:null});var i=e.htmlOffset;i&&(n.anchor=new Microsoft.Maps.Point((-i.left),(-i.top)))}var a=new Microsoft.Maps.Pushpin(t,n);this._map.entities.push(a);var r,l=this._renderTooltip(t,e.tooltip);if(e.onClick||e.tooltip){var u=this._mapWidget._createAction(e.onClick||o),c=this._normalizeLocation(t);r=Microsoft.Maps.Events.addHandler(a,"click",function(){u({location:c}),l&&l.setOptions({visible:!0})})}return{location:t,marker:a,infobox:l,handler:r}}.bind(this))},_renderTooltip:function(e,t){if(t){t=this._parseTooltipOptions(t);var n=new Microsoft.Maps.Infobox(e,{description:t.text,offset:new Microsoft.Maps.Point(0,_),visible:t.visible});return n.setMap(this._map),n}},_destroyMarker:function(e){this._map.entities.remove(e.marker),e.infobox&&e.infobox.setMap(null),e.handler&&Microsoft.Maps.Events.removeHandler(e.handler)},_renderRoute:function(e){return r.all(u.map(e.locations,function(e){return this._resolveLocation(e)}.bind(this))).then(function(t){return new r(function(n){var i=new Microsoft.Maps.Directions.DirectionsManager(this._map),o=new d(e.color||this._defaultRouteColor()).toHex(),a=new Microsoft.Maps.Color.fromHex(o);a.a=255*(e.opacity||this._defaultRouteOpacity()),i.setRenderOptions({autoUpdateMapView:!1,displayRouteSelector:!1,waypointPushpinOptions:{visible:!1},drivingPolylineOptions:{strokeColor:a,strokeThickness:e.weight||this._defaultRouteWeight()},walkingPolylineOptions:{strokeColor:a,strokeThickness:e.weight||this._defaultRouteWeight()}}),i.setRequestOptions({routeMode:this._movementMode(e.mode),routeDraggable:!1}),u.each(t,function(e,t){var n=new Microsoft.Maps.Directions.Waypoint({location:t});i.addWaypoint(n)});var r=[];r.push(Microsoft.Maps.Events.addHandler(i,"directionsUpdated",function(e){for(;r.length;)Microsoft.Maps.Events.removeHandler(r.pop());var t=e.routeSummary[0];n({instance:i,northEast:t.northEast,southWest:t.southWest})})),r.push(Microsoft.Maps.Events.addHandler(i,"directionsError",function(e){for(;r.length;)Microsoft.Maps.Events.removeHandler(r.pop());var t="RouteResponseCode: "+e.responseCode+" - "+e.message;l.log("W1006",t),n({instance:i})})),i.calculateDirections()}.bind(this))}.bind(this))},_destroyRoute:function(e){e.instance.dispose()},_fitBounds:function(){if(this._updateBounds(),this._bounds&&this._option("autoAdjust")){var e=this._map.getZoom();this._preventZoomChangeEvent=!0;var t=this._bounds.clone();t.height=1.1*t.height,t.width=1.1*t.width,this._map.setView({animate:!1,bounds:t,zoom:e});var n=this._map.getZoom();e<n?this._map.setView({animate:!1,zoom:e}):this._option("zoom",n),delete this._preventZoomChangeEvent}return r.resolve()},_extendBounds:function(e){this._bounds?this._bounds=new Microsoft.Maps.LocationRect.fromLocations(this._bounds.getNorthwest(),this._bounds.getSoutheast(),e):this._bounds=new Microsoft.Maps.LocationRect(e,v,v)},clean:function(){return this._map&&(Microsoft.Maps.Events.removeHandler(this._providerViewChangeHandler),Microsoft.Maps.Events.removeHandler(this._providerClickHandler),this._clearMarkers(),this._clearRoutes(),this._map.dispose()),r.resolve()}});e.exports=x},function(e,t,n){var i=n(9),o=n(0).extend,a=n(590),r=n(198),s="dx-navbar",l="dx-item-content",u="dx-nav-item",c="dx-nav-item-content",d=r.inherit({_getDefaultOptions:function(){return o(this.callBase(),{scrollingEnabled:!1})},_render:function(){this.callBase(),this.$element().addClass(s)},_postprocessRenderItem:function(e){this.callBase(e);var t=e.itemElement,n=e.itemData;t.addClass(u),t.find("."+l).addClass(c),n.icon||t.addClass("dx-navbar-text-item")}});d.ItemClass=a,i("dxNavBar",d),e.exports=d},function(e,t,n){var i=n(316),o="dx-tabs-item-badge",a="dx-navbar-item-badge",r=i.inherit({_renderBadge:function(e){this.callBase(e),this._$element.children("."+o).removeClass(o).addClass(a)}});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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(0),h=n(16),p=i(h),f=n(72),g=i(f),_=n(9),m=i(_),v=n(54),y=i(v),x=n(244),b=i(x),w=n(49),C=i(w),k="dx-radiobutton-checked",S="dx-radiobutton",I="dx-radiobutton-icon-checked",T="dx-radiobutton-icon",D="dx-radiobutton-icon-dot",E="dx-radiogroup-horizontal",A="dx-radiogroup-vertical",O="dx-radio-value-container",B="dx-radiogroup",P=100,M=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_focusTarget",value:function(){return this.$element().parent()}},{key:"_getDefaultOptions",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this);return(0,d.extend)(e,b.default._dataExpressionDefaultOptions(),{_itemAttributes:{role:"radio"}})}},{key:"_initMarkup",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this.itemElements().addClass(S)}},{key:"_keyboardEventBindingTarget",value:function(){return this._focusTarget()}},{key:"_postprocessRenderItem",value:function(e){var n=e.itemData.html,i=e.itemElement;if(!n){var o=(0,c.default)("<div>").addClass(T);(0,c.default)("<div>").addClass(D).appendTo(o);var a=(0,c.default)("<div>").append(o).addClass(O);(0,c.default)(i).prepend(a)}l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_postprocessRenderItem",this).call(this,e)}},{key:"_processSelectableItem",value:function(e,n){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_processSelectableItem",this).call(this,e,n),e.toggleClass(k,n).find("."+T).first().toggleClass(I,n),this.setAria("checked",n,e)}},{key:"_refreshContent",value:function(){this._prepareContent(),this._renderContent()}},{key:"_supportedKeys",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_supportedKeys",this).call(this);return(0,d.extend)({},e,{enter:function(t){return t.preventDefault(),e.enter.apply(this,arguments)},space:function(t){return t.preventDefault(),e.space.apply(this,arguments)}})}},{key:"itemElements",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"itemElements",this).call(this);return e.not(e.find(this._itemSelector()))}}]),t}(y.default),R=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_clean",value:function(){delete this._inkRipple,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_clean",this).call(this)}},{key:"_dataSourceOptions",value:function(){return{paginate:!1}}},{key:"_defaultOptionsRules",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_defaultOptionsRules",this).call(this);return e.concat([{device:{tablet:!0},options:{layout:"horizontal"}},{device:function(){return"desktop"===p.default.real().deviceType&&!p.default.isSimulator()},options:{focusStateEnabled:!0}}])}},{key:"_fireContentReadyAction",value:function(e){e&&l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_fireContentReadyAction",this).call(this)}},{key:"_focusTarget",value:function(){return this.$element()}},{key:"_getAriaTarget",value:function(){return this.$element()}},{key:"_getDefaultOptions",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this);return(0,d.extend)(e,(0,d.extend)(b.default._dataExpressionDefaultOptions(),{hoverStateEnabled:!0,activeStateEnabled:!0,layout:"vertical",useInkRipple:!1}))}},{key:"_getItemValue",value:function(e){return this._valueGetter?this._valueGetter(e):e.text}},{key:"_getSubmitElement",value:function(){return this._$submitElement}},{key:"_init",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this._activeStateUnit="."+S,this._feedbackHideTimeout=P,this._initDataExpressions()}},{key:"_initMarkup",value:function(){this.$element().addClass(B),this._renderSubmitElement(),this.setAria("role","radiogroup"),this._renderRadios(),this.option("useInkRipple")&&this._renderInkRipple(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"_itemClickHandler",value:function(e){var t=e.itemElement,n=e.event,i=e.itemData;if(this.itemElements().is(t)){var o=this._getItemValue(i);o!==this.option("value")&&(this._saveValueChangeEvent(n),this.option("value",o))}}},{key:"_optionChanged",value:function(e){var n=e.name,i=e.value;switch(this._dataExpressionOptionChanged(e),n){case"useInkRipple":this._invalidate();break;case"focusStateEnabled":case"accessKey":case"tabIndex":this._setCollectionWidgetOption(n,i);break;case"disabled":l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e),this._setCollectionWidgetOption(n,i);break;case"dataSource":this._setCollectionWidgetOption("dataSource",this._dataSource);break;case"valueExpr":this._setCollectionWidgetOption("keyExpr",this._getCollectionKeyExpr());break;case"value":this._setCollectionWidgetOption("selectedItemKeys",[i]),this._setSubmitValue(i),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e);break;case"items":case"itemTemplate":case"displayExpr":break;case"layout":this._renderLayout(),this._updateItemsSize();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_render",value:function(){this._renderLayout(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_render",this).call(this),this._updateItemsSize()}},{key:"_renderInkRipple",value:function(){this._inkRipple=g.default.render({waveSizeCoefficient:3.3,useHoldAnimation:!1,isCentered:!0})}},{key:"_renderLayout",value:function(){var e=this.option("layout"),t=this.$element();t.toggleClass(A,"vertical"===e),t.toggleClass(E,"horizontal"===e)}},{key:"_renderRadios",value:function(){var e=this,t=(0,c.default)("<div>").appendTo(this.$element());this._radios=this._createComponent(t,M,{displayExpr:this.option("displayExpr"),accessKey:this.option("accessKey"),dataSource:this._dataSource,focusStateEnabled:this.option("focusStateEnabled"),itemTemplate:this.option("itemTemplate"),keyExpr:this._getCollectionKeyExpr(),noDataText:"",onContentReady:function(){return e._fireContentReadyAction(!0)},onItemClick:this._itemClickHandler.bind(this),scrollingEnabled:!1,selectionByClick:!1,selectionMode:"single",selectedItemKeys:[this.option("value")],tabIndex:this.option("tabIndex")})}},{key:"_renderSubmitElement",value:function(){this._$submitElement=(0,c.default)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue()}},{key:"_setOptionsByReference",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setOptionsByReference",this).call(this),(0,d.extend)(this._optionsByReference,{value:!0})}},{key:"_setSubmitValue",value:function(e){e=e||this.option("value");var t="this"===this.option("valueExpr")?this._displayGetter(e):e;this._$submitElement.val(t)}},{key:"_setCollectionWidgetOption",value:function(){this._setWidgetOption("_radios",arguments)}},{key:"_toggleActiveState",value:function(e,n,i){if(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_toggleActiveState",this).call(this,e,n,i),this._inkRipple){var o={element:e.find("."+T),event:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}}},{key:"_updateItemsSize",value:function(){if("horizontal"===this.option("layout"))this.itemElements().css("height","auto");else{var e=this.option("items").length;this.itemElements().css("height",100/e+"%")}}},{key:"focus",value:function(){this._radios&&this._radios.focus()}},{key:"itemElements",value:function(){return this._radios.itemElements()}}]),t}(C.default);R.include(b.default),(0,m.default)("dxRadioGroup",R),e.exports=R},function(e,t,n){var i=n(2),o=n(5),a=n(324),r=n(325),s=n(9),l=n(0).extend,u=n(4).applyServerDecimalSeparator,c=n(8),d=n(14),h="dx-rangeslider",p=h+"-start-handle",f=h+"-end-handle",g=a.inherit({_supportedKeys:function(){var e=this.option("rtlEnabled"),t=this,n=function(e,n){t.option("start")===t.option("end")&&(t._capturedHandle=n,e.target=t._capturedHandle,o.trigger(t._capturedHandle,"focus"))},a=function(n,o,a){var r=i(n.target).hasClass(p),s=r?"start":"end",l=t.option(s);o=t._valueStep(o),l+=a*(e?-o:o),t.option(s,l)},r=function(i,o){n(i,e?t._$handleStart:t._$handleEnd),a(i,o,1)},s=function(i,o){n(i,e?t._$handleEnd:t._$handleStart),a(i,o,-1)};return l(this.callBase(),{leftArrow:function(e){e.preventDefault(),e.stopPropagation(),s(e,this.option("step"))},rightArrow:function(e){e.preventDefault(),e.stopPropagation(),r(e,this.option("step"))},pageUp:function(e){e.preventDefault(),e.stopPropagation(),r(e,this.option("step")*this.option("keyStep"))},pageDown:function(e){e.preventDefault(),e.stopPropagation(),s(e,this.option("step")*this.option("keyStep"))},home:function(e){e.preventDefault(),e.stopPropagation();var t=i(e.target).hasClass(p),n=t?"start":"end",o=t?"min":"start",a=this.option(o);this.option(n,a)},end:function(e){e.preventDefault(),e.stopPropagation();var t=i(e.target).hasClass(p),n=t?"start":"end",o=t?"end":"max",a=this.option(o);this.option(n,a)}})},_getDefaultOptions:function(){return l(this.callBase(),{start:40,end:60,value:[40,60],startName:"",endName:""})},_renderSubmitElement:function(){var e=this.$element();this._$submitStartElement=i("<input>").attr("type","hidden").attr("name",this.option("startName")).appendTo(e),this._$submitEndElement=i("<input>").attr("type","hidden").attr("name",this.option("endName")).appendTo(e)},_initOptions:function(e){this.callBase(e);var t=this.initialOption("value"),n=this.option("value");n[0]===t[0]&&n[1]===t[1]?this.option("value",[this.option("start"),this.option("end")]):this.option({start:n[0],end:n[1]})},_initMarkup:function(){this.$element().addClass(h),this.callBase()},_renderContentImpl:function(){this._callHandlerMethod("repaint"),this.callBase()},_renderHandle:function(){this._$handleStart=this._renderHandleImpl(this.option("start"),this._$handleStart).addClass(p),this._$handleEnd=this._renderHandleImpl(this.option("end"),this._$handleEnd).addClass(f),this._updateHandleAriaLabels()},_startHandler:function(e){var t=e.event,n=this._$range,i=n.width(),o=c.eventData(t).x-this._$bar.offset().left,a=n.position().left,r=n.position().left+i,s=this.option("rtlEnabled"),l=(s?-1:1)*((a+r)/2-o)>0;this._capturedHandle=l?this._$handleStart:this._$handleEnd,this.callBase(e)},_updateHandleAriaLabels:function(){this.setAria("label",d.getFormatter("dxRangeSlider-ariaFrom")(this.option("dxRangeSlider-ariaFrom")),this._$handleStart),this.setAria("label",d.getFormatter("dxRangeSlider-ariaTill")(this.option("dxRangeSlider-ariaTill")),this._$handleEnd)},_activeHandle:function(){return this._capturedHandle},_updateHandlePosition:function(e){var t=this.option("rtlEnabled"),n=t?-1:1,i=this.option("max"),a=this.option("min"),s=this._startOffset+n*e.event.offset/this._swipePixelRatio();s=s.toPrecision(12);var l=s*(i-a)+a;this._updateSelectedRangePosition(s,s),r.getInstance(this._activeHandle()).fitTooltipPosition,this._changeValueOnSwipe(s);var u,c=this.option("start"),d=this.option("end");c===d&&(u=l<c?this._$handleStart:this._$handleEnd,o.trigger(u,"focus"),u&&u!==this._capturedHandle&&(this._updateSelectedRangePosition((c-a)/(i-a),(d-a)/(i-a)),this._toggleActiveState(this._activeHandle(),!1),this._toggleActiveState(u,!0),this._capturedHandle=u),this._updateSelectedRangePosition(s,s),this._changeValueOnSwipe(s))},_updateSelectedRangePosition:function(e,t){var n=this.option("rtlEnabled"),i=this._capturedHandle===this._$handleStart&&n||this._capturedHandle===this._$handleEnd&&!n,o=i?"right":"left";n^i?this._$range.css(o,100-100*t+"%"):this._$range.css(o,100*e+"%")},_setValueOnSwipe:function(e){var t=this._capturedHandle===this._$handleStart?"start":"end",n=this.option("start"),i=this.option("end"),o=this.option("max"),a=this.option("min");n=Math.min(Math.max(n,a),o),i=Math.min(Math.max(i,a),o),"start"===t?n=e>i?i:e:i=e<n?n:e,this.option("value",[n,i])},_renderValue:function(){var e=this.option("start"),t=this.option("end"),n=this.option("min"),i=this.option("max"),o=this.option("rtlEnabled");e=Math.max(n,Math.min(e,i)),t=Math.max(e,Math.min(t,i)),this.option("start",e),this.option("end",t),this._$submitStartElement.val(u(e)),this._$submitEndElement.val(u(t));var a=i===n?0:(e-n)/(i-n),s=i===n?0:(t-n)/(i-n),l=parseFloat((100*a).toPrecision(12))+"%",c=parseFloat((100*(1-s)).toPrecision(12))+"%";!this._needPreventAnimation&&this._setRangeStyles({right:o?l:c,left:o?c:l}),r.getInstance(this._$handleStart).option("value",e),r.getInstance(this._$handleEnd).option("value",t)},_callHandlerMethod:function(e,t){r.getInstance(this._$handleStart)[e](t),r.getInstance(this._$handleEnd)[e](t)},_setValueOption:function(){var e=this.option("start"),t=this.option("end");this.option("value",[e,t])},_optionChanged:function(e){switch(e.name){case"value":this.option({start:e.value[0],end:e.value[1]});break;case"start":case"end":this._setValueOption(),this._renderValue();var t=this.option("start"),n=this.option("end");this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})({start:t,end:n,value:[t,n],event:this._valueChangeEventInstance}),this._saveValueChangeEvent(void 0);break;case"startName":this._$submitStartElement.attr("name",e.value);break;case"endName":this._$submitEndElement.attr("name",e.value);break;case"name":break;default:this.callBase(e)}}});s("dxRangeSlider",g),e.exports=g},function(e,t,n){var i=n(2),o=n(5),a=n(12),r=n(51),s=n(16),l=n(0).extend,u=n(4).applyServerDecimalSeparator,c=n(9),d=n(248),h=n(8),p=n(24),f=n(129),g=n(325),_=n(72),m=n(19),v=n(158),y=n(31),x=n(6).Deferred,b="dx-slider",w="dx-slider-wrapper",C=".dx-slider-handle",k="dx-slider-bar",S="dx-slider-range",I="dx-slider-range-visible",T="dx-slider-label",D="dx-slider-label-position-",E="dx-slider-tooltip-position-",A="dx-invalid-message-visible",O="Validation",B=d.inherit({_activeStateUnit:C,_supportedKeys:function(){var e=this.option("rtlEnabled"),t=this,n=function(e,n){e=t._valueStep(e);var i=t.option("step"),o=t.option("value"),a=(o-t.option("min"))%i,r=n?o-e+(a?i-a:0):o+e-a,s=t.option("min"),l=t.option("max");return r<s?r=s:r>l&&(r=l),r},i=function(i){t.option("value",n(i,e))},o=function(i){t.option("value",n(i,!e))};return l(this.callBase(),{leftArrow:function(e){e.preventDefault(),e.stopPropagation(),o(this.option("step"))},rightArrow:function(e){e.preventDefault(),e.stopPropagation(),i(this.option("step"))},pageUp:function(e){e.preventDefault(),e.stopPropagation(),i(this.option("step")*this.option("keyStep"))},pageDown:function(e){e.preventDefault(),e.stopPropagation(),o(this.option("step")*this.option("keyStep"))},home:function(e){e.preventDefault(),e.stopPropagation();var t=this.option("min");this.option("value",t)},end:function(e){e.preventDefault(),e.stopPropagation();var t=this.option("max");this.option("value",t)}})},_getDefaultOptions:function(){return l(this.callBase(),{value:50,hoverStateEnabled:!0,activeStateEnabled:!0,step:1,showRange:!0,tooltip:{enabled:!1,format:function(e){return e},position:"top",showMode:"onHover"},label:{visible:!1,position:"bottom",format:function(e){return e}},keyStep:1,useInkRipple:!1,validationMessageOffset:y.isMaterial()?{h:18,v:0}:{h:7,v:4},focusStateEnabled:!0})},_toggleValidationMessage:function(e){this.option("isValid")||this.$element().toggleClass(A,e)},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===s.real().deviceType&&!s.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){var e=y.current();return y.isMaterial(e)},options:{useInkRipple:!0}}])},_initMarkup:function(){this.$element().addClass(b),this._renderSubmitElement(),this.option("useInkRipple")&&this._renderInkRipple(),this.callBase(),this._renderLabels(),this._renderStartHandler(),this._renderAriaMinAndMax()},_attachFocusEvents:function(){this.callBase();var e=this.NAME+O,t=h.addNamespace("focusin",e),n=h.addNamespace("focusout",e),i=this._focusTarget();o.on(i,t,this._toggleValidationMessage.bind(this,!0)),o.on(i,n,this._toggleValidationMessage.bind(this,!1))},_detachFocusEvents:function(){this.callBase();var e=this._focusTarget();this._toggleValidationMessage(!1),o.off(e,this.NAME+O)},_render:function(){this.callBase(),this._repaintHandle()},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=_.render({waveSizeCoefficient:.7,isCentered:!0,wavesNumber:2,useHoldAnimation:!1})},_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)}},_visibilityChanged:function(){this.repaint()},_renderWrapper:function(){this.callBase(),this._$wrapper.addClass(w),this._createComponent(this._$wrapper,v,{elastic:!1,immediate:!0,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._itemWidthFunc.bind(this)})},_renderContainer:function(){this.callBase(),this._$bar.addClass(k)},_renderRange:function(){this.callBase(),this._$range.addClass(S),this._renderHandle(),this._renderRangeVisibility()},_renderRangeVisibility:function(){this._$range.toggleClass(I,Boolean(this.option("showRange")))},_renderHandle:function(){this._$handle=this._renderHandleImpl(this.option("value"),this._$handle)},_renderHandleImpl:function(e,t){var n=t||i("<div>").appendTo(this._$range),o=this.option("tooltip.format"),a=this.option("tooltip.enabled"),r=this.option("tooltip.position");return this.$element().toggleClass(E+"bottom",a&&"bottom"===r).toggleClass(E+"top",a&&"top"===r),this._createComponent(n,g,{value:e,tooltipEnabled:a,tooltipPosition:r,tooltipFormat:o,tooltipShowMode:this.option("tooltip.showMode"),tooltipFitIn:this.$element()}),n},_renderAriaMinAndMax:function(){this.setAria({valuemin:this.option("min"),valuemax:this.option("max")},this._$handle)},_hoverStartHandler:function(e){g.getInstance(i(e.currentTarget)).updateTooltip()},_toggleActiveState:function(e,t){this.callBase(e,t),t&&g.getInstance(e).updateTooltip(),this._renderInkWave(e,null,!!t,1)},_toggleFocusClass:function(e,t){if(this.callBase(e,t),!this._disposed){var n=i(t||this._focusTarget());this._renderInkWave(n,null,e,0)}},_renderLabels:function(){if(this.$element().removeClass(D+"bottom").removeClass(D+"top"),this.option("label.visible")){var e=this.option("min"),t=this.option("max"),n=this.option("label.position"),o=this.option("label.format");
85this._$minLabel||(this._$minLabel=i("<div>").addClass(T).appendTo(this._$wrapper)),this._$minLabel.html(r.format(e,o)),this._$maxLabel||(this._$maxLabel=i("<div>").addClass(T).appendTo(this._$wrapper)),this._$maxLabel.html(r.format(t,o)),this.$element().addClass(D+n)}else this._$minLabel&&(this._$minLabel.remove(),delete this._$minLabel),this._$maxLabel&&(this._$maxLabel.remove(),delete this._$maxLabel)},_renderStartHandler:function(){var e=h.addNamespace(p.down,this.NAME),t=h.addNamespace(m.name,this.NAME),n=this._createAction(this._startHandler.bind(this)),i=this.$element();o.off(i,e),o.on(i,e,function(e){h.isMouseEvent(e)&&n({event:e})}),o.off(i,t),o.on(i,t,function(e){var t=this._activeHandle();t&&(o.trigger(t,"focusin"),o.trigger(t,"focus")),n({event:e})}.bind(this))},_itemWidthFunc:function(){return this._itemWidthRatio},_swipeStartHandler:function(e){var t,n,i=this.option("rtlEnabled");h.isTouchEvent(e.event)&&this._createAction(this._startHandler.bind(this))({event:e.event}),this._feedbackDeferred=new x,f.lock(this._feedbackDeferred),this._toggleActiveState(this._activeHandle(),this.option("activeStateEnabled")),this._startOffset=this._currentRatio,t=this._startOffset*this._swipePixelRatio(),n=(1-this._startOffset)*this._swipePixelRatio(),e.event.maxLeftOffset=i?n:t,e.event.maxRightOffset=i?t:n,this._itemWidthRatio=this.$element().width()/this._swipePixelRatio(),this._needPreventAnimation=!0},_swipeEndHandler:function(e){this._feedbackDeferred.resolve(),this._toggleActiveState(this._activeHandle(),!1);var t=this.option("rtlEnabled")?-1:1;delete this._needPreventAnimation,this._changeValueOnSwipe(this._startOffset+t*e.event.targetOffset/this._swipePixelRatio()),delete this._startOffset,this._renderValue()},_activeHandle:function(){return this._$handle},_swipeUpdateHandler:function(e){this._saveValueChangeEvent(e),this._updateHandlePosition(e)},_updateHandlePosition:function(e){var t=this.option("rtlEnabled")?-1:1,n=this._startOffset+t*e.event.offset/this._swipePixelRatio();this._$range.width(100*n+"%"),g.getInstance(this._activeHandle()).fitTooltipPosition,this._changeValueOnSwipe(n)},_swipePixelRatio:function(){var e=this.option("min"),t=this.option("max"),n=this._valueStep(this.option("step"));return(t-e)/n},_valueStep:function(e){return e&&!isNaN(e)||(e=1),e=parseFloat(e.toFixed(5)),0===e&&(e=1e-5),e},_changeValueOnSwipe:function(e){var t=this.option("min"),n=this.option("max"),i=this._valueStep(this.option("step")),o=e*(n-t),a=t+o;if(!(i<0))if(a===n||a===t)this._setValueOnSwipe(a);else{var r=(i+"").split(".")[1],s=(t+"").split(".")[1],l=Math.max(r&&r.length||0,s&&s.length||0),u=Math.round((a-t)/i);a=Number((u*i+t).toFixed(l)),this._setValueOnSwipe(Math.max(Math.min(a,n),t))}},_setValueOnSwipe:function(e){this.option("value",e)},_startHandler:function(e){var t=e.event;this._currentRatio=(h.eventData(t).x-this._$bar.offset().left)/this._$bar.width(),this.option("rtlEnabled")&&(this._currentRatio=1-this._currentRatio),this._saveValueChangeEvent(t),this._changeValueOnSwipe(this._currentRatio)},_renderValue:function(){this.callBase();var e=this.option("value");this._getSubmitElement().val(u(e)),g.getInstance(this._activeHandle()).option("value",e)},_setRangeStyles:function(e){e&&this._$range.css(e)},_callHandlerMethod:function(e,t){g.getInstance(this._$handle)[e](t)},_repaintHandle:function(){this._callHandlerMethod("repaint")},_fitTooltip:function(){this._callHandlerMethod("fitTooltipPosition")},_optionChanged:function(e){switch(e.name){case"visible":this.callBase(e),this._renderHandle(),this._repaintHandle(),a.triggerShownEvent(this.$element());break;case"min":case"max":this._renderValue(),this.callBase(e),this._renderLabels(),this._renderAriaMinAndMax(),this._fitTooltip();break;case"step":this._renderValue();break;case"keyStep":break;case"showRange":this._renderRangeVisibility();break;case"tooltip":this._renderHandle();break;case"label":this._renderLabels();break;case"useInkRipple":this._invalidate();break;default:this.callBase(e)}},_refresh:function(){this._toggleRTLDirection(this.option("rtlEnabled")),this._renderDimensions(),this._renderValue(),this._renderHandle(),this._repaintHandle()},_clean:function(){delete this._inkRipple,this.callBase()}});c("dxSlider",B),e.exports=B},function(e,t,n){e.exports=n(595)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(9),a=i(o),r=n(0),s=n(43),l=i(s),u=n(47),c=i(u),d=n(18),h=i(d),p=n(293),f=n(151),g=c.default.add,_=h.default.inherit({_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{icon:"",onClick:null,visible:!1,activeStateEnabled:!0,hoverStateEnabled:!0,animation:{show:{type:"pop",duration:200,easing:"cubic-bezier(0.4, 0, 0.2, 1)",from:{scale:0,opacity:0},to:{scale:1,opacity:1}},hide:{type:"pop",duration:200,easing:"cubic-bezier(0.4, 0, 0.2, 1)",from:{scale:1,opacity:1},to:{scale:0,opacity:0}}},id:new l.default})},_optionChanged:function(e){switch(e.name){case"onClick":case"icon":(0,p.initAction)(this);break;case"animation":case"id":break;default:this.callBase(e)}},_render:function(){var e=this;(0,f.getSwatchContainer)(this.$element())?(0,p.initAction)(this):g(function(){return(0,p.initAction)(e)})},_dispose:function(){(0,p.disposeAction)(this._options.id),this.callBase()}});(0,a.default)("dxSpeedDialAction",_),e.exports=_},function(e,t,n){var i=n(2),o=n(16),a=n(9),r=n(32),s=n(3),l=n(1).isDefined,u=n(0).extend,c=n(7),d=n(12).getPublicElement,h=n(162),p=n(54),f="dx-tileview",g="dx-tileview-wrapper",_="dx-tile",m="."+_,v="dxTileData",y={horizontal:{itemMainRatio:"widthRatio",itemCrossRatio:"heightRatio",baseItemMainDimension:"baseItemWidth",baseItemCrossDimension:"baseItemHeight",mainDimension:"width",crossDimension:"height",mainPosition:"left",crossPosition:"top"},vertical:{itemMainRatio:"heightRatio",itemCrossRatio:"widthRatio",baseItemMainDimension:"baseItemHeight",baseItemCrossDimension:"baseItemWidth",mainDimension:"height",crossDimension:"width",mainPosition:"top",crossPosition:"left"}},x=p.inherit({_activeStateUnit:m,_getDefaultOptions:function(){return u(this.callBase(),{items:null,direction:"horizontal",hoverStateEnabled:!0,showScrollbar:!1,height:500,baseItemWidth:100,baseItemHeight:100,itemMargin:20,activeStateEnabled:!0,indicateLoading:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===o.real().deviceType&&!o.isSimulator()},options:{focusStateEnabled:!0}}])},_itemClass:function(){return _},_itemDataKey:function(){return v},_itemContainer:function(){return this._$container},_init:function(){this.callBase(),this.$element().addClass(f),this._initScrollView()},_dataSourceLoadingChangedHandler:function(e){var t=this._scrollView;t&&t.startLoading&&(e&&this.option("indicateLoading")?t.startLoading():t.finishLoading())},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_initScrollView:function(){this._scrollView=this._createComponent(this.$element(),h,{direction:this.option("direction"),scrollByContent:!0,useKeyboard:!1,showScrollbar:this.option("showScrollbar")}),this._$container=i(this._scrollView.content()),this._$container.addClass(g),this._scrollView.option("onUpdated",this._renderGeometry.bind(this))},_initMarkup:function(){this.callBase(),this._cellsPerDimension=1,this._renderGeometry(),this._updateScrollView(),this._fireContentReadyAction()},_updateScrollView:function(){this._scrollView.option("direction",this.option("direction")),this._scrollView.update(),this._indicateLoadingIfAlreadyStarted()},_indicateLoadingIfAlreadyStarted:function(){this._isDataSourceLoading()&&this._dataSourceLoadingChangedHandler(!0)},_renderGeometry:function(){this._config=y[this.option("direction")];var e=this.option("items")||[],t=this._config,n=this.option("itemMargin"),i=Math.max.apply(Math,s.map(e||[],function(e){return Math.round(e[t.itemCrossRatio]||1)})),o=c.hasWindow()?this.$element()[t.crossDimension]():parseInt(this.$element().get(0).style[t.crossDimension]);this._cellsPerDimension=Math.floor(o/(this.option(t.baseItemCrossDimension)+n)),this._cellsPerDimension=Math.max(this._cellsPerDimension,i),this._cells=[],this._cells.push(new Array(this._cellsPerDimension)),this._arrangeItems(e),c.hasWindow()&&this._$container[t.mainDimension](this._cells.length*this.option(t.baseItemMainDimension)+(this._cells.length+1)*n)},_arrangeItems:function(e){var t=this._config,n=t.itemMainRatio,i=t.itemCrossRatio,o=t.mainPosition;this._itemsPositions=[],s.each(e,function(e,a){var r={};r[n]=a[n]||1,r[i]=a[i]||1,r.index=e,r[n]=r[n]<=0?0:Math.round(r[t.itemMainRatio]),r[i]=r[i]<=0?0:Math.round(r[t.itemCrossRatio]);var s=this._getItemPosition(r);s[o]===-1&&(s[o]=this._cells.push(new Array(this._cellsPerDimension))-1),this._occupyCells(r,s),this._arrangeItem(r,s),this._itemsPositions.push(s)}.bind(this))},_getItemPosition:function(e){var t=this._config,n=t.mainPosition,i=t.crossPosition,o={};o[n]=-1,o[i]=0;for(var a=0;a<this._cells.length;a++){for(var r=0;r<this._cellsPerDimension;r++)if(this._itemFit(a,r,e)){o[n]=a,o[i]=r;break}if(o[n]>-1)break}return o},_itemFit:function(e,t,n){var i=!0,o=this._config,a=n[o.itemMainRatio],r=n[o.itemCrossRatio];if(t+r>this._cellsPerDimension)return!1;for(var s=e;s<e+a;s++)for(var l=t;l<t+r;l++)if(this._cells.length-1<s)this._cells.push(new Array(this._cellsPerDimension));else if(void 0!==this._cells[s][l]){i=!1;break}return i},_occupyCells:function(e,t){for(var n=this._config,i=t[n.mainPosition],o=t[n.crossPosition],a=e[n.itemMainRatio],r=e[n.itemCrossRatio],s=i;s<i+a;s++)for(var l=o;l<o+r;l++)this._cells[s][l]=e.index},_arrangeItem:function(e,t){var n=this._config,i=t[n.mainPosition],o=t[n.crossPosition],a=e[n.itemMainRatio],r=e[n.itemCrossRatio],s=this.option(n.baseItemCrossDimension),l=this.option(n.baseItemMainDimension),u=this.option("itemMargin"),c={display:a<=0||r<=0?"none":""},d=a*l+(a-1)*u,h=r*s+(r-1)*u;if(c[n.mainDimension]=d<0?0:d,c[n.crossDimension]=h<0?0:h,c[n.mainPosition]=i*l+(i+1)*u,c[n.crossPosition]=o*s+(o+1)*u,this.option("rtlEnabled")){var p=this._$container.width(),f=this.option("baseItemWidth"),g=t.left,_=g*f,m=f+u,v=m*e.widthRatio,y=g*u;c.left=p-(_+v+y)}this._itemElements().eq(e.index).css(c)},_moveFocus:function(e){var t="up",n="down",o=this.option("rtlEnabled")?"right":"left",a=this.option("rtlEnabled")?"left":"right",r="pageup",s="pagedown",u="horizontal"===this.option("direction"),c=this._cells,h=i(this.option("focusedElement")).index(),p=this._itemsPositions[h].left,f=this._itemsPositions[h].top,g=(u?c:c[0]).length,_=(u?c[0]:c).length,m=function(e,t){return u?c[e][t]:c[t][e]};switch(e){case r:case t:for(;f>0&&h===m(p,f);)f--;f<0&&(f=0);break;case s:case n:for(;f<_&&h===m(p,f);)f++;f===_&&(f=_-1);break;case a:for(;p<g&&h===m(p,f);)p++;p===g&&(p=g-1);break;case o:for(;p>=0&&h===m(p,f);)p--;p<0&&(p=0);break;default:return void this.callBase.apply(this,arguments)}var v=m(p,f);if(l(v)){var y=this._itemElements().eq(v);this.option("focusedElement",d(y)),this._scrollToItem(y)}},_scrollToItem:function(e){if(e.length){var t=this._config,n="outer"+r.captionize(t.mainDimension),i=this.option("itemMargin"),o=e.position()[t.mainPosition],a=e[n](),s=o+a,l=this.scrollPosition(),u=this.$element()[n]();l<=o&&s<=l+u||(l>o?this._scrollView.scrollTo(o-i):this._scrollView.scrollTo(o+a-u+i))}},_optionChanged:function(e){switch(e.name){case"items":this.callBase(e),this._renderGeometry(),this._updateScrollView();break;case"showScrollbar":this._initScrollView();break;case"disabled":this._scrollView.option("disabled",e.value),this.callBase(e);break;case"baseItemWidth":case"baseItemHeight":case"itemMargin":this._renderGeometry();break;case"width":case"height":this.callBase(e),this._renderGeometry(),this._updateScrollView();break;case"direction":this._renderGeometry(),this._updateScrollView();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;default:this.callBase(e)}},scrollPosition:function(){return this._scrollView.scrollOffset()[this._config.mainPosition]}});a("dxTileView",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")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(598),s=i(r),l=n(599),u=i(l),c=n(7),d=n(17),h=i(d),p=n(250),f=i(p),g=function(){function e(){o(this,e);var t=(0,c.getWindow)(),n=t&&t.TurndownService||s.default,i=t&&t.showdown||u.default;if(!n)throw h.default.Error("E1041","Turndown");if(!i)throw h.default.Error("E1041","Showdown");this._html2Markdown=new n,this._markdown2Html=new i.Converter({simpleLineBreaks:!0,strikethrough:!0})}return a(e,[{key:"toMarkdown",value:function(e){return this._html2Markdown.turndown(e)}},{key:"toHtml",value:function(e){var t=this._markdown2Html.makeHtml(e);return t&&(t=t.replace(new RegExp("\\r?\\n","g"),"")),t}}]),e}();f.default.addConverter("markdown",g),t.default=g},function(e,t){e.exports=window.TurndownService},function(e,t){e.exports=window.showdown},function(e,t,n){var i=n(212),o=n(490);o.dxAccordion=n(252),o.dxContextMenu=n(104),o.dxDataGrid=n(604),o.dxTreeList=n(648),o.dxMenu=n(360),o.dxPivotGrid=n(681),o.dxPivotGridFieldChooser=n(693),i.PivotGridDataSource=n(201),i.XmlaStore=n(694),o.dxScheduler=n(695),o.dxTreeView=n(141),o.dxFilterBuilder=n(367),o.dxFileManager=n(728),o.dxDiagram=n(743)},function(e,t,n){var i=n(15),o=n(4),a=n(3),r=n(3).each,s=n(1),l=n(0).extend,u=n(17),c=n(243).getOperationBySearchMode,d=n(13).inArray,h=n(41),p=n(80),f=n(602),g="expanded",_="selected",m="disabled",v=i.inherit({ctor:function(e){this.options={},l(this.options,this._defaultOptions(),e),this.options.dataConverter.setDataAccessors(this.options.dataAccessors),this._selectedNodesKeys=[],this._expandedNodesKeys=[],this._dataStructure=[],this._createInternalDataStructure(),this.getTreeNodes()},setOption:function(e,t){this.options[e]=t,"recursiveSelection"===e&&this._updateSelection()},_defaultOptions:function(){return{dataAccessors:void 0,items:[],multipleSelection:!0,recursiveSelection:!1,recursiveExpansion:!1,rootValue:0,searchValue:"",dataType:"tree",searchMode:"contains",dataConverter:new f,onNodeChanged:o.noop,sort:null}},_createInternalDataStructure:function(){this._initialDataStructure=this.options.dataConverter.createPlainStructure(this.options.items,this.options.rootValue,this.options.dataType),this._dataStructure=this.options.searchValue.length?this.search(this.options.searchValue):this._initialDataStructure,this.options.dataConverter._dataStructure=this._dataStructure,this._updateSelection(),this._updateExpansion()},_updateSelection:function(){this.options.recursiveSelection&&(this._setChildrenSelection(),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(_)},_updateExpansion:function(e){this.options.recursiveExpansion&&(e?this._updateOneBranch(e):this._setParentExpansion()),this._expandedNodesKeys=this._updateNodesKeysArray(g)},_updateNodesKeysArray:function(e){var t=this,n=[];return r(t._getDataBySelectionMode(),function(i,o){t._isNodeVisible(o)&&o.internalFields[e]&&(e===g||t.options.multipleSelection?n.push(o.internalFields.key):(n.length&&t.toggleSelection(n[0],!1,!0),n=[o.internalFields.key]))}),n},_getDataBySelectionMode:function(){return this.options.multipleSelection?this.getData():this.getFullData()},_isNodeVisible:function(e){return e.internalFields.item.visible!==!1},_getByKey:function(e,t){return e===this._dataStructure?this.options.dataConverter._getByKey(t):this.options.dataConverter.getByKey(e,t)},_setChildrenSelection:function(){var e=this;r(this._dataStructure,function(t,n){if(n.internalFields.childrenKeys.length){var i=n.internalFields.selected;i===!0&&e._toggleChildrenSelection(n,i)}})},_setParentSelection:function(){var e=this;r(this._dataStructure,function(t,n){var i=e.options.dataConverter.getParentNode(n);i&&n.internalFields.parentKey!==e.options.rootValue&&e._iterateParents(n,function(t){var n=e._calculateSelectedState(t);e._setFieldState(t,_,n)})})},_setParentExpansion:function(){var e=this;r(this._dataStructure,function(t,n){n.internalFields.expanded&&e._updateOneBranch(n.internalFields.key)})},_updateOneBranch:function(e){var t=this,n=this.getNodeByKey(e);t._iterateParents(n,function(e){t._setFieldState(e,g,!0)})},_iterateChildren:function(e,t,n){var i=this;r(e.internalFields.childrenKeys,function(e,o){var a=i.getNodeByKey(o);s.isFunction(n)&&n(a),a.internalFields.childrenKeys.length&&t&&i._iterateChildren(a,t,n)})},_iterateParents:function(e,t){if(e.internalFields.parentKey!==this.options.rootValue){var n=this.options.dataConverter.getParentNode(e);n&&(s.isFunction(t)&&t(n),n.internalFields.parentKey!==this.options.rootValue&&this._iterateParents(n,t))}},_calculateSelectedState:function(e){for(var t=e.internalFields.childrenKeys.length,n=0,i=0,o=!1,a=0;a<=t-1;a++){var r=this.getNodeByKey(e.internalFields.childrenKeys[a]),s=r.internalFields.item.visible===!1,l=r.internalFields.selected;s?i++:l?n++:void 0===l&&(n+=.5)}return n&&(o=n===t-i||void 0),o},_toggleChildrenSelection:function(e,t){var n=this;this._iterateChildren(e,!0,function(e){n._isNodeVisible(e)&&n._setFieldState(e,_,t)})},_setFieldState:function(e,t,n){e.internalFields[t]!==n&&(e.internalFields[t]=n,e.internalFields.publicNode&&(e.internalFields.publicNode[t]=n),this.options.dataAccessors.setters[t](e.internalFields.item,n),this.options.onNodeChanged(e))},_markChildren:function(e){var t=this;r(e,function(e,n){var i=t.getIndexByKey(n),o=t.getNodeByKey(n);t._dataStructure[i]=0,o.internalFields.childrenKeys.length&&t._markChildren(o.internalFields.childrenKeys)})},_removeNode:function(e){var t=this.getNodeByKey(e);this._dataStructure[this.getIndexByKey(e)]=0,this._markChildren(t.internalFields.childrenKeys);var n=this,i=0,o=l([],this._dataStructure);r(o,function(e,t){t||(n._dataStructure.splice(e-i,1),i++)})},_addNode:function(e){var t=this.options.dataConverter,n=t._convertItemToNode(e,this.options.dataAccessors.getters.parentKey(e));this._dataStructure=this._dataStructure.concat(n),this._initialDataStructure=this._initialDataStructure.concat(n),t._dataStructure=t._dataStructure.concat(n)},_updateFields:function(){this.options.dataConverter.updateChildrenKeys(),this._updateSelection(),this._updateExpansion()},getSelectedNodesKeys:function(){return this._selectedNodesKeys},getExpandedNodesKeys:function(){return this._expandedNodesKeys},getData:function(){return this._dataStructure},getFullData:function(){return this._initialDataStructure},getNodeByItem:function(e){var t=null;return r(this._dataStructure,function(n,i){if(i.internalFields.item===e)return t=i,!1}),t},getNodesByItems:function(e){var t=this,n=[];return r(e,function(e,i){var o=t.getNodeByItem(i);o&&n.push(o)}),n},getNodeByKey:function(e,t){return this._getByKey(t||this._getDataBySelectionMode(),e)},getTreeNodes:function(){return this.options.dataConverter.convertToPublicNodes(this.getRootNodes())},getItemsCount:function(){return this.options.dataConverter.getItemsCount()},getVisibleItemsCount:function(){return this.options.dataConverter.getVisibleItemsCount()},getPublicNode:function(e){return e.internalFields.publicNode},getRootNodes:function(){return this.getChildrenNodes(this.options.rootValue)},getChildrenNodes:function(e){return h(this._dataStructure).filter(["internalFields.parentKey",e]).toArray()},getIndexByKey:function(e){return this.options.dataConverter.getIndexByKey(e)},addItem:function(e){this._addNode(e),this._updateFields()},removeItem:function(e){this._removeNode(e),this._updateFields()},toggleSelection:function(e,t,n){var i=this._isSingleModeUnselect(t),o=this._getByKey(n||i?this._initialDataStructure:this._dataStructure,e);this._setFieldState(o,_,t),this.options.recursiveSelection&&!n&&(t?this._setChildrenSelection():this._toggleChildrenSelection(o,t),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(_)},_isSingleModeUnselect:function(e){return!this.options.multipleSelection&&!e},toggleNodeDisabledState:function(e,t){var n=this.getNodeByKey(e);this._setFieldState(n,m,t)},toggleSelectAll:function(e){if(s.isDefined(e)){var t=this,n=t._selectedNodesKeys[t._selectedNodesKeys.length-1],i=t._isSingleModeUnselect(e)?this._initialDataStructure:this._dataStructure;r(i,function(n,i){t._isNodeVisible(i)&&t._setFieldState(i,_,e)}),t._selectedNodesKeys=t._updateNodesKeysArray(_),!e&&t.options.selectionRequired&&t.toggleSelection(n,!0)}},isAllSelected:function(){return!!this.getSelectedNodesKeys().length&&(this.getSelectedNodesKeys().length===this.getVisibleItemsCount()||void 0)},toggleExpansion:function(e,t){var n=this.getNodeByKey(e);this._setFieldState(n,g,t),t&&this._updateExpansion(e),this._expandedNodesKeys=this._updateNodesKeysArray(g)},isFiltered:function(e){return!this.options.searchValue.length||!!this._filterDataStructure(this.options.searchValue,[e]).length},_createCriteria:function(e,t,n){var i=[];return Array.isArray(e)?(a.each(e,function(e,o){i.push([o,n,t],"or")}),i.pop(),i):[e,n,t]},_filterDataStructure:function(e,t){var n=this.options.searchExpr||this.options.dataAccessors.getters.display,i=c(this.options.searchMode),o=this._createCriteria(n,e,i);return t=t||this._initialDataStructure,h(t).filter(o).toArray()},search:function(e){function t(e,i){for(var a=e.length;i<a;){var r=e[i];if(r.internalFields.parentKey!==n.options.rootValue){var s=o.getParentNode(r);s?(s.internalFields.expanded||n._setFieldState(s,g,!0),d(s,e)>-1?i++:(e.splice(i,0,s),t(e,i))):(u.log("W1007",r.internalFields.parentKey,r.internalFields.key),i++)}else i++}}var n=this,i=this._filterDataStructure(e),o=this.options.dataConverter;return t(i,0),this.options.sort&&(i=p.queryByOptions(h(i),{sort:this.options.sort}).toArray()),o._indexByKey={},r(i,function(e,t){t.internalFields.childrenKeys=[],o._indexByKey[t.internalFields.key]=e}),o._dataStructure=i,o.setChildrenKeys(),o._dataStructure}});e.exports=v},function(e,t,n){var i=n(15),o=n(0).extend,a=n(17),r=n(3).each,s=n(1),l=i.inherit({ctor:function(){this._dataStructure=[],this._itemsCount=0,this._visibleItemsCount=0},_indexByKey:{},_convertItemsToNodes:function(e,t){var n=this;r(e,function(e,i){var o=s.isDefined(t)?t:n._getParentId(i),a=n._convertItemToNode(i,o);n._dataStructure.push(a),n._checkForDuplicateId(a.internalFields.key),n._indexByKey[a.internalFields.key]=n._dataStructure.length-1,n._itemHasChildren(i)&&n._convertItemsToNodes(n._dataAccessors.getters.items(i),a.internalFields.key)})},_checkForDuplicateId:function(e){if(s.isDefined(this._indexByKey[e]))throw a.Error("E1040",e)},_getParentId:function(e){return"plain"===this._dataType?this._dataAccessors.getters.parentKey(e):void 0},_itemHasChildren:function(e){if("plain"!==this._dataType){var t=this._dataAccessors.getters.items(e);return t&&t.length}},_getUniqueKey:function(e){var t=this._dataAccessors.getters.key,n=t(e),i=t&&(n||0===n)&&s.isPrimitive(n);return i?n:this.getItemsCount()},_convertItemToNode:function(e,t){this._itemsCount++,e.visible!==!1&&this._visibleItemsCount++;var n=this,i={internalFields:{disabled:n._dataAccessors.getters.disabled(e,{defaultValue:!1}),expanded:n._dataAccessors.getters.expanded(e,{defaultValue:!1}),selected:n._dataAccessors.getters.selected(e,{defaultValue:!1}),key:n._getUniqueKey(e),parentKey:s.isDefined(t)?t:n._rootValue,item:n._makeObjectFromPrimitive(e),childrenKeys:[]}};return o(i,e),delete i.items,i},setChildrenKeys:function(){var e=this;r(this._dataStructure,function(t,n){if(n.internalFields.parentKey!==e._rootValue){var i=e.getParentNode(n);i&&i.internalFields.childrenKeys.push(n.internalFields.key)}})},_makeObjectFromPrimitive:function(e){if(s.isPrimitive(e)){var t=e;e={},this._dataAccessors.setters.key(e,t)}return e},_convertToPublicNode:function(e,t){if(!e)return null;var n={text:this._dataAccessors.getters.display(e),key:e.internalFields.key,selected:e.internalFields.selected,expanded:e.internalFields.expanded,disabled:e.internalFields.disabled,parent:t||null,itemData:e.internalFields.item,children:[],items:[]};return n.parent&&(n.parent.children.push(n),n.parent.items.push(n)),n},convertToPublicNodes:function(e,t){if(!e.length)return[];var n=this,i=[];return r(e,function(e,o){o=s.isPrimitive(o)?n._getByKey(o):o;var a=n._convertToPublicNode(o,t);a.children=n.convertToPublicNodes(o.internalFields.childrenKeys,a),i.push(a),o.internalFields.publicNode=a}),i},setDataAccessors:function(e){this._dataAccessors=e},_getByKey:function(e){return this._dataStructure[this.getIndexByKey(e)]||null},getParentNode:function(e){return this._getByKey(e.internalFields.parentKey)},getByKey:function e(t,n){var i=null,o=this,e=function e(t,n){return r(t,function(t,a){var r=a.internalFields&&a.internalFields.key||o._dataAccessors.getters.key(a),s=o._dataAccessors.getters.items(a);return r.toString()===n.toString()?(i=a,!1):void(s&&e(s,n))}),i};return e(t,n)},getItemsCount:function(){return this._itemsCount},getVisibleItemsCount:function(){return this._visibleItemsCount},updateIndexByKey:function(){var e=this;this._indexByKey={},r(this._dataStructure,function(t,n){e._checkForDuplicateId(n.internalFields.key),e._indexByKey[n.internalFields.key]=t})},updateChildrenKeys:function(){this._indexByKey={},this.removeChildrenKeys(),this.updateIndexByKey(),this.setChildrenKeys()},removeChildrenKeys:function(){this._indexByKey={},r(this._dataStructure,function(e,t){t.internalFields.childrenKeys=[]})},getIndexByKey:function(e){return this._indexByKey[e]},createPlainStructure:function(e,t,n){return this._itemsCount=0,this._visibleItemsCount=0,this._rootValue=t,this._dataType=n,this._indexByKey={},this._convertItemsToNodes(e),this.setChildrenKeys(),this._dataStructure}});e.exports=l},function(e,t,n){var 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},o=n(2),a=n(3).map,r=n(187),s=r.inherit({_getPlainItems:function(){return a(this._collectionWidget.option("items"),function e(t){return t.items?[t].concat(a(t.items,e)):t})},_stringifyItem:function(e){var t=this;return JSON.stringify(e,function(e,n){return"template"===e?t._getTemplateString(n):n})},_getTemplateString:function(e){var t;return t="object"===("undefined"==typeof e?"undefined":i(e))?o(e).text():e.toString()}});e.exports=s},function(e,t,n){e.exports=n(333)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(9),s=i(r),l=n(4),u=i(l),c=n(1),d=i(c),h=n(3),p=n(0),f=n(81),g=n(26),_=i(g),m=n(18),v=i(m),y=n(23),x=i(y),b=n(31),w=i(b);n(606),n(607),n(608),n(609),n(610),n(611),n(612),n(613),n(614);var C=".dx-row",k="Specifying grid templates with the jQuery selector name is now deprecated. Use the DOM Node or the jQuery object that references this selector instead.";x.default.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","grouping","editing","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);var S=v.default.inherit({_activeStateUnit:C,_getDefaultOptions:function(){var e=this,t=e.callBase();return(0,h.each)(x.default.modules,function(){d.default.isFunction(this.defaultOptions)&&(0,p.extend)(!0,t,this.defaultOptions())}),t},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{showRowLines:!0}},{device:function(){return w.default.isMaterial()},options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0}}},{device:function(){return _.default.webkit},options:{loadingTimeout:30,loadPanel:{animation:{show:{easing:"cubic-bezier(1, 0, 1, 0)",duration:500,from:{opacity:0},to:{opacity:1}}}}}},{device:function(e){return"desktop"!==e.deviceType},options:{grouping:{expandMode:"rowClick"}}}])},_init:function(){var e=this;e.callBase(),x.default.processModules(e,x.default),(0,y.callModuleItemsMethod)(e,"init")},_clean:u.default.noop,_optionChanged:function(e){var t=this;(0,y.callModuleItemsMethod)(t,"optionChanged",[e]),e.handled||t.callBase(e)},_dimensionChanged:function(){this.updateDimensions(!0)},_visibilityChanged:function(e){e&&this.updateDimensions()},_initMarkup:function(){this.callBase.apply(this,arguments),this.getView("gridView").render(this.$element())},_renderContentImpl:function(){this.getView("gridView").update()},_renderContent:function(){var e=this;u.default.deferRender(function(){e._renderContentImpl()})},_getTemplate:function(e){var t=e;return d.default.isString(t)&&"#"===t[0]&&(t=(0,a.default)(e),f.logger.warn(k)),this.callBase(t)},_dispose:function(){var e=this;e.callBase(),(0,y.callModuleItemsMethod)(e,"dispose")},isReady:function(){return this.getController("data").isReady()},beginUpdate:function(){var e=this;e.callBase(),(0,y.callModuleItemsMethod)(e,"beginUpdate")},endUpdate:function(){var e=this;(0,y.callModuleItemsMethod)(e,"endUpdate"),e.callBase()},getController:function(e){return this._controllers[e]},getView:function(e){return this._views[e]},focus:function(e){this.getController("keyboardNavigation").focus(e)}});S.registerModule=x.default.registerModule.bind(x.default),(0,s.default)("dxDataGrid",S),e.exports=S},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(334),s=i(r);t.ColumnHeadersView=s.default.views.columnHeadersView,a.default.registerModule("columnHeaders",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(336),s=i(r),l=n(0);a.default.registerModule("columns",{defaultOptions:function(){return(0,l.extend)(!0,{},s.default.defaultOptions(),{commonColumnSettings:{allowExporting:!0}})},controllers:s.default.controllers})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(17),s=i(r),l=n(199),u=i(l),c=n(338),d=i(c);t.DataController=d.default.controllers.data.inherit(function(){return{_getDataSourceAdapter:function(){return u.default},_getSpecificDataSourceOption:function(){var e=this.option("dataSource");return e&&!Array.isArray(e)&&this.option("keyExpr")&&s.default.log("W1011"),this.callBase()}}}()),a.default.registerModule("data",{defaultOptions:d.default.defaultOptions,controllers:{data:t.DataController}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(339),s=i(r);a.default.registerModule("sorting",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(341),s=i(r);t.RowsView=s.default.views.rowsView,a.default.registerModule("rows",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(342),s=i(r);a.default.registerModule("contextMenu",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(343),s=i(r);a.default.registerModule("errorHandling",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(344),s=i(r);a.default.registerModule("gridView",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(345),s=i(r);t.HeaderPanel=s.default.views.headerPanel,a.default.registerModule("headerPanel",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(346),s=i(r);a.default.registerModule("stateStoring",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(348),s=i(r);a.default.registerModule("selection",s.default);
86},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(349),s=i(r);t.ColumnChooserController=s.default.controllers.columnChooser,t.ColumnChooserView=s.default.views.columnChooserView,a.default.registerModule("columnChooser",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(11),s=n(5),l=n(14),u=i(l),c=n(19),d=i(c),h=n(4),p=i(h),f=n(7),g=i(f),_=n(1),m=n(0),v=n(3),y=n(12),x=n(103),b=i(x),w=n(332),C=i(w),k=n(8),S=n(24),I=n(154),T=i(I),D=n(38),E=i(D),A=n(94),O=i(A),B=n(93),P=i(B),M=n(6),R="dx-treeview",V=R+"-node",F=V+"-container",L=V+"-loadindicator",H=V+"-container-opened",z=V+"-is-leaf",N=R+"-item",$=N+"-with-checkbox",W=N+"-without-checkbox",G=N+"-data",j=R+"-toggle-item-visibility",q=R+"-loadindicator",K=R+"-loadindicator-wrapper",U=R+"-toggle-item-visibility-opened",Y=R+"-select-all-item",X="dx-state-invisible",Z="dx-state-disabled",Q="dx-state-selected",J="dxTreeView_expand",ee="data-item-id",te=C.default.inherit({_supportedKeys:function(e){var t=this,n=function(e){var n=(0,a.default)(t.option("focusedElement"));if(n.length){e.target=n,e.currentTarget=n,t._itemClickHandler(e,n.children("."+N));var i=t._getEventNameByOption(t.option("expandEvent")),o=i===(0,k.addNamespace)(d.default.name,J);o&&t._expandEventHandler(e)}},i=function(e){e.preventDefault(),t._changeCheckBoxState((0,a.default)(t.option("focusedElement")))},o=function(e,t){if(this.option("expandAllEnabled")){t.preventDefault();var n=(0,a.default)(this.option("focusedElement"));if(n.length){var i=this._getItemData(n.find("."+N));this._toggleExpandedNestedItems([i],e)}}};return(0,m.extend)(this.callBase(),{enter:this._showCheckboxes()?i:n,space:this._showCheckboxes()?i:n,asterisk:o.bind(this,!0),minus:o.bind(this,!1)})},_changeCheckBoxState:function(e){var t=this._getCheckBoxInstance(e),n=t.option("value");t.option("disabled")||this._updateItemSelection(!n,e.find("."+N).get(0),!0,e)},_toggleExpandedNestedItems:function(e,t){if(e)for(var n=0,i=e.length;n<i;n++){var o=e[n],a=this._dataAdapter.getNodeByItem(o);this._toggleExpandedState(a,t),this._toggleExpandedNestedItems(o.items,t)}},_getNodeElement:function(e,t){var n=p.default.normalizeKey(e.internalFields.key);return t?(t.$nodeByKey||(t.$nodeByKey={},this.$element().find("."+V).each(function(){var e=(0,a.default)(this),n=e.attr(ee);t.$nodeByKey[n]=e})),t.$nodeByKey[n]||(0,a.default)()):this.$element().find("["+ee+"='"+n+"']")},_activeStateUnit:"."+N,_widgetClass:function(){return R},_getDefaultOptions:function(){return(0,m.extend)(this.callBase(),{animationEnabled:!0,dataStructure:"tree",deferRendering:!0,expandAllEnabled:!1,hasItemsExpr:"hasItems",selectNodesRecursive:!0,expandNodesRecursive:!0,showCheckBoxesMode:"none",selectAllText:u.default.format("dxList-selectAll"),onItemSelectionChanged:null,onItemExpanded:null,onItemCollapsed:null,scrollDirection:"vertical",virtualModeEnabled:!1,rootValue:0,focusStateEnabled:!1,selectionMode:"multiple",expandEvent:"dblclick",selectByClick:!1,createChildren:null,onSelectAllValueChanged:null})},_initSelectedItems:p.default.noop,_syncSelectionOptions:p.default.asyncNoop,_fireSelectionChanged:function(){var e=this._selectionChangePromise;(0,M.when)(e).done(function(){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})()}.bind(this))},_createSelectAllValueChangedAction:function(){this._selectAllValueChangedAction=this._createActionByOption("onSelectAllValueChanged",{excludeValidators:["disabled","readOnly"]})},_fireSelectAllValueChanged:function(e){this._selectAllValueChangedAction({value:e})},_checkBoxModeChange:function(e,t){if("none"===t||"none"===e)return void this.repaint();var n=this._$selectAllItem&&this._$selectAllItem.length;switch(e){case"selectAll":!n&&this._renderSelectAllItem();break;case"normal":n&&(this._$selectAllItem.remove(),delete this._$selectAllItem)}},_removeSelection:function(){var e=this;(0,v.each)(this._dataAdapter.getFullData(),function(t,n){e._hasChildren(n)&&e._dataAdapter.toggleSelection(n.internalFields.key,!1,!0)})},_optionChanged:function(e){var t=e.name,n=e.value,i=e.previousValue;switch(t){case"selectAllText":this._$selectAllItem&&this._$selectAllItem.dxCheckBox("instance").option("text",n);break;case"showCheckBoxesMode":this._checkBoxModeChange(n,i);break;case"scrollDirection":this._scrollableContainer.option("direction",n);break;case"items":delete this._$selectAllItem,this.callBase(e);break;case"dataSource":this.callBase(e),this._initDataAdapter(),this._filter={};break;case"hasItemsExpr":this._initAccessors(),this.repaint();break;case"expandEvent":this._initExpandEvent();break;case"deferRendering":case"dataStructure":case"rootValue":case"createChildren":case"expandNodesRecursive":case"onItemSelectionChanged":case"onItemExpanded":case"onItemCollapsed":case"expandAllEnabled":case"animationEnabled":case"virtualModeEnabled":case"selectByClick":break;case"selectionMode":this._initDataAdapter(),this.callBase(e);break;case"onSelectAllValueChanged":this._createSelectAllValueChangedAction();break;case"selectNodesRecursive":this._dataAdapter.setOption("recursiveSelection",e.value),this.repaint();break;default:this.callBase(e)}},_initDataSource:function(){this._useCustomChildrenLoader()?this._loadChildrenByCustomLoader(null).done(function(e){e&&e.length&&this.option("items",e)}.bind(this)):(this.callBase(),this._isVirtualMode()&&this._initVirtualMode())},_initVirtualMode:function(){var e=this._filter;e.custom||(e.custom=this._dataSource.filter()),e.internal||(e.internal=[this.option("parentIdExpr"),this.option("rootValue")])},_useCustomChildrenLoader:function(){return(0,_.isFunction)(this.option("createChildren"))&&this._isDataStructurePlain()},_loadChildrenByCustomLoader:function(e){var t=this.option("createChildren").call(this,e);return Array.isArray(t)?(new M.Deferred).resolve(t).promise():t&&(0,_.isFunction)(t.then)?(0,M.fromPromise)(t):(new M.Deferred).resolve([]).promise()},_combineFilter:function(){return this._filter.custom&&this._filter.custom.length?[this._filter.custom,this._filter.internal]:this._filter.internal},_dataSourceLoadErrorHandler:function(){this._renderEmptyMessage()},_init:function(){this._filter={},this.callBase(),this._initStoreChangeHandlers()},_dataSourceChangedHandler:function(e){this._initialized&&this._isVirtualMode()&&this.option("items").length||this.option("items",e)},_removeTreeViewLoadIndicator:function(){this._treeViewLoadIndicator&&(this._treeViewLoadIndicator.remove(),this._treeViewLoadIndicator=null)},_createTreeViewLoadIndicator:function(){return this._treeViewLoadIndicator=(0,a.default)("<div>").addClass(q),this._createComponent(this._treeViewLoadIndicator,P.default,{}),this._treeViewLoadIndicator},_dataSourceLoadingChangedHandler:function(e){var t=void 0;if(this._isVirtualMode()&&(t=this._combineFilter(),this._dataSource.filter(t)),e&&!this._dataSource.isLoaded()){this.option("items",[]);var n=(0,a.default)("<div>").addClass(K);this._createTreeViewLoadIndicator().appendTo(n),this.itemsContainer().append(n),this._isVirtualMode()&&this._dataSource.filter()!==t&&this._dataSource.filter([])}else this._removeTreeViewLoadIndicator()},_initStoreChangeHandlers:function(){var e=this;"plain"===this.option("dataStructure")&&this._dataSource&&this._dataSource.store().on("inserted",function(t){e.option().items=e.option("items").concat(t),e._dataAdapter.addItem(t),e._dataAdapter.isFiltered(t)&&e._updateLevel(e._parentIdGetter(t))}).on("removed",function(t){var n=e._dataAdapter.getNodeByKey(t);e.option("items")[e._dataAdapter.getIndexByKey(n.internalFields.key)]=0,e._markChildrenItemsToRemove(n),e._removeItems(),e._dataAdapter.removeItem(t),e._updateLevel(e._parentIdGetter(n))})},_markChildrenItemsToRemove:function(e){var t=this,n=e.internalFields.childrenKeys;(0,v.each)(n,function(e,n){t.option("items")[t._dataAdapter.getIndexByKey(n)]=0,t._markChildrenItemsToRemove(t._dataAdapter.getNodeByKey(n))})},_removeItems:function(){var e=this,t=(0,m.extend)(!0,[],this.option("items")),n=0;(0,v.each)(t,function(t,i){i||(e.option("items").splice(t-n,1),n++)})},_updateLevel:function(e){var t=this._getContainerByParentKey(e);this._renderItems(t,this._dataAdapter.getChildrenNodes(e))},_getOldContainer:function(e){return e.length?e.children("."+F):this._scrollableContainer?this._scrollableContainer.$content().children():(0,a.default)()},_getContainerByParentKey:function(e){var t=this._dataAdapter.getNodeByKey(e),n=t?this._getNodeElement(t):[];this._getOldContainer(n).remove();var i=this._renderNodeContainer(n);return this._isRootLevel(e)&&(this._scrollableContainer||this._renderScrollableContainer(),this._scrollableContainer.$content().append(i)),i},_isRootLevel:function(e){return e===this.option("rootValue")},_getAccessors:function(){var e=this.callBase();return e.push("hasItems"),e},_getDataAdapterOptions:function(){return{rootValue:this.option("rootValue"),multipleSelection:!this._isSingleSelection(),recursiveSelection:this._isRecursiveSelection(),recursiveExpansion:this.option("expandNodesRecursive"),selectionRequired:this.option("selectionRequired"),dataType:this.option("dataStructure"),sort:this._dataSource&&this._dataSource.sort()}},_initMarkup:function(){this._renderScrollableContainer(),this._renderEmptyMessage(this._dataAdapter.getRootNodes()),this.callBase(),this.setAria("role","tree")},_renderContentImpl:function(){var e=this._renderNodeContainer();this._scrollableContainer.$content().append(e),this.option("items")&&this.option("items").length&&(this._renderItems(e,this._dataAdapter.getRootNodes()),this._initExpandEvent(),this._selectAllEnabled()&&(this._createSelectAllValueChangedAction(),this._renderSelectAllItem(e)))},_isVirtualMode:function(){return this.option("virtualModeEnabled")&&this._isDataStructurePlain()&&!!this.option("dataSource")},_isDataStructurePlain:function(){return"plain"===this.option("dataStructure")},_fireContentReadyAction:function(){var e=this.getDataSource(),t=e&&!e.isLoaded();t||this.callBase(),this._scrollableContainer&&g.default.hasWindow()&&this._scrollableContainer.update()},_renderScrollableContainer:function(){this._scrollableContainer=this._createComponent((0,a.default)("<div>").appendTo(this.$element()),O.default,{direction:this.option("scrollDirection"),useKeyboard:!1})},_renderNodeContainer:function(e){var t=(0,a.default)("<ul>").addClass(F);if(this.setAria("role","group",t),e&&e.length){var n=this._getItemData(e.children("."+N));this._expandedGetter(n)&&t.addClass(H),t.appendTo(e)}return t},_createDOMElement:function(e,t){var n=(0,a.default)("<li>").addClass(V).attr(ee,p.default.normalizeKey(t.internalFields.key)).prependTo(e);return this.setAria({role:"treeitem",label:this._displayGetter(t.internalFields.item)||"",expanded:t.internalFields.expanded||!1,level:this._getLevel(e)},n),n},_getLevel:function(e){var t=e.parent();return t.hasClass("dx-scrollable-content")?1:parseInt(t.attr("aria-level"))+1},_showCheckboxes:function(){return"none"!==this.option("showCheckBoxesMode")},_selectAllEnabled:function(){return"selectAll"===this.option("showCheckBoxesMode")&&!this._isSingleSelection()},_renderItems:function(e,t){for(var n=t.length-1,i=n;i>=0;i--)this._renderItem(t[i],e);this._renderFocusTarget()},_renderItem:function(e,t){var n=this._createDOMElement(t,e),i=e.internalFields,o=this._showCheckboxes();n.addClass(o?$:W),o&&this._renderCheckBox(n,e),this.setAria("selected",i.selected,n),this._toggleSelectedClass(n,i.selected),this.callBase(i.key,i.item,n),i.item.visible!==!1&&this._renderChildren(n,e)},_renderChildren:function(e,t){var n=this;return this._hasChildren(t)?(this._renderToggleItemVisibilityIcon(e,t),void(this.option("deferRendering")&&!t.internalFields.expanded||this._loadSublevel(t).done(function(i){n._renderSublevel(e,n._getActualNode(t),i)}))):void this._addLeafClass(e)},_getActualNode:function(e){return this._dataAdapter.getNodeByKey(e.internalFields.key)},_hasChildren:function(e){return this._isVirtualMode()||this._useCustomChildrenLoader()?this._hasItemsGetter(e.internalFields.item)!==!1:this.callBase(e)},_loadSublevel:function(e){var t=this,n=new M.Deferred,i=this._getChildNodes(e);return i.length?n.resolve(i):this._loadNestedItems(e).done(function(e){n.resolve(t._dataAdapter.getNodesByItems(e))}),n.promise()},_renderSublevel:function(e,t,n){var i=this._renderNodeContainer(e,t);if(this._renderItems(i,n),n.length&&!t.internalFields.selected){var o=n[0];this._updateParentsState(o,this._getNodeElement(o))}this._normalizeIconState(e,n.length),t.internalFields.expanded&&i.addClass(H)},_executeItemRenderAction:function(e,t,n){var i=this._dataAdapter.getNodeByKey(e);this._getItemRenderAction()({itemElement:n,itemIndex:e,itemData:t,node:i})},_addLeafClass:function(e){e.addClass(z)},_expandEventHandler:function(e){var t=(0,a.default)(e.currentTarget.parentNode);t.hasClass(z)||this._toggleExpandedState(e.currentTarget,void 0,e)},_initExpandEvent:function(){var e=this._getEventNameByOption(this.option("expandEvent")),t=this._itemContainer(),n=this._itemSelector();(0,s.off)(t,"."+J,n),(0,s.on)(t,e,n,this._expandEventHandler.bind(this))},_getEventNameByOption:function(e){var t="click"===e?d.default:T.default;return(0,k.addNamespace)(t.name,J)},_getNode:function(e){if(!(0,_.isDefined)(e))return null;if(e.internalFields)return e;if((0,_.isPrimitive)(e))return this._dataAdapter.getNodeByKey(e);var t=(0,a.default)(e).get(0);return t?(0,r.isElementNode)(t)?this._getNodeByElement(t):this._dataAdapter.getNodeByItem(t):null},_getNodeByElement:function(e){var t=(0,a.default)(e).closest("."+V),n=p.default.denormalizeKey(t.attr(ee));return this._dataAdapter.getNodeByKey(n)},_toggleExpandedState:function(e,t,n){var i=this._getNode(e),o=i.internalFields.expanded;if(!i.internalFields.disabled&&o!==t){if(this._hasChildren(i)){var a=this._getNodeElement(i);if(a.find("."+L+":not(."+X+")").length)return;this._createLoadIndicator(a)}(0,_.isDefined)(t)||(t=!o),this._dataAdapter.toggleExpansion(i.internalFields.key,t),this._updateExpandedItemsUI(i,t,n)}},_createLoadIndicator:function(e){var t=e.children("."+j),n=e.children("."+F);t.hasClass(U)||n.not(":empty").length||(this._createComponent((0,a.default)("<div>").addClass(L),P.default,{}).$element().appendTo(e),t.hide())},_renderToggleItemVisibilityIcon:function(e,t){var n=(0,a.default)("<div>").addClass(j).appendTo(e);t.internalFields.expanded&&(n.addClass(U),e.parent().addClass(H)),t.internalFields.disabled&&n.addClass(Z),this._renderToggleItemVisibilityIconClick(n,t)},_renderToggleItemVisibilityIconClick:function(e,t){var n=this,i=(0,k.addNamespace)(d.default.name,this.NAME);(0,s.off)(e,i),(0,s.on)(e,i,function(e){n._toggleExpandedState(t.internalFields.key,void 0,e)})},_updateExpandedItemsUI:function(e,t,n){var i=this._getNodeElement(e),o=!i.length||t&&i.is(":hidden");if(this.option("expandNodesRecursive")&&o){var a=this._getNode(e.internalFields.parentKey);a&&this._updateExpandedItemsUI(a,t,n)}var r=i.children("."+j),s=i.children("."+F);r.toggleClass(U,t);var l=s.length>0;return!t||l&&!s.is(":empty")?void this._updateExpandedItem(e,t,n):this._isVirtualMode()||this._useCustomChildrenLoader()?void this._loadNestedItemsWithUpdate(e,t,n):(this._renderSublevel(i,e,this._getChildNodes(e)),this._fireContentReadyAction(),void this._updateExpandedItem(e,t,n))},_loadNestedItemsWithUpdate:function(e,t,n){var i=this,o=this._getNodeElement(e);this._loadNestedItems(e).done(function(a){var r=i._getActualNode(e);i._renderSublevel(o,r,i._dataAdapter.getNodesByItems(a)),a&&a.length&&(i._fireContentReadyAction(),i._updateExpandedItem(r,t,n))})},_loadNestedItems:function(e){var t=this;if(this._useCustomChildrenLoader()){var n=this._dataAdapter.getPublicNode(e);return this._loadChildrenByCustomLoader(n).done(function(e){t._areNodesExists(e)||t._appendItems(e)})}return this._isVirtualMode()?(this._filter.internal=[this.option("parentIdExpr"),e.internalFields.key],this._dataSource.filter(this._combineFilter()),this._dataSource.load().done(function(e){t._areNodesExists(e)||t._appendItems(e)})):(new M.Deferred).resolve([]).promise()},_areNodesExists:function(e,t){var n=this.keyOf(e[0]),i=this._dataAdapter.getFullData();return!!this._dataAdapter.getNodeByKey(n,i)},_appendItems:function(e){this.option().items=this.option("items").concat(e),this._initDataAdapter()},_updateExpandedItem:function(e,t,n){this._animateNodeContainer(e,t,n)},_animateNodeContainer:function(e,t,n){var i=this._getNodeElement(e),o=i.children("."+F),a=void 0;o.addClass(H),a=o.height(),E.default.stop(o,!0),E.default.animate(o,{type:"custom",duration:this.option("animationEnabled")?400:0,from:{maxHeight:t?0:a},to:{maxHeight:t?a:0},complete:function(){o.css("maxHeight","none"),o.toggleClass(H,t),this.setAria("expanded",t,i),this._scrollableContainer.update(),this._fireExpandedStateUpdatedEvent(t,e,n)}.bind(this)})},_fireExpandedStateUpdatedEvent:function(e,t,n){if(this._hasChildren(t)){var i=e?"onItemExpanded":"onItemCollapsed";if((0,_.isDefined)(n))this._itemDXEventHandler(n,i,{node:this._dataAdapter.getPublicNode(t)});else{var o=this._getNodeElement(t);this._itemEventHandler(o,i,{event:n,node:this._dataAdapter.getPublicNode(t)})}}},_normalizeIconState:function(e,t){var n=e.find(".dx-loadindicator");if(n.length&&P.default.getInstance(n).option("visible",!1),t){var i=e.find("."+j);return void i.show()}e.find("."+j).removeClass(j),e.addClass(z)},_emptyMessageContainer:function(){return this._scrollableContainer?this._scrollableContainer.content():this.callBase()},_renderContent:function(){var e=this.option("items");e&&e.length&&(this._contentAlreadyRendered=!0),this.callBase()},_renderSelectAllItem:function(e){e=e||this.$element().find("."+F).first(),this._$selectAllItem=(0,a.default)("<div>").addClass(Y);var t=this._dataAdapter.isAllSelected();this._createComponent(this._$selectAllItem,b.default,{value:t,text:this.option("selectAllText"),onValueChanged:function(e){this._toggleSelectAll(e),this._fireSelectAllValueChanged(e.value)}.bind(this)}),this._toggleSelectedClass(this._$selectAllItem,t),e.before(this._$selectAllItem)},_toggleSelectAll:function(e){this._dataAdapter.toggleSelectAll(e.value),this._updateItemsUI(),this._fireSelectionChanged()},_renderCheckBox:function(e,t){var n=(0,a.default)("<div>").appendTo(e);this._createComponent(n,b.default,{value:t.internalFields.selected,onValueChanged:this._changeCheckboxValue.bind(this),focusStateEnabled:!1,disabled:this._disabledGetter(t)})},_toggleSelectedClass:function(e,t){e.toggleClass(Q,!!t)},_toggleNodeDisabledState:function(e,t){var n=this._getNodeElement(e),i=n.find("."+N).eq(0);if(this._dataAdapter.toggleNodeDisabledState(e.internalFields.key,t),i.toggleClass(Z,!!t),this._showCheckboxes()){var o=this._getCheckBoxInstance(n);o.option("disabled",!!t)}},_itemOptionChanged:function(e,t,n){var i=this._dataAdapter.getNodeByItem(e);t===this.option("disabledExpr")&&this._toggleNodeDisabledState(i,n)},_changeCheckboxValue:function(e){var t=(0,a.default)(e.element).parent("."+V),n=t.children("."+N),i=this._getItemData(n),o=this._getNodeByElement(n),r=e.value;o&&o.internalFields.selected===r||this._updateItemSelection(r,i,e.event)},_isSingleSelection:function(){return"single"===this.option("selectionMode")},_isRecursiveSelection:function(){return this.option("selectNodesRecursive")&&"single"!==this.option("selectionMode")},_isLastSelectedBranch:function(e,t,n){var i=t.indexOf(e.key);return i>=0&&t.splice(i,1),n&&(0,v.each)(e.children,function(e,n){this._isLastSelectedBranch(n,t,!0)}.bind(this)),e.parent&&this._isLastSelectedBranch(e.parent,t),0===t.length},_isLastRequired:function(e){var t=this.option("selectionRequired"),n=this._isSingleSelection(),i=this.getSelectedNodesKeys();if(t)return n?1===i.length:this._isLastSelectedBranch(e.internalFields.publicNode,i.slice(),!0)},_updateItemSelection:function(e,t,n){var i=this,o=this._getNode(t);if(o&&o.internalFields.selected!==e)if(e||!this._isLastRequired(o)){var a=this.getSelectedNodesKeys();this._isSingleSelection()&&e&&(0,v.each)(a,function(e,t){i.unselectItem(t)}),this._dataAdapter.toggleSelection(o.internalFields.key,e),this._updateItemsUI();var r=n||this._findItemElementByItem(o.internalFields.item),s=n?this._itemDXEventHandler:this._itemEventHandler;s.call(this,r,"onItemSelectionChanged",{node:this._dataAdapter.getPublicNode(o),itemData:o.internalFields.item}),this._fireSelectionChanged()}else if(this._showCheckboxes()){var l=this._getNodeElement(o),u=this._getCheckBoxInstance(l);u&&u.option("value",!0)}},_getCheckBoxInstance:function(e){return e.children(".dx-checkbox").dxCheckBox("instance")},_updateItemsUI:function(){var e=this,t={};(0,v.each)(this._dataAdapter.getData(),function(n,i){var o=e._getNodeElement(i,t),a=i.internalFields.selected;if(o.length&&(e._toggleSelectedClass(o,a),e.setAria("selected",a,o),e._showCheckboxes())){var r=e._getCheckBoxInstance(o);r.option("value",a)}}),this._selectAllEnabled()&&this._$selectAllItem.dxCheckBox("instance").option("value",this._dataAdapter.isAllSelected())},_updateParentsState:function(e,t){if(t){var n=this._dataAdapter.getNodeByKey(e.internalFields.parentKey),i=(0,a.default)(t.parents("."+V)[0]);if(this._showCheckboxes()){var o=n.internalFields.selected;this._getCheckBoxInstance(i).option("value",o),this._toggleSelectedClass(i,o)}n.internalFields.parentKey!==this.option("rootValue")&&this._updateParentsState(n,i)}},_itemEventHandlerImpl:function(e,t,n){var i=(0,a.default)(e).closest("."+V).children("."+N);return t((0,m.extend)(this._extendActionArgs(i),n))},_itemContextMenuHandler:function(e){this._createEventHandler("onItemContextMenu",e)},_itemHoldHandler:function(e){this._createEventHandler("onItemHold",e)},_createEventHandler:function(e,t){var n=this._getNodeByElement(t.currentTarget);this._itemDXEventHandler(t,e,{node:this._dataAdapter.getPublicNode(n)})},_itemClass:function(){return N},_itemDataKey:function(){return G},_attachClickEvent:function(){var e="."+this._itemClass(),t="."+V+", ."+Y,n=(0,k.addNamespace)(d.default.name,this.NAME),i=(0,k.addNamespace)(S.down,this.NAME),o=this._itemContainer(),r=this;(0,s.off)(o,n,e),(0,s.off)(o,i,t),(0,s.on)(o,n,e,function(e){r._itemClickHandler(e,(0,a.default)(this))}),(0,s.on)(o,i,t,function(e){r._itemPointerDownHandler(e)})},_itemClickHandler:function(e,t){var n=this._getItemData(t),i=this._getNodeByElement(t);this._itemDXEventHandler(e,"onItemClick",{node:this._dataAdapter.getPublicNode(i)}),this.option("selectByClick")&&!e.isDefaultPrevented()&&this._updateItemSelection(!i.internalFields.selected,n,e)},_updateSelectionToFirstItem:function(e,t){for(var n=t;n>=0;){var i=(0,a.default)(e[n]);this._updateItemSelection(!0,i.find("."+N).get(0)),n--}},_updateSelectionToLastItem:function(e,t){for(var n=e.length,i=t;i<n;){var o=(0,a.default)(e[i]);this._updateItemSelection(!0,o.find("."+N).get(0)),i++}},_focusInHandler:function(e){var t=this;if(this._updateFocusState(e,!0),this.option("focusedElement"))return clearTimeout(this._setFocusedItemTimeout),void(this._setFocusedItemTimeout=setTimeout(function(){t._setFocusedItem((0,a.default)(t.option("focusedElement")))}));var n=this._getActiveItem();this.option("focusedElement",(0,y.getPublicElement)(n.closest("."+V)))},_setFocusedItem:function(e){e&&e.length&&(e.children().hasClass(Z)||this.callBase(e),this._scrollableContainer.scrollToElement(e.find("."+N).first()))},_itemPointerDownHandler:function(e){if(this.option("focusStateEnabled")){var t=(0,a.default)(e.target).closest("."+V+", ."+Y);if(t.length){var n=t.hasClass(Z)?null:t;this.option("focusedElement",(0,y.getPublicElement)(n))}}},_findNonDisabledNodes:function(e){return e.not(function(){return(0,a.default)(this).children("."+N).hasClass(Z)})},_moveFocus:function(e,t){var n="up",i="down",o="first",a="last",r=this.option("rtlEnabled")?"right":"left",s=this.option("rtlEnabled")?"left":"right";this.$element().find("."+F).each(function(){E.default.stop(this,!0)});var l=this._findNonDisabledNodes(this._nodeElements());if(l&&l.length)switch(e){case n:var u=this._prevItem(l);this.option("focusedElement",(0,y.getPublicElement)(u)),t.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,u.find("."+N).get(0));break;case i:var c=this._nextItem(l);this.option("focusedElement",(0,y.getPublicElement)(c)),t.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,c.find("."+N).get(0));break;case o:var d=l.first();t.shiftKey&&this._showCheckboxes()&&this._updateSelectionToFirstItem(l,l.index(this._prevItem(l))),this.option("focusedElement",(0,y.getPublicElement)(d));break;case a:var h=l.last();t.shiftKey&&this._showCheckboxes()&&this._updateSelectionToLastItem(l,l.index(this._nextItem(l))),this.option("focusedElement",(0,y.getPublicElement)(h));break;case s:this._expandFocusedContainer();break;case r:this._collapseFocusedContainer();break;default:return void this.callBase.apply(this,arguments)}},_nodeElements:function(){return this.$element().find("."+V).not(":hidden")},_expandFocusedContainer:function(){var e=(0,a.default)(this.option("focusedElement"));if(e.length&&!e.hasClass(z)){var t=e.find("."+F).eq(0);if(t.hasClass(H)){var n=this._nextItem(this._findNonDisabledNodes(this._nodeElements()));return void this.option("focusedElement",(0,y.getPublicElement)(n))}var i=this._getNodeByElement(e.children("."+N));this._toggleExpandedState(i,!0)}},_getClosestNonDisabledNode:function(e){do e=e.parent().closest("."+V);while(e.children(".dx-treeview-item.dx-state-disabled").length);return e},_collapseFocusedContainer:function(){var e=(0,a.default)(this.option("focusedElement"));if(e.length){var t=e.find("."+F).eq(0);if(!e.hasClass(z)&&t.hasClass(H)){var n=this._getNodeByElement(e.children("."+N));this._toggleExpandedState(n,!1)}else{var i=this._getClosestNonDisabledNode(e);i.length&&this.option("focusedElement",(0,y.getPublicElement)(i))}}},updateDimensions:function(){var e=this,t=new M.Deferred;return this._scrollableContainer?this._scrollableContainer.update().done(function(){t.resolveWith(e)}):t.resolveWith(this),t.promise()},selectItem:function(e){this._updateItemSelection(!0,e)},unselectItem:function(e){this._updateItemSelection(!1,e)},expandItem:function(e){this._toggleExpandedState(e,!0)},collapseItem:function(e){this._toggleExpandedState(e,!1)},getNodes:function(){return this._dataAdapter.getTreeNodes()},getSelectedNodesKeys:function(){return this._dataAdapter.getSelectedNodesKeys()},selectAll:function(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!0):this._toggleSelectAll({value:!0})},unselectAll:function(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!1):this._toggleSelectAll({value:!1})},expandAll:function(){var e=this._dataAdapter;(0,v.each)(e.getData(),function(t,n){return e.toggleExpansion(n.internalFields.key,!0)}),this.repaint()},collapseAll:function(){(0,v.each)(this._dataAdapter.getExpandedNodesKeys(),function(e,t){this._toggleExpandedState(t,!1)}.bind(this))}});e.exports=te},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(23),s=i(r),l=n(620),u=n(621),c=n(14),d=i(c),h=n(199),p=i(h),f=n(1),g=n(3),_=n(16),m=i(_),v=n(6),y=n(253),x=n(105),b="dx-datagrid-group-panel",w="dx-group-panel-message",C="dx-group-panel-item",k="dx-toolbar-label",S="dx-datagrid-expand",I="dx-group-row",T=".dx-header-filter",D=function(){return{init:function(){this.callBase.apply(this,arguments),this._initGroupingHelper()},_initGroupingHelper:function(e){var t=this._grouping,n=this.option("grouping.autoExpandAll"),i=this.option("focusedRowEnabled"),o=e?e.remoteOperations:this.remoteOperations(),a=o.filtering&&o.sorting&&o.paging;!a||o.grouping||!n&&i?(!t||t instanceof l.GroupingHelper)&&(this._grouping=new u.GroupingHelper(this)):(!t||t instanceof u.GroupingHelper)&&(this._grouping=new l.GroupingHelper(this))},totalItemsCount:function(){var e=this,t=e.callBase();return t>0&&e._dataSource.group()&&e._dataSource.requireTotalCount()?t+e._grouping.totalCountCorrection():t},itemsCount:function(){return this._dataSource.group()?this._grouping.itemsCount()||0:this.callBase.apply(this,arguments)},allowCollapseAll:function(){return this._grouping.allowCollapseAll()},isGroupItemCountable:function(e){return this._grouping.isGroupItemCountable(e)},isRowExpanded:function(e){var t=this._grouping.findGroupInfo(e);return t?t.isExpanded:!this._grouping.allowCollapseAll()},collapseAll:function(e){return this._collapseExpandAll(e,!1)},expandAll:function(e){return this._collapseExpandAll(e,!0)},_collapseExpandAll:function(e,t){var n,i=this,o=i._dataSource,a=o.group(),r=s.default.normalizeSortingInfo(a||[]);if(r.length){for(n=0;n<r.length;n++)void 0===e||e===n?r[n].isExpanded=t:a&&a[n]&&(r[n].isExpanded=a[n].isExpanded);o.group(r),i._grouping.foreachGroups(function(n,i){void 0!==e&&e!==i.length-1||(n.isExpanded=t)},!1,!0),i.resetPagesCache()}return!0},refresh:function(){return this.callBase.apply(this,arguments),this._grouping.refresh.apply(this._grouping,arguments)},changeRowExpand:function(e){var t=this,n=t._dataSource;if(n.group())return n.beginLoading(),t._lastLoadOptions&&(t._lastLoadOptions.groupExpand=!0),t._changeRowExpandCore(e).always(function(){n.endLoading()})},_changeRowExpandCore:function(e){return this._grouping.changeRowExpand(e)},_hasGroupLevelsExpandState:function(e,t){if(e&&Array.isArray(e))for(var n=0;n<e.length;n++)if(e[n].isExpanded===t)return!0},_customizeRemoteOperations:function(e,t,n){var i=e.remoteOperations;e.storeLoadOptions.group?(i.grouping&&!e.isCustomLoading&&(i.groupPaging&&!this._hasGroupLevelsExpandState(e.storeLoadOptions.group,!0)||(i.paging=!1)),i.grouping||i.sorting&&i.filtering&&!e.isCustomLoading&&!this._hasGroupLevelsExpandState(e.storeLoadOptions.group,!1)||(i.paging=!1)):!e.isCustomLoading&&i.paging&&n.grouping&&this.resetCache(),this.callBase.apply(this,arguments)},_handleDataLoading:function(e){return this.callBase(e),this._initGroupingHelper(e),this._grouping.handleDataLoading(e)},_handleDataLoaded:function(e){return this._grouping.handleDataLoaded(e,this.callBase.bind(this))},_handleDataLoadedCore:function(e){return this._grouping.handleDataLoadedCore(e,this.callBase.bind(this))}}}();p.default.extend(D);var E=function(){return{init:function(){var e=this;e.callBase(),e.createAction("onRowExpanding"),e.createAction("onRowExpanded"),e.createAction("onRowCollapsing"),e.createAction("onRowCollapsed")},_beforeProcessItems:function(e){var t=this._columnsController.getGroupColumns();return e=this.callBase(e),e.length&&t.length&&(e=this._processGroupItems(e,t.length)),e},_processItem:function(e,t){return(0,f.isDefined)(e.groupIndex)&&(0,f.isString)(e.rowType)&&0===e.rowType.indexOf("group")?(e=this._processGroupItem(e,t),t.dataIndex=0):e=this.callBase.apply(this,arguments),e},_processGroupItem:function(e){return e},_processGroupItems:function(e,t,n){var i,o,a,r,s=this,l=s._columnsController.getGroupColumns(),u=l[l.length-t];if(n||(i=s.option("scrolling.mode"),n={collectContinuationItems:"virtual"!==i&&"infinite"!==i,resultItems:[],path:[],values:[]}),r=n.resultItems,n.data&&(!n.collectContinuationItems&&n.data.isContinuation||r.push({rowType:"group",data:n.data,groupIndex:n.path.length-1,isExpanded:!!n.data.items,key:n.path.slice(0),values:n.values.slice(0)})),e)if(0===t)r.push.apply(r,e);else for(o=0;o<e.length;o++)a=e[o],a&&"items"in a?(n.data=a,n.path.push(a.key),n.values.push(u&&u.deserializeValue&&!u.calculateDisplayValue?u.deserializeValue(a.key):a.key),s._processGroupItems(a.items,t-1,n),n.data=void 0,n.path.pop(),n.values.pop()):r.push(a);return r},publicMethods:function(){return this.callBase().concat(["collapseAll","expandAll","isRowExpanded","expandRow","collapseRow"])},collapseAll:function(e){var t=this._dataSource;t&&t.collapseAll(e)&&(t.pageIndex(0),t.reload())},expandAll:function(e){var t=this._dataSource;t&&t.expandAll(e)&&(t.pageIndex(0),t.reload())},changeRowExpand:function(e){var t=this,n=t.isRowExpanded(e),i={key:e,
87expanded:n};return t.executeAction(n?"onRowCollapsing":"onRowExpanding",i),i.cancel?(new v.Deferred).resolve():(0,v.when)(t._changeRowExpandCore(e)).done(function(){i.expanded=!n,t.executeAction(n?"onRowCollapsed":"onRowExpanded",i)})},_changeRowExpandCore:function(e){var t,n=this,i=this._dataSource;if(i)return t=new v.Deferred,(0,v.when)(i.changeRowExpand(e)).done(function(){n.load().done(t.resolve).fail(t.reject)}).fail(t.reject),t},isRowExpanded:function(e){var t=this._dataSource;return t&&t.isRowExpanded(e)},expandRow:function(e){return this.isRowExpanded(e)?(new v.Deferred).resolve():this.changeRowExpand(e)},collapseRow:function(e){return this.isRowExpanded(e)?this.changeRowExpand(e):(new v.Deferred).resolve()},optionChanged:function(e){"grouping"===e.name&&(e.name="dataSource"),this.callBase(e)}}}(),A=function(e,t){var n=this._columnsController;switch(t.itemData.value){case"group":var i=n._dataSource.group()||[];n.columnOption(e.dataField,"groupIndex",i.length);break;case"ungroup":n.columnOption(e.dataField,"groupIndex",-1);break;case"ungroupAll":this.component.clearGrouping()}},O=function(){return{_getToolbarItems:function(){var e=this.callBase();return this._appendGroupingItem(e)},_appendGroupingItem:function(e){var t=this,n=!1,i=function(e){var i=(0,a.default)(e.itemElement).find("."+b);t._updateGroupPanelContent(i),(0,y.registerKeyboardAction)("groupPanel",t,i,void 0,t._handleActionKeyDown.bind(t)),n&&t.renderCompleted.fire(),n=!0};if(t._isGroupPanelVisible()){var o={html:"<div class='"+b+"'></div>",name:"groupPanel",onItemRendered:i,location:"before",locateInMenu:"never",sortIndex:1};e.push(o)}return e},_handleActionKeyDown:function(e){var t=e.event,n=(0,a.default)(t.target),i=n.closest("."+C).index(),o=this._columnsController.getGroupColumns()[i],r=o&&o.index;n.is(T)?this.getController("headerFilter").showHeaderFilterMenu(r,!0):this._processGroupItemAction(r),t.preventDefault()},_isGroupPanelVisible:function(){var e,t=this.option("groupPanel");return t&&(e=t.visible,"auto"===e&&(e="desktop"===m.default.current().deviceType)),e},_renderGroupPanelItems:function(e,t){var n=this;e.empty(),(0,g.each)(t,function(t,i){n._createGroupPanelItem(e,i)}),(0,x.restoreFocus)(this)},_createGroupPanelItem:function(e,t){var n=(0,a.default)("<div>").addClass(t.cssClass).addClass(C).data("columnData",t).appendTo(e).text(t.caption);return(0,x.setTabIndex)(this,n),n},_columnOptionChanged:function(e){if(!this._requireReady&&!s.default.checkChanges(e.optionNames,["width","visibleWidth"])){var t=this.element(),n=t&&t.find("."+b);n&&n.length&&(this._updateGroupPanelContent(n),this.renderCompleted.fire())}this.callBase()},_updateGroupPanelContent:function(e){var t=this,n=t.getController("columns").getGroupColumns(),i=t.option("groupPanel");t._renderGroupPanelItems(e,n),i.allowColumnDragging&&!n.length&&((0,a.default)("<div>").addClass(w).text(i.emptyPanelText).appendTo(e),e.closest("."+k).css("maxWidth","none"),t.updateToolbarDimensions())},allowDragging:function(e){var t=this.option("groupPanel");return this._isGroupPanelVisible()&&t.allowColumnDragging&&e&&e.allowGrouping},getColumnElements:function(){var e=this.element();return e&&e.find("."+C)},getColumns:function(){return this.getController("columns").getGroupColumns()},getBoundingRect:function(){var e,t=this,n=t.element();return n&&n.find("."+b).length?(e=n.offset(),{top:e.top,bottom:e.top+n.height()}):null},getName:function(){return"group"},getContextMenuItems:function(e){var t,n=this,i=n.option("grouping.contextMenuEnabled"),o=(0,a.default)(e.targetElement).closest("."+C);if(o.length&&(e.column=o.data("columnData")),i&&e.column){var r=e.column,s=!(0,f.isDefined)(r.allowGrouping)||r.allowGrouping;if(s){var l=(0,f.isDefined)(r.groupIndex)&&r.groupIndex>-1,u=n.option("grouping.texts"),c=A.bind(n,r);t=[{text:u.ungroup,value:"ungroup",disabled:!l,onItemClick:c},{text:u.ungroupAll,value:"ungroupAll",onItemClick:c}]}}return t},isVisible:function(){return this.callBase()||this._isGroupPanelVisible()},optionChanged:function(e){"groupPanel"===e.name?(this._invalidate(),e.handled=!0):this.callBase(e)}}}();t.GroupingHeaderPanelExtender=O;var B=function(){return{getContextMenuItems:function(e){var t,n=this,i=n.option("grouping.contextMenuEnabled");if(i&&e.row&&"group"===e.row.rowType){var o=n._columnsController,a=o.columnOption("groupIndex:"+e.row.groupIndex);if(a&&a.allowGrouping){var r=n.option("grouping.texts"),s=A.bind(n,a);t=[],t.push({text:r.ungroup,value:"ungroup",onItemClick:s},{text:r.ungroupAll,value:"ungroupAll",onItemClick:s})}}return t},_rowClick:function(e){var t=this,n=t.option("grouping.expandMode"),i=t.option("scrolling.mode"),o="infinite"!==i&&"rowClick"===n&&(0,a.default)(e.event.target).closest("."+I).length,r=(0,a.default)(e.event.target).closest("."+S).length;(o||r)&&t._changeGroupRowState(e),t.callBase(e)},_changeGroupRowState:function(e){var t=this.getController("data"),n=t.items()[e.rowIndex],i=this._columnsController.columnOption("groupIndex:"+n.groupIndex,"allowCollapsing");("data"===n.rowType||"group"===n.rowType&&i!==!1)&&(t.changeRowExpand(n.key),e.event.preventDefault(),e.handled=!0)}}}(),P=function(){return{getContextMenuItems:function(e){var t=this,n=t.option("grouping.contextMenuEnabled"),i=t.callBase(e);if(n&&e.row&&("header"===e.row.rowType||"detailAdaptive"===e.row.rowType)){var o=e.column;if(!o.command&&(!(0,f.isDefined)(o.allowGrouping)||o.allowGrouping)){var a=t.option("grouping.texts"),r=(0,f.isDefined)(o.groupIndex)&&o.groupIndex>-1,s=A.bind(t,o);i=i||[],i.push({text:a.groupByThisColumn,value:"group",beginGroup:!0,disabled:r,onItemClick:s}),o.showWhenGrouped&&i.push({text:a.ungroup,value:"ungroup",disabled:!r,onItemClick:s}),i.push({text:a.ungroupAll,value:"ungroupAll",onItemClick:s})}}return i}}}();s.default.registerModule("grouping",{defaultOptions:function(){return{grouping:{autoExpandAll:!0,allowCollapsing:!0,contextMenuEnabled:!1,expandMode:"buttonClick",texts:{groupContinuesMessage:d.default.format("dxDataGrid-groupContinuesMessage"),groupContinuedMessage:d.default.format("dxDataGrid-groupContinuedMessage"),groupByThisColumn:d.default.format("dxDataGrid-groupHeaderText"),ungroup:d.default.format("dxDataGrid-ungroupHeaderText"),ungroupAll:d.default.format("dxDataGrid-ungroupAllText")}},groupPanel:{visible:!1,emptyPanelText:d.default.format("dxDataGrid-groupPanelEmptyText"),allowColumnDragging:!0}}},extenders:{controllers:{data:E,columns:{_getExpandColumnOptions:function(){var e=this.callBase.apply(this,arguments);return e.cellTemplate=s.default.getExpandCellTemplate(),e}}},views:{headerPanel:O,rowsView:B,columnHeadersView:P}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(20),a=n(40),r=n(3),s=n(0),l=n(80),u=n(23),c=n(351),d=n(254),h=n(41),p=i(h),f=n(6),g=function(e,t){var n=new f.Deferred,i=(0,s.extend)({skip:0,take:1,requireTotalCount:!0},t);return e.load(i).done(function(e,t){n.resolve(t&&t.totalCount)}).fail(n.reject.bind(n)),n};t.GroupingHelper=c.GroupingHelper.inherit(function(){var e=function(e,t,n){return e.foreachGroups(function(e){if(!e.isExpanded)return t(e)},!1,!1,n,!0)},t=function(t,n){var i=0,o=n||0;return n&&(e(t,function(e){return!(e.offset-i>=n)&&void(i+=e.count-1)}),o+=i),o},n=function e(t,n,i,o,a,r){var s,l,u,c=0,d=!1;for(s=0;s<n.length;s++){if(l=n[s],void 0!==l.items){i.push(l.key);var h=t.findGroupInfo(i);h&&!h.isExpanded?(l.collapsedItems=l.items,l.items=null,o+=h.count,r--,r<0&&c++,a&&(d=!0)):l.items&&(u=e(t,l.items,i,o,a,r),a&&(u.offset-o>1?l.isContinuation=!0:d=!0),o=u.offset,r=u.take,r<0&&(l.items.length?l.isContinuationOnNextPage=!0:c++)),i.pop()}else a&&(d=!0),o++,r--,r<0&&c++;a=!1}return d&&n.splice(0,1),c&&n.splice(-c,c),{offset:o,take:r}},i=function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!(0,a.keysEqual)(null,e[n],t[n]))return!1;return!0},h=function e(t,n,o,a,r){var s,l;if(n){for(s=0;s<n.length;s++)if(l=n[s],"key"in l&&void 0!==l.items){o.push(l.key),r&&i(r.path,o)&&!l.isContinuation&&(r.offset=a);var u=t.findGroupInfo(o);u&&!l.isContinuation&&(u.offset=a),u&&!u.isExpanded?a+=u.count:a=e(t,l.items,o,a,r),o.pop()}else a++;return a}},_=function(e,t){var n,i;t.group&&(n=(0,u.normalizeSortingInfo)(t.group),i=(0,u.normalizeSortingInfo)(e.sort),e.sort=(0,l.arrangeSortingInfo)(n,i),delete t.group)},m=function(e,t,n){var i,o,a,r=(0,u.normalizeSortingInfo)(n||t.group),s=[];for(i=0;i<e.length;i++){for(a=[],o=0;o<=i;o++)a.push([r[o].selector,i===o?"<>":"=",e[o]]);s.push((0,u.combineFilters)(a))}return s=(0,u.combineFilters)(s,"or"),(0,u.combineFilters)([s,t.filter])},v=function e(t,n){var i,o=t.count||t.items.length;if(!t.count&&n>1)for(o=0,i=0;i<t.items.length;i++)o+=e(t.items[i],n-1);return o};return{handleDataLoading:function(n){var i,o,a=this,l=n.storeLoadOptions,u=[],c=0,d=!1,h=n.loadOptions.group,p=0;_(l,n.loadOptions),n.group=n.group||h,n.isCustomLoading||(i=(0,s.extend)({},l),i.skip=t(a,l.skip),i.skip&&i.take&&h&&(i.skip--,i.take++,d=!0),i.take&&h&&(o=i.take,i.take++),e(a,function(e){return!(e.offset>=i.skip+i.take+p)&&void(e.offset>=i.skip+p&&e.count&&(p+=e.count-1,u.push(e),c+=e.count))}),(0,r.each)(u,function(){i.filter=m(this.path,i,h)}),n.storeLoadOptions=i,n.collapsedGroups=u,n.collapsedItemsCount=c,n.skip=i.skip||0,n.skipFirstItem=d,n.take=o)},handleDataLoaded:function(e,t){function i(e,t,n,a,r){if(e&&t.length&&n.length){var s,l,u=(0,o.toComparable)(t[0],!0);for(s=0;s<e.length&&(l=(0,o.toComparable)(e[s].key,!0),!(r>=a.offset||u===l));s++)r+=v(e[s],n.length);e.length&&u===l||e.splice(s,0,{key:t[0],items:[],count:1===t.length?a.count:void 0}),i(e[s].items,t.slice(1),n.slice(1),a,r)}}var a,r,s=this,c=e.data,d=e.collapsedGroups,h=(0,u.normalizeSortingInfo)(e.group),f=h.length;if(e.collapsedItemsCount&&e.extra&&e.extra.totalCount>=0&&(e.extra.totalCount+=e.collapsedItemsCount),t(e),f){if(r=(0,p.default)(c),(0,l.multiLevelGroup)(r,h).enumerate().done(function(e){c=e}),d)for(a=0;a<d.length;a++)i(c,d[a].path,h,d[a],e.skip);e.isCustomLoading||n(s,c,[],e.skip,e.skipFirstItem,e.take),e.data=c}},isGroupItemCountable:function(e){return null===e.items},updateTotalItemsCount:function(){var t=0;e(this,function(e){e.count&&(t-=e.count-1)}),this.callBase(t)},changeRowExpand:function(e){var n,i=this,o=i._dataSource,a=o.beginPageIndex?o.beginPageIndex():o.pageIndex(),r=o.items(),s=t(i,a*o.pageSize()),l=i.findGroupInfo(e);return n=l&&!l.isExpanded?(new f.Deferred).resolve(l.count):g(o,{filter:(0,d.createGroupFilter)(e,{filter:o.filter(),group:o.group()})}),(0,f.when)(n).done(function(t){t=parseInt(t.length?t[0]:t),l?(h(i,r,[],s),l.isExpanded=!l.isExpanded,l.count=t):(l={offset:-1,count:t,path:e,isExpanded:!1},h(i,r,[],s,l),l.offset>=0&&i.addGroupInfo(l)),i.updateTotalItemsCount()}).fail(function(){o.fireEvent("loadError",arguments)})},allowCollapseAll:function(){return!1},refresh:function(t,n,i){var o=this,a=t.storeLoadOptions,r=o._dataSource;if(this.callBase.apply(this,arguments),n||i.reload)return e(o,function(e){var t=g(r,{filter:(0,d.createGroupFilter)(e.path,a)}),n=g(r,{filter:(0,c.createOffsetFilter)(e.path,a)});return(0,f.when)(n,t).done(function(t,n){t=parseInt(t.length?t[0]:t),n=parseInt(n.length?n[0]:n),e.offset=t,e.count!==n&&(e.count=n,o.updateTotalItemsCount())})},!0)}}}())},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(0),a=n(3),r=n(23),s=n(351),l=n(254),u=n(17),c=i(u),d=n(35),h=n(6);t.GroupingHelper=s.GroupingHelper.inherit(function(){function e(e,t,n,i){var o=t.items[i],a=e.skips&&e.skips[n],r=e.takes&&e.takes[n],s=i===t.items.length-1,l=0===i,u=l&&a||0,c=o.count>r+u;l&&void 0!==a&&(o.isContinuation=!0),s&&void 0!==r&&c&&(o.isContinuationOnNextPage=!0)}function t(e,t,n){var i=n-1,o=e.group?e.group.length:0;t.skip=e.skips&&e.skips[i],e.takes&&void 0!==e.takes[i]&&(o===n?t.take=t.count?t.count-(t.skip||0):0:t.take=0,t.take+=e.takes[i])}function n(e){return!Array.isArray(e)}function i(e){n(e.data)||(e.data=new h.Deferred)}function u(e,o,a,r,s,l){o.isCustomLoading||(r={},_(e,l,a,r,[]),t(o,r,a));var u=o.group?o.group.length:0;r.paths.length&&u-a>0?(i(o),p(e,o,r,a,s,l)):r.paths.length&&o.storeLoadOptions.group?(i(o),f(e,o,r,l)):n(o.data)&&o.data.resolve(l)}function p(t,n,i,o,r,s){var c=n.group||[],d=c[r+1],p=[];(0,a.each)(i.paths,function(o){var a={requireTotalCount:!1,requireGroupCount:!0,group:[d],groupSummary:n.storeLoadOptions.groupSummary,filter:(0,l.createGroupFilter)(i.paths[o],{filter:n.storeLoadOptions.filter,group:c})};0===o&&(a.skip=i.skip||0),o===i.paths.length-1&&(a.take=i.take);var s=0===a.take?[]:t._dataSource.loadFromStore(a);(0,h.when)(s).done(function(t){var a=i.items[o];e(n,i,r,o),a.items=t}),p.push(s)}),h.when.apply(null,p).done(function(){v(t,n,s,o+1),u(t,n,o+1,i,r+1,s)})}function f(t,n,i,s){var u=[],c=n.group||[];(0,a.each)(i.paths,function(e,t){u.push((0,l.createGroupFilter)(t,{group:n.isCustomLoading?n.storeLoadOptions.group:c}))});var d=n.storeLoadOptions.filter;n.storeLoadOptions.isLoadingAll||(d=(0,r.combineFilters)([d,(0,r.combineFilters)(u,"or")]));var p=(0,o.extend)({},n.storeLoadOptions,{requireTotalCount:!1,requireGroupCount:!1,group:null,sort:c.concat((0,r.normalizeSortingInfo)(n.storeLoadOptions.sort||[])),filter:d}),f=t._dataSource.isLastLevelGroupItemsPagingLocal();f||(p.skip=i.skip,p.take=i.take),(0,h.when)(0===i.take?[]:t._dataSource.loadFromStore(p)).done(function(o,r){f&&(o=t._dataSource.sortLastLevelGroupItems(o,c,i.paths),o=i.skip?o.slice(i.skip):o,o=i.take?o.slice(0,i.take):o),(0,a.each)(i.items,function(t,a){var r=a.count-(0===t&&i.skip||0),s=o.splice(0,r);e(n,i,c.length-1,t),a.items=s}),n.data.resolve(s)}).fail(n.data.reject)}var g=function(e,t,n){return e.foreachGroups(function(e,n){if(e.isExpanded)return t(e,n)},!0,!1,n,n)},_=function e(t,n,i,o,a,r,s){var l,u,c,d;if(o.items=o.items||[],o.paths=o.paths||[],o.count=o.count||0,o.lastCount=o.lastCount||0,i)for(l=0;l<n.length;l++)u=n[l],void 0!==u.items&&(a.push(u.key),r?d=!0:(c=t.findGroupInfo(a),d=c&&c.isExpanded),d?u.items?e(t,u.items,i-1,o,a,r,s):1!==i||!u.count||r&&!s||(o.items.push(u),o.paths.push(a.slice(0)),o.count+=o.lastCount,o.lastCount=u.count):(u.collapsedItems=u.items,u.items=null),a.pop())},m=function(e,t,n,i,o){var a,r=e.findGroupInfo(i);r?(n?r.count=t.count>0?t.count:t.items&&t.items.length||0:t.count=r.count||t.count,r.offset=o):(n&&(a=t.count>0?t.count:t.items.length),e.addGroupInfo({isExpanded:e._isGroupExpanded(i.length-1),path:i.slice(0),offset:o,count:a||0}))},v=function e(t,n,i,o,a,r,s){var l,u,c,d=n.group?n.group.length:0,h=d===o,p=n.remoteOperations.paging,f=0,g=0;if(a=a||0,r=r||[],p&&!s&&(f=0===a?n.skip||0:n.skips[a-1]||0),a>=o)return i.length;for(c=0;c<i.length;c++)if(l=i[c]){if(r.push(l.key),!l.count&&!l.items||void 0===l.items)return-1;if(m(t,l,h,r,f+c),u=l.items?e(t,n,l.items,o,a+1,r,c):l.count||-1,u<0)return-1;g+=u,r.pop()}return g},y=function(e,t){return e&&e.length&&e[t]&&!!e[t].isExpanded},x=function(e,t,n){var i,o,a=n;for(i=0;i<e.length;i++)o=e[i].offset+1,i>0&&(o+=e[i-1].childrenTotalCount,t&&(o+=b(a,t,o,i-1)*i)),a+=o;return a},b=function(e,t,n,i){if(i=i||0,t>1&&n>0){var o=e-Math.floor(e/t)*t||t;return o+=n-i-2,o<0&&(o+=t),Math.floor(o/(t-i-1))}return 0},w=function(e,t){var n=new h.Deferred,i=!(!t.group||!t.group.length),a=(0,o.extend)({skip:0,take:1,requireGroupCount:i,requireTotalCount:!i},t,{group:i?t.group:null});return e.load(a).done(function(e,t){var o=t&&(i?t.groupCount:t.totalCount);if(!isFinite(o))throw d.errors.Error(i?"E4022":"E4021");n.resolve(o)}).fail(n.reject.bind(n)),n};return{updateTotalItemsCount:function(e){var t=0,n=e.extra&&e.extra.totalCount||0,i=e.extra&&e.extra.groupCount||0,o=this._dataSource.pageSize(),a=this._isVirtualPaging();g(this,function(e){e.childrenTotalCount=0}),g(this,function(e,n){var i=x(n,a?0:o,t),r=e.count+e.childrenTotalCount;a||(r+=b(i,o,r,n.length-1)),n[n.length-2]?n[n.length-2].childrenTotalCount+=r:t+=r}),this.callBase(t-n+i)},_isGroupExpanded:function(e){var t=this._dataSource.group();return y(t,e)},_updatePagingOptions:function(e,t){var n=this,i=n._isVirtualPaging(),o=n._dataSource.pageSize(),a=[],r=[],s=0,l=0;e.take&&(g(this,function(e){e.childrenTotalCount=0,e.skipChildrenTotalCount=0}),g(n,function(n,u){var c,d,h=0,p=0,f=x(u,i?0:o,l),g=0,_=0,m=n.count+n.childrenTotalCount,v=m;t&&t(n,f),c=e.skip-f,f<=e.skip+e.take&&m&&(d=e.take,i||(g=b(f,o,m,u.length-1),m+=g*u.length,v+=g,o&&c>=0&&(h=u.length,p=u.length-1,_=Math.floor(c/o))),c>=0?(f+m>e.skip&&a.unshift(c-_*h-n.skipChildrenTotalCount),f+m>=e.skip+d&&r.unshift(d-h-n.childrenTotalCount+n.skipChildrenTotalCount)):f+m>=e.skip+d&&r.unshift(d+c-n.childrenTotalCount)),f<=e.skip&&(u[u.length-2]?u[u.length-2].skipChildrenTotalCount+=Math.min(v,c+1-_*p):s+=Math.min(v,c+1)),f<=e.skip+d&&(m=Math.min(v,c+d-(_+1)*p),u[u.length-2]?u[u.length-2].childrenTotalCount+=m:l+=m)}),e.skip-=s,e.take-=l-s),e.skips=a,e.takes=r},changeRowExpand:function(e){var t=this,n=t.findGroupInfo(e),i=t._dataSource,o=i.remoteOperations().groupPaging,a=(0,r.normalizeSortingInfo)(i.group());return n?(n.isExpanded=!n.isExpanded,o&&n.isExpanded&&e.length<a.length?w(i,{filter:(0,l.createGroupFilter)(e,{filter:i.filter(),group:i.group()}),group:[a[e.length]]}).done(function(e){n.count=e}):(new h.Deferred).resolve()):(new h.Deferred).reject()},handleDataLoading:function(e){var t=this,n=e.storeLoadOptions,i=(0,r.normalizeSortingInfo)(n.group||e.loadOptions.group);if(!e.isCustomLoading&&i.length){if(e.remoteOperations.grouping){var o=t._dataSource.remoteOperations().paging;n.group=(0,r.normalizeSortingInfo)(n.group),n.group.forEach(function(e,t){var i=t===n.group.length-1;e.isExpanded=!o||!i})}e.group=e.group||i,e.remoteOperations.paging?(e.skip=n.skip,e.take=n.take,n.requireGroupCount=!0,n.group=i.slice(0,1),t._updatePagingOptions(e),n.skip=e.skip,n.take=e.take):t.foreachGroups(function(e){e.count=0})}},handleDataLoadedCore:function(e,t){var n,i=this,o=(0,r.normalizeSortingInfo)(e.storeLoadOptions.group||e.loadOptions.group).length,a=e.group?e.group.length:0,s={};if(e.isCustomLoading)t(e),_(i,e.data,o,s,[],e.isCustomLoading,e.storeLoadOptions.isLoadingAll);else{if(n=v(i,e,e.data,o),n<0)throw c.default.Error("E1037");if(e.remoteOperations.paging||o&&e.extra&&e.loadOptions.requireTotalCount&&(e.extra.totalCount=n,e.extra.groupCount=e.data.length),a&&e.storeLoadOptions.requireGroupCount&&!isFinite(e.extra.groupCount))throw d.errors.Error("E4022");i.updateTotalItemsCount(e),e.remoteOperations.paging||i._updatePagingOptions(e),t(e),e.remoteOperations.paging||i._processPaging(e,o)}u(i,e,o,s,0,e.data)},_processSkips:function(e,t,n){if(n){var i=e[0],o=t[0],a=i&&i.items;void 0!==o&&(i.isContinuation=!0,a&&(i.items=a.slice(o),this._processSkips(i.items,t.slice(1),n-1)))}},_processTakes:function(e,t,n,i,o){if(i&&e){o=o||[];var a=e[e.length-1],r=a&&a.items,s=n[0],l=t[0];if(a){var u=a.count-(a.isContinuation&&l||0)||r.length;void 0!==s&&u>s&&(a.isContinuationOnNextPage=!0,o.forEach(function(e){e.isContinuationOnNextPage=!0}),r&&(r=r.slice(0,s),a.items=r)),o.push(a),this._processTakes(r,t.slice(1),n.slice(1),i-1,o)}}},_processPaging:function(e,t){this._processSkips(e.data,e.skips,t),this._processTakes(e.data,e.skips,e.takes,t)},isLastLevelGroupItemsPagingLocal:function(){return!1},sortLastLevelGroupItems:function(e){return e},refresh:function(e,t,n){function i(e,t){t.length===a+1&&(e.isExpanded=o)}var o,a,u=this,c=u._dataSource,d=e.storeLoadOptions,p=e.group||e.storeLoadOptions.group,f=(0,r.normalizeSortingInfo)(u._group);for(a=0;a<f.length;a++)o=y(p,a),y(u._group,a)!==o&&u.foreachGroups(i);if(u.callBase.apply(this,arguments),p&&e.remoteOperations.paging&&(t||n.reload))return g(u,function(t){var n=w(c,{filter:(0,l.createGroupFilter)(t.path,{filter:d.filter,group:p}),group:p.slice(t.path.length)}),i=w(c,{filter:(0,s.createOffsetFilter)(t.path,{filter:d.filter,group:p}),group:p.slice(t.path.length-1,1)});return(0,h.when)(i,n).done(function(n,i){n=parseInt(n.length?n[0]:n),i=parseInt(i.length?i[0]:i),t.offset=n,t.count!==i&&(t.count=i,u.updateTotalItemsCount(e))})},!0)}}}())},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(352),s=i(r);a.default.registerModule("masterDetail",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}n(624);var o=n(23),a=i(o),r=n(355),s=i(r),l=n(0);a.default.registerModule("editing",(0,l.extend)(!0,{},s.default,{extenders:{controllers:{data:{_changeRowExpandCore:function(e){var t=this._editingController;Array.isArray(e)&&t&&t.refresh(),this.callBase.apply(this,arguments)}}}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(353),s=i(r);a.default.registerModule("editorFactory",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(356),s=i(r);a.default.registerModule("validating",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(199),s=i(r),l=n(357),u=i(l);a.default.registerModule("virtualScrolling",u.default),s.default.extend(u.default.extenders.dataSourceAdapter)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(359),s=i(r);a.default.registerModule("filterRow",s.default)},function(e,t,n){var i=n(2),o=n(4).noop,a=n(12).getPublicElement,r=n(76),s=n(0).extend,l=n(104),u="dx-context-menu-content-delimiter",c="dx-submenu",d=l.inherit({_getDefaultOptions:function(){return s(this.callBase(),{orientation:"horizontal",tabIndex:null,onHoverStart:o})},_initDataAdapter:function(){this._dataAdapter=this.option("_dataAdapter"),this._dataAdapter||this.callBase()},_renderContentImpl:function(){this._renderContextMenuOverlay(),this.callBase();var e=this._dataAdapter.getNodeByKey(this.option("_parentKey"));e&&this._renderItems(this._getChildNodes(e)),this._renderDelimiter()},_renderDelimiter:function(){this.$contentDelimiter=i("<div>").appendTo(this._itemContainer()).addClass(u)},_getOverlayOptions:function(){return s(this.callBase(),{onPositioned:this._overlayPositionedActionHandler.bind(this)})},_overlayPositionedActionHandler:function(e){this._showDelimiter(e)},_hoverEndHandler:function(e){this.callBase(e),this._toggleFocusClass(!1,e.currentTarget)},_isMenuHorizontal:function(){return"horizontal"===this.option("orientation")},_hoverStartHandler:function(e){var t=this.option("onHoverStart");t(e),this.callBase(e),this._toggleFocusClass(!0,e.currentTarget)},_drawSubmenu:function(e){this._actions.onShowing({rootItem:a(e),submenu:this}),this.callBase(e),this._actions.onShown({rootItem:a(e),submenu:this})},_hideSubmenu:function(e){this._actions.onHiding({cancel:!0,rootItem:a(e),submenu:this}),this.callBase(e),this._actions.onHidden({rootItem:a(e),submenu:this})},_showDelimiter:function(e){if(this.$contentDelimiter){var t=this._itemContainer().children("."+c).eq(0),n=this.option("position").of,i={of:t},o=e.position,a=o.v.location,s=o.h.location,l=n.offset(),u=Math.round(l.left),d=Math.round(l.top),h=n.width(),p=n.height(),f=t.width(),g=t.height();this.$contentDelimiter.css("display","block"),this.$contentDelimiter.width(this._isMenuHorizontal()?h<f?h-2:f:2),this.$contentDelimiter.height(this._isMenuHorizontal()?2:p<g?p-2:g),this._isMenuHorizontal()?a>d?Math.round(s)===u?(i.offset="1 -1",i.at=i.my="left top"):(i.offset="-1 -1",i.at=i.my="right top"):(this.$contentDelimiter.height(5),Math.round(s)===u?(i.offset="1 4",i.at=i.my="left bottom"):(i.offset="-1 2",i.at=i.my="right bottom")):s>u?Math.round(a)===d?(i.offset="-1 1",i.at=i.my="left top"):(i.offset="-1 -1",i.at=i.my="left bottom"):Math.round(a)===d?(i.offset="1 1",i.at=i.my="right top"):(i.offset="1 -1",i.at=i.my="right bottom"),r.setup(this.$contentDelimiter,i)}},_getContextMenuPosition:function(){return this.option("position")},isOverlayVisible:function(){return this._overlay.option("visible")},getOverlayContent:function(){return this._overlay.$content()}});e.exports=d},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(362),s=i(r);a.default.registerModule("headerFilter",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(364),s=i(r);a.default.registerModule("filterSync",s.default)},function(e,t,n){function i(e,t){var n=a("<div>").addClass(l),i=a("<div>").addClass(u),o=e.value||[],h=function(e){return e&&e.length>0?e[0]:null},p=function(e){return e&&2===e.length?e[1]:null};t.append(n),t.append(a("<span>").addClass(c).text(d)),t.append(i),t.addClass(s),this._editorFactory.createEditor.call(this,n,r({},e.field,e,{value:h(o),parentType:"filterBuilder",setValue:function(t){o=[t,p(o)],e.setValue(o)}})),this._editorFactory.createEditor.call(this,i,r({},e.field,e,{value:p(o),parentType:"filterBuilder",setValue:function(t){o=[h(o),t],e.setValue(o)}}))}function o(e){return{name:"between",caption:e,icon:"range",valueSeparator:d,dataTypes:["number","date","datetime"],editorTemplate:i}}var a=n(2),r=n(0).extend,s="dx-filterbuilder-range",l=s+"-start",u=s+"-end",c=s+"-separator",d="\u2013";t.getConfig=o},function(e,t,n){var i={"=":"equal","<>":"notequal","<":"less","<=":"lessorequal",">":"greater",">=":"greaterorequal",notcontains:"doesnotcontain",contains:"contains",startswith:"startswith",endswith:"endswith",isblank:"isblank",isnotblank:"isnotblank"},o={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",isblank:"isBlank",isnotblank:"isNotBlank",between:"between"};e.exports={getIconByFilterOperation:function(e){return i[e]},getNameByFilterOperation:function(e){return o[e]}}},function(e,t,n){function i(e){var t=function(e,t){var n=[],i=e.length-1;return e&&e.forEach(function(e,o){if(h.isCondition(e)||h.isGroup(e)){var a=h.getFilterExpression(e,[t],[],"headerFilter");n.push(a)}else n.push(h.getFilterExpression([t.dataField,"=",e],[t],[],"headerFilter"));o!==i&&n.push("or")}),1===n.length&&(n=n[0]),n},n=function(e,t){return t?t+"/"+e:e},i=function e(t,i){var o=[];return t.forEach(function(t){if(t.items){var a=e(t.items,n(t.text,i));o=o.concat(a)}t.selected&&o.push(n(t.text,i))}),o},o=e&&e.getController("headerFilter"),a=function(t){var n=t.value,a=e.columnOption(t.field.dataField),r=a&&a.headerFilter,s=a&&a.lookup;if(r&&r.dataSource||s&&s.dataSource){a=u({},a,{filterType:"include",filterValues:[n]});var l=o.getDataSource(a);l.paginate=!1;var h=r&&r.dataSource;!h&&s.items&&(l.store=s.items);var p=new c.DataSource(l),f=new d.Deferred;return p.load().done(function(e){f.resolve(i(e)[0])}),f}var g=o.getHeaderItemText(n,a,0,e.option("headerFilter"));return g};return{dataTypes:["string","date","datetime","number","boolean","object"],calculateFilterExpression:t,editorTemplate:function(t,n){var i=s("<div>").addClass("dx-filterbuilder-item-value-text").appendTo(n),a=u(!0,{},e.columnOption(t.field.dataField));(0,r.renderValueText)(i,t.text&&t.text.split("|"));var l=function(e){t.setValue(e)};return a.filterType="include",a.filterValues=t.value?t.value.slice():[],o.showHeaderFilterMenuBase({columnElement:i,column:a,apply:function(){l(this.filterValues),o.hideHeaderFilterMenu()},onHidden:function(){t.closeEditor()},isFilterBuilder:!0}),n},customizeText:a}}function o(e){return u(i(e),{name:"anyof",icon:"selectall",caption:l.format("dxFilterBuilder-filterOperationAnyOf")})}function a(e){var t=i(e);return u({},t,{calculateFilterExpression:function(e,n){var i=t.calculateFilterExpression(e,n);return i&&0!==i.length?"!"===i[0]?i:["!",i]:null},name:"noneof",icon:"unselectall",caption:l.format("dxFilterBuilder-filterOperationNoneOf")})}var r=n(365),s=n(2),l=n(14),u=n(0).extend,c=n(44),d=n(6),h=n(200);t.anyOf=o,t.noneOf=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(366),s=i(r);a.default.registerModule("filterBuilder",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(368),s=i(r);a.default.registerModule("filterPanel",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(369),s=i(r);a.default.registerModule("search",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(370),s=i(r);a.default.registerModule("pager",s.default)},function(e,t,n){var i=n(2),o=n(5),a=n(15),r=n(45),s=n(9),l=n(4),u=n(3).each,c=n(1),d=n(0).extend,h=n(19),p=n(24),f=n(14),g=n(18),_=n(95),m=n(117),v=n(8),y=n(105),x=4,b="dx-pager",w="dx-page",C="."+w,k="dx-pages",S="dx-light-mode",I="dx-light-pages",T="dx-page-index",D="dx-pages-count",E="dx-selection",A="dx-separator",O="dx-page-sizes",B="dx-page-size",P="."+B,M="dx-navigate-button",R="dx-prev-button",V="dx-next-button",F="dx-info",L="dx-info-text",H="dx-button-disable",z=a.inherit({ctor:function(e,t){var n=this;n.index=t,n._$page=i("<div>").text(e).addClass(w)},value:function(e){var t=this;if(!c.isDefined(e)){var n=t._$page.text();return c.isNumeric(n)?parseInt(n):n}t._$page.text(e)},element:function(){return this._$page},select:function(e){this._$page.toggleClass(E,e)},render:function(e,t){t?this._$page.prependTo(e):this._$page.appendTo(e)}}),N=g.inherit({_getDefaultOptions:function(){return d(this.callBase(),{visible:!0,pagesNavigatorVisible:"auto",pageIndex:1,maxPagesCount:10,pageCount:10,totalCount:0,pageSize:5,showPageSizes:!0,pageSizes:[5,10],hasKnownLastPage:!0,showNavigationButtons:!1,showInfo:!1,infoText:f.getFormatter("dxPager-infoText"),pagesCountText:f.getFormatter("dxPager-pagesCountText"),rtlEnabled:!1,lightModeEnabled:!1,pageIndexChanged:l.noop,pageSizeChanged:l.noop})},_toggleVisibility:function(e){var t=this.$element();t&&t.css("display",e?"":"none")},_getPages:function(e,t){var n,i,o=[],a=!this.option("hasKnownLastPage");if(t>0||a)if(t<=this.option("maxPagesCount")){for(i=1;i<=t;i++)o.push(new z(i,i-1));a&&o.push(new z(">",i-1))}else{for(o.push(new z(1,0)),n=e?e.value()-e.index:1,i=1;i<=x;i++)o.push(new z(n+i,i));o.push(new z(t,x+1)),a&&o.push(new z(">",x+1))}return o},_getPageByValue:function(e){var t,n,i=this;for(n=0;n<i._pages.length;n++)if(t=i._pages[n],t.value()===e)return t},_processSelectedPage:function(e,t,n){var i,o=this,a=!1;o._pages&&(u(o._pages,function(e,n){t===n.value()&&(a=!0)}),a||(o.selectedPage=null)),c.isDefined(o.selectedPage)?t===n&&n>e&&o.selectedPage.index!==x+1&&(o.selectedPage.index=x+1):t>x&&t<n&&(i=n-x<t?x-(n-t)+1:2,o.selectedPage=new z(t,i))},_selectPageByValue:function(e){var t,n,i,o,a=this,r=a._getPageByValue(e),s=a._pages,l=s.length;if(c.isDefined(r)){if(n=a._pages[r.index-1],i=a._pages[r.index+1],i&&">"===i.value()&&(o=i,i=void 0,l--,s.pop()),a.selectedPage&&a.selectedPage.select(!1),r.select(!0),a.selectedPage=r,i&&i.value()-e>1)if(0!==r.index)for(n.value(e+1),a._pages.splice(r.index,1),a._pages.splice(r.index-1,0,r),a._pages[r.index].index=r.index,r.index=r.index-1,t=r.index-1;t>0;t--)a._pages[t].value(a._pages[t+1].value()-1);else for(t=0;t<l-1;t++)a._pages[t].value(t+1);if(n&&e-n.value()>1)if(r.index!==l-1)for(i.value(e-1),a._pages.splice(r.index,1),a._pages.splice(r.index+1,0,r),a._pages[r.index].index=r.index,r.index=r.index+1,t=r.index+1;t<l-1;t++)a._pages[t].value(a._pages[t-1].value()+1);else for(t=1;t<=l-2;t++)a._pages[l-1-t].value(a._pages[l-1].value()-t);o&&s.push(o)}},_updatePagesTabIndices:function(){var e=this,t=this.selectedPage._$page,n=function n(){var a=i(e.element()).find("[role=button]:not(.dx-button-disable)");u(a,function(e,t){return i(t).attr("tabindex",0)}),o.off(t,"focus",n)};o.on(t,"focus",n)},_nextPage:function(e){var t=this.option("pageIndex"),n=this.option("pageCount");c.isDefined(t)&&(t="next"===e?++t:--t,t>0&&t<=n&&this.option("pageIndex",t))},_renderPages:function(e){var t,n,a=this,r=e.length,s=a._createAction(function(e){var t=e.event,n=i(t.target).text(),o=">"===n?a.option("pageCount")+1:Number(n);a.option("pageIndex",o)});r>1&&(a._pageClickHandler=function(e){s({event:e})},o.on(a._$pagesChooser,v.addNamespace([p.up,h.name],a.Name+"Pages"),C,a._pageClickHandler),
88y.registerKeyboardAction("pager",a,a._$pagesChooser,C,s));for(var l=0;l<r;l++)n=e[l],n.render(a._$pagesChooser,a.option("rtlEnabled")),a.setAria({role:"button",label:"Page "+n.value()},n.element()),y.setTabIndex(a,n.element()),e[l+1]&&e[l+1].value()-n.value()>1&&(t=i("<div>").text(". . .").addClass(A),a.option("rtlEnabled")?t.prependTo(a._$pagesChooser):t.appendTo(a._$pagesChooser))},_calculateLightPagesWidth:function(e,t){return Number(e.css("minWidth").replace("px",""))+10*t.toString().length},_renderLightPages:function(){var e,t,n=this,a=this.option("pageCount"),r=this.option("pageIndex"),s=n._createAction(function(){n.option("pageIndex",a)}),l=this.option("pagesCountText"),u=i("<div>").addClass(I).appendTo(this._$pagesChooser);t=i("<div>").addClass(T).appendTo(u),n._pageIndexEditor=n._createComponent(t,m,{value:r,min:1,max:a,width:n._calculateLightPagesWidth(t,a),onValueChanged:function(e){n.option("pageIndex",e.value)}}),i("<span>").text(l).addClass(L+" "+F).appendTo(u),e=i("<span>").addClass(D).text(a),o.on(e,v.addNamespace(h.name,n.Name+"PagesCount"),function(e){s({event:e})}),y.registerKeyboardAction("pager",n,e,void 0,s),e.appendTo(u),n.setAria({role:"button",label:"Navigates to the last page"},e)},_renderPagesChooser:function(){var e=this,t=e.option("lightModeEnabled"),n=e.option("pagesNavigatorVisible"),o=e.$element();if(e._$pagesChooser&&e._$pagesChooser.remove(),n){if(e._pages&&0===e._pages.length)return void(e.selectedPage=null);e._$pagesChooser=i("<div>").addClass(k).appendTo(o),"auto"===n&&e._$pagesChooser.css("visibility",1===e.option("pageCount")?"hidden":""),t||e._renderInfo(),e._renderNavigateButton("prev"),t?e._renderLightPages():e._renderPages(e._pages),e._renderNavigateButton("next"),e._updatePagesChooserWidth()}},_renderPageSizes:function(){var e,t,n,a=this,r=a.option("pageSizes"),s=r&&r.length,l=a.option("pageSize"),u=a._createAction(function(e){var n=e.event;t=parseInt(i(n.target).text()),a.option("pageSize",t)});for(o.on(a._$pagesSizeChooser,v.addNamespace(h.name,a.Name+"PageSize"),P,function(e){u({event:e})}),y.registerKeyboardAction("pager",a,a._$pagesSizeChooser,P,u),e=0;e<s;e++)n=i("<div>").text(r[e]).addClass(B),a.setAria({role:"button",label:"Display "+r[e]+" items on page"},n),y.setTabIndex(a,n),l===r[e]&&n.addClass(E),a._$pagesSizeChooser.append(n)},_calculateLightPageSizesWidth:function(e){return Number(this._$pagesSizeChooser.css("minWidth").replace("px",""))+10*Math.max.apply(Math,e).toString().length},_renderLightPageSizes:function(){var e,t=this,n=t.option("pageSizes");e=i("<div>").appendTo(t._$pagesSizeChooser),t._pageSizeEditor=t._createComponent(e,_,{dataSource:n,value:t.option("pageSize"),onSelectionChanged:function(e){t.option("pageSize",e.selectedItem)},width:t._calculateLightPageSizesWidth(n)})},_renderPagesSizeChooser:function(){var e=this,t=e.option("pageSizes"),n=e.option("showPageSizes"),o=t&&t.length,a=e.$element();e._$pagesSizeChooser&&e._$pagesSizeChooser.remove(),n&&o&&(e._$pagesSizeChooser=i("<div>").addClass(O).appendTo(a),e.option("lightModeEnabled")?e._renderLightPageSizes():e._renderPageSizes(),e._pagesSizeChooserWidth=e._$pagesSizeChooser.width())},_renderInfo:function(){var e=this.option("infoText");this.option("showInfo")&&c.isDefined(e)&&(this._$info=i("<div>").css("display",this._isInfoHide?"none":"").addClass(F).text(r.format(e,this.selectedPage&&this.selectedPage.value(),this.option("pageCount"),this.option("totalCount"))).appendTo(this._$pagesChooser),this._isInfoHide||(this._infoWidth=this._$info.outerWidth(!0)))},_renderNavigateButton:function(e){var t,n=this,a=n._createAction(function(){n._nextPage(e)});if(n.option("showNavigationButtons")||n.option("lightModeEnabled")){t=i("<div>").addClass(M);var r=!1;o.on(t,v.addNamespace([p.up,h.name],n.Name+"Pages"),function(e){if("dxpointerup"===e.type)r=!0;else if(r)return void(r=!1);a({event:e})}),y.registerKeyboardAction("pager",n,t,void 0,a),n.setAria({role:"button",label:"prev"===e?"Previous page":" Next page"},t),y.setTabIndex(n,t),n.option("rtlEnabled")?(t.addClass("prev"===e?V:R),t.prependTo(this._$pagesChooser)):(t.addClass("prev"===e?R:V),t.appendTo(this._$pagesChooser))}},_renderContentImpl:function(){this.$element().toggleClass(S,this.option("lightModeEnabled")),this._toggleVisibility(this.option("visible")),this._updatePageSizes(!0),this._updatePages(!0),y.restoreFocus(this)},_initMarkup:function(){var e=this.$element();e.addClass(b);var t=i("<div>").addClass(w);this._$pagesChooser=i("<div>").addClass(k).append(t).appendTo(e)},_render:function(){this.option().lightModeEnabled=!1,this.callBase(),this._updateLightMode()},_updatePageSizes:function(e){var t=this.option("lightModeEnabled"),n=this.option("pageSize"),i=this.option("pageSizes");t&&this._pageSizeEditor&&this._pageSizeEditor.option({value:n,dataSource:i,width:this._calculateLightPageSizesWidth(i)}),t&&!e||this._renderPagesSizeChooser()},_updatePages:function(e){var t=this.option("pageCount"),n=this.option("pageIndex"),i=this.option("lightModeEnabled");i?this._pageIndexEditor&&this._pageIndexEditor.option({value:n,width:this._calculateLightPagesWidth(this._pageIndexEditor.$element(),t)}):(this._processSelectedPage(this.option("maxPagesCount"),n,t),this._pages=this._getPages(this.selectedPage,t),this._selectPageByValue(n)),i&&!e||this._renderPagesChooser(),this._updateButtonsState(n)},_isPageIndexInvalid:function(e,t){var n="next"===e,i=this.option("rtlEnabled");return i&&n||!i&&!n?t<=1:t>=this.option("pageCount")},_updateButtonsState:function(e){var t=this.$element().find("."+V),n=this.$element().find("."+R);t.toggleClass(H,this._isPageIndexInvalid("next",e)),n.toggleClass(H,this._isPageIndexInvalid("prev",e))},_optionChanged:function(e){switch(e.name){case"visible":this._toggleVisibility(e.value);break;case"pageIndex":var t=this.option("pageIndexChanged");t&&t(e.value),this._updatePages();break;case"maxPagesCount":case"pageCount":case"totalCount":case"hasKnownLastPage":case"pagesNavigatorVisible":case"showNavigationButtons":this._updatePages();break;case"pageSize":var n=this.option("pageSizeChanged");n&&n(e.value),this._updatePageSizes();break;case"pageSizes":this._updatePageSizes();break;case"lightModeEnabled":this._renderContentImpl(),!e.value&&this._updateLightMode();break;default:this._invalidate()}},_clean:function(){this._$pagesChooser&&(o.off(this._$pagesChooser,v.addNamespace([p.up,h.name],this.Name+"Pages"),C,this._pageClickHandler),y.registerKeyboardAction("pager",this,this._$pagesChooser,C,this._pageKeyDownHandler)),this.callBase()},_getMinPagerWidth:function(){var e=c.isDefined(this._pagesChooserWidth)?this._pagesChooserWidth:0,t=c.isDefined(this._pagesSizeChooserWidth)?this._pagesSizeChooserWidth:0;return e+t},_updatePagesChooserWidth:l.deferUpdater(function(){var e=this._pages&&this._pages.length>0?this._pages[this._pages.length-1]._$page.width():0;this._pagesChooserWidth=this._$pagesChooser.width()+e}),_updateLightMode:l.deferUpdater(function(){var e=this,t=this.$element().width(),n=c.isDefined(this._infoWidth)?this._infoWidth:0;l.deferRender(function(){e._isInfoHide&&t>e._getMinPagerWidth()+n&&(e._$info.show(),e._updatePagesChooserWidth(),e._isInfoHide=!1),!e._isInfoHide&&t>e._getMinPagerWidth()-n&&t<e._getMinPagerWidth()&&(e._$info.hide(),e._updatePagesChooserWidth(),e._isInfoHide=!0),l.deferUpdate(function(){l.deferRender(function(){e.option("lightModeEnabled")&&t>e._previousWidth?e.option("lightModeEnabled",!1):t<e._getMinPagerWidth()&&e.option("lightModeEnabled",!0),e._previousWidth=t})})})}),_dimensionChanged:function(){this._updateLightMode()},getHeight:function(){return this.option("visible")?this.$element().outerHeight():0}});e.exports=N,s("dxPager",N)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(371),s=i(r);t.DraggingHeaderView=s.default.views.draggingHeaderView,t.DraggingHeaderViewController=s.default.controllers.draggingHeader,t.ColumnsSeparatorView=s.default.views.columnsSeparatorView,t.TablePositionViewController=s.default.controllers.tablePosition,t.ColumnsResizerViewController=s.default.controllers.columnsResizer,t.TrackerView=s.default.views.trackerView,a.default.registerModule("columnsResizingReordering",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(372),s=i(r);a.default.registerModule("keyboardNavigation",s.default)},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(3),u=n(0),c=n(20),d=n(17),h=i(d),p=n(23),f=i(p),g=n(14),_=i(g),m=n(199),v=i(m),y=n(166),x=i(y),b=n(642),w=i(b),C=n(41),k=i(C),S=n(80),I=n(40),T="dx-datagrid-total-footer",D="dx-datagrid-summary-item",E="dx-datagrid-text-content",A="dx-datagrid-group-footer",O="dx-datagrid-group-text-content",B="dx-datagrid-nowrap",P="groupFooter",M=function(e,t){var n,i,o=(0,a.default)(e),r=t.column,s=t.summaryItems,l=[];if(!r.command&&s){for(n=0;n<s.length;n++)i=s[n],l.push((0,a.default)("<div>").css("textAlign",i.alignment||r.alignment).addClass(D).addClass(E).addClass(i.cssClass).toggleClass(O,"group"===t.rowType).text(f.default.getSummaryText(i,t.summaryTexts)));o.append(l)}},R=function(e,t){var n=e.option("summary.texts")||{};return{totalItem:t.row,summaryItems:t.row.summaryCells[t.columnIndex],summaryTexts:n}},V=function(e){return e.summary||e.aggregates||[]},F=function(e){return e.option("summary.recalculateWhileEditing")};t.FooterView=x.default.ColumnsView.inherit(function(){return{_getRows:function(){return this._dataController.footerItems()},_getCellOptions:function(e){return(0,u.extend)(this.callBase(e),R(this,e))},_renderCellContent:function(e,t){M(e,t),this.callBase(e,t)},_renderCore:function(e){var t=this._dataController.footerItems()[0];e&&e.columnIndices||this.element().empty().addClass(T).toggleClass(B,!this.option("wordWrapEnabled")),t&&t.summaryCells&&t.summaryCells.length&&this._updateContent(this._renderTable({change:e}),e)},_updateContent:function(e,t){if(!t||"update"!==t.changeType||!t.columnIndices)return this.callBase.apply(this,arguments);var n=this._getTableElement().find(".dx-row"),i=e.find(".dx-row");this._updateCells(n,i,t.columnIndices[0])},_rowClick:function(e){var t=this._dataController.footerItems()[e.rowIndex]||{};this.executeAction("onRowClick",(0,u.extend)({},e,t))},_columnOptionChanged:function(e){var t=e.optionNames;e.changeTypes.grouping||(t.width||t.visibleWidth)&&this.callBase(e)},_handleDataChanged:function(e){var t=e.changeType;"update"===e.changeType&&e.repaintChangesOnly?e.totalColumnIndices?e.totalColumnIndices.length&&this.render(null,{changeType:"update",columnIndices:[e.totalColumnIndices]}):this.render():"refresh"!==t&&"append"!==t&&"prepend"!==t||this.render()},getHeight:function(){return this.getElementHeight()},isVisible:function(){return!!this._dataController.footerItems().length}}}());var L=function(){function e(t,n,i,o){o=o||[];for(var a=0;a<t.length;a++)o.push(t[a].key),1===n?i(o,t[a].items):e(t[a].items,n-1,i,o),o.pop()}return{init:function(){this.callBase.apply(this,arguments),this._totalAggregates=[],this._summaryGetter=r.noop},summaryGetter:function(e){return arguments.length?void((0,s.isFunction)(e)&&(this._summaryGetter=e)):this._summaryGetter},summary:function(e){return arguments.length?void(this._summaryGetter=function(){return e}):this._summaryGetter()},totalAggregates:function(){return this._totalAggregates},isLastLevelGroupItemsPagingLocal:function(){var e=this.summary(),t=e&&e.sortByGroups();return t&&t.length},sortLastLevelGroupItems:function(t,n,i){var o=(0,S.multiLevelGroup)((0,k.default)(t),n).toArray(),a=[];return i.forEach(function(t){e(o,n.length,function(e,n){t.toString()===e.toString()&&(a=a.concat(n))})}),a}}}(),H=function(){var e=function e(t,n,i){return i?e(t,n.map(function(e){return{items:[e]}},i-1)):t.concat(n)},t=function e(t,n,i){return i?t.map(function(t){var o={},a=e(t.items||[],n,i-1);return Object.defineProperty(o,"aggregates",{get:function(){return t.aggregates},set:function(e){t.aggregates=e}}),(0,u.extend)(o,t,{items:a})}):t.filter(function(e){return n.indexOf(e)<0})},n=function(n,i,o,a){var r;if(F(n)){var s=n.getController("editing");if(s){var l=s.getInsertedData();l.length&&(o=e(o,l,a));var u=s.getRemovedData();u.length&&(o=t(o,u,a))}}return i&&(r=new w.default({totalAggregates:i.totalAggregates,groupAggregates:i.groupAggregates,data:o,groupLevel:a}),r.calculate()),r?r.totalAggregates():[]},i=function e(t,n,i){if(!t||!n.length)return t;var o,a=n[0],r=i[0];return a&&r&&r.length&&(o=(0,k.default)(t),(0,l.each)(r,function(e){o=0===e?o.sortBy(this.selector,this.desc):o.thenBy(this.selector,this.desc)}),o.enumerate().done(function(e){t=e})),n=n.slice(1),i=i.slice(1),n.length&&i.length&&(0,l.each)(t,function(){this.items=e(this.items,n,i)}),t},o=function(e,t,n){var o=n&&n.sortByGroups&&n.sortByGroups();return o&&o.length?i(e,t,o):e};return{_customizeRemoteOperations:function(e){var t=this.summary();t&&(e.remoteOperations.summary?e.isCustomLoading&&!e.storeLoadOptions.isLoadingAll||(e.storeLoadOptions.group&&(e.remoteOperations.grouping?e.storeLoadOptions.groupSummary=t.groupAggregates:t.groupAggregates.length&&(e.remoteOperations.paging=!1)),e.storeLoadOptions.totalSummary=t.totalAggregates):(t.totalAggregates.length||t.groupAggregates.length&&e.storeLoadOptions.group)&&(e.remoteOperations.paging=!1)),this.callBase.apply(this,arguments);var n=e.cachedPagesData.extra;n&&n.summary&&!e.isCustomLoading&&(e.storeLoadOptions.totalSummary=void 0)},_handleDataLoadedCore:function(e){var t,i=this,a=(0,I.normalizeSortingInfo)(e.storeLoadOptions.group||e.loadOptions.group||[]),r=e.remoteOperations||{},l=i.summaryGetter()(r);e.isCustomLoading&&!e.storeLoadOptions.isLoadingAll||(r.summary?!r.paging&&a.length&&l&&(r.grouping||n(i,{groupAggregates:l.groupAggregates},e.data,a.length),e.data=o(e.data,a,l)):r.paging||(t=n(i,l,e.data,a.length),e.data=o(e.data,a,l),e.extra=(0,s.isPlainObject)(e.extra)?e.extra:{},e.extra.summary=t)),e.isCustomLoading||(i._totalAggregates=e.extra&&e.extra.summary||i._totalAggregates),i.callBase(e)}}}();v.default.extend(L),v.default.extend(H),t.renderSummaryCell=M,f.default.registerModule("summary",{defaultOptions:function(){return{summary:{groupItems:void 0,totalItems:void 0,calculateCustomSummary:void 0,skipEmptyValues:!0,recalculateWhileEditing:!1,texts:{sum:_.default.getFormatter("dxDataGrid-summarySum"),sumOtherColumn:_.default.getFormatter("dxDataGrid-summarySumOtherColumn"),min:_.default.getFormatter("dxDataGrid-summaryMin"),minOtherColumn:_.default.getFormatter("dxDataGrid-summaryMinOtherColumn"),max:_.default.getFormatter("dxDataGrid-summaryMax"),maxOtherColumn:_.default.getFormatter("dxDataGrid-summaryMaxOtherColumn"),avg:_.default.getFormatter("dxDataGrid-summaryAvg"),avgOtherColumn:_.default.getFormatter("dxDataGrid-summaryAvgOtherColumn"),count:_.default.getFormatter("dxDataGrid-summaryCount")}},sortByGroupSummaryInfo:void 0}},views:{footerView:t.FooterView},extenders:{controllers:{data:function(){return{_isDataColumn:function(e){return e&&(!(0,s.isDefined)(e.groupIndex)||e.showWhenGrouped)},_isGroupFooterVisible:function(){var e,t,n,i=this.option("summary.groupItems")||[];for(n=0;n<i.length;n++)if(e=i[n],t=this._columnsController.columnOption(e.showInColumn||e.column),e.showInGroupFooter&&this._isDataColumn(t))return!0;return!1},_processGroupItems:function(e,t,n){var i=n&&n.data,o=this.callBase.apply(this,arguments);return n&&(void 0===n.isGroupFooterVisible&&(n.isGroupFooterVisible=this._isGroupFooterVisible()),i&&i.items&&n.isGroupFooterVisible&&(n.collectContinuationItems||!i.isContinuationOnNextPage)&&o.push({rowType:P,key:n.path.slice(),data:i,groupIndex:n.path.length-1,values:[]})),o},_processGroupItem:function(e,t){var n=this;if(t.summaryGroupItems||(t.summaryGroupItems=n.option("summary.groupItems")||[]),"group"===e.rowType){var i=-1,o=-1;(0,l.each)(t.visibleColumns,function(n){var a=t.visibleColumns[n-1];e.groupIndex===this.groupIndex&&(i=this.index),n>0&&"expand"===a.command&&"expand"!==this.command&&(o=this.index)}),e.summaryCells=this._calculateSummaryCells(t.summaryGroupItems,V(e.data),t.visibleColumns,function(e,t){return e.showInGroupFooter?-1:e.alignByColumn&&t&&!(0,s.isDefined)(t.groupIndex)&&t.index!==o?t.index:i})}return e.rowType===P&&(e.summaryCells=this._calculateSummaryCells(t.summaryGroupItems,V(e.data),t.visibleColumns,function(e,t){return e.showInGroupFooter&&n._isDataColumn(t)?t.index:-1})),e},_calculateSummaryCells:function(e,t,n,i){var o=this,a=[],r={};return(0,l.each)(e,function(e,n){var a,l=o._columnsController.columnOption(n.column),c=n.showInColumn&&o._columnsController.columnOption(n.showInColumn)||l,d=i(n,c);if(d>=0&&(r[d]||(r[d]=[]),a=t[e],a===a)){var h;(0,s.isDefined)(n.valueFormat)?h=n.valueFormat:"count"!==n.summaryType&&(h=f.default.getFormatByDataType(l&&l.dataType)),r[d].push((0,u.extend)({},n,{value:(0,s.isString)(a)&&l&&l.deserializeValue?l.deserializeValue(a):a,valueFormat:h,columnCaption:l&&l.index!==d?l.caption:void 0}))}}),(0,s.isEmptyObject)(r)||(0,l.each)(n,function(){a.push(r[this.index]||[])}),a},_getSummaryCells:function(e,t){var n=this,i=n._columnsController;return n._calculateSummaryCells(e,t,i.getVisibleColumns(),function(e,t){return n._isDataColumn(t)?t.index:-1})},_updateItemsCore:function(e){var t,n,i=this,o=i._dataSource,a=i._footerItems,r=a&&a[0]&&a[0].summaryCells,s=i.option("summary.totalItems");i._footerItems=[],o&&s&&s.length&&(n=o.totalAggregates(),t=i._getSummaryCells(s,n),e&&e.repaintChangesOnly&&r&&(e.totalColumnIndices=t.map(function(e,t){return JSON.stringify(e)!==JSON.stringify(r[t])?t:-1}).filter(function(e){return e>=0})),t.length&&i._footerItems.push({rowType:"totalFooter",summaryCells:t})),i.callBase(e)},_prepareUnsavedDataSelector:function(e){var t=this;if(F(t)){var n=t.getController("editing");if(n)return function(t){return t=n.getUpdatedData(t),e(t)}}return e},_prepareAggregateSelector:function(e,t){return e=this._prepareUnsavedDataSelector(e),"avg"===t||"sum"===t?function(t){var n=e(t);return(0,s.isDefined)(n)?Number(n):n}:e},_getAggregates:function(e,t){var n=this,i=n.getController("columns"),o=n.option("summary.calculateCustomSummary"),a=n.option("summary.skipEmptyValues");return(0,l.map)(e||[],function(e){var r,l=i.columnOption(e.column),u=l&&l.calculateCellValue?l.calculateCellValue.bind(l):(0,c.compileGetter)(l?l.dataField:e.column),d=e.summaryType||"count",p=e.column,f=(0,s.isDefined)(e.skipEmptyValues)?e.skipEmptyValues:a;return t?{selector:e.column,summaryType:d}:(p=n._prepareAggregateSelector(u,d),"custom"===d&&(o||(h.default.log("E1026"),o=function(){}),r={component:n.component,name:e.name},o(r),r.summaryProcess="calculate",d={seed:function(e){return r.summaryProcess="start",r.totalValue=void 0,r.groupIndex=e,delete r.value,o(r),r.totalValue},step:function(e,t){return r.summaryProcess="calculate",r.totalValue=e,r.value=t,o(r),r.totalValue},finalize:function(e){return r.summaryProcess="finalize",r.totalValue=e,delete r.value,o(r),r.totalValue}}),{selector:p,aggregator:d,skipEmptyValues:f})})},_addSortInfo:function(e,t,n,i){var o;t&&(o=t.groupIndex,i=i||t.sortOrder,(0,s.isDefined)(o)&&(e[o]=e[o]||[],e[o].push({selector:n,desc:"desc"===i})))},_findSummaryItem:function(e,t){var n=-1,i=function(e){var t=e.summaryType,n=e.column;return t&&n&&t+"_"+n};return(0,s.isDefined)(t)&&(0,l.each)(e||[],function(e){if(this.name===t||e===t||this.summaryType===t||this.column===t||i(this)===t)return n=e,!1}),n},_getSummarySortByGroups:function(e,t){var n=this,i=n._columnsController,o=i.getGroupColumns(),a=[];if(t&&t.length)return(0,l.each)(e||[],function(){var e=this.sortOrder,r=this.groupColumn,u=n._findSummaryItem(t,this.summaryItem);if(!(u<0)){var c=function(e){return V(e)[u]};(0,s.isDefined)(r)?(r=i.columnOption(r),n._addSortInfo(a,r,c,e)):(0,l.each)(o,function(t,i){n._addSortInfo(a,i,c,e)})}}),a},_createDataSourceAdapterCore:function(e,t){var n=this,i=this.callBase(e,t);return i.summaryGetter(function(e){return n._getSummaryOptions(e||t)}),i},_getSummaryOptions:function(e){var t=this,n=t.option("summary.groupItems"),i=t.option("summary.totalItems"),o=t.option("sortByGroupSummaryInfo"),a=t._getAggregates(n,e&&e.grouping&&e.summary),r=t._getAggregates(i,e&&e.summary),s=function(){return t._getSummarySortByGroups(o,n)};if(a.length||r.length)return{groupAggregates:a,totalAggregates:r,sortByGroups:s}},publicMethods:function(){var e=this.callBase();return e.push("getTotalSummaryValue"),e},getTotalSummaryValue:function(e){var t=this._findSummaryItem(this.option("summary.totalItems"),e),n=this._dataSource.totalAggregates();if(n.length&&t>-1)return n[t]},optionChanged:function(e){"summary"!==e.name&&"sortByGroupSummaryInfo"!==e.name||(e.name="dataSource"),this.callBase(e)},init:function(){this._footerItems=[],this.callBase()},footerItems:function(){return this._footerItems}}}(),editing:function(){return{_refreshSummary:function(){F(this)&&this._dataController.refresh({load:!0,changesOnly:!0})},_addEditData:function(e){var t=this.callBase.apply(this,arguments);return e.type&&this._refreshSummary(),t},_removeEditDataItem:function(){var e=this.callBase.apply(this,arguments);return this._refreshSummary(),e},cancelEditData:function(){var e=this.callBase.apply(this,arguments);return this._refreshSummary(),e}}}()},views:{rowsView:function(){return{_createRow:function(e){var t=this.callBase(e);return e&&t.addClass(e.rowType===P?A:""),t},_renderCells:function(e,t){this.callBase.apply(this,arguments),"group"===t.row.rowType&&t.row.summaryCells&&t.row.summaryCells.length&&this._renderGroupSummaryCells(e,t)},_hasAlignByColumnSummaryItems:function(e,t){return!(0,s.isDefined)(t.columns[e].groupIndex)&&t.row.summaryCells[e].length},_getAlignByColumnCellCount:function(e,t){for(var n,i=0,o=1;o<e;o++)n=t.row.summaryCells.length-o,i=this._hasAlignByColumnSummaryItems(n,t)?o:i;return i},_renderGroupSummaryCells:function(e,t){var n=e.children().last(),i=Number(n.attr("colSpan"))||1,o=this._getAlignByColumnCellCount(i,t);this._renderGroupSummaryCellsCore(n,t,i,o)},_renderGroupSummaryCellsCore:function(e,t,n,i){if(i>0){e.attr("colSpan",n-i);for(var o=0;o<i;o++){var a=t.columns.length-i+o;this._renderCell(e.parent(),(0,u.extend)({column:t.columns[a],columnIndex:this._getSummaryCellIndex(a,t.columns)},t))}}},_getSummaryCellIndex:function(e){return e},_getCellTemplate:function(e){return!e.column.command&&!(0,s.isDefined)(e.column.groupIndex)&&e.summaryItems&&e.summaryItems.length?M:this.callBase(e)},_getCellOptions:function(e){var t=this,n=t.callBase(e);return e.row.summaryCells?(0,u.extend)(n,R(t,e)):n}}}()}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,i){var a=0;if(e<t)for(;a<n.items.length;a++)o(e+1,t,n.items[a],i);e===t&&i(n)}function a(e,t){var n,i;if("map"in e)return e.map(t);i=new Array(e.length);for(n in e)i[n]=t(e[n],n);return i}function r(e){return e!==e||""===e||null===e||void 0===e}function s(e){return e===f.aggregators.count}function l(e){var t=(0,d.compileGetter)(e.selector),n=!("skipEmptyValues"in e)||e.skipEmptyValues,i=e.aggregator;if("string"==typeof i&&(i=f.aggregators[i],!i))throw p.errors.Error("E4001",e.aggregator);return{selector:t,aggregator:i,skipEmptyValues:n}}var u=n(15),c=i(u),d=n(20),h=n(1),p=n(35),f=n(40);e.exports=c.default.inherit({ctor:function(e){this._data=e.data,this._groupLevel=e.groupLevel||0,this._totalAggregates=a(e.totalAggregates||[],l),this._groupAggregates=a(e.groupAggregates||[],l),this._totals=[]},calculate:function(){this._totalAggregates.length&&this._calculateTotals(0,{items:this._data}),this._groupAggregates.length&&this._groupLevel>0&&this._calculateGroups({items:this._data})},totalAggregates:function(){return this._totals},_aggregate:function(e,t,n){var i,o,a=t.items?t.items.length:0;for(i=0;i<e.length;i++)if(s(e[i].aggregator))n[i]=(n[i]||0)+a;else for(o=0;o<a;o++)this._accumulate(i,e[i],n,t.items[o])},_calculateTotals:function(e,t){var n;if(0===e&&(this._totals=this._seed(this._totalAggregates)),e===this._groupLevel)this._aggregate(this._totalAggregates,t,this._totals);else for(n=0;n<t.items.length;n++)this._calculateTotals(e+1,t.items[n]);0===e&&(this._totals=this._finalize(this._totalAggregates,this._totals))},_calculateGroups:function(e){function t(e){e.aggregates=a(i-1),i===n?r(e,e.aggregates):o(i,n,e,function(t){r(t,e.aggregates)}),e.aggregates=s(e.aggregates)}for(var n=this._groupLevel,i=n+1,a=this._seed.bind(this,this._groupAggregates),r=this._aggregate.bind(this,this._groupAggregates),s=this._finalize.bind(this,this._groupAggregates);--i>0;)o(0,i,e,t)},_seed:function(e,t){return a(e,function(e){var n=e.aggregator,i="seed"in n?(0,h.isFunction)(n.seed)?n.seed(t):n.seed:NaN;return i})},_accumulate:function(e,t,n,i){var o=t.selector(i),a=t.aggregator,s=t.skipEmptyValues;s&&r(o)||(n[e]!==n[e]?n[e]=o:n[e]=a.step(n[e],o))},_finalize:function(e,t){return a(e,function(e,n){var i=e.aggregator.finalize;return i?i(t[n]):t[n]})}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(373),s=i(r);a.default.registerModule("columnFixing",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(374),s=i(r);a.default.registerModule("adaptivity",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(375),s=i(r);a.default.registerModule("virtualColumns",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(15),s=i(r),l=n(1),u=n(0),c=n(98),d=n(13),h=i(d),p=n(23),f=i(p),g=n(377),_=i(g),m=n(172),v=n(14),y=i(v),x=n(34),b=i(x),w=n(101),C=i(w),k=n(104),S=i(k),I=n(6),T="dx-datagrid-export-menu",D="dx-datagrid-export-button",E="export-to",A="exportxlsx",O="exportselected",B="export-excel-button",P="dx-toolbar-item-auto-hide",M="dx-toolbar-hidden-button",R="dx-button",V=3;t.DataProvider=s.default.inherit({_getGroupValue:function(e){var t=this._options.groupColumns[e.groupIndex],n=f.default.getDisplayValue(t,e.key[e.groupIndex],e.data,e.rowType),i=t.caption+": "+f.default.formatValue(n,t),o=e.summaryCells;return o&&o[0]&&o[0].length&&(i+=" "+f.default.getGroupRowSummaryText(o[0],this._options.summaryTexts)),i},_correctCellIndex:function(e){return e},_initOptions:function(){var e=this._exportController,t=e._columnsController.getGroupColumns(),n=e.option("export.excelWrapTextEnabled");this._options={columns:e._getColumns(this._initialColumnWidthsByColumnIndex),groupColumns:t,items:e._selectionOnly?e._getSelectedItems():e._getAllItems(),getVisibleIndex:e._columnsController.getVisibleIndex.bind(e._columnsController),isHeadersVisible:e.option("showColumnHeaders"),summaryTexts:e.option("summary.texts"),customizeExportData:e.option("customizeExportData"),rtlEnabled:e.option("rtlEnabled"),wrapTextEnabled:(0,l.isDefined)(n)?n:!!e.option("wordWrapEnabled"),customizeExcelCell:e.option("export.customizeExcelCell")}},hasCustomizeExcelCell:function(){return(0,l.isDefined)(this._options.customizeExcelCell)},customizeExcelCell:function(e,t){this._options.customizeExcelCell&&(e.gridCell=t,(0,l.isDefined)(this._exportController)&&(0,l.isDefined)(this._exportController.component)&&(e.component=this._exportController.component),this._options.customizeExcelCell(e))},ctor:function(e,t){this._exportController=e,this._initialColumnWidthsByColumnIndex=t},getStyles:function(){var e=this._options.wrapTextEnabled,t=["center","left","right"].map(function(e){return{bold:!0,alignment:e,wrapText:!0}});return this.getColumns().forEach(function(n){t.push({alignment:n.alignment||"left",format:n.format,wrapText:e,dataType:n.dataType})}),t.push({bold:!0,wrapText:!1,alignment:(0,c.getDefaultAlignment)(this._options.rtlEnabled)}),t},_getTotalCellStyleId:function(e){var t=this.getColumns()[e]&&this.getColumns()[e].alignment||"right";return["center","left","right"].indexOf(t)},getStyleId:function(e,t){return e<this.getHeaderRowCount()?0:this.isTotalCell(e-this.getHeaderRowCount(),t)?this._getTotalCellStyleId(t):this.isGroupRow(e-this.getHeaderRowCount())?V+this.getColumns().length:t+V},getColumns:function(e){var t=this._options.columns;return e?t:t[t.length-1]},getRowsCount:function(){return this._options.items.length+this.getHeaderRowCount()},getHeaderRowCount:function(){return this.isHeadersVisible()?this._options.columns.length-1:0},isGroupRow:function(e){return e<this._options.items.length&&"group"===this._options.items[e].rowType},getGroupLevel:function(e){var t=this._options.items[e-this.getHeaderRowCount()],n=t&&t.groupIndex;return t&&"totalFooter"===t.rowType?0:(0,l.isDefined)(n)?n:this._options.groupColumns.length},getCellType:function(e,t){var n=this.getColumns();if(e<this.getHeaderRowCount())return"string";if(e-=this.getHeaderRowCount(),t<n.length){var i=this._options.items.length&&this._options.items[e],o=n[t];return i&&"data"===i.rowType&&isFinite(i.values[this._correctCellIndex(t)])&&!(0,l.isDefined)(o.customizeText)?(0,l.isDefined)(o.lookup)?o.lookup.dataType:o.dataType:"string"}},ready:function(){var e,t=this;return t._initOptions(),e=this._options,(0,I.when)(e.items).done(function(n){e.customizeExportData&&e.customizeExportData(t.getColumns(t.getHeaderRowCount()>1),n),e.items=n}).fail(function(){e.items=[]})},_convertFromGridGroupSummaryItems:function(e){var t=void 0;return(0,l.isDefined)(e)&&e.length>0&&(t=e.map(function(e){return{value:e.value,name:e.name}})),t},getCellData:function(e,t,n){var i,o,a,r,s,u,c={cellSourceData:{},value:o},d=this.getColumns(),h=this._correctCellIndex(t);if(e<this.getHeaderRowCount()){var p=this.getColumns(!0)[e];i=p[t],c.cellSourceData.rowType="header",c.cellSourceData.column=i&&i.gridColumn,c.value=i&&i.caption}else if(e-=this.getHeaderRowCount(),u=this._options.items.length&&this._options.items[e])switch(s=u.values,c.cellSourceData.rowType=u.rowType,c.cellSourceData.column=d[t]&&d[t].gridColumn,u.rowType){case"groupFooter":case"totalFooter":h<s.length&&(o=s[h],(0,l.isDefined)(o)?(c.cellSourceData.value=o.value,c.cellSourceData.totalSummaryItemName=o.name,c.value=f.default.getSummaryText(o,this._options.summaryTexts)):c.cellSourceData.value=void 0);break;case"group":if(c.cellSourceData.groupIndex=u.groupIndex,t<1)c.cellSourceData.column=this._options.groupColumns[u.groupIndex],c.cellSourceData.value=u.key[u.groupIndex],c.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(u.summaryCells[0]),c.value=this._getGroupValue(u);else if(r=u.values[h],Array.isArray(r)){for(c.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(r),o="",a=0;a<r.length;a++)o+=(a>0?n?"\n":" \n ":"")+f.default.getSummaryText(r[a],this._options.summaryTexts);c.value=o}else c.cellSourceData.value=void 0;break;default:if(i=d[t]){var g=s[h],_=f.default.getDisplayValue(i,g,u.data,u.rowType);c.value=!isFinite(_)||i.customizeText?f.default.formatValue(_,i):_,c.cellSourceData.value=g}c.cellSourceData.data=u.data}return c},isHeadersVisible:function(){return this._options.isHeadersVisible},isTotalCell:function(e,t){var n=this._options.items,i=n[e],o=this._correctCellIndex(t),a=i.summaryCells&&i.summaryCells[o]&&i.summaryCells[o].length>0&&i.summaryCells[o][0].alignByColumn;return i&&"groupFooter"===i.rowType||"totalFooter"===i.rowType||a},getCellMerging:function(e,t){var n=this._options.columns,i=n[e]&&n[e][t];return i?{colspan:(i.colspan||1)-1,rowspan:(i.rowspan||1)-1}:{colspan:0,rowspan:0}},getFrozenArea:function(){var e=this;return{x:0,y:e.getHeaderRowCount()}}}),t.ExportController=f.default.ViewController.inherit({}).include(_.default).inherit({_getEmptyCell:function(){return{caption:"",colspan:1,rowspan:1}},_updateColumnWidth:function(e,t){e.width=t},_getColumns:function(e){var t,n,i,o,a=[],r=this._columnsController,s=r.getRowCount();for(t=0;t<=s;t++){a.push([]),o=r.getVisibleColumns(t,!0);var l=void 0;if(t===s)if(this._updateLockCount)l=e;else{var c=this._getColumnWidths(this._headersView,this._rowsView);if(c&&c.length){l={};for(var d=0;d<o.length;d++)l[o[d].index]=c[d];
89}}for(n=0;n<o.length;n++)i=(0,u.extend)({},o[n],{dataType:"datetime"===o[n].dataType?"date":o[n].dataType,gridColumn:o[n]}),this._needColumnExporting(i)&&(l&&this._updateColumnWidth(i,l[i.index]),a[t].push(i))}return o=a[s],a=this._prepareItems(a.slice(0,-1)),a.push(o),a},_needColumnExporting:function(e){return!e.command&&(e.allowExporting||void 0===e.allowExporting)},_getFooterSummaryItems:function(e,t){var n,i,o,a,r=[],s=1,l=0;do{for(n=[],a=0;a<e.length;a++)o=e[a],i=o.length,s<i&&(s=i),n.push(o[l]);r.push({values:n,rowType:t?"totalFooter":"groupFooter"})}while(l++<s-1);return r},_hasSummaryGroupFooters:function(){var e,t=this.option("summary.groupItems");if((0,l.isDefined)(t))for(e=0;e<t.length;e++)if(t[e].showInGroupFooter)return!0;return!1},_getItemsWithSummaryGroupFooters:function(e){var t,n,i=[],o=[],a=[];for(n=0;n<e.length;n++)t=e[n],"groupFooter"===t.rowType?(a=this._getFooterSummaryItems(t.summaryCells),i=i.concat(o,a),o=[]):o.push(t);return i.length?i:o},_updateGroupValuesWithSummaryByColumn:function(e){var t,n,i,o,a,r,s,l=[];for(s=0;s<e.length;s++)if(t=e[s],n=t.summaryCells,"group"===t.rowType&&n&&n.length>1){for(o=t.values.length,r=1;r<n.length;r++)for(a=0;a<n[r].length;a++)i=n[r][a],i&&i.alignByColumn&&(Array.isArray(l[r-o])||(l[r-o]=[]),l[r-o].push(i));l.length>0&&(h.default.merge(t.values,l),l=[])}},_processUnExportedItems:function(e){var t,n,i,o,a,r,s=this._columnsController.getVisibleColumns(null,!0),l=this._columnsController.getGroupColumns();for(a=0;a<e.length;a++){for(t=e[a],i=[],o=[],r=0;r<s.length;r++)n=s[r],this._needColumnExporting(n)&&(t.values&&("group"!==t.rowType||i.length?i.push(t.values[r]):i.push(t.key[t.groupIndex])),t.summaryCells&&("group"!==t.rowType||o.length?o.push(t.summaryCells[r]):o.push(t.summaryCells[r-l.length+t.groupIndex])));i.length&&(t.values=i),o.length&&(t.summaryCells=o)}},_getAllItems:function(e){var t,n,i=this,o=new I.Deferred,a=this.getController("data"),r=a.footerItems(),s=r.length&&r[0],u=i.option("summary.totalItems");return(0,I.when)(e).done(function(e){a.loadAll(e).done(function(e,r){i._updateGroupValuesWithSummaryByColumn(e),i._hasSummaryGroupFooters()&&(e=i._getItemsWithSummaryGroupFooters(e)),t=s&&s.summaryCells,(0,l.isDefined)(r)&&u&&(t=a._getSummaryCells(u,r)),n=s&&i._getFooterSummaryItems(t,!0),n&&(e=e.concat(n)),i._processUnExportedItems(e),o.resolve(e)}).fail(o.reject)}).fail(o.reject),o},_getSelectedItems:function(){var e=this.getController("selection"),t=e.getSelectedRowsData();return this._getAllItems(t)},_getColumnWidths:function(e,t){return e&&e.isVisible()?e.getColumnWidths():t.getColumnWidths()},init:function(){this._columnsController=this.getController("columns"),this._rowsView=this.getView("rowsView"),this._headersView=this.getView("columnHeadersView"),this.createAction("onExporting",{excludeValidators:["disabled","readOnly"]}),this.createAction("onExported",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFileSaving",{excludeValidators:["disabled","readOnly"]})},callbackNames:function(){return["selectionOnlyChanged"]},getExportFormat:function(){return["EXCEL"]},getDataProvider:function(){var e=this._getColumnWidths(this._headersView,this._rowsView),n=void 0;if(e&&e.length){n={};for(var i=this._columnsController.getVisibleColumns(this._columnsController.getRowCount(),!0),o=0;o<i.length;o++)n[i[o].index]=e[o]}return new t.DataProvider(this,n)},exportToExcel:function(e){var t=this;t._selectionOnly=e,(0,m.export)(t.component.getDataProvider(),{fileName:t.option("export.fileName"),proxyUrl:t.option("export.proxyUrl"),format:"EXCEL",autoFilterEnabled:!!t.option("export.excelFilterEnabled"),rtlEnabled:t.option("rtlEnabled"),ignoreErrors:t.option("export.ignoreExcelErrors"),exportingAction:t.getAction("onExporting"),exportedAction:t.getAction("onExported"),fileSavingAction:t.getAction("onFileSaving")},m.excel.getData)},publicMethods:function(){return["getDataProvider","getExportFormat","exportToExcel"]},selectionOnly:function(e){return(0,l.isDefined)(e)?(this._isSelectedRows=e,void this.selectionOnlyChanged.fire()):this._isSelectedRows}}),f.default.registerModule("export",{defaultOptions:function(){return{"export":{enabled:!1,fileName:"DataGrid",excelFilterEnabled:!1,excelWrapTextEnabled:void 0,proxyUrl:void 0,allowExportSelectedData:!1,ignoreExcelErrors:!0,texts:{exportTo:y.default.format("dxDataGrid-exportTo"),exportAll:y.default.format("dxDataGrid-exportAll"),exportSelectedRows:y.default.format("dxDataGrid-exportSelectedRows")}}}},controllers:{"export":t.ExportController},extenders:{controllers:{editing:{callbackNames:function(){var e=this.callBase();return(0,l.isDefined)(e)?e.push("editingChanged"):["editingChanged"]},_updateEditButtons:function(){this.callBase(),this.editingChanged.fire(this.hasChanges())}}},views:{headerPanel:{_getToolbarItems:function(){var e=this.callBase();return this._appendExportItems(e)},_appendExportItems:function(e){var t=this,n=t.option("export");if(n.enabled){var i=[];n.allowExportSelectedData?i.push({template:function(e,n,i){var o=(0,a.default)(i);t._renderButton(e,o),t._renderExportMenu(o)},menuItemTemplate:function(e,n,i){t._renderList(e,(0,a.default)(i))},name:"exportButton",allowExportSelected:!0,location:"after",locateInMenu:"auto",sortIndex:30}):i.push({template:function(e,n,i){t._renderButton(e,(0,a.default)(i))},menuItemTemplate:function(e,n,i){t._renderButton(e,(0,a.default)(i),!0)},name:"exportButton",location:"after",locateInMenu:"auto",sortIndex:30}),e=e.concat(i),t._correctItemsPosition(e)}return e},_renderButton:function(e,t,n){var i=this,o=i._getButtonOptions(e.allowExportSelected),r=i._getButtonContainer().addClass(D).appendTo(t);if(n){var s=(0,a.default)("<div>").addClass(P);t.wrapInner(s).parent().addClass("dx-toolbar-menu-action dx-toolbar-menu-button "+M),o.text=o.hint}i._createComponent(r,b.default,o)},_renderList:function(e,t){var n=this,i=n.option("export.texts"),o=[{template:function(e,t,i){n._renderFakeButton(e,(0,a.default)(i),A)},text:i.exportAll},{template:function(e,t,i){n._renderFakeButton(e,(0,a.default)(i),O)},text:i.exportSelectedRows,exportSelected:!0}];n._createComponent(t,C.default,{items:o,onItemClick:function(e){n._exportController.exportToExcel(e.itemData.exportSelected)},scrollingEnabled:!1})},_renderFakeButton:function(e,t,n){var i=(0,a.default)("<div>").addClass("dx-icon dx-icon-"+n),o=(0,a.default)("<span>").addClass("dx-button-text").text(e.text),r=(0,a.default)("<div>").addClass("dx-button-content").append(i).append(o),s=(0,a.default)("<div>").addClass(R+" dx-button-has-text dx-button-has-icon dx-datagrid-toolbar-button").append(r),l=(0,a.default)("<div>").addClass(P).append(s);t.append(l).parent().addClass("dx-toolbar-menu-custom "+M)},_correctItemsPosition:function(e){e.sort(function(e,t){return e.sortIndex-t.sortIndex})},_renderExportMenu:function(e){var t=this,n=e.find("."+R),i=t.option("export.texts"),o=[{text:i.exportAll,icon:A},{text:i.exportSelectedRows,exportSelected:!0,icon:O}],r=(0,a.default)("<div>").appendTo(e);t._contextMenu=t._createComponent(r,S.default,{showEvent:"dxclick",items:o,cssClass:T,onItemClick:function(e){t._exportController.exportToExcel(e.itemData.exportSelected)},target:n,position:{at:"left bottom",my:"left top",offset:"0 3",collision:"fit",boundary:t._$parent,boundaryOffset:"1 1"}})},_isExportButtonVisible:function(){return this.option("export.enabled")},_getButtonOptions:function(e){var t,n=this,i=n.option("export.texts");return t=e?{hint:i.exportTo,icon:E}:{hint:i.exportAll,icon:B,onClick:function(){n._exportController.exportToExcel()}}},optionChanged:function(e){this.callBase(e),"export"===e.name&&(e.handled=!0,this._invalidate())},init:function(){var e=this;this.callBase(),this._exportController=this.getController("export"),this._editingController=this.getController("editing"),this._editingController.editingChanged.add(function(t){e.setToolbarItemDisabled("exportButton",t)})},isVisible:function(){return this.callBase()||this._isExportButtonVisible()}}}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(23),a=i(o),r=n(378),s=i(r),l=n(6),u=n(1),c=n(4),d=n(254),h=n(20),p=n(0),f=Number.MAX_SAFE_INTEGER||9007199254740991;a.default.registerModule("focus",(0,p.extend)(!0,{},s.default,{extenders:{controllers:{data:{changeRowExpand:function(e){return this.option("focusedRowEnabled")&&Array.isArray(e)&&this.isRowExpanded(e)&&this._isFocusedRowInsideGroup(e)&&this.option("focusedRowKey",e),this.callBase.apply(this,arguments)},_isFocusedRowInsideGroup:function(e){var t,n=this.getController("columns"),i=this.option("focusedRowKey"),o=this.getRowIndexByKey(i),a=o>=0&&this.getVisibleRows()[o],r=n.getGroupDataSourceParameters(!0);if(a)for(var s=0;s<e.length;++s)if(t=(0,h.compileGetter)(r[s]&&r[s].selector),t(a.data)!==e[s])return!1;return!0},_getGroupPath:function(e){for(var t=[e.key],n=e.items;n&&n[0];){var i=n[0];void 0!==i.key&&t.push(i.key),n=i.items}return t},_expandGroupByPath:function(e,t,n){var i=new l.Deferred;return n++,e.expandRow(t.slice(0,n)).done(function(){n===t.length?i.resolve():e._expandGroupByPath(e,t,n).done(i.resolve).fail(i.reject)}).fail(i.reject),i.promise()},_calculateGlobalRowIndexByGroupedData:function(e){var t,n=this,i=n._dataSource,o=n._generateFilterByKey(e),a=new l.Deferred,r=Array.isArray(e),s=i.group();return r?a.resolve(-1).promise():i._grouping._updatePagingOptions?(i.load({filter:n._concatWithCombinedFilter(o),group:s}).done(function(i){return i&&0!==i.length&&(0,u.isDefined)(i[0].key)&&i[0].key!==-1?(t=n._getGroupPath(i[0]),void n._expandGroupByPath(n,t,0).done(function(){n._calculateExpandedRowGlobalIndex(a,e,t,s)}).fail(a.reject)):a.resolve(-1).promise()}).fail(a.reject),a.promise()):(n._calculateGlobalRowIndexByFlatData(e,null,!0).done(a.resolve).fail(a.reject),a)},_calculateExpandedRowGlobalIndex:function(e,t,n,i){var o,a=(0,d.createGroupFilter)(n,{group:i}),r=this._dataSource,s=this.option("scrolling.mode"),l="virtual"===s||"infinite"===s,u=r.pageSize();r._grouping._updatePagingOptions({skip:0,take:f},function(e,t){(0,c.equalByValue)(e.path,n)&&(o=t)}),this._calculateGlobalRowIndexByFlatData(t,a).done(function(t){var i,a,r;return t<0?void e.resolve(-1):(a=o%u||u,i=a+t-n.length,r=l?0:Math.floor(i/(u-n.length))*n.length,i=o+t+r,void e.resolve(i))}).fail(e.reject)}}}}}))},function(e,t,n){e.exports=n(649)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(650),a=i(o);n(660),n(661),n(662),n(663),n(665),n(666),n(667),n(668),n(669),n(670),n(671),n(672),n(673),n(674),n(675),n(676),n(677),n(678),n(679),n(680),e.exports=a.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(9),a=i(o),r=n(4),s=i(r),l=n(1),u=i(l),c=n(3),d=n(0),h=n(18),p=i(h),f=n(30),g=i(f),_=n(31),m=i(_);n(651),n(652),n(653),n(654),n(655),n(656),n(657),n(658),n(659);var v=g.default.callModuleItemsMethod,y=".dx-row",x="dx-treelist";g.default.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","editing","grouping","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);var b=p.default.inherit({_activeStateUnit:y,_getDefaultOptions:function(){var e=this,t=e.callBase();return(0,c.each)(g.default.modules,function(){u.default.isFunction(this.defaultOptions)&&(0,d.extend)(!0,t,this.defaultOptions())}),t},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return m.default.isMaterial()},options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0}}}])},_init:function(){var e=this;e.callBase(),g.default.processModules(e,g.default),v(e,"init")},_clean:s.default.noop,_optionChanged:function(e){var t=this;v(t,"optionChanged",[e]),e.handled||t.callBase(e)},_dimensionChanged:function(){this.updateDimensions(!0)},_visibilityChanged:function(e){e&&this.updateDimensions()},_initMarkup:function(){this.callBase.apply(this,arguments),this.$element().addClass(x),this.getView("gridView").render(this.$element())},_renderContentImpl:function(){this.getView("gridView").update()},_renderContent:function(){var e=this;s.default.deferRender(function(){e._renderContentImpl()})},_dispose:function(){var e=this;e.callBase(),v(e,"dispose")},isReady:function(){return this.getController("data").isReady()},beginUpdate:function(){var e=this;e.callBase(),v(e,"beginUpdate")},endUpdate:function(){var e=this;v(e,"endUpdate"),e.callBase()},getController:function(e){return this._controllers[e]},getView:function(e){return this._views[e]},focus:function(e){this.callBase(),u.default.isDefined(e)&&this.getController("keyboardNavigation").focus(e)}});b.registerModule=g.default.registerModule.bind(g.default),(0,a.default)("dxTreeList",b),e.exports=b},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(334),s=i(r);a.default.registerModule("columnHeaders",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(1),a=n(30),r=i(a),s=n(336),l=i(s);t.ColumnsController=l.default.controllers.columns.inherit(function(){return{_getFirstItems:function(e){return this.callBase(e).map(function(e){return e.data})},getFirstDataColumnIndex:function(){for(var e=this.getVisibleColumns(),t=e.length,n=0,i=0;i<=t-1;i++)if(!(0,o.isDefined)(e[i].command)){n=e[i].index;break}return n}}}()),r.default.registerModule("columns",{defaultOptions:l.default.defaultOptions,controllers:{columns:t.ColumnsController}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(0),a=n(6),r=n(30),s=i(r),l=n(4),u=n(379),c=i(u),d=n(338),h=i(d);t.DataController=h.default.controllers.data.inherit(function(){return{_getDataSourceAdapter:function(){return c.default},_getNodeLevel:function(e){for(var t=-1;e.parent;)e.visible&&t++,e=e.parent;return t},_generateDataItem:function(e,t){return{rowType:"data",node:e,key:e.key,data:e.data,isExpanded:this.isRowExpanded(e.key,t),level:this._getNodeLevel(e)}},_loadOnOptionChange:function(){this._dataSource.load()},init:function(){this.createAction("onRowExpanding"),this.createAction("onRowExpanded"),this.createAction("onRowCollapsing"),this.createAction("onRowCollapsed"),this.callBase.apply(this,arguments)},keyOf:function(e){var t=this._dataSource;if(t)return t.keyOf(e)},key:function(){var e=this._dataSource;if(e)return e.getKeyExpr()},publicMethods:function(){return this.callBase().concat(["expandRow","collapseRow","isRowExpanded","getRootNode","getNodeByKey","loadDescendants","forEachNode"])},changeRowExpand:function(e){if(this._dataSource){var t=this,n={key:e},i=this.isRowExpanded(e);if(t.executeAction(i?"onRowCollapsing":"onRowExpanding",n),!n.cancel)return t._dataSource.changeRowExpand(e).done(function(){t.executeAction(i?"onRowCollapsed":"onRowExpanded",n)})}return(new a.Deferred).resolve()},isRowExpanded:function(e,t){return this._dataSource&&this._dataSource.isRowExpanded(e,t)},expandRow:function(e){return this.isRowExpanded(e)?(new a.Deferred).resolve():this.changeRowExpand(e)},collapseRow:function(e){return this.isRowExpanded(e)?this.changeRowExpand(e):(new a.Deferred).resolve()},getRootNode:function(){return this._dataSource&&this._dataSource.getRootNode()},optionChanged:function(e){switch(e.name){case"rootValue":case"parentIdExpr":case"itemsExpr":case"filterMode":case"expandNodesOnFiltering":case"autoExpandAll":case"hasItemsExpr":case"dataStructure":this._columnsController.reset(),this._items=[],this._refreshDataSource(),e.handled=!0;break;case"expandedRowKeys":case"onNodesInitialized":!this._dataSource||this._dataSource._isNodesInitializing||(0,l.equalByValue)(e.value,e.previousValue)||this._loadOnOptionChange(),e.handled=!0;break;case"maxFilterLengthInRequest":e.handled=!0;break;default:this.callBase(e)}},getNodeByKey:function(e){if(this._dataSource)return this._dataSource.getNodeByKey(e)},getChildNodeKeys:function(e){if(this._dataSource)return this._dataSource.getChildNodeKeys(e)},loadDescendants:function(e,t){if(this._dataSource)return this._dataSource.loadDescendants(e,t)},forEachNode:function(){this._dataSource.forEachNode.apply(this,arguments)}}}()),s.default.registerModule("data",{defaultOptions:function(){return(0,o.extend)({},h.default.defaultOptions(),{itemsExpr:"items",parentIdExpr:"parentId",rootValue:0,dataStructure:"plain",expandedRowKeys:[],filterMode:"withAncestors",expandNodesOnFiltering:!0,autoExpandAll:!1,onNodesInitialized:null,maxFilterLengthInRequest:1500,paging:{enabled:!1}})},controllers:{data:t.DataController}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(339),s=i(r);a.default.registerModule("sorting",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(30),s=i(r),l=n(341),u=i(l),c="dx-treelist-text-content",d="dx-treelist-icon-container",h="dx-treelist-cell-expandable",p="dx-treelist-empty-space",f="dx-treelist-expanded",g="dx-treelist-collapsed";t.RowsView=u.default.views.rowsView.inherit(function(){var e=function(e){return(0,a.default)("<div>").addClass(c).appendTo(e)},t=function(e,t){var n=(0,a.default)("<div>").addClass(p);return e&&n.toggleClass(f,t).toggleClass(g,!t).append((0,a.default)("<span>")),n},n=function(e,n){for(var i=n.level,o=0;o<=i;o++)e.append(t(o===i&&n.node.hasChildren,n.isExpanded))};return{_renderExpandIcon:function(e,t){var i=(0,a.default)("<div>").addClass(d).appendTo(e);return n(i,t.row),t.watch&&t.watch(function(){return[t.row.level,t.row.isExpanded,t.row.node.hasChildren]},function(){i.empty(),n(i,t.row)}),e.addClass(h),i},_renderCellCommandContent:function(e,t){return this._renderExpandIcon(e,t),!0},_processTemplate:function(t,n){var i,o=this,a=this.callBase(t),r=o._columnsController.getFirstDataColumnIndex();return i=a&&n.column.index===r?{render:function(t){var n=t.container;o._renderCellCommandContent(n,t.model)&&(t.container=e(n)),a.render(t)}}:a},_updateCell:function(e,t){e=e.hasClass(c)?e.parent():e,this.callBase(e,t)},_rowClick:function(e){var t=this._dataController,n=(0,a.default)(e.event.target),i=this.isExpandIcon(n),o=t&&t.items()[e.rowIndex];i&&o&&t.changeRowExpand(o.key),this.callBase(e)},_createRow:function(e){var t=e&&e.node,n=this.callBase.apply(this,arguments);return t&&(this.setAria("level",e.level,n),t.hasChildren&&this.setAria("expanded",e.isExpanded,n)),n},isExpandIcon:function(e){return!!e.closest("."+f+", ."+g).length}}}()),s.default.registerModule("rows",{defaultOptions:u.default.defaultOptions,views:{rowsView:t.RowsView}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(342),s=i(r);a.default.registerModule("contextMenu",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(343),s=i(r);a.default.registerModule("errorHandling",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(344),s=i(r),l=s.default.views.gridView.inherit(function(){return{_getWidgetAriaLabel:function(){return"dxTreeList-ariaTreeList"},_getTableRoleName:function(){return"treegrid"}}}());a.default.registerModule("gridView",{defaultOptions:s.default.defaultOptions,controllers:s.default.controllers,views:{gridView:l},extenders:{controllers:{resizing:{_toggleBestFitMode:function(e){if(this.callBase(e),!this.option("legacyRendering")){var t=this._rowsView._getTableElement();t.find(".dx-treelist-cell-expandable").toggleClass(this.addWidgetPrefix("best-fit"),e)}}}}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(345),s=i(r);a.default.registerModule("headerPanel",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(0),s=n(346),l=i(s),u=l.default.extenders.controllers.stateStoring.applyState;a.default.registerModule("stateStoring",(0,r.extend)(!0,{},l.default,{extenders:{controllers:{stateStoring:{applyState:function(e){u.apply(this,arguments),Object.prototype.hasOwnProperty.call(e,"expandedRowKeys")&&this.option("expandedRowKeys",e.expandedRowKeys)}},data:{getUserState:function(){var e=this.callBase.apply(this,arguments);return this.option("autoExpandAll")||(e.expandedRowKeys=this.option("expandedRowKeys")),e}}}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(349),s=i(r);a.default.registerModule("columnChooser",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(352),s=i(r),l=n(0);a.default.registerModule("masterDetail",(0,l.extend)(!0,{},s.default,{extenders:{controllers:{data:{isRowExpanded:function(){return this.callBase.apply(this,arguments)},_processItems:function(){return this.callBase.apply(this,arguments)},_processDataItem:function(){return this.callBase.apply(this,arguments)}}}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}n(664);var o=n(2),a=i(o),r=n(17),s=i(r),l=n(1),u=n(0),c=n(6),d=n(14),h=i(d),p=n(30),f=i(p),g=n(36),_=i(g),m=n(355),v=i(m),y="dx-treelist-icon-container",x="dx-select-checkbox",b="insert",w=v.default.controllers.editing.inherit(function(){return{_generateNewItem:function(e){var t=this.callBase(e);return t.data={key:e},t.children=[],t.level=0,t.parentKey=this.option("rootValue"),t},_needInsertItem:function(e,t,n,i){var o=e.key.parentKey;if(void 0!==o&&o!==this.option("rootValue")){var a=_.default.getIndexByKey(o,n);return a>=0&&this._dataController.isRowExpanded(o)&&n.splice(a+1,0,i),!1}return this.callBase.apply(this,arguments)},_isEditColumnVisible:function(){var e=this.callBase.apply(this,arguments),t=this.option("editing");return e||t&&t.allowAdding},_isDefaultButtonVisible:function(e,t){var n=this.callBase.apply(this,arguments),i=t.row;return"add"===e.name?this.allowAdding(t)&&i.rowIndex!==this._getVisibleEditRowIndex()&&!(i.removed||i.inserted):n},_getEditingButtons:function(e){var t=this.callBase.apply(this,arguments);return e.column.buttons||t.unshift(this._getButtonConfig("add",e)),t},_beforeSaveEditData:function(e){var t,n,i=this._dataController,o=this.callBase.apply(this,arguments);if(e&&e.type!==b&&(n=i&&i.store(),t=n&&n.key(),!(0,l.isDefined)(t)))throw s.default.Error("E1045");return o},addRowByRowIndex:function(e){var t=this.getController("data"),n=t.getVisibleRows()[e];return this.addRow(n?n.key:void 0)},addRow:function(e){var t=this,n=this.callBase,i=this.getController("data");if(void 0!==e&&!i.isRowExpanded(e)){var o=new c.Deferred;return i.expandRow(e).done(function(){setTimeout(function(){n.call(t,e),o.resolve()})}).fail(o.reject),o}n.call(t,e)},_initNewRow:function(e,t){var n=t.parentKey,i=this.getController("data"),o=i.dataSource(),a=o.createParentIdSetter();void 0===n&&(n=this.option("rootValue"),t.parentKey=n),a(e.data,n),this.callBase.apply(this,arguments)},allowAdding:function(e){return this._allowEditAction("allowAdding",e)},_needToCloseEditableCell:function(e){return this.callBase.apply(this,arguments)||e.closest("."+y).length&&this.isEditing()},getButtonLocalizationNames:function(){var e=this.callBase.apply(this);return e.add="dxTreeList-editingAddRowToNode",e}}}()),C=v.default.extenders.views.rowsView._rowClick,k=v.default.extenders.views.rowsView._rowDblClick,S=function(e){var t=(0,a.default)(e.event.target),n="dxdblclick"===e.event.type?k:C;return!t.closest("."+x).length&&!I.call(this,e,n)},I=function(e,t){var n=(0,a.default)(e.event.target);return!n.closest("."+y).length&&(t.call(this,e),!0)},T=(0,u.extend)({},v.default.extenders.views.rowsView,{_renderCellCommandContent:function(e,t){var n=this._editingController,i=t.row&&n.isEditRow(t.row.rowIndex),o=t.isEditing||i;return!o&&this.callBase.apply(this,arguments)},_rowClick:function(e){S.call(this,e)&&this.callBase.apply(this,arguments)},_rowDblClick:function(e){S.call(this,e)&&this.callBase.apply(this,arguments)}});f.default.registerModule("editing",{defaultOptions:function(){return(0,u.extend)(!0,v.default.defaultOptions(),{editing:{texts:{addRowToNode:h.default.format("dxTreeList-editingAddRowToNode")}}})},controllers:{editing:w},extenders:{controllers:(0,u.extend)(!0,{},v.default.extenders.controllers,{data:{changeRowExpand:function(){return this._editingController.refresh(),this.callBase.apply(this,arguments)}}}),views:{rowsView:T,headerPanel:v.default.extenders.views.headerPanel}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(353),s=i(r);a.default.registerModule("editorFactory",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(0),a=n(30),r=i(a),s=n(356),l=i(s),u=(0,o.extend)({},l.default.extenders.controllers.editing);delete u.processItems,delete u.processDataItem,r.default.registerModule("validating",{defaultOptions:l.default.defaultOptions,controllers:l.default.controllers,extenders:{controllers:{editing:u,editorFactory:l.default.extenders.controllers.editorFactory},views:l.default.extenders.views}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(379),s=i(r),l=n(357),u=i(l),c=n(0),d=u.default.defaultOptions,h=u.default.extenders.controllers.data,p=u.default.extenders.dataSourceAdapter;u.default.extenders.controllers.data=(0,c.extend)({},h,{_loadOnOptionChange:function(){var e=this._dataSource&&this._dataSource._virtualScrollController;e&&e.reset(),this.callBase()}}),u.default.extenders.dataSourceAdapter=(0,c.extend)({},p,{changeRowExpand:function(){var e=this;return this.callBase.apply(this,arguments).done(function(){var t=e.getViewportItemIndex();t>=0&&e.setViewportItemIndex(t)})}}),a.default.registerModule("virtualScrolling",(0,c.extend)({},u.default,{defaultOptions:function(){return(0,c.extend)(!0,d(),{scrolling:{mode:"virtual"}})}})),s.default.extend(u.default.extenders.dataSourceAdapter)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(359),s=i(r);a.default.registerModule("filterRow",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(362),s=i(r);a.default.registerModule("headerFilter",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(364),s=i(r);a.default.registerModule("filterSync",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(366),s=i(r);a.default.registerModule("filterBuilder",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(368),s=i(r);a.default.registerModule("filterPanel",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(370),s=i(r);a.default.registerModule("pager",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(371),s=i(r);a.default.registerModule("columnsResizingReordering",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(373),s=i(r);a.default.registerModule("columnFixing",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(374),s=i(r);a.default.registerModule("adaptivity",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(30),s=i(r),l=n(4),u=i(l),c=n(348),d=i(c),h=n(17),p=i(h),f=n(0),g="dx-treelist-select-all",_="dx-cell-focus-disabled",m="dx-select-checkbox",v=d.default.extenders.views.rowsView._rowClick,y=d.default.extenders.controllers.data._handleDataChanged,x=function(e,t){return!!e.filter(function(e){return e===t}).length};s.default.registerModule("selection",(0,f.extend)(!0,{},d.default,{defaultOptions:function(){return(0,f.extend)(!0,d.default.defaultOptions(),{selection:{showCheckBoxesMode:"always",recursive:!1}})},extenders:{controllers:{data:{_handleDataChanged:function(e){var t=this.getController("selection"),n=t.isRecursiveSelection();!n||e&&"updateSelectionState"===e.changeType||t.updateSelectionState({selectedItemKeys:this.option("selectedRowKeys")}),y.apply(this,arguments)},loadDescendants:function(){var e=this,t=e.callBase.apply(e,arguments),n=e.getController("selection"),i=n.isRecursiveSelection();return i&&t.done(function(){n.updateSelectionState({selectedItemKeys:e.option("selectedRowKeys")})}),t}},selection:{init:function(){this.callBase.apply(this,arguments),this._selectionStateByKey={}},_getSelectionConfig:function(){var e=this,t=arguments,n=this.callBase.apply(this,arguments),i=n.plainItems;return n.plainItems=function(n){return n?e._dataController.getCachedStoreData()||[]:i.apply(e,t).map(function(e){return e.data})},n.isItemSelected=function(t){var n=e._dataController.keyOf(t);return e.isRowSelected(n)},n.isSelectableItem=function(){return!0},n.getItemData=function(e){return e},n},renderSelectCheckBoxContainer:function(e,t){var n=this,i=n.component.getView("rowsView");e.addClass(_);var o=i._renderSelectCheckBox(e,{value:t.row.isSelected,row:t.row,column:t.column});i._attachCheckBoxClickEvent(o)},_updateSelectColumn:l.noop,_getVisibleNodeKeys:function(e){var t=this.component,n=t.getRootNode(),i={},o=[];return n&&s.default.foreachNodes(n.children,function(n){return void 0!==n.key&&(n.visible||e)&&o.push(n.key),!e&&t.isRowExpanded(n.key,i)}),o},isSelectAll:function(){var e,t=this.component,n=this._getVisibleNodeKeys(),i=n.filter(function(e){return t.isRowSelected(e)});return i.length?i.length===n.length||void 0:(e=n.some(function(e){return void 0===t.isRowSelected(e)}),!!e&&void 0)},selectAll:function(){var e=this,t=e.isRecursiveSelection(),n=e._getVisibleNodeKeys(t).filter(function(t){return!e.isRowSelected(t)});return e.selectRows(n,!0)},deselectAll:function(){var e=this.isRecursiveSelection(),t=this._getVisibleNodeKeys(e);return this.deselectRows(t)},selectedItemKeys:function(e,t,n,i){var o=this,a=o.option("selectedRowKeys"),r=this.isRecursiveSelection(),s=r&&o._normalizeSelectionArgs({keys:e||[]},!n);return s&&!u.default.equalByValue(s.selectedRowKeys,a)?(o._isSelectionNormalizing=!0,this.callBase(s.selectedRowKeys,!1,!1,!1).always(function(){o._isSelectionNormalizing=!1}).done(function(e){s.selectedRowsData=e,o._fireSelectionChanged(s)})):this.callBase(e,t,n,i)},changeItemSelection:function(e,t){var n=this.isRecursiveSelection();if(n&&!t.shift){var i=this._dataController.getKeyByRowIndex(e);return this.selectedItemKeys(i,!0,this.isRowSelected(i))}return this.callBase.apply(this,arguments)},_updateParentSelectionState:function(e,t){var n,i,o=this,a=t,r=e.parent;r&&(r.children.length>1&&(t===!1?(i=r.children.some(function(e,t,n){return o._selectionStateByKey[e.key]}),a=!!i&&void 0):t===!0&&(n=r.children.some(function(e){return!o._selectionStateByKey[e.key]}),a=!n||void 0)),this._selectionStateByKey[r.key]=a,r.parent&&r.parent.level>=0&&this._updateParentSelectionState(r,a))},_updateChildrenSelectionState:function(e,t){var n=this,i=e.children;i&&i.forEach(function(e){n._selectionStateByKey[e.key]=t,e.children.length>0&&n._updateChildrenSelectionState(e,t)})},_updateSelectionStateCore:function(e,t){for(var n,i=this._dataController,o=0;o<e.length;o++)this._selectionStateByKey[e[o]]=t,n=i.getNodeByKey(e[o]),n&&(this._updateParentSelectionState(n,t),this._updateChildrenSelectionState(n,t))},_getSelectedParentKeys:function(e,t,n){for(var i,o,a=this._dataController.getNodeByKey(e),r=a&&a.parent,s=[];r&&r.level>=0;){if(s.unshift(r.key),i=n?!x(t,r.key)&&this.isRowSelected(r.key):t.indexOf(r.key)>=0){o=r,s=this._getSelectedParentKeys(o.key,t,n).concat(s);break}if(n)break;r=r.parent}return o&&s||[]},_getSelectedChildKeys:function(e,t){var n=this,i=[];return e&&s.default.foreachNodes(e.children,function(e){var o=t.indexOf(e.key);return o<0&&i.push(e.key),o>0||o<0&&void 0===n._selectionStateByKey[e.key]}),i},_normalizeParentKeys:function(e,t){var n,i,o,a=this,r=[e],s=a._getSelectedParentKeys(e,t.selectedRowKeys);
90s.length&&(r=r.concat(s),r.forEach(function(e){n=t.selectedRowKeys.indexOf(e),n>=0&&t.selectedRowKeys.splice(n,1)}),o=a._dataController.getNodeByKey(s[0]),i=a._getSelectedChildKeys(o,r),t.selectedRowKeys=t.selectedRowKeys.concat(i))},_normalizeChildrenKeys:function(e,t){var n,i=this,o=i._dataController.getNodeByKey(e);o&&o.children.forEach(function(e){n=t.selectedRowKeys.indexOf(e.key),n>=0&&t.selectedRowKeys.splice(n,1),i._normalizeChildrenKeys(e.key,t)})},_normalizeSelectedRowKeysCore:function(e,t,n){var i,o=this;e.forEach(function(e){o.isRowSelected(e)!==n&&(o._normalizeChildrenKeys(e,t),i=t.selectedRowKeys.indexOf(e),n?(i<0&&t.selectedRowKeys.push(e),t.currentSelectedRowKeys.push(e)):(i>=0&&t.selectedRowKeys.splice(i,1),t.currentDeselectedRowKeys.push(e),o._normalizeParentKeys(e,t)))})},_normalizeSelectionArgs:function(e,t){var n,i=Array.isArray(e.keys)?e.keys:[e.keys],o=this.option("selectedRowKeys")||[];return i.length&&(n={currentSelectedRowKeys:[],currentDeselectedRowKeys:[],selectedRowKeys:o.slice(0)},this._normalizeSelectedRowKeysCore(i,n,t)),n},_updateSelectedItems:function(e){this.updateSelectionState(e),this.callBase(e)},_fireSelectionChanged:function(){this._isSelectionNormalizing||this.callBase.apply(this,arguments)},_isModeLeavesOnly:function(e){return"leavesOnly"===e||e===!0},_getAllSelectedRowKeys:function(e){var t=this,n=[];return e.forEach(function(e){var i=n.length,o=t._getSelectedParentKeys(e,n,!0),a=t._dataController.getChildNodeKeys(e);n.splice.apply(n,[i,0].concat(o)),n.push(e),n=n.concat(a)}),n},_getParentSelectedRowKeys:function(e){var t=this,n=[];return e.forEach(function(i){var o=t._getSelectedParentKeys(i,e);!o.length&&n.push(i)}),n},_getLeafSelectedRowKeys:function(e){var t=this,n=[],i=t._dataController;return e.forEach(function(e){var t=i.getNodeByKey(e);t&&!t.hasChildren&&n.push(e)}),n},isRecursiveSelection:function(){var e=this.option("selection.mode"),t=this.option("selection.recursive");return"multiple"===e&&t},updateSelectionState:function(e){var t=e.removedItemKeys||[],n=e.selectedItemKeys||[];this._updateSelectionStateCore(t,!1),this._updateSelectionStateCore(n,!0)},isRowSelected:function(e){var t=this.callBase.apply(this,arguments),n=this.isRecursiveSelection();return!t&&n?e in this._selectionStateByKey&&this._selectionStateByKey[e]:t},getSelectedRowKeys:function(e){var t=this;if(!t._dataController)return[];e===!0&&p.default.log("W0002","dxTreeList","getSelectedRowKeys(leavesOnly)","18.1","Use the 'getSelectedRowKeys(mode)' method with a string parameter instead");var n=t.callBase.apply(t,arguments);return e&&(this.isRecursiveSelection()&&(n=this._getAllSelectedRowKeys(n)),"all"!==e&&("excludeRecursive"===e?n=t._getParentSelectedRowKeys(n):t._isModeLeavesOnly(e)&&(n=t._getLeafSelectedRowKeys(n)))),n},getSelectedRowsData:function(e){var t=this,n=t._dataController,i=this.getSelectedRowKeys(e)||[],o=[];return i.forEach(function(e){var t=n.getNodeByKey(e);t&&o.push(t.data)}),o},refresh:function(){return this._selectionStateByKey={},this.callBase.apply(this,arguments)}}},views:{columnHeadersView:{_processTemplate:function(e,t){var n,i=this,o=this.callBase(e,t),a=i._columnsController.getFirstDataColumnIndex();return n=o&&"header"===t.rowType&&t.column.index===a?{render:function(e){"multiple"===i.option("selection.mode")&&i.renderSelectAll(e.container,e.model),o.render(e)}}:o},renderSelectAll:function(e,t){e.addClass(g),this._renderSelectAllCheckBox(e)},_isSortableElement:function(e){return this.callBase(e)&&!e.closest("."+m).length}},rowsView:{_renderExpandIcon:function(e,t){var n=this.callBase(e,t);return"multiple"===this.option("selection.mode")&&this.getController("selection").renderSelectCheckBoxContainer(n,t),n},_rowClick:function(e){var t=(0,a.default)(e.event.target);this.isExpandIcon(t)?this.callBase.apply(this,arguments):v.apply(this,arguments)}}}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(369),s=i(r);a.default.registerModule("search",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(372),s=i(r),l=n(0);a.default.registerModule("keyboardNavigation",(0,l.extend)(!0,{},s.default,{extenders:{controllers:{keyboardNavigation:{_leftRightKeysHandler:function(e,t){var n,i,o=this.getVisibleRowIndex(),a=this._dataController;return e.ctrl?(i=this._getDirectionCodeByKey(e.keyName),n=a.getKeyByRowIndex(o),"nextInRow"===i?a.expandRow(n):a.collapseRow(n),void 0):this.callBase.apply(this,arguments)}}}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(375),s=i(r);a.default.registerModule("virtualColumns",s.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=-1;return e.forEach(function(e,i){t(e)&&(n=i)}),n}var a=n(30),r=i(a),s=n(0),l=n(6),u=n(378),c=i(u);r.default.registerModule("focus",(0,s.extend)(!0,{},c.default,{extenders:{controllers:{data:{changeRowExpand:function(e){return this.option("focusedRowEnabled")&&this.isRowExpanded(e)&&this._isFocusedRowInside(e)&&this.option("focusedRowKey",e),this.callBase.apply(this,arguments)},_isFocusedRowInside:function(e){for(var t=this.option("focusedRowKey"),n=this.getRowIndexByKey(t),i=n>=0&&this.getVisibleRows()[n],o=i&&i.node.parent;o;){if(o.key===e)return!0;o=o.parent}return!1},getParentKey:function(e){var t=this,n=t._dataSource,i=t.getNodeByKey(e),o=new l.Deferred;return i?o.resolve(i.parent?i.parent.key:void 0):n.load({filter:[n.getKeyExpr(),"=",e]}).done(function(e){var t=e[0];t?o.resolve(n.parentKeyOf(t)):o.reject()}).fail(o.reject),o.promise()},expandAscendants:function(e){var t=this,n=t._dataSource,i=new l.Deferred;return t.getParentKey(e).done(function(e){n&&void 0!==e&&e!==t.option("rootValue")?(n._isNodesInitializing=!0,t.expandRow(e),n._isNodesInitializing=!1,t.expandAscendants(e).done(i.resolve).fail(i.reject)):i.resolve()}).fail(i.reject),i.promise()},getPageIndexByKey:function(e){var t=this,n=t._dataSource,i=new l.Deferred;return t.expandAscendants(e).done(function(){n.load({filter:t.getCombinedFilter(),sort:t.getController("columns").getSortDataSourceParameters(!n.remoteOperations().sorting),parentIds:[]}).done(function(n){var a=o(n,function(n){return t.keyOf(n.data)===e}),r=t.pageIndex();a>=0&&(r=Math.floor(a/t.pageSize())),i.resolve(r)}).fail(i.reject)}).fail(i.reject),i.promise()}}}}}))},function(e,t,n){e.exports=n(682)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=0;return(0,w.each)(e,function(e,n){t+=n||0}),t}function a(e,t){for(var n=t/e.length,i=0;i<e.length;i++)e[i]-=n}function r(e){e.off("scroll").off("stop")}function s(e,t){r(e),e.on("scroll",t).on("stop",t)}function l(e){if(_e[e])return _e[e];var t,n=0,i={},o=(0,h.default)(fe).css({position:"absolute",visibility:"hidden",top:-1e3,left:-1e3,width:100,height:100}).appendTo("body"),a=(0,h.default)("<p>").css({width:"100%",height:200}).appendTo(o);return"auto"!==e&&(i.useNative=!!e,i.useSimulatedScrollbar=!e),o.dxScrollable(i),t=o.dxScrollable("instance").option("useNative"),n=t?o.width()-a.width():0,o.remove(),_e[e]={scrollBarWidth:n,scrollBarUseNative:t},_e[e]}function u(e,t){var n="width"===t?["borderLeftWidth","borderRightWidth"]:["borderTopWidth","borderBottomWidth"],i=0;return(0,w.each)(e,function(e,t){var o=Z.getComputedStyle(t.get(0));n.forEach(function(e){i+=parseFloat(o[e])||0})}),i}function c(e){return e.closest("."+le).length||e.find("."+le).length}var d=n(2),h=i(d),p=n(7),f=n(26),g=n(5),_=i(g),m=n(9),v=i(m),y=n(12),x=n(45),b=n(4),w=n(3),C=n(1),k=n(0),S=n(19),I=n(14),T=n(18),D=i(T),E=n(8),A=n(36),O=n(78),B=n(683),P=n(201),M=i(P),R=n(687),V=n(688),F=n(173),L=n(689),H=n(381),z=i(H),N=n(256),$=i(N),W=n(691),G=n(692),j=i(G),q=n(46),K=i(q),U=n(104),Y=i(U),X=n(6),Z=(0,p.getWindow)(),Q="dx-area-data-cell",J="dx-area-row-cell",ee="dx-area-column-cell",te="dx-area-description-cell",ne="dx-pivotgrid-border",ie="dx-pivotgrid",oe="dx-row-lines",ae="dx-bottom-row",re="dx-bottom-border",se="dx-pivotgrid-fields-container",le="dx-area-fields",ue="dx-fieldchooser-popup",ce="dx-incompressible-fields",de="dx-overflow-hidden",he="<tr>",pe="<td>",fe="<div>",ge=66666,_e={},me=D.default.inherit({_getDefaultOptions:function(){return(0,k.extend)(this.callBase(),{scrolling:{timeout:300,renderingThreshold:150,minTimeout:10,mode:"standard",useNative:"auto",removeInvisiblePages:!0,virtualRowHeight:50,virtualColumnWidth:100},encodeHtml:!0,dataSource:null,activeStateEnabled:!1,fieldChooser:{minWidth:250,minHeight:250,enabled:!0,allowSearch:!1,searchTimeout:500,layout:0,title:(0,I.format)("dxPivotGrid-fieldChooserTitle"),width:600,height:600,applyChangesMode:"instantly"},onContextMenuPreparing:null,allowSorting:!1,allowSortingBySummary:!1,allowFiltering:!1,allowExpandAll:!1,wordWrapEnabled:!0,fieldPanel:{showColumnFields:!0,showFilterFields:!0,showDataFields:!0,showRowFields:!0,allowFieldDragging:!0,visible:!1,texts:{columnFieldArea:(0,I.format)("dxPivotGrid-columnFieldArea"),rowFieldArea:(0,I.format)("dxPivotGrid-rowFieldArea"),filterFieldArea:(0,I.format)("dxPivotGrid-filterFieldArea"),dataFieldArea:(0,I.format)("dxPivotGrid-dataFieldArea")}},dataFieldArea:"column","export":{enabled:!1,fileName:"PivotGrid",proxyUrl:void 0,ignoreExcelErrors:!0},showRowTotals:!0,showRowGrandTotals:!0,showColumnTotals:!0,showColumnGrandTotals:!0,hideEmptySummaryCells:!0,showTotalsPrior:"none",rowHeaderLayout:"standard",loadPanel:{enabled:!0,text:(0,I.format)("Loading"),width:200,height:70,showIndicator:!0,indicatorSrc:"",showPane:!0},texts:{grandTotal:(0,I.format)("dxPivotGrid-grandTotal"),total:(0,I.getFormatter)("dxPivotGrid-total"),noData:(0,I.format)("dxDataGrid-noDataText"),showFieldChooser:(0,I.format)("dxPivotGrid-showFieldChooser"),expandAll:(0,I.format)("dxPivotGrid-expandAll"),collapseAll:(0,I.format)("dxPivotGrid-collapseAll"),sortColumnBySummary:(0,I.getFormatter)("dxPivotGrid-sortColumnBySummary"),sortRowBySummary:(0,I.getFormatter)("dxPivotGrid-sortRowBySummary"),removeAllSorting:(0,I.format)("dxPivotGrid-removeAllSorting"),exportToExcel:(0,I.format)("dxDataGrid-exportToExcel"),dataNotAvailable:(0,I.format)("dxPivotGrid-dataNotAvailable")},onCellClick:null,onCellPrepared:null,showBorders:!1,stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3},onExpandValueChanging:null,renderCellCountLimit:2e4,onExporting:null,onExported:null,onFileSaving:null,headerFilter:{width:252,height:325,allowSearch:!1,showRelevantValues:!1,searchTimeout:500,texts:{emptyValue:(0,I.format)("dxDataGrid-headerFilterEmptyValue"),ok:(0,I.format)("dxDataGrid-headerFilterOK"),cancel:(0,I.format)("dxDataGrid-headerFilterCancel")}}})},_getDataControllerOptions:function(){var e=this;return{component:e,dataSource:e.option("dataSource"),texts:e.option("texts"),showRowTotals:e.option("showRowTotals"),showRowGrandTotals:e.option("showRowGrandTotals"),showColumnTotals:e.option("showColumnTotals"),showTotalsPrior:e.option("showTotalsPrior"),showColumnGrandTotals:e.option("showColumnGrandTotals"),dataFieldArea:e.option("dataFieldArea"),rowHeaderLayout:e.option("rowHeaderLayout"),hideEmptySummaryCells:e.option("hideEmptySummaryCells"),onFieldsPrepared:function(t){(0,w.each)(t,function(t,n){(0,w.each)(["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"],function(t,i){void 0===n[i]&&(0,O.setFieldProperty)(n,i,e.option(i))})})}}},_initDataController:function(){var e=this;e._dataController&&e._dataController.dispose(),e._dataController=new B.DataController(e._getDataControllerOptions()),(0,p.hasWindow)()&&e._dataController.changed.add(function(){e._render()}),e._dataController.scrollChanged.add(function(t){e._scrollLeft=t.left,e._scrollTop=t.top}),e._dataController.loadingChanged.add(function(t){e._updateLoading()}),e._dataController.progressChanged.add(e._updateLoading.bind(e)),e._dataController.dataSourceChanged.add(function(){e._trigger("onChanged")});var t=e.option("onExpandValueChanging");t&&e._dataController.expandValueChanging.add(function(e){t(e)})},_init:function(){var e=this;e.callBase(),e._initDataController(),e._scrollLeft=e._scrollTop=null,e._initActions()},_initActions:function(){var e=this;e._actions={onChanged:e._createActionByOption("onChanged"),onContextMenuPreparing:e._createActionByOption("onContextMenuPreparing"),onCellClick:e._createActionByOption("onCellClick"),onExporting:e._createActionByOption("onExporting"),onExported:e._createActionByOption("onExported"),onFileSaving:e._createActionByOption("onFileSaving"),onCellPrepared:e._createActionByOption("onCellPrepared")}},_trigger:function(e,t){this._actions[e](t)},_optionValuesEqual:function(e,t,n){return"dataSource"===e&&n instanceof M.default&&t instanceof M.default?n===t:this.callBase.apply(this,arguments)},_optionChanged:function(e){var t=this;switch(e.name){case"dataSource":case"allowSorting":case"allowFiltering":case"allowExpandAll":case"allowSortingBySummary":case"scrolling":case"stateStoring":t._initDataController(),t._fieldChooserPopup.hide(),t._renderFieldChooser(),t._invalidate();break;case"texts":case"showTotalsPrior":case"showRowTotals":case"showRowGrandTotals":case"showColumnTotals":case"showColumnGrandTotals":case"hideEmptySummaryCells":case"dataFieldArea":t._dataController.updateViewOptions(t._getDataControllerOptions());break;case"useNativeScrolling":case"encodeHtml":case"renderCellCountLimit":break;case"rtlEnabled":t.callBase(e),t._renderFieldChooser(),t._renderContextMenu(),(0,p.hasWindow)()&&t._renderLoadPanel(t._dataArea.groupElement(),t.$element()),t._invalidate();break;case"export":t._renderDescriptionArea();break;case"onExpandValueChanging":break;case"onCellClick":case"onContextMenuPreparing":case"onExporting":case"onExported":case"onFileSaving":case"onCellPrepared":t._actions[e.name]=t._createActionByOption(e.name);break;case"fieldChooser":t._renderFieldChooser(),t._renderDescriptionArea();break;case"loadPanel":(0,p.hasWindow)()&&(t._renderLoadPanel(t._dataArea.groupElement(),t.$element()),t._invalidate());break;case"fieldPanel":t._renderDescriptionArea(),t._invalidate();break;case"headerFilter":t._renderFieldChooser(),t._invalidate();break;case"showBorders":t._tableElement().toggleClass(ne,!!e.value),t.updateDimensions();break;case"wordWrapEnabled":t._tableElement().toggleClass("dx-word-wrap",!!e.value),t.updateDimensions();break;case"rowHeaderLayout":t._tableElement().find("."+J).toggleClass("dx-area-tree-view","tree"===e.value),t._dataController.updateViewOptions(t._getDataControllerOptions());break;case"height":case"width":t._hasHeight=null,t.callBase(e),t.resize();break;default:t.callBase(e)}},_updateScrollPosition:function(e,t,n){var i,o,a=this,r=a._scrollTop||a._scrollLeft;a._scrollUpdating||(a._scrollUpdating=!0,t&&!t.hasScroll()&&a._hasHeight&&(a._scrollTop=null),e&&!e.hasScroll()&&(a._scrollLeft=null),(null!==a._scrollTop||null!==a._scrollLeft||r||a.option("rtlEnabled"))&&(i=a._scrollTop||0,o=a._scrollLeft||0,n.scrollTo({x:o,y:i}),e.scrollTo(o),t.scrollTo(i),a._dataController.updateWindowScrollPosition(a._scrollTop)),a._scrollUpdating=!1)},_subscribeToEvents:function(e,t,n){var i=this,o=function(o){var a=o.scrollOffset,r=(0,C.isDefined)(a.left)?a.left:i._scrollLeft,s=(0,C.isDefined)(a.top)&&i._hasHeight?a.top:i._scrollTop;(i._scrollLeft||0)===(r||0)&&(i._scrollTop||0)===(s||0)||(i._scrollLeft=r,i._scrollTop=s,i._updateScrollPosition(e,t,n),"virtual"===i.option("scrolling.mode")&&i._dataController.setViewportPosition(i._scrollLeft,i._scrollTop))};(0,w.each)([e,t,n],function(e,t){s(t,o)}),!i._hasHeight&&i._dataController.subscribeToWindowScrollEvents(n.groupElement())},_clean:b.noop,_needDelayResizing:function(e){var t=e.length*(e.length?e[0].length:0);return t>this.option("renderCellCountLimit")},_renderFieldChooser:function(){var e=this,t=e._pivotGridContainer,n=e.option("fieldChooser")||{},i="onDemand"===n.applyChangesMode?[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:(0,I.format)("OK"),onClick:function(t){e._fieldChooserPopup.$content().dxPivotGridFieldChooser("applyChanges"),e._fieldChooserPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:(0,I.format)("Cancel"),onClick:function(t){e._fieldChooserPopup.hide()}}}]:[],o={layout:n.layout,texts:n.texts||{},dataSource:e.getDataSource(),allowSearch:n.allowSearch,searchTimeout:n.searchTimeout,width:void 0,height:void 0,headerFilter:e.option("headerFilter"),encodeHtml:e.option("encodeHtml"),applyChangesMode:n.applyChangesMode,onContextMenuPreparing:function(t){e._trigger("onContextMenuPreparing",t)}},a={shading:!1,title:n.title,width:n.width,height:n.height,showCloseButton:!0,resizeEnabled:!0,minWidth:n.minWidth,minHeight:n.minHeight,toolbarItems:i,onResize:function(e){e.component.$content().dxPivotGridFieldChooser("updateDimensions")},onShown:function(t){e._createComponent(t.component.content(),z.default,o)},onHidden:function(e){var t=e.component.$content().dxPivotGridFieldChooser("instance");t.resetTreeView(),t.cancelChanges()}};e._fieldChooserPopup?(e._fieldChooserPopup.option(a),e._fieldChooserPopup.$content().dxPivotGridFieldChooser(o)):e._fieldChooserPopup=e._createComponent((0,h.default)(fe).addClass(ue).appendTo(t),K.default,a)},_renderContextMenu:function(){var e=this,t=e._pivotGridContainer;e._contextMenu&&e._contextMenu.$element().remove(),e._contextMenu=e._createComponent((0,h.default)(fe).appendTo(t),Y.default,{onPositioning:function(t){var n,i,o,a=t.event;if(t.cancel=!0,a&&(n=a.target.cellIndex>=0?a.target:(0,h.default)(a.target).closest("td").get(0)))return i=e._createEventArgs(n,a),o=e._getContextMenuItems(i),o?(t.component.option("items",o),void(t.cancel=!1)):void 0},onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:ie,target:e.$element()})},_getContextMenuItems:function(e){var t=this,n=[],i=t.option("texts");if("row"===e.area||"column"===e.area){var o=e[e.area+"Fields"],a=e["column"===e.area?"rowFields":"columnFields"],r=e.cell.path&&o[e.cell.path.length-1],s=t.getDataSource();if(r&&r.allowExpandAll&&e.cell.path.length<e[e.area+"Fields"].length&&!s.paginate()&&(n.push({beginGroup:!0,icon:"none",text:i.expandAll,onItemClick:function(){s.expandAll(r.index)}}),n.push({text:i.collapseAll,icon:"none",onItemClick:function(){s.collapseAll(r.index)}})),e.cell.isLast&&!s.paginate()){var l=0;(0,w.each)(a,function(t,o){o.allowSortingBySummary&&(0,w.each)(e.dataFields,function(t,a){if(!(0,C.isDefined)(e.cell.dataIndex)||e.cell.dataIndex===t){var r=!(0,C.isDefined)(e.cell.dataIndex)&&e.dataFields.length>1,u="column"===e.area?i.sortColumnBySummary:i.sortRowBySummary,c=(0,O.findField)(e.dataFields,o.sortBySummaryField)===t&&(e.cell.path||[]).join("/")===(o.sortBySummaryPath||[]).join("/"),d=(0,x.format)(u,r?o.caption+" - "+a.caption:o.caption);n.push({beginGroup:0===l,icon:c?"desc"===o.sortOrder?"sortdowntext":"sortuptext":"none",text:d,onItemClick:function(){s.field(o.index,{sortBySummaryField:a.name||a.caption||a.dataField,sortBySummaryPath:e.cell.path,sortOrder:"desc"===o.sortOrder?"asc":"desc"}),s.load()}}),l++}})}),(0,w.each)(a,function(e,t){if(t.allowSortingBySummary&&(0,C.isDefined)(t.sortBySummaryField))return n.push({beginGroup:0===l,icon:"none",text:i.removeAllSorting,onItemClick:function(){(0,w.each)(a,function(e,t){s.field(t.index,{sortBySummaryField:void 0,sortBySummaryPath:void 0,sortOrder:void 0})}),s.load()}}),!1})}}if(t.option("fieldChooser.enabled")&&n.push({beginGroup:!0,icon:"columnchooser",text:i.showFieldChooser,onItemClick:function(){t._fieldChooserPopup.show()}}),t.option("export.enabled")&&n.push({beginGroup:!0,icon:"exportxlsx",text:i.exportToExcel,onItemClick:function(){t.exportToExcel()}}),e.items=n,t._trigger("onContextMenuPreparing",e),n=e.items,n&&n.length)return n},_createEventArgs:function(e,t){var n=this,i=n.getDataSource(),o={rowFields:i.getAreaFields("row"),columnFields:i.getAreaFields("column"),dataFields:i.getAreaFields("data"),event:t};return c((0,h.default)(e))?(0,k.extend)(n._createFieldArgs(e),o):(0,k.extend)(n._createCellArgs(e),o)},_createFieldArgs:function(e){var t=(0,h.default)(e).children().data("field"),n={field:t};return(0,C.isDefined)(t)?n:{}},_createCellArgs:function(e){var t=(0,h.default)(e),n=e.cellIndex,i=e.parentElement.rowIndex,o=t.closest("table"),a=o.data("data"),r=a&&a[i]&&a[i][n],s={area:o.data("area"),rowIndex:i,columnIndex:n,cellElement:(0,y.getPublicElement)(t),cell:r};return s},_handleCellClick:function(e){var t=this,n=t._createEventArgs(e.currentTarget,e),i=n.cell;i&&(n.area||!n.rowIndex&&!n.columnIndex)&&(t._trigger("onCellClick",n),i&&!n.cancel&&(0,C.isDefined)(i.expanded)&&setTimeout(function(){t._dataController[i.expanded?"collapseHeaderItem":"expandHeaderItem"](n.area,i.path)}))},_getNoDataText:function(){return this.option("texts.noData")},_renderNoDataText:A.renderNoDataText,_renderLoadPanel:A.renderLoadPanel,_updateLoading:function(e){var t,n=this,i=n._dataController.isLoading();n._loadPanel&&(t=n._loadPanel.option("visible"),t||(n._startLoadingTime=new Date),i&&(e?new Date-n._startLoadingTime>=1e3&&n._loadPanel.option("message",Math.floor(100*e)+"%"):n._loadPanel.option("message",n.option("loadPanel.text"))),clearTimeout(n._hideLoadingTimeoutID),t&&!i?n._hideLoadingTimeoutID=setTimeout(function(){n._loadPanel.option("visible",!1),n.$element().removeClass(de)}):(n._loadPanel.option("visible",i),n.$element().toggleClass(de,!i)))},_renderDescriptionArea:function(){var e=this,t=this.$element(),n=t.find("."+te),i=(0,h.default)(fe).addClass("dx-pivotgrid-toolbar"),o=this.option("fieldPanel"),a=t.find(".dx-filter-header"),r=t.find(".dx-column-header"),s=void 0;if(s=o.visible&&o.showFilterFields?a:o.visible&&(o.showDataFields||o.showColumnFields)?r:n,r.toggleClass(re,!(!o.visible||!o.showDataFields&&!o.showColumnFields)),a.toggleClass(re,!(!o.visible||!o.showFilterFields)),n.toggleClass("dx-pivotgrid-background",o.visible&&(o.showDataFields||o.showColumnFields||o.showRowFields)),this.$element().find(".dx-pivotgrid-toolbar").remove(),i.prependTo(s),this.option("fieldChooser.enabled")){var l=(0,h.default)(fe).appendTo(i).addClass("dx-pivotgrid-field-chooser-button"),u={icon:"columnchooser",hint:this.option("texts.showFieldChooser"),onClick:function(){e.getFieldChooserPopup().show()}};this._createComponent(l,"dxButton",u)}if(this.option("export.enabled")){var c=(0,h.default)(fe).appendTo(i).addClass("dx-pivotgrid-export-button"),d={icon:"exportxlsx",hint:this.option("texts.exportToExcel"),onClick:function(){e.exportToExcel()}};this._createComponent(c,"dxButton",d)}},_detectHasContainerHeight:function(){var e,t=this,n=t.$element();(0,C.isDefined)(t._hasHeight)||n.is(":hidden")||(t._pivotGridContainer.addClass("dx-hidden"),e=(0,h.default)(fe).height(ge),n.append(e),t._hasHeight=n.height()!==ge,t._pivotGridContainer.removeClass("dx-hidden"),e.remove())},_renderHeaders:function(e,t,n,i){var o=this,a=o.getDataSource();o._rowFields=o._rowFields||new L.FieldsArea(o,"row"),o._rowFields.render(e,a.getAreaFields("row")),o._columnFields=o._columnFields||new L.FieldsArea(o,"column"),o._columnFields.render(t,a.getAreaFields("column")),o._filterFields=o._filterFields||new L.FieldsArea(o,"filter"),o._filterFields.render(n,a.getAreaFields("filter")),o._dataFields=o._dataFields||new L.FieldsArea(o,"data"),o._dataFields.render(i,a.getAreaFields("data")),o.$element().dxPivotGridFieldChooserBase("instance").renderSortable()},_createTableElement:function(){var e=this,t=(0,h.default)("<table>").css({width:"100%"}).toggleClass(ne,!!e.option("showBorders")).toggleClass("dx-word-wrap",!!e.option("wordWrapEnabled"));return _.default.on(t,(0,E.addNamespace)(S.name,"dxPivotGrid"),"td",e._handleCellClick.bind(e)),t},_renderDataArea:function(e){var t=this,n=t._dataArea||new R.DataArea(t);return t._dataArea=n,n.render(e,t._dataController.getCellsInfo()),n},_renderRowsArea:function(e){var t=this,n=t._rowsArea||new V.VerticalHeadersArea(t);return t._rowsArea=n,n.render(e,t._dataController.getRowsInfo()),n},_renderColumnsArea:function(e){var t=this,n=t._columnsArea||new V.HorizontalHeadersArea(t);return t._columnsArea=n,n.render(e,t._dataController.getColumnsInfo()),n},_initMarkup:function(){var e=this;e.callBase.apply(this,arguments),e.$element().addClass(ie)},_renderContentImpl:function(){var e,t,n,i,o,a,s,l,u,c,d,p=this,g=!p._pivotGridContainer;i=!g&&p._tableElement(),i||(p.$element().addClass(oe).addClass(se),p._pivotGridContainer=(0,h.default)(fe).addClass("dx-pivotgrid-container"),p._renderFieldChooser(),p._renderContextMenu(),e=(0,h.default)(pe).addClass(ee),t=(0,h.default)(pe).addClass(J),n=(0,h.default)(pe).addClass(Q),i=p._createTableElement(),d=(0,h.default)(pe).addClass("dx-data-header"),c=(0,h.default)("<td>").attr("colspan","2").addClass("dx-filter-header"),u=(0,h.default)(pe).addClass("dx-column-header"),l=(0,h.default)(pe).addClass(te),(0,h.default)(he).append(c).appendTo(i),(0,h.default)(he).append(d).append(u).appendTo(i),(0,h.default)(he).toggleClass("dx-ie",f.msie===!0).append(l).append(e).appendTo(i),(0,h.default)(he).addClass(ae).append(t).append(n).appendTo(i),p._pivotGridContainer.append(i),p.$element().append(p._pivotGridContainer),"tree"===p.option("rowHeaderLayout")&&t.addClass("dx-area-tree-view")),p.$element().addClass(de),p._createComponent(p.$element(),$.default,{dataSource:p.getDataSource(),encodeHtml:p.option("encodeHtml"),allowFieldDragging:p.option("fieldPanel.allowFieldDragging"),headerFilter:p.option("headerFilter"),visible:p.option("visible")}),o=p._renderDataArea(n),a=p._renderRowsArea(t),s=p._renderColumnsArea(e),o.tableElement().prepend(s.headElement()),g&&(p._renderLoadPanel(o.groupElement().parent(),p.$element()),p._renderDescriptionArea(),a.processScroll(),s.processScroll()),[o,a,s].forEach(function(e){r(e)}),p._renderHeaders(l,u,c,d),p._update(g)},_update:function(e){var t,n=this;t=function(){n.updateDimensions().done(function(){n._subscribeToEvents(n._columnsArea,n._rowsArea,n._dataArea)})},n._needDelayResizing(n._dataArea.getData())&&e?setTimeout(t):t()},_fireContentReadyAction:function(){this._dataController.isLoading()||this.callBase()},getScrollPath:function(e){var t=this;return"column"===e?t._columnsArea.getScrollPath(t._scrollLeft):t._rowsArea.getScrollPath(t._scrollTop)},getDataSource:function(){return this._dataController.getDataSource()},getFieldChooserPopup:function(){return this._fieldChooserPopup},hasScroll:function(e){var t=this;return"column"===e?t._columnsArea.hasScroll():t._rowsArea.hasScroll()},_dimensionChanged:function(){this.updateDimensions()},_visibilityChanged:function(e){e&&this.updateDimensions()},_dispose:function(){var e=this;clearTimeout(e._hideLoadingTimeoutID),e.callBase.apply(e,arguments),e._dataController&&e._dataController.dispose()},_tableElement:function(){return this.$element().find("table").first()},addWidgetPrefix:function(e){return"dx-pivotgrid-"+e},resize:function(){this.updateDimensions()},isReady:function(){return this.callBase()&&!this._dataController.isLoading()},updateDimensions:function(){var e,t,n,i,r,s,c,d,f,g,_,m,v,y,x,C,k,S=this,I=S._tableElement(),T=S._rowsArea,D=S._columnsArea,E=S._dataArea,A=0,B=0,P=0,M=S.option("scrolling")||{},R=l(M.useNative),V=R.scrollBarWidth,L=I.find("."+Q),H=I.find("."+J),z=I.find("."+ee),N=I.find("."+te),$=I.find(".dx-filter-header"),W=I.find(".dx-column-header"),G=S._rowFields,j=new X.Deferred;if((0,p.hasWindow)())return k=G.isVisible()&&"tree"!==S.option("rowHeaderLayout"),S._detectHasContainerHeight(),E.headElement().length||E.tableElement().prepend(D.headElement()),k&&(T.updateColspans(G.getColumnsCount()),T.tableElement().prepend(G.headElement())),I.addClass(ce),E.reset(),T.reset(),D.reset(),G.reset(),(0,b.deferUpdate)(function(){return s=E.getColumnsWidth(),x=T.getRowsHeight(),i=k?x.slice(1):x,n=E.getRowsHeight(),v=(0,F.getSize)(N[0],"height",{paddings:!0,borders:!0,margins:!0})+(k?x[0]:0),C=S._dataController.getColumnsInfo().length,r=(0,O.mergeArraysByMaxValue)(i,n.slice(C)),y=n.slice(0,C),m=o(y),c=T.getColumnsWidth(),S._hasHeight&&(d=u([z,L,I,W,$],"height"),t=S.$element().height()-$.height()-I.find(".dx-data-header").height()-(Math.max(E.headElement().height(),z.height(),v)+d)),A=E.tableElement().width(),B=o(r),A&&B?(P=o(c),_=S.$element().width(),d=u([H,L,I],"width"),e=_-P-d,e=e>0?e:A,f=S._hasHeight&&B-t>=1,g=A-e>=1,f||(t=B+(g?V:0)),void(0,b.deferRender)(function(){if(D.tableElement().append(E.headElement()),G.tableElement().append(T.headElement()),!g&&f&&V&&(a(s,V),A-=V),v>m&&(a(y,m-v),D.setRowsHeight(y)),I.removeClass(ce),W.children().css("maxWidth",e),D.groupWidth(e),D.processScrollBarSpacing(f?V:0),D.setColumnsWidth(s),T.groupHeight(S._hasHeight?t:"auto"),T.processScrollBarSpacing(g?V:0),T.setColumnsWidth(c),T.setRowsHeight(r),E.setColumnsWidth(s),E.setRowsHeight(r),E.groupWidth(e),E.groupHeight(S._hasHeight?t:"auto"),k&&G.setColumnsWidth(c),L.toggleClass(re,!f),H.toggleClass(re,!f),!S._hasHeight&&_!==S.$element().width()){var n=_-S.$element().width();g||(a(s,n),D.setColumnsWidth(s),E.setColumnsWidth(s)),E.groupWidth(e-n),D.groupWidth(e-n)}if("virtual"===M.mode&&!S._dataController.isEmpty()){var i=S._dataController.calculateVirtualContentParams({virtualRowHeight:M.virtualRowHeight,virtualColumnWidth:M.virtualColumnWidth,itemWidths:s,itemHeights:r,rowCount:r.length,columnCount:s.length,viewportWidth:e,viewportHeight:S._hasHeight?t:(0,h.default)(Z).outerHeight()});E.setVirtualContentParams({top:i.contentTop,left:i.contentLeft,width:i.width,height:i.height}),T.setVirtualContentParams({top:i.contentTop,width:P,height:i.height}),D.setVirtualContentParams({left:i.contentLeft,width:i.width,height:D.groupElement().height()})}var o=[];E.processScroll(R.scrollBarUseNative,g,f),(0,w.each)([D,T,E],function(e,t){o.push(t&&t.updateScrollable())}),S._updateLoading(),S._renderNoDataText(L),X.when.apply(h.default,o).done(function(){S._updateScrollPosition(D,T,E),j.resolve()})})):void j.resolve()}),j},applyPartialDataSource:function(e,t,n){this._dataController.applyPartialDataSource(e,t,n)}}).inherit(W.ExportMixin).include(j.default);(0,v.default)("dxPivotGrid",me),e.exports=me},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}var a=n(25),r=i(a),s=n(6),l=n(0),u=n(13),c=n(3),d=i(c),h=n(15),p=i(h),f=n(45),g=i(f),_=n(4),m=i(_),v=n(1),y=n(358),x=i(y),b=n(376),w=i(b),C=n(347),k=i(C),S=n(201),I=i(S),T=n(78),D=i(T),E=Math,A="GT",O="T",B="D",P="#N/A",M=300,R=function(e,t,n){e[t]||(e[t]=function(){var e=this._dataSource;return e?e[t].apply(e,arguments):n})};t.DataController=p.default.inherit(function(){function e(e,t,n){var i=e.text;return(0,v.isDefined)(e.displayText)?i=e.displayText:(0,v.isDefined)(e.caption)?i=e.caption:e.type===A&&(i=n.texts.grandTotal),e.isAdditionalTotal&&(i=g.default.format(n.texts.total||"",i)),i}function t(e,t,n){return e===P?n:(0,T.formatValue)(e,t)}function n(e,t){var n=[];return d.default.each(e,function(e,i){var o=D.default.findField(t,i.sortBySummaryField);o>=0&&n.push((i.sortBySummaryPath||[]).concat([o]))}),n}function i(e,t){for(var n=0,i=[],o=0;o<e.length;o++)for(var a=0;a<e[o].length;a++){var r=(e[o][a].rowspan||1)-1,s=o+r;if(i[o]&&(n-=i[o],i[o]=0),t(e[o][a],s,o,a,n)===!1)break;i[o+(e[o][a].rowspan||1)]=(i[o+(e[o][a].rowspan||1)]||0)+1,n++}}function a(e,n,o,a,r,s){var l=[],u="row"===r,c=o.values;return c.length&&i(e,function(e,i){var r=l[i]=[],d=c[e.dataSourceIndex>=0?e.dataSourceIndex:o.grandTotalRowIndex]||[];e.isLast&&w.default.foreachColumnInfo(n,function(n,i){var l=(u?e.dataIndex:n.dataIndex)||0,c=a[l];if(n.isLast&&c){var h,p=d[n.dataSourceIndex>=0?n.dataSourceIndex:o.grandTotalColumnIndex];Array.isArray(p)||(p=[p]),h=p[l],r[i]={text:t(h,c,s),value:h,format:c.format,dataType:c.dataType,columnType:n.type,rowType:e.type,rowPath:e.path||[],columnPath:n.path||[],dataIndex:l},c.width&&(r[i].width=c.width)}})}),l}function c(e,t){var n=0,i=[];
91return(0,T.foreachTree)(e,function(e){var o=e[0],a=(0,T.createPath)(e);if(!o.children||t.showTotals!==!1){var r=(0,l.extend)(!0,{},o,{visibleIndex:n++,path:a});(0,v.isDefined)(r.index)?i[r.index]=r:i.push(r)}}),i}function h(e,t,n){if(t&&"virtual"===t.option("scrolling.mode"))return new x.default.VirtualScrollController(t,(0,l.extend)({hasKnownLastPage:function(){return!0},pageCount:function(){return E.ceil(this.totalItemsCount()/this.pageSize())},updateLoading:function(){},itemsCount:function(){return this.pageIndex()<this.pageCount()-1?this.pageSize():this.totalItemsCount()%this.pageSize()},items:function(){return[]},viewportItems:function(){return[]},onChanged:function(){},isLoading:function(){return e.isLoading()},changingDuration:function(){var t=e._dataSource;return t.paginate()?M:e._changingDuration||0}},n))}function p(e){var t=[];return d.default.each(e,function(e,n){n.showTotals===!1&&t.push(e)}),t}function f(e){var t=[];return e.forEach(function(e,n){(void 0===e.showValues&&e.showTotals===!1||e.showValues===!1)&&t.push(n)}),t}function _(e,t){var n=[];return d.default.each(e,function(e,t){t.showGrandTotals===!1&&n.push(e)}),0===t.length&&n.length===e.length&&(n=[]),n}var y=function(){function t(e,t,n){var i=e[t]=e[t]||[],o=i[n]={};if(e[t+1]){o.children=e[t+1];for(var a=t+1;a<e.length;a++)e[a]=void 0;e.length=t+1}return o}function n(e,n){var i,o=n&&n.length||0,a=[],r=new s.Deferred;return(0,s.when)((0,T.foreachTreeAsync)(e,function(e,n){var r=e[0],s=(0,T.createPath)(e);i=t(a,s.length,n),i.type=B,i.value=r.value,i.path=s,i.text=r.text,i.index=r.index,i.displayText=r.displayText,i.key=r.key,i.isEmpty=r.isEmpty,s.length<o&&(!r.children||0!==r.children.length)&&(i.expanded=!!r.children)})).done(function(){r.resolve(t(a,0,0).children||[])}),r}var i=function(e){var t=0;return(0,T.foreachTree)(e,function(e){t=E.max(t,e.length)}),t},o=function(e,t,n,i){var o={type:e.type,text:e.text};return e.path&&(o.path=e.path),e.width&&(o.width=e.width),(0,v.isDefined)(e.wordWrapEnabled)&&(o.wordWrapEnabled=e.wordWrapEnabled),e.isLast&&(o.isLast=!0),e.sorted&&(o.sorted=!0),e.isMetric&&(o.dataIndex=e.dataIndex),(0,v.isDefined)(e.expanded)&&(o.expanded=e.expanded),t>1&&(o[n?"colspan":"rowspan"]=t),e.depthSize&&e.depthSize>1&&(o[n?"rowspan":"colspan"]=e.depthSize),e.index>=0&&(o.dataSourceIndex=e.index),i&&e.children&&e.children.length&&!e.children[0].isMetric&&(o.width=null,o.isWhiteSpace=!0),o},a=function(e,t){var n,i=t.lastIndex-t.index||1,a=function(e,t,n,i,o){for(var a=o?i:n;!e[a];)e.push([]);o?e[a].push(t):e[a].unshift(t)};return n=o(t.headerItem,i,t.isHorizontal,t.isTree),a(e,n,t.index,t.depth,t.isHorizontal),t.headerItem.children&&0!==t.headerItem.children.length?t.lastIndex:t.lastIndex+1},r=function(e,t){var n,i=e[0],o=(0,v.isString)(t[0]),a=i.dataIndex>=0?e[1]:i;return n=o&&t[0].indexOf("&[")!==-1&&a.key||!a.key?(0,T.createPath)(e):d.default.map(e,function(e){return e.dataIndex>=0?e.value:e.text}).reverse(),i.type===A&&(n=n.slice(1)),n.join("/")===t.join("/")},c=function(t,i,o,a,l){var c=o.length,f=n(t,i),_=l.dataFields,m=new s.Deferred;return(0,s.when)(f).done(function(t){l.notifyProgress(.5),l.showGrandTotals&&t[l.showTotalsPrior?"unshift":"push"]({type:A,isEmpty:l.isEmptyGrandTotal});var n=l.showTotals===!1||_.length>0&&_.length===l.hiddenTotals.length,f=_.length>0&&l.hiddenValues.length===_.length;f&&n&&(a=1),n&&"tree"!==l.layout||p(t,i,l.showTotalsPrior,"tree"===l.layout),(0,s.when)((0,T.foreachTreeAsync)(t,function(e){var t=e[0];t.children&&0!==t.children.length||(t.depthSize=a-e.length+1)})).done(function(){c>1&&h(t,o,l),!l.showEmpty&&g(t),l.notifyProgress(.75),(0,s.when)((0,T.foreachTreeAsync)(t,function(n){var a=n[0],s=a.isMetric,c=i[n.length-1]||{};if(a.type!==B||s||(a.width=c.width),f===!0&&a.type===B){var h=(n[1]?n[1].children:t)||[];return void h.splice((0,u.inArray)(a,h),1)}s?a.wordWrapEnabled=o[a.dataIndex].wordWrapEnabled:a.wordWrapEnabled=c.wordWrapEnabled,a.isLast=!a.children||!a.children.length,a.isLast&&d.default.each(l.sortBySummaryPaths,function(e,t){if((0,v.isDefined)(a.dataIndex)||(t=t.slice(0),t.pop()),r(n,t))return a.sorted=!0,!1}),a.text=e(a,c,l)})).done(function(){t.length||t.push({}),l.notifyProgress(1),m.resolve(t)})})}),m},h=function(e,t,n){(0,T.foreachTree)(e,function(e){var i,o=e[0];if(!o.children||0===o.children.length)for(o.children=[],i=0;i<t.length;i++){var a=o.type===A,r=o.type===O,s=o.type===B,l=t[i].visible===!1||a&&(0,u.inArray)(i,n.hiddenGrandTotals)!==-1||r&&(0,u.inArray)(i,n.hiddenTotals)!==-1||s&&(0,u.inArray)(i,n.hiddenValues)!==-1;l||o.children.push({caption:t[i].caption,path:o.path,type:o.type,value:i,index:o.index,dataIndex:i,isMetric:!0,isEmpty:o.isEmpty&&o.isEmpty[i]})}})},p=function(e,t,n,i){n=n||i,(0,T.foreachTree)(e,function(o,a){var r=o[0],s=(o[1]?o[1].children:e)||[],u=t[o.length-1];r.type===B&&r.expanded&&(u.showTotals!==!1||i)&&(a!==-1&&s.splice(n?a:a+1,0,(0,l.extend)({},r,{children:null,type:O,expanded:!!n||null,isAdditionalTotal:!0})),n&&(r.expanded=null))})},f=function e(t,n){var i=t[n+1];!t[n].children.length&&i&&i.children&&(i.children.splice((0,u.inArray)(t[n],i.children),1),e(t,n+1))},g=function(e){(0,T.foreachTree)([{children:e}],function(t,n){var i=t[0],o=(t[1]?t[1].children:e)||[],a=i.isEmpty;a&&a.length&&(a=i.isEmpty.filter(function(e){return e}).length===a.length),i&&!i.children&&a&&(o.splice(n,1),f(t,1))})},_=function(e,t,n,i,o){var r,s,l=0,u=[0];(0,T.foreachTree)(t,function(t){var c=t[0];for(s=c.isMetric?n:t.length-1;u.length-1<s;)u.push(u[u.length-1]);r=u[s]||0,l=a(e,{headerItem:c,index:r,lastIndex:l,depth:s,isHorizontal:i,isTree:o}),u.length=s,u.push(l)})};return function(e,t,n,o,a){var r=[],l=i(e)||1,u=new s.Deferred;return c(e,t,n,l,a).done(function(e){_(r,e,l,o,"tree"===a.layout),a.notifyProgress(1),u.resolve(r)}),u}}(),b={ctor:function(e){var t=this,n=t._fireChanged.bind(t);e=t._options=e||{},t.dataSourceChanged=(0,r.default)(),t._dataSource=t._createDataSource(e),t._rowsScrollController=h(t,e.component,{totalItemsCount:function(){return t.totalRowCount()},pageIndex:function(e){return t.rowPageIndex(e)},pageSize:function(){return t.rowPageSize()},load:function(){return t._rowsScrollController.pageIndex()>=this.pageCount()&&t._rowsScrollController.pageIndex(this.pageCount()-1),t._rowsScrollController.handleDataChanged(function(){t._dataSource.paginate()?t._dataSource.load():n.apply(this,arguments)})}}),t._columnsScrollController=h(t,e.component,{totalItemsCount:function(){return t.totalColumnCount()},pageIndex:function(e){return t.columnPageIndex(e)},pageSize:function(){return t.columnPageSize()},load:function(){return t._columnsScrollController.pageIndex()>=this.pageCount()&&t._columnsScrollController.pageIndex(this.pageCount()-1),t._columnsScrollController.handleDataChanged(function(){t._dataSource.paginate()?t._dataSource.load():n.apply(this,arguments)})}}),t._stateStoringController=new k.default.StateStoringController(e.component).init(),t._columnsInfo=[],t._rowsInfo=[],t._cellsInfo=[],t.expandValueChanging=(0,r.default)(),t.loadingChanged=(0,r.default)(),t.progressChanged=(0,r.default)(),t.scrollChanged=(0,r.default)(),t.load(),t._update(),t.changed=(0,r.default)()},_fireChanged:function(){var e=this,t=new Date;e.changed&&!e._lockChanged&&e.changed.fire(),e._changingDuration=new Date-t},_correctSkipsTakes:function(e,t,n,i,o,a){var r=n?e+n-1:e;o[i.length]=o[i.length]||0,a[i.length]=a[i.length]||0,r<t?o[i.length]++:a[i.length]++},_calculatePagingForRowExpandedPaths:function(e,t,n,i,o){var a,r,s,l=this._rowsInfo,u=Math.min(e.rowSkip+e.rowTake,l.length),c=e.rowExpandedPaths,d=[],h={};for(c.forEach(function(e,t){h[e]=t}),a=0;a<u;a++){for(n.length=t.length=d.length+1,r=0;r<l[a].length;r++){var p=l[a][r];if("D"===p.type){this._correctSkipsTakes(a,e.rowSkip,p.rowspan,d,t,n),s=p.path||s;var f=s&&s.length>1?h[s.slice(0,-1)]:-1;f>=0&&(i[f]=t[d.length]||0,o[f]=n[d.length]||0),p.rowspan&&d.push(p.rowspan)}}d=d.map(function(e){return e-1}).filter(function(e){return e>0})}},_calculatePagingForColumnExpandedPaths:function(e,t,n,i,o){var a={},r={};w.default.foreachColumnInfo(this._columnsInfo,function(t,n){if("D"===t.type&&t.path&&void 0===t.dataIndex){var i=t.colspan||1,o=t.path.slice(0,-1).toString();a[o]=a[o]||0,r[o]=r[o]||0,n+i<=e.columnSkip?a[o]++:n<e.columnSkip+e.columnTake&&r[o]++}}),t[0]=a[[]],n[0]=r[[]],e.columnExpandedPaths.forEach(function(e,t){var n=a[e],s=r[e];void 0!==n&&(i[t]=n),void 0!==s&&(o[t]=s)})},_processPagingForExpandedPaths:function(e,t,n,i){var o=e[t+"ExpandedPaths"],a=o.map(function(){return 0}),r=o.map(function(){return i?e.pageSize:0}),s=[],l=[];i||("row"===t?this._calculatePagingForRowExpandedPaths(e,s,l,a,r):this._calculatePagingForColumnExpandedPaths(e,s,l,a,r)),this._savePagingForExpandedPaths(e,t,n,s[0],l[0],a,r)},_savePagingForExpandedPaths:function(e,t,n,i,a,r,s){var u=e[t+"ExpandedPaths"];e[t+"ExpandedPaths"]=[],e[t+"Skip"]=void 0!==i?i:e[t+"Skip"],e[t+"Take"]=void 0!==a?a:e[t+"Take"];for(var c=0;c<u.length;c++)if(s[c]){var d,h=e.area&&e.area!==t;n.push((0,l.extend)({area:t,headerName:t+"s"},e,(d={},o(d,t+"Skip",r[c]),o(d,t+"Take",s[c]),o(d,h?"oppositePath":"path",u[c]),d)))}},_handleCustomizeStoreLoadOptions:function(e,t){var n=this,i=e[0],o=this._rowsScrollController;if(this._dataSource.paginate()&&o){var a=o._dataSource.pageSize();"rows"===i.headerName?(i.rowSkip=0,i.rowTake=a,i.rowExpandedPaths=[]):(i.rowSkip=o.beginPageIndex()*a,i.rowTake=(o.endPageIndex()-o.beginPageIndex()+1)*a,this._processPagingForExpandedPaths(i,"row",e,t))}var r=this._columnsScrollController;if(this._dataSource.paginate()&&r){var s=r._dataSource.pageSize();e.forEach(function(i,o){"columns"===i.headerName?(i.columnSkip=0,i.columnTake=s,i.columnExpandedPaths=[]):(i.columnSkip=r.beginPageIndex()*s,i.columnTake=(r.endPageIndex()-r.beginPageIndex()+1)*s,n._processPagingForExpandedPaths(i,"column",e,t))})}},load:function(){var e=this,t=this._stateStoringController;t.isEnabled()&&!t.isLoaded()?t.load().always(function(t){t?e._dataSource.state(t):e._dataSource.load()}):e._dataSource.load()},calculateVirtualContentParams:function(e){var t=this,n=t._rowsScrollController,i=t._columnsScrollController;if(n&&i)return n.viewportItemSize(e.virtualRowHeight),n.viewportSize(e.viewportHeight/n.viewportItemSize()),n.setContentSize(e.itemHeights),i.viewportItemSize(e.virtualColumnWidth),i.viewportSize(e.viewportWidth/i.viewportItemSize()),i.setContentSize(e.itemWidths),m.default.deferUpdate(function(){i.loadIfNeed(),n.loadIfNeed()}),t.scrollChanged.fire({left:i.getViewportPosition(),top:n.getViewportPosition()}),{contentTop:n.getContentOffset(),contentLeft:i.getContentOffset(),width:i.getVirtualContentSize(),height:n.getVirtualContentSize()}},setViewportPosition:function(e,t){this._rowsScrollController.setViewportPosition(t||0),this._columnsScrollController.setViewportPosition(e||0)},subscribeToWindowScrollEvents:function(e){this._rowsScrollController&&this._rowsScrollController.subscribeToWindowScrollEvents(e)},updateWindowScrollPosition:function(e){this._rowsScrollController&&this._rowsScrollController.scrollTo(e)},updateViewOptions:function(e){(0,l.extend)(this._options,e),this._update()},_handleExpandValueChanging:function(e){this.expandValueChanging.fire(e)},_handleLoadingChanged:function(e){this.loadingChanged.fire(e)},_handleProgressChanged:function(e){this.progressChanged.fire(e)},_handleFieldsPrepared:function(e){this._options.onFieldsPrepared&&this._options.onFieldsPrepared(e)},_createDataSource:function(e){var t,n=this,i=e.dataSource;return n._isSharedDataSource=i instanceof I.default,t=n._isSharedDataSource?i:new I.default(i),n._expandValueChangingHandler=n._handleExpandValueChanging.bind(n),n._loadingChangedHandler=n._handleLoadingChanged.bind(n),n._fieldsPreparedHandler=n._handleFieldsPrepared.bind(n),n._customizeStoreLoadOptionsHandler=n._handleCustomizeStoreLoadOptions.bind(n),n._changedHandler=function(){n._update(),n.dataSourceChanged.fire()},n._progressChangedHandler=function(e){n._handleProgressChanged(.8*e)},t.on("changed",n._changedHandler),t.on("expandValueChanging",n._expandValueChangingHandler),t.on("loadingChanged",n._loadingChangedHandler),t.on("progressChanged",n._progressChangedHandler),t.on("fieldsPrepared",n._fieldsPreparedHandler),t.on("customizeStoreLoadOptions",n._customizeStoreLoadOptionsHandler),t},getDataSource:function(){return this._dataSource},isLoading:function(){return this._dataSource.isLoading()},beginLoading:function(){this._dataSource.beginLoading()},endLoading:function(){this._dataSource.endLoading()},_update:function(){var e=this,t=e._dataSource,i=e._options,o=t.getAreaFields("column"),a=t.getAreaFields("row"),r=t.getAreaFields("data"),l="row"===i.dataFieldArea?r:[],u="row"!==i.dataFieldArea?r:[],d=t.getData(),h=p(r),g=f(r),m=_(r,o),x=!(r.length>0)||m.length!==r.length,b=function(t){this.progress=t,e._handleProgressChanged(.8+.1*w.progress+.1*C.progress)},w={isEmptyGrandTotal:d.isEmptyGrandTotalRow,texts:i.texts||{},hiddenTotals:h,hiddenValues:g,hiddenGrandTotals:[],showTotals:i.showRowTotals,showGrandTotals:i.showRowGrandTotals!==!1&&x,sortBySummaryPaths:n(o,r),showTotalsPrior:"rows"===i.showTotalsPrior||"both"===i.showTotalsPrior,showEmpty:!i.hideEmptySummaryCells,layout:i.rowHeaderLayout,fields:a,dataFields:r,progress:0,notifyProgress:b},C={isEmptyGrandTotal:d.isEmptyGrandTotalColumn,texts:i.texts||{},hiddenTotals:h,hiddenValues:g,hiddenGrandTotals:m,showTotals:i.showColumnTotals,showTotalsPrior:"columns"===i.showTotalsPrior||"both"===i.showTotalsPrior,showGrandTotals:i.showColumnGrandTotals!==!1&&x,sortBySummaryPaths:n(a,r),showEmpty:!i.hideEmptySummaryCells,fields:o,dataFields:r,progress:0,notifyProgress:b};(0,v.isDefined)(d.grandTotalRowIndex)||(d.grandTotalRowIndex=c(d.rows,w).length),(0,v.isDefined)(d.grandTotalColumnIndex)||(d.grandTotalColumnIndex=c(d.columns,C).length),t._changeLoadingCount(1),(0,s.when)(y(d.columns,o,u,!0,C),y(d.rows,a,l,!1,w)).always(function(){t._changeLoadingCount(-1)}).done(function(t,n){e._columnsInfo=t,e._rowsInfo=n,e._rowsScrollController&&e._columnsScrollController&&e.changed&&!e._dataSource.paginate()&&(e._rowsScrollController.reset(),e._columnsScrollController.reset(),e._lockChanged=!0,e._rowsScrollController.load(),e._columnsScrollController.load(),e._lockChanged=!1)}).done(function(){e._fireChanged(),e._stateStoringController.isEnabled()&&!e._dataSource.isLoading()&&(e._stateStoringController.state(e._dataSource.state()),e._stateStoringController.save())})},getRowsInfo:function(e){var t,n,o=this,a=o._rowsInfo,r=o._rowsScrollController;if(r&&!e){var s=r.beginPageIndex()*o.rowPageSize(),u=r.endPageIndex()*o.rowPageSize()+o.rowPageSize(),c=[],d=1;return i(a,function(e,i,o,a,r){var h=i>=s&&o<u,p=o<s?0:o-s,f=e;if(h)c[p]=c[p]||[],t=o<s?e.rowspan-(s-o)||1:e.rowspan,s+p+t>u&&(t=u-(p+s)||1),t!==e.rowspan&&(f=(0,l.extend)({},f,{rowspan:t})),c[p].push(f),d=E.max(d,r+1);else if(n>u)return!1}),i(c,function(e,t,n,i,o){var a=e.colspan||1;o+a>d&&(c[n][i]=(0,l.extend)({},e,{colspan:d-o||1}))}),c}return a},getColumnsInfo:function(e){var t=this,n=t._columnsInfo,i=t._columnsScrollController;if(i&&!e){var o=i.beginPageIndex()*t.columnPageSize(),a=i.endPageIndex()*t.columnPageSize()+t.columnPageSize();n=w.default.createColumnsInfo(n,o,a)}return n},totalRowCount:function(){return this._rowsInfo.length},rowPageIndex:function(e){return void 0!==e&&(this._rowPageIndex=e),this._rowPageIndex||0},totalColumnCount:function(){var e=0;if(this._columnsInfo&&this._columnsInfo.length)for(var t=0;t<this._columnsInfo[0].length;t++)e+=this._columnsInfo[0][t].colspan||1;return e},rowPageSize:function(e){return void 0!==e&&(this._rowPageSize=e),this._rowPageSize||20},columnPageSize:function(e){return void 0!==e&&(this._columnPageSize=e),this._columnPageSize||20},columnPageIndex:function(e){return void 0!==e&&(this._columnPageIndex=e),this._columnPageIndex||0},getCellsInfo:function(e){var t=this.getRowsInfo(e),n=this.getColumnsInfo(e),i=this._dataSource.getData(),o=this._options.texts||{};return a(t,n,i,this._dataSource.getAreaFields("data"),this._options.dataFieldArea,o.dataNotAvailable)},dispose:function(){var e=this;e._isSharedDataSource?(e._dataSource.off("changed",e._changedHandler),e._dataSource.off("expandValueChanging",e._expandValueChangingHandler),e._dataSource.off("loadingChanged",e._loadingChangedHandler),e._dataSource.off("progressChanged",e._progressChangedHandler),e._dataSource.off("fieldsPrepared",e._fieldsPreparedHandler),e._dataSource.off("customizeStoreLoadOptions",e._customizeStoreLoadOptionsHandler)):e._dataSource.dispose(),e._columnsScrollController&&e._columnsScrollController.dispose(),e._rowsScrollController&&e._rowsScrollController.dispose(),e._stateStoringController.dispose(),e.expandValueChanging.empty(),e.changed.empty(),e.loadingChanged.empty(),e.progressChanged.empty(),e.scrollChanged.empty(),e.dataSourceChanged.empty()}};return R(b,"applyPartialDataSource"),R(b,"collapseHeaderItem"),R(b,"expandHeaderItem"),R(b,"getData"),R(b,"isEmpty"),b}())},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(6),a=n(40),r=n(41),s=i(r),l=n(56),u=n(44),c=n(136),d=i(c),h=n(20),p=n(15),f=i(p),g=n(4),_=n(1),m=n(3),v=n(78),y=n(68),x=i(y),b="/./";t.LocalStore=f.default.inherit(function(){function e(e){return e.indexOf(".")!==-1?(0,h.compileGetter)(e):function(t){return t[e]}}function t(e){return function(t){var n=e(t);return!n||n instanceof Date||(n=(0,l.deserializeDate)(n)),n}}function n(i){(0,m.each)(i||[],function(i,o){var a,r,s,l,u=o.dataField,c=o.levels;if(!o.selector){if(l=u?e(u):function(e){return e},c&&n(c),"date"===o.dataType){r=M[o.groupInterval];var d=t(l);a=function(e){var t=d(e);return r?r(t):t}}else"number"===o.dataType?(s=(0,_.isNumeric)(o.groupInterval)&&o.groupInterval>0&&o.groupInterval,a=function(e){var t=l(e);return(0,_.isString)(t)&&(t=Number(t)),s?Math.floor(t/s)*s:t}):a=l;(0,v.setDefaultFieldValueFormatting)(o),(0,v.setFieldProperty)(o,"selector",a)}})}function i(e,t,n,o,a){var r,s,l=t.dimensions[o],u=t.expandedPathsHash;l&&(r=l.selector(t.data),a=void 0!==a?a+b+r:r+"",s=R(r,n,a,t.childrenHash),e.push(s.index),(u&&u[a]||l.expanded)&&(s.children||(s.children=[]),i(e,t,s.children,o+1,a)))}function r(e,t,n,o){var a=[0],r=t.headerName===o?t.path.length:0,s="rows"===o?t.rowExpandedPaths:t.columnExpandedPaths,l={data:e,childrenHash:n[o+"Hash"],dimensions:t[o],expandedPathsHash:t.headerName!==o&&s&&s.hash};return i(a,l,n[o],r),a}function c(e,t,n,i){var o,a,s,l,u=[],c=r(e,i,n,"rows"),d=r(e,i,n,"columns");for(a=0;a<c.length;a++)for(s=c[a],t[s]=t[s]||[],o=0;o<d.length;o++)l=d[o],u.push(t[s][l]=t[s][l]||[]);return u}function p(e){if(e){var t=e.hash={};e.forEach(function(e){var n=e.map(function(e){return e+""}).join(b);t[n]=!0})}}function f(e){e.rows=e.rows||[],e.columns=e.columns||[],e.filters=e.filters||[],p(e.columnExpandedPaths),p(e.rowExpandedPaths),n(e.columns),n(e.rows),n(e.values),n(e.filters)}function y(e){return"custom"===e.summaryType?(e.calculateCustomSummary=e.calculateCustomSummary||g.noop,{seed:function(){var t={summaryProcess:"start",totalValue:void 0};return e.calculateCustomSummary(t),t},step:function(t,n){return t.summaryProcess="calculate",t.value=n,e.calculateCustomSummary(t),t},finalize:function(t){return t.summaryProcess="finalize",delete t.value,e.calculateCustomSummary(t),t.totalValue}}):a.aggregators[e.summaryType]||a.aggregators.count}function w(e,t,n){for(var i=0;i<e.length;i++)for(var o=e[i],a=o.selector(n),r=y(o),s="function"==typeof r.seed,l=0;l<t.length;l++){var u=t[l];u.length<=i&&(u[i]=s?r.seed():r.seed),void 0===u[i]?u[i]=a:(0,_.isDefined)(a)&&(u[i]=r.step(u[i],a))}}function C(e,t){(0,m.each)(e,function(e,n){var i=y(n);i.finalize&&(0,m.each)(t,function(t,n){(0,m.each)(n,function(t,n){n&&void 0!==n[e]&&(n[e]=i.finalize(n[e]))})})})}function k(e,t){var n=e&&e.valueOf(),i=t&&t.valueOf();if(Array.isArray(e)){t=t||[];for(var o=0;o<e.length;o++)if(n=e[o]&&e[o].valueOf(),i=t[o]&&t[o].valueOf(),n!==i)return!1;return!0}return n===i}function S(e,t){var n=[];return(0,m.each)(e,function(e,i){n.push(i.selector(t))}),n}function I(e){var t=[];return(0,m.each)(e,function(e,n){var i,o=n.filterValues||[],a=n.groupName;a&&(0,_.isNumeric)(n.groupIndex)||(i=function(e){for(var t=n.levels?S(n.levels,e):n.selector(e),i=!1,a=0;a<o.length;a++)if(k(o[a],t)){i=!0;break}return"exclude"===n.filterType?!i:i},o.length&&t.push(i))}),t}function T(e){var t=I(e.rows).concat(I(e.columns)).concat(I(e.filters)),n=e[e.headerName],i=e.path;return n&&t.push(function(e){for(var t,o=0;o<i.length;o++)if(t=n[o].selector(e),(0,h.toComparable)(t,!0)!==(0,h.toComparable)(i[o],!0))return!1;return!0}),function(e){for(var n=0;n<t.length;n++)if(!t[n](e))return!1;return!0}}function D(e,t,n){function i(){for(var o=new Date,p=h;h<e.length;h++){if(h>p&&h%1e4===0&&new Date-o>=300)return n(h/e.length),void setTimeout(i,0);s=e[h],r(s)&&(a=c(s,u,l,t),w(t.values,a,s))}C(t.values,u),n(1),d.resolve({rows:l.rows,columns:l.columns,values:u,grandTotalRowIndex:0,grandTotalColumnIndex:0})}var a,r,s,l={columns:[],rows:[],columnsHash:{length:1},rowsHash:{length:1}},u=[],d=new o.Deferred,h=0;return r=T(t),i(),d}function E(e,t){var n=e.filter();return e.store()instanceof d.default&&n?(n=P(n,t),(0,s.default)(e.items()).filter(n).toArray()):e.items()}function A(e,t,n){var i=new o.Deferred,a=function(n){e.store()instanceof x.default&&(n.storeLoadOptions.filter=P(n.storeLoadOptions.filter,t))};if(e.on("customizeStoreLoadOptions",a),!e.isLoaded()||n){var r=n?e.load():e.reload();(0,o.when)(r).done(function(){A(e,t).done(function(){i.resolve(E(e,t))}).fail(i.reject)}).fail(i.reject)}else i.resolve(E(e,t));return i.always(function(){e.off("customizeStoreLoadOptions",a)})}function O(n,i){i.forEach(function(i){if(i.dataField&&"date"===i.dataType){var o=t(e(i.dataField));n[i.dataField]=function(e){return o(e)}}})}function B(e){var t={};return Array.isArray(e)?O(t,e):e&&["rows","columns","filters"].forEach(function(n){e[n]&&O(t,e[n])}),t}function P(e,t){if(!Array.isArray(e))return e;e=e.slice(0),(0,_.isString)(e[0])&&(e[1]instanceof Date||e[2]instanceof Date)&&(e[0]=t[e[0]]);for(var n=0;n<e.length;n++)e[n]=P(e[n],t);return e}var M={year:function(e){return e&&e.getFullYear()},quarter:function(e){return e&&Math.floor(e.getMonth()/3)+1},month:function(e){return e&&e.getMonth()+1},day:function(e){return e&&e.getDate()},dayOfWeek:function(e){return e&&e.getDay()}},R=function(e,t,n,i){var o=i[n];return o||(o={value:e,index:i.length++},i[n]=o,t.push(o)),o};return{ctor:function(e){this._progressChanged=e.onProgressChanged||g.noop,this._dataSource=new u.DataSource(e),this._dataSource.paginate(!1)},getFields:function(e){var t=this,n=t._dataSource,i=new o.Deferred;return A(n,B(e)).done(function(t){i.resolve((0,v.discoverObjectFields)(t,e))}).fail(i.reject),i},key:function(){return this._dataSource.key()},load:function(e){var t=this,n=t._dataSource,i=new o.Deferred;return f(e),A(n,B(e),e.reload).done(function(n){(0,o.when)(D(n,e,t._progressChanged)).done(i.resolve)}).fail(i.reject),i},filter:function(){var e=this._dataSource;return e.filter.apply(e,arguments)},supportPaging:function(){return!1},getDrillDownItems:function(e,t){e=e||{},t=t||{},f(e);for(var n,i=[],o=this._dataSource.items(),a=t.maxRowCount,r=t.customColumns,s=T(e),l=T({rows:(0,v.getFiltersByPath)(e.rows,t.rowPath),columns:(0,v.getFiltersByPath)(e.columns,t.columnPath),filters:[]}),u=0;u<o.length;u++){if(l(o[u])&&s(o[u])){if(r){n={};for(var c=0;c<r.length;c++)n[r[c]]=o[u][r[c]]}else n=o[u];i.push(n)}if(a>0&&i.length===a)break}return i}}}()).include(v.storeDrillDownMixin)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){var n=[];return(0,E.each)(e,function(i,o){n.push({selector:o.dataField,groupInterval:o.groupInterval,desc:t&&"desc"===o.sortOrder,isExpanded:i<e.length-1})}),n}function r(e){var t=e.dataField,n=e.groupInterval;return"date"===e.dataType&&"string"==typeof n&&("quarter"===n.toLowerCase()&&(n="Month"),t=t+"."+(0,B.capitalizeFirstLetter)(n)),t}function s(e,t,n,i){var o=[e,i?"<":">=",n],a=[e,i?">=":"<",n+t];return[o,i?"or":"and",a]}function l(e,t){var n=r(e),i="exclude"===e.filterType,o=[n,i?"<>":"=",t];return(0,S.isDefined)(e.groupInterval)&&("string"==typeof e.groupInterval&&"quarter"===e.groupInterval.toLowerCase()?o=s(n,3,3*(t-1)+1,i):"number"==typeof e.groupInterval&&"date"!==e.dataType&&(o=s(n,e.groupInterval,t,i))),o}function u(e,t){var n=[];return e.searchValue?[e.dataField,"contains",e.searchValue]:(t="exclude"===e.filterType?t||"and":t||"or",(0,E.each)(e.filterValues,function(i,o){var a=[],r=e.levels?e.levels[i]:e;if(Array.isArray(o)){var s=e.levels&&e.levels.length;s&&(a=u({filterValues:o,filterType:r.filterType,levels:e.levels},"and"))}else a=l(r,o);a.length&&(n.length&&n.push(t),n.push(a))}),n)}function c(e){var t=[];return(0,E.each)(e,function(e,n){var i=u(n);return i.length?(t.length&&t.push("and"),void t.push(i)):[]}),1===t.length&&(t=t[0]),t}function d(e,t){var n,i=function(e){return e&&e.length};return n=i(e)&&i(t)?[e,"and",t]:i(e)?e:t}function h(e,t,n){var i=c(e.filters),o=a(e.rows,e.rowTake).concat(a(e.columns,e.columnTake)),r={groupSummary:[],totalSummary:[],group:o.length?o:void 0,take:o.length?void 0:1};return e.rows.length&&e.rowTake?(r.skip=e.rowSkip,r.take=e.rowTake,r.requireGroupCount=!0):e.columns.length&&e.columnTake&&!n&&(r.skip=e.columnSkip,r.take=e.columnTake,r.requireGroupCount=!0),t&&(i=d(i,t)),i.length&&(r.filter=i),(0,E.each)(e.values,function(t,n){var i={selector:n.dataField,summaryType:n.summaryType||"count"};r.groupSummary.push(i),e.includeTotalSummary&&r.totalSummary.push(i)}),r}function p(e,t,n){e=e||[],n=n||0;for(var i=0;i<e.length;i++){var o=e[i];t(o,n),o&&o.items&&o.items.length&&p(o.items,t,n+1)}}function f(e,t,n,i,o){e[n]=e[n]||[],e[n][i]=e[n][i]||[],(0,S.isDefined)(e[n][i][o])||(e[n][i][o]=t)}function g(e,t){return t&&"number"===t.dataType&&(0,S.isString)(e)?Number(e):!t||"date"!==t.dataType||t.groupInterval||e instanceof Date?e:(0,P.deserializeDate)(e)}function _(e,t,n,i){function a(e,t,n,o,a){var r,s,l,u,c=i[t+"Hash"],d=n.slice(0,o+1).join("/");return void 0!==c[d]?l=c[d]:(l={value:g(e.key,a),index:i[t+"Index"]++},u=n.slice(0,o).join("/"),o>0&&void 0!==c[u]?(r=c[u],s=r.children=r.children||[]):s=i[t+"s"],s.push(l),c[d]=l),l}var r=[],s=[],l=i.rowHash,u=i.columnHash;if(t&&t.summary&&(0,E.each)(t.summary,function(e,t){f(i.values,t,i.grandTotalRowIndex,i.grandTotalColumnIndex,e)}),t&&t.groupCount>=0){var c=n.rows.length?n.rowSkip:n.columnSkip;e=[].concat(o(Array(c))).concat(e),e.length=t.groupCount}return p(e,function(e,t){var o,c,d=t>=n.rows.length?n.rows.length:t,h=t>=n.rows.length?t-n.rows.length:0;if(!(t>=n.rows.length&&h>=n.columns.length)){t<n.rows.length&&(s=[]),t>=n.rows.length?e?(s[h]=e.key+"",o=a(e,"column",s,h,n.columns[s.length-1]),c=l[r.slice(0,d+1).join("/")]):i.columns.push({}):e?(r[d]=e.key+"",c=a(e,"row",r,d),o=u[s.slice(0,h+1).join("/")]):i.rows.push({});var p=c&&c.index||i.grandTotalRowIndex,g=o&&o.index||i.grandTotalColumnIndex;(0,E.each)(e&&e.summary||[],function(e,t){f(i.values,t,p,g,e)})}}),i}function m(e){return(e||[]).filter(function(e){return e.filterValues&&e.filterValues.length||e.searchValue})}function v(e,t){if(e.headerName){if(t===e.headerName)return e.path.length;if(e.oppositePath)return e.oppositePath.length}return 0}function y(e){return(0,B.getFiltersByPath)(e[e.headerName],e.path).concat((0,B.getFiltersByPath)(e["rows"===e.headerName?"columns":"rows"],e.oppositePath||[]))}function x(e,t,n,i){var o=[],a=n>i?0:i,r=e.headerName!==t?e[t].slice(a,n):[],s="rows"===t?e.rowExpandedPaths:e.columnExpandedPaths;return(0,E.each)(r,function(e,t){var i=[];(0,E.each)(s,function(t,o){o=o.slice(a,n),e<o.length&&i.push(o[e])}),i.length&&o.push((0,D.extend)({},t,{filterType:"include",filterValues:i}))}),o}function b(e,t,n,i,o,a){var r,s=("columns"===t?e.columnExpandedPaths:e.rowExpandedPaths)||[],l="columns"===t?"rows":"columns",u=e[t],c=[];if(s.length)for(var d=n;d<i+1;d++)r={filters:o.concat(x(e,t,d,a))},r[t]=u.slice(n,d+1),r[l]=[],d===i&&(r.includeTotalSummary=!0),c.push((0,D.extend)({},e,r));else r={filters:o,includeTotalSummary:!0},r[t]=u.slice(n,i+1),r[l]=[],c.push((0,D.extend)({},e,r));return c}function w(e){var t=0;return(0,E.each)(e,function(e,n){if(!n.expanded)return t=e,!1}),t}function C(e){var t,n=(0,B.getExpandedLevel)(e,"rows"),i=(0,B.getExpandedLevel)(e,"columns"),o=e.filters||[],a=v(e,"columns"),r=w(e.columns),s=w(e.rows),l=v(e,"rows"),u=[];if(o=o.concat(m(e.rows)).concat(m(e.columns)).concat(y(e)),t=b(e,"columns",a,i,o,r),e.rows.length&&e.columns.length){e.headerName||(u=u.concat(t));for(var c=l;c<n+1;c++)for(var d=e.rows.slice(l,c+1),h=x(e,"rows",c,s),p=a;p<i+1;p++){var f=(0,D.extend)({},e,{columns:e.columns.slice(a,p+1),rows:d,filters:o.concat(x(e,"columns",p,r)).concat(h)});u.push(f)}}else u=e.columns.length?t:b(e,"rows",l,n,o,s);return u}function k(e){(0,E.each)(e||[],function(e,t){var n=t.levels;n&&k(n),(0,B.setDefaultFieldValueFormatting)(t)})}var S=n(1),I=n(15),T=i(I),D=n(0),E=n(3),A=n(44),O=n(6),B=n(78),P=n(56);e.exports=T.default.inherit(function(){return{ctor:function(e){this._dataSource=new A.DataSource(e),this._store=this._dataSource.store()},getFields:function(e){var t=new O.Deferred;return this._store.load({skip:0,take:20}).done(function(n){t.resolve((0,B.discoverObjectFields)(n,e))}).fail(t.reject),t},key:function(){return this._store.key()},load:function(e){var t=this,n=new O.Deferred,i={rows:[],columns:[],values:[[[]]],grandTotalRowIndex:0,grandTotalColumnIndex:0,rowHash:{},columnHash:{},rowIndex:1,columnIndex:1},o=C(e),a=[];return k(e.rows),k(e.columns),k(e.filters),(0,E.each)(o,function(n,i){a.push(t._store.load(h(i,t.filter(),e.rows.length)))}),O.when.apply(null,a).done(function(){var e=a.length>1?arguments:[arguments];(0,E.each)(e,function(e,t){_(t[0],t[1],o[e],i)}),n.resolve({rows:i.rows,columns:i.columns,values:i.values,grandTotalRowIndex:i.grandTotalRowIndex,grandTotalColumnIndex:i.grandTotalColumnIndex})}).fail(n.reject),n},filter:function(){return this._dataSource.filter.apply(this._dataSource,arguments)},supportPaging:function(){return!1},createDrillDownDataSource:function(e,t){e=e||{},t=t||{};var n=this._store,i=(0,B.getFiltersByPath)(e.rows,t.rowPath).concat((0,B.getFiltersByPath)(e.columns,t.columnPath)).concat(m(e.rows)).concat(e.filters||[]).concat(m(e.columns)),o=c(i);return new A.DataSource({load:function(e){return n.load((0,D.extend)({},e,{filter:d(o,e.filter),select:t.customColumns}))}})}}}())},function(e,t,n){function i(){return{fields:{},positions:{}}}function o(e,t,n){var i,o,a={index:-1};if((0,l.isObject)(t)||(n.fields[t]?t=n[t]:(o=e.columns.concat(e.rows).concat(e.values),i=(0,d.findField)(o,t),t=n[t]=o[i])),t){var r=t.area||"data";a=n.positions[t.index]=n.positions[t.index]||{area:r,index:(0,c.inArray)(t,e["data"===r?"values":r+"s"])}}return a}function a(e){return e===p?"_rowPath":"_columnPath"}function r(e){var t=e.summaryDisplayMode,n=e.allowCrossGroupCalculation,i=f;return(0,l.isFunction)(e.calculateSummaryValue)?i=e.calculateSummaryValue:t&&(i="absoluteVariation"===t?v(n):"percentVariation"===t?y(n):x[t],i&&!e.format&&t.indexOf("percent")!==-1&&(0,d.setFieldProperty)(e,"format","percent")),i}function s(e,t,n,i){var o=e.values[t][n]=e.values[t][n]||[],a=o.originalCell;a&&(!o.allowResetting&&i||(e.values[t][n]=a.slice()),e.values[t][n].allowResetting=i)}var l=n(1),u=n(0),c=n(13),d=n(78),h="column",p="row",f=null,g=function(e,t){var n=e/t;return(0,l.isDefined)(e)&&!isNaN(n)||(n=f),n},_=function(e,t){return g(e.value(),e.grandTotal(t).value())},m=function(e,t){var n=e.parent(t),i=n?n.value():e.value();return g(e.value(),i)},v=function(e){return function(t){var n=t.prev(h,e),i=n&&n.value();return(0,l.isDefined)(i)&&(0,l.isDefined)(t.value())?t.value()-i:f}},y=function(e){var t=v(e);return function(n){var i=t(n),o=n.prev(h,e),a=o&&o.value();return i!==f&&a?i/a:f;
92}},x={percentOfColumnTotal:function(e){return m(e,p)},percentOfRowTotal:function(e){return m(e,h)},percentOfColumnGrandTotal:function(e){return _(e,p)},percentOfRowGrandTotal:function(e){return _(e,h)},percentOfGrandTotal:function(e){return _(e)}},b=function e(t,n){if(t&&t.parent(n)){var i=t.prev(n);return i||(i=e(t.parent(n),n)),i}},w=function(e){if(e.runningTotal){var t=e.runningTotal===h?p:h;return function(n){var i=e.allowCrossGroupCalculation?b(n,t):n.prev(t,!1),o=n.value(!0),a=i&&i.value(!0);return(0,l.isDefined)(a)&&(0,l.isDefined)(o)?o=a+o:(0,l.isDefined)(a)&&(o=a),o}}},C=function(e,t,n,o,a,r){this._columnPath=e,this._rowPath=t,this._fieldIndex=a,this._fieldsCache=r||i(),this._data=n,this._descriptions=o;var s=n.values&&n.values[t[0].index]&&n.values[t[0].index][e[0].index];s&&(s.originalCell=s.originalCell||s.slice(),this._cell=s)};C.prototype=(0,u.extend)(C.prototype,{_getPath:function(e){return this[a(e)]},_getDimension:function(e){return e=e===p?"rows":"columns",this._descriptions[e]},_createCell:function(e){var t=this;return new C(e._columnPath||t._columnPath,e._rowPath||t._rowPath,t._data,t._descriptions,t._fieldIndex)},parent:function(e){var t=this._getPath(e).slice(),n={};return t.shift(),t.length?(n[a(e)]=t,this._createCell(n)):f},children:function(e){var t=this._getPath(e).slice(),n=t[0],i=[],o={};if(n.children)for(var r=0;r<n.children.length;r++)o[a(e)]=[n.children[r]].concat(t.slice()),i.push(this._createCell(o));return i},grandTotal:function(e){var t={},n=this._rowPath,i=this._columnPath,o=this._getPath(e),r=a(e);return e?t[r]=[o[o.length-1]]:(t._rowPath=[n[n.length-1]],t._columnPath=[i[i.length-1]]),this._createCell(t)},next:function(e,t){var n,i,o=this._getPath(e),a=o[0],r=this.parent(e);if(r&&(i=(0,c.inArray)(a,o[1].children),n=r.children(e),n[i+1]))return n[i+1];if(t&&r){do r=r.next(e,t),n=r?r.children(e):[];while(r&&!n.length);return n[0]||f}return f},prev:function(e,t){var n,i,o=this._getPath(e),a=o[0],r=this.parent(e);if(r&&(i=(0,c.inArray)(a,o[1].children),n=r.children(e),n[i-1]))return n[i-1];if(t&&r){do r=r.prev(e,t),n=r?r.children(e):[];while(r&&!n.length);return n[n.length-1]||f}return f},cell:function(){return this._cell},field:function e(t){if("data"===t)return this._descriptions.values[this._fieldIndex];var n=this._getPath(t),i=this._getDimension(t),e=i[n.length-2];return e||f},child:function(e,t){for(var n,i=this.children(e),o=0;o<i.length;o++)if(n=n||i[o].field(e),i[o].value(n)===t)return i[o];return f},slice:function(e,t){var n,i,r,s,l=this,u={},c=o(this._descriptions,e,this._fieldsCache),d=c.area,g=c.index,_=f,m=[];if((d===p||d===h)&&(i=this._getPath(d).slice(),s=g!==-1&&i.length-2-g,i[s])){m[i.length-1]=i[i.length-1];for(var v=s;v>=0;v--){if(i[v+1]){n=i[v+1].children||[],r=v===s?t:i[v].value,i[v]=void 0;for(var y=0;y<n.length;y++)if(n[y].value===r){i[v]=n[y];break}}if(void 0===i[v])return _}u[a(d)]=i,_=l._createCell(u)}return _},value:function(e,t){var n,i,a=this._cell,r=this._fieldIndex,s=e===!0||e===!1,u=s?f:e,c=s&&e||t;if((0,l.isDefined)(u)){var d=o(this._descriptions,u,this._fieldsCache);if(r=d.index,"data"!==d.area)return n=this._getPath(d.area),i=r!==-1&&n.length-2-r,n[i]&&n[i].value}return a&&a.originalCell?c?a[r]:a.originalCell[r]:f}}),t.applyDisplaySummaryMode=function(e,t){var n=[],o=[{index:t.grandTotalColumnIndex,children:t.columns}],a=[{index:t.grandTotalRowIndex,children:t.rows}],l=e.values,u=i();t.values=t.values||[],(0,d.foreachTree)(a,function(i){var a=i[0];a.isEmpty=[],t.values[a.index]=t.values[a.index]||[],(0,d.foreachTree)(o,function(o){var c,d,h,p,f,g,_=o[0];_.isEmpty=_.isEmpty||[],s(t,a.index,_.index,!1);for(var m=0;m<l.length;m++)p=l[m],c=n[m]=void 0===n[m]?r(p):n[m],f=!1,c&&(d=new C(o,i,t,e,m,u),h=d.cell(),g=h[m]=c(d),f=null===g||void 0===g),void 0===_.isEmpty[m]&&(_.isEmpty[m]=!0),void 0===a.isEmpty[m]&&(a.isEmpty[m]=!0),f||(a.isEmpty[m]=_.isEmpty[m]=!1)},!1)},!1),t.isEmptyGrandTotalRow=a[0].isEmpty,t.isEmptyGrandTotalColumn=o[0].isEmpty},t.applyRunningTotal=function(e,t){var n=[],o=[{index:t.grandTotalColumnIndex,children:t.columns}],a=[{index:t.grandTotalRowIndex,children:t.rows}],r=e.values,l=i();t.values=t.values||[],(0,d.foreachTree)(a,function(i){var a=i[0];t.values[a.index]=t.values[a.index]||[],(0,d.foreachTree)(o,function(o){var u,c,d,h,p=o[0];s(t,a.index,p.index,!0);for(var f=0;f<r.length;f++)h=r[f],u=n[f]=void 0===n[f]?w(h):n[f],u&&(c=new C(o,i,t,e,f,l),d=c.cell(),d[f]=u(c))},!1)},!1)},t.createMockSummaryCell=function(e,t,n){var i=new C([],[],{},e,0);return i.value=function(i){if((0,l.isDefined)(i)){var o=(0,d.findField)(t,i),a=t[o];n[o]||!a||(0,l.isDefined)(a.area)||(e.values.push(a),n[o]=!0)}},i.grandTotal=function(){return this},i.children=function(){return[]},i}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(255),s="dx-pivotgrid-area",l="dx-pivotgrid-area-data",u="dx-total",c="dx-grandtotal",d="dx-row-total";t.DataArea=r.AreaItem.inherit({_getAreaName:function(){return"data"},_createGroupElement:function(){return(0,a.default)("<div>").addClass(s).addClass(l)},_applyCustomStyles:function(e){var t=e.cell,n=e.classArray;"T"!==t.rowType&&"T"!==t.columnType||n.push(u),"GT"!==t.rowType&&"GT"!==t.columnType||n.push(c),"T"!==t.rowType&&"GT"!==t.rowType||n.push(d),e.rowIndex===e.rowsCount-1&&e.cssArray.push("border-bottom: 0px"),this.callBase(e)},_moveFakeTable:function(e){this._moveFakeTableHorizontally(e.x),this._moveFakeTableTop(e.y),this.callBase()},processScroll:function(e,t,n){var i="both";t&&!n?i="horizontal":!t&&n&&(i="vertical"),this._groupElement.css("borderTopWidth",0).dxScrollable({useNative:!!e,useSimulatedScrollbar:!e,direction:i,bounceEnabled:!1,updateManually:!0})},reset:function(){this.callBase(),this._virtualContent&&this._virtualContent.parent().css("height","auto")},setVirtualContentParams:function(e){this.callBase(e),this._virtualContent.parent().css("height",e.height),this._setTableCss({top:e.top,left:e.left})}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(t){var n=e.data().data,i=t.parentNode.rowIndex,o=t.cellIndex;return n[i]&&n[i][o]&&n[i][o].path}}var a=n(2),r=i(a),s=n(1),l=n(13),u=n(3),c=n(255),d="dx-pivotgrid-area",h="dx-pivotgrid-horizontal-headers",p="dx-pivotgrid-vertical-headers",f="dx-total",g="dx-grandtotal",_="dx-row-total",m="dx-pivotgrid-expanded",v="dx-pivotgrid-collapsed",y="dx-last-cell",x="dx-vertical-scroll",b="dx-expand-border";t.HorizontalHeadersArea=c.AreaItem.inherit({_getAreaName:function(){return"column"},_getAreaClassName:function(){return h},_createGroupElement:function(){return(0,r.default)("<div>").addClass(this._getAreaClassName()).addClass(d)},_applyCustomStyles:function(e){var t=e.cssArray,n=e.cell,i=e.rowsCount,o=e.classArray;e.cellIndex===e.cellsCount-1&&t.push((e.rtlEnabled?"border-left:":"border-right:")+"0px"),n.rowspan!==i-e.rowIndex&&e.rowIndex+1!==i||t.push("border-bottom-width:0px"),"T"!==n.type&&"GT"!==n.type||o.push(_),"T"===e.cell.type&&o.push(f),"GT"===e.cell.type&&o.push(g),(0,s.isDefined)(n.expanded)&&o.push(n.expanded?m:v),this.callBase(e)},_getMainElementMarkup:function(){return"<thead class='"+this._getAreaClassName()+"'>"},_getCloseMainElementMarkup:function(){return"</thead>"},setVirtualContentParams:function(e){this.callBase(e),this._setTableCss({left:e.left,top:0}),this._virtualContentWidth=e.width},hasScroll:function(){var e=this._virtualContent?this._virtualContentWidth:this._tableWidth;return!(!this._groupWidth||!e)&&e-this._groupWidth>=1},processScroll:function(){this._getScrollable()||this._groupElement.dxScrollable({useNative:!1,useSimulatedScrollbar:!1,showScrollbar:!1,bounceEnabled:!1,direction:"horizontal",updateManually:!0})},processScrollBarSpacing:function(e){var t=this,n=t.option("rtlEnabled")?"right":"left";t._groupWidth&&t.groupWidth(t._groupWidth-e),t._scrollBarWidth&&t._groupElement.next().remove(),t._groupElement.toggleClass(x,e>0),t._groupElement.css("float",n).width(t._groupHeight),t._scrollBarWidth=e},ctor:function(e){this.callBase(e),this._scrollBarWidth=0},getScrollPath:function(e){var t,n=this.tableElement();return e-=parseInt(n[0].style.left,10)||0,(0,u.each)(n.find("td"),function(n,i){if(1===i.colSpan&&i.offsetLeft<=e&&i.offsetWidth+i.offsetLeft>e)return t=i,!1}),o(n,t)},_moveFakeTable:function(e){this._moveFakeTableHorizontally(e),this.callBase()}}),t.VerticalHeadersArea=t.HorizontalHeadersArea.inherit({_getAreaClassName:function(){return p},_applyCustomStyles:function(e){this.callBase(e),e.cellIndex===e.cellsCount-1&&e.classArray.push(y),e.rowIndex===e.rowsCount-1&&e.cssArray.push("border-bottom: 0px"),e.cell.isWhiteSpace&&e.classArray.push("dx-white-space-column")},_getAreaName:function(){return"row"},setVirtualContentParams:function(e){this.callBase(e),this._setTableCss({top:e.top,left:0}),this._virtualContentHeight=e.height},hasScroll:function(){var e=this._virtualContent?this._virtualContentHeight:this._tableHeight;return!(!this._groupHeight||!e)&&e-this._groupHeight>=1},processScroll:function(){this._getScrollable()||this._groupElement.dxScrollable({useNative:!1,useSimulatedScrollbar:!1,showScrollbar:!1,bounceEnabled:!1,direction:"vertical",updateManually:!0})},processScrollBarSpacing:function(e){var t=this;t._groupHeight&&t.groupHeight(t._groupHeight-e),t._scrollBarWidth&&t._groupElement.next().remove(),e&&t._groupElement.after((0,r.default)("<div>").width("100%").height(e-1)),t._scrollBarWidth=e},getScrollPath:function(e){var t,n=this.tableElement();return e-=parseInt(n[0].style.top,10)||0,(0,u.each)(n.find("tr"),function(n,i){var o=i.childNodes[i.childNodes.length-1];if(o&&1===o.rowSpan&&o.offsetTop<=e&&o.offsetHeight+o.offsetTop>e)return t=o,!1}),o(n,t)},_moveFakeTable:function(e){this._moveFakeTableTop(e),this.callBase()},_getRowClassNames:function(e,t,n){0!==e&t.expanded&&(0,l.inArray)(b,n)===-1&&n.push(b)},_getMainElementMarkup:function(){return"<tbody class='"+this._getAreaClassName()+"'>"},_getCloseMainElementMarkup:function(){return"</tbody>"},updateColspans:function(e){var t,n,i,o=this.tableElement()[0].rows,a=0,r=[];if(!(this.getColumnsCount()-e>0))for(n=0;n<o.length;n++)for(i=0;i<o[n].cells.length;i++){var s=o[n].cells[i],l=s.rowSpan;r[n]&&(a-=r[n],r[n]=0),t=e-(a+s.colSpan),i===o[n].cells.length-1&&t>0&&(s.colSpan=s.colSpan+t),r[n+l]=(r[n+l]||0)+s.colSpan,a+=s.colSpan}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,i){n&&n.groupName&&n.groupName===e.groupName&&(0,r.default)(g).addClass("dx-group-connector").addClass("dx-group-connector-prev").appendTo(i),t&&t.groupName&&t.groupName===e.groupName&&(0,r.default)(g).addClass("dx-group-connector").addClass("dx-group-connector-next").appendTo(i)}var a=n(2),r=i(a),s=n(4),l=n(3),u=n(255),c=n(78),d=n(46),h=i(d),p=n(34),f=i(p);n(256);var g="<div>",_="dx-pivotgrid-drag-action";t.FieldsArea=u.AreaItem.inherit({ctor:function(e,t){this.callBase(e),this._area=t},_getAreaName:function(){return"fields"},_createGroupElement:function(){return(0,r.default)(g).addClass("dx-pivotgrid-fields-area").addClass("dx-area-fields").addClass(_).attr("group",this._area)},isVisible:function(){return!!this.option("fieldPanel.visible")&&this.option("fieldPanel.show"+(0,c.capitalizeFirstLetter)(this._area)+"Fields")},_renderButton:function(e){var t=this,n=(0,r.default)("<td>").appendTo((0,r.default)("<tr>").appendTo(e)),i=t.component._createComponent((0,r.default)(g).appendTo(n),f.default,{text:"Fields",icon:"menu",width:"auto",onClick:function(){var e=t.tableElement().find(".dx-fields-area-popup").dxPopup("instance");e.option("visible")||e.show()}});i.$element().addClass("dx-pivotgrid-fields-area-hamburger")},_getPopupOptions:function(e,t){return{contentTemplate:function(){return(0,r.default)("<table>").addClass("dx-area-field-container").append((0,r.default)("<thead>").addClass("dx-pivotgrid-fields-area-head").append(e))},height:"auto",width:"auto",position:{at:"left",my:"left",of:t},dragEnabled:!1,animation:{show:{type:"pop",duration:200}},shading:!1,showTitle:!1,closeOnOutsideClick:!0,container:t.parent()}},_renderPopup:function(e,t){var n=this,i=e.find(".dx-button"),o=n._getPopupOptions(t,i),a=n.component.$element().dxPivotGridFieldChooserBase("instance");n._rowPopup&&n._rowPopup.$element().remove(),n._rowPopup=n.component._createComponent((0,r.default)(g).appendTo(e),h.default,o),n._rowPopup.$element().addClass("dx-fields-area-popup"),n._rowPopup.content().addClass("dx-pivotgrid-fields-container"),n._rowPopup.content().parent().attr("group","row"),a.subscribeToEvents(n._rowPopup.content()),a.renderSortable(n._rowPopup.content())},_shouldCreateButton:function(){return!1},_renderTableContent:function(e,t){var n=this,i=this.groupElement(),a=this.isVisible(),s=n.component.$element().dxPivotGridFieldChooserBase("instance"),u=(0,r.default)("<thead>").addClass("dx-pivotgrid-fields-area-head").appendTo(e),c=n._area,d=(0,r.default)("<tr>");i.toggleClass("dx-hidden",!a),e.addClass("dx-area-field-container"),a&&((0,l.each)(t,function(e,i){if(i.area===c&&i.visible!==!1){var a=(0,r.default)("<td>").append(s.renderField(i,"row"===i.area)),l=a.find(".dx-column-indicators");l.length&&n._shouldCreateButton()&&l.insertAfter(l.next()),a.appendTo(d),o(i,t[e+1],t[e-1],a)}}),d.children().length||(0,r.default)("<td>").append((0,r.default)(g).addClass("dx-empty-area-text").text(this.option("fieldPanel.texts."+c+"FieldArea"))).appendTo(d),n._shouldCreateButton()?(n._renderButton(u),n._renderPopup(e,d)):u.append(d))},reset:function(){this.callBase(),this.groupElement().css("marginTop",0)},_renderVirtualContent:s.noop})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){var i=(0,d.default)(e),o=i.offset();if(t>=o.left&&t<=o.left+i.outerWidth(!0)&&n>=o.top&&n<=o.top+i.outerHeight(!0))return!0}function a(e,t,n){return!(0,f.isDefined)(t.posHorizontal)||(n?e>t.posHorizontal:e<t.posHorizontal)}function r(e,t){var n=-1,i=t.get(0);return(0,_.each)(e,function(t,o){var a=(0,d.default)(o);if(a.attr("item-group")&&a.attr("item-group")===e.eq(t-1).attr("item-group")||n++,o===i)return!1}),n===e.length?-1:n}function s(e,t){var n;return(0,_.each)(t,function(){o(this,e.pageX,e.pageY)&&(n=(0,d.default)(this))}),n}function l(e,t,n){for(var i=[],o=[],a=0;a<e.length;a+=o.length)if(o=e.eq(a),o.attr("item-group")&&(o=n.find("[item-group='"+o.attr("item-group")+"']")),o.is(":visible")){var r={item:o,index:i.length,posHorizontal:t?void 0:(o.last().outerWidth(!0)+o.last().offset().left+o.offset().left)/2};t?r.posVertical=(o.last().offset().top+o.offset().top+o.last().outerHeight(!0))/2:r.posVertical=o.last().outerHeight(!0)+o.last().offset().top,i.push(r)}return i}function u(e){function t(e){r=e.scrollOffset.top}function n(){i(),e.scrollTo(r+=c),a=setTimeout(n,E)}function i(){clearTimeout(a)}function o(e){if(e.pageY<=l+D)c=-T;else{if(!(e.pageY>=l+u-D))return c=0,void i();c=T}n()}var a=null,r=e.scrollTop(),s=e.$element(),l=s.offset().top,u=s.height(),c=0;return e.on("scroll",t),{moveIfNeed:o,element:function(){return s},dispose:function(){i(),e.off("scroll",t)}}}var c=n(2),d=i(c),h=n(5),p=i(h),f=n(1),g=n(0),_=n(3),m=n(8),v=n(9),y=i(v),x=n(66),b=i(x),w=n(55),C=i(w),k=n(151),S="dxSortable",I="dx-sortable",T=2,D=20,E=10,A=b.default.inherit({_getDefaultOptions:function(){return(0,g.extend)(this.callBase(),{onChanged:null,onDragging:null,itemRender:null,groupSelector:null,itemSelector:".dx-sort-item",itemContainerSelector:".dx-sortable",sourceClass:"dx-drag-source",dragClass:"dx-drag",targetClass:"dx-drag-target",direction:"vertical",allowDragging:!0,groupFilter:null,useIndicator:!1})},_renderItem:function(e,t){var n,i=this.option("itemRender");return i?n=i(e,t):(n=e.clone(),n.css({width:e.width(),height:e.height()})),n},_renderIndicator:function(e,t,n,i){var o=e.outerHeight(!0),a=e.outerWidth(!0),r=e.offset().top-n.offset().top,s=e.offset().left-n.offset().left;this._indicator.css({position:"absolute",top:i&&t?r+o:r,left:i&&!t?s+a:s}).toggleClass("dx-position-indicator-horizontal",!t).toggleClass("dx-position-indicator-vertical",!!t).toggleClass("dx-position-indicator-last",!!i).height("").width("").appendTo(n),t?this._indicator.width(a):this._indicator.height(o)},_renderDraggable:function(e){this._$draggable&&this._$draggable.remove(),this._$draggable=this._renderItem(e,"drag").addClass(this.option("dragClass")).appendTo((0,k.getSwatchContainer)(e)).css({zIndex:1e6,position:"absolute"})},_detachEventHandlers:function(){var e=[C.default.move,C.default.start,C.default.end,C.default.enter,C.default.leave,C.default.drop].join(" ");p.default.off(this._getEventListener(),(0,m.addNamespace)(e,S))},_getItemOffset:function(e,t,n){for(var i=0;i<t.length;i++){var o,r=n.pageY<t[i].posVertical;if(e?o=r:r&&(o=a(n.pageX,t[i],this.option("rtlEnabled")),!o&&t[i+1]&&t[i+1].posVertical>t[i].posVertical&&(o=!0)),o)return t[i]}},_getEventListener:function(){var e=this.option("groupSelector"),t=this.$element();return e?t.find(e):t},_attachEventHandlers:function(){var e,t,n,i,o,a,c,h=this,f=h.option("itemSelector"),g=h.option("itemContainerSelector"),v=h.option("groupSelector"),y=h.option("sourceClass"),x=h.option("targetClass"),b=h.option("onDragging"),w=h.option("groupFilter"),k=h.$element(),T=null,D=-1,E=function(){o=[],(0,_.each)(e,function(e,t){o.push((0,d.default)(t).offset())})},A=function(){return v?w?(0,d.default)(v).filter(w):k.find(v):k},O=function(){T&&T.dispose(),T=null},B=function(){var o={sourceGroup:a,sourceIndex:t,sourceElement:e,targetGroup:i.attr("group"),targetIndex:i.find(f).index(n)};b&&b(o),o.cancel&&(i=void 0)};if(h._detachEventHandlers(),h.option("allowDragging")){var P=h._getEventListener();p.default.on(P,(0,m.addNamespace)(C.default.start,S),f,function(i){e=(0,d.default)(i.currentTarget);var o=e.closest(v);a=o.attr("group"),t=r((v?o:k).find(f),e),e.attr("item-group")&&(e=o.find("[item-group='"+e.attr("item-group")+"']")),h._renderDraggable(e),n=h._renderItem(e,"target").addClass(x),e.addClass(y),E(),c=A(),h._indicator=(0,d.default)("<div>").addClass("dx-position-indicator")}),p.default.on(P,(0,m.addNamespace)(C.default.move,S),function(r){var p,m,v,b,w,C,k,S=[];if(e){if(D=-1,h._indicator.detach(),(0,_.each)(h._$draggable,function(e,t){(0,d.default)(t).css({top:o[e].top+r.offset.y,left:o[e].left+r.offset.x})}),i&&i.removeClass(x),i=s(r,c),i&&B(),i&&T&&i.get(0)!==T.element().get(0)&&O(),T&&T.moveIfNeed(r),!i)return void n.detach();!T&&i.attr("allow-scrolling")&&(T=u(i.dxScrollable("instance"))),i.addClass(x),m=i.find(g),v=m.find(f);var E=i.closest("."+I).data("dxSortable"),A=E.option("useIndicator");if(w="vertical"===(E||h).option("direction"),S=l(v,w,m),C=h._getItemOffset(w,S,r)){if(p=C.item,k=S[C.index-1]&&S[C.index-1].item,p.hasClass(y)||k&&k.hasClass(y)&&k.is(":visible"))return void n.detach();if(D=C.index,!A)return void n.insertBefore(p);var P=i.attr("group")!==a,M=D===t,R=D===t+1;if(P)return void h._renderIndicator(p,w,i,h.option("rtlEnabled")&&!w);M||R||h._renderIndicator(p,w,i,h.option("rtlEnabled")&&!w)}else{if(b=v.last(),b.is(":visible")&&b.hasClass(y))return;m.length&&(D=S.length?S[S.length-1].index+1:0),A?v.length&&h._renderIndicator(b,w,i,!h.option("rtlEnabled")||w):n.appendTo(m)}}}),p.default.on(P,(0,m.addNamespace)(C.default.end,S),function(){if(O(),e){var o=h.option("onChanged"),r={sourceIndex:t,sourceElement:e,sourceGroup:a,targetIndex:D,removeSourceElement:!0,removeTargetElement:!1,removeSourceClass:!0};i&&(i.removeClass(x),r.targetGroup=i.attr("group"),(a!==r.targetGroup||D>-1)&&(o&&o(r),r.removeSourceElement&&e.remove())),h._indicator.detach(),r.removeSourceClass&&e.removeClass(y),e=null,h._$draggable.remove(),h._$draggable=null,r.removeTargetElement&&n.remove(),n.removeClass(x),n=null}})}},_init:function(){this.callBase(),this._attachEventHandlers()},_render:function(){this.callBase(),this.$element().addClass(I)},_dispose:function(){var e=this;e.callBase.apply(e,arguments),e._$draggable&&e._$draggable.detach(),e._indicator&&e._indicator.detach()},_optionChanged:function(e){var t=this;switch(e.name){case"onDragging":case"onChanged":case"itemRender":case"groupSelector":case"itemSelector":case"itemContainerSelector":case"sourceClass":case"targetClass":case"dragClass":case"allowDragging":case"groupFilter":case"useIndicator":t._attachEventHandlers();break;case"direction":break;default:t.callBase(e)}}});(0,y.default)("dxSortable",A),e.exports=A},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(e&&e.customizeText)return"string";if(e.dataType)return e.dataType;if(e.format){if(1===(0,d.parse)((0,c.format)(1,e.format)))return"number";if((0,c.format)(new Date,e.format))return"date"}return m}var a=n(15),r=i(a),s=n(1),l=n(0),u=n(3),c=n(63),d=n(51),h=n(172),p=i(h),f=n(377),g=i(f),_=n(6),m="string",v=0,y=1,x=2,b=100;t.ExportMixin=(0,l.extend)({},g.default,{exportToExcel:function(){var e=this;p.default.export(e.getDataProvider(),{fileName:e.option("export.fileName"),proxyUrl:e.option("export.proxyUrl"),format:"EXCEL",rtlEnabled:e.option("rtlEnabled"),ignoreErrors:e.option("export.ignoreExcelErrors"),exportingAction:e._actions.onExporting,exportedAction:e._actions.onExported,fileSavingAction:e._actions.onFileSaving},h.excel.getData)},_getLength:function(e){var t,n=e[0].length,i=0;for(t=0;t<n;t++)i+=e[0][t].colspan||1;return i},_correctCellsInfoItemLengths:function(e,t){for(var n=0;n<e.length;n++)for(;e[n].length<t;)e[n].push({});return e},_calculateCellInfoItemLength:function(e){for(var t=0,n=0;n<e.length;n++)t+=(0,s.isDefined)(e[n].colspan)?e[n].colspan:1;return t},_getAllItems:function(e,t,n){var i,o,a,r=n,u=this._getLength(t),c=e.length;if(e.length>0&&e[0].length>0&&n.length>0&&0===n[0].length){var d=this._calculateCellInfoItemLength(e[0]);d>0&&(r=this._correctCellsInfoItemLengths(n,d))}for(a=e.concat(r),o=0;o<t.length;o++)for(i=t[o].length-1;i>=0;i--)(0,s.isDefined)(a[o+c])||(a[o+c]=[]),a[o+c].splice(0,0,(0,l.extend)({},t[o][i]));return a[0].splice(0,0,(0,l.extend)({},this._getEmptyCell(),{alignment:this._options.rtlEnabled?"right":"left",colspan:u,rowspan:c})),this._prepareItems(a)},getDataProvider:function(){var e=this,n=this._dataController,i=new _.Deferred;return n.beginLoading(),setTimeout(function(){var t=(0,l.extend)(!0,[],n.getColumnsInfo(!0)),o=(0,l.extend)(!0,[],n.getRowsInfo(!0)),a=n.getCellsInfo(!0);i.resolve(e._getAllItems(t,o,a)),n.endLoading()}),new t.DataProvider({items:i,rtlEnabled:this.option("rtlEnabled"),dataFields:this.getDataSource().getAreaFields("data"),customizeExcelCell:this.option("export.customizeExcelCell")})}}),t.DataProvider=r.default.inherit({ctor:function(e){this._options=e,this._styles=[]},ready:function(){var e=this,t=e._options,n=t.dataFields;return(0,_.when)(t.items).done(function(i){var a=i[0][0].rowspan,r=i[a-1],s={alignment:t.rtlEnabled?"left":"right"};e._styles=[{alignment:"center",dataType:"string"},{alignment:t.rtlEnabled?"right":"left",dataType:"string"}],n.length?n.forEach(function(t){e._styles.push((0,l.extend)({},s,{format:t.format,dataType:o(t)}))}):e._styles.push(s),(0,u.each)(r,function(e,t){t.width=b}),t.columns=r,t.items=i})},getColumns:function(){return this._options.columns},getRowsCount:function(){return this._options.items.length},getGroupLevel:function(){return 0},getCellMerging:function(e,t){var n=this._options.items,i=n[e]&&n[e][t];return i?{colspan:i.colspan-1,rowspan:i.rowspan-1}:{colspan:0,rowspan:0}},getFrozenArea:function(){var e=this._options.items;return{x:e[0][0].colspan,y:e[0][0].rowspan}},getCellType:function(e,t){var n=this._styles[this.getStyleId(e,t)];return n&&n.dataType||"string"},getCellData:function(e,t){var n={},i=this._options.items,o=i[e]&&i[e][t]||{};return"string"===this.getCellType(e,t)?n.value=o.text:n.value=o.value,n},getStyles:function(){return this._styles},getStyleId:function(e,t){var n=this._options.items,i=n[0][0].rowspan,o=n[0][0].colspan,a=n[e]&&n[e][t]||{};return 0===t&&0===e?v:t>=o&&e<i?v:e>=i&&t<o?y:x+(a.dataIndex||0)},hasCustomizeExcelCell:function(){return(0,s.isDefined)(this._options.customizeExcelCell)},customizeExcelCell:function(e){this._options.customizeExcelCell&&this._options.customizeExcelCell(e)}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=[],i=t.length-1;return(0,m.each)(e,function(e,o){n.push(o.text||(0,_.formatValue)(o.value,t[i-e]))}),n.reverse()}function a(e){var t=0;return(0,_.foreachTree)(e,function(e){t=Math.max(t,e.length-1)}),t}function r(e,t){var n=e.chartDataItem,i=t&&t(e);return i?(n=(0,g.extend)({},n,i.chartDataItem),i=(0,g.extend)({},e,i,{chartDataItem:n})):e}function s(e,t,n){function i(){var e,i=(b.values[d]||[])[g]||[],o=i[u],a={rowPath:f,maxRowLevel:D,rowPathFormatted:p,rowFields:k,columnPathFormatted:x,maxColumnLevel:E,columnPath:y,columnFields:S,dataFields:C,dataIndex:u,dataValues:i,visible:v&&h},s=(t.inverted?x:p).join(" - "),l=(t.inverted?p:x).join("/");C.length>1&&("args"!==t.putDataFieldsInto&&"both"!==t.putDataFieldsInto||(l+=" | "+c.caption),"args"!==t.putDataFieldsInto&&(s+=" | "+c.caption,"singleAxis"!==t.dataFieldsDisplayMode&&(e=c.caption))),a.chartDataItem={val:void 0===o?null:o,series:s,arg:l},a=r(a,t.processCell),a.visible&&(n[a.chartDataItem.series]=n[a.chartDataItem.series]||e,w.push(a.chartDataItem))}function s(e){(0,_.foreachTree)(T,function(n){d=n[0].index,n=n.slice(0,n.length-1),h=D===n.length,f=(0,_.createPath)(n),p=o(n,k),0===f.length&&(p=[t.grandTotalText]),(0,_.foreachTree)(I,function(n){g=n[0].index,n=n.slice(0,n.length-1),v=E===n.length,y=(0,_.createPath)(n),x=o(n,S),0===y.length&&(x=[t.grandTotalText]),e()})})}function l(e){(0,m.each)(C,function(t,n){c=n,u=t,e()})}var u,c,d,h,p,f,g,v,y,x,b=e.getData(),w=[],C=e.getAreaFields("data"),k=e.getAreaFields("row"),S=e.getAreaFields("column"),I=[{index:b.grandTotalColumnIndex,children:b.columns}],T=[{index:b.grandTotalRowIndex,children:b.rows}],D=a(T),E=a(I);return t.alternateDataFields===!1?l(function(){s(i)}):s(function(){l(i)}),w}function l(e,t){var n=e.getAreaFields("data");if("args"!==t.putDataFieldsInto&&"singleAxis"!==t.dataFieldsDisplayMode||1===n.length){var i=[];return(0,m.each)(n,function(e,n){var o={name:n.caption,title:n.caption,valueType:v[n.dataType]||n.dataType,label:{format:n.format}};n.customizeText&&(o.label.customizeText=function(e){return n.customizeText.call(n,e)}),"splitPanes"===t.dataFieldsDisplayMode&&(o.pane=n.caption),i.push(o)}),i}return[{}]}function u(e,t){var n=[],i=e.getAreaFields("data");return i.length>1&&"splitPanes"===t.dataFieldsDisplayMode&&"args"!==t.putDataFieldsInto&&(0,m.each)(i,function(e,t){n.push({name:t.caption})}),n.length||n.push({}),n}function c(e,t){var n=t.customizeSeries,i=t.customizeChart,o={valueAxis:l(e,t),panes:u(e,t)},a={};return i&&(o=(0,g.extend)(!0,{},o,i(o))),o.dataSource=s(e,t,a),o.seriesTemplate={nameField:"series",customizeSeries:function(e){var i={};return"splitPanes"===t.dataFieldsDisplayMode?i.pane=a[e]:"singleAxis"!==t.dataFieldsDisplayMode&&(i.axis=a[e]),n&&(i=(0,g.extend)(i,n(e,i))),i}},o}function d(e){if(!e)return!1;if(e.NAME)return"dxChart"===e.NAME&&e;var t=(0,f.default)(e);return t.data("dxChart")&&t.dxChart("instance")}function h(e){var t=e.$element().data(y);t&&t()}var p=n(2),f=i(p),g=n(0),_=n(78),m=n(3),v={number:"numeric",date:"datetime"},y="dxPivotGridUnbinding";e.exports={bindChart:function(e,t){t=(0,g.extend)({},t);var n,i=this,o=function(){t.grandTotalText=i.option("texts.grandTotal");var n=c(i.getDataSource(),t);e.option(n)};return(e=d(e))?(h(e),i.on("changed",o),o(),n=function(){e.$element().removeData(y),i.off("changed",o)},e.on("disposing",n),this.on("disposing",n),e.$element().data(y,n),n):null}}},function(e,t,n){e.exports=n(381)},function(e,t,n){var i=n(380);e.exports=i.XmlaStore},function(e,t,n){e.exports=n(696)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(25),s=i(r),l=n(27),u=i(l),c=n(17),d=i(c),h=n(7),p=i(h),f=n(239),g=i(f),_=n(142),m=i(_),v=n(12),y=i(v),x=n(22),b=i(x),w=n(48),C=i(w),k=n(3),S=n(0),I=n(13),T=n(4),D=n(1),E=i(D),A=n(16),O=i(A),B=n(28),P=i(B),M=n(9),R=i(M),V=n(14),F=i(V),L=n(56),H=i(L),z=n(18),N=i(z),$=n(697),W=i($),G=n(85),j=i(G),q=n(699),K=n(700),U=n(701),Y=i(U),X=n(703),Z=i(X),Q=n(387),J=i(Q),ee=n(707),te=i(ee),ne=n(708),ie=i(ne),oe=n(709),ae=i(oe),re=n(388),se=i(re),le=n(711),ue=i(le),ce=n(712),de=i(ce),he=n(713),pe=i(he),fe=n(714),ge=i(fe),_e=n(715),me=i(_e),ve=n(716),ye=i(ve),xe=n(718),be=i(xe),we=n(723),Ce=n(382),ke=i(Ce),Se=n(286),Ie=i(Se),Te=n(86),De=i(Te),Ee=n(724),Ae=i(Ee),Oe=n(725),Be=i(Oe),Pe=n(46),Me=i(Pe),Re=n(6),Ve=i(Re),Fe=n(111),Le=i(Fe),He=n(65),ze=i(He),Ne=n(31),$e=i(Ne),We=n(26),Ge=i(We),je=n(42),qe=Ve.default.when,Ke=Ve.default.Deferred,Ue=b.default.dateToMilliseconds,Ye="dx-scheduler",Xe=Ye+"-small",Ze=Ye+"-adaptive",Qe=Ye+"-win-no-touch",Je=Ye+"-readonly",et=Ye+"-appointment-popup",tt=Ye+"-recurrence-rule-item",nt=Ye+"-recurrence-rule-item-opened",it=400,ot=610,at=768,rt="after",st="before",lt="yyyyMMddTHHmmss",ut=lt+"Z",ct={day:{workSpace:Z.default,renderingStrategy:"vertical"},week:{workSpace:J.default,renderingStrategy:"vertical"},workWeek:{workSpace:te.default,renderingStrategy:"vertical"},month:{workSpace:ie.default,renderingStrategy:"horizontalMonth"},timelineDay:{workSpace:ae.default,renderingStrategy:"horizontal"},timelineWeek:{workSpace:se.default,renderingStrategy:"horizontal"},timelineWorkWeek:{workSpace:ue.default,renderingStrategy:"horizontal"},timelineMonth:{workSpace:de.default,renderingStrategy:"horizontalMonthLine"},agenda:{workSpace:pe.default,renderingStrategy:"agenda"}},dt=N.default.inherit({_getDefaultOptions:function(){return(0,S.extend)(this.callBase(),{views:["day","week"],currentView:"day",currentDate:b.default.trimTime(new Date),min:void 0,max:void 0,dateSerializationFormat:void 0,firstDayOfWeek:void 0,groups:[],resources:[],dataSource:null,customizeDateNavigatorText:void 0,appointmentTemplate:"item",dropDownAppointmentTemplate:"dropDownAppointment",appointmentCollectorTemplate:"appointmentCollector",dataCellTemplate:null,timeCellTemplate:null,resourceCellTemplate:null,dateCellTemplate:null,startDayHour:0,endDayHour:24,editing:{allowAdding:!0,allowDeleting:!0,allowDragging:!0,allowResizing:!0,allowUpdating:!0},showAllDayPanel:!0,showCurrentTimeIndicator:!0,shadeUntilCurrentTime:!1,indicatorUpdateInterval:3e5,indicatorTime:void 0,recurrenceEditMode:"dialog",cellDuration:30,maxAppointmentsPerCell:"auto",selectedCellData:[],groupByDate:!1,onAppointmentRendered:null,onAppointmentClick:null,onAppointmentDblClick:null,onAppointmentContextMenu:null,onCellClick:null,onCellContextMenu:null,onAppointmentAdding:null,onAppointmentAdded:null,onAppointmentUpdating:null,onAppointmentUpdated:null,onAppointmentDeleting:null,onAppointmentDeleted:null,onAppointmentFormOpening:null,appointmentTooltipTemplate:"appointmentTooltip",appointmentPopupTemplate:"appointmentPopup",crossScrollingEnabled:!1,useDropDownViewSwitcher:!1,startDateExpr:"startDate",endDateExpr:"endDate",textExpr:"text",descriptionExpr:"description",allDayExpr:"allDay",recurrenceRuleExpr:"recurrenceRule",recurrenceExceptionExpr:"recurrenceException",remoteFiltering:!1,timeZone:"",startDateTimeZoneExpr:"startDateTimeZone",endDateTimeZoneExpr:"endDateTimeZone",noDataText:F.default.format("dxCollectionWidget-noDataText"),adaptivityEnabled:!1,allowMultipleCellSelection:!0,_appointmentTooltipOffset:{x:0,y:0},_appointmentTooltipButtonsPosition:"bottom",_appointmentTooltipOpenButtonText:F.default.format("dxScheduler-openAppointment"),_dropDownButtonIcon:"overflow",_appointmentCountPerCell:2,_collectorOffset:0,_appointmentOffset:26})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===O.default.real().deviceType&&!O.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!O.default.current().generic},options:{useDropDownViewSwitcher:!0,editing:{allowDragging:!1,allowResizing:!1}}},{device:function(){return $e.default.isMaterial()},options:{useDropDownViewSwitcher:!0,
93dateCellTemplate:function(e,t,n){var i=e.text;i.split(" ").forEach(function(e,t){var i=(0,a.default)("<span>").text(e).addClass("dx-scheduler-header-panel-cell-date");(0,a.default)(n).append(i),t||(0,a.default)(n).append(" ")})},_appointmentTooltipOffset:{x:0,y:11},_appointmentTooltipButtonsPosition:"top",_appointmentTooltipOpenButtonText:null,_dropDownButtonIcon:"chevrondown",_appointmentCountPerCell:1,_collectorOffset:20,_appointmentOffset:30}}])},_setDeprecatedOptions:function(){this.callBase(),(0,S.extend)(this._deprecatedOptions,{onAppointmentFormCreated:{since:"18.2",alias:"onAppointmentFormOpening"}})},_postponeDataSourceLoading:function(e){this.postponedOperations.add("_reloadDataSource",this._reloadDataSource.bind(this),e)},_postponeResourceLoading:function(){var e=this,t=this.postponedOperations.add("_loadResources",function(){return e._loadResources()}),n=new Ke;return t.done(function(e){n.resolve(e)}),this._postponeDataSourceLoading(t),n.promise()},_optionChanged:function(e){var t=this,n=e.value,i=e.name;switch(e.name){case"customizeDateNavigatorText":this._updateOption("header",i,n);break;case"firstDayOfWeek":this._updateOption("workSpace",i,n),this._updateOption("header",i,n);break;case"currentDate":n=this._dateOption(i),n=b.default.trimTime(new Date(n)),this.option("selectedCellData",[]),this._workSpace.option(i,new Date(n)),this._header.option(i,new Date(n)),this._header.option("displayedDate",this._workSpace._getViewStartByOptions()),this._appointments.option("items",[]),this._filterAppointmentsByDate(),this._postponeDataSourceLoading();break;case"dataSource":this._initDataSource(),this._customizeStoreLoadOptions(),this._appointmentModel.setDataSource(this._dataSource),this._postponeResourceLoading().done(function(e){t._filterAppointmentsByDate(),t._updateOption("workSpace","showAllDayPanel",t.option("showAllDayPanel"))});break;case"min":case"max":n=this._dateOption(i),this._updateOption("header",i,new Date(n)),this._updateOption("workSpace",i,new Date(n));break;case"views":this._processCurrentView(),this._getCurrentViewOptions()?this.repaint():this._header.option(i,n);break;case"useDropDownViewSwitcher":this._header.option(i,n);break;case"currentView":this._processCurrentView(),this._appointments.option({items:[],allowDrag:this._allowDragging(),allowResize:this._allowResizing(),itemTemplate:this._getAppointmentTemplate("appointmentTemplate")}),this._postponeResourceLoading().done(function(e){t.getLayoutManager().initRenderingStrategy(t._getAppointmentsRenderingStrategy()),t._refreshWorkSpace(e),t._updateHeader(),t._filterAppointmentsByDate(),t._appointments.option("allowAllDayResize","day"!==n)});break;case"appointmentTemplate":this._appointments.option("itemTemplate",n);break;case"dateCellTemplate":case"resourceCellTemplate":case"dataCellTemplate":case"timeCellTemplate":this._updateOption("workSpace",i,n),this.repaint();break;case"groups":this._postponeResourceLoading().done(function(e){t._refreshWorkSpace(e),t._filterAppointmentsByDate()});break;case"resources":this._resourcesManager.setResources(this.option("resources")),this._appointmentModel.setDataAccessors(this._combineDataAccessors()),this._postponeResourceLoading().done(function(e){t._appointments.option("items",[]),t._refreshWorkSpace(e),t._filterAppointmentsByDate()});break;case"startDayHour":case"endDayHour":this._appointments.option("items",[]),this._updateOption("workSpace",i,n),this._appointments.repaint(),this._filterAppointmentsByDate(),this._postponeDataSourceLoading();break;case"onAppointmentAdding":case"onAppointmentAdded":case"onAppointmentUpdating":case"onAppointmentUpdated":case"onAppointmentDeleting":case"onAppointmentDeleted":case"onAppointmentFormOpening":this._actions[i]=this._createActionByOption(i);break;case"onAppointmentRendered":this._appointments.option("onItemRendered",this._getAppointmentRenderedAction());break;case"onAppointmentClick":this._appointments.option("onItemClick",this._createActionByOption(i));break;case"onAppointmentDblClick":this._appointments.option(i,this._createActionByOption(i));break;case"onAppointmentContextMenu":this._appointments.option("onItemContextMenu",this._createActionByOption(i));break;case"noDataText":case"allowMultipleCellSelection":case"selectedCellData":case"accessKey":case"onCellClick":this._workSpace.option(i,n);break;case"onCellContextMenu":this._workSpace.option(i,n);break;case"crossScrollingEnabled":this._postponeResourceLoading().done(function(e){t._appointments.option("items",[]),t._refreshWorkSpace(e),t._readyToRenderAppointments&&t._appointments.option("items",t._getAppointmentsToRepaint())});break;case"cellDuration":this._appointments.option("items",[]),this._readyToRenderAppointments&&(this._updateOption("workSpace","hoursInterval",n/60),this._appointments.option("items",this._getAppointmentsToRepaint()));break;case"tabIndex":case"focusStateEnabled":this._updateOption("header",i,n),this._updateOption("workSpace",i,n),this._appointments.option(i,n),this.callBase(e);break;case"width":this._updateOption("header",i,n),this.option("crossScrollingEnabled")&&this._updateOption("workSpace","width",n),this.callBase(e),this._dimensionChanged();break;case"height":this.callBase(e),this._dimensionChanged();break;case"editing":this._initEditing();var o=this._editing;this._bringEditingModeToAppointments(o),this.hideAppointmentTooltip(),this._cleanPopup();break;case"showAllDayPanel":this._postponeResourceLoading().done(function(e){t._filterAppointmentsByDate(),t._updateOption("workSpace","allDayExpanded",n),t._updateOption("workSpace",i,n)});break;case"showCurrentTimeIndicator":case"indicatorTime":case"indicatorUpdateInterval":case"shadeUntilCurrentTime":case"groupByDate":this._updateOption("workSpace",i,n),this.repaint();break;case"appointmentTooltipTemplate":case"appointmentPopupTemplate":case"recurrenceEditMode":case"remoteFiltering":case"timeZone":case"dropDownAppointmentTemplate":case"appointmentCollectorTemplate":case"_appointmentTooltipOffset":case"_appointmentTooltipButtonsPosition":case"_appointmentTooltipOpenButtonText":case"_dropDownButtonIcon":case"_appointmentCountPerCell":case"_collectorOffset":case"_appointmentOffset":this.repaint();break;case"dateSerializationFormat":break;case"maxAppointmentsPerCell":break;case"startDateExpr":case"endDateExpr":case"startDateTimeZoneExpr":case"endDateTimeZoneExpr":case"textExpr":case"descriptionExpr":case"allDayExpr":case"recurrenceRuleExpr":case"recurrenceExceptionExpr":this._updateExpression(i,n),this._appointmentModel.setDataAccessors(this._combineDataAccessors()),this._initAppointmentTemplate(),this.repaint();break;case"adaptivityEnabled":this._toggleAdaptiveClass(),this.repaint();break;default:this.callBase(e)}},_updateHeader:function(){var e=this._getViewCountConfig();this._header.option("intervalCount",e.intervalCount),this._header.option("displayedDate",this._workSpace._getViewStartByOptions()),this._header.option("min",this._dateOption("min")),this._header.option("max",this._dateOption("max")),this._header.option("currentDate",this._dateOption("currentDate")),this._header.option("firstDayOfWeek",this._getCurrentViewOption("firstDayOfWeek")),this._header.option("currentView",this._currentView)},_dateOption:function(e){var t=this._getCurrentViewOption(e);return H.default.deserializeDate(t)},_getSerializationFormat:function(e){var t=this._getCurrentViewOption(e);if("number"==typeof t)return"number";if(E.default.isString(t))return H.default.getDateSerializationFormat(t)},_bringEditingModeToAppointments:function(e){var t={allowDelete:e.allowUpdating&&e.allowDeleting};this._isAgenda()||(t.allowDrag=e.allowDragging,t.allowResize=e.allowResizing,t.allowAllDayResize=e.allowResizing&&this._supportAllDayResizing()),this._appointments.option(t)},_isAgenda:function(){return"agenda"===this._getAppointmentsRenderingStrategy()},_allowDragging:function(){return this._editing.allowDragging&&!this._isAgenda()},_allowResizing:function(){return this._editing.allowResizing&&!this._isAgenda()},_allowAllDayResizing:function(){return this._editing.allowResizing&&this._supportAllDayResizing()},_supportAllDayResizing:function(){return"day"!==this._getCurrentViewType()||this._currentView.intervalCount>1},_isAllDayExpanded:function(e){return this.option("showAllDayPanel")&&this._appointmentModel.hasAllDayAppointments(e,this._getCurrentViewOption("startDayHour"),this._getCurrentViewOption("endDayHour"))},_getTimezoneOffsetByOption:function(e){return this._calculateTimezoneByValue(this.option("timeZone"),e)},_calculateTimezoneByValue:function(e,t){var n=e;if("string"==typeof e){t=t||new Date;var i=Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes());n=ke.default.getTimezoneOffsetById(e,i)}return n},_filterAppointmentsByDate:function(){var e=this._workSpace.getDateRange();this._appointmentModel.filterByDate(e[0],e[1],this.option("remoteFiltering"),this.option("dateSerializationFormat"))},_loadResources:function(){var e=this._getCurrentViewOption("groups"),t=new Ke;return this._resourcesManager.loadResources(e).done(function(e){this._loadedResources=e,t.resolve(e)}.bind(this)),t.promise()},_dataSourceLoadedCallback:(0,s.default)(),_reloadDataSource:function(){var e=new Ke;return this._dataSource?(this._dataSource.load().done(function(){Ae.default.hide(),this._fireContentReadyAction(e)}.bind(this)).fail(function(){Ae.default.hide(),e.reject()}),this._dataSource.isLoading()&&Ae.default.show({container:this.$element(),position:{of:this.$element()}})):this._fireContentReadyAction(e),e.promise()},_fireContentReadyAction:function(e){this.callBase(),e&&e.resolve()},_dimensionChanged:function(){var e=this.getFilteredItems();if(this._toggleSmallClass(),!this._isAgenda()&&e&&this._isVisible()){this._workSpace._cleanAllowedPositions(),this._workSpace.option("allDayExpanded",this._isAllDayExpanded(e)),this._workSpace._dimensionChanged();var t=this._layoutManager.createAppointmentsMap(e);this._appointments.option("items",t)}this.hideAppointmentTooltip(),this.resizePopup(),this._updatePopupFullScreenMode()},_clean:function(){this._cleanPopup(),this.callBase()},_toggleSmallClass:function(){var e=this.$element().get(0).getBoundingClientRect().width;this.$element().toggleClass(Xe,e<it)},_toggleAdaptiveClass:function(){this.$element().toggleClass(Ze,this.option("adaptivityEnabled"))},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dataSourceOptions:function(){return{paginate:!1}},_init:function(){this._initExpressions({startDate:this.option("startDateExpr"),endDate:this.option("endDateExpr"),startDateTimeZone:this.option("startDateTimeZoneExpr"),endDateTimeZone:this.option("endDateTimeZoneExpr"),allDay:this.option("allDayExpr"),text:this.option("textExpr"),description:this.option("descriptionExpr"),recurrenceRule:this.option("recurrenceRuleExpr"),recurrenceException:this.option("recurrenceExceptionExpr")}),this.callBase(),this._initDataSource(),this._loadedResources=[],this._proxiedCustomizeStoreLoadOptionsHandler=this._customizeStoreLoadOptionsHandler.bind(this),this._customizeStoreLoadOptions(),this.$element().addClass(Ye).toggleClass(Qe,!(!Ge.default.msie||!je.touch)),this._initEditing(),this._resourcesManager=new ge.default(this.option("resources"));var e=this._combineDataAccessors();this._appointmentModel=new me.default(this._dataSource,e,this.getAppointmentDurationInMinutes()),this._initActions(),this._compactAppointmentsHelper=new we.CompactAppointmentsHelper(this),this._subscribes=W.default},_initTemplates:function(){this.callBase(),this._initAppointmentTemplate(),this._defaultTemplates.appointmentTooltip=new Le.default(this),this._defaultTemplates.appointmentPopup=new Le.default(this),this._defaultTemplates.dropDownAppointment=new Le.default(this)},_initAppointmentTemplate:function(){var e=this;this._defaultTemplates.item=new ze.default(function(t,n,i){var o=e.getAppointmentsInstance();o._renderAppointmentTemplate.call(o,t,n,i)},["html","text","startDate","endDate","allDay","description","recurrenceRule","recurrenceException","startDateTimeZone","endDateTimeZone"],this.option("integrationOptions.watchMethod"),{text:this._dataAccessors.getter.text,startDate:this._dataAccessors.getter.startDate,endDate:this._dataAccessors.getter.endDate,startDateTimeZone:this._dataAccessors.getter.startDateTimeZone,endDateTimeZone:this._dataAccessors.getter.endDateTimeZone,allDay:this._dataAccessors.getter.allDay,recurrenceRule:this._dataAccessors.getter.recurrenceRule})},_combineDataAccessors:function(){var e=this._resourcesManager._dataAccessors,t=(0,S.extend)(!0,{},this._dataAccessors);return(0,k.each)(e,function(e,n){t[e].resources=n}.bind(this)),t},_renderContent:function(){this._renderContentImpl()},_dataSourceChangedHandler:function(e){this._readyToRenderAppointments&&this._workSpaceRecalculation.done(function(){this._filteredItems=this.fire("prerenderFilter"),this._workSpace.option("allDayExpanded",this._isAllDayExpanded(this._filteredItems)),this._isAgenda()&&this.getRenderingStrategyInstance().calculateRows(this._filteredItems,7,this.option("currentDate"),!0),this._filteredItems.length&&this._isVisible()?(this._appointments.option("items",this._getAppointmentsToRepaint()),this._appointmentModel.cleanModelState()):this._appointments.option("items",[]),this._isAgenda()&&(this._workSpace._renderView(),this._dataSourceLoadedCallback.fireWith(this,[e]))}.bind(this))},_getAppointmentsToRepaint:function(){var e=this._layoutManager.createAppointmentsMap(this._filteredItems);return this._layoutManager.getRepaintedAppointments(e,this.getAppointmentsInstance().option("items"))},_initExpressions:function(e){var t=n(20),i=function(e){return"startDate"===e||"endDate"===e};this._dataAccessors||(this._dataAccessors={getter:{},setter:{},expr:{}}),(0,k.each)(e,function(e,n){if(n){var o,a,r=t.compileGetter(n),s=t.compileSetter(n);if(i(e)){var l=this;o=function(){var e=r.apply(this,arguments);if((0,P.default)().forceIsoDateParsing){if(!l.option("dateSerializationFormat")){var t=H.default.getDateSerializationFormat(e);t&&l.option("dateSerializationFormat",t)}e=H.default.deserializeDate(e)}return e},a=function(e,t){((0,P.default)().forceIsoDateParsing||l.option("dateSerializationFormat"))&&(t=H.default.serializeDate(t,l.option("dateSerializationFormat"))),s.call(this,e,t)}}this._dataAccessors.getter[e]=o||r,this._dataAccessors.setter[e]=a||s,this._dataAccessors.expr[e+"Expr"]=n}else delete this._dataAccessors.getter[e],delete this._dataAccessors.setter[e],delete this._dataAccessors.expr[e+"Expr"]}.bind(this))},_updateExpression:function(e,t){var n={};n[e.replace("Expr","")]=t,this._initExpressions(n)},_initEditing:function(){var e=this.option("editing");this._editing={allowAdding:!!e,allowUpdating:!!e,allowDeleting:!!e,allowResizing:!!e,allowDragging:!!e},E.default.isObject(e)&&(this._editing=(0,S.extend)(this._editing,e)),this._editing.allowDragging=this._editing.allowDragging&&this._editing.allowUpdating,this._editing.allowResizing=this._editing.allowResizing&&this._editing.allowUpdating,this.$element().toggleClass(Je,this._isReadOnly())},_isReadOnly:function(){var e=!0,t=this._editing;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e=e&&!t[n]);return e},_customizeStoreLoadOptions:function(){this._dataSource&&this._dataSource.on("customizeStoreLoadOptions",this._proxiedCustomizeStoreLoadOptionsHandler)},_dispose:function(){this._appointmentTooltip&&this._appointmentTooltip.dispose(),this.hideAppointmentPopup(),this.hideAppointmentTooltip(),this._cleanAsyncTemplatesTimer(),this._dataSource&&this._dataSource.off("customizeStoreLoadOptions",this._proxiedCustomizeStoreLoadOptionsHandler),this.callBase()},_customizeStoreLoadOptionsHandler:function(e){e.storeLoadOptions.dxScheduler={startDate:this.getStartViewDate(),endDate:this.getEndViewDate(),resources:this.option("resources")}},_initActions:function(){this._actions={onAppointmentAdding:this._createActionByOption("onAppointmentAdding"),onAppointmentAdded:this._createActionByOption("onAppointmentAdded"),onAppointmentUpdating:this._createActionByOption("onAppointmentUpdating"),onAppointmentUpdated:this._createActionByOption("onAppointmentUpdated"),onAppointmentDeleting:this._createActionByOption("onAppointmentDeleting"),onAppointmentDeleted:this._createActionByOption("onAppointmentDeleted"),onAppointmentFormOpening:this._createActionByOption("onAppointmentFormOpening")}},_getAppointmentRenderedAction:function(){return this._createActionByOption("onAppointmentRendered",{excludeValidators:["disabled","readOnly"]})},_renderFocusTarget:T.noop,_initMarkup:function(){this.callBase(),this._processCurrentView(),this._renderHeader(),this._layoutManager=new be.default(this,this._getAppointmentsRenderingStrategy()),this._appointments=this._createComponent("<div>",ye.default,this._appointmentsConfig()),this._appointments.option("itemTemplate",this._getAppointmentTemplate("appointmentTemplate")),this._appointmentTooltip=this.option("adaptivityEnabled")?new K.MobileTooltipStrategy(this):new q.DesktopTooltipStrategy(this),this._isLoaded()?(this._initMarkupCore(this._loadedResources),this._dataSourceChangedHandler(this._dataSource.items()),this._fireContentReadyAction()):this._loadResources().done(function(e){this._initMarkupCore(e),this._reloadDataSource()}.bind(this))},_initMarkupCore:function(e){var t=this;this._readyToRenderAppointments=p.default.hasWindow(),this._workSpace&&this._cleanWorkspace(),this._renderWorkSpace(e),this._appointments.option({fixedContainer:this._workSpace.getFixedContainer(),allDayContainer:this._workSpace.getAllDayContainer()}),this._waitAsyncTemplates(function(){t._workSpaceRecalculation&&t._workSpaceRecalculation.resolve()}),this._filterAppointmentsByDate()},_isLoaded:function(){return this._isResourcesLoaded()&&this._isDataSourceLoaded()},_isResourcesLoaded:function(){return E.default.isDefined(this._loadedResources)},_isDataSourceLoaded:function(){return this._dataSource&&this._dataSource.isLoaded()},_render:function(){this._toggleSmallClass(),this._toggleAdaptiveClass(),this.callBase()},_renderHeader:function(){var e=(0,a.default)("<div>").appendTo(this.$element());this._header=this._createComponent(e,Y.default,this._headerConfig())},_headerConfig:function(){var e,t=this._getCurrentViewOptions(),n=this._getViewCountConfig();return e=(0,S.extend)({firstDayOfWeek:this.option("firstDayOfWeek"),currentView:this._currentView,tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),width:this.option("width"),rtlEnabled:this.option("rtlEnabled"),useDropDownViewSwitcher:this.option("useDropDownViewSwitcher"),_dropDownButtonIcon:this.option("_dropDownButtonIcon"),customizeDateNavigatorText:this.option("customizeDateNavigatorText")},t),e.observer=this,e.intervalCount=n.intervalCount,e.views=this.option("views"),e.min=new Date(this._dateOption("min")),e.max=new Date(this._dateOption("max")),e.currentDate=b.default.trimTime(new Date(this._dateOption("currentDate"))),e},_appointmentsConfig:function(){var e=this,t={observer:this,onItemRendered:this._getAppointmentRenderedAction(),onItemClick:this._createActionByOption("onAppointmentClick"),onItemContextMenu:this._createActionByOption("onAppointmentContextMenu"),onAppointmentDblClick:this._createActionByOption("onAppointmentDblClick"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),allowDrag:this._allowDragging(),allowDelete:this._editing.allowUpdating&&this._editing.allowDeleting,allowResize:this._allowResizing(),allowAllDayResize:this._allowAllDayResizing(),rtlEnabled:this.option("rtlEnabled"),onContentReady:function(){e._workSpace&&e._workSpace.option("allDayExpanded",e._isAllDayExpanded(e.getFilteredItems()))}};return t},getCollectorOffset:function(){return this._workSpace.needApplyCollectorOffset()&&!this.option("adaptivityEnabled")?this.option("_collectorOffset"):0},getAppointmentDurationInMinutes:function(){return this._getCurrentViewOption("cellDuration")},_processCurrentView:function(){var e=this.option("views"),t=this.option("currentView"),n=this;this._currentView=t,(0,k.each)(e,function(e,i){var o=E.default.isObject(i),a=o?i.name:i,r=i.type;if(t===a||t===r)return n._currentView=i,!1})},_getCurrentViewType:function(){return this._currentView.type||this._currentView},_getAppointmentsRenderingStrategy:function(){return ct[this._getCurrentViewType()].renderingStrategy},_renderWorkSpace:function(e){this._readyToRenderAppointments&&this._toggleSmallClass();var t=(0,a.default)("<div>").appendTo(this.$element()),n=this._getViewCountConfig();this._workSpace=this._createComponent(t,ct[this._getCurrentViewType()].workSpace,this._workSpaceConfig(e,n)),this._workSpace.getWorkArea().append(this._appointments.$element()),this._recalculateWorkspace(),n.startDate&&this._header&&this._header.option("currentDate",this._workSpace._getHeaderDate()),this._appointments.option("_collectorOffset",this.getCollectorOffset())},_getViewCountConfig:function(){var e=this.option("currentView"),t=this._getViewByName(e),n=t&&t.intervalCount||1,i=t&&t.startDate||null;return{intervalCount:n,startDate:i}},_getViewByName:function(e){for(var t=this.option("views"),n=0;n<t.length;n++)if(t[n].name===e||t[n].type===e||t[n]===e)return t[n]},_recalculateWorkspace:function(){var e=this;this._workSpaceRecalculation=new Ke,this._waitAsyncTemplates(function(){y.default.triggerResizeEvent(e._workSpace.$element()),e._workSpace._refreshDateTimeIndication()})},_workSpaceConfig:function(e,t){var n,i=this,o=this._getCurrentViewOptions();return n=(0,S.extend)({noDataText:this.option("noDataText"),firstDayOfWeek:this.option("firstDayOfWeek"),startDayHour:this.option("startDayHour"),endDayHour:this.option("endDayHour"),tabIndex:this.option("tabIndex"),accessKey:this.option("accessKey"),focusStateEnabled:this.option("focusStateEnabled"),cellDuration:this.option("cellDuration"),showAllDayPanel:this.option("showAllDayPanel"),showCurrentTimeIndicator:this.option("showCurrentTimeIndicator"),indicatorTime:this.option("indicatorTime"),indicatorUpdateInterval:this.option("indicatorUpdateInterval"),shadeUntilCurrentTime:this.option("shadeUntilCurrentTime"),allDayExpanded:this._appointments.option("items"),crossScrollingEnabled:this.option("crossScrollingEnabled"),dataCellTemplate:this.option("dataCellTemplate"),timeCellTemplate:this.option("timeCellTemplate"),resourceCellTemplate:this.option("resourceCellTemplate"),dateCellTemplate:this.option("dateCellTemplate"),allowMultipleCellSelection:this.option("allowMultipleCellSelection"),selectedCellData:this.option("selectedCellData"),onSelectionChanged:function(e){i.option("selectedCellData",e.selectedCellData)},groupByDate:this._getCurrentViewOption("groupByDate")},o),n.observer=this,n.intervalCount=t.intervalCount,n.startDate=t.startDate,n.groups=e,n.onCellClick=this._createActionByOption("onCellClick"),n.onCellContextMenu=this._createActionByOption("onCellContextMenu"),n.min=new Date(this._dateOption("min")),n.max=new Date(this._dateOption("max")),n.currentDate=b.default.trimTime(new Date(this._dateOption("currentDate"))),n.hoursInterval=n.cellDuration/60,n.allDayExpanded=this._isAllDayExpanded(this.getFilteredItems()),n.dataCellTemplate=n.dataCellTemplate?this._getTemplate(n.dataCellTemplate):null,n.timeCellTemplate=n.timeCellTemplate?this._getTemplate(n.timeCellTemplate):null,n.resourceCellTemplate=n.resourceCellTemplate?this._getTemplate(n.resourceCellTemplate):null,n.dateCellTemplate=n.dateCellTemplate?this._getTemplate(n.dateCellTemplate):null,n},_getCurrentViewOptions:function(){return this._currentView},_getCurrentViewOption:function(e){var t=this._getCurrentViewOptions();return t&&void 0!==t[e]?t[e]:this.option(e)},_getAppointmentTemplate:function(e){var t=this._getCurrentViewOptions();return t&&t[e]?this._getTemplate(t[e]):this._getTemplateByOption(e)},_updateOption:function(e,t,n){var i=this._getCurrentViewOptions();i&&E.default.isDefined(i[t])||this["_"+e].option(t,n)},_refreshWorkSpace:function(e){var t=this;this._cleanWorkspace(),delete this._workSpace,this._renderWorkSpace(e),this._readyToRenderAppointments&&(this._appointments.option({fixedContainer:this._workSpace.getFixedContainer(),allDayContainer:this._workSpace.getAllDayContainer()}),this._waitAsyncTemplates(function(){t._workSpaceRecalculation.resolve()}))},_cleanWorkspace:function(){this._appointments.$element().detach(),this._workSpace._dispose(),this._workSpace.$element().remove(),this.option("selectedCellData",[])},getWorkSpaceScrollable:function(){return this._workSpace.getScrollable()},getWorkSpaceScrollableScrollTop:function(e){return this._workSpace.getGroupedScrollableScrollTop(e)},getWorkSpaceScrollableScrollLeft:function(){return this._workSpace.getScrollableScrollLeft()},getWorkSpaceScrollableContainer:function(){return this._workSpace.getScrollableContainer()},getWorkSpaceAllDayHeight:function(){return this._workSpace.getAllDayHeight()},getWorkSpaceAllDayOffset:function(){return this._workSpace.getAllDayOffset()},getWorkSpaceHeaderPanelHeight:function(){return this._workSpace.getHeaderPanelHeight()},getWorkSpaceDateTableOffset:function(){return!this.option("crossScrollingEnabled")||this.option("rtlEnabled")?this._workSpace.getWorkSpaceLeftOffset():0},getWorkSpace:function(){return this._workSpace},getAppointmentModel:function(){return this._appointmentModel},getHeader:function(){return this._header},getMaxAppointmentsPerCell:function(){return this._getCurrentViewOption("maxAppointmentsPerCell")},_createPopup:function(e,t){this._$popup=(0,a.default)("<div>").addClass(et).appendTo(this.$element()),this._initDynamicPopupTemplate(e,t),this._popup=this._createComponent(this._$popup,Me.default,this._popupConfig(e))},_popupContent:function(e,t){var n=this._popup.$content(),i=(0,a.default)("<div>").appendTo(n);return this._createOrUpdateForm(e,t,i),n},_createAppointmentForm:function(e,t){var n=this.fire("getField","allDay",e),i=this.option("resources");Be.default.prepareAppointmentFormEditors(n,{textExpr:this._dataAccessors.expr.textExpr,allDayExpr:this._dataAccessors.expr.allDayExpr,startDateExpr:this._dataAccessors.expr.startDateExpr,endDateExpr:this._dataAccessors.expr.endDateExpr,descriptionExpr:this._dataAccessors.expr.descriptionExpr,recurrenceRuleExpr:this._dataAccessors.expr.recurrenceRuleExpr,startDateTimeZoneExpr:this._dataAccessors.expr.startDateTimeZoneExpr,endDateTimeZoneExpr:this._dataAccessors.expr.endDateTimeZoneExpr},this),i&&i.length&&(this._resourcesManager.setResources(this.option("resources")),Be.default.concatResources(this._resourcesManager.getEditors())),this._appointmentForm=Be.default.create(this._createComponent.bind(this),t,!!this._editAppointmentData&&!this._editing.allowUpdating,e)},_createOrUpdateForm:function(e,t,n){var i=this.fire("getField","allDay",e),o=this.fire("getField","startDate",e),a=this.fire("getField","endDate",e);(0,k.each)(this._resourcesManager.getResourcesFromItem(e,!0)||{},function(t,n){e[t]=n});var r=(0,S.extend)(!0,{},e);if(t&&(o=this.fire("convertDateByTimezone",o),a=this.fire("convertDateByTimezone",a),this.fire("setField","startDate",r,o),this.fire("setField","endDate",r,a)),this._appointmentForm){var s=this._dataAccessors.expr.startDateExpr,l=this._dataAccessors.expr.endDateExpr;Be.default.updateFormData(this._appointmentForm,r),this._appointmentForm.option("readOnly",!!this._editAppointmentData&&!this._editing.allowUpdating),Be.default.checkEditorsType(this._appointmentForm,s,l,i)}else this._createAppointmentForm(r,n);var u=this._dataAccessors.expr.recurrenceRuleExpr,c=u?this._appointmentForm.itemOption(u):null;if(c){var d=c.editorOptions||{};d.startDate=o,this._appointmentForm.itemOption(u,"editorOptions",d)}this._actions.onAppointmentFormOpening({form:this._appointmentForm,appointmentData:e})},_initDynamicPopupTemplate:function(e,t){var n=this;this._defaultTemplates.appointmentPopup=new j.default(function(i){var o=n._popupContent(e,t);return(0,a.default)(i.container).append(o),(0,a.default)(i.container)})},_isPopupFullScreenNeeded:function(){if(p.default.hasWindow()){var e=p.default.getWindow();return(0,a.default)(e).width()<at}return!1},_updatePopupFullScreenMode:function(){if(this._popup&&this._popup.option("visible")){var e=this._isPopupFullScreenNeeded();this._popup.option({maxWidth:e?"100%":ot,fullScreen:e})}},_popupConfig:function(e){var t=this,n=this._getTemplateByOption("appointmentPopupTemplate");return{height:"auto",maxHeight:"100%",onHiding:function(){return t.focus()},contentTemplate:new j.default(function(t){return n.render({model:e,container:t.container})}),onShowing:function(){return t._updatePopupFullScreenMode()},defaultOptionsRules:[{device:function(){return O.default.current().android},options:{showTitle:!1}}]}},_getPopupToolbarItems:function(){var e="ios"===O.default.current().platform;return[{shortcut:"done",location:rt,onClick:this._doneButtonClickHandler.bind(this)},{shortcut:"cancel",location:e?st:rt}]},_cleanPopup:function(){this._$popup&&(this._popup.$element().remove(),delete this._$popup,delete this._popup,delete this._appointmentForm)},_doneButtonClickHandler:function(e){if(e.cancel=!0,this._saveChanges(!0),this._lastEditData){var t=this.fire("getField","startDate",this._lastEditData);this._workSpace.updateScrollPosition(t),delete this._lastEditData}},_saveChanges:function(e){function t(e,t){var n=new Date(this.fire("getField",t,e)),i=this._getTimezoneOffsetByOption()*Ue("hour")+this.fire("getClientTimezoneOffset",n);return new Date(n.getTime()+i)}var n=this._appointmentForm.validate();if(n&&!n.isValid)return!1;e&&this._disableDoneButton();var i=C.default.deepExtendArraySafe({},this._getFormData(),!0),o=this._editAppointmentData,a=this._updatedRecAppointment;return o&&this._convertDatesByTimezoneBack(!1,i),o&&!a?this.updateAppointment(o,i):(a&&(this.updateAppointment(o,a),delete this._updatedRecAppointment,"number"==typeof this._getTimezoneOffsetByOption()&&(this.fire("setField","startDate",i,t.call(this,i,"startDate")),this.fire("setField","endDate",i,t.call(this,i,"endDate")))),this.addAppointment(i)),this._enableDoneButton(),this._lastEditData=i,!0},_getFormData:function(){var e=this._appointmentForm.option("formData"),t=this.fire("getField","startDate",e),n=this.fire("getField","endDate",e);return this.fire("setField","startDate",e,t),this.fire("setField","endDate",e,n),e},_convertDatesByTimezoneBack:function(e,t,n){n=n||t;var i=this.fire("convertDateByTimezoneBack",this.fire("getField","startDate",t),e&&this.fire("getField","startDateTimeZone",t)),o=this.fire("convertDateByTimezoneBack",this.fire("getField","endDate",t),e&&this.fire("getField","endDateTimeZone",t));this.fire("setField","startDate",n,i),this.fire("setField","endDate",n,o)},_disableDoneButton:function(){var e=this._popup.option("toolbarItems");e[0].options=(0,S.extend)(e[0].options,{disabled:!0}),this._popup.option("toolbarItems",e)},_enableDoneButton:function(){var e=this._popup.option("toolbarItems");e[0].options=(0,S.extend)(e[0].options,{disabled:!1}),this._popup.option("toolbarItems",e)},_checkRecurringAppointment:function(e,t,n,i,o,a){delete this._updatedRecAppointment;var r=this.fire("getField","recurrenceRule",e);if(!m.default.getRecurrenceRule(r).isValid||!this._editing.allowUpdating)return void i();var s=this.option("recurrenceEditMode");switch(s){case"series":i();break;case"occurrence":this._singleAppointmentChangesHandler(e,t,n,o,a);break;default:this._showRecurrenceChangeConfirm(o).done(function(r){r&&i(),!r&&this._singleAppointmentChangesHandler(e,t,n,o,a)}.bind(this)).fail(function(){this._appointments.moveAppointmentBack()}.bind(this))}},_singleAppointmentChangesHandler:function(e,t,n,i,o){function a(e,t){var n=this.fire("getField","startDate",e),i=this.fire("convertDateByTimezoneBack",n,this.fire("getField","startDateTimeZone",e)),o=this.fire("getField","endDate",e),a=this.fire("convertDateByTimezoneBack",o,this.fire("getField","endDateTimeZone",e));if("number"==typeof t&&!isNaN(t)){var r=-(this._subscribes.getClientTimezoneOffset(n)/Ue("hour")),s=-(this._subscribes.getClientTimezoneOffset(o)/Ue("hour")),l=i.getTime()-r*Ue("hour"),u=a.getTime()-s*Ue("hour");
94i=new Date(l+t*Ue("hour")),a=new Date(u+t*Ue("hour"))}this.fire("setField","startDate",e,i),this.fire("setField","endDate",e,a)}n=new Date(n),this.fire("setField","recurrenceRule",t,""),this.fire("setField","recurrenceException",t,""),i||o||(a.call(this,t,this._getTimezoneOffsetByOption()),this.addAppointment(t));var r=this._makeDateAsRecurrenceException(n,e),s=(0,S.extend)({},e);this.fire("setField","recurrenceException",s,r),o?(this._updatedRecAppointment=s,a.call(this,t),this._showAppointmentPopup(t,!0,!0),this._editAppointmentData=e):this._updateAppointment(e,s)},_makeDateAsRecurrenceException:function(e,t){var n=this._getStartDate(t,!0),i=this.fire("getField","startDateTimeZone",t),o=this._getRecurrenceExceptionDate(e,n,i),a=this.fire("getField","recurrenceException",t);return a?a+","+o:o},_getRecurrenceExceptionDate:function(e,t,n){e=this.fire("convertDateByTimezoneBack",e,n);var i=this.fire("convertDateByTimezoneBack",t,n);e.setHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds());var o=t.getTimezoneOffset()-e.getTimezoneOffset();return e=new Date(e.getTime()-o*Ue("minute")),H.default.serializeDate(e,ut)},_showRecurrenceChangeConfirm:function(e){var t=F.default.format(e?"dxScheduler-confirmRecurrenceDeleteMessage":"dxScheduler-confirmRecurrenceEditMessage"),n=F.default.format(e?"dxScheduler-confirmRecurrenceDeleteSeries":"dxScheduler-confirmRecurrenceEditSeries"),i=F.default.format(e?"dxScheduler-confirmRecurrenceDeleteOccurrence":"dxScheduler-confirmRecurrenceEditOccurrence");return g.default.custom({message:t,showCloseButton:!0,showTitle:!0,buttons:[{text:n,onClick:function(){return!0}},{text:i,onClick:function(){return!1}}]}).show()},_getUpdatedData:function(e){var t=e.data||e,n=this.getTargetCellData(),i=this.fire("getField","allDay",t),o=new Date(this.fire("getField","startDate",t)),a=new Date(this.fire("getField","endDate",t)),r=n.date||o,s=a.getTime()-o.getTime();if(this._workSpace.keepOriginalHours()){var l=o.getTime()-b.default.trimTime(o).getTime();r=new Date(b.default.trimTime(r).getTime()+l)}var u={},c=n.allDay;this.fire("setField","allDay",u,c),this.fire("setField","startDate",u,r);var d=new Date(r.getTime()+s);if(this.appointmentTakesAllDay(t)&&!u.allDay&&this._workSpace.supportAllDayRow()&&(d=this._workSpace.calculateEndDate(r)),i&&!this._workSpace.supportAllDayRow()&&!this._workSpace.keepOriginalHours()){var h=new Date(r);h.setHours(0),d=new Date(h.getTime()+s),0!==d.getHours()&&d.setHours(this._getCurrentViewOption("endDayHour"))}return this.fire("setField","endDate",u,d),this._resourcesManager.setResourcesToItem(u,n.groups),u},_getCoordinates:function(e,t,n,i){for(var o=[],a=0;a<t.length;a++){for(var r=this._workSpace.getCoordinatesByDateInGroup(t[a],n,i),s=0;s<r.length;s++)(0,S.extend)(r[s],{startDate:t[a],initialStartDate:e[a]});o=o.concat(r)}return o},_isAppointmentRecurrence:function(e){var t=this.fire("getField","recurrenceRule",e);return t&&m.default.getRecurrenceRule(t).isValid},_getSingleAppointmentData:function(e,t){t=t||{};var n,i,o=t.$appointment,a=t.skipDateCalculation?{}:this._getUpdatedData(t),r=(0,S.extend)({},e,a),s=this.fire("getField","allDay",e),l=this._workSpace.supportAllDayRow()&&s,c=new Date(this.fire("getField","startDate",r)),d=new Date(this.fire("getField","endDate",r)),h=d.getTime()-c.getTime();if(E.default.isDefined(o)&&this._needUpdateAppointmentData(o)){var p=this.getRenderingStrategyInstance().getAppointmentDataCalculator();if(E.default.isFunction(p))n=p(o,c).startDate;else{var f=u.default.locate(o);n=new Date(this._workSpace.getCellDataByCoordinates(f,l).startDate),o.hasClass("dx-scheduler-appointment-reduced")&&(i=o.data("dxAppointmentStartDate"),i&&(n=i)),this._isAppointmentRecurrence(e)&&(i=o.data("dxAppointmentSettings")&&o.data("dxAppointmentSettings").startDate,i&&(n=i)),t.skipHoursProcessing||this.fire("convertDateByTimezoneBack",n,this.fire("getField","startDateTimeZone",e))}}return!n&&t.startDate&&(n=t.startDate),n&&(this.fire("setField","startDate",r,n),this.fire("setField","endDate",r,new Date(n.getTime()+h))),r},_needUpdateAppointmentData:function(e){return e.hasClass("dx-scheduler-appointment-compact")||e.hasClass("dx-scheduler-appointment-recurrence")},_getNormalizedTemplateArgs:function(e){var t=this.callBase(e);return"targetedAppointmentData"in e&&t.push(e.targetedAppointmentData),"currentIndex"in e&&t.push(e.currentIndex),t},subscribe:function(e,t){this._subscribes[e]=W.default[e]=t},fire:function(e){var t=this._subscribes[e],n=Array.prototype.slice.call(arguments);if(!E.default.isFunction(t))throw d.default.Error("E1031",e);return t.apply(this,n.slice(1))},getTargetCellData:function(){return this._workSpace.getDataByDroppableCell()},_updateAppointment:function(e,t,n){var i={newData:t,oldData:(0,S.extend)({},e),cancel:!1},o=function(e){if(E.default.isFunction(n)&&n.call(this),e&&"Error"===e.name)throw e}.bind(this);this._actions.onAppointmentUpdating(i),this._processActionResult(i,function(n){if(n)o();else{this._expandAllDayPanel(t);try{this._appointmentModel.update(e,t).always(function(e){this._executeActionWhenOperationIsCompleted(this._actions.onAppointmentUpdated,t,e)}.bind(this)).fail(function(){o()})}catch(e){o(e)}}})},_processActionResult:function(e,t){var n=this;E.default.isPromise(e.cancel)?qe(Ve.default.fromPromise(e.cancel)).always(function(i){E.default.isDefined(i)||(i="rejected"===e.cancel.state()),t.call(n,i)}):t.call(this,e.cancel)},_expandAllDayPanel:function(e){!this._isAllDayExpanded(this.getFilteredItems())&&this.appointmentTakesAllDay(e)&&this._workSpace.option("allDayExpanded",!0)},_executeActionWhenOperationIsCompleted:function(e,t,n){var i={appointmentData:t},o=n&&"Error"===n.name;o?i.error=n:this._popup&&this._popup.option("visible")&&this._popup.hide(),e(i),this._fireContentReadyAction()},_showAppointmentPopup:function(e,t,n){this._popup||this._createPopup(e,n);var i=[],o=!0;E.default.isDefined(t)&&!t||(i=this._getPopupToolbarItems(),o=this._popup.initialOption("showCloseButton")),this._popup.option({toolbarItems:i,showCloseButton:o}),this._appointmentForm?this._createOrUpdateForm(e,n):(this._initDynamicPopupTemplate(e,n),this._popup.option(this._popupConfig(e))),this._popup.show()},getAppointmentPopup:function(){return this._popup},getAppointmentDetailsForm:function(){return this._appointmentForm},getUpdatedAppointment:function(){return this._appointmentModel.getUpdatedAppointment()},getUpdatedAppointmentKeys:function(){return this._appointmentModel.getUpdatedAppointmentKeys()},getAppointmentsInstance:function(){return this._appointments},getResourceManager:function(){return this._resourcesManager},getLayoutManager:function(){return this._layoutManager},getRenderingStrategyInstance:function(){return this._layoutManager.getRenderingStrategyInstance()},getFilteredItems:function(){return this._filteredItems},getActions:function(){return this._actions},appointmentTakesAllDay:function(e){return this._appointmentModel.appointmentTakesAllDay(e,this._getCurrentViewOption("startDayHour"),this._getCurrentViewOption("endDayHour"))},_getStartDate:function(e,t){var n=this.fire("getField","startDate",e),i=this.fire("getField","startDateTimeZone",e);return n=b.default.makeDate(n),n=this.fire("convertDateByTimezone",n,i),!t&&this.fire("updateAppointmentStartDate",{startDate:n,appointment:e,callback:function(e){n=e}}),n},_getEndDate:function(e,t){var n=this.fire("getField","endDate",e);if(n){var i=this.fire("getField","endDateTimeZone",e);n=b.default.makeDate(n),n=this.fire("convertDateByTimezone",n,i),!t&&this.fire("updateAppointmentEndDate",{endDate:n,callback:function(e){n=e}})}return n},_getRecurrenceException:function(e){var t=this.fire("getField","recurrenceException",e);if(t){for(var n=this.fire("getField","startDate",e),i=t.split(","),o=this.fire("getField","startDateTimeZone",e),a=this.fire("convertDateByTimezone",n,o),r=0;r<i.length;r++)i[r]=this._convertRecurrenceException(i[r],a,o);t=i.join()}return t},_convertRecurrenceException:function(e,t,n){return e=e.replace(/\s/g,""),e=H.default.deserializeDate(e),e=this.fire("convertDateByTimezone",e,n),e.setHours(t.getHours()),e=H.default.serializeDate(e,lt)},recurrenceEditorVisibilityChanged:function(e){this._appointmentForm&&this._appointmentForm.$element().find("."+tt).toggleClass(nt,e)},resizePopup:function(){this.getAppointmentPopup()&&y.default.triggerResizeEvent(this.getAppointmentPopup().$element())},dayHasAppointment:function(e,t,n){var i=new Date(this.fire("getField","startDate",t)),o=new Date(this.fire("getField","endDate",t)),a=this.fire("getField","startDateTimeZone",t),r=this.fire("getField","endDateTimeZone",t);if(i=this.fire("convertDateByTimezone",i,a),o=this.fire("convertDateByTimezone",o,r),e.getTime()===o.getTime())return i.getTime()===o.getTime();n&&(e=b.default.trimTime(e),i=b.default.trimTime(i),o=b.default.trimTime(o));var s=e.getTime(),l=i.getTime(),u=o.getTime();return(0,I.inArray)(s,[l,u])>-1||l<s&&u>s},setTargetedAppointmentResources:function(e,t,n){var i=this._getCurrentViewOption("groups");if(i&&i.length){var o,r,s=this._resourcesManager._dataAccessors.setter,l=this._workSpace;this._isAgenda()?(o=function(){var e=this.getLayoutManager()._positionMap[n];return l._getCellGroups(e[0].groupIndex)},r=function(t,n){s[n.name](e,n.id)}):(o=function(){var e=(0,a.default)(t).data("dxAppointmentSettings")||{};return l.getCellDataByCoordinates({left:e.left,top:e.top}).groups},r=function(t,n){s[t](e,n)}),(0,k.each)(o.call(this),r)}},getStartViewDate:function(){return this._workSpace.getStartViewDate()},getEndViewDate:function(){return this._workSpace.getEndViewDate()},showAppointmentPopup:function(e,t,n){var i=n||this._getSingleAppointmentData(e,{skipDateCalculation:!0}),o=this.fire("getField","startDate",n||e);this._checkRecurringAppointment(e,i,o,function(){t||E.default.isEmptyObject(e)?(delete this._editAppointmentData,this._editing.allowAdding&&this._showAppointmentPopup(e,!0,!1)):(this._editAppointmentData=e,this._showAppointmentPopup(e,this._editing.allowUpdating,!0))}.bind(this),!1,!0)},hideAppointmentPopup:function(e){this._popup&&this._popup.option("visible")&&(e&&this._saveChanges(),this._popup.hide())},showAppointmentTooltip:function(e,t,n){e&&this.showAppointmentTooltipCore(t,[{color:this._appointments._tryGetAppointmentColor(t),data:e,currentData:n}],!0)},showAppointmentTooltipCore:function(e,t,n){this._appointmentTooltip.show(e,t,n)},hideAppointmentTooltip:function(){this._appointmentTooltip.hide()},scrollToTime:function(e,t,n){this._workSpace.scrollToTime(e,t,n)},addAppointment:function(e){var t=this.fire("getField","text",e);t||this.fire("setField","text",e,""),this._convertDatesByTimezoneBack(!0,e);var n={appointmentData:e,cancel:!1};this._actions.onAppointmentAdding(n),this._processActionResult(n,function(t){t||(this._expandAllDayPanel(e),this._appointmentModel.add(e,{value:this._getTimezoneOffsetByOption(),clientOffset:this.fire("getClientTimezoneOffset")}).always(function(t){this._executeActionWhenOperationIsCompleted(this._actions.onAppointmentAdded,e,t)}.bind(this)))})},updateAppointment:function(e,t){this._updateAppointment(e,t)},deleteAppointment:function(e){var t={appointmentData:e,cancel:!1};this._actions.onAppointmentDeleting(t),this._processActionResult(t,function(t){t||this._appointmentModel.remove(e).always(function(t){this._executeActionWhenOperationIsCompleted(this._actions.onAppointmentDeleted,e,t)}.bind(this))})},focus:function(){this._editAppointmentData?this._appointments.focus():this._workSpace.focus()}}).include(Ie.default,De.default);(0,R.default)("dxScheduler",dt),e.exports=dt},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(13),s=i(r),l=n(142),u=i(l),c=n(1),d=i(c),h=n(22),p=i(h),f=n(3),g=n(27),_=i(g),m=n(4),v=n(0),y=n(33),x=i(y),b=n(382),w=i(b),C=n(6),k=60,S=p.default.dateToMilliseconds,I={isCurrentViewAgenda:function(){return"agenda"===this.option("currentView")},currentViewUpdated:function(e){this.option("currentView",e)},currentDateUpdated:function(e){this.option("currentDate",e)},setCellDataCacheAlias:function(e,t){this._workSpace.setCellDataCacheAlias(e,t)},needCoordinates:function(e){var t=this,n=e.appointmentData,i=e.startDate,o=this._getEndDate(n),a=this.fire("getField","recurrenceRule",n),r=this._getRecurrenceException(n),s=this._workSpace.getDateRange(),l=this.appointmentTakesAllDay(n),c=this.appointmentTakesAllDay(n)?p.default.trimTime(new Date(s[0])):s[0],d=e.originalStartDate||i,h=this.getLayoutManager().getRenderingStrategyInstance(),f=this.option("firstDayOfWeek"),g={rule:a,exception:r,start:d,end:o,min:c,max:s[1],firstDayOfWeek:f},_=u.default.getDatesByRecurrence(g),m=void 0;if(_.length?(m=_,_=_.map(function(e){return p.default.roundDateByStartDayHour(e,t._getCurrentViewOption("startDayHour"))})):(_.push(i),m=_),h.needSeparateAppointment(l)){for(var v=_.length,y=[],x=[],b=function(e){var i=h.endDate(n,{startDate:_[e]},!!a);y=p.default.getDatesOfInterval(_[e],i,{milliseconds:t.getWorkSpace().getIntervalDuration(l)});var o=new Date(s[1]);x=x.concat(y.filter(function(e){return new Date(e)<o}))},w=0;w<v;w++)b(w);_=x}var C=this._resourcesManager.getResourcesFromItem(n);l=this.appointmentTakesAllDay(n)&&this._workSpace.supportAllDayRow(),e.callback(this._getCoordinates(m,_,C,l))},isGroupedByDate:function(){return this.getWorkSpace().isGroupedByDate()},showAppointmentTooltip:function(e){e.skipDateCalculation=!0,e.$appointment=(0,a.default)(e.target);var t=e.data,n=this._getSingleAppointmentData(t,e);this.showAppointmentTooltip(t,e.target,n)},hideAppointmentTooltip:function(){this.hideAppointmentTooltip()},showAddAppointmentPopup:function(e){var t={};(0,f.each)(["startDate","endDate","allDay"],function(n,i){void 0!==e[i]&&(this.fire("setField",i,t,e[i]),delete e[i])}.bind(this)),this.showAppointmentPopup((0,v.extend)(t,e),!0)},showEditAppointmentPopup:function(e){var t=e.data;e.$appointment=(0,a.default)(e.target),e.skipHoursProcessing=!0;var n=this._getSingleAppointmentData(t,e),i=this.fire("getField","startDate",n);this.showAppointmentPopup(t,!1,n,i)},updateAppointmentAfterResize:function(e){var t=e.target,n=this._getSingleAppointmentData(t,e),i=this.fire("getField","startDate",n),o=(0,v.extend)(!0,{},e.data);this._convertDatesByTimezoneBack(!0,o),this._checkRecurringAppointment(t,n,i,function(){this._updateAppointment(t,o,function(){this._appointments.moveAppointmentBack()})}.bind(this))},updateAppointmentAfterDrag:function(e){var t=e.data,n=this._getUpdatedData(e),i=this._workSpace.getDroppableCellIndex(),o=this._workSpace.getCellIndexByCoordinates(e.coordinates),a=this.fire("getField","allDay",n),r=this.fire("getField","allDay",t),s=(0,v.extend)({},t,n),l=this._workSpace.supportAllDayRow()&&a,u=this._workSpace.getCellDataByCoordinates(e.coordinates,l),c=this._workSpace.supportAllDayRow()&&(r&&!a||!r&&a);i!==o||c?this._checkRecurringAppointment(t,s,u.startDate,function(){this._convertDatesByTimezoneBack(!0,n,s),this._updateAppointment(t,s,function(){this._appointments.moveAppointmentBack()})}.bind(this)):this._appointments.moveAppointmentBack()},deleteAppointment:function(e){e.$appointment=(0,a.default)(e.target);var t=e.data,n=this._getSingleAppointmentData(t,e),i=this.fire("getField","startDate",n);this._checkRecurringAppointment(t,n,i,function(){this.deleteAppointment(t)}.bind(this),!0)},getResourceForPainting:function(){return this._resourcesManager.getResourceForPainting(this._getCurrentViewOption("groups"))},getAppointmentColor:function(e){var t=this._resourcesManager,n=t.getResourceForPainting(this._getCurrentViewOption("groups")),i=(new C.Deferred).resolve().promise();if(n){for(var o=t.getField(n),a=e.groupIndex,r=this._workSpace._getCellGroups(a),l=s.default.wrapToArray(t.getDataAccessors(o,"getter")(e.itemData)),u=l.length?l[0]:void 0,c=0;c<r.length;c++)if(r[c].name===o){u=r[c].id;break}i=t.getResourceColor(o,u)}e.callback(i)},getHeaderHeight:function(){return this._header._$element&&parseInt(this._header._$element.outerHeight(),10)},getResourcesFromItem:function(e){e.callback(this._resourcesManager.getResourcesFromItem(e.itemData))},getBoundOffset:function(e){e.callback({top:-this.getWorkSpaceAllDayHeight()})},appointmentTakesAllDay:function(e){e.callback(this.appointmentTakesAllDay(e.appointment))},appointmentTakesSeveralDays:function(e){return this._appointmentModel.appointmentTakesSeveralDays(e)},appointmentFocused:function(){this._workSpace.restoreScrollTop()},getResizableAppointmentArea:function(e){var t=void 0,n=e.allDay,i=this._getCurrentViewOption("groups"),o=i&&i.length;if(o){if(n||this.getLayoutManager().getRenderingStrategyInstance()._needHorizontalGroupBounds()){var a=this._workSpace.getGroupBounds(e.coordinates);t={left:a.left,right:a.right,top:0,bottom:0}}if(this.getLayoutManager().getRenderingStrategyInstance()._needVerticalGroupBounds(n)&&this._workSpace._isVerticalGroupedWorkSpace()){var r=this._workSpace.getGroupBounds(e.coordinates);t={left:0,right:0,top:r.top,bottom:r.bottom}}}e.callback(t)},needRecalculateResizableArea:function(){return this.getWorkSpace().needRecalculateResizableArea()},getDraggableAppointmentArea:function(e){e.callback(this.getWorkSpaceScrollableContainer())},getAppointmentGeometry:function(e){return this.getLayoutManager().getRenderingStrategyInstance().getAppointmentGeometry(e)},isAllDay:function(e){return this.getLayoutManager().getRenderingStrategyInstance().isAllDay(e)},getDeltaTime:function(e,t,n){return this.getLayoutManager().getRenderingStrategyInstance().getDeltaTime(e,t,n)},getDropDownAppointmentWidth:function(e){return this.getLayoutManager().getRenderingStrategyInstance().getDropDownAppointmentWidth(this._getViewCountConfig().intervalCount,e)},getDropDownAppointmentHeight:function(){return this.getLayoutManager().getRenderingStrategyInstance().getDropDownAppointmentHeight()},getStartDate:function(e,t){return this._getStartDate(e,t)},getCellWidth:function(){return this._cellWidth},getCellHeight:function(){return this._cellHeight},getResizableStep:function(){var e=this._cellWidth,t=this.getWorkSpace();return t.isGroupedByDate()?t._getGroupCount()*e:e},getEndDate:function(e,t){return this._getEndDate(e,t)},getRenderingStrategy:function(){return this._getAppointmentsRenderingStrategy()},needCorrectAppointmentDates:function(){return this.getRenderingStrategyInstance().needCorrectAppointmentDates()},getRenderingStrategyDirection:function(){return this.getRenderingStrategyInstance().getDirection()},getWorkSpaceDateTableOffset:function(){return this.getWorkSpaceDateTableOffset()},correctAppointmentCoordinates:function(e){var t=e.allDay,n=e.isFixedContainer?-1:1,i=this.getWorkSpaceScrollableScrollTop(t),o=t?0:this.getWorkSpaceAllDayOffset(),a=this.getWorkSpaceHeaderPanelHeight(),r=this.getWorkSpaceScrollableScrollLeft(),s=this.getWorkSpaceDateTableOffset(),l=-i+o+a,u=-r-s;e.callback({top:e.coordinates.top+n*l,left:e.coordinates.left+n*u})},allDayPanelToggled:function(){this._appointments.updateDraggablesBoundOffsets()},formatDates:function(e){var t=e.startDate,n=e.endDate,i=e.formatType,o={DATETIME:function(){var e="mediumdatemediumtime",i=x.default.format(t,e)+" - ",o=t.getDate()===n.getDate()?x.default.format(n,"shorttime"):x.default.format(n,e);return i+o},TIME:function(){return x.default.format(t,"shorttime")+" - "+x.default.format(n,"shorttime")},DATE:function(){var e="monthAndDay",i=x.default.format(t,e),o=n.getTime()-t.getTime()>S("day"),a=o||n.getDate()!==t.getDate()?" - "+x.default.format(n,e):"";return i+a}};e.callback(o[i]())},getFullWeekAppointmentWidth:function(e){var t=e.groupIndex,n=this._workSpace.getGroupWidth(t);e.callback(n)},getMaxAppointmentWidth:function(e){var t=this._workSpace.getCellCountToLastViewDate(e.date);e.callback(t*this._workSpace.getCellWidth())},updateAppointmentStartDate:function(e){var t=e.appointment,n=this._workSpace.getStartViewDate(),i=new Date(e.startDate),o=this._getCurrentViewOption("startDayHour"),a=void 0;this.appointmentTakesAllDay(t)?a=p.default.normalizeDate(i,n):(i<n&&(i=n),a=p.default.normalizeDate(e.startDate,new Date(i))),a=p.default.roundDateByStartDayHour(a,o),e.callback(a)},updateAppointmentEndDate:function(e){var t=new Date(e.endDate),n=this._getCurrentViewOption("endDayHour"),i=this._getCurrentViewOption("startDayHour"),o=t;t.getHours()>=n?o.setHours(n,0,0,0):i>0&&60*t.getHours()+t.getMinutes()<60*i&&(o=new Date(o.getTime()-S("day")),o.setHours(n,0,0,0)),e.callback(o)},renderCompactAppointments:function(e){this._compactAppointmentsHelper.render(e)},clearCompactAppointments:function(){this._compactAppointmentsHelper.clear()},supportCompactDropDownAppointments:function(){return this._workSpace._supportCompactDropDownAppointments()},getGroupCount:function(){return this._workSpace._getGroupCount()},mapAppointmentFields:function(e){var t={appointmentData:e.itemData,appointmentElement:e.itemElement};return e.itemData&&(t.targetedAppointmentData=this.fire("getTargetedAppointmentData",e.itemData,e.itemElement)),t},getOffsetByAllDayPanel:function(e){return this._workSpace._getOffsetByAllDayPanel(e)},getGroupTop:function(e){return this._workSpace._getGroupTop(e)},updateResizableArea:function(){var e=this.$element().find(".dx-scheduler-appointment.dx-resizable"),t=(0,m.grep)(e,function(e){var t=(0,a.default)(e),n=t.dxResizable("instance"),i=n.option("area");return(0,r.inArray)(n.option("handles"),["right left","left right"])>-1&&d.default.isPlainObject(i)});(0,f.each)(t,function(e,t){var n=(0,a.default)(t),i=_.default.locate(n),o=this._appointments._getItemData(n),r=this._appointments._calculateResizableArea({left:i.left},o);n.dxResizable("instance").option("area",r)}.bind(this))},recurrenceEditorVisibilityChanged:function(e){this.recurrenceEditorVisibilityChanged(e)},resizePopup:function(){this.resizePopup()},getField:function(e,t){if(d.default.isDefined(this._dataAccessors.getter[e]))return this._dataAccessors.getter[e](t)},setField:function(e,t,n){if(d.default.isDefined(this._dataAccessors.setter[e])){var i=this.option(e+"Expr").split("."),o=i[0];if(void 0===t[o]&&i.length>1){var a=function(e){for(var t={},n=t,i=e.length-1,o=1;o<i;o++)n=n[e[o]]={};return t}(i);t[o]=a}return this._dataAccessors.setter[e](t,n),t}},prerenderFilter:function(){var e=this.getWorkSpace().getDateRange(),t=this._resourcesManager.getResourcesData(),n=void 0;return!this.option("showAllDayPanel")&&this._workSpace.supportAllDayRow()&&(n=!1),this._appointmentModel.filterLoadedAppointments({startDayHour:this._getCurrentViewOption("startDayHour"),endDayHour:this._getCurrentViewOption("endDayHour"),min:e[0],max:e[1],resources:t,allDay:n,firstDayOfWeek:this.option("firstDayOfWeek"),recurrenceException:this._getRecurrenceException.bind(this)},this._subscribes.convertDateByTimezone.bind(this))},dayHasAppointment:function(e,t,n){return this.dayHasAppointment(e,t,n)},createResourcesTree:function(){return this._resourcesManager.createResourcesTree(this._loadedResources)},getResourceTreeLeaves:function(e,t){return this._resourcesManager.getResourceTreeLeaves(e,t)},createReducedResourcesTree:function(){var e=this._resourcesManager.createResourcesTree(this._loadedResources);return this._resourcesManager.reduceResourcesTree(e,this.getFilteredItems())},groupAppointmentsByResources:function(e){var t={0:e},n=this._getCurrentViewOption("groups");n&&n.length&&this._resourcesManager.getResourcesData().length&&(t=this._resourcesManager.groupAppointmentsByResources(e,this._loadedResources));var i=0;(0,f.each)(this._loadedResources,function(e,t){e?i*=t.items.length:i=t.items.length});for(var o=0;o<i;o++){var a=o.toString();t[a]||(t[a]=[])}return t},getAgendaRows:function(e){function t(n){var a=i(n,e.agendaDuration,e.currentDate);this._dataSourceLoadedCallback.remove(t),o.resolve(a)}var n=this._layoutManager.getRenderingStrategyInstance(),i=n.calculateRows.bind(n),o=new C.Deferred;return this._dataSourceLoadedCallback.add(t),o.promise()},getAgendaVerticalStepHeight:function(){return this.getWorkSpace().getAgendaVerticalStepHeight()},getAgendaDuration:function(){return this._getCurrentViewOption("agendaDuration")},getStartViewDate:function(){return this.getStartViewDate()},getEndViewDate:function(){return this.getEndViewDate()},getMaxAppointmentsPerCell:function(){return this.getMaxAppointmentsPerCell()},forceMaxAppointmentPerCell:function(){return this.forceMaxAppointmentPerCell()},agendaIsReady:function(e,t,n){var i=this.getAppointmentsInstance()._itemElements(),o=0;i.css("marginBottom",t);for(var a=function(e,t){var a=t+o-1;i.eq(a).css("marginBottom",n),o+=t},r=0;r<e.length;r++)(0,f.each)(e[r],a)},getTimezone:function(){return this._getTimezoneOffsetByOption()},getClientTimezoneOffset:function(e){return e=e||new Date,w.default.getClientTimezoneOffset(e)},convertDateByTimezone:function(e,t){e=new Date(e);var n=this._subscribes.getComplexOffsets(this,e,t);return e=this._subscribes.translateDateToAppointmentTimeZone(e,n),e=this._subscribes.translateDateToCommonTimeZone(e,n)},convertDateByTimezoneBack:function(e,t){e=new Date(e);var n=this._subscribes.getComplexOffsets(this,e,t);return e=this._subscribes.translateDateToAppointmentTimeZone(e,n,!0),e=this._subscribes.translateDateToCommonTimeZone(e,n,!0)},translateDateToAppointmentTimeZone:function(e,t,n){var i=n?-1:1,o=e.getTime()-i*t.client*S("hour");return new Date(o+i*t.appointment*S("hour"))},translateDateToCommonTimeZone:function(e,t,n){var i=n?-1:1;if("number"==typeof t.common){var o=t.common-t.appointment,a=(o<0?-1:1)*Math.floor(Math.abs(o)),r=o%1;e.setHours(e.getHours()+i*a),e.setMinutes(e.getMinutes()+i*r*k)}return e},getComplexOffsets:function(e,t,n){var i=-this.getClientTimezoneOffset(t)/S("hour"),o=e._getTimezoneOffsetByOption(t),a=e._calculateTimezoneByValue(n,t);return"number"!=typeof a&&(a=i),{client:i,common:o,appointment:a}},getDaylightOffset:function(e,t){return e.getTimezoneOffset()-t.getTimezoneOffset()},getTimezonesDisplayName:function(){return w.default.getTimezonesDisplayName()},getTimezoneDisplayNameById:function(e){return w.default.getTimezoneDisplayNameById(e)},getSimilarTimezones:function(e){return w.default.getSimilarTimezones(e)},getTimezonesIdsByDisplayName:function(e){return w.default.getTimezonesIdsByDisplayName(e)},getTargetedAppointmentData:function(e,t){var n=(0,a.default)(t),i=n.data(this._appointments._itemIndexKey()),o=this._getSingleAppointmentData(e,{skipDateCalculation:!0,$appointment:n,skipHoursProcessing:!0}),r={};return(0,v.extend)(!0,r,e,o),this._convertDatesByTimezoneBack(!1,r),t&&this.setTargetedAppointmentResources(r,t,i),r},getAppointmentDurationInMs:function(e){var t=e.startDate,n=e.endDate,i=e.allDay,o=n.getTime()-t.getTime(),a=S("day"),r=this._workSpace.getVisibleDayDuration(),s=0;if(i){var l=Math.ceil(o/a);s=l*r}else{var u=!p.default.sameDate(t,new Date(n.getTime()-1)),c=Math.floor(o/a),d=void 0;if(u){var h=a-r;d=o-(c?c*a:h);var f=this.option("startDayHour")*S("hour"),g=n-p.default.trimTime(n);g<f&&(c&&(d-=h),d+=f-g)}else d=o%a;d>r&&(d=r),s=c*r+d}e.callback(s)},fixWrongEndDate:function(e,t,n){return this._appointmentModel.fixWrongEndDate(e,t,n)},getEndDayHour:function(){return this.option("endDayHour")},getStartDayHour:function(){return this.option("startDayHour")},isAdaptive:function(){return this.option("adaptivityEnabled")}};e.exports=I},function(e,t,n){var i=["(UTC) Monrovia, Reykjavik","(UTC+03:00) Nairobi","(UTC+02:00) Harare, Pretoria","(UTC+01:00) West Central Africa","(UTC+02:00) Athens, Bucharest","(UTC+03:00) Kuwait, Riyadh","(UTC+07:00) Bangkok, Hanoi, Jakarta","(UTC+04:00) Abu Dhabi, Muscat","(UTC+12:00) Auckland, Wellington","(UTC-03:00) City of Buenos Aires","(UTC-05:00) Bogota, Lima, Quito, Rio Branco","(UTC-08:00) Pacific Time (US & Canada)","(UTC-05:00) Indiana (East)","(UTC-06:00) Central Time (US & Canada)","(UTC-05:00) Eastern Time (US & Canada)","(UTC-07:00) Mountain Time (US & Canada)","(UTC-04:00) Georgetown, La Paz, Manaus, San Juan","(UTC+05:00) Ashgabat, Tashkent","(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi","(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi","(UTC+06:00) Dhaka","(UTC+06:00) Astana","(UTC+05:45) Kathmandu","(UTC+02:00) Jerusalem","(UTC+08:00) Kuala Lumpur, Singapore","(UTC+08:00) Ulaanbaatar","(UTC) Dublin, Edinburgh, Lisbon, London","(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna","(UTC+10:00) Canberra, Melbourne, Sydney","(UTC+09:30) Darwin","(UTC+10:00) Brisbane","(UTC+09:30) Adelaide","(UTC+10:00) Hobart","(UTC+08:00) Perth","(UTC-02:00) Coordinated Universal Time-02","(UTC-03:00) Brasilia","(UTC-04:00) Atlantic Time (Canada)","(UTC-06:00) Saskatchewan","(UTC-03:30) Newfoundland","(UTC-03:00) Santiago","(UTC+02:00) Cairo","UTC","(UTC+03:30) Tehran","(UTC+09:00) Osaka, Sapporo, Tokyo","(UTC+12:00) Coordinated Universal Time+12","(UTC+02:00) Tripoli","(UTC-07:00) Chihuahua, La Paz, Mazatlan","(UTC-06:00) Guadalajara, Mexico City, Monterrey","(UTC+11:00) Solomon Is., New Caledonia","(UTC-11:00) Coordinated Universal Time-11","(UTC+10:00) Guam, Port Moresby","(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb","(UTC+08:00) Taipei","(UTC+09:00) Seoul","(UTC+02:00) Istanbul","(UTC-09:00) Alaska","(UTC-07:00) Arizona","(UTC-10:00) Hawaii","(UTC+03:00) Moscow, St. Petersburg, Volgograd","(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius","(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague","(UTC) Casablanca","(UTC+01:00) Brussels, Copenhagen, Madrid, Paris","(UTC+01:00) Windhoek","(UTC-03:00) Cayenne, Fortaleza","(UTC-04:00) Asuncion","(UTC-03:00) Salvador","(UTC-06:00) Central America","(UTC-04:00) Cuiaba","(UTC-04:30) Caracas","(UTC-03:00) Greenland","(UTC-03:00) Montevideo","(UTC-08:00) Baja California","(UTC-01:00) Azores","(UTC+02:00) Amman","(UTC+10:00) Magadan","(UTC+03:00) Baghdad","(UTC+04:00) Baku","(UTC+02:00) Beirut","(UTC+09:00) Yakutsk","(UTC+05:30) Sri Jayawardenepura","(UTC+02:00) Damascus","(UTC+08:00) Irkutsk","(UTC+04:30) Kabul","(UTC+05:00) Islamabad, Karachi","(UTC+07:00) Krasnoyarsk","(UTC+06:00) Novosibirsk","(UTC+06:30) Yangon (Rangoon)","(UTC+10:00) Vladivostok","(UTC+04:00) Tbilisi","(UTC+05:00) Ekaterinburg","(UTC+04:00) Yerevan","(UTC-01:00) Cabo Verde Is.","(UTC-12:00) International Date Line West","(UTC+13:00) Nuku'alofa","(UTC+14:00) Kiritimati Island","(UTC+02:00) Kaliningrad","(UTC+04:00) Port Louis","(UTC+13:00) Samoa","(UTC+12:00) Fiji","(UTC+8:45) Eucla","(UTC+10:30) Lord Howe Island"],o=[{id:"Africa/Bamako",title:"Bamako",winIndex:0,link:185},{id:"Africa/Banjul",title:"Banjul",winIndex:0,link:185},{id:"Africa/Conakry",title:"Conakry",winIndex:0,link:185},{id:"Africa/Dakar",title:"Dakar",winIndex:0,link:185},{id:"Africa/Freetown",title:"Freetown",winIndex:0,link:185},{id:"Africa/Lome",title:"Lome",winIndex:0,link:185},{id:"Africa/Nouakchott",title:"Nouakchott",winIndex:0,link:185},{id:"Africa/Ouagadougou",title:"Ouagadougou",winIndex:0,link:185},{id:"Africa/Sao_Tome",title:"Sao Tome",winIndex:0,link:185},{id:"Atlantic/St_Helena",title:"St Helena",winIndex:0,link:185},{id:"Africa/Addis_Ababa",title:"Addis Ababa",winIndex:1,link:198},{id:"Africa/Asmara",title:"Asmara",winIndex:1,link:198},{id:"Africa/Dar_es_Salaam",title:"Dar es Salaam",winIndex:1,link:198},{id:"Africa/Djibouti",title:"Djibouti",winIndex:1,link:198},{id:"Africa/Kampala",title:"Kampala",winIndex:1,link:198},{id:"Africa/Mogadishu",title:"Mogadishu",winIndex:1,link:198},{id:"Indian/Antananarivo",title:"Antananarivo",winIndex:1,link:198},{id:"Indian/Comoro",title:"Comoro",winIndex:1,link:198},{id:"Indian/Mayotte",title:"Mayotte",winIndex:1,link:198},{id:"Africa/Blantyre",title:"Blantyre",winIndex:2,link:196},{id:"Africa/Bujumbura",title:"Bujumbura",winIndex:2,link:196},{id:"Africa/Gaborone",title:"Gaborone",winIndex:2,link:196},{id:"Africa/Harare",title:"Harare",winIndex:2,link:196},{id:"Africa/Kigali",title:"Kigali",winIndex:2,link:196},{id:"Africa/Lubumbashi",title:"Lubumbashi",winIndex:2,link:196},{id:"Africa/Lusaka",title:"Lusaka",winIndex:2,link:196},{id:"Africa/Bangui",title:"Bangui",winIndex:3,
95link:195},{id:"Africa/Brazzaville",title:"Brazzaville",winIndex:3,link:195},{id:"Africa/Douala",title:"Douala",winIndex:3,link:195},{id:"Africa/Kinshasa",title:"Kinshasa",winIndex:3,link:195},{id:"Africa/Libreville",title:"Libreville",winIndex:3,link:195},{id:"Africa/Luanda",title:"Luanda",winIndex:3,link:195},{id:"Africa/Malabo",title:"Malabo",winIndex:3,link:195},{id:"Africa/Niamey",title:"Niamey",winIndex:3,link:195},{id:"Africa/Porto-Novo",title:"Porto-Novo",winIndex:3,link:195},{id:"Africa/Maseru",title:"Maseru",winIndex:2,link:193},{id:"Africa/Mbabane",title:"Mbabane",winIndex:2,link:193},{id:"Africa/Juba",title:"Juba",winIndex:1,link:194},{id:"Europe/Nicosia",title:"Nicosia",winIndex:4,link:381},{id:"Asia/Bahrain",title:"Bahrain",winIndex:5,link:388},{id:"Asia/Aden",title:"Aden",winIndex:5,link:391},{id:"Asia/Kuwait",title:"Kuwait",winIndex:5,link:391},{id:"Asia/Phnom_Penh",title:"Phnom Penh",winIndex:6,link:349},{id:"Asia/Vientiane",title:"Vientiane",winIndex:6,link:349},{id:"Asia/Muscat",title:"Muscat",winIndex:7,link:359},{id:"Antarctica/McMurdo",title:"McMurdo",winIndex:8,link:511},{id:"Africa/Asmera",title:"Asmera",winIndex:1,link:198},{id:"Africa/Timbuktu",title:"Timbuktu",winIndex:0,link:185},{id:"America/Buenos_Aires",title:"Buenos Aires",winIndex:9,link:206},{id:"America/Catamarca",title:"Catamarca",winIndex:9,link:207},{id:"America/Coral_Harbour",title:"Coral Harbour",winIndex:10,link:219},{id:"America/Cordoba",title:"Cordoba",winIndex:9,link:208},{id:"America/Ensenada",title:"Ensenada",winIndex:11,link:325},{id:"America/Indianapolis",title:"Indianapolis",winIndex:12},{id:"America/Jujuy",title:"Jujuy",winIndex:9,link:209},{id:"America/Knox_IN",title:"Knox IN",winIndex:13,link:261},{id:"America/Louisville",title:"Louisville",winIndex:14,link:272},{id:"America/Mendoza",title:"Mendoza",winIndex:9,link:211},{id:"America/Porto_Acre",title:"Porto Acre",winIndex:10,link:312},{id:"America/Shiprock",title:"Shiprock",winIndex:15,link:244},{id:"America/Virgin",title:"Virgin",winIndex:16,link:303},{id:"Antarctica/South_Pole",title:"South Pole",winIndex:8,link:511},{id:"Asia/Ashkhabad",title:"Ashkhabad",winIndex:17,link:346},{id:"Asia/Calcutta",title:"Calcutta",winIndex:18,link:373},{id:"Asia/Chongqing",title:"Chongqing",winIndex:19,link:395},{id:"Asia/Chungking",title:"Chungking",winIndex:19,link:395},{id:"Asia/Dacca",title:"Dacca",winIndex:20,link:357},{id:"Asia/Harbin",title:"Harbin",winIndex:19,link:395},{id:"Asia/Kashgar",title:"Kashgar",winIndex:21,link:405},{id:"Asia/Katmandu",title:"Katmandu",winIndex:22,link:371},{id:"Asia/Macao",title:"Macao",winIndex:19,link:377},{id:"Asia/Saigon",title:"Saigon",winIndex:6,link:361},{id:"Asia/Tel_Aviv",title:"Tel Aviv",winIndex:23,link:367},{id:"Asia/Thimbu",title:"Thimbu",winIndex:20,link:402},{id:"Asia/Ujung_Pandang",title:"Ujung Pandang",winIndex:24,link:379},{id:"Asia/Ulan_Bator",title:"Ulan Bator",winIndex:25,link:404},{id:"Atlantic/Faeroe",title:"Faeroe",winIndex:26,link:415},{id:"Atlantic/Jan_Mayen",title:"Jan Mayen",winIndex:27,link:483},{id:"Australia/ACT",title:"ACT",winIndex:28,link:429},{id:"Australia/Canberra",title:"Canberra",winIndex:28,link:429},{id:"Australia/NSW",title:"NSW",winIndex:28,link:429},{id:"Australia/North",title:"North",winIndex:29,link:424},{id:"Australia/Queensland",title:"Queensland",winIndex:30,link:421},{id:"Australia/South",title:"South",winIndex:31,link:420},{id:"Australia/Tasmania",title:"Tasmania",winIndex:32,link:425},{id:"Australia/Victoria",title:"Victoria",winIndex:28,link:427},{id:"Australia/West",title:"West",winIndex:33,link:428},{id:"Australia/Yancowinna",title:"Yancowinna",winIndex:31,link:422},{id:"Brazil/Acre",title:"Acre",winIndex:10,link:312},{id:"Brazil/DeNoronha",title:"DeNoronha",winIndex:34,link:294},{id:"Brazil/East",title:"East",winIndex:35,link:317},{id:"Brazil/West",title:"West",winIndex:16,link:279},{id:"Canada/Atlantic",title:"Atlantic",winIndex:36,link:257},{id:"Canada/Central",title:"Central",winIndex:13,link:329},{id:"Canada/East-Saskatchewan",title:"East-Saskatchewan",winIndex:37,link:310},{id:"Canada/Eastern",title:"Eastern",winIndex:14,link:326},{id:"Canada/Mountain",title:"Mountain",winIndex:15,link:246},{id:"Canada/Newfoundland",title:"Newfoundland",winIndex:38,link:320},{id:"Canada/Pacific",title:"Pacific",winIndex:11,link:327},{id:"Canada/Saskatchewan",title:"Saskatchewan",winIndex:37,link:310},{id:"Canada/Yukon",title:"Yukon",winIndex:11,link:328},{id:"Chile/Continental",title:"Continental",winIndex:39,link:315},{id:"Cuba",title:"Cuba",winIndex:14,link:258},{id:"Egypt",title:"Egypt",winIndex:40,link:189},{id:"Eire",title:"Eire",winIndex:26,link:469},{id:"Europe/Belfast",title:"Belfast",winIndex:26,link:476},{id:"Europe/Tiraspol",title:"Tiraspol",winIndex:4,link:467},{id:"GB",title:"GB",winIndex:26,link:476},{id:"GB-Eire",title:"GB-Eire",winIndex:26,link:476},{id:"GMT+0",title:"GMT+0",winIndex:41,link:150},{id:"GMT-0",title:"GMT-0",winIndex:41,link:150},{id:"GMT0",title:"GMT0",winIndex:41,link:150},{id:"Greenwich",title:"Greenwich",winIndex:41,link:150},{id:"Hongkong",title:"Hongkong",winIndex:19,link:362},{id:"Iceland",title:"Iceland",winIndex:0,link:417},{id:"Iran",title:"Iran",winIndex:42,link:401},{id:"Israel",title:"Israel",winIndex:23,link:367},{id:"Jamaica",title:"Jamaica",winIndex:10,link:270},{id:"Japan",title:"Japan",winIndex:43,link:403},{id:"Kwajalein",title:"Kwajalein",winIndex:44,link:524},{id:"Libya",title:"Libya",winIndex:45,link:200},{id:"Mexico/BajaNorte",title:"BajaNorte",winIndex:11,link:325},{id:"Mexico/BajaSur",title:"BajaSur",winIndex:46,link:282},{id:"Mexico/General",title:"General",winIndex:47,link:285},{id:"NZ",title:"NZ",winIndex:8,link:511},{id:"Navajo",title:"Navajo",winIndex:15,link:244},{id:"PRC",title:"PRC",winIndex:19,link:395},{id:"Pacific/Ponape",title:"Ponape",winIndex:48,link:532},{id:"Pacific/Samoa",title:"Samoa",winIndex:49,link:530},{id:"Pacific/Truk",title:"Truk",winIndex:50,link:512},{id:"Poland",title:"Poland",winIndex:51,link:498},{id:"Portugal",title:"Portugal",winIndex:26,link:475},{id:"ROC",title:"ROC",winIndex:52,link:398},{id:"ROK",title:"ROK",winIndex:53,link:394},{id:"Singapore",title:"Singapore",winIndex:24,link:396},{id:"Turkey",title:"Turkey",winIndex:54,link:472},{id:"US/Alaska",title:"Alaska",winIndex:55,link:203},{id:"US/Arizona",title:"Arizona",winIndex:56,link:302},{id:"US/Central",title:"Central",winIndex:13,link:235},{id:"US/Eastern",title:"Eastern",winIndex:14,link:291},{id:"US/Hawaii",title:"Hawaii",winIndex:57,link:521},{id:"US/Indiana-Starke",title:"Indiana-Starke",winIndex:13,link:261},{id:"US/Michigan",title:"Michigan",winIndex:14,link:245},{id:"US/Mountain",title:"Mountain",winIndex:15,link:244},{id:"US/Pacific",title:"Pacific",winIndex:11,link:276},{id:"US/Samoa",title:"Samoa",winIndex:49,link:530},{id:"W-SU",title:"W-SU",winIndex:58,link:482},{id:"GMT",title:"GMT",winIndex:41,link:150},{id:"Etc/Greenwich",title:"Greenwich",winIndex:41,link:150},{id:"Etc/GMT-0",title:"GMT-0",winIndex:41,link:150},{id:"Etc/GMT+0",title:"GMT+0",winIndex:41,offsets:[0],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT0",title:"GMT0",winIndex:41,link:150},{id:"Europe/Jersey",title:"Jersey",winIndex:26,link:476},{id:"Europe/Guernsey",title:"Guernsey",winIndex:26,link:476},{id:"Europe/Isle_of_Man",title:"Isle of Man",winIndex:26,link:476},{id:"Europe/Mariehamn",title:"Mariehamn",winIndex:59,link:471},{id:"Europe/Busingen",title:"Busingen",winIndex:27,link:500},{id:"Europe/Vatican",title:"Vatican",winIndex:27,link:487},{id:"Europe/San_Marino",title:"San Marino",winIndex:27,link:487},{id:"Europe/Vaduz",title:"Vaduz",winIndex:27,link:500},{id:"Arctic/Longyearbyen",title:"Longyearbyen",winIndex:27,link:483},{id:"Europe/Ljubljana",title:"Ljubljana",winIndex:60,link:462},{id:"Europe/Podgorica",title:"Podgorica",winIndex:60,link:462},{id:"Europe/Sarajevo",title:"Sarajevo",winIndex:60,link:462},{id:"Europe/Skopje",title:"Skopje",winIndex:60,link:462},{id:"Europe/Zagreb",title:"Zagreb",winIndex:60,link:462},{id:"Europe/Bratislava",title:"Bratislava",winIndex:60,link:485},{id:"Asia/Istanbul",title:"Istanbul",winIndex:54,link:472},{id:"Pacific/Johnston",title:"Johnston",winIndex:57,link:521},{id:"US/Pacific-New",title:"Pacific-New",winIndex:11,link:276},{id:"America/Aruba",title:"Aruba",winIndex:16,link:240},{id:"America/Lower_Princes",title:"Lower Princes",winIndex:16,link:240},{id:"America/Kralendijk",title:"Kralendijk",winIndex:16,link:240},{id:"America/Anguilla",title:"Anguilla",winIndex:16,link:303},{id:"America/Dominica",title:"Dominica",winIndex:16,link:303},{id:"America/Grenada",title:"Grenada",winIndex:16,link:303},{id:"America/Guadeloupe",title:"Guadeloupe",winIndex:16,link:303},{id:"America/Marigot",title:"Marigot",winIndex:16,link:303},{id:"America/Montserrat",title:"Montserrat",winIndex:16,link:303},{id:"America/St_Barthelemy",title:"St Barthelemy",winIndex:16,link:303},{id:"America/St_Kitts",title:"St Kitts",winIndex:16,link:303},{id:"America/St_Lucia",title:"St Lucia",winIndex:16,link:303},{id:"America/St_Thomas",title:"St Thomas",winIndex:16,link:303},{id:"America/St_Vincent",title:"St Vincent",winIndex:16,link:303},{id:"America/Tortola",title:"Tortola",winIndex:16,link:303},{id:"Africa/Abidjan",title:"Abidjan",winIndex:0,offsets:[-.2688888888888889,0],offsetIndices:"01",untils:"-u9rgl4|Infinity"},{id:"Africa/Accra",title:"Accra",winIndex:0,offsets:[-.014444444444444446,0,.3333333333333333],offsetIndices:"012121212121212121212121212121212121212121212121",untils:"-r507yk|1e3pak|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|Infinity"},{id:"Africa/Algiers",title:"Algiers",winIndex:3,offsets:[.15583333333333332,0,1,2],offsetIndices:"0121212121212121232321212122321212",untils:"-uozn3l|2qx1nl|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|53c00|9idxc0|3i040|51mw0|253uk0|9o2k0|92040|8l3s0|jutc0|4uy840|3rdzw0|46xc00|7x6o0|2xco40|8n180|7x9g0|9d440|kiqg0|9d440|9q2s0|9cyk0|Infinity"},{id:"Africa/Bissau",title:"Bissau",winIndex:0,offsets:[-1.038888888888889,-1,0],offsetIndices:"012",untils:"-u9reg4|wvoyk4|Infinity"},{id:"Africa/Cairo",title:"Cairo",winIndex:40,offsets:[2,3],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-fdls80|40d80|a31g0|7x3w0|a4w40|aqyk0|80ys0|b07w0|7tk40|b07w0|8jhg0|a8fw0|60go40|7el80|awo40|7v980|awqw0|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7tk40|ayd80|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|f9x80|3i040|eluk0|462s0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|b5rw0|7m5g0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|aqvs0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7k580|b5xg0|6u7w0|bvus0|6h980|c8tg0|64ak0|cyqs0|5anw0|1jms0|12t80|1w22s0|25p80|1sw40|2vmk0|Infinity"},{id:"Africa/Casablanca",title:"Casablanca",winIndex:61,offsets:[-.5055555555555555,0,1],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-tblt9g|di7nxg|3huk0|51k40|2znuk0|2dp9g0|776k0|8nt2s0|657w0|3ifxg0|3jp80|va040|4qak0|e1ms0|7pp80|cnms0|3afw0|2xi840|xqqk0|bp56s0|4qak0|e1ms0|45x80|d2g40|51ek0|c8tg0|64ak0|e1sc0|47uo0|1leo0|23xc0|asw00|3lmo0|1qyo0|40g00|7x6o0|4mo00|1stc0|4deo0|7x6o0|3ylc0|1stc0|51hc0|7x6o0|3lmo0|1stc0|5reo0|7k800|2vpc0|25s00|64dc0|7k800|2iqo0|1stc0|6uao0|7x6o0|1stc0|1stc0|779c0|7x6o0|12w00|1stc0|7x6o0|7x6o0|pxc0|1stc0|8n400|9q000|902o0|902o0|9q000|8n400|a2yo0|8a5c0|afxc0|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|afxc0|8a5c0|9q000|Infinity"},{id:"Africa/Ceuta",title:"Ceuta",winIndex:62,offsets:[0,1,2],offsetIndices:"010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-qyiys0|7x3w0|2vt440|8so00|st1c0|8n400|9q000|902o0|a2yo0|902o0|k69g40|657w0|3ifxg0|3jp80|va040|4qak0|e1ms0|7pp80|cnms0|3afw0|2xi840|129us0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Africa/El_Aaiun",title:"El Aaiun",winIndex:61,offsets:[-.88,-1,0,1],offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-isdxk0|m2g0c0|vek0|4qak0|e1ms0|7pp80|cnms0|3afw0|fke5g0|4qak0|e1ms0|45x80|d2g40|51ek0|c8tg0|64ak0|e1sc0|47uo0|1leo0|23xc0|asw00|3lmo0|1qyo0|40g00|7x6o0|4mo00|1stc0|4deo0|7x6o0|3ylc0|1stc0|51hc0|7x6o0|3lmo0|1stc0|5reo0|7k800|2vpc0|25s00|64dc0|7k800|2iqo0|1stc0|6uao0|7x6o0|1stc0|1stc0|779c0|7x6o0|12w00|1stc0|7x6o0|7x6o0|pxc0|1stc0|8n400|9q000|902o0|902o0|9q000|8n400|a2yo0|8a5c0|afxc0|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|afxc0|8a5c0|9q000|Infinity"},{id:"Africa/Johannesburg",title:"Johannesburg",winIndex:2,offsets:[1.5,2,3],offsetIndices:"012121",untils:"-yvtdi0|kn7o60|9cyk0|9d440|9cyk0|Infinity"},{id:"Africa/Khartoum",title:"Khartoum",winIndex:1,offsets:[2.1688888888888886,2,3],offsetIndices:"01212121212121212121212121212121212",untils:"-kcrsow|kixv4w|8l6k0|a4w40|8n180|a6qs0|8n180|a31g0|8ovw0|a16s0|8qqk0|9zc40|8sl80|9xhg0|8wak0|9ts40|8y580|a4w40|8n180|a31g0|8ovw0|a16s0|8sl80|9xhg0|8ufw0|9vms0|8wak0|9ts40|8y580|a4w40|8ovw0|a16s0|8qqk0|7frw40|Infinity"},{id:"Africa/Lagos",title:"Lagos",winIndex:3,offsets:[.22666666666666666,1],offsetIndices:"01",untils:"-q9qbao|Infinity"},{id:"Africa/Maputo",title:"Maputo",winIndex:2,offsets:[2.1722222222222225,2],offsetIndices:"01",untils:"-yvtfd8|Infinity"},{id:"Africa/Monrovia",title:"Monrovia",winIndex:0,offsets:[-.7188888888888889,-.7416666666666667,0],offsetIndices:"012",untils:"-qj6zc4|rqyyqa|Infinity"},{id:"Africa/Nairobi",title:"Nairobi",winIndex:1,offsets:[2.454444444444445,3,2.5,2.75],offsetIndices:"01231",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity"},{id:"Africa/Ndjamena",title:"Ndjamena",winIndex:3,offsets:[1.0033333333333334,1,2],offsetIndices:"0121",untils:"-u9rk4c|zdk5cc|7iak0|Infinity"},{id:"Africa/Tripoli",title:"Tripoli",winIndex:45,offsets:[.8788888888888889,1,2],offsetIndices:"012121212121212121212121212122122",untils:"-q3gfrw|gl6ajw|422c0|xado0|4bbo0|wrpg0|4s580|1kdpg0|c05bw0|4mqs0|9et80|9d440|9et80|9eys0|9et80|9mdg0|95jw0|9io40|9cyk0|99es0|9et80|9eys0|9et80|9d440|9et80|b2840|3cf3w0|9kis0|9et80|7vqyw0|75eo0|asw00|Infinity"},{id:"Africa/Tunis",title:"Tunis",winIndex:3,offsets:[.15583333333333332,1,2],offsetIndices:"0121212121212121212121212121212121",untils:"-uozn3l|enxevl|b5uo0|53c00|u8w00|7x9g0|c8w80|7k800|z3w0|ew40|8bx80|9d440|9nx00|925o0|8l100|gi3440|7k800|b9k00|7vc00|51mw00|5ytc0|9d1c0|9d1c0|b9k00|7thc0|7m0tc0|7tk40|93us0|b5uo0|7k800|b5uo0|7x6o0|asw00|Infinity"},{id:"Africa/Windhoek",title:"Windhoek",winIndex:63,offsets:[1.5,2,3,1],offsetIndices:"012113131313131313131313131313131313131313131313131313131313131313131313131313131313131313131",untils:"-yvtdi0|kn7o60|9cyk0|oj2nw0|23tmo0|7xf00|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|Infinity"},{id:"America/Anchorage",title:"Anchorage",winIndex:55,offsets:[-10,-9,-8],offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-ek1qo0|1tyx80|2e400|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Antigua",title:"Antigua",winIndex:16,link:303},{id:"America/Araguaina",title:"Araguaina",winIndex:64,offsets:[-3.2133333333333334,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212121212121",untils:"-t85j2o|99k8mo|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|2yl440|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|51udg0|64ak0|Infinity"},{id:"America/Argentina/Buenos_Aires",title:"Buenos Aires",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232323232223232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|3fidg0|7thc0|430lc0|3yik0|b5xg0|7k580|Infinity"},{id:"America/Argentina/Catamarca",title:"Catamarca",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232313232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|3fidg0|7thc0|27s800|z9g0|1u93w0|3yik0|Infinity"},{id:"America/Argentina/Cordoba",title:"Cordoba",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232313232223232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|3fidg0|7thc0|430lc0|3yik0|b5xg0|7k580|Infinity"},{id:"America/Argentina/Jujuy",title:"Jujuy",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232312132322232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|c8w80|776k0|ag040|7k2g0|bvus0|776k0|3fidg0|7thc0|430lc0|3yik0|Infinity"},{id:"America/Argentina/La_Rioja",title:"La Rioja",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232323123232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6qik0|3g880|8jbw0|6u7w0|bvus0|776k0|3fidg0|7thc0|27s800|z9g0|1u93w0|3yik0|Infinity"},{id:"America/Argentina/Mendoza",title:"Mendoza",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323231212132221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bktk0|71mk0|bqas0|73h80|bvus0|773s0|3fidg0|7thc0|27bk00|6hes0|1p7mk0|3yik0|Infinity"},{id:"America/Argentina/Rio_Gallegos",title:"Rio Gallegos",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232323232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|3fidg0|7thc0|27s800|z9g0|1u93w0|3yik0|Infinity"},{id:"America/Argentina/Salta",title:"Salta",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232323132322232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|3fidg0|7thc0|430lc0|3yik0|Infinity"},{id:"America/Argentina/San_Juan",title:"San Juan",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232323123232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6qik0|3g880|8jbw0|6u7w0|bvus0|776k0|3fidg0|7thc0|27qdc0|2txg0|1sgak0|3yik0|Infinity"},{id:"America/Argentina/San_Luis",title:"San Luis",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232312122212321212",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|7pp80|b2aw0|71mk0|4qg40|4conw0|7thc0|27qdc0|2txg0|1sgak0|14nw0|2gys0|b5xg0|7k580|b5xg0|Infinity"},{id:"America/Argentina/Tucuman",title:"Tucuman",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"012121212121212121212121212121212121212121232323231323222123232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|3fidg0|7thc0|27s800|mas0|1um2k0|3yik0|b5xg0|7k580|Infinity"},{id:"America/Argentina/Ushuaia",title:"Ushuaia",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232323232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|3fidg0|7thc0|27oio0|12ys0|1u93w0|3yik0|Infinity"},{id:"America/Asuncion",title:"Asuncion",winIndex:65,offsets:[-3.844444444444444,-4,-3],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-jy93zk|ldwofk|s4vw0|s6w40|7tek0|b0dg0|7rjw0|b0dg0|7rjw0|b0dg0|9cyk0|9eys0|9et80|9eys0|9cyk0|9eys0|9cyk0|9eys0|9cyk0|9eys0|9et80|9eys0|9cyk0|9eys0|9cyk0|9eys0|9cyk0|9eys0|9et80|9eys0|9cyk0|ahus0|8a2k0|9eys0|9cyk0|9o840|7k580|b7s40|93p80|9gtg0|7nuk0|b42s0|7lzw0|b5xg0|7tek0|b9ms0|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|7kas0|b5rw0|7x9g0|ast80|a31g0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|776k0|biw40|8zzw0|905g0|9px80|905g0|9px80|9d440|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|Infinity"},{id:"America/Atikokan",title:"Atikokan",winIndex:10,offsets:[-6,-5],offsetIndices:"0101111",untils:"-qzov40|a2vw0|bfxjw0|pmdk0|1tz8c0|2dsw0|Infinity"},{id:"America/Bahia",title:"Bahia",winIndex:66,offsets:[-2.5677777777777777,-3,-2],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121",untils:"-t85kv8|99kaf8|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|4irc40|6u7w0|Infinity"},{id:"America/Bahia_Banderas",title:"Bahia Banderas",winIndex:47,offsets:[-7.016666666666667,-7,-6,-8,-5],offsetIndices:"0121212131212121212121212121212121212142424242424242424242424242424242424242424242424242424242",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|asqg0|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Barbados",title:"Barbados",winIndex:16,offsets:[-3.974722222222222,-4,-3],offsetIndices:"00121212121",untils:"-o0aiaj|46b400|npv1mj|5rbw0|a31g0|8n180|a31g0|8n180|ag040|84ik0|Infinity"},{id:"America/Belem",title:"Belem",winIndex:64,offsets:[-3.232222222222222,-3,-2],offsetIndices:"012121212121212121212121212121",untils:"-t85j0s|99k8ks|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|Infinity"},{id:"America/Belize",title:"Belize",winIndex:67,offsets:[-5.88,-6,-5.5,-5],offsetIndices:"01212121212121212121212121212121212121212121212121213131",untils:"-u52ic0|3edkc0|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|g2t2q0|3e580|4mcys0|2vmk0|Infinity"},{id:"America/Blanc-Sablon",title:"Blanc-Sablon",winIndex:16,offsets:[-4,-3],offsetIndices:"010110",untils:"-qzp0o0|a2vw0|c5jxg0|1tzdw0|2dnc0|Infinity"},{id:"America/Boa_Vista",title:"Boa Vista",winIndex:16,offsets:[-4.044444444444444,-4,-3],offsetIndices:"0121212121212121212121212121212121",untils:"-t85grk|99k93k|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|62xk40|7k580|biw40|cvw0|Infinity"},{id:"America/Bogota",title:"Bogota",winIndex:10,offsets:[-4.937777777777778,-5,-4],offsetIndices:"0121",untils:"-srdoy8|14f1hi8|ha580|Infinity"},{id:"America/Boise",title:"Boise",winIndex:15,offsets:[-8,-7,-6],offsetIndices:"0101012212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0emw0|ast80|7x9g0|ast80|1um840|9s7jw0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|51k40|doik0|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Cambridge_Bay",title:"Cambridge Bay",winIndex:15,offsets:[0,-7,-6,-5],offsetIndices:"0122131212121212121212121212121212121212121212233221212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-q3gdc0|bjeec0|1tz5k0|2dvo0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x6o0|ast80|ct40|7kj40|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Campo_Grande",title:"Campo Grande",winIndex:68,offsets:[-3.641111111111111,-4,-3],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-t85hvw|99ka7w|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|cls40|64ak0|dfes0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|Infinity"
96},{id:"America/Cancun",title:"Cancun",winIndex:47,offsets:[-5.7844444444444445,-6,-5,-4],offsetIndices:"0123232321212121212121212121212121212121212",untils:"-p1u7c0|vauo00|7ggw40|afuk0|8a840|afuk0|8a840|64ak0|4bms0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|51k40|Infinity"},{id:"America/Caracas",title:"Caracas",winIndex:69,offsets:[-4.461111111111111,-4.5,-4],offsetIndices:"01212",untils:"-u7lcxw|rlo83w|meoxm0|4dps00|Infinity"},{id:"America/Cayenne",title:"Cayenne",winIndex:64,offsets:[-3.488888888888889,-4,-3],offsetIndices:"012",untils:"-uj7yb4|tcw6r4|Infinity"},{id:"America/Cayman",title:"Cayman",winIndex:10,link:299},{id:"America/Chicago",title:"Chicago",winIndex:13,offsets:[-6,-5],offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bvus0|776k0|7kas0|b5rw0|9d440|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|7x9g0|dbjw0|8a840|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Chihuahua",title:"Chihuahua",winIndex:46,offsets:[-7.072222222222222,-7,-6,-5],offsetIndices:"0121212323221212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|xes2s0|afuk0|8a840|afuk0|8aaw0|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Costa_Rica",title:"Costa Rica",winIndex:67,offsets:[-5.60361111111111,-6,-5],offsetIndices:"0121212121",untils:"-pjw8fn|ubtl3n|51ek0|doo40|51ek0|5jso40|8drw0|acas0|2xh80|Infinity"},{id:"America/Creston",title:"Creston",winIndex:56,offsets:[-7,-8],offsetIndices:"010",untils:"-rshz80|vbus0|Infinity"},{id:"America/Cuiaba",title:"Cuiaba",winIndex:68,offsets:[-3.738888888888889,-4,-3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-t85hm4|99k9y4|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|w5hg0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|Infinity"},{id:"America/Curacao",title:"Curacao",winIndex:16,offsets:[-4.59638888888889,-4.5,-4],offsetIndices:"012",untils:"-u7lckd|rlo7qd|Infinity"},{id:"America/Danmarkshavn",title:"Danmarkshavn",winIndex:41,offsets:[-1.2444444444444445,-3,-2,0],offsetIndices:"01212121212121212121212121212121213",untils:"-rvusjk|x8nx3k|8zrk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|53hk0|Infinity"},{id:"America/Dawson",title:"Dawson",winIndex:11,offsets:[-9,-8,-7],offsetIndices:"0101011020121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-qzoms0|a2vw0|asys0|882c0|bmiwc0|1tz000|2e180|a7n3w0|9q000|465k00|3e2is0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Dawson_Creek",title:"Dawson Creek",winIndex:56,offsets:[-8,-7],offsetIndices:"0101101010101010101010101010101010101010101010101010101011",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|69uk0|Infinity"},{id:"America/Denver",title:"Denver",winIndex:15,offsets:[-7,-6],offsetIndices:"01010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0epo0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|2vmk0|ataw40|1tz5k0|2dvo0|a7n9g0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Detroit",title:"Detroit",winIndex:14,offsets:[-5.536388888888889,-6,-5,-4],offsetIndices:"01233232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-xx8dyd|5eraud|dyeyk0|1tzb40|2dq40|1c9440|7x3w0|9rlhg0|71mk0|2vcg40|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Edmonton",title:"Edmonton",winIndex:15,offsets:[-7.564444444444445,-7,-6],offsetIndices:"01212121212121221212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-x1yazk|629ink|a2vw0|8n6s0|29ek0|h6lg0|9px80|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|9l0g40|1tz5k0|2dvo0|tj1g0|7x3w0|a80840|9cyk0|s36s0|9cyk0|1b6840|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Eirunepe",title:"Eirunepe",winIndex:10,offsets:[-4.657777777777778,-5,-4],offsetIndices:"0121212121212121212121212121212121",untils:"-t85f28|99ka68|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|2yy2s0|6h980|7hg2s0|2t2t80|Infinity"},{id:"America/El_Salvador",title:"El Salvador",winIndex:67,offsets:[-5.946666666666667,-6,-5],offsetIndices:"012121",untils:"-pkm4tc|ymao5c|7k580|b5xg0|7k580|Infinity"},{id:"America/Fortaleza",title:"Fortaleza",winIndex:64,offsets:[-2.566666666666667,-3,-2],offsetIndices:"0121212121212121212121212121212121212121",untils:"-t85kvc|99kafc|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|puk0|id6s0|6h980|Infinity"},{id:"America/Glace_Bay",title:"Glace Bay",winIndex:36,offsets:[-3.996666666666667,-4,-3],offsetIndices:"012122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-z94kwc|89fk8c|a2vw0|c5jxg0|1tzdw0|2dnc0|3y8g40|7x3w0|9pa5g0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Godthab",title:"Godthab",winIndex:70,offsets:[-3.448888888888889,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rvumf4|x8nqz4|8zrk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"America/Goose_Bay",title:"Goose Bay",winIndex:36,offsets:[-3.5144444444444445,-2.5144444444444445,-3.5,-2.5,-4,-3,-2],offsetIndices:"010232323232323233232323232323232323232323232323232323232324545454545454545454545454545454545454545454546454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454",untils:"-qzp20k|a2vw0|8kjbw0|kzjyk|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|7k580|b5xg0|7k580|b5xg0|1pb260|2dly0|biw40|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|7k580|ag040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|6y2s0|22420|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a2lo|afuk0|8a840|asqg0|7xc80|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8tec|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Grand_Turk",title:"Grand Turk",winIndex:16,offsets:[-5.119722222222222,-5,-4],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212122",untils:"-u85og1|z3brw1|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Guatemala",title:"Guatemala",winIndex:67,offsets:[-6.0344444444444445,-6,-5],offsetIndices:"0121212121",untils:"-qqqskk|ss0akk|4ofw0|4tidg0|6djw0|3wwas0|8n180|7n5ms0|7x3w0|Infinity"},{id:"America/Guayaquil",title:"Guayaquil",winIndex:10,offsets:[-5.233333333333333,-5],offsetIndices:"01",untils:"-kcr84o|Infinity"},{id:"America/Guyana",title:"Guyana",winIndex:16,offsets:[-3.8777777777777778,-3.75,-3,-4],offsetIndices:"01123",untils:"-smcak8|qqnjn8|4sh9c0|81rf90|Infinity"},{id:"America/Halifax",title:"Halifax",winIndex:36,offsets:[-4.24,-4,-3],offsetIndices:"0121212121212121212121212121212121212121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-z94k80|777go0|9et80|st9o0|a2vw0|ssyk0|5rbw0|cv1g0|69uk0|c6ys0|6kyk0|ci2s0|67zw0|ci2s0|6w2k0|bu040|7lzw0|bu040|66580|bu040|7lzw0|bu040|64ak0|cls40|5v180|cv1g0|6j3w0|c6ys0|79180|b42s0|7lzw0|b42s0|7yyk0|bu040|64ak0|dbpg0|66580|cls40|5ed80|bu040|7lzw0|b42s0|7lzw0|cjxg0|66580|bh1g0|7lzw0|b42s0|7lzw0|6uj00|1tzdw0|2dnc0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|1cm2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Havana",title:"Havana",winIndex:14,offsets:[-5.493333333333334,-5,-4],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-n7762o|1icfyo|69uk0|62s040|4ofw0|e1ms0|51ek0|e1ms0|4ofw0|1fhs40|4ofw0|e1ms0|4ofw0|9s9k40|67zw0|cedg0|6h980|9o840|7yyk0|b5xg0|7k580|bvus0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|8a2k0|ag040|8bx80|ae5g0|8drw0|acas0|9cyk0|9d440|9px80|905g0|9px80|9q2s0|7x3w0|8a840|ast80|7x9g0|ast80|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|8a2k0|ag040|8a2k0|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|905g0|a2vw0|905g0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|8n400|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|7x6o0|1cm000|6uao0|bvs00|779c0|bitc0|6uao0|bvs00|779c0|bvs00|779c0|c8qo0|779c0|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|Infinity"},{id:"America/Hermosillo",title:"Hermosillo",winIndex:56,offsets:[-7.397777777777778,-7,-6,-8],offsetIndices:"0121212131212121",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Indiana/Indianapolis",title:"Indianapolis",winIndex:12},{id:"America/Indiana/Knox",title:"Knox",winIndex:13,offsets:[-6,-5],offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101010101010101010111010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|9px80|9d440|9cyk0|9d440|s3180|1twas0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|7j5400|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Marengo",title:"Marengo",winIndex:12,offsets:[-6,-5,-4],offsetIndices:"0101011010101010101010101212121212111212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|2wsas0|7x3w0|1c9440|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|465h80|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4g00|64dc0|clmk0|fvt9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Petersburg",title:"Petersburg",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"01010110101010101010101010101010101010101010101010111011212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|501ek0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|sfzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|eu02o0|asw00|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Tell_City",title:"Tell City",winIndex:13,offsets:[-6,-5,-4],offsetIndices:"01010110101010101010101010101010121211010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|3fidg0|7x3w0|asys0|7x3w0|b5rw0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|2lz980|9cyk0|9d440|9cyk0|ihslg0|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Vevay",title:"Vevay",winIndex:12,offsets:[-6,-5,-4],offsetIndices:"010101101212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|4gyis0|7txx80|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|hfzhg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Vincennes",title:"Vincennes",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"01010110101010101010101010101010121211011212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|3fidg0|7x3w0|asys0|7x3w0|b5rw0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|2lz980|9cyk0|9d440|9cyk0|ihslg0|asw00|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Winamac",title:"Winamac",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"01010110101010101010101010101010101010121211021212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|465h80|9cyk0|9d440|9cyk0|ihslg0|asw00|6udg0|c8l40|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Inuvik",title:"Inuvik",winIndex:15,offsets:[0,-8,-6,-7],offsetIndices:"0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323",untils:"-8ve5c0|6fce80|9q000|71i2w0|ipzw0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Iqaluit",title:"Iqaluit",winIndex:14,offsets:[0,-4,-5,-3,-6],offsetIndices:"01123212121212121212121212121212121212121212142212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-eb6ao0|1l3h80|2dq40|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7xc80|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Jamaica",title:"Jamaica",winIndex:10,offsets:[-5.119722222222222,-5,-4],offsetIndices:"0121212121212121212121",untils:"-u85og1|wbl181|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|Infinity"},{id:"America/Juneau",title:"Juneau",winIndex:55,offsets:[-8,-7,-9],offsetIndices:"01101010101010101010101010001010122020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202",untils:"-ek1w80|1tz2s0|2dyg0|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9d1c0|9d1c0|9cyk0|9d440|9px80|905g0|9px80|1leo0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Kentucky/Louisville",title:"Louisville",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"0101010101101010101010101010101010101121212121212111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|sg5g0|6bp80|a98o40|7x3w0|6w840|1tz8c0|2dsw0|4s580|7tk40|gxc40|1s3bw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|4bh80|3j3xc0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4g00|64dc0|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Kentucky/Monticello",title:"Monticello",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|bs6g40|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/La_Paz",title:"La Paz",winIndex:16,offsets:[-4.543333333333334,-3.5433333333333334,-4],offsetIndices:"012",untils:"-jxzspo|84ik0|Infinity"},{id:"America/Lima",title:"Lima",winIndex:10,offsets:[-5.1433333333333335,-5,-4],offsetIndices:"0121212121212121",untils:"-w25lpo|fcxjlo|4ml80|93us0|9cyk0|9d440|9cyk0|nw16s0|4ml80|e5c40|4ml80|1fr1g0|4ml80|1yiys0|4ml80|Infinity"},{id:"America/Los_Angeles",title:"Los Angeles",winIndex:11,offsets:[-8,-7],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|1a3c40|f2ik0|owdg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"
97},{id:"America/Maceio",title:"Maceio",winIndex:64,offsets:[-2.381111111111111,-3,-2],offsetIndices:"012121212121212121212121212121212121212121",untils:"-t85ldw|99kaxw|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|2yl440|64ak0|1wf1g0|7k580|biw40|puk0|id6s0|6h980|Infinity"},{id:"America/Managua",title:"Managua",winIndex:67,offsets:[-5.753333333333333,-6,-5],offsetIndices:"0121212121212121",untils:"-ijh6oo|ka1i0o|xqqk0|24p6s0|53980|dmtg0|53980|60itw0|dq240|53es0|235h80|4beis0|8zzw0|at4c0|7x140|Infinity"},{id:"America/Manaus",title:"Manaus",winIndex:16,offsets:[-4.001111111111111,-4,-3],offsetIndices:"01212121212121212121212121212121",untils:"-t85gvw|99k97w|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|2yy2s0|6h980|Infinity"},{id:"America/Martinique",title:"Martinique",winIndex:16,offsets:[-4.072222222222222,-4,-3],offsetIndices:"0121",untils:"-umcvcs|zz5x4s|8zzw0|Infinity"},{id:"America/Matamoros",title:"Matamoros",winIndex:13,offsets:[-6.666666666666667,-6,-5],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u7c0|ykt480|ast80|3vppg0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Mazatlan",title:"Mazatlan",winIndex:46,offsets:[-7.094444444444445,-7,-6,-8],offsetIndices:"0121212131212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Menominee",title:"Menominee",winIndex:13,offsets:[-6,-5],offsetIndices:"01010110101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|a7n9g0|9px80|1at9g0|2396k0|9d1c0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Merida",title:"Merida",winIndex:47,offsets:[-5.974444444444444,-6,-5],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u7c0|vauo00|hoyk0|6ys0c0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Mexico_City",title:"Mexico City",winIndex:47,offsets:[-6.61,-7,-6,-5],offsetIndices:"012121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|3knek0|776k0|rf440|5t6k0|1evk40|71mk0|30p1g0|8n180|nufxo0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Moncton",title:"Moncton",winIndex:36,offsets:[-5,-4,-3],offsetIndices:"012121212121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-z94i40|89fhg0|a2vw0|7mqqo0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|dmtg0|64ak0|cao40|6fek0|bkqs0|7iak0|6y5k0|1tzdw0|2dnc0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|s36s0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a2lo|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6uiyc|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Monterrey",title:"Monterrey",winIndex:47,offsets:[-6.687777777777778,-6,-5],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u7c0|ykt480|ast80|3vppg0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Montevideo",title:"Montevideo",winIndex:71,offsets:[-3.7455555555555553,-3.5,-3,-2,-2.5],offsetIndices:"012121212121212121212121213232323232324242423243232323232323232323232323232323232323232",untils:"-px809g|1s8xzg|9czy0|9exe0|9czy0|9exe0|9czy0|3ydyq0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|b5w20|7k6m0|b5w20|7k6m0|b5w20|7x5a0|asxe0|7x5a0|6do20|7vam0|humq0|4mju0|8g9s40|8zzw0|38qs0|2inw0|2nf9g0|8zzw0|9q2s0|aunw0|7ves0|awik0|ar440|9pym0|91yq0|9pym0|91yq0|9pym0|q6mq0|5t6k0|tfc40|erfy0|xdta0|m2is0|62fw0|s6w40|ayd80|3z5s40|4ofw0|dzs40|4ofw0|bvus0|6h980|bvus0|6u7w0|c8tg0|6h980|bvus0|6u7w0|614qs0|9q2s0|a31g0|7x3w0|ag040|8a2k0|asys0|7x3w0|asys0|7x3w0|asys0|8a2k0|ag040|8a2k0|ag040|8a2k0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity"},{id:"America/Montreal",title:"Montreal",winIndex:14,link:326},{id:"America/Nassau",title:"Nassau",winIndex:14,offsets:[-5.158333333333333,-5,-4],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-u6m4c6|r7u7s6|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/New_York",title:"New York",winIndex:14,offsets:[-5,-4],offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0ev80|ast80|7x9g0|ast80|7x9g0|b5rw0|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tzb40|2dq40|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Nipigon",title:"Nipigon",winIndex:14,offsets:[-5,-4],offsetIndices:"010111010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-qzoxw0|a2vw0|bfxjw0|pmdk0|1tzb40|2dq40|ewvus0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Nome",title:"Nome",winIndex:55,offsets:[-11,-10,-9,-8],offsetIndices:"011001010101010101010101010101010122323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-ek1nw0|1tyug0|2e6s0|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l6c0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Noronha",title:"Noronha",winIndex:34,offsets:[-2.161111111111111,-2,-1],offsetIndices:"0121212121212121212121212121212121212121",untils:"-t85lzw|99k8rw|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|cvw0|iq5g0|6h980|Infinity"},{id:"America/North_Dakota/Beulah",title:"Beulah",winIndex:13,offsets:[-7,-6,-5],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101011212121212121212121212121212121212121212121212121212121",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/North_Dakota/Center",title:"Center",winIndex:13,offsets:[-7,-6,-5],offsetIndices:"010101101010101010101010101010101010101010101010101010101011212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a5c0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/North_Dakota/New_Salem",title:"New Salem",winIndex:13,offsets:[-7,-6,-5],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a5c0|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Ojinaga",title:"Ojinaga",winIndex:15,offsets:[-6.961111111111111,-7,-6,-5],offsetIndices:"0121212323221212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|xes2s0|afuk0|8a840|afuk0|8aaw0|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Panama",title:"Panama",winIndex:10,offsets:[-5.326666666666667,-5],offsetIndices:"01",untils:"-w757vc|Infinity"},{id:"America/Pangnirtung",title:"Pangnirtung",winIndex:14,offsets:[0,-4,-3,-2,-5,-6],offsetIndices:"012213121212121212121212121212121212114141414154414141414141414141414141414141414141414141414141414141414141414141414141414",untils:"-pkmlc0|b0ke00|1tzdw0|2dnc0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|asw00|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7xc80|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Paramaribo",title:"Paramaribo",winIndex:64,offsets:[-3.6777777777777776,-3.6811111111111114,-3.6766666666666667,-3.5,-3],offsetIndices:"012334",untils:"-usj4g8|cixc0c|5lydbk|fq7bic|4mkao0|Infinity"},{id:"America/Phoenix",title:"Phoenix",winIndex:56,offsets:[-7,-6],offsetIndices:"01010101010",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|zjedo|4olg0|9et80|bs6lmc|9cyk0|Infinity"},{id:"America/Port_of_Spain",title:"Port of Spain",winIndex:16,offsets:[-4.101111111111111,-4],offsetIndices:"01",untils:"-u6m79w|Infinity"},{id:"America/Port-au-Prince",title:"Port-au-Prince",winIndex:14,offsets:[-4.816666666666666,-5,-4],offsetIndices:"01212121212121212121212121212121212121212121",untils:"-rmk9ac|ylcf6c|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8aaw0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|3vpjw0|ast80|7x9g0|ast80|2stv00|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Porto_Velho",title:"Porto Velho",winIndex:16,offsets:[-4.26,-4,-3],offsetIndices:"012121212121212121212121212121",untils:"-t85g60|99k8i0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|Infinity"},{id:"America/Puerto_Rico",title:"Puerto Rico",winIndex:16,offsets:[-4,-3],offsetIndices:"0110",untils:"-efsnk0|1ppu40|2dnc0|Infinity"},{id:"America/Rainy_River",title:"Rainy River",winIndex:13,offsets:[-6,-5],offsetIndices:"010111010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-qzov40|a2vw0|bfxjw0|pmdk0|1tz8c0|2dsw0|ewvus0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Rankin_Inlet",title:"Rankin Inlet",winIndex:13,offsets:[0,-6,-4,-5],offsetIndices:"012131313131313131313131313131313131313131313331313131313131313131313131313131313131313131313131313131313131313131313131",untils:"-6s8lc0|4c6oo0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Recife",title:"Recife",winIndex:64,offsets:[-2.3266666666666667,-3,-2],offsetIndices:"0121212121212121212121212121212121212121",untils:"-t85ljc|99kb3c|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|cvw0|iq5g0|6h980|Infinity"},{id:"America/Regina",title:"Regina",winIndex:37,offsets:[-6.9766666666666675,-7,-6],offsetIndices:"012121212121212121212121221212121212121212121212121212",untils:"-xkq9yc|6l1hmc|a2vw0|60enw0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|1b6840|9cyk0|9d440|8zzw0|9q2s0|9cyk0|9q2s0|9cyk0|9d440|9cyk0|66gc0|1tz5k0|2dvo0|a31g0|9cyk0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|tj1g0|9cyk0|9d440|Infinity"},{id:"America/Resolute",title:"Resolute",winIndex:13,offsets:[0,-6,-4,-5],offsetIndices:"012131313131313131313131313131313131313131313331313131313331313131313131313131313131313131313131313131313131313131313131",untils:"-bnp9c0|97nco0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Rio_Branco",title:"Rio Branco",winIndex:10,offsets:[-4.52,-5,-4],offsetIndices:"01212121212121212121212121212121",untils:"-t85fg0|99kak0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|2t2t80|Infinity"},{id:"America/Santa_Isabel",title:"Santa Isabel",winIndex:72,link:325},{id:"America/Santarem",title:"Santarem",winIndex:64,offsets:[-3.646666666666667,-4,-3],offsetIndices:"0121212121212121212121212121212",untils:"-t85hvc|99ka7c|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|Infinity"},{id:"America/Santiago",title:"Santiago",winIndex:39,offsets:[-4.712777777777777,-5,-4,-3],offsetIndices:"010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323",untils:"-vauawq|3dlssq|157b7a|f4e0q|49hzba|aye0q|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|534ik0|351g0|229zw0|2gt80|awo40|2mg00|b73400|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|Infinity"},{id:"America/Santo_Domingo",title:"Santo Domingo",winIndex:16,offsets:[-4.666666666666667,-5,-4,-4.5],offsetIndices:"01213131313131212",untils:"-j6hz1c|hiw29c|67zw0|1dy840|62ha0|cnle0|4h2m0|elyq0|47ta0|ei9e0|4bim0|eek20|4dda0|ecpe0|dkmtg0|1stc0|Infinity"},{id:"America/Sao_Paulo",title:"Sao Paulo",winIndex:35,offsets:[-3.1077777777777778,-3,-2],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-t85jd8|99k8x8|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5k02s0|6onw0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|cls40|64ak0|dfes0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|Infinity"},{id:"America/Scoresbysund",title:"Scoresbysund",winIndex:73,offsets:[-1.4644444444444444,-2,-1,0],offsetIndices:"0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-rvurxk|x8ntpk|902o0|9cvs0|9cyk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"America/Sitka",title:"Sitka",winIndex:55,offsets:[-8,-7,-9],offsetIndices:"01101010101010101010101010101010122020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202",untils:"-ek1w80|1tz2s0|2dyg0|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1leo0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/St_Johns",title:"St Johns",winIndex:38,offsets:[-3.5144444444444445,-2.5144444444444445,-3.5,-2.5,-1.5],offsetIndices:"01010101010101010101010101010101010102323232323232323323232323232323232323232323232323232323232323232323232323232323232323232323232323232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-ris3ck|8bx80|ar440|a2vw0|9tjs0|53980|dkys0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|7tmw0|1wfuk|8zzw0|a3480|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|7k580|b5xg0|7k580|b5xg0|1pb260|2dly0|biw40|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|7k580|ag040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a2lo|afuk0|8a840|asqg0|7xc80|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8tec|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Swift_Current",title:"Swift Current",winIndex:37,offsets:[-7.188888888888888,-7,-6],offsetIndices:"012122121212121212121212",untils:"-xkq9d4|6l1h14|a2vw0|c5jxg0|1tz5k0|2dvo0|asys0|8n180|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|3yles0|9cyk0|s36s0|9cyk0|9d440|7x3w0|b5xg0|7k580|5j4lg0|Infinity"
98},{id:"America/Tegucigalpa",title:"Tegucigalpa",winIndex:67,offsets:[-5.814444444444445,-6,-5],offsetIndices:"01212121",untils:"-pfzh6k|yho0ik|7k580|b5xg0|7k580|96x1g0|4qak0|Infinity"},{id:"America/Thule",title:"Thule",winIndex:36,offsets:[-4.585555555555556,-4,-3],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rvuj9g|12yzilg|9cyk0|9d440|9cyk0|9q2s0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Thunder_Bay",title:"Thunder Bay",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"0122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-vbavc0|gr8qs0|1tzb40|2dq40|ctmlg0|9cyk0|9d440|9px80|9d440|9cyk0|s36s0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Tijuana",title:"Tijuana",winIndex:11,offsets:[-7.801111111111111,-7,-8],offsetIndices:"012121211212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-p1u1s0|11jrw0|1sns00|1sgdc0|71s40|9cyk0|5iidg0|1q6700|4lfk0|190g40|eluk0|2r4r00|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|84qys0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Toronto",title:"Toronto",winIndex:14,offsets:[-5,-4],offsetIndices:"01010101010101010101010101010101010101010101011101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-qzoxw0|a2vw0|7yx60|aqzy0|9q8c0|7jzo0|bw0c0|6bp80|cedg0|6h980|c8tg0|6h980|bvus0|776k0|biw40|776k0|biw40|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|xjeo0|1tzb40|2dq40|asys0|7x3w0|ast80|7x3w0|asys0|7x3w0|asys0|b5rw0|7xf00|ast80|7x9g0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Vancouver",title:"Vancouver",winIndex:11,offsets:[-8,-7],offsetIndices:"0101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|asys0|8n180|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Whitehorse",title:"Whitehorse",winIndex:11,offsets:[-9,-8,-7],offsetIndices:"0101011020121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-qzoms0|a2vw0|asys0|882c0|bmiwc0|1tz000|2e180|a7n3w0|9q000|tiyo0|6qp440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Winnipeg",title:"Winnipeg",winIndex:13,offsets:[-6,-5],offsetIndices:"010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0s7c0|7k580|tj700|a2vw0|9ok840|6u7w0|2a5hg0|1tz8c0|2dsw0|biw40|7x3w0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b7s40|7tek0|autg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|7x3w0|1cm2s0|7k580|1cm2s0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Yakutat",title:"Yakutat",winIndex:55,offsets:[-9,-8],offsetIndices:"01101010101010101010101010101010100101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-ek1tg0|1tz000|2e180|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1lbw0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Yellowknife",title:"Yellowknife",winIndex:15,offsets:[0,-7,-6,-5],offsetIndices:"012213121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-i9m2o0|3pk3o0|1tz5k0|2dvo0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Antarctica/Casey",title:"Casey",winIndex:33,offsets:[0,8,11],offsetIndices:"012121",untils:"-irxc0|lag4o0|73bo0|uz1o0|60l80|Infinity"},{id:"Antarctica/Davis",title:"Davis",winIndex:6,offsets:[0,7,5],offsetIndices:"01012121",untils:"-6rmdc0|42jdw0|27wgs0|l8uss0|7eqs0|unmk0|60qs0|Infinity"},{id:"Antarctica/DumontDUrville",title:"DumontDUrville",winIndex:50,offsets:[0,10],offsetIndices:"0101",untils:"-c05eo0|2mks80|2i72g0|Infinity"},{id:"Antarctica/Macquarie",title:"Macquarie",winIndex:48,offsets:[10,11,0],offsetIndices:"0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101011",untils:"-rsj4w0|8zzw0|11wqk0|f4kh40|a6p8g0|9d1c0|asw00|6uao0|bvs00|6uao0|bvs00|779c0|bvs00|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Antarctica/Mawson",title:"Mawson",winIndex:17,offsets:[0,6,5],offsetIndices:"012",untils:"-8aelc0|t22y80|Infinity"},{id:"Antarctica/Palmer",title:"Palmer",winIndex:39,offsets:[0,-3,-4,-2],offsetIndices:"0121212121213121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-2lxhc0|31ho0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|46b6s0|8c2s0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|Infinity"},{id:"Antarctica/Rothera",title:"Rothera",winIndex:64,offsets:[0,-3],offsetIndices:"01",untils:"3lxs00|Infinity"},{id:"Antarctica/Syowa",title:"Syowa",winIndex:1,offsets:[0,3],offsetIndices:"01",untils:"-6qsqo0|Infinity"},{id:"Antarctica/Vostok",title:"Vostok",winIndex:21,offsets:[0,6],offsetIndices:"01",untils:"-6aaao0|Infinity"},{id:"Asia/Almaty",title:"Almaty",winIndex:21,offsets:[5.13,5,6,7],offsetIndices:"012323232323232323232321232323232323232323232323232",untils:"-nu1a90|37a0d0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|Infinity"},{id:"Asia/Amman",title:"Amman",winIndex:74,offsets:[2.395555555555555,2,3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-kcrtbk|m566fk|60l80|awo40|7v980|awo40|7v980|ayis0|9gnw0|9b9g0|7v980|autg0|7v980|3e6840|9et80|9io40|9cyk0|9d440|9cyk0|9d440|9px80|ayis0|7rjw0|ag040|8a2k0|9zc40|8drw0|a31g0|8zzw0|9d440|9cyk0|9d440|8n180|ag040|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|epmo0|4deo0|9o5c0|9ew00|9b6o0|9ew00|9d1c0|9d1c0|9d1c0|asw00|7x6o0|afxc0|8n400|9d1c0|9d1c0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|wel80|51k40|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|Infinity"},{id:"Asia/Anadyr",title:"Anadyr",winIndex:75,offsets:[11.83222222222222,12,13,14,11],offsetIndices:"01232212121212121212121141212121212121212121212121212121212121141",untils:"-nu1sv8|379zj8|qi27w0|9et80|9d440|9ew00|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5xg0|7k800|Infinity"},{id:"Asia/Aqtau",title:"Aqtau",winIndex:17,offsets:[3.351111111111111,4,5,6],offsetIndices:"012323232323232323232123232312121212121212121212",untils:"-nu15b4|379y74|qrh3w0|iruk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity"},{id:"Asia/Aqtobe",title:"Aqtobe",winIndex:17,offsets:[3.811111111111111,4,5,6],offsetIndices:"0123232323232323232321232323232323232323232323232",untils:"-nu16l4|379zh4|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|Infinity"},{id:"Asia/Ashgabat",title:"Ashgabat",winIndex:17,offsets:[3.8922222222222222,4,5,6],offsetIndices:"012323232323232323232322112",untils:"-nu16t8|379zp8|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|1fp40|4bpk0|Infinity"},{id:"Asia/Baghdad",title:"Baghdad",winIndex:76,offsets:[2.96,3,4],offsetIndices:"012121212121212121212121212121212121212121212121212121",untils:"-r50g80|xkn3w0|7v980|9b9g0|9gnw0|9eys0|9et80|9d440|9b9g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9f1k0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|Infinity"},{id:"Asia/Baku",title:"Baku",winIndex:77,offsets:[3.3233333333333333,3,4,5],offsetIndices:"01232323232323232323232221223232323232323232323232323232323232323232",untils:"-nu158c|h4tkwc|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|7tbs0|1jsc0|9d1c0|9cq80|1twoo0|asw00|7x3w0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Asia/Bangkok",title:"Bangkok",winIndex:6,offsets:[6.7011111111111115,7],offsetIndices:"01",untils:"-pysda4|Infinity"},{id:"Asia/Beirut",title:"Beirut",winIndex:78,offsets:[2,3],offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-pyzew0|aunw0|88dg0|9et80|8yas0|a2vw0|a31g0|7k580|hjqo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|5lhs40|56yk0|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|autg0|7v980|2wxus0|8n180|a4w40|8n180|a4w40|8n180|a4w40|8n180|bs5g0|71mk0|alk40|86d80|a4w40|8n180|a4w40|8n180|a6qs0|80t80|905g0|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|Infinity"},{id:"Asia/Bishkek",title:"Bishkek",winIndex:21,offsets:[4.973333333333333,5,6,7],offsetIndices:"01232323232323232323232212121212121212121212121212122",untils:"-nu19tc|379zxc|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|7vc00|bkl80|8n180|a31g0|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9db20|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|73aa0|Infinity"},{id:"Asia/Brunei",title:"Brunei",winIndex:24,offsets:[7.661111111111111,7.5,8],offsetIndices:"012",untils:"-mvofy4|3khxs4|Infinity"},{id:"Asia/Chita",title:"Chita",winIndex:79,offsets:[7.564444444444445,8,9,10],offsetIndices:"0123232323232323232323221232323232323232323232323232323232323232312",untils:"-q4cfog|5hkxgg|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnew0|Infinity"},{id:"Asia/Choibalsan",title:"Choibalsan",winIndex:25,offsets:[7.633333333333334,7,8,10,9],offsetIndices:"0123434343434343434343434343434343434343434343424242424242424242424242424242424242424242424242",untils:"-xmct7c|11sndrc|2qk2k0|9eqg0|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|s6qk0|3nc0c0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|Infinity"},{id:"Asia/Colombo",title:"Colombo",winIndex:80,offsets:[5.325555555555556,5.5,6,6.5],offsetIndices:"01231321",untils:"-xehask|isle6k|cajy0|1mp2u0|qetjw0|7x5a0|4xvqq0|Infinity"},{id:"Asia/Damascus",title:"Damascus",winIndex:81,offsets:[2.42,2,3],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-q3gk20|5k6q0|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|k4hk40|7yyk0|awo40|7tek0|b0dg0|7v980|awo40|7tek0|alk40|887w0|awo40|7v980|ayis0|7v980|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|6bp80|cg840|6bp80|2eh1g0|8zzw0|9ts40|8zzw0|pvk40|c33w0|7cw40|cjrw0|6zxg0|btuk0|7rpg0|9gnw0|9d440|9cyk0|9et80|9et80|9rxg0|91uk0|92040|9et80|9o840|9et80|9d440|9et80|9eys0|9et80|9b9g0|9gnw0|99es0|9iik0|9d440|9et80|9eys0|9et80|9d440|9et80|9d440|9et80|9d440|9et80|9eys0|9et80|9d440|9et80|9d440|8y580|9q2s0|b5rw0|7x9g0|aunw0|7ig40|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|Infinity"},{id:"Asia/Dhaka",title:"Dhaka",winIndex:20,offsets:[5.888888888888888,6.5,5.5,6,7],offsetIndices:"01213343",untils:"-eqtpow|bmgyw|5lxg0|4qknw0|a63o20|jyevw0|a1400|Infinity"},{id:"Asia/Dili",title:"Dili",winIndex:43,offsets:[8.372222222222222,8,9],offsetIndices:"012212",untils:"-u9s4l8|fqcu98|1vc2o0|fz3pc0|cpz440|Infinity"},{id:"Asia/Dubai",title:"Dubai",winIndex:7,offsets:[3.6866666666666665,4],offsetIndices:"01",untils:"-q3gnko|Infinity"},{id:"Asia/Dushanbe",title:"Dushanbe",winIndex:17,offsets:[4.586666666666667,5,6,7],offsetIndices:"0123232323232323232323221",untils:"-nu18qo|379yuo|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|8c2s0|Infinity"},{id:"Asia/Ho_Chi_Minh",title:"Ho Chi Minh",winIndex:6,offsets:[7.111111111111112,7.108333333333333,7,8,9],offsetIndices:"0123423232",untils:"-x56934|2isioa|gj25iu|15ct80|8so00|tmtk0|4azjw0|2cmao0|8285c0|Infinity"},{id:"Asia/Hong_Kong",title:"Hong Kong",winIndex:19,offsets:[7.611666666666666,8,9],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121",untils:"-y0i2h6|j09kn6|9cyk0|4f2e0|1xyfw0|b6760|bkl80|6udg0|df980|6dpg0|9cyk0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|adzw0|8c2s0|ast80|77c40|biqk0|77c40|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|6udg0|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|8n6s0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9cyk0|1c9440|8a2k0|Infinity"},{id:"Asia/Hovd",title:"Hovd",winIndex:6,offsets:[6.11,6,7,8],offsetIndices:"012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-xmcoz0|11sncb0|2qk2k0|9et80|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|4fio40|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|Infinity"},{id:"Asia/Irkutsk",title:"Irkutsk",winIndex:82,offsets:[6.951388888888888,7,8,9],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-q28gn5|5fh175|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Jakarta",title:"Jakarta",winIndex:6,offsets:[7.12,7.333333333333333,7.5,9,8,7],offsetIndices:"01232425",untils:"-o0bdpc|4lzxc0|4wdzjc|1tu960|1cx860|11jta0|74uc20|Infinity"},{id:"Asia/Jayapura",title:"Jayapura",winIndex:43,offsets:[9.379999999999999,9,9.5],offsetIndices:"0121",untils:"-jebm20|66bqe0|a37vy0|Infinity"},{id:"Asia/Jerusalem",title:"Jerusalem",winIndex:23,offsets:[2.344444444444444,2,3,4],offsetIndices:"01212121212132121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r50eig|bp54yg|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|t9s40|56vs0|35700|9b3w0|9gtg0|8jbw0|7tmw0|a6ig0|biyw0|8a5c0|9d1c0|902o0|7x6o0|e1eg0|4ofw0|dzxo0|4q500|doo40|64iw0|auqo0|7i500|8rfms0|51ek0|9q2s0|6u7w0|50rhg0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|9zc40|9iik0|9kis0|93p80|9mdg0|8qqk0|apf00|7x3w0|biw40|8zx40|9io40|8n180|9kis0|9vh80|8ulg0|9px80|9mdg0|8n180|9tuw0|9tmk0|8wg40|9gnw0|99es0|8qqk0|9zc40|9tmk0|8wg40|9gnw0|99es0|8qqk0|acas0|9gnw0|99es0|93p80|9mdg0|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|Infinity"},{id:"Asia/Kabul",title:"Kabul",winIndex:83,offsets:[4,4.5],offsetIndices:"01",untils:"-d1pkg0|Infinity"},{id:"Asia/Kamchatka",title:"Kamchatka",winIndex:75,offsets:[10.576666666666666,11,12,13],offsetIndices:"01232323232323232323232212323232323232323232323232323232323232212",untils:"-olrupo|3z045o|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5xg0|7k800|Infinity"},{id:"Asia/Karachi",title:"Karachi",winIndex:84,offsets:[4.47,5.5,6.5,5,6],offsetIndices:"012133434343",untils:"-wvpb30|im3zt0|1mn180|33xpg0|a63o20|g72qo0|9cyk0|2y85g0|7v980|8hms0|aaak0|Infinity"},{id:"Asia/Kathmandu",title:"Kathmandu",winIndex:22,offsets:[5.687777777777778,5.5,5.75],offsetIndices:"012",untils:"-q3gt4s|yg2lus|Infinity"},{id:"Asia/Khandyga",title:"Khandyga",winIndex:79,offsets:[9.036944444444446,8,9,10,11],offsetIndices:"01232323232323232323232212323232323232323232323232343434343434343432",untils:"-q4cjrp|5hl1jp|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|3fx40|4h6s0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|8ql00|1mlho0|Infinity"},{id:"Asia/Kolkata",title:"Kolkata",winIndex:18,offsets:[5.888888888888888,6.5,5.5],offsetIndices:"01212",untils:"-eqtpow|bmgyw|5lxg0|1mn180|Infinity"},{id:"Asia/Krasnoyarsk",title:"Krasnoyarsk",winIndex:85,offsets:[6.190555555555556,6,7,8],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-q37l72|5gg8j2|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Kuala_Lumpur",title:"Kuala Lumpur",winIndex:24,offsets:[6.923611111111112,7,7.333333333333333,7.5,9,8],offsetIndices:"01223435",untils:"-xphpwd|eeb94d|1kbr2o|2yhc00|8n3jc|1v2p60|iy3o60|Infinity"},{id:"Asia/Kuching",title:"Kuching",winIndex:24,offsets:[7.355555555555555,7.5,8,8.333333333333334,9],offsetIndices:"01232323232323232422",untils:"-mvof3k|3khwxk|1epvy0|4ohqo|e5a9c|4ohqo|e3flc|4ohqo|e3flc|4ohqo|e3flc|4ohqo|e5a9c|4ohqo|e3flc|4ohqo|3ajlc|1v2qk0|iy3ms0|Infinity"},{id:"Asia/Macau",title:"Macau",winIndex:19,offsets:[7.572222222222222,8,9],offsetIndices:"0121212121212121212121212121212121212121211",untils:"-u9s2d8|pon9v8|bvp80|6udg0|bvp80|6u3q0|bvyy0|77c40|biqk0|772e0|biqk0|8ngi0|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9cue0|9cyk0|9d440|9px80|9d440|9d8a0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9cue0|9cyk0|9d440|9px80|9d440|9cyk0|a04w40|Infinity"},{id:"Asia/Magadan",title:"Magadan",winIndex:75,offsets:[10.053333333333335,10,11,12],offsetIndices:"0123232323232323232323221232323232323232323232323232323232323232312",untils:"-nu1nxc|37a05c|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|s39k0|Infinity"},{id:"Asia/Makassar",title:"Makassar",winIndex:24,offsets:[7.96,8,9],offsetIndices:"00121",untils:"-q3gzg0|6p5hc0|4u87w0|1w02k0|Infinity"},{id:"Asia/Manila",title:"Manila",winIndex:24,offsets:[8,9],offsetIndices:"010101010",untils:"-hb5y80|4qak0|2qidg0|1b2d80|4xf440|442k0|cdqdg0|9et80|Infinity"},{id:"Asia/Nicosia",title:"Nicosia",winIndex:4,offsets:[2.2244444444444444,2,3],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p4bq6g|rvhxyg|9cyk0|b42s0|7nuk0|8yas0|8zzw0|9q2s0|9et80|9b9g0|9cyk0|9q2s0|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|at4c0|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Asia/Novokuznetsk",title:"Novokuznetsk",winIndex:86,offsets:[5.8133333333333335,6,7,8],offsetIndices:"012323232323232323232322123232323232323232323232323232323232322122",untils:"-nu36tc|37bu5c|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5xg0|7k800|1vbzw0|Infinity"
99},{id:"Asia/Novosibirsk",title:"Novosibirsk",winIndex:86,offsets:[5.527777777777778,6,7,8],offsetIndices:"0123232323232323232323221232321212121212121212121212121212121212121",untils:"-q4do0s|5hmbcs|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|2vh00|6hn40|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Omsk",title:"Omsk",winIndex:86,offsets:[4.891666666666667,5,6,7],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-q5xmx6|5j6d16|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Oral",title:"Oral",winIndex:17,offsets:[3.4233333333333333,4,5,6],offsetIndices:"01232323232323232121212121212121212121212121212",untils:"-nu15ic|379yec|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|9d1c0|9d1c0|5reo0|cyo00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity"},{id:"Asia/Pontianak",title:"Pontianak",winIndex:6,offsets:[7.288888888888889,7.5,9,8,7],offsetIndices:"001213134",untils:"-w6piww|cse2o0|4tnu2w|1wkei0|1cx860|11jta0|74uc20|cixam0|Infinity"},{id:"Asia/Pyongyang",title:"Pyongyang",winIndex:53,offsets:[8.383333333333333,8.5,9],offsetIndices:"012221",untils:"-w895yc|1yh10c|dfsmm0|44cqo0|10ipmo0|Infinity"},{id:"Asia/Qatar",title:"Qatar",winIndex:5,offsets:[3.4355555555555553,4,3],offsetIndices:"012",untils:"-q3gmvk|rctnrk|Infinity"},{id:"Asia/Qyzylorda",title:"Qyzylorda",winIndex:21,offsets:[4.364444444444445,4,5,6],offsetIndices:"0123232323232323232323232323232323232323232323",untils:"-nu184g|37a10g|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|ohhc0|cyo00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity"},{id:"Asia/Rangoon",title:"Rangoon",winIndex:87,offsets:[6.411111111111111,6.5,9],offsetIndices:"0121",untils:"-q3gv54|bnjp34|1kh520|Infinity"},{id:"Asia/Riyadh",title:"Riyadh",winIndex:5,offsets:[3.1144444444444446,3],offsetIndices:"01",untils:"-bwgbbg|Infinity"},{id:"Asia/Sakhalin",title:"Sakhalin",winIndex:88,offsets:[9.513333333333332,9,11,12,10],offsetIndices:"01123232323232323232323224232323232322424242424242424242424242424242",untils:"-xl87rc|gr8pfc|44elc0|ikvh40|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asys0|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnc40|Infinity"},{id:"Asia/Samarkand",title:"Samarkand",winIndex:17,offsets:[4.464722222222222,4,5,6],offsetIndices:"01233323232323232323232332",untils:"-nu18eh|37a1ah|qi27w0|9et80|9d1c0|9ew00|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|7wyc0|1g300|Infinity"},{id:"Asia/Seoul",title:"Seoul",winIndex:53,offsets:[8.464444444444444,8.5,9,9.5,10],offsetIndices:"01222131313131313124242",untils:"-w8966g|1yh18g|dfsmm0|454io0|4gadc0|l3aq0|6j3w0|d2g40|6u7w0|b5xg0|776k0|biw40|776k0|biw40|776k0|biw40|776k0|grs40|dfqxi0|7x6o0|asw00|7x6o0|Infinity"},{id:"Asia/Shanghai",title:"Shanghai",winIndex:19,offsets:[8,9],offsetIndices:"01010101010101010",untils:"-ffs0w0|66580|8jhg0|a8fw0|n9rc40|6u7w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity"},{id:"Asia/Singapore",title:"Singapore",winIndex:24,offsets:[6.923611111111112,7,7.333333333333333,7.5,9,8],offsetIndices:"012234335",untils:"-xphpwd|eeb94d|1kbr2o|2yhc00|8n3jc|1v2p60|ae0xi0|8k2qo0|Infinity"},{id:"Asia/Srednekolymsk",title:"Srednekolymsk",winIndex:75,offsets:[10.247777777777777,10,11,12],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-nu1ogs|37a0os|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Taipei",title:"Taipei",winIndex:52,offsets:[8,9],offsetIndices:"01010101010101010101010101010101010101010",untils:"-gtzfk0|45slc0|c51c0|75bw0|a31g0|aaak0|9d440|7v980|awo40|7v980|awo40|7v980|awo40|7v980|7tk40|clmk0|7rpg0|b07w0|7rpg0|b07w0|7rpg0|9et80|9eys0|9et80|9d440|9et80|9d440|9et80|9d440|9et80|cjxg0|69uk0|ci2s0|69uk0|6its40|9et80|9d440|9et80|1yf9g0|4qak0|Infinity"},{id:"Asia/Tashkent",title:"Tashkent",winIndex:17,offsets:[4.619722222222222,5,6,7],offsetIndices:"01232323232323232323232221",untils:"-nu18tz|379yxz|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|7x140|1g300|Infinity"},{id:"Asia/Tbilisi",title:"Tbilisi",winIndex:89,offsets:[2.986388888888889,3,4,5],offsetIndices:"0123232323232323232323222121212232323232323232323212",untils:"-nu14an|h4tjyn|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|gig0|8wlo0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d1c0|9cyk0|9q2s0|tivw0|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|4ofw0|6hn40|7k800|Infinity"},{id:"Asia/Tehran",title:"Tehran",winIndex:42,offsets:[3.428888888888889,3.5,4,5,4.5],offsetIndices:"00123214141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141",untils:"-s6m6uw|fnolc0|gm3h4w|777y0|b07w0|3pes0|42c20|9cyk0|9gtg0|9kd80|5ja5g0|7avw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|1av440|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|Infinity"},{id:"Asia/Thimphu",title:"Thimphu",winIndex:20,offsets:[5.9766666666666675,5.5,6],offsetIndices:"012",untils:"-bojclo|kxymno|Infinity"},{id:"Asia/Tokyo",title:"Tokyo",winIndex:43,offsets:[9,10],offsetIndices:"0010101010",untils:"-gtzic0|5ivew0|6sd80|ahus0|887w0|cao40|6fek0|cao40|6fek0|Infinity"},{id:"Asia/Ulaanbaatar",title:"Ulaanbaatar",winIndex:25,offsets:[7.125555555555556,7,8,9],offsetIndices:"012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-xmcrsk|11sncck|2qk2k0|9et80|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|4fio40|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|Infinity"},{id:"Asia/Urumqi",title:"Urumqi",winIndex:21,offsets:[5.838888888888889,6],offsetIndices:"01",untils:"-lx5pjw|Infinity"},{id:"Asia/Ust-Nera",title:"Ust-Nera",winIndex:88,offsets:[9.548333333333334,8,9,12,11,10],offsetIndices:"0123434343434343434343445434343434343434343434343434343434343434345",untils:"-q4cl6u|5hl2yu|qi27w0|9eno0|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|8ql00|1mlho0|Infinity"},{id:"Asia/Vladivostok",title:"Vladivostok",winIndex:88,offsets:[8.791944444444445,9,10,11],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-oligf7|3yqvf7|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Yakutsk",title:"Yakutsk",winIndex:79,offsets:[8.649444444444445,8,9,10],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-q4cioy|5hl0gy|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Yekaterinburg",title:"Yekaterinburg",winIndex:90,offsets:[4.0425,3.751388888888889,4,5,6],offsetIndices:"0123434343434343434343433234343434343434343434343434343434343434343",untils:"-rx5hw9|1kybx4|5pfyv5|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Yerevan",title:"Yerevan",winIndex:91,offsets:[2.966666666666667,3,4,5],offsetIndices:"0123232323232323232323222121212122323232323232323232323232323232",untils:"-nu148o|h4tjwo|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|91rs0|bcc0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|sfzw0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|Infinity"},{id:"Atlantic/Azores",title:"Azores",winIndex:73,offsets:[-1.9088888888888889,-2,-1,0],offsetIndices:"01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323233323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-u9rc14|2bug54|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5qbjo0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9cyk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Atlantic/Bermuda",title:"Bermuda",winIndex:36,offsets:[-4.321666666666667,-4,-3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-kvj2fu|n4pr3u|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Atlantic/Canary",title:"Canary",winIndex:26,offsets:[-1.0266666666666666,-1,0,1],offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-oytbtc|ctvupc|hhq7s0|905g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Atlantic/Cape_Verde",title:"Cape Verde",winIndex:92,offsets:[-1.5677777777777777,-2,-1],offsetIndices:"01212",untils:"-wvoub8|im43v8|1mn180|fpqwc0|Infinity"},{id:"Atlantic/Faroe",title:"Faroe",winIndex:26,offsets:[-.45111111111111113,0,1],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-wcehew|127keuw|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Atlantic/Madeira",title:"Madeira",winIndex:26,offsets:[-1.1266666666666665,-1,0,1],offsetIndices:"01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-u9re7c|2bufjc|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5qbjo0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Atlantic/Reykjavik",title:"Reykjavik",winIndex:0,offsets:[-1.4666666666666666,-1,0],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212",untils:"-wcwx9c|4rpd9c|ci2s0|69uk0|du840|4xp80|du840|p7bw0|4w040|9bdzw0|9d6w0|64g40|cyl80|64dc0|clpc0|6hc00|bvs00|6uao0|bvs00|6uao0|bvs00|6uao0|c8qo0|6hc00|c8qo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|Infinity"},{id:"Atlantic/South_Georgia",title:"South Georgia",winIndex:34,offsets:[-2],offsetIndices:"0",untils:"Infinity"},{id:"Atlantic/Stanley",title:"Stanley",winIndex:64,offsets:[-3.856666666666667,-4,-3,-2],offsetIndices:"0121212121212123232212121212121212121212121212121212121212121212121212",untils:"-u63pac|dbvxqc|8zzw0|9q2s0|8zzw0|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|4xp80|l1pus0|7k580|b5rw0|77c40|biqk0|77c40|b5uo0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|biqk0|77c40|biqk0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|biqk0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5xg0|77c40|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|77c40|biqk0|77c40|biqk0|77c40|Infinity"},{id:"Australia/Adelaide",title:"Adelaide",winIndex:31,offsets:[9.5,10.5],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|7k800|b5uo0|6uao0|c8qo0|779c0|bitc0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Brisbane",title:"Brisbane",winIndex:30,offsets:[10,11],offsetIndices:"01010101010101010",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|97zuo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|Infinity"},{id:"Australia/Broken_Hill",title:"Broken Hill",winIndex:31,offsets:[9.5,10.5],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Currie",title:"Currie",winIndex:32,offsets:[10,11],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rsj4w0|8zzw0|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Darwin",title:"Darwin",winIndex:29,offsets:[9.5,10.5],offsetIndices:"010101010",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|Infinity"},{id:"Australia/Hobart",title:"Hobart",winIndex:32,offsets:[10,11],offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rsj4w0|8zzw0|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|c9tms0|9d1c0|asw00|6uao0|bvs00|6uao0|bvs00|779c0|bvs00|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Lindeman",title:"Lindeman",winIndex:30,offsets:[10,11],offsetIndices:"010101010101010101010",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|97zuo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|Infinity"},{id:"Australia/Melbourne",title:"Melbourne",winIndex:28,offsets:[10,11],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|b5uo0|7x6o0|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Perth",title:"Perth",winIndex:33,offsets:[8,9],offsetIndices:"0101010101010101010",untils:"-rnsric|49s2c|cxfms0|4h180|9d440|9cyk0|ghf1g0|6hc00|4ir9c0|6hc00|40r400|5eg00|7p9hc0|5reo0|b5uo0|7x6o0|asw00|7x6o0|Infinity"},{id:"Australia/Sydney",title:"Sydney",winIndex:28,offsets:[10,11],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"CST6CDT",title:"CST6CDT",winIndex:13,offsets:[-6,-5],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"EST5EDT",title:"EST5EDT",winIndex:14,offsets:[-5,-4],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0ev80|ast80|7x9g0|ast80|bmtus0|1tzb40|2dq40|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Etc/GMT",title:"GMT",winIndex:41,link:150},{id:"Etc/GMT+1",title:"GMT+1",winIndex:92,offsets:[-1],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+10",title:"GMT+10",winIndex:57,offsets:[-10],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+11",title:"GMT+11",winIndex:49,offsets:[-11],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+12",title:"GMT+12",winIndex:93,offsets:[-12],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+2",title:"GMT+2",winIndex:34,offsets:[-2],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+3",title:"GMT+3",winIndex:64,offsets:[-3],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+4",title:"GMT+4",winIndex:16,offsets:[-4],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+5",title:"GMT+5",winIndex:10,offsets:[-5],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+6",title:"GMT+6",winIndex:67,offsets:[-6],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+7",title:"GMT+7",winIndex:56,offsets:[-7],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-1",title:"GMT-1",winIndex:3,offsets:[1],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-10",title:"GMT-10",winIndex:50,offsets:[10],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-11",title:"GMT-11",winIndex:48,offsets:[11],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-12",title:"GMT-12",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-13",title:"GMT-13",winIndex:94,offsets:[13],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-14",title:"GMT-14",winIndex:95,offsets:[14],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-2",title:"GMT-2",winIndex:2,offsets:[2],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-3",title:"GMT-3",winIndex:1,offsets:[3],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-4",title:"GMT-4",winIndex:7,offsets:[4],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-5",title:"GMT-5",winIndex:17,offsets:[5],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-6",title:"GMT-6",winIndex:21,offsets:[6],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-7",title:"GMT-7",winIndex:6,offsets:[7],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-8",title:"GMT-8",winIndex:24,offsets:[8],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-9",title:"GMT-9",winIndex:43,offsets:[9],offsetIndices:"0",untils:"Infinity"},{id:"Etc/UCT",title:"UCT",winIndex:41,offsets:[0],offsetIndices:"0",untils:"Infinity"},{id:"Etc/UTC",title:"UTC",winIndex:41,offsets:[0],offsetIndices:"0",untils:"Infinity"},{id:"Europe/Amsterdam",title:"Amsterdam",winIndex:27,offsets:[.3255555555555556,1.3255555555555556,1.3333333333333333,.3333333333333333,2,1],offsetIndices:"010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545",untils:"-s0dvkk|7v980|a51o0|7x6o0|a2yo0|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9b6o0|a2yo0|c51c0|6l1c0|902o0|9q000|ci000|682o0|bgyo0|79400|bitc0|779c0|bmio0|7gio0|bbeo0|7eo00|bd9c0|7ctc0|bf400|7ayo0|bvs00|6uao0|bko00|7idc0|b9k00|7gio0|bbeo0|7eo00|bf400|7ayo0|btxc0|21uc0|4uaz8|bitc0|779c0|bko00|7idc0|bd3s0|1aarpc|7k800|9q000|9d1c0|9d1c0|9d1c0|8l9c0|ggp1c0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"
100},{id:"Europe/Andorra",title:"Andorra",winIndex:27,offsets:[0,1,2],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-c4xmo0|k3ctg0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Athens",title:"Athens",winIndex:4,offsets:[1.581111111111111,2,3,1],offsetIndices:"012121313121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rvv0cg|8bjasg|2vmk0|4hiw40|16ik0|scog0|7lx40|9o2k0|9eys0|4atzw0|6djw0|bplus0|bq800|71uw0|9d1c0|902o0|91xc0|9o5c0|905g0|9qgo0|9akg0|9iik0|99980|9dcg0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Belgrade",title:"Belgrade",winIndex:60,offsets:[1,2],offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Berlin",title:"Berlin",winIndex:27,offsets:[1,2,3],offsetIndices:"01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|2o7w0|6bs00|2txg0|7k800|91xc0|9b9g0|1sqk0|2inw0|51k40|a2yo0|8n400|9q000|902o0|fx91c0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Brussels",title:"Brussels",winIndex:62,offsets:[0,1,2],offsetIndices:"0121212101010101010101010101010101010101010101010101212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-ss5uo0|rrx80|7vc00|a4yw0|7x6o0|asw00|7x6o0|2wh40|5omo0|b5uo0|6uao0|cyo00|7ayo0|bko00|7rmo0|a2yo0|a2yo0|8n400|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|90b00|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|4deo0|1a36k0|7k800|9q000|9d1c0|8l9c0|a4tc0|8l9c0|clpc0|79400|fwu800|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Bucharest",title:"Bucharest",winIndex:4,offsets:[1.74,2,3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-k29zi0|fj8m0|6w5c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|kp0dc0|6h980|9q000|905g0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9cvs0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9cyk0|9d440|9cyk0|9q2s0|ast80|7xhs0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Budapest",title:"Budapest",winIndex:60,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0e080|7ves0|a4yw0|7x6o0|a31g0|8n180|autg0|bgvw0|b5jeg0|th9k0|7k800|9q000|9d1c0|9d1c0|awd00|9ew00|7q0c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|a4tc0|9q000|1va2g0|6u7w0|bxpg0|6u7w0|cjxg0|64ak0|cluw0|64g40|br3ek0|905g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Chisinau",title:"Chisinau",winIndex:4,offsets:[1.9166666666666667,1.74,2,3,1,4],offsetIndices:"012323232323232323232424235353535353535353535323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-r2p1bo|70f1to|fj8m0|6w5c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|geqo0|ha580|oc8g0|7k800|9q000|9d1c0|7cl00|j3pbw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|25p80|7kdk0|9d1c0|9d1c0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|ast80|7xf00|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Copenhagen",title:"Copenhagen",winIndex:62,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-rzo2w0|75bw0|cbs2w0|1aco80|7k800|9q000|9d1c0|9d1c0|9d1c0|6y000|dbmo0|6bs00|clpc0|51hc0|e1k00|4oio0|giutc0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Dublin",title:"Dublin",winIndex:26,offsets:[-.42250000000000004,.5775,0,1],offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-rzcmlr|6uao0|9pytr|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|3g8580|8a840|bvp80|8n6s0|a2yo0|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Gibraltar",title:"Gibraltar",winIndex:27,offsets:[0,1,2],offsetIndices:"010101010101010101010101010101010101010101010101012121212121010121010101010101010101012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|d0tp80|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Helsinki",title:"Helsinki",winIndex:59,offsets:[1.6636111111111112,2,3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-peghyd|ax3tqd|9gqo0|k31s80|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Istanbul",title:"Istanbul",winIndex:54,offsets:[1.948888888888889,2,3,4],offsetIndices:"012121212121212121212121212121212121212121212121212121232323232322121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-ux9xew|2wvx6w|7v980|1tjc40|aunw0|88dg0|9et80|8yas0|a2vw0|tzpg0|79180|awo40|7v980|7p25g0|4zjw0|2xms0|f4d80|9vms0|b07w0|19f9g0|9px80|c5440|69uk0|acas0|8n180|a31g0|8n180|9q2s0|8zzw0|a8lg0|8ufw0|a31g0|8ovw0|5mbes0|4dbw0|u3es0|75bw0|2wxus0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|c8w80|7x9g0|7k800|b6080|7jww0|ast80|b9ms0|7tek0|7x9g0|a2vw0|8n6s0|a2vw0|iruk0|8yj40|9rjk0|8lkg0|a4i80|8lkg0|a4i80|f2o40|38l80|t4840|8a5c0|9f4c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9cyk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7kdk0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7m2o0|b4000|7k800|b5uo0|7x6o0|asw00|7z1c0|ar1c0|7x6o0|bitc0|779c0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Kaliningrad",title:"Kaliningrad",winIndex:96,offsets:[1,2,3,4],offsetIndices:"0101010101010121232323232323232322121212121212121212121212121212121212121212121",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|4od40|62fw0|9kd80|351g0|ie8nw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Europe/Kiev",title:"Kiev",winIndex:59,offsets:[2.0344444444444445,2,3,1,4],offsetIndices:"0121313242424242424242424242121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-nu11ng|37a03g|5vd6k0|kzv40|7k800|9q000|1oyg0|jipzs0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|51ek0|neqw0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Lisbon",title:"Lisbon",winIndex:26,offsets:[-.6125,0,1,2],offsetIndices:"012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121212121212121212121212121212121212122323232212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-u9rfmr|2bue6r|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5gyl40|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/London",title:"London",winIndex:26,offsets:[0,1,2],offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Luxembourg",title:"Luxembourg",winIndex:27,offsets:[.41000000000000003,1,2,0],offsetIndices:"0121212131313131313131313131313131313131313131313131212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-y89550|68l290|75hg0|ast80|796s0|at1k0|7x6o0|3lh40|4zmo0|b6300|6u2c0|cytk0|7at40|bktk0|7rh40|a31g0|a2vw0|8n9k0|8zx40|9q2s0|9et80|9b9g0|a2vw0|8n6s0|9px80|905g0|a2vw0|905g0|a2vw0|8ncc0|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|42ao0|1aeak0|7k800|9q000|9d1c0|8n400|a2yo0|8l9c0|clpc0|79400|fwu800|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Madrid",title:"Madrid",winIndex:62,offsets:[0,1,2],offsetIndices:"01010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rhcqs0|7x6o0|9tpc0|8y800|9b6o0|9gqo0|2d2yo0|8so00|st1c0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|3zb9c0|6uao0|8so00|9xeo0|a2yo0|902o0|8a5c0|13yt80|69xc0|bq800|8oyo0|a1400|95mo0|9kg00|8n6s0|a2vw0|8oyo0|1ck5c0|7tk40|ct07w0|905g0|a2vw0|8n6s0|8zzw0|9d440|9px80|905g0|9rrw0|9b9g0|9d6w0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Malta",title:"Malta",winIndex:27,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-ryotg0|66800|9d1c0|9d1c0|8a5c0|asw00|7k800|b5uo0|8n400|9d1c0|aau000|18r9k0|7k800|9q000|9d1c0|9d1c0|9d1c0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64ak0|cls40|64ak0|cyqs0|64ak0|cls40|64ak0|c8tg0|6hc00|clpc0|6h980|9b9g0|9d1c0|ahs00|7m2o0|b45k0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|a4w40|8y580|9q2s0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Minsk",title:"Minsk",winIndex:96,offsets:[1.8333333333333333,2,3,1,4],offsetIndices:"012131312424242424242424242212121212121212121212121212121212121212122",untils:"-nu113c|379zjc|5r1mk0|pbf40|7k800|9q000|9d1c0|4oac0|j6dmk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|sg2o0|9d440|9cvs0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbx40|Infinity"},{id:"Europe/Monaco",title:"Monaco",winIndex:27,offsets:[.15583333333333332,0,1,2],offsetIndices:"01212121212121212121212121212121212121212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-uozn3l|2qx1nl|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|bko00|7rmo0|a2yo0|bvs00|6uao0|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51po0|mdbo0|7x3w0|7x9g0|c8w80|7k800|9q000|9d1c0|9nzs0|922w0|8l9c0|fxlx80|9cyk0|9q5k0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Moscow",title:"Moscow",winIndex:58,offsets:[2.504722222222222,2.5219444444444443,3.5219444444444443,4.521944444444444,4,3,5,2],offsetIndices:"012132345464575454545454545454545455754545454545454545454545454545454545454545",untils:"-rx5dmh|ipzua|97hc0|7yyk0|5i840|d9p80|1jpk0|2d2k7|s8o00|1qvw0|8fpc0|1jms0|is040|412as0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Europe/Oslo",title:"Oslo",winIndex:27,offsets:[1,2],offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-rzayo0|6qfs0|cgcqo0|15tsc0|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|70q5c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|b5uo0|7k800|7law00|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Paris",title:"Paris",winIndex:62,offsets:[.15583333333333332,0,1,2],offsetIndices:"0121212121212121212121212121212121212121212121212123232332323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-uozn1x|2qx1lx|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|bko00|7rmo0|a2yo0|bvs00|6uao0|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51po0|5p8w0|18rcc0|7k800|9q000|9d1c0|7efo0|29k40|922w0|8l9c0|fxlx80|9cyk0|9q5k0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Prague",title:"Prague",winIndex:60,offsets:[1,2],offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|8l9c0|afxc0|bitc0|8oyo0|7vc00|a2yo0|8n400|a2yo0|8n400|9o5c0|91xc0|fe6000|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Riga",title:"Riga",winIndex:59,offsets:[1.6094444444444445,2.6094444444444442,2,3,1,4],offsetIndices:"010102324242435353535353535353323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-qznlky|7x6o0|a4tc0|2mg00|3myns0|7fhlky|gz180|p5v40|7k800|9q000|9d1c0|9d1c0|k7s0|j14ns0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|asw00|7x6o0|asw00|7x6o0|b5uo0|qaao0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Rome",title:"Rome",winIndex:27,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-ryotg0|66800|9d1c0|9d1c0|8a5c0|asw00|7k800|b5uo0|8n400|9d1c0|aau000|18r9k0|7k800|9q000|9d1c0|8l3s0|a4yw0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64ak0|cls40|64ak0|cyqs0|64ak0|cls40|64ak0|c8tg0|6hc00|clpc0|6h980|cls40|64ak0|c8tg0|6h980|cls40|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|c8qo0|6hc00|9q5k0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"
101},{id:"Europe/Samara",title:"Samara",winIndex:58,offsets:[3.338888888888889,3,4,5],offsetIndices:"012232323232323232322121112323232323232323232323232323232323232212",untils:"-qcx7pw|5q63dw|2egvw0|o3lc00|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d440|12w00|89zs0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5xg0|7k800|Infinity"},{id:"Europe/Simferopol",title:"Simferopol",winIndex:58,offsets:[2.2666666666666666,2,3,1,4],offsetIndices:"012131312424242424242424242121212424242212121212121212121212121212121212142",untils:"-nu12ao|37a0qo|5xiyk0|iu340|7k800|9q000|9d1c0|iac0|jajmk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|eeio0|wrjw0|9cyk0|9d440|9cyk0|9d440|1sqk0|7k580|9d440|9cyk0|9q2s0|at4c0|7x9g0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x3w0|asqg0|Infinity"},{id:"Europe/Sofia",title:"Sofia",winIndex:59,offsets:[2,1,3],offsetIndices:"01010102020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020",untils:"-e6dzw0|7k800|9q000|9d1c0|9d1c0|9d440|hqq240|9eys0|9o2k0|92040|9o2k0|90880|9pug0|90b00|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|ast80|7xhs0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Stockholm",title:"Stockholm",winIndex:27,offsets:[1,2],offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-rzo2w0|75hg0|x5bew0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Tallinn",title:"Tallinn",winIndex:59,offsets:[1.65,1,2,3,4],offsetIndices:"012102321212343434343434343433232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-r3exx0|3re10|7x6o0|et6g0|ygov0|a1zgd0|ktx80|l94g0|7k800|9q000|9d1c0|8uac0|j27mk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asys0|7x6o0|b5uo0|19dc00|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Tirane",title:"Tirane",winIndex:60,offsets:[1.3222222222222222,1,2],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-t85vo8|dt2gw8|18pew0|7k800|m800|g7ot40|7rjw0|autg0|7x3w0|ayis0|7x3w0|b5xg0|7k580|b42s0|7lzw0|b42s0|7lzw0|b42s0|7x3w0|ahus0|7x3w0|b5xg0|7x3w0|a4w40|8jbw0|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Uzhgorod",title:"Uzhgorod",winIndex:59,offsets:[1,2,3,4],offsetIndices:"010101023232323232323232320121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-fizzw0|1cm000|7k800|9q000|9d1c0|al900|cnms0|int140|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|eeio0|e1sc0|iprk0|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Vienna",title:"Vienna",winIndex:27,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|t6000|8a5c0|a7a800|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|iio0|ivmo0|902o0|9d1c0|9d1c0|a2yo0|8n400|gfyyg0|8zzw0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Vilnius",title:"Vilnius",winIndex:59,offsets:[1.4,1.5933333333333333,1,2,3,4],offsetIndices:"012324323234545454545454545443434343434343434332334343434343434343434343434343434343434343434343434343434343434343434343",untils:"-rns980|1g224o|e75nc|4kqk0|acbs40|gpp40|pits0|7k800|9q000|9d1c0|65zo0|j4vx80|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x9g0|asw00|7x6o0|b5uo0|1s3eo0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Volgograd",title:"Volgograd",winIndex:58,offsets:[2.961111111111111,3,4,5],offsetIndices:"011223232323232323221212122121212121212121212121212121212121212121",untils:"-q3cw84|2qrjw4|2pu800|gdt980|a48yo0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9d1c0|9q000|9d1c0|ipzw0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Europe/Warsaw",title:"Warsaw",winIndex:51,offsets:[1.4,1,2,3],offsetIndices:"012121223212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-se9yk0|dvyc0|7ves0|a4yw0|7x6o0|asw00|7x6o0|aunw0|7x6o0|1evbs0|9fcwc0|18cao0|7k800|9q000|9d1c0|9gnw0|an980|9kd80|8fs40|922w0|ar1c0|7x6o0|a2yo0|8n400|9q000|902o0|4013w0|64dc0|9d1c0|9d1c0|clpc0|6hc00|9d1c0|9d1c0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|clpc0|64dc0|6j4tc0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Zaporozhye",title:"Zaporozhye",winIndex:59,offsets:[2.3333333333333335,2,3,1,4],offsetIndices:"01213132424242424242424242422121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-nu12hc|37a0xc|5u1180|mc0g0|7k800|9q000|12qg0|jjc7s0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9cvs0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Zurich",title:"Zurich",winIndex:27,offsets:[1,2],offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-eyh6o0|7x6o0|asw00|7x6o0|k2zus0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Indian/Chagos",title:"Chagos",winIndex:21,offsets:[4.827777777777778,5,6],offsetIndices:"012",untils:"-wvpc2s|1ag64us|Infinity"},{id:"Indian/Christmas",title:"Christmas",winIndex:6,offsets:[7],offsetIndices:"0",untils:"Infinity"},{id:"Indian/Cocos",title:"Cocos",winIndex:87,offsets:[6.5],offsetIndices:"0",untils:"Infinity"},{id:"Indian/Kerguelen",title:"Kerguelen",winIndex:17,offsets:[0,5],offsetIndices:"01",untils:"-afrs00|Infinity"},{id:"Indian/Mahe",title:"Mahe",winIndex:97,offsets:[3.6966666666666668,4],offsetIndices:"01",untils:"-x6pjlo|Infinity"},{id:"Indian/Maldives",title:"Maldives",winIndex:17,offsets:[4.9,5],offsetIndices:"01",untils:"-57x6y0|Infinity"},{id:"Indian/Mauritius",title:"Mauritius",winIndex:97,offsets:[3.8333333333333335,4,5],offsetIndices:"012121",untils:"-wvp9bc|13jnu7c|8bx80|dd0wc0|7x3w0|Infinity"},{id:"Indian/Reunion",title:"Reunion",winIndex:97,offsets:[3.697777777777778,4],offsetIndices:"01",untils:"-uks29s|Infinity"},{id:"MST7MDT",title:"MST7MDT",winIndex:15,offsets:[-7,-6],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Pacific/Apia",title:"Apia",winIndex:98,offsets:[-11.448888888888888,-11.5,-11,-10,14,13],offsetIndices:"01232345454545454545454545454545454545454545454545454545454",untils:"-usiiv4|kcrmt4|vp3la0|9odo0|902o0|4zbk0|4qog0|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity"},{id:"Pacific/Auckland",title:"Auckland",winIndex:8,offsets:[11.5,12.5,12,13],offsetIndices:"01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323",untils:"-m01p20|64ak0|biw40|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|8a3y0|afyq0|8a3y0|afyq0|afvy0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|b5ta0|7k9e0|b5ta0|7x820|hsl2m0|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity"},{id:"Pacific/Chuuk",title:"Chuuk",winIndex:50,offsets:[10],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Efate",title:"Efate",winIndex:48,offsets:[11.22111111111111,11,12],offsetIndices:"0121212121212121212121",untils:"-u964i4|11f4ba4|9cyk0|awo40|7tek0|9q2s0|8zzw0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|64ak0|e1ms0|4ofw0|Infinity"},{id:"Pacific/Enderbury",title:"Enderbury",winIndex:94,offsets:[-12,-11,13],offsetIndices:"012",untils:"535io0|7ykl80|Infinity"},{id:"Pacific/Fakaofo",title:"Fakaofo",winIndex:94,offsets:[-11,13],offsetIndices:"01",untils:"lx0jw0|Infinity"},{id:"Pacific/Fiji",title:"Fiji",winIndex:99,offsets:[11.928888888888888,12,13],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121",untils:"-sa2x4w|17bs00w|64dc0|cyo00|5reo0|53a5c0|64dc0|asw00|6uao0|bvs00|4oio0|e1k00|4oio0|eeio0|4bh80|erk40|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3ylc0|erhc0|3ylc0|erhc0|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3lmo0|f4g00|3ylc0|erhc0|3ylc0|erhc0|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3ylc0|erhc0|3ylc0|erhc0|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3lmo0|f4g00|3ylc0|erhc0|3ylc0|erhc0|3ylc0|erhc0|3ylc0|Infinity"},{id:"Pacific/Funafuti",title:"Funafuti",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Galapagos",title:"Galapagos",winIndex:67,offsets:[-5.973333333333333,-5,-6],offsetIndices:"012",untils:"-kcr62o|spdryo|Infinity"},{id:"Pacific/Guadalcanal",title:"Guadalcanal",winIndex:48,offsets:[10.663333333333332,11],offsetIndices:"01",untils:"-tvowac|Infinity"},{id:"Pacific/Guam",title:"Guam",winIndex:50,offsets:[10],offsetIndices:"00",untils:"g5z2w0|Infinity"},{id:"Pacific/Honolulu",title:"Honolulu",winIndex:57,offsets:[-10.5,-9.5,-10],offsetIndices:"010102",untils:"-j50la0|13l00|4jvb00|1wd180|votg0|Infinity"},{id:"Pacific/Kiritimati",title:"Kiritimati",winIndex:95,offsets:[-10.666666666666666,-10,14],offsetIndices:"012",untils:"535eyo|7ykm5c|Infinity"},{id:"Pacific/Kosrae",title:"Kosrae",winIndex:48,offsets:[11,12],offsetIndices:"010",untils:"-4r7w0|f9l3w0|Infinity"},{id:"Pacific/Kwajalein",title:"Kwajalein",winIndex:44,offsets:[11,-12,12],offsetIndices:"012",untils:"-4r7w0|cgtbw0|Infinity"},{id:"Pacific/Majuro",title:"Majuro",winIndex:44,offsets:[11,12],offsetIndices:"01",untils:"-4r7w0|Infinity"},{id:"Pacific/Midway",title:"Midway",winIndex:49,link:530},{id:"Pacific/Nauru",title:"Nauru",winIndex:44,offsets:[11.127777777777776,11.5,9,12],offsetIndices:"01213",untils:"-pjxiws|b1kxms|19h8a0|i43qe0|Infinity"},{id:"Pacific/Niue",title:"Niue",winIndex:49,offsets:[-11.333333333333334,-11.5,-11],offsetIndices:"012",untils:"-9wyz6o|ehcj4o|Infinity"},{id:"Pacific/Noumea",title:"Noumea",winIndex:48,offsets:[11.096666666666666,11,12],offsetIndices:"01212121",untils:"-u9645o|ye0ixo|4dbw0|ecqs0|4f6k0|99p700|4oio0|Infinity"},{id:"Pacific/Pago_Pago",title:"Pago Pago",winIndex:49,offsets:[-11.379999999999999,-11],offsetIndices:"0111",untils:"-usij20|tcsey0|8p4800|Infinity"},{id:"Pacific/Palau",title:"Palau",winIndex:43,offsets:[9],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Pohnpei",title:"Pohnpei",winIndex:48,offsets:[11],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Port_Moresby",title:"Port Moresby",winIndex:50,offsets:[10],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Rarotonga",title:"Rarotonga",winIndex:57,offsets:[-10.5,-9.5,-10],offsetIndices:"012121212121212121212121212",untils:"4mj960|5rbw0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|Infinity"},{id:"Pacific/Saipan",title:"Saipan",winIndex:50,link:520},{id:"Pacific/Tahiti",title:"Tahiti",winIndex:57,offsets:[-9.97111111111111,-10],offsetIndices:"01",untils:"-tvnayw|Infinity"},{id:"Pacific/Tarawa",title:"Tarawa",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Tongatapu",title:"Tongatapu",winIndex:94,offsets:[12.333333333333334,13,14],offsetIndices:"01212121",untils:"-f4vrlc|uo2edc|8fpc0|bvs00|4bh80|eelg0|4bh80|Infinity"},{id:"Pacific/Wake",title:"Wake",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Wallis",title:"Wallis",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"PST8PDT",title:"PST8PDT",winIndex:11,offsets:[-8,-7],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Australia/Eucla",title:"Eucla",winIndex:100,offsets:[8.591111111111111,8.75,9.75],offsetIndices:"01212121212121212121",untils:"-12nxx74|b053ls|49s2c|cxfms0|4h180|9d440|9cyk0|ghf1g0|6hc00|4ir9c0|6hc00|40r400|5eg00|7p9hc0|5reo0|b5uo0|7x6o0|asw00|7x6o0|Infinity"},{id:"Australia/Lord_Howe",title:"Eucla",winIndex:101,offsets:[10.605555555555556,10,10.5,11.5,11],offsetIndices:"01232323232424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424",untils:"-133j6sk|18x8f0k|c8uu0|6u7w0|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|777y0|b5w20|7k6m0|biuq0|7k6m0|biuq0|777y0|biuq0|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|7x820|asum0|b5w20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|b5w20|7x5a0|asxe0|7k6m0|b5w20|8a3y0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9pym0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|Infinity"}];e.exports={displayNames:i,timezones:o}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopTooltipStrategy=void 0;var s=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=n(2),c=i(u),d=n(383),h=n(164),p=i(h),f=n(27),g=i(f),_=n(55),m=i(_),v=n(5),y=i(v),x=n(85),b=i(x),w=n(42),C="dx-scheduler-appointment-tooltip-wrapper",k="dx-scheduler-all-day-appointment",S=".dx-scheduler-date-table-scrollable .dx-scrollable-wrapper",I=200,T=function(){function e(t,n){r(this,e),this.scheduler=t,this.target=n}return l(e,[{key:"onListItemRendered",value:function(e){}},{key:"onListItemClick",value:function(e){}},{key:"getItemListTemplateName",value:function(){return"appointmentTooltipTemplate"}},{key:"getItemListDefaultTemplateName",value:function(){return"appointmentTooltip"}},{key:"createFunctionTemplate",value:function(e,t,n,i){return(0,d.createDefaultTooltipTemplate)(e,t,n,i)}}]),e}(),D=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"onListItemClick",value:function(e){this.scheduler.showAppointmentPopup(e.itemData.data,!1,e.itemData.currentData)}},{key:"canRaiseClickEvent",value:function(){return!1}}]),t}(T),E=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"onListItemRendered",value:function(e){var t=this;if(this.scheduler._allowDragging()){var n=e.itemData.data;y.default.on(e.itemElement,m.default.start,function(e){return t._onAppointmentDragStart(n,n.settings,e)}),y.default.on(e.itemElement,m.default.move,function(e){return t._onAppointmentDragMove(e,n.allDay)}),y.default.on(e.itemElement,m.default.end,function(){return t._onAppointmentDragEnd(n)})}}},{key:"canRaiseClickEvent",value:function(){return!0}},{key:"createFunctionTemplate",value:function(e,n,i,o){return this._isEmptyDropDownAppointmentTemplate()?s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createFunctionTemplate",this).call(this,e,n,i,o):new b.default(function(t){return e.render({model:n,index:o,container:t.container})})}},{key:"getItemListTemplateName",value:function(){return this._isEmptyDropDownAppointmentTemplate()?"appointmentTooltipTemplate":"dropDownAppointmentTemplate"}},{key:"getItemListDefaultTemplateName",value:function(){return this._isEmptyDropDownAppointmentTemplate()?"appointmentTooltip":"dropDownAppointment"}},{key:"_isEmptyDropDownAppointmentTemplate",value:function(){return"dropDownAppointment"===this.scheduler.option("dropDownAppointmentTemplate")}},{key:"_onAppointmentDragStart",value:function(e,t,n){var i=this.scheduler.getAppointmentsInstance(),o=i.option("items").length;t[0].isCompact=!1,t[0].virtual=!1,i._currentAppointmentSettings=t,i._renderItem(o,{itemData:e,settings:t});var a=i._findItemElementByItem(e);a.length>0&&this._prepareDragItem(a,t,n),this.scheduler.hideAppointmentTooltip()}},{key:"_onAppointmentDragMove",value:function(e,t){var n={left:this._startPosition.left+e.offset.x,top:this._startPosition.top+e.offset.y};this.scheduler.getAppointmentsInstance().notifyObserver("correctAppointmentCoordinates",{coordinates:n,allDay:t,isFixedContainer:!1,callback:function(e){e&&(n=e)}}),g.default.move(this._$draggedItem,n)}},{key:"_onAppointmentDragEnd",value:function(e){y.default.trigger(this._$draggedItem,m.default.end),this._removeFakeAppointmentIfDragEndOnCurrentCell(e)}},{key:"_removeFakeAppointmentIfDragEndOnCurrentCell",value:function(e){var t=this.scheduler.getAppointmentsInstance(),n=this.scheduler._workSpace.getDroppableCellIndex(),i=this.scheduler._workSpace.getCellIndexByCoordinates(this._startPosition);n===i&&t._clearItem({itemData:e})}},{key:"_prepareDragItem",value:function(e,t,n){var i=this._getDragContainerOffset();this._$draggedItem=e.length>1?this._getRecurrencePart(e,t[0].startDate):e[0];var o=this._$draggedItem.hasClass(k)?this.scheduler._workSpace.getAllDayHeight():this.scheduler._workSpace.getScrollableScrollTop();this._startPosition={top:n.pageY-i.top-this._$draggedItem.height()/2+o,left:n.pageX-i.left-this._$draggedItem.width()/2},g.default.move(this._$draggedItem,this._startPosition),y.default.trigger(this._$draggedItem,m.default.start)}},{key:"_getDragContainerOffset",value:function(){return this.scheduler._$element.find(S).offset()}},{key:"_getRecurrencePart",value:function(e,t){for(var n=void 0,i=0;i<e.length;i++){var o=e[i],a=o.data("dxAppointmentStartDate");a.getTime()===t.getTime()&&(n=o)}return n}}]),t}(T);t.DesktopTooltipStrategy=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.skipHidingOnScroll=!1,n}return a(t,e),l(t,[{key:"_showCore",value:function(e,n,i){this.behavior=this._createBehavior(i,e),s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_showCore",this).call(this,e,n,i),this.tooltip.option("position",this._getTooltipPosition(n)),this.list.focus(),this.list.option("focusedElement",null)}},{key:"_createBehavior",value:function(e,t){return e?new D(this.scheduler,t):new E(this.scheduler,t)}},{key:"_getTooltipPosition",value:function(e){return{my:"bottom",at:"top",of:this.target,collision:"fit flipfit",boundary:this._getBoundary(e),offset:this.scheduler.option("_appointmentTooltipOffset")}}},{key:"_getBoundary",value:function(e){return this._isAppointmentInAllDayPanel(e[0].data)?this.scheduler.$element():this.scheduler.getWorkSpaceScrollableContainer()}},{key:"_isAppointmentInAllDayPanel",value:function(e){var t=this.scheduler._workSpace,n=this.scheduler.appointmentTakesAllDay(e);return n&&t.supportAllDayRow()&&t.option("showAllDayPanel")}},{key:"_createFunctionTemplate",value:function(e,t,n,i){return this.behavior.createFunctionTemplate(e,t,n,i)}},{key:"_getItemListTemplateName",value:function(){return this.behavior.getItemListTemplateName()}},{key:"_getItemListDefaultTemplateName",value:function(){return this.behavior.getItemListDefaultTemplateName()}},{key:"_createListOption",value:function(e,n){var i=s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_createListOption",this).call(this,e,n);return i.showScrollbar=w.touch?"always":"onHover",i}},{key:"_createTooltip",value:function(e){var t=this;return this.$tooltip=this._createTooltipElement(),this.scheduler._createComponent(this.$tooltip,p.default,{target:e,onShowing:this._onTooltipShowing.bind(this),closeOnTargetScroll:function(){return t.skipHidingOnScroll},maxHeight:I,rtlEnabled:this.scheduler.option("rtlEnabled")})}},{key:"dispose",value:function(){clearTimeout(this.skipHidingOnScrollTimeId)}},{key:"_onTooltipShowing",value:function(){var e=this;clearTimeout(this.skipHidingOnScrollTimeId),this.skipHidingOnScroll=!0,this.skipHidingOnScrollTimeId=setTimeout(function(){e.skipHidingOnScroll=!1,clearTimeout(e.skipHidingOnScrollTimeId)},0)}},{key:"_createTooltipElement",value:function(){return(0,c.default)("<div>").appendTo(this.scheduler.$element()).addClass(C)}},{key:"_onListItemRendered",value:function(e){this.behavior.onListItemRendered(e)}},{key:"_canRaiseClickEvent",value:function(){return this.behavior.canRaiseClickEvent()}}]),t}(d.TooltipStrategyBase)},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.MobileTooltipStrategy=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(60),c=i(u),d=n(383),h=n(2),p=i(h),f=n(7),g="dx-scheduler-overlay-panel",_=250,m={show:{type:"slide",duration:300,from:{position:{my:"top",at:"bottom",of:(0,f.getWindow)()}},to:{position:{my:"center",at:"center",of:(0,f.getWindow)()}}},hide:{type:"slide",
102duration:300,to:{position:{my:"top",at:"bottom",of:(0,f.getWindow)()}},from:{position:{my:"center",at:"center",of:(0,f.getWindow)()}}}},v={my:"bottom",at:"bottom",of:(0,f.getWindow)()};t.MobileTooltipStrategy=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_onListItemClick",value:function(e){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_onListItemClick",this).call(this,e),this.scheduler.showAppointmentPopup(e.itemData.data,!1,e.itemData.currentData)}},{key:"_shouldUseTarget",value:function(){return!1}},{key:"_onShowing",value:function(){this.tooltip.option("height","auto");var e=this.list.$element().outerHeight();this.tooltip.option("height",e>_?_:"auto")}},{key:"_createTooltip",value:function(e){var t=this,n=(0,p.default)("<div>").addClass(g).appendTo(this.scheduler.$element());return this.scheduler._createComponent(n,c.default,{shading:!1,position:v,animation:m,target:this.scheduler.$element(),container:this.scheduler.$element(),closeOnOutsideClick:!0,width:"100%",height:"auto",onShowing:function(){return t._onShowing()}})}}]),t}(d.TooltipStrategyBase)},function(e,t,n){var i=n(2),o=n(1),a=n(4).noop,r=n(1).isDefined,s=n(0).extend,l=n(3).each,u=n(13).inArray,c=n(32).camelize,d=n(9),h=n(18),p=n(119),f=n(702),g=n(196),_=n(198),m=n(21),v=n(14),y="dx-scheduler-header",x="dx-scheduler-view-switcher",b="dx-scheduler-view-switcher-label",w={day:"day",week:"week",workWeek:"workWeek",month:"month",timelineDay:"day",timelineWeek:"week",timelineWorkWeek:"workWeek",timelineMonth:"month",agenda:"agenda"},C=["day","week","workWeek","month","timelineDay","timelineWeek","timelineWorkWeek","timelineMonth","agenda"],k=h.inherit({_getDefaultOptions:function(){return s(this.callBase(),{views:[],intervalCount:1,currentView:"day",firstDayOfWeek:void 0,currentDate:new Date,min:void 0,max:void 0,useDropDownViewSwitcher:!1,_dropDownButtonIcon:"overlay"})},_setOptionsByReference:function(){this.callBase(),s(this._optionsByReference,{currentView:!0})},_optionChanged:function(e){var t=e.value;switch(e.name){case"views":this._validateViews(),this._viewSwitcher.option({items:t,selectedItem:this.option("currentView")});break;case"customizeDateNavigatorText":this._navigator.option(e.name,t);break;case"currentView":this._viewSwitcher.option("selectedItem",t),this._navigator.option("step",w[this._getCurrentViewType()]),this._changeViewSwitcherLabelText();break;case"currentDate":this._navigator.option("date",t);break;case"displayedDate":this._navigator.option("displayedDate",t);break;case"min":case"max":case"firstDayOfWeek":case"intervalCount":this._navigator.option(e.name,t);break;case"tabIndex":case"focusStateEnabled":this._viewSwitcher.option(e.name,t),this._navigator.option(e.name,t),this.callBase(e);break;case"useDropDownViewSwitcher":this._refreshViewSwitcher();break;default:this.callBase(e)}},_init:function(){this.callBase(),this.$element().addClass(y)},_initMarkup:function(){this.callBase(),this._renderNavigator(),this._renderViewSwitcher()},_renderNavigator:function(){this._navigator=this._createComponent("<div>",f,{min:this.option("min"),max:this.option("max"),intervalCount:this.option("intervalCount"),date:this.option("currentDate"),step:w[this._getCurrentViewType()],firstDayOfWeek:this.option("firstDayOfWeek"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),observer:this.option("observer"),customizeDateNavigatorText:this.option("customizeDateNavigatorText")}),this._navigator.$element().appendTo(this.$element())},_renderViewSwitcher:function(){this._validateViews();var e=i("<div>").addClass(x).appendTo(this.$element());this.option("useDropDownViewSwitcher")?this._renderViewSwitcherDropDownMenu(e):this._renderViewSwitcherTabs(e)},_validateViews:function(){var e=this.option("views");l(e,function(e,t){var n=o.isObject(t),i=n&&t.type?t.type:t;u(i,C)===-1&&m.log("W0008",i)})},_getCurrentViewType:function(){var e=this.option("currentView");return e.type||e},_renderViewSwitcherTabs:function(e){var t=this;e.addClass(_.getTabsExpandedClass),this._viewSwitcher=this._createComponent(e,_,{selectionRequired:!0,scrollingEnabled:!0,onSelectionChanged:this._updateCurrentView.bind(this),items:this.option("views"),itemTemplate:function(e){return i("<span>").addClass("dx-tab-text").text(t._getItemText(e))},selectedItem:this.option("currentView"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled")})},_getItemText:function(e){return e.name||v.format("dxScheduler-switcher"+c(e.type||e,!0))},_refreshViewSwitcher:function(){this._viewSwitcher._dispose(),this._viewSwitcher.$element().remove(),delete this._viewSwitcher,this._removeViewSwitcherLabel(),this._renderViewSwitcher()},_removeViewSwitcherLabel:function(){r(this._$viewSwitcherLabel)&&(this._$viewSwitcherLabel.detach(),this._$viewSwitcherLabel.remove(),delete this._$viewSwitcherLabel)},_renderViewSwitcherDropDownMenu:function(e){var t=this;this._$viewSwitcherLabel=i("<div>").addClass(b).appendTo(this.$element()),this._changeViewSwitcherLabelText(),this._viewSwitcher=this._createComponent(e,g,{onItemClick:this._updateCurrentView.bind(this),buttonIcon:this.option("_dropDownButtonIcon"),items:this.option("views"),itemTemplate:function(e){return i("<span>").addClass("dx-dropdownmenu-item-text").text(t._getItemText(e))}})},_changeViewSwitcherLabelText:function(){if(r(this._$viewSwitcherLabel)){var e=this.option("currentView"),t=this._getItemText(e);this._$viewSwitcherLabel.text(t)}},_getCurrentViewName:function(e){return o.isObject(e)?e.name||e.type:e},_updateCurrentView:function(e){var t=e.itemData||e.component.option("selectedItem"),n=this._getCurrentViewName(t);this.notifyObserver("currentViewUpdated",n)},_renderFocusTarget:a}).include(p);d("dxSchedulerHeader",k),e.exports=k},function(e,t,n){var i=n(2),o=n(4).noop,a=n(1).isNumeric,r=n(17),s=n(22),l=n(1),u=n(0).extend,c=n(9),d=n(16),h=n(18),p=n(34),f=n(245),g=n(138),_=n(46),m=n(119),v=n(33),y=n(1).isDefined,x="dx-scheduler-navigator",b="dx-scheduler-navigator-calendar",w="dx-scheduler-navigator-next",C="dx-scheduler-navigator-caption",k="dx-scheduler-navigator-previous",S="dx-scheduler-navigator-calendar-popover",I=1,T=function(e){return e?I:v.firstDayOfWeekIndex()},D=function(e){return function(t){var n=v.getMonthNames(e?"abbreviated":"wide")[t.getMonth()];return[v.format(t,"day"),n].join(" ")}},E=function(e){return v.getMonthNames("abbreviated")[e.getMonth()]+" "+v.format(e,"year")},A=function e(t,n,i){var o=D(t);return function(a){if(n>1){var r=new Date(a),s=i;r.setDate(a.getDate()+s-1);var l=a.getMonth()!==r.getMonth(),u=l||t,c=v.format(a,l?D(u):"d"),d=v.format(r,e(u));return c+"-"+d}return[o(a),v.format(a,"year")].join(" ")}},O=function(e,t,n){var i=this.option("firstDayOfWeek"),o=y(i)?i:T(t);0===o&&n&&(o=I);var a=s.getFirstWeekDate(e,o),r=2;n&&(a=s.normalizeDateByWeek(a,e)),i>=6&&n&&a.setDate(a.getDate()+(7-i+1));var l=new Date(a),u=this.option("intervalCount");return t=t||6,l=new Date(l.setDate(l.getDate()+(u>1?7*(u-1)+t:t))),l.getDay()%6===0&&n&&l.setDate(l.getDate()+r),{text:B.call(this,l,a),startDate:a,endDate:l}},B=function(e,t){var n,i,o=t.getMonth()!==e.getMonth(),a=t.getFullYear()!==e.getFullYear(),r=o||this.option("_useShortDateFormat");return a?(i=v.format(t,A(!0)),n=v.format(e,A(!0))):(i=v.format(t,o?D(r):"d"),n=v.format(e,A(r))),i+"-"+n},P=function(e){var t,n=new Date(e),i=new Date(n);if(this.option("intervalCount")>1){i.setMonth(i.getMonth()+this.option("intervalCount")-1);var o=n.getYear()===i.getYear(),a=E(i),r=o?v.getMonthNames("abbreviated")[n.getMonth()]:E(n);t=r+"-"+a}else t=v.format(e,"monthandyear");return{text:t,startDate:n,endDate:i}},M=function(e,t){return new Date(e[this.setter](e[this.getter]()+t))},R=function(e){var t;switch(e){case"day":return{duration:1*this.option("intervalCount"),setter:"setDate",getter:"getDate",getDate:M,getCaption:function(e){var t=A(!1,this.option("intervalCount"),this._getConfig().duration);return{text:v.format(e,t),startDate:e,endDate:e}}};case"week":return{duration:7*this.option("intervalCount"),setter:"setDate",getter:"getDate",getDate:M,getCaption:O};case"workWeek":return{duration:7*this.option("intervalCount"),setter:"setDate",getter:"getDate",getDate:M,getCaption:function(e){return O.call(this,e,4,!0)}};case"month":return{duration:1*this.option("intervalCount"),setter:"setMonth",getter:"getMonth",getDate:function(e,t){var n=e.getDate();e.setDate(1),e=M.call(this,e,t);var i=s.getLastMonthDay(e);return e.setDate(n<i?n:i),e},getCaption:P};case"agenda":return t=this.invoke("getAgendaDuration"),t=a(t)&&t>0?t:7,{duration:t,setter:"setDate",getter:"getDate",getDate:M,getCaption:function(e){var n,i=A(this.option("_useShortDateFormat")),o=new Date(e),a=new Date(e);return t>1?(a.setDate(a.getDate()+t-1),n=B.call(this,a,e)):n=v.format(e,i),{text:n,startDate:o,endDate:a}}}}},V=h.inherit({_getDefaultOptions:function(){return u(this.callBase(),{date:new Date,displayedDate:void 0,step:"day",intervalCount:1,min:void 0,max:void 0,firstDayOfWeek:void 0,_useShortDateFormat:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!d.real().generic||d.isSimulator()},options:{_useShortDateFormat:!0}}])},_optionChanged:function(e){switch(e.name){case"step":case"date":case"intervalCount":case"displayedDate":this._updateButtonsState(),this._renderCaption(),this._setCalendarOption("value",this.option("date"));break;case"min":case"max":this._updateButtonsState(),this._setCalendarOption(e.name,e.value);break;case"firstDayOfWeek":this._setCalendarOption(e.name,e.value);break;case"customizeDateNavigatorText":this._renderCaption();break;case"tabIndex":case"focusStateEnabled":this._next.option(e.name,e.value),this._caption.option(e.name,e.value),this._prev.option(e.name,e.value),this._setCalendarOption(e.name,e.value),this.callBase(e);break;case"_useShortDateFormat":break;default:this.callBase(e)}},_init:function(){this.callBase(),this.$element().addClass(x),this._initButtons()},_initButtons:function(){var e=i("<div>").addClass(w);this._next=this._createComponent(e,p,{icon:"chevronnext",onClick:this._updateCurrentDate.bind(this,1),focusStateEnabled:this.option("focusStateEnabled"),tabIndex:this.option("tabIndex"),integrationOptions:{}});var t=i("<div>").addClass(C);this._caption=this._createComponent(t,p,{focusStateEnabled:this.option("focusStateEnabled"),tabIndex:this.option("tabIndex"),integrationOptions:{}});var n=i("<div>").addClass(k);this._prev=this._createComponent(n,p,{icon:"chevronprev",onClick:this._updateCurrentDate.bind(this,-1),focusStateEnabled:this.option("focusStateEnabled"),tabIndex:this.option("tabIndex"),integrationOptions:{}}),this.setAria("label","Next period",e),this.setAria("label","Previous period",n),this._updateButtonsState(),this.$element().append(n,t,e)},_updateButtonsState:function(){var e=this.option("min"),t=this.option("max");e=e?s.trimTime(e):e,t=t?s.trimTime(t):t,this._prev.option("disabled",e&&!isNaN(e.getTime())&&this._getNextDate(-1)<e),this._next.option("disabled",t&&!isNaN(t.getTime())&&this._getNextDate(1)>t)},_updateCurrentDate:function(e){var t=this._getNextDate(e);s.normalizeDate(t,this.option("min"),this.option("max")),this.notifyObserver("currentDateUpdated",t)},_getNextDate:function(e){var t=this._getConfig(),n=t.duration*e,i=t.getDate(new Date(this.option("date")),n);return i},_renderFocusTarget:o,_initMarkup:function(){this.callBase(),this._renderCaption()},_render:function(){this.callBase(),this._renderPopover(),this._renderCaptionKeys()},_renderPopover:function(){var e=d.current().generic?g:_,t=i("<div>").addClass(S);this._popover=this._createComponent(t,e,{onContentReady:this._popoverContentReadyHandler.bind(this),defaultOptionsRules:[{device:function(){return!d.current().generic},options:{fullScreen:!0,showCloseButton:!1,toolbarItems:[{shortcut:"cancel"}]}},{device:function(){return d.current().generic},options:{target:this._caption.$element()}}]}),this._popover.$element().appendTo(this.$element())},_popoverContentReadyHandler:function(){this._calendar=this._createComponent(i("<div>"),f,this._calendarOptions()),this._calendar.$element().addClass(b),this._popover.$content().append(this._calendar.$element())},_calendarOptions:function(){return{min:this.option("min"),max:this.option("max"),firstDayOfWeek:this.option("firstDayOfWeek"),value:this.option("date"),focusStateEnabled:this.option("focusStateEnabled"),onValueChanged:function(e){this.option("visible")&&(this.notifyObserver("currentDateUpdated",e.value),this._popover.hide())}.bind(this),hasFocus:function(){return!0},tabIndex:null,_keyboardProcessor:this._calendarKeyboardProcessor}},_renderCaption:function(){var e=this.option("displayedDate")||this.option("date"),t=this._getConfig().getCaption.call(this,e),n=this.option("customizeDateNavigatorText"),i=l.isFunction(n)?n(t):t.text;this._caption.option({text:i,onClick:function(){this._popover.toggle()}.bind(this)})},_renderCaptionKeys:function(){if(this.option("focusStateEnabled")&&!this.option("disabled")){this._calendarKeyboardProcessor=this._caption._keyboardProcessor.attachChildProcessor(),this._setCalendarOption("_keyboardProcessor",this._calendarKeyboardProcessor);var e=this,t=function(){return!e._popover.$content().is(":hidden")||void e._popover.show()},n=function(){e._popover.hide()};this._caption.registerKeyHandler("enter",t),this._caption.registerKeyHandler("space",t),this._caption.registerKeyHandler("tab",n)}},_setCalendarOption:function(e,t){this._calendar&&this._calendar.option(e,t)},_getConfig:function(){var e=this.option("step"),t=R.call(this,e);if(!t)throw r.Error("E1033",e);return t}}).include(m);c("dxSchedulerNavigator",V),e.exports=V},function(e,t,n){var i=n(9),o=n(202),a="dx-scheduler-work-space-day",r=o.inherit({_getElementClass:function(){return a},_getRowCount:function(){return this._getCellCountInDay()},_getCellCount:function(){return this.option("intervalCount")},_setFirstViewDate:function(){this._firstViewDate=this._getViewStartByOptions(),this._setStartDayHour(this._firstViewDate)},_getDateByIndex:function(e){if(1===this.option("intervalCount"))return this._firstViewDate;var t=new Date(this._firstViewDate);return t.setDate(this._firstViewDate.getDate()+e),t},_getFormat:function(){return this._formatWeekdayAndDay},_renderDateHeader:function(){if(1!==this.option("intervalCount"))return this.callBase()},_getRightCell:function(e){return e?this._$focusedCell:this.callBase(e)},_getLeftCell:function(e){return e?this._$focusedCell:this.callBase(e)}});i("dxSchedulerWorkSpaceDay",r),e.exports=r},function(e,t,n){var i=n(385),o="dx-group-row-count",a=i.inherit({prepareCellIndexes:function(e,t,n){var i=this._workSpace.isGroupedByDate();return i?{rowIndex:e.rowIndex,cellIndex:e.cellIndex*this._workSpace._getGroupCount()+t}:{rowIndex:e.rowIndex,cellIndex:e.cellIndex+t*this._workSpace._getCellCount()}},calculateCellIndex:function(e,t){return t%=this._workSpace._getCellCount(),this._workSpace._getRowCount()*t+e},getGroupIndex:function(e,t){var n=this._workSpace.isGroupedByDate(),i=this._workSpace._getGroupCount();return n?t%i:Math.floor(t/this._workSpace._getCellCount())},calculateHeaderCellRepeatCount:function(){return this._workSpace._getGroupCount()||1},insertAllDayRowsIntoDateTable:function(){return!1},getTotalCellCount:function(e){return e=e||1,this._workSpace._getCellCount()*e},getTotalRowCount:function(){return this._workSpace._getRowCount()},addAdditionalGroupCellClasses:function(e,t){return e=this._addLastGroupCellClass(e,t),this._addFirstGroupCellClass(e,t)},_addLastGroupCellClass:function(e,t){var n=this._workSpace.option("groupByDate");if(n){if(t%this._workSpace._getGroupCount()===0)return e+" "+this.getLastGroupCellClass()}else if(t%this._workSpace._getCellCount()===0)return e+" "+this.getLastGroupCellClass();return e},_addFirstGroupCellClass:function(e,t){return(t-1)%this._workSpace._getCellCount()===0?e+" "+this.getFirstGroupCellClass():e},getHorizontalMax:function(e){return this._workSpace.getMaxAllowedPosition()[e]},getVerticalMax:function(e){return this._workSpace.getMaxAllowedVerticalPosition()[0]},calculateTimeCellRepeatCount:function(){return 1},getWorkSpaceMinWidth:function(){return this._workSpace.$element().get(0).getBoundingClientRect().width-this._workSpace.getTimePanelWidth()},getAllDayOffset:function(){return this._workSpace.getAllDayHeight()},getAllDayTableHeight:function(){return this._workSpace._$allDayTable.get(0).getBoundingClientRect().height||0},getGroupCountAttr:function(e,t){return{attr:o,count:t&&t.elements.length}},getLeftOffset:function(){return this._workSpace.getTimePanelWidth()},getGroupBoundsOffset:function(e,t,n,i){var o,a,r,s,l;return this._workSpace.isGroupedByDate()?(r=0,s=t.eq(r).offset().left-n/2,l=t.eq(e*this._workSpace._getGroupCount()-1).offset().left+n+n/2):(a=this._workSpace.getCellIndexByCoordinates(i),o=i.groupIndex||Math.floor(a/e),r=o*e,s=t.eq(r).offset().left-n/2,l=t.eq(r+e-1).offset().left+n+n/2),{left:s,right:l,top:0,bottom:0}},shiftIndicator:function(e,t,n,i){var o=this._workSpace._getCellCount()*this._workSpace.getRoundedCellWidth(i-1,0)*i+this._workSpace.getIndicatorOffset(i)+i,a=n?n-o:o;e.css("left",a),e.css("top",t)},getShaderOffset:function(e,t){var n=this._workSpace._getCellCount()*this._workSpace.getRoundedCellWidth(e-1)*e;return this._workSpace.option("rtlEnabled")?this._workSpace._dateTableScrollable.$content().get(0).getBoundingClientRect().width-n-this._workSpace.getTimePanelWidth()-t:n},getShaderTopOffset:function(e){return-this.getShaderMaxHeight()*(e>0?1:0)},getShaderHeight:function(){var e=this._workSpace.getIndicationHeight();return e},getShaderMaxHeight:function(){return this._workSpace._dateTableScrollable.$content().get(0).getBoundingClientRect().height},getShaderWidth:function(e){return this._workSpace.getIndicationWidth(e)},getScrollableScrollTop:function(e){return e?0:this._workSpace.getScrollable().scrollTop()}});e.exports=a},function(e,t,n){var i=n(385),o="dx-group-column-count",a=10,r=i.inherit({prepareCellIndexes:function(e,t,n){var i=e.rowIndex+t*this._workSpace._getRowCount();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(i+=t,n||(i+=1)),{rowIndex:i,cellIndex:e.cellIndex}},calculateCellIndex:function(e,t){return e%=this._workSpace._getRowCount(),this._workSpace._getRowCount()*t+e},getGroupIndex:function(e,t){return Math.floor(e/this._workSpace._getRowCount())},calculateHeaderCellRepeatCount:function(){return 1},insertAllDayRowsIntoDateTable:function(){return this._workSpace.option("showAllDayPanel")},getTotalCellCount:function(e){return this._workSpace._getCellCount()},getTotalRowCount:function(){return this._workSpace._getRowCount()*this._workSpace._getGroupCount()},addAdditionalGroupCellClasses:function(e,t,n,i){return e=this._addLastGroupCellClass(e,n+1),this._addFirstGroupCellClass(e,n+1)},_addLastGroupCellClass:function(e,t){return t%this._workSpace._getRowCount()===0?e+" "+this.getLastGroupCellClass():e},_addFirstGroupCellClass:function(e,t){return(t-1)%this._workSpace._getRowCount()===0?e+" "+this.getFirstGroupCellClass():e},getHorizontalMax:function(e){return this._workSpace.getMaxAllowedPosition()[0]},getVerticalMax:function(e){var t=this._workSpace.getMaxAllowedVerticalPosition()[e];return t+=this._getOffsetByAllDayPanel(e)},_getOffsetByAllDayPanel:function(e){var t=0;return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(t=this._workSpace.getCellHeight()*(e+1)),t},_getGroupTop:function(e){return this._workSpace.getMaxAllowedVerticalPosition()[e]-this._workSpace.getCellHeight()*this._workSpace._getRowCount()},calculateTimeCellRepeatCount:function(){return this._workSpace._getGroupCount()||1},getWorkSpaceMinWidth:function(){var e=this._workSpace._getWorkSpaceWidth(),t=this._workSpace.$element().get(0).getBoundingClientRect().width-this._workSpace.getTimePanelWidth()-this._workSpace.getGroupTableWidth();return e<t&&(e=t),e},getAllDayOffset:function(){return 0},getAllDayTableHeight:function(){return 0},getGroupCountAttr:function(){return{attr:o,count:this._workSpace.option("groups")&&this._workSpace.option("groups").length}},getLeftOffset:function(){return this._workSpace.getTimePanelWidth()+this._workSpace.getGroupTableWidth()},getGroupBoundsOffset:function(e,t,n,i){var o=i.groupIndex,r=t.eq(0).offset().left,s=t.eq(e-1).offset().left+n,l=this._workSpace._calculateDayDuration()/this._workSpace.option("hoursInterval")*this._workSpace.getCellHeight(),u=this.getScrollableScrollTop(),c=o*l+this._workSpace._$thead.get(0).getBoundingClientRect().height+this._workSpace.invoke("getHeaderHeight")+a-u;this._workSpace.option("showAllDayPanel")&&this._workSpace.supportAllDayRow()&&(c+=this._workSpace.getCellHeight()*(o+1));var d=c+l;return{left:r,right:s,top:c,bottom:d}},shiftIndicator:function(e,t,n,i){var o=this._workSpace.getIndicatorOffset(0),a=this._workSpace.option("crossScrollingEnabled")?0:this._workSpace.getGroupTableWidth(),r=n?n-o:o,s=this._workSpace._getRowCount()*this._workSpace.getCellHeight()*i;this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(s+=this._workSpace.getAllDayHeight()*(i+1)),e.css("left",r+a),e.css("top",t+s)},getShaderOffset:function(e,t){var n=this._workSpace.option("crossScrollingEnabled")?0:this._workSpace.getGroupTableWidth();return this._workSpace.option("rtlEnabled")?this._$container.get(0).getBoundingClientRect().width-n-this._workSpace.getWorkSpaceLeftOffset()-t:n},getShaderTopOffset:function(e){return 0},getShaderHeight:function(){var e=this._workSpace.getIndicationHeight();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(e+=this._workSpace.getCellHeight()),e},getShaderMaxHeight:function(){var e=this._workSpace._getRowCount()*this._workSpace.getCellHeight();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(e+=this._workSpace.getCellHeight()),e},getShaderWidth:function(e){return this._workSpace.getIndicationWidth(0)},getScrollableScrollTop:function(e){return this._workSpace.getScrollable().scrollTop()}});e.exports=r},function(e,t,n){var i=n(2),o=n(386),a="dx-scheduler-date-time-shader-all-day",r="dx-scheduler-date-time-shader-top",s="dx-scheduler-date-time-shader-bottom",l=o.inherit({_renderShader:function(){var e=this._getShaderHeight(),t=this._getShaderMaxHeight(),n=!1;if(e>t&&(e=t,n=!0),e>=0){this._$shader.height(e);var i=this._workspace._getGroupCount()||1;if(n)this._renderTopShader(this._$shader,e,this._$container.get(0).getBoundingClientRect().width,0),this._renderAllDayShader(this._$container.get(0).getBoundingClientRect().width,0);else for(var o=0;o<i;o++){var a=this._getShaderWidth(o);this._renderTopShader(this._$shader,e,a,o),this._renderBottomShader(this._$shader,t-e,a,o),this._renderAllDayShader(a,o)}}},_renderTopShader:function(e,t,n,o){this._$topShader=i("<div>").addClass(r),n&&this._$topShader.width(n)&&this._$topShader.height(t),this._$topShader.css("marginTop",this._getShaderTopOffset(o)),this._$topShader.css("left",this._getShaderOffset(o,n)),e.append(this._$topShader)},_renderBottomShader:function(e,t,n,o){this._$bottomShader=i("<div>").addClass(s),this._$bottomShader.width(n-this._workspace.getCellWidth())&&this._$bottomShader.height(t),this._$bottomShader.css("left",this._getShaderOffset(o,n-this._workspace.getCellWidth())),e.append(this._$bottomShader)},_renderAllDayShader:function(e,t){this._workspace.option("showAllDayPanel")&&(this._$allDayIndicator=i("<div>").addClass(a),this._$allDayIndicator.height(this._workspace.getAllDayHeight()),this._$allDayIndicator.width(e),this._$allDayIndicator.css("left",this._getShaderOffset(t,e)),this._workspace._$allDayPanel.prepend(this._$allDayIndicator))},_getShaderOffset:function(e,t){return this._workspace.getGroupedStrategy().getShaderOffset(e,t)},_getShaderTopOffset:function(e){return this._workspace.getGroupedStrategy().getShaderTopOffset(e)},_getShaderHeight:function(e,t){return this._workspace.getGroupedStrategy().getShaderHeight()},_getShaderMaxHeight:function(e,t){return this._workspace.getGroupedStrategy().getShaderMaxHeight()},_getShaderWidth:function(e){return this._workspace.getGroupedStrategy().getShaderWidth(e)},clean:function(){this.callBase(),this._workspace&&this._workspace._$allDayPanel&&this._workspace._$allDayPanel.find("."+a).remove()}});e.exports=l},function(e,t,n){var i=n(9),o=n(22),a=o.dateToMilliseconds,r=n(387),s=n(33),l="dx-scheduler-work-space-work-week",u=[1,2,3,4,5],c=0,d=r.inherit({_getElementClass:function(){return l},_getCellCount:function(){return 5*this.option("intervalCount")},_firstDayOfWeek:function(){return this.option("firstDayOfWeek")||1},_getDateByIndex:function(e){var t=new Date(this._firstViewDate);e%this._getCellCount()===0&&(c=0),t.setDate(this._firstViewDate.getDate()+e+c);for(var n=t.getDay();u.indexOf(n)===-1;)t.setDate(t.getDate()+1),n=t.getDay(),c++;return t},_renderView:function(){c=0,this.callBase()},_getWeekendsCount:function(e){return 2*Math.floor(e/7)},_setFirstViewDate:function(){this._firstViewDate=o.getFirstWeekDate(this._getViewStartByOptions(),this._firstDayOfWeek()||s.firstDayOfWeekIndex()),this._firstViewDate=o.normalizeDateByWeek(this._firstViewDate,this._getViewStartByOptions()),this._setStartDayHour(this._firstViewDate)},_getOffsetByCount:function(e){var t=this._getCellCount(),n=Math.floor(e/t);e-=t*n;var i=Math.floor(e/5);return a("day")*i*2}});i("dxSchedulerWorkSpaceWorkWeek",d),e.exports=d},function(e,t,n){var i=n(2),o=n(4).noop,a=n(9),r=n(202),s=n(22),l=n(33),u="dx-scheduler-work-space-month",c="dx-scheduler-date-table-current-date",d="dx-scheduler-date-table-first-of-month",h="dx-scheduler-date-table-other-month",p="dx-scheduler-scrollable-fixed-content",f=7,g=864e5,_=s.dateToMilliseconds,m=r.inherit({_toggleFixedScrollableClass:function(){this._dateTableScrollable.$content().toggleClass(p,!this._isWorkSpaceWithCount()&&!this._isVerticalGroupedWorkSpace())},_getElementClass:function(){return u},_getRowCount:function(){return this._isWorkSpaceWithCount()?4*this.option("intervalCount")+2:6},_getCellCount:function(){return f},_getDateByIndex:function(e){var t=new Date(this._firstViewDate);return t.setDate(this._firstViewDate.getDate()+e),t},_getFormat:function(){return this._formatWeekday},_calculateCellIndex:function(e,t){return this._isVerticalGroupedWorkSpace()?e%=this._getRowCount():t%=this._getCellCount(),e*this._getCellCount()+t},_getInterval:function(){return g},_getIntervalBetween:function(e){var t=this.getStartViewDate(),n=s.getTimezonesDifference(t,e);return e.getTime()-(t.getTime()-36e5*this.option("startDayHour"))-n},_getDateByCellIndexes:function(e,t){var n=this.callBase(e,t);return this._setStartDayHour(n),n},getCellWidth:function(){var e=7,t=0;return this._getCells().slice(0,e).each(function(e,n){return t+=n.getBoundingClientRect().width}),t/e},_calculateHiddenInterval:function(){return 0},_insertAllDayRowsIntoDateTable:function(){return!1},_getCellCoordinatesByIndex:function(e){var t=Math.floor(e/this._getCellCount()),n=e-this._getCellCount()*t;return{rowIndex:t,cellIndex:n}},_createWorkSpaceElements:function(){this._isVerticalGroupedWorkSpace()?this._createWorkSpaceScrollableElements():this.callBase()},_needCreateCrossScrolling:function(){return this.option("crossScrollingEnabled")||this._isVerticalGroupedWorkSpace()},_renderTimePanel:o,_renderAllDayPanel:o,_getTableAllDay:o,_toggleAllDayVisibility:o,_changeAllDayVisibility:o,_setFirstViewDate:function(){var e=s.getFirstMonthDate(this._getViewStartByOptions());this._firstViewDate=s.getFirstWeekDate(e,this.option("firstDayOfWeek")||l.firstDayOfWeekIndex()),this._setStartDayHour(this._firstViewDate);var t=this._getViewStartByOptions();this._minVisibleDate=new Date(t.setDate(1)),this._maxVisibleDate=new Date(new Date(t.setMonth(t.getMonth()+this.option("intervalCount"))).setDate(0))},_getViewStartByOptions:function(){if(this.option("startDate")){var e=this._getStartViewDate(),t=this.option("currentDate"),n=e.getTime()<=t.getTime()?1:-1,i=new Date(new Date(this._getStartViewDate().setMonth(this._getStartViewDate().getMonth()+n*this.option("intervalCount"))));for(n>0&&i.setDate(0);!this._dateInRange(t,e,i,n);)e=new Date(i),n>0&&(e.setDate(1),e.setMonth(e.getMonth()+1)),i=new Date(new Date(i.setMonth(i.getMonth()+n*this.option("intervalCount"))));return n>0?e:i}return new Date(this.option("currentDate").getTime())},_getStartViewDate:function(){var e=s.getFirstMonthDate(this.option("startDate"));return e},_renderTableBody:function(e){e.getCellText=this._getCellText.bind(this),this.callBase(e)},_getCellText:function(e,t){this.option("groupByDate")&&this._getGroupCount()?t=Math.floor(t/this._getGroupCount()):t%=this._getCellCount();var n=this._getDate(e,t);return this._isWorkSpaceWithCount()&&this._isFirstDayOfMonth(n)?this._formatMonthAndDay(n):l.format(n,"dd")},_formatMonthAndDay:function(e){var t=l.getMonthNames("abbreviated")[e.getMonth()];return[t,l.format(e,"day")].join(" ")},_getDate:function(e,t){var n=new Date(this._firstViewDate),i=this._getRowCount();return n.setDate(n.getDate()+e%i*f+t),n},_updateIndex:function(e){return e},_prepareCellData:function(e,t,n){var o=this.callBase(e,t,n),a=i(n);return a.toggleClass(c,this._isCurrentDate(o.startDate)).toggleClass(d,this._isFirstDayOfMonth(o.startDate)).toggleClass(h,this._isOtherMonth(o.startDate)),o},_isCurrentDate:function(e){var t=new Date;return s.sameDate(e,t)},_isFirstDayOfMonth:function(e){return this._isWorkSpaceWithCount()&&1===e.getDate()},_isOtherMonth:function(e){return!s.dateInRange(e,this._minVisibleDate,this._maxVisibleDate,"date")},needRenderDateTimeIndication:function(){return!1},getCellDuration:function(){return 36e5*this._calculateDayDuration()},getIntervalDuration:function(){return _("day")},getTimePanelWidth:function(){return 0},getPositionShift:function(e){return{cellPosition:e*this.getCellWidth(),top:0,left:0}},getCellCountToLastViewDate:function(e){var t=e.getTime(),n=this.getEndViewDate().getTime(),i=this.getCellDuration();return Math.ceil((n-t)/i)},supportAllDayRow:function(){return!1},keepOriginalHours:function(){return!0},calculateEndDate:function(e){var t=new Date(e);return new Date(t.setHours(this.option("endDayHour")))},getWorkSpaceLeftOffset:function(){return 0},needApplyCollectorOffset:function(){return!0},_getDateTableBorderOffset:function(){return this._getDateTableBorder()},_getCellPositionByIndex:function(e,t){var n,i=this.callBase(e,t),o=this._getCellCoordinatesByIndex(e).rowIndex;return n=this._isVerticalGroupedWorkSpace()?this.getCellHeight()*(o+t*this._getRowCount()):this.getCellHeight()*o,n&&(i.top=n),i},_getHeaderDate:function(){return this._getViewStartByOptions()},_supportCompactDropDownAppointments:function(){return!1},scrollToTime:o});a("dxSchedulerWorkSpaceMonth",m),e.exports=m},function(e,t,n){var i=n(9),o=n(258),a="dx-scheduler-timeline-day",r=o.inherit({_getElementClass:function(){return a},_setFirstViewDate:function(){this._firstViewDate=this.option("currentDate"),this._setStartDayHour(this._firstViewDate)},_needRenderWeekHeader:function(){return this._isWorkSpaceWithCount()}});i("dxSchedulerTimelineDay",r),e.exports=r},function(e,t,n){var i=n(386),o=i.inherit({_renderShader:function(){var e="horizontal"===this._workspace.option("groupOrientation")?this._workspace._getGroupCount():1;if(this._customizeShader(this._$shader,0),e>1)for(var t=1;t<e;t++){var n=this._createShader();this._customizeShader(n,1),this._shader.push(n)}},_customizeShader:function(e,t){var n=this._workspace.getIndicationWidth(),i=this._$container.get(0).getBoundingClientRect().width;n>i&&(n=i),n>0&&e.width(n),e.css("left",this._workspace._getCellCount()*this._workspace.getCellWidth()*t)}});e.exports=o},function(e,t,n){var i=n(9),o=n(388),a=n(22),r=a.dateToMilliseconds,s="dx-scheduler-timeline-work-week",l=1,u=o.inherit({_getElementClass:function(){return s},_getWeekDuration:function(){
103return 5},_firstDayOfWeek:function(){return this.option("firstDayOfWeek")||l},_incrementDate:function(e){var t=e.getDay();5===t&&e.setDate(e.getDate()+2),this.callBase(e)},_getOffsetByCount:function(e,t){var n=Math.floor(e/(5*this._getCellCountInDay()));return n>0?r("day")*n*2:0},_getWeekendsCount:function(e){return 2*Math.floor(e/7)},_setFirstViewDate:function(){this._firstViewDate=a.getFirstWeekDate(this.option("currentDate"),this._firstDayOfWeek()),this._firstViewDate=a.normalizeDateByWeek(this._firstViewDate,this.option("currentDate")),this._setStartDayHour(this._firstViewDate)}});i("dxSchedulerTimelineWorkWeek",u),e.exports=u},function(e,t,n){var i=n(9),o=n(258),a=n(22),r="dx-scheduler-timeline-month",s=864e5,l=a.dateToMilliseconds,u=o.inherit({_renderView:function(){this.callBase(),this._updateScrollable()},_getElementClass:function(){return r},_getDateHeaderTemplate:function(){return this.option("dateCellTemplate")},_getHiddenInterval:function(){return 0},_getIndicationFirstViewDate:function(){return a.trimTime(new Date(this._firstViewDate))},getCellDuration:function(){return l("day")},calculateEndViewDate:function(e){return new Date(e.getTime()+this._calculateDayDuration()*l("hour"))},_getCellCount:function(){var e=this.option("currentDate"),t=0;if(this._isWorkSpaceWithCount())for(var n=this.option("intervalCount"),i=1;i<=n;i++)t+=new Date(e.getFullYear(),e.getMonth()+i,0).getDate();else t=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return t},_setFirstViewDate:function(){this._firstViewDate=a.getFirstMonthDate(this.option("currentDate")),this._setStartDayHour(this._firstViewDate)},_getFormat:function(){return this._formatWeekdayAndDay},_getDateByIndex:function(e){var t=new Date(this._firstViewDate);return t.setDate(this._firstViewDate.getDate()+e),t},_getInterval:function(){return s},_getIntervalBetween:function(e){var t=this.getStartViewDate(),n=a.getTimezonesDifference(t,e);return e.getTime()-(t.getTime()-36e5*this.option("startDayHour"))-n},calculateEndDate:function(e){var t=new Date(e);return new Date(t.setHours(this.option("endDayHour")))},_calculateHiddenInterval:function(){return 0},_getDateByCellIndexes:function(e,t){var n=this.callBase(e,t);return this._setStartDayHour(n),n},needUpdateScrollPosition:function(e,t,n,i){return this._dateWithinBounds(n,i)},getPositionShift:function(){return{top:0,left:0,cellPosition:0}}});i("dxSchedulerTimelineMonth",u),e.exports=u},function(e,t,n){var i=n(2),o=n(11),a=n(4).noop,r=n(3).each,s=n(12).getPublicElement,l=n(9),u=n(384),c=n(0).extend,d=n(33),h=n(257),p="dx-scheduler-agenda",f="dx-scheduler-agenda-date",g="dx-scheduler-group-table",_="dx-group-column-count",m="dx-scheduler-time-panel-row",v="dx-scheduler-time-panel-cell",y="dx-scheduler-agenda-nodata",x="dx-scheduler-date-table-last-row",b=5,w=20,C=u.inherit({_activeStateUnit:void 0,_getDefaultOptions:function(){return c(this.callBase(),{agendaDuration:7,rowHeight:60,noDataText:""})},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"agendaDuration":break;case"noDataText":case"rowHeight":this._recalculateAgenda(this._rows);break;case"groups":n&&n.length?this._$groupTable||(this._initGroupTable(),this._dateTableScrollable.$content().prepend(this._$groupTable)):this._$groupTable&&(this._$groupTable.remove(),this._$groupTable=null,this._detachGroupCountAttr()),this.callBase(e);break;default:this.callBase(e)}},_renderFocusState:a,_renderFocusTarget:a,_cleanFocusState:a,supportAllDayRow:function(){return!1},_isVerticalGroupedWorkSpace:function(){return!1},_getElementClass:function(){return p},_setFirstViewDate:function(){this._firstViewDate=new Date(this.option("currentDate")),this._setStartDayHour(this._firstViewDate)},_getRowCount:function(){return this.option("agendaDuration")},_getCellCount:function(){return 1},_getTimePanelRowCount:function(){return this.option("agendaDuration")},_getDateByIndex:a,_getFormat:function(){return"d ddd"},_renderAllDayPanel:a,_toggleAllDayVisibility:a,_initWorkSpaceUnits:function(){this._initGroupTable(),this._$timePanel=i("<table>").addClass(this._getTimePanelClass()),this._$dateTable=i("<table>").addClass(this._getDateTableClass())},_initGroupTable:function(){var e=this.option("groups");e&&e.length&&(this._$groupTable=i("<table>").addClass(g))},_renderView:function(){this._setFirstViewDate(),this._rows=[],this.invoke("getAgendaRows",{agendaDuration:this.option("agendaDuration"),currentDate:new Date(this.option("currentDate"))}).done(function(e){this._recalculateAgenda(e)}.bind(this))},_recalculateAgenda:function(e){var t=[];return this._cleanView(),this._rowsIsEmpty(e)?void this._renderNoData():(this._rows=e,this._$groupTable&&(t=this._renderGroupHeader(),this._setGroupHeaderCellsHeight()),this._renderTimePanel(),this._renderDateTable(),this.invoke("agendaIsReady",e,b,w),this._applyCellTemplates(t),void this._dateTableScrollable.update())},_renderNoData:function(){this._$noDataContainer=i("<div>").addClass(y).html(this.option("noDataText")),this._dateTableScrollable.$content().append(this._$noDataContainer)},_setTableSizes:a,_toggleHorizontalScrollClass:a,_createCrossScrollingConfig:a,_setGroupHeaderCellsHeight:function(){var e=this._getGroupHeaderCells().filter(function(e,t){return!t.getAttribute("rowSpan")}),t=this._removeEmptyRows(this._rows);if(t.length)for(var n=0;n<e.length;n++){var i=e.eq(n).find(".dx-scheduler-group-header-content");i.outerHeight(this._getGroupRowHeight(t[n]))}},_rowsIsEmpty:function(e){for(var t=!0,n=0;n<e.length;n++)for(var i=e[n],o=0;o<i.length;o++)if(i[o]){t=!1;break}return t},_detachGroupCountAttr:function(){this.$element().removeAttr(_)},_attachGroupCountAttr:function(){this.$element().attr(_,this.option("groups").length)},_removeEmptyRows:function(e){for(var t=[],n=function(e){return!e.some(function(e){return e>0})},i=0;i<e.length;i++)e[i].length&&!n(e[i])&&t.push(e[i]);return t},_getGroupHeaderContainer:function(){return this._$groupTable},_makeGroupRows:function(){var e=this.invoke("createReducedResourcesTree"),t=this.option("resourceCellTemplate"),n=this._getGroupHeaderContentClass(),a=[],r=h.makeGroupedTableFromJSON(h.VERTICAL,e,{cellTag:"th",groupTableClass:g,groupRowClass:this._getGroupRowClass(),groupCellClass:this._getGroupHeaderClass(),groupCellCustomContent:function(e,r,l,u){var c=o.createElement("div"),d=o.createElement("div");c.className=n,d.appendChild(r),c.appendChild(d),c.className=n,t&&t.render?a.push(t.render.bind(t,{model:{data:u.data,id:u.value,color:u.color,text:r.textContent},container:s(i(c)),index:l})):(d.appendChild(r),c.appendChild(d)),e.appendChild(c)},cellTemplate:t});return{elements:i(r).find("."+this._getGroupRowClass()),cellTemplates:a}},_cleanView:function(){this._$dateTable.empty(),this._$timePanel.empty(),this._$groupTable&&this._$groupTable.empty(),this._$noDataContainer&&(this._$noDataContainer.empty(),this._$noDataContainer.remove(),delete this._$noDataContainer)},_createWorkSpaceElements:function(){this._createWorkSpaceStaticElements()},_createWorkSpaceStaticElements:function(){this._$groupTable&&this._dateTableScrollable.$content().prepend(this._$groupTable),this._dateTableScrollable.$content().append(this._$timePanel,this._$dateTable),this.$element().append(this._dateTableScrollable.$element())},_renderDateTable:function(){this._renderTableBody({container:s(this._$dateTable),rowClass:this._getDateTableRowClass(),cellClass:this._getDateTableCellClass()})},_attachTablesEvents:a,_attachEvents:a,_cleanCellDataCache:a,needRenderDateTimeIndication:function(){return!1},_prepareCellTemplateOptions:function(e,t,n,i){var o=this.option("groups"),a={},r=o.length&&this._getPathToLeaf(n)||[];return r.forEach(function(e,t){var n=o[t].name;a[n]=e}),{model:{text:e,date:t,groups:a},container:s(i),index:n}},_renderTableBody:function(e){var t=[],n=e.cellTemplate;this._$rows=[];for(var o=function(o,r){if(r){var s,l,u,c=i("<tr>"),h=i("<td>").height(this._getRowHeight(r));if(e.getStartDate&&(s=e.getStartDate&&e.getStartDate(o),l=d.format(s,"d"),u=d.format(s,this._formatWeekday)),n&&n.render){var p=this._prepareCellTemplateOptions(l+" "+u,s,a,h);t.push(n.render.bind(n,p))}else l&&u&&h.addClass(f).text(l+" "+u);e.rowClass&&c.addClass(e.rowClass),e.cellClass&&h.addClass(e.cellClass),c.append(h),this._$rows.push(c)}}.bind(this),a=0;a<this._rows.length;a++)r(this._rows[a],o),this._setLastRowClass();i(e.container).append(i("<tbody>").append(this._$rows)),this._applyCellTemplates(t)},_setLastRowClass:function(){if(this._rows.length>1&&this._$rows.length){var e=this._$rows[this._$rows.length-1];e.addClass(x)}},_renderTimePanel:function(){this._renderTableBody({container:s(this._$timePanel),rowCount:this._getTimePanelRowCount(),cellCount:1,rowClass:m,cellClass:v,cellTemplate:this.option("dateCellTemplate"),getStartDate:this._getTimePanelStartDate.bind(this)})},_getTimePanelStartDate:function(e){var t=new Date(this.option("currentDate")),n=new Date(t.setDate(t.getDate()+e));return n},_getRowHeight:function(e){var t=this.option("rowHeight"),n=(e-1)*b;return e?t*e+n+w:0},_getGroupRowHeight:function(e){if(e){for(var t=0,n=0;n<e.length;n++)t+=this._getRowHeight(e[n]);return t}},getAgendaVerticalStepHeight:function(){return this.option("rowHeight")},getEndViewDate:function(){var e=new Date(this.option("currentDate")),t=this.option("agendaDuration");e.setHours(this.option("endDayHour"));var n=e.setDate(e.getDate()+t-1)-6e4;return new Date(n)},getCoordinatesByDate:function(){return{top:0,left:0,max:0,groupIndex:0}},getCellDataByCoordinates:function(){return{startDate:null,endDate:null}}});l("dxSchedulerAgenda",C),e.exports=C},function(e,t,n){var i=n(15),o=n(13),a=n(4).grep,r=n(1).isDefined,s=n(48),l=n(3),u=n(0).extend,c=n(13).inArray,d=n(41),h=n(20),p=n(44),f=n(6),g=f.when,_=f.Deferred,m=function(e){return e.valueExpr||"id"},v=function(e){return e.displayExpr||"text"},y=i.inherit({_wrapDataSource:function(e){return e instanceof p.DataSource?e:new p.DataSource({store:p.normalizeDataSourceOptions(e).store,pageSize:0})},_mapResourceData:function(e,t){var n=h.compileGetter(m(e)),i=h.compileGetter(v(e));return l.map(t,function(e){var t={id:n(e),text:i(e)};return e.color&&(t.color=e.color),t})},_isMultipleResource:function(e){var t=!1;return l.each(this.getResources(),function(n,i){var o=this.getField(i);if(o===e)return t=i.allowMultiple,!1}.bind(this)),t},ctor:function(e){this.setResources(e)},getDataAccessors:function(e,t){var n=null;return l.each(this._dataAccessors[t],function(t,i){if(e===t)return n=i,!1}),n},getField:function(e){return e.fieldExpr||e.field},setResources:function(e){this._resources=e,this._dataAccessors={getter:{},setter:{}},this._resourceFields=l.map(e||[],function(e){var t=this.getField(e);return this._dataAccessors.getter[t]=h.compileGetter(t),this._dataAccessors.setter[t]=h.compileSetter(t),t}.bind(this))},getResources:function(){return this._resources||[]},getResourcesData:function(){return this._resourcesData||[]},getEditors:function(){var e=[],t=this;return l.each(this.getResources(),function(n,i){var o=t.getField(i),a=t._getResourceDataByField(o);e.push({editorOptions:{dataSource:a.length?a:t._wrapDataSource(i.dataSource),displayExpr:v(i),valueExpr:m(i)},dataField:o,editorType:i.allowMultiple?"dxTagBox":"dxSelectBox",label:{text:i.label||o}})}),e},_resourceLoader:{},getResourceDataByValue:function(e,t){var n=this,i=new _;return l.each(this.getResources(),function(o,a){var r=n.getField(a);if(r===e){var s=n._wrapDataSource(a.dataSource),l=m(a);return n._resourceLoader[e]||(n._resourceLoader[e]=s.load()),n._resourceLoader[e].done(function(o){var a=d(o).filter(l,t).toArray();delete n._resourceLoader[e],i.resolve(a[0])}).fail(function(){delete n._resourceLoader[e],i.reject()}),!1}}),i.promise()},setResourcesToItem:function(e,t){var n=this._dataAccessors.setter;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=t[i];n[i](e,this._isMultipleResource(i)?o.wrapToArray(a):a)}},getResourcesFromItem:function(e,t){var n=this,i=null;return r(t)||(t=!1),l.each(n._resourceFields,function(a,r){l.each(e,function(e,a){var s={};s[e]=a;var l=n.getDataAccessors(r,"getter")(s);if(l)return i||(i={}),1===l.length&&(l=l[0]),!t||t&&n._isMultipleResource(r)?n.getDataAccessors(r,"setter")(s,o.wrapToArray(l)):n.getDataAccessors(r,"setter")(s,l),u(i,s),!0})}),i},loadResources:function(e){var t=new _,n=this,i=[];return l.each(this.getResourcesByFields(e),function(e,t){var o=new _,a=n.getField(t);i.push(o),n._wrapDataSource(t.dataSource).load().done(function(e){o.resolve({name:a,items:n._mapResourceData(t,e),data:e})}).fail(function(){o.reject()})}),i.length?(g.apply(null,i).done(function(){var e=Array.prototype.slice.call(arguments),i=function(e){return{name:e.name,items:e.items,data:e.data}};n._resourcesData=e,t.resolve(e.map(i))}).fail(function(){t.reject()}),t.promise()):(n._resourcesData=[],t.resolve([]))},getResourcesByFields:function(e){return a(this.getResources(),function(t){var n=this.getField(t);return c(n,e)>-1}.bind(this))},getResourceByField:function(e){return this.getResourcesByFields([e])[0]||{}},getResourceColor:function(e,t){var n,i=this.getResourceByField(e).valueExpr||"id",o=h.compileGetter(i),a=this.getResourceByField(e).colorExpr||"color",r=h.compileGetter(a),s=new _,l=this._getResourceDataByField(e),u=l.length;if(u){for(var c=0;c<u;c++)if(o(l[c])===t){n=r(l[c]);break}s.resolve(n)}else this.getResourceDataByValue(e,t).done(function(e){e&&(n=r(e)),s.resolve(n)}).fail(function(){s.reject()});return s.promise()},getResourceForPainting:function(e){var t,n=this.getResources();return l.each(n,function(e,n){if(n.useColorAsDefault)return t=n,!1}),t||(Array.isArray(e)&&e.length&&(n=this.getResourcesByFields(e)),t=n[n.length-1]),t},createResourcesTree:function(e){function t(i,o,a,r){a=a||[];for(var s=0;s<i.items.length;s++){var l=i.items[s],u={name:i.name,value:l.id,title:l.text,data:i.data&&i.data[s],children:[],parent:r?r:null};a.push(u);var c=o+1;e[c]&&t.call(this,e[c],c,u.children,u),u.children.length||(u.leafIndex=n,n++)}return a}var n=0,i=i||0;return t.call(this,e[0],0)},_hasGroupItem:function(e,t,n){var i=this.getDataAccessors(t,"getter")(e);return!!(i&&c(n,i)>-1)},_getResourceDataByField:function(e){for(var t=this.getResourcesData(),n=[],i=0,o=t.length;i<o;i++)if(t[i].name===e){n=t[i].data;break}return n},getResourceTreeLeaves:function(e,t,n){n=n||[];for(var i=0;i<e.length;i++)this._hasGroupItem(t,e[i].name,e[i].value)&&(r(e[i].leafIndex)&&n.push(e[i].leafIndex),e[i].children&&this.getResourceTreeLeaves(e[i].children,t,n));return n},groupAppointmentsByResources:function(e,t){var n=this.createResourcesTree(t),i={};return l.each(e,function(e,t){for(var o=this.getResourcesFromItem(t),a=this.getResourceTreeLeaves(n,o),r=0;r<a.length;r++)i[a[r]]||(i[a[r]]=[]),i[a[r]].push(s.deepExtendArraySafe({},t,!0))}.bind(this)),i},reduceResourcesTree:function(e,t,n){n=n?n.children:[];var i=this;return e.forEach(function(e,o){var a=!1,r=e.name,s=e.value,l=e.title,u=e.data,c=i.getDataAccessors(r,"getter");t.forEach(function(e){if(!a){var t=c(e);Array.isArray(t)?t.indexOf(s)>-1&&(n.push({name:r,value:s,title:l,data:u,children:[]}),a=!0):t===s&&(n.push({name:r,value:s,title:l,data:u,children:[]}),a=!0)}}),a&&e.children&&e.children.length&&i.reduceResourcesTree(e.children,t,n[o])}),n}});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")}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(28),s=i(r),l=n(3),u=i(l),c=n(56),d=i(c),h=n(142),p=i(h),f=n(22),g=i(f),_=n(4),m=i(_),v=n(1),y=i(v),x=n(13),b=i(x),w=n(0),C=n(41),k=i(C),S=g.default.dateToMilliseconds,I=0,T=1,D=function(){function e(t){o(this,e),this._filterRegistry=null,this._dataAccessors=t}return a(e,[{key:"isRegistered",value:function(){return!!this._filterRegistry}},{key:"clearRegistry",value:function(){delete this._filterRegistry}},{key:"make",value:function(e,t){this._filterRegistry||(this._filterRegistry={}),this._make(e).apply(this,t)}},{key:"_make",value:function(e){var t=this;switch(e){case"date":return function(e,n,i){var o=i?t._dataAccessors.getter.startDate:t._dataAccessors.expr.startDateExpr,a=i?t._dataAccessors.getter.endDate:t._dataAccessors.expr.endDateExpr,r=t._dataAccessors.expr.recurrenceRuleExpr;t._filterRegistry.date=[[[a,">",e],[o,"<",n]],"or",[r,"startswith","freq"],"or",[[a,e],[o,e]]],r||t._filterRegistry.date.splice(1,2)};case"user":return function(e){t._filterRegistry.user=e}}}},{key:"combine",value:function(){var e=[];return this._filterRegistry.date&&e.push(this._filterRegistry.date),this._filterRegistry.user&&e.push(this._filterRegistry.user),e}},{key:"dateFilter",value:function(){return this._filterRegistry.date}}]),e}(),E=function(e,t,n,i,o){var a=g.default.dateTimeFromDecimal(n),r=e.getHours()>=a.hours&&e.getMinutes()>=a.minutes||t.getHours()===a.hours&&t.getMinutes()>a.minutes||t.getHours()>a.hours||o||i;return r},A=function(e,t,n,i,o,a){var r,s=(24-i+n)*S("hour"),l=t.getTime()-e.getTime(),u=(s-l)/S("hour"),c=e.getHours(),d=e.getMinutes(),h=g.default.dateTimeFromDecimal(i);return r=c<h.hours||c===h.hours&&d<h.minutes||o&&e<=a,l<s&&c>h.hours&&d>h.minutes&&u<=c-i&&(r=!1),r},O=function(){function e(t,n,i){o(this,e),this.setDataAccessors(n),this.setDataSource(t),this._updatedAppointmentKeys=[],this._filterMaker=new D(n),this._baseAppointmentDuration=i}return a(e,[{key:"_createFilter",value:function(e,t,n,i){this._filterMaker.make("date",[e,t]);var o=this._excessFiltering()?this._dataSource.filter()[T]:this._dataSource.filter();this._filterMaker.make("user",[o]),n&&this._dataSource.filter(this._combineRemoteFilter(i))}},{key:"_excessFiltering",value:function(){var e=this._filterMaker.dateFilter(),t=this._dataSource.filter();return t&&(m.default.equalByValue(t,e)||t.length&&m.default.equalByValue(t[I],e))}},{key:"_combineFilter",value:function(){return this._filterMaker.combine()}},{key:"_getStoreKey",value:function(e){var t=this._dataSource.store();return t.keyOf(e)}},{key:"_filterAppointmentByResources",value:function(e,t){for(var n=this,i=!1,o=function(){var i,o=n._dataAccessors.getter.resources[s];y.default.isFunction(o)&&(i=o(e));for(var r=b.default.wrapToArray(i),l=u.default.map(t[a].items,function(e){return e.id}),c=0,d=r.length;c<d;c++)if((0,x.inArray)(r[c],l)>-1)return!0;return!1},a=0,r=t.length;a<r;a++){var s=t[a].name;if(i=o.call(this),!i)return!1}return i}},{key:"_filterAppointmentByRRule",value:function(e,t,n,i,o,a){var r=e.recurrenceRule,s=e.recurrenceException,l=e.allDay,u=!0,c=e.startDate,d=e.endDate;if(l||this._appointmentPartInInterval(c,d,i,o)){var h=this._trimDates(t,n);t=h.min,n=new Date(h.max.getTime()-S("minute"))}return r&&!p.default.getRecurrenceRule(r).isValid&&(u=d>t&&c<=n),u&&p.default.getRecurrenceRule(r).isValid&&(u=p.default.dateInRecurrenceRange({rule:r,exception:s,start:c,end:d,min:t,max:n,firstDayOfWeek:a})),u}},{key:"_appointmentPartInInterval",value:function(e,t,n,i){var o=e.getHours(),a=t.getHours();return o<=n&&a<=i&&a>=n||a>=i&&o<=i&&o>=n}},{key:"_createCombinedFilter",value:function(e,t){var n=this._dataAccessors,i=e.startDayHour,o=e.endDayHour,a=new Date(e.min),r=new Date(e.max),s=e.resources,l=e.firstDayOfWeek,u=e.recurrenceException,c=this;return[[function(d){var h,p=!0,f=new Date(n.getter.startDate(d)),g=new Date(n.getter.endDate(d)),_=c.appointmentTakesAllDay(d,i,o),m=c.appointmentTakesSeveralDays(d),v=n.getter.allDay(d),x=m||_,b=y.default.isDefined(n.getter.recurrenceRule);b&&(h=n.getter.recurrenceRule(d)),s&&s.length&&(p=c._filterAppointmentByResources(d,s)),_&&e.allDay===!1&&(p=!1);var w=n.getter.startDateTimeZone(d),C=n.getter.endDateTimeZone(d),k=t(f,w),S=t(g,C);if(p&&b){var I=u?u(d):n.getter.recurrenceException(d);p=c._filterAppointmentByRRule({startDate:k,endDate:S,recurrenceRule:h,recurrenceException:I,allDay:_},a,r,i,o,l)}return p&&S<a&&x&&!v&&(!b||b&&!h)&&(p=!1),p&&void 0!==i&&(p=E(k,S,i,_,m)),p&&void 0!==o&&(p=A(k,S,i,o,_,r)),p&&b&&!h&&S<a&&!v&&(p=!1),p}]]}},{key:"setDataSource",value:function(e){this._dataSource=e,this.cleanModelState(),this._initStoreChangeHandlers(),this._filterMaker&&this._filterMaker.clearRegistry()}},{key:"_initStoreChangeHandlers",value:function(){var e=this;this._dataSource&&this._dataSource.store().on("updating",function(t){e._updatedAppointment=t}.bind(this)),this._dataSource&&this._dataSource.store().on("push",function(t){t.forEach(function(t){e._updatedAppointmentKeys.push({key:e._dataSource.store().key(),value:t.key})}.bind(e))}.bind(this))}},{key:"getUpdatedAppointment",value:function(){return this._updatedAppointment}},{key:"getUpdatedAppointmentKeys",value:function(){return this._updatedAppointmentKeys}},{key:"cleanModelState",value:function(){this._updatedAppointment=null,this._updatedAppointmentKeys=[]}},{key:"setDataAccessors",value:function(e){this._dataAccessors=e,this._filterMaker=new D(e)}},{key:"filterByDate",value:function(e,t,n,i){if(this._dataSource){var o=this._trimDates(e,t);this._filterMaker.isRegistered()?(this._filterMaker.make("date",[o.min,o.max]),this._dataSource.filter()&&this._dataSource.filter().length>1&&this._filterMaker.make("user",[this._dataSource.filter()[1]]),n&&this._dataSource.filter(this._combineRemoteFilter(i))):this._createFilter(o.min,o.max,n,i)}}},{key:"_combineRemoteFilter",value:function(e){var t=this._filterMaker.combine();return this._serializeRemoteFilter(t,e)}},{key:"_serializeRemoteFilter",value:function(e,t){var n=this;if(!Array.isArray(e))return e;e=(0,w.extend)([],e);var i=n._dataAccessors.expr.startDateExpr,o=n._dataAccessors.expr.endDateExpr;y.default.isString(e[0])&&(0,s.default)().forceIsoDateParsing&&e.length>1&&(e[0]!==i&&e[0]!==o||(e[e.length-1]=d.default.serializeDate(e[e.length-1],t)));for(var a=0;a<e.length;a++)e[a]=n._serializeRemoteFilter(e[a],t);return e}},{key:"filterLoadedAppointments",value:function(e,t){y.default.isFunction(t)||(t=function(e){return e});var n=this._createCombinedFilter(e,t);if(this._filterMaker.isRegistered()){var i=this._trimDates(e.min,e.max);this._filterMaker.make("date",[i.min,i.max,!0]);var o=this.customizeDateFilter(this._filterMaker.combine(),t);n.push([o])}return(0,k.default)(this._dataSource.items()).filter(n).toArray()}},{key:"_trimDates",value:function(e,t){var n=g.default.trimTime(new Date(e)),i=g.default.trimTime(new Date(t));return i.setDate(i.getDate()+1),{min:n,max:i}}},{key:"hasAllDayAppointments",value:function(e,t,n){if(!e)return!1;var i=this,o=!1;return u.default.each(e,function(e,a){if(i.appointmentTakesAllDay(a,t,n))return o=!0,!1}),o}},{key:"appointmentTakesAllDay",value:function(e,t,n){var i=this._dataAccessors,o=i.getter.startDate(e),a=i.getter.endDate(e),r=i.getter.allDay(e);return r||this._appointmentHasAllDayDuration(o,a,t,n)}},{key:"_appointmentHasAllDayDuration",value:function(e,t,n,i){e=new Date(e),t=new Date(t);var o=24,a=this._getAppointmentDurationInHours(e,t);return a>=o||this._appointmentHasShortDayDuration(e,t,n,i)}},{key:"_appointmentHasShortDayDuration",value:function(e,t,n,i){var o=this._getAppointmentDurationInHours(e,t),a=i-n;return o>=a&&e.getHours()===n&&t.getHours()===i}},{key:"_getAppointmentDurationInHours",value:function(e,t){return(t.getTime()-e.getTime())/S("hour")}},{key:"appointmentTakesSeveralDays",value:function(e){var t=this._dataAccessors,n=t.getter.startDate(e),i=t.getter.endDate(e),o=g.default.trimTime(new Date(n)),a=g.default.trimTime(new Date(i));return o.getTime()!==a.getTime()}},{key:"customizeDateFilter",value:function(e,t){var n=this,i=(0,w.extend)(!0,[],e);return function(e){var o=new Date(n._dataAccessors.getter.startDate(e)),a=new Date(n._dataAccessors.getter.endDate(e));a=n.fixWrongEndDate(e,o,a),e=(0,w.extend)(!0,{},e);var r=n._dataAccessors.getter.startDateTimeZone(e),s=n._dataAccessors.getter.endDateTimeZone(e),l=t(o,r),u=t(a,s);return n._dataAccessors.setter.startDate(e,l),n._dataAccessors.setter.endDate(e,u),(0,k.default)([e]).filter(i).toArray().length>0}.bind(this)}},{key:"fixWrongEndDate",value:function(e,t,n){return this._isEndDateWrong(e,t,n)&&(n=this._dataAccessors.getter.allDay(e)?g.default.setToDayEnd(new Date(t)):new Date(t.getTime()+this._baseAppointmentDuration*S("minute")),this._dataAccessors.setter.endDate(e,n)),n}},{key:"_isEndDateWrong",value:function(e,t,n){return!n||isNaN(n.getTime())||t.getTime()>=n.getTime()}},{key:"add",value:function(e,t){var n=this;return this._dataSource.store().insert(e).done(function(){n._dataSource.load()}.bind(this))}},{key:"update",value:function(e,t){var n=this,i=this._getStoreKey(e);return this._dataSource.store().update(i,t).done(function(){n._dataSource.load()}.bind(this))}},{key:"remove",value:function(e){var t=this,n=this._getStoreKey(e);return this._dataSource.store().remove(n).done(function(){t._dataSource.load()}.bind(this))}}]),e}();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(11),s=i(r),l=n(5),u=i(l),c=n(37),d=i(c),h=n(27),p=i(h),f=n(22),g=i(f),_=n(4),m=i(_),v=n(1),y=i(v),x=n(3),b=n(48),w=i(b),C=n(13),k=i(C),S=n(0),I=n(12),T=n(142),D=i(T),E=n(9),A=i(E),O=n(119),B=i(O),P=n(717),M=i(P),R=n(8),V=i(R),F=n(154),L=i(F),H=n(33),z=i(H),N=n(14),$=i(N),W=n(54),G=i(W),j=n(308),q=i(j),K=n(6),U="dxAppointmentSettings",Y="dx-scheduler-scrollable-appointments",X="dx-scheduler-appointment",Z="dx-scheduler-appointment-title",Q="dx-scheduler-appointment-content-details",J="dx-scheduler-appointment-content-date",ee="dx-scheduler-appointment-recurrence-icon",te="dx-scheduler-appointment-content-allday",ne=V.default.addNamespace(L.default.name,"dxSchedulerAppointment"),ie=g.default.dateToMilliseconds,oe=G.default.inherit({_supportedKeys:function(){var e=this.callBase(),t=function(e){var t=this._getAccessAppointments(),n=t.filter(".dx-state-focused"),i=n.data("dxAppointmentSettings").sortedIndex,o=t.length-1;if(i>0&&e.shiftKey||i<o&&!e.shiftKey){e.preventDefault(),e.shiftKey?i--:i++;var a=this._getAppointmentByIndex(i);this._resetTabIndex(a),u.default.trigger(a,"focus")}};return(0,S.extend)(e,{escape:function(){this.moveAppointmentBack(),this._escPressed=!0}.bind(this),del:function(e){if(this.option("allowDelete")){e.preventDefault();var t=this._getItemData(e.target);this.notifyObserver("deleteAppointment",{data:t,target:e.target}),this.notifyObserver("hideAppointmentTooltip")}}.bind(this),tab:t})},_getAppointmentByIndex:function(e){var t=this._getAccessAppointments();return t.filter(function(t,n){return d.default.data(n,"dxAppointmentSettings").sortedIndex===e}).eq(0)},_getAccessAppointments:function(){return this._itemElements().filter(":visible").not(".dx-state-disabled")},_resetTabIndex:function(e){this._focusTarget().attr("tabIndex",-1),e.attr("tabIndex",this.option("tabIndex"))},_moveFocus:m.default.noop,_focusTarget:function(){return this._itemElements()},_renderFocusTarget:function(){var e=this._getAppointmentByIndex(0);this._resetTabIndex(e)},_focusInHandler:function(e){if(this._targetIsDisabled(e))return void e.stopPropagation();clearTimeout(this._appointmentFocusedTimeout),this.callBase.apply(this,arguments),this._$currentAppointment=(0,a.default)(e.target),this.option("focusedElement",(0,I.getPublicElement)((0,a.default)(e.target)));var t=this;this._appointmentFocusedTimeout=setTimeout(function(){t.notifyObserver("appointmentFocused")})},_targetIsDisabled:function(e){return(0,a.default)(e.currentTarget).is(".dx-state-disabled, .dx-state-disabled *")},_focusOutHandler:function(){var e=this._getAppointmentByIndex(0);this.option("focusedElement",(0,I.getPublicElement)(e)),this.callBase.apply(this,arguments)},_eventBindingTarget:function(){return this._itemContainer()},_getDefaultOptions:function(){return(0,S.extend)(this.callBase(),{noDataText:null,activeStateEnabled:!0,hoverStateEnabled:!0,tabIndex:0,fixedContainer:null,allDayContainer:null,allowDrag:!0,allowResize:!0,allowAllDayResize:!0,onAppointmentDblClick:null,_collectorOffset:0})},_optionChanged:function(e){switch(e.name){case"items":this._cleanFocusState(),this._clearDropDownItems(),this._clearDropDownItemsElements(),this._repaintAppointments(e.value),this._renderDropDownAppointments(),this._attachAppointmentsEvents();break;case"fixedContainer":case"allDayContainer":case"onAppointmentDblClick":break;case"allowDrag":case"allowResize":case"allowAllDayResize":this._invalidate();break;case"focusedElement":this._resetTabIndex((0,a.default)(e.value)),this.callBase(e);break;case"allowDelete":break;case"focusStateEnabled":this._clearDropDownItemsElements(),this._renderDropDownAppointments(),this.callBase(e);break;default:this.callBase(e)}},_isAllDayAppointment:function(e){return e.settings.length&&e.settings[0].allDay||!1},_isRepaintAppointment:function(e){return!y.default.isDefined(e.needRepaint)||e.needRepaint===!0},_isRepaintAll:function(e){if(this.invoke("isCurrentViewAgenda"))return!0;for(var t=0;t<e.length;t++){var n=e[t];if(!this._isRepaintAppointment(n))return!1}return!0},_applyFragment:function(e,t){e.children().length>0&&this._getAppointmentContainer(t).append(e)},_onEachAppointment:function(e,t,n,i){return e&&e.needRemove===!0?void this._clearItem(e):void(this._isRepaintAppointment(e)&&(e.needRepaint=!1,!i&&this._clearItem(e),this._renderItem(t,e,n)))},_repaintAppointments:function(e){var t=this,n=this._isRepaintAll(e),i=(0,a.default)(this._getAppointmentContainer(!0)),o=(0,a.default)(this._getAppointmentContainer(!1));n&&(this._getAppointmentContainer(!0).html(""),this._getAppointmentContainer(!1).html("")),!e.length&&this._cleanItemContainer(),e.forEach(function(e,a){var r=t._isAllDayAppointment(e)?i:o;t._onEachAppointment(e,a,r,n)}),this._applyFragment(i,!0),this._applyFragment(o,!1)},_attachAppointmentsEvents:function(){this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent(),this._attachAppointmentDblClick(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()},_clearItem:function(e){var t=this._findItemElementByItem(e.itemData);t.length&&(0,x.each)(t,function(e,t){t.detach(),t.remove()})},_clearDropDownItems:function(){this._virtualAppointments={}},_clearDropDownItemsElements:function(){this.invoke("clearCompactAppointments")},_findItemElementByItem:function(e){var t=[],n=this;return this.itemElements().each(function(){var i=(0,a.default)(this);i.data(n._itemDataKey())===e&&t.push(i)}),t},_itemClass:function(){return X},_itemContainer:function(){var e=this.callBase(),t=e,n=this.option("allDayContainer");return n&&(t=e.add(n)),t},_cleanItemContainer:function(){this.callBase();var e=this.option("allDayContainer");e&&e.empty(),this._virtualAppointments={}},_clean:function(){this.callBase(),delete this._$currentAppointment,delete this._initialSize,delete this._initialCoordinates},_init:function(){this.callBase(),this.$element().addClass(Y),this._preventSingleAppointmentClick=!1},_renderAppointmentTemplate:function(e,t,n){var i=n.settings?new Date(this.invoke("getField","startDate",n.settings)):t.startDate,o=n.settings?new Date(this.invoke("getField","endDate",n.settings)):t.endDate;(isNaN(i)||isNaN(o))&&(i=t.startDate,o=t.endDate),(0,a.default)("<div>").text(this._createAppointmentTitle(t)).addClass(Z).appendTo(e),y.default.isPlainObject(t)&&t.html&&e.html(t.html);var r=t.recurrenceRule,s=t.allDay,l=(0,a.default)("<div>").addClass(Q),u=t.startDateTimeZone,c=t.endDateTimeZone;i=this.invoke("convertDateByTimezone",i,u),o=this.invoke("convertDateByTimezone",o,c),(0,a.default)("<div>").addClass(J).text(z.default.format(i,"shorttime")).appendTo(l),(0,a.default)("<div>").addClass(J).text(" - ").appendTo(l),(0,a.default)("<div>").addClass(J).text(z.default.format(o,"shorttime")).appendTo(l),l.appendTo(e),r&&(0,a.default)("<span>").addClass(ee+" dx-icon-repeat").appendTo(e),s&&(0,a.default)("<div>").text(" "+$.default.format("dxScheduler-allDay")+": ").addClass(te).prependTo(l);
104},_createAppointmentTitle:function(e){return y.default.isPlainObject(e)?e.text:String(e)},_executeItemRenderAction:function(e,t,n){var i=this._getItemRenderAction();i&&i({appointmentElement:n,appointmentData:t,targetedAppointmentData:this.invoke("getTargetedAppointmentData",t,n,e)}),delete this._currentAppointmentSettings},_itemClickHandler:function(e){this.callBase(e,{},{afterExecute:function(e){this._processItemClick(e.args[0].event)}.bind(this)})},_processItemClick:function(e){var t=(0,a.default)(e.currentTarget),n=this._getItemData(t);return this._targetIsDisabled(e)?void e.stopPropagation():"keydown"===e.type||V.default.isFakeClickEvent(e)?void this.notifyObserver("showEditAppointmentPopup",{data:n,target:t}):void(this._appointmentClickTimeout=setTimeout(function(){!this._preventSingleAppointmentClick&&s.default.getBody().contains(t[0])&&this.notifyObserver("showAppointmentTooltip",{data:n,target:t}),this._preventSingleAppointmentClick=!1}.bind(this),300))},_extendActionArgs:function(){var e=this.callBase.apply(this,arguments);return this.invoke("mapAppointmentFields",e)},_render:function(){this.callBase.apply(this,arguments),this._attachAppointmentDblClick()},_attachAppointmentDblClick:function(){var e=this,t=e._itemSelector(),n=this._itemContainer();u.default.off(n,ne,t),u.default.on(n,ne,t,function(t){e._itemDXEventHandler(t,"onAppointmentDblClick",{},{afterExecute:function(t){e._dblClickHandler(t.args[0].event)}})})},_dblClickHandler:function(e){var t=(0,a.default)(e.currentTarget),n=this._getItemData(t);clearTimeout(this._appointmentClickTimeout),this._preventSingleAppointmentClick=!0,this.notifyObserver("showEditAppointmentPopup",{data:n,target:t})},_renderItem:function(e,t,n){for(var i=t.itemData,o=0;o<t.settings.length;o++){var a=t.settings[o];this._currentAppointmentSettings=a;var r=this.callBase(e,i,n);r.data(U,a)}},_getItemContent:function(e){e.data(U,this._currentAppointmentSettings);var t=this.callBase(e);return t},_createItemByTemplate:function(e,t){return e.render({model:t.itemData,container:t.container,index:t.index})},_getAppointmentContainer:function(e){var t=this.option("allDayContainer"),n=this.itemsContainer().not(t);return e&&t&&(n=t),n},_postprocessRenderItem:function(e){this._renderAppointment(e.itemElement,this._currentAppointmentSettings)},_renderAppointment:function(e,t){e.data(U,t),this._applyResourceDataAttr(e);var n=this._getItemData(e),i=this.invoke("getAppointmentGeometry",t),o=!t.isCompact&&this.option("allowResize")&&(!y.default.isDefined(t.skipResizing)||y.default.isString(t.skipResizing)),a=this.option("allowDrag"),r=t.allDay;this.invoke("setCellDataCacheAlias",this._currentAppointmentSettings,i);var s=this._getAppointmentColor(e,t.groupIndex);t.virtual?this._processVirtualAppointment(t,e,n,s):(this._createComponent(e,M.default,{observer:this.option("observer"),data:n,geometry:i,direction:t.direction||"vertical",allowResize:o,allowDrag:a,allDay:r,reduced:t.appointmentReduced,isCompact:t.isCompact,startDate:new Date(t.startDate),cellWidth:this.invoke("getCellWidth"),cellHeight:this.invoke("getCellHeight"),resizableConfig:this._resizableConfig(n,t)}),s.done(function(t){t&&e.css("backgroundColor",t)}),this._renderDraggable(e,r))},_applyResourceDataAttr:function(e){this.notifyObserver("getResourcesFromItem",{itemData:this._getItemData(e),callback:function(t){t&&(0,x.each)(t,function(t,n){for(var i="data-"+m.default.normalizeKey(t.toLowerCase())+"-",o=0;o<n.length;o++)e.attr(i+m.default.normalizeKey(n[o]),!0)})}})},_resizableConfig:function(e,t){return{area:this._calculateResizableArea(t,e),onResizeStart:function(e){if(this._$currentAppointment=(0,a.default)(e.element),this.invoke("needRecalculateResizableArea")){var t=this._calculateResizableArea(this._$currentAppointment.data("dxAppointmentSettings"),this._$currentAppointment.data("dxItemData"));e.component.option("area",t),e.component._renderDragOffsets(e.event)}this._initialSize={width:e.width,height:e.height},this._initialCoordinates=p.default.locate(this._$currentAppointment)}.bind(this),onResizeEnd:function(e){return this._escPressed?void(e.event.cancel=!0):void this._resizeEndHandler(e)}.bind(this)}},_calculateResizableArea:function(e,t){var n=this.$element().closest(".dx-scrollable-content");return this.notifyObserver("getResizableAppointmentArea",{coordinates:{left:e.left,top:0,groupIndex:e.groupIndex},allDay:e.allDay,callback:function(e){e&&(n=e)}}),n},_resizeEndHandler:function(e){var t=(0,a.default)(e.element),n=this._getItemData(t),i=this.invoke("getStartDate",n,!0),o=this.invoke("getEndDate",n,!0),r=this._getDateRange(e,i,o),s={};this.invoke("setField","startDate",s,new Date(r[0])),this.invoke("setField","endDate",s,new Date(r[1]));var l=(0,S.extend)({},n,s);this.notifyObserver("updateAppointmentAfterResize",{target:n,data:l,$appointment:t})},_getDateRange:function(e,t,n){var i,o,a=this._getItemData(e.element),r=this.invoke("getDeltaTime",e,this._initialSize,a),s=this.invoke("getRenderingStrategyDirection"),l=!1,u=this.invoke("isAllDay",a),c=this.invoke("needCorrectAppointmentDates")&&!u;return l="vertical"!==s||u?this.option("rtlEnabled")?e.handles.right:e.handles.left:e.handles.top,l?(i=c?this._correctStartDateByDelta(t,r):t.getTime()-r,o=n.getTime()):(i=t.getTime(),o=c?this._correctEndDateByDelta(n,r):n.getTime()+r),[i,o]},_correctEndDateByDelta:function(e,t){var n=this.invoke("getEndDayHour"),i=this.invoke("getStartDayHour"),o=e.getTime()+t,a=(n-i)*ie("hour"),r=Math.ceil(t/a),s=new Date(e);if(s.setHours(n,0,0,0),o>s.getTime()){var l=s.getTime()-e.getTime(),u=t-l,c=new Date(e.setDate(e.getDate()+r));c.setHours(i),o=c.getTime()+u-a*(r-1)}return o},_correctStartDateByDelta:function(e,t){var n=this.invoke("getEndDayHour"),i=this.invoke("getStartDayHour"),o=e.getTime()-t,a=(n-i)*ie("hour"),r=Math.ceil(t/a),s=new Date(e);if(s.setHours(i,0,0,0),o<s.getTime()){var l=e.getTime()-s.getTime(),u=t-l,c=new Date(e.setDate(e.getDate()-r));c.setHours(n),o=c.getTime()-u+a*(r-1)}return o},_tryGetAppointmentColor:function(e){var t=(0,a.default)(e).data(U);if(t)return this._getAppointmentColor(e,t.groupIndex)},_getAppointmentColor:function(e,t){var n=new K.Deferred;return this.notifyObserver("getAppointmentColor",{itemData:this._getItemData(e),groupIndex:t,callback:function(e){return e.done(function(e){return n.resolve(e)})}}),n.promise()},_renderDraggable:function(e,t){if(this.option("allowDrag")){var n,i=this,o=this.option("fixedContainer"),r=function(n,o){var r=p.default.locate((0,a.default)(n));i.notifyObserver("correctAppointmentCoordinates",{coordinates:r,allDay:t,isFixedContainer:o,callback:function(e){e&&(r=e)}}),p.default.move(e,r)};this.notifyObserver("getDraggableAppointmentArea",{callback:function(e){e&&(n=e)}}),this._createComponent(e,q.default,{area:n,boundOffset:i._calculateBoundOffset(),immediate:!1,onDragStart:function(t){var n=t.event;i._skipDraggableRestriction(n),i.notifyObserver("hideAppointmentTooltip"),o.append(e),i._$currentAppointment=(0,a.default)(t.element),i._initialSize={width:t.width,height:t.height},i._initialCoordinates=p.default.locate(i._$currentAppointment)},onDrag:function(e){r(e.element)},onDragEnd:function(n){r(n.element,!0);var o=i._getAppointmentContainer(t);return o.append(e),this._escPressed?void(n.event.cancel=!0):void i._dragEndHandler(n)}})}},_calculateBoundOffset:function(){var e={top:0};return this.notifyObserver("getBoundOffset",{callback:function(t){e=t}}),e},_skipDraggableRestriction:function(e){this.option("rtlEnabled")?e.maxLeftOffset=null:e.maxRightOffset=null,e.maxBottomOffset=null},_dragEndHandler:function(e){var t=(0,a.default)(e.element),n=this._getItemData(t),i=this._initialCoordinates;this.notifyObserver("updateAppointmentAfterDrag",{data:n,$appointment:t,coordinates:i})},_virtualAppointments:{},_processVirtualAppointment:function(e,t,n,i){var o=e.virtual,a=o.index;y.default.isDefined(this._virtualAppointments[a])||(this._virtualAppointments[a]={coordinates:{top:o.top,left:o.left},items:{data:[],colors:[]},isAllDay:!!o.isAllDay,buttonColor:i}),n.settings=[e],this._virtualAppointments[a].items.data.push(n),this._virtualAppointments[a].items.colors.push(i),t.remove()},_renderContentImpl:function(){this.callBase(),this._renderDropDownAppointments()},_renderDropDownAppointments:function(){(0,x.each)(this._virtualAppointments,function(e){var t=this._virtualAppointments[e],n=t.items,i=t.coordinates,o=t.isAllDay?this.option("allDayContainer"):this.$element(),a=i.left,r=this.invoke("getDropDownAppointmentWidth",t.isAllDay),s=this.invoke("getDropDownAppointmentHeight"),l=0;this.option("rtlEnabled")&&(l=r),this.notifyObserver("renderCompactAppointments",{$container:o,coordinates:{top:i.top,left:a+l},items:n,buttonColor:t.buttonColor,itemTemplate:this.option("itemTemplate"),width:r-this.option("_collectorOffset"),height:s,onAppointmentClick:this.option("onItemClick"),isCompact:this.invoke("isAdaptive")||this._isGroupCompact(t),applyOffset:this._isGroupCompact(t)})}.bind(this))},_isGroupCompact:function(e){return!e.isAllDay&&this.invoke("supportCompactDropDownAppointments")},_sortAppointmentsByStartDate:function(e){e.sort(function(e,t){var n=0,i=new Date(this.invoke("getField","startDate",e.settings||e)).getTime(),o=new Date(this.invoke("getField","startDate",t.settings||t)).getTime();return i<o&&(n=-1),i>o&&(n=1),n}.bind(this))},_processRecurrenceAppointment:function(e,t,n){var i=this.invoke("getField","recurrenceRule",e),o={parts:[],indexes:[]};if(i){for(var a=e.settings||e,r=new Date(this.invoke("getField","startDate",a)),s=new Date(this.invoke("getField","endDate",a)),l=s.getTime()-r.getTime(),u=this.invoke("getField","recurrenceException",e),c=this.invoke("getStartViewDate"),d=this.invoke("getEndViewDate"),h=D.default.getDatesByRecurrence({rule:i,exception:u,start:r,end:s,min:c,max:d}),p=e.settings?1:h.length,f=0;f<p;f++){var g=(0,S.extend)({},e,!0);if(h[f]){var _=this._applyStartDateToObj(h[f],{});this._applyEndDateToObj(new Date(h[f].getTime()+l),_),g.settings=_}else g.settings=a;o.parts.push(g),n||this._processLongAppointment(g,o)}o.indexes.push(t)}return o},_processLongAppointment:function(e,t){var n=this.splitAppointmentByDay(e),i=n.length,o=this.invoke("getEndViewDate").getTime(),a=this.invoke("getStartViewDate").getTime(),r=this.invoke("getField","startDateTimeZone",e);if(t=t||{parts:[]},i>1){(0,S.extend)(e,n[0]);for(var s=1;s<i;s++){var l=this.invoke("getField","startDate",n[s].settings).getTime();l=this.invoke("convertDateByTimezone",l,r),l<o&&l>a&&t.parts.push(n[s])}}return t},_reduceRecurrenceAppointments:function(e,t){(0,x.each)(e,function(e,n){t.splice(n-e,1)})},_combineAppointments:function(e,t){t.length&&k.default.merge(e,t),this._sortAppointmentsByStartDate(e)},_applyStartDateToObj:function(e,t){return this.invoke("setField","startDate",t,e),t},_applyEndDateToObj:function(e,t){return this.invoke("setField","endDate",t,e),t},updateDraggablesBoundOffsets:function(){this.option("allowDrag")&&this.$element().find("."+X).each(function(e,t){var n=(0,a.default)(t),i=this._getItemData(n);this.invoke("isAllDay",i)||q.default.getInstance(n).option("boundOffset",this._calculateBoundOffset())}.bind(this))},moveAppointmentBack:function(){var e=this._$currentAppointment,t=this._initialSize,n=this._initialCoordinates;e&&(n&&(p.default.move(e,n),delete this._initialSize),t&&(e.outerWidth(t.width),e.outerHeight(t.height),delete this._initialCoordinates))},focus:function(){var e=this._$currentAppointment;e&&(this.option("focusedElement",(0,I.getPublicElement)(e)),u.default.trigger(this.option("focusedElement"),"focus"))},splitAppointmentByDay:function(e){var t=e.settings||e,n=new Date(this.invoke("getField","startDate",t)),i=g.default.makeDate(n),o=g.default.makeDate(this.invoke("getField","endDate",t)),a=this.invoke("getField","startDateTimeZone",e),r=this.invoke("getField","endDateTimeZone",e),s=this.invoke("getEndViewDate"),l=this.invoke("getStartDayHour"),u=this.invoke("getEndDayHour"),c=this.invoke("appointmentTakesSeveralDays",e),d=[];for(i=this.invoke("convertDateByTimezone",i,a),o=this.invoke("convertDateByTimezone",o,r),i.getHours()<=u&&i.getHours()>=l&&!c&&(d.push(this._applyStartDateToObj(new Date(i),{appointmentData:e})),i.setDate(i.getDate()+1));c&&i.getTime()<o.getTime()-1&&i<s;){var h=new Date(i),p=new Date(i);this._checkStartDate(h,n,l),this._checkEndDate(p,o,u);var f=w.default.deepExtendArraySafe({},e,!0),_={};this._applyStartDateToObj(h,_),this._applyEndDateToObj(p,_),f.settings=_,d.push(f),i.setDate(i.getDate()+1),i.setHours(l)}return d},_checkStartDate:function(e,t,n){!g.default.sameDate(e,t)||e.getHours()<=n?e.setHours(n,0,0,0):e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())},_checkEndDate:function(e,t,n){!g.default.sameDate(e,t)||e.getHours()>n?e.setHours(n,0,0,0):e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}}).include(B.default);(0,A.default)("dxSchedulerAppointments",oe),e.exports=oe},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(27),u=i(l),c=n(142),d=i(c),h=n(0),p=n(9),f=i(p),g=n(251),_=i(g),m=n(119),v=i(m),y=n(8),x=i(y),b=n(24),w=i(b),C=n(66),k=i(C),S=n(175),I=i(S),T=n(14),D=i(T),E=n(33),A=i(E),O="left right",B="top bottom",P=x.default.addNamespace(w.default.enter,"dxSchedulerAppointment"),M=x.default.addNamespace(w.default.leave,"dxSchedulerAppointment"),R="dx-scheduler-appointment-empty",V="dx-scheduler-all-day-appointment",F={horizontal:"dx-scheduler-appointment-horizontal",vertical:"dx-scheduler-appointment-vertical"},L="dx-scheduler-appointment-recurrence",H="dx-scheduler-appointment-compact",z="dx-scheduler-appointment-reduced",N="dx-scheduler-appointment-reduced-icon",$={head:"dx-scheduler-appointment-head",body:"dx-scheduler-appointment-body",tail:"dx-scheduler-appointment-tail"},W=k.default.inherit({_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{data:{},geometry:{top:0,left:0,width:0,height:0},allowDrag:!0,allowResize:!0,reduced:null,isCompact:!1,direction:"vertical",resizableConfig:{},cellHeight:0,cellWidth:0})},_optionChanged:function(e){switch(e.name){case"data":case"geometry":case"allowDrag":case"allowResize":case"reduced":case"sortedIndex":case"isCompact":case"direction":case"resizableConfig":case"cellHeight":case"cellWidth":this._invalidate();break;default:this.callBase(e)}},_getHorizontalResizingRule:function(){var e={head:this.option("rtlEnabled")?"right":"left",body:"",tail:this.option("rtlEnabled")?"left":"right"};return{handles:this.option("reduced")?e[this.option("reduced")]:O,minHeight:0,minWidth:this.invoke("getCellWidth"),step:this.invoke("getResizableStep")}},_getVerticalResizingRule:function(){var e=this.invoke("getCellHeight");return{handles:B,minWidth:0,minHeight:e,step:e}},_render:function(){this.callBase(),this._renderAppointmentGeometry(),this._renderEmptyClass(),this._renderCompactClass(),this._renderReducedAppointment(),this._renderAllDayClass(),this._renderDirection(),this.$element().data("dxAppointmentStartDate",this.option("startDate")),this.$element().attr("title",this.invoke("getField","text",this.option("data"))),this.$element().attr("role","button"),this._renderRecurrenceClass(),this._renderResizable()},_renderAppointmentGeometry:function(){var e=this.option("geometry"),t=this.$element();u.default.move(t,{top:e.top,left:e.left}),t.css({width:e.width<0?0:e.width,height:e.height<0?0:e.height})},_renderEmptyClass:function(){var e=this.option("geometry");(e.empty||this.option("isCompact"))&&this.$element().addClass(R)},_renderReducedAppointment:function(){var e=this.option("reduced");e&&(this.$element().toggleClass(z,!0).toggleClass($[e],!0),this._renderAppointmentReducedIcon())},_renderAppointmentReducedIcon:function(){var e=(0,a.default)("<div>").addClass(N).appendTo(this.$element()),t=this._getEndDate(),n=D.default.format("dxScheduler-editorLabelEndDate"),i=[n,": ",A.default.format(t,"monthAndDay"),", ",A.default.format(t,"year")].join("");s.default.off(e,P),s.default.on(e,P,function(){_.default.show({target:e,content:i})}),s.default.off(e,M),s.default.on(e,M,function(){_.default.hide()})},_getEndDate:function(){var e=this.invoke("getField","endDate",this.option("data"));return e?new Date(e):e},_renderAllDayClass:function(){this.$element().toggleClass(V,!!this.option("allDay"))},_renderRecurrenceClass:function(){var e=this.invoke("getField","recurrenceRule",this.option("data"));d.default.getRecurrenceRule(e).isValid&&this.$element().addClass(L)},_renderCompactClass:function(){this.$element().toggleClass(H,!!this.option("isCompact"))},_renderDirection:function(){this.$element().addClass(F[this.option("direction")])},_createResizingConfig:function(){var e="vertical"===this.option("direction")?this._getVerticalResizingRule():this._getHorizontalResizingRule();return e.roundStepValue=!0,this.invoke("isGroupedByDate")||(e.stepPrecision="strict"),e},_renderResizable:function(){this.option("allowResize")&&!this.option("isCompact")&&this._createComponent(this.$element(),I.default,(0,h.extend)(this._createResizingConfig(),this.option("resizableConfig")))}}).include(v.default);(0,f.default)("dxSchedulerAppointment",W),e.exports=W},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")}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(4),s=i(r),l=n(719),u=i(l),c=n(390),d=i(c),h=n(391),p=i(h),f=n(721),g=i(f),_=n(722),m=i(_),v={horizontal:d.default,horizontalMonth:g.default,horizontalMonthLine:p.default,vertical:u.default,agenda:m.default},y=function(){function e(t,n){o(this,e),this.instance=t,n&&this.initRenderingStrategy(n)}return a(e,[{key:"getCellDimensions",value:function(e){this.instance._workSpace&&e.callback(this.instance._workSpace.getCellWidth(),this.instance._workSpace.getCellHeight(),this.instance._workSpace.getAllDayHeight())}},{key:"getGroupOrientation",value:function(e){this.instance._workSpace&&e.callback(this.instance._workSpace._getRealGroupOrientation())}},{key:"initRenderingStrategy",value:function(e){var t=v[e];this._renderingStrategyInstance=new t(this.instance),this.renderingStrategy=e}},{key:"createAppointmentsMap",value:function(e){var t=this;return this.getCellDimensions({callback:function(e,n,i){t.instance._cellWidth=e,t.instance._cellHeight=n,t.instance._allDayCellHeight=i}}),this.getGroupOrientation({callback:function(e){return t.instance._groupOrientation=e}}),this._positionMap=this._renderingStrategyInstance.createTaskPositionMap(e),this._createAppointmentsMapCore(e||[],this._positionMap)}},{key:"_createAppointmentsMapCore",value:function(e,t){var n=this;return e.map(function(e,i){n._renderingStrategyInstance.keepAppointmentSettings()||delete e.settings;var o=t[i];return o.forEach(function(e){e.direction="vertical"!==n.renderingStrategy||e.allDay?"horizontal":"vertical"}),{itemData:e,settings:o,needRepaint:!0,needRemove:!1}})}},{key:"_hasChangesInData",value:function(e){var t=this.instance.getUpdatedAppointment();return t===e||this.instance.getUpdatedAppointmentKeys().some(function(t){return e[t.key]===t.value})}},{key:"_hasChangesInSettings",value:function(e,t){if(e.length!==t.length)return!0;for(var n=0;n<e.length;n++){var i=e[n],o=t[n];if(o&&(o.sortedIndex=i.sortedIndex),!s.default.equalByValue(i,o))return!0}return!1}},{key:"_getEqualAppointmentFromList",value:function(e,t){for(var n=0;n<t.length;n++){var i=t[n];if(i.itemData===e.itemData)return i}return null}},{key:"_getDeletedAppointments",value:function(e,t){for(var n=[],i=0;i<t.length;i++){var o=t[i],a=this._getEqualAppointmentFromList(o,e);a||(o.needRemove=!0,n.push(o))}return n}},{key:"getRepaintedAppointments",value:function(e,t){if(0===t.length||"agenda"===this.renderingStrategy)return e;for(var n=0;n<e.length;n++){var i=e[n],o=this._getEqualAppointmentFromList(i,t);o&&(i.needRepaint=this._hasChangesInData(i.itemData)||this._hasChangesInSettings(i.settings,o.settings))}return e.concat(this._getDeletedAppointments(e,t))}},{key:"getRenderingStrategyInstance",value:function(){return this._renderingStrategyInstance}}]),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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(259),c=i(u),d=n(0),h=n(1),p=n(16),f=i(p),g=n(22),_=i(g),m=25,v=50,y=5,x=5,b=20,w=_.default.dateToMilliseconds,C=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"getDeltaTime",value:function(e,t,n){var i=0;if(this.isAllDay(n))i=this._getDeltaWidth(e,t)*w("day");else{var o=e.height-t.height;i=w("minute")*Math.round(o/this.getDefaultCellHeight()*this.instance.getAppointmentDurationInMinutes())}return i}},{key:"getAppointmentGeometry",value:function(e){var n,i=e.allDay;return n=i?this._getAllDayAppointmentGeometry(e):this._getVerticalAppointmentGeometry(e),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getAppointmentGeometry",this).call(this,n)}},{key:"_getItemPosition",value:function(e){var n=this.isAllDay(e),i=!!this.instance.fire("getField","recurrenceRule",e);if(n)return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getItemPosition",this).call(this,e);for(var o=this._getAppointmentCoordinates(e),a=[],r=0;r<o.length;r++){var s=this.calculateAppointmentHeight(e,o[r],i),u=this.calculateAppointmentWidth(e,o[r],i),c=s,h=null,p=[],f=o[r].vMax;this._isMultiDayAppointment(o[r],s)&&(h="head",c=this._reduceMultiDayAppointment(s,{top:o[r].top,bottom:f}),p=this._getAppointmentParts({sourceAppointmentHeight:s,reducedHeight:c,width:u},o[r])),(0,d.extend)(o[r],{height:c,width:u,allDay:n,appointmentReduced:h}),a=this._getAppointmentPartsPosition(p,o[r],a)}return a}},{key:"_isMultiDayAppointment",value:function(e,t){var n=e.vMax,i=t>n-e.top;return i}},{key:"_reduceMultiDayAppointment",value:function(e,t){return e=t.bottom-Math.floor(t.top)}},{key:"_getAppointmentParts",value:function(e,t){var n=e.sourceAppointmentHeight-e.reducedHeight,i=e.width,o=[],a=this.instance.fire("getGroupTop",t.groupIndex),r=this.instance.fire("isGroupedByDate")?this.getDefaultCellWidth()*this.instance.fire("getGroupCount"):this.getDefaultCellWidth(),s=t.left+r;if(n){var l=this.getAppointmentMinSize();n<l&&(n=l),a+=this.instance.fire("getOffsetByAllDayPanel",t.groupIndex),o.push((0,d.extend)(!0,{},t,{top:a,left:s,height:n,width:i,appointmentReduced:"tail",rowIndex:++t.rowIndex}))}return o}},{key:"_getMinuteHeight",value:function(){return this.getDefaultCellHeight()/this.instance.getAppointmentDurationInMinutes()}},{key:"_getCompactLeftCoordinate",value:function(e,t){var n=1,i=this.getDefaultCellWidth()||this.getAppointmentMinSize();return e+(n+i)*t}},{key:"_checkLongCompactAppointment",value:function(e,t){return this._splitLongCompactAppointment(e,t),t}},{key:"_getVerticalAppointmentGeometry",value:function(e){var t=this.instance.fire("getMaxAppointmentsPerCell");if(t){var n=this._calculateVerticalGeometryConfig(e);return this._customizeVerticalCoordinates(e,n.width,n.appointmentCountPerCell,n.offset)}var i=this._getAppointmentMaxWidth()/e.count,o=e.height,a=e.top,r=e.left+e.index*i;return i<y&&(i=y),{height:o,width:i,top:a,left:r,empty:this._isAppointmentEmpty(o,i)}}},{key:"_customizeVerticalCoordinates",value:function(e,t,n,i,o){var a,r,s=e.index,l=Math.max(t/n,t/e.count),u=e.height,c=e.left+e.index*l,d=e.top;return e.isCompact&&(a=this.getCompactAppointmentDefaultWidth(),r=this.getCompactAppointmentLeftOffset(),d=e.top+r,c=e.left+(s-n)*(a+r)+r,l=a,t=a,this._markAppointmentAsVirtual(e,o)),{height:u,width:l,top:d,left:c,empty:this._isAppointmentEmpty(u,t)}}},{key:"_calculateVerticalGeometryConfig",value:function(e){var t=this.instance.fire("getMaxAppointmentsPerCell"),n=this._getOffsets(),i=this._getAppointmentDefaultOffset(),o=this._getAppointmentCount(t,e),a=this._getDefaultRatio(e,o),r=this._getMaxWidth();o||(o=e.count,a=(r-n.unlimited)/r);var s=(1-a)*r;return("auto"===t||(0,h.isNumeric)(t))&&(a=1,r-=i,s=0),{width:a*r,appointmentCountPerCell:o,offset:s}}},{key:"_getMaxWidth",value:function(){return this.getDefaultCellWidth()||this.invoke("getCellWidth")}},{key:"isAllDay",value:function(e){var t=this.instance.fire("getField","allDay",e);return!!t||this.instance.appointmentTakesAllDay(e)}},{key:"_getAppointmentMaxWidth",value:function(){var e="desktop"!==f.default.current().deviceType||this.instance.fire("isAdaptive")?v:m,t=this.getDefaultCellWidth()-e;return t>0?t:this.getAppointmentMinSize()}},{key:"calculateAppointmentWidth",value:function(e,t,n){if(!this.isAllDay(e))return 0;var i=new Date(this.startDate(e,!1,t)),o=this.endDate(e,t,n),a=this.getDefaultCellWidth()||this.getAppointmentMinSize();i=_.default.trimTime(i);var r=(o.getTime()-i.getTime())/w("hour"),s=Math.ceil(r/24)*a;return s=this.cropAppointmentWidth(s,a)}},{key:"calculateAppointmentHeight",value:function(e,t,n){var i=this.endDate(e,t,n),o=this.startDate(e,!1,t),a=this.instance.fire("getField","allDay",e);if(this.isAllDay(e))return 0;var r=this._getAppointmentDurationInMs(o,i,a),s=this._adjustDurationByDaylightDiff(r,o,i)/w("minute"),l=s*this._getMinuteHeight();return l}},{key:"getDirection",value:function(){return"vertical"}},{key:"_sortCondition",value:function(e,t){var n=e.allDay-t.allDay,i=e.allDay&&t.allDay,o="vertical"===this.instance._groupOrientation&&i?this._columnCondition(e,t):this._rowCondition(e,t),a=n?n:o;return this._fixUnstableSorting(a,e,t)}},{key:"hasAllDayAppointments",value:function(){return!0}},{key:"_getAllDayAppointmentGeometry",value:function(e){var t=this._calculateGeometryConfig(e);return this._customizeCoordinates(e,t.height,t.appointmentCountPerCell,t.offset,!0)}},{key:"_calculateGeometryConfig",value:function(e){this.instance._allowResizing()&&this.instance._allowAllDayResizing()||(e.skipResizing=!0);var n=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_calculateGeometryConfig",this).call(this,e);return e.count<=this._getDynamicAppointmentCountPerCell().allDay&&(n.offset=0),n}},{key:"_getAppointmentCount",value:function(e,t){return"auto"===e||1!==t.count||(0,h.isNumeric)(e)?this._getMaxAppointmentCountPerCellByType(t.allDay):t.count}},{key:"_getDefaultRatio",value:function(e,t){return e.count>this.instance.option("_appointmentCountPerCell")?.65:1}},{key:"_getOffsets",value:function(){return{unlimited:x,auto:b}}},{key:"_getMaxHeight",value:function(){return this.getDefaultAllDayCellHeight()||this.getAppointmentMinSize()}},{key:"_needVerticalGroupBounds",value:function(e){return!e}},{key:"_needHorizontalGroupBounds",value:function(){return!1}}]),t}(c.default);e.exports=C},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(389),c=i(u),d=28,h=40,p=35,f=30,g=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"getDropDownAppointmentWidth",value:function(e,t){return this.getDropDownButtonAdaptiveSize()}},{key:"getDropDownButtonAdaptiveSize",value:function(){return d}},{key:"getCompactAppointmentTopOffset",value:function(e){var t=this.getRenderingStrategy();return t.hasAllDayAppointments()&&e?(t.getDefaultAllDayCellHeight()-t.getDropDownButtonAdaptiveSize())/2:this.getRenderingStrategy().getDefaultCellHeight()-h}},{key:"getCompactAppointmentLeftOffset",value:function(){return(this.getRenderingStrategy().getDefaultCellWidth()-d)/2}},{key:"getAppointmentDefaultOffset",value:function(){return p}},{key:"getDynamicAppointmentCountPerCell",value:function(){var e=this.getRenderingStrategy();return e.hasAllDayAppointments()?{allDay:0,simple:this._calculateDynamicAppointmentCountPerCell()||this._getAppointmentMinCount()}:0}},{key:"getDropDownAppointmentHeight",value:function(){return d}},{key:"_getAppointmentMinCount",value:function(){return 0}},{key:"_getAppointmentDefaultWidth",value:function(){var e=this.getRenderingStrategy();return e.hasAllDayAppointments()?f:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getAppointmentDefaultWidth",this).call(this)}},{key:"_calculateDynamicAppointmentCountPerCell",value:function(){return Math.floor(this.getRenderingStrategy()._getAppointmentMaxWidth()/this.getRenderingStrategy()._getAppointmentDefaultWidth())}}]),t}(c.default);e.exports=g},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(391),c=i(u),d=n(0),h=.6,p=26,f=30,g=36,_=60,m=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_getAppointmentParts",value:function(e,t,n){var i=e.sourceAppointmentWidth-e.reducedWidth,o=e.height,a=this._getFullWeekAppointmentWidth(t.groupIndex),r=this._getMaxAppointmentWidth(n),s=Math.ceil(i/a)-1,l=Math.floor(i%a)||a,u=[],c=e.reducedWidth+l,h=t.top+this.getDefaultCellHeight(),p=this._calculateMultiWeekAppointmentLeftOffset(t.hMax,a);
105"vertical"===this.instance._groupOrientation&&(p+=this.instance.fire("getWorkSpaceDateTableOffset"));for(var f=0;f<s&&!(c>r);f++)u.push((0,d.extend)(!0,{},t,{top:h,left:p,height:o,width:a,appointmentReduced:"body",rowIndex:++t.rowIndex,cellIndex:0})),h+=this.getDefaultCellHeight(),c+=a;return l&&(this._isRtl()&&(p+=a-l),u.push((0,d.extend)(!0,{},t,{top:h,left:p,height:o,width:l,appointmentReduced:"tail",rowIndex:++t.rowIndex,cellIndex:0}))),u}},{key:"_calculateMultiWeekAppointmentLeftOffset",value:function(e,t){return this._isRtl()?e:e-t}},{key:"_correctRtlCoordinatesParts",value:function(){}},{key:"_getFullWeekAppointmentWidth",value:function(e){return this.instance.fire("getFullWeekAppointmentWidth",{groupIndex:e,callback:function(e){this._maxFullWeekAppointmentWidth=e}.bind(this)}),this._maxFullWeekAppointmentWidth}},{key:"_getAppointmentDefaultHeight",value:function(){return this._getAppointmentHeightByTheme()}},{key:"_getAppointmentMinHeight",value:function(){return this._getAppointmentDefaultHeight()}},{key:"_checkLongCompactAppointment",value:function(e,t){return this._splitLongCompactAppointment(e,t),t}},{key:"_columnCondition",value:function(e,t){var n=this._isSomeEdge(e,t),i=this._normalizeCondition(e.left,t.left,n),o=this._normalizeCondition(e.top,t.top,n),a=this._normalizeCondition(e.cellPosition,t.cellPosition,n);return o?o:i?i:a?a:e.isStart-t.isStart}},{key:"createTaskPositionMap",value:function(e){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createTaskPositionMap",this).call(this,e,!0)}},{key:"_getSortedPositions",value:function(e){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getSortedPositions",this).call(this,e,!0)}},{key:"_customizeAppointmentGeometry",value:function(e){var t=this._calculateGeometryConfig(e);return this._customizeCoordinates(e,t.height,t.appointmentCountPerCell,t.offset)}},{key:"_getDefaultRatio",value:function(){return h}},{key:"_getOffsets",value:function(){return{unlimited:p,auto:f}}},{key:"getDropDownAppointmentWidth",value:function(e){if(this.instance.fire("isAdaptive"))return this.getDropDownButtonAdaptiveSize();var t=e>1?_:g;return this.getDefaultCellWidth()-t}},{key:"needCorrectAppointmentDates",value:function(){return!1}},{key:"_needVerticalGroupBounds",value:function(){return!1}},{key:"_needHorizontalGroupBounds",value:function(){return!0}}]),t}(c.default);e.exports=m},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(22),u=i(l),c=n(3),d=n(13),h=i(d),p=n(259),f=i(p),g=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"getAppointmentMinSize",value:function(){}},{key:"getDeltaTime",value:function(){}},{key:"keepAppointmentSettings",value:function(){return!0}},{key:"getAppointmentGeometry",value:function(e){return e}},{key:"createTaskPositionMap",value:function(e){if(e.length){var t=this.instance.fire("getAgendaVerticalStepHeight"),n=this.instance.fire("groupAppointmentsByResources",e),i=[];(0,c.each)(n,function(e,t){var n=[],o=[];(0,c.each)(t,function(e,t){var i=this.instance.getAppointmentsInstance()._processRecurrenceAppointment(t,e),a=null;i.indexes.length||(a={parts:[]},a=this.instance.getAppointmentsInstance()._processLongAppointment(t),n=n.concat(a.parts)),n=n.concat(i.parts),o=o.concat(i.indexes)}.bind(this)),this.instance.getAppointmentsInstance()._reduceRecurrenceAppointments(o,t),this.instance.getAppointmentsInstance()._combineAppointments(t,n),i=i.concat(t)}.bind(this)),Array.prototype.splice.apply(e,[0,e.length].concat(i))}var o=[],a=0;return e.forEach(function(e,i){o.push([{height:t,width:"100%",sortedIndex:a++,groupIndex:this._calculateGroupIndex(i,n)}])}.bind(this)),o}},{key:"_calculateGroupIndex",value:function(e,t){var n,i=0;for(var o in t){var a=t[o].length;if(e>=i&&e<i+a){n=Number(o);break}i+=a}return n}},{key:"_getDeltaWidth",value:function(){}},{key:"_correctRtlCoordinatesParts",value:function(){}},{key:"_getAppointmentMaxWidth",value:function(){return this.getDefaultCellWidth()}},{key:"_needVerifyItemSize",value:function(){return!1}},{key:"_isRtl",value:function(){return this.instance.option("rtlEnabled")}},{key:"_getAppointmentParts",value:function(){}},{key:"_reduceMultiWeekAppointment",value:function(){}},{key:"calculateAppointmentHeight",value:function(){return 0}},{key:"calculateAppointmentWidth",value:function(){return 0}},{key:"isAppointmentGreaterThan",value:function(){}},{key:"isAllDay",value:function(){return!1}},{key:"_sortCondition",value:function(){}},{key:"_rowCondition",value:function(){}},{key:"_columnCondition",value:function(){}},{key:"_findIndexByKey",value:function(){}},{key:"_getMaxNeighborAppointmentCount",value:function(){}},{key:"_markAppointmentAsVirtual",value:function(){}},{key:"getDropDownAppointmentWidth",value:function(){}},{key:"getDefaultCellWidth",value:function(){return this._defaultWidth}},{key:"getCompactAppointmentDefaultWidth",value:function(){}},{key:"getCompactAppointmentLeftOffset",value:function(){}},{key:"getCompactAppointmentTopOffset",value:function(){}},{key:"calculateRows",value:function(e,t,n,i){this._rows=[];var o={indexes:[],parts:[]},a=this.instance.fire("groupAppointmentsByResources",e);return n=u.default.trimTime(new Date(n)),(0,c.each)(a,function(e,a){var r=[];if(!a.length)return this._rows.push([]),!0;(0,c.each)(a,function(e,t){var n=this.instance.fire("getField","startDate",t),a=this.instance.fire("getField","endDate",t);this.instance.fire("fixWrongEndDate",t,n,a),i&&delete t.settings;var r=this.instance.getAppointmentsInstance()._processRecurrenceAppointment(t,e,!1);o.parts=o.parts.concat(r.parts),o.indexes=o.indexes.concat(r.indexes)}.bind(this)),this.instance.getAppointmentsInstance()._reduceRecurrenceAppointments(o.indexes,a),h.default.merge(a,o.parts);for(var s=a.length,l=0;l<t;l++){var u=new Date(n);u.setMilliseconds(u.getMilliseconds()+864e5*l),void 0===r[l]&&(r[l]=0);for(var d=0;d<s;d++){var p=a[d].settings||a[d],f=this.instance.fire("appointmentTakesSeveralDays",a[d]),g=this.instance.fire("getField","recurrenceRule",a[d]);(this.instance.fire("dayHasAppointment",u,p,!0)||!g&&f&&this.instance.fire("dayHasAppointment",u,a[d],!0))&&(r[l]+=1)}}this._rows.push(r)}.bind(this)),this._rows}},{key:"_iterateRow",value:function(e,t,n){for(var i=0;i<e.length;i++)if(t.counter=t.counter+e[i],t.counter>=n){t.indexInRow=i;break}}},{key:"getDateByIndex",value:function(e,t,n){var i={counter:0,indexInRow:0};e++;for(var o=0;o<t.length&&(this._iterateRow(t[o],i,e),!i.indexInRow);o++);return new Date(new Date(n).setDate(n.getDate()+i.indexInRow))}},{key:"getAppointmentDataCalculator",value:function(){return function(e,t){var n=e.index(),i=this.instance.getStartViewDate(),o=this.getDateByIndex(n,this._rows,i),a=new Date(t);return{startDate:new Date(o.setHours(a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()))}}.bind(this)}}]),t}(f.default);e.exports=g},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")}Object.defineProperty(t,"__esModule",{value:!0}),t.CompactAppointmentsHelper=void 0;var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(2),s=i(r),l=n(34),u=i(l),c=n(27),d=i(c),h=n(14),p=i(h),f=n(85),g=i(f),_=n(6),m=i(_),v="dx-scheduler-appointment-collector",y=v+"-compact",x=v+"-content",b=5,w=1;t.CompactAppointmentsHelper=function(){function e(t){o(this,e),this.instance=t,this.elements=[]}return a(e,[{key:"render",value:function(e){var t=e.$container,n=e.width,i=e.height,o=e.items,a=e.isCompact,r=e.applyOffset,s=e.coordinates,l=e.buttonColor,u=this._createTemplate(o.data.length,a),c=this._createCompactButton(t,n,i,u,o,a,r,s),d=c.$element();return this._makeBackgroundColor(d,o.colors,l),this._makeBackgroundDarker(d),this.elements.push(d),d.data("items",this._createAppointmentsData(o)),d}},{key:"clear",value:function(){this.elements.forEach(function(e){e.detach(),e.remove()}),this.elements=[]}},{key:"_createAppointmentsData",value:function(e){return e.data.map(function(t,n){return{data:t,color:e.colors[n]}})}},{key:"_onButtonClick",value:function(e){var t=(0,s.default)(e.element);this.instance.showAppointmentTooltipCore(t,t.data("items"))}},{key:"_getCollectorOffset",value:function(e){return this.instance.fire("getCellWidth")-e-this._getCollectorRightOffset()}},{key:"_getCollectorRightOffset",value:function(){return this.instance.getRenderingStrategyInstance()._isCompactTheme()?w:b}},{key:"_makeBackgroundDarker",value:function(e){e.css("boxShadow","inset "+e.get(0).getBoundingClientRect().width+"px 0 0 0 rgba(0, 0, 0, 0.3)")}},{key:"_makeBackgroundColor",value:function(e,t,n){m.default.when.apply(null,t).done(function(){this._makeBackgroundColorCore(e,n,arguments)}.bind(this))}},{key:"_makeBackgroundColorCore",value:function(e,t,n){var i=!0,o=void 0;t&&t.done(function(t){if(n.length){o=n[0];for(var a=1;a<n.length;a++){if(o!==n[a]){i=!1;break}o=t}}t&&i&&e.css("backgroundColor",t)}.bind(this))}},{key:"_setPosition",value:function(e,t){d.default.move(e,{top:t.top,left:t.left})}},{key:"_createCompactButton",value:function(e,t,n,i,o,a,r,s){var l=this,c=this._createCompactButtonElement(e,t,a,r,s);return this.instance._createComponent(c,u.default,{type:"default",width:t,height:n,onClick:function(e){return l._onButtonClick(e)},template:this._renderTemplate(i,o,a)})}},{key:"_createCompactButtonElement",value:function(e,t,n,i,o){var a=(0,s.default)("<div>").addClass(v).toggleClass(y,n).appendTo(e),r=i?this._getCollectorOffset(t):0;return this._setPosition(a,{top:o.top,left:o.left+r}),a}},{key:"_renderTemplate",value:function(e,t,n){return new g.default(function(i){return e.render({model:{appointmentCount:t.data.length,isCompact:n},container:i.container})})}},{key:"_createTemplate",value:function(e,t){return this._initButtonTemplate(e,t),this.instance._getAppointmentTemplate("appointmentCollectorTemplate")}},{key:"_initButtonTemplate",value:function(e,t){var n=this;this.instance._defaultTemplates.appointmentCollector=new g.default(function(i){return n._createButtonTemplate(e,(0,s.default)(i.container),t)})}},{key:"_createButtonTemplate",value:function(e,t,n){var i=n?e:p.default.getFormatter("dxScheduler-moreAppointments")(e);return t.append((0,s.default)("<span>").text(i)).addClass(x)}}]),e}()},function(e,t,n){var i=n(2),o=n(75),a=n(190),r=n(6).Deferred,s=null,l=function(e){return new a(i("<div>").appendTo(e&&e.container||o.value()),e)},u=function(){s&&(s.$element().remove(),s=null)};t.show=function(e){return u(),s=l(e),s.show()},t.hide=function(){return s?s.hide().done(u).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(140),s=i(r),l=n(56),u=i(l),c=n(14),d=i(c),h=n(19),p=i(h),f=n(1),g=i(f),_=n(5),m=i(_);n(726),n(727),n(329),n(328),n(327);var v="dx-scheduler-recurrence-rule-item",y=608,x=460,b={_appointmentForm:{},_lockDateShiftFlag:!1,_validateAppointmentFormDate:function(e,t,n){var i=null===t||!!t,o=null===n||!!n;!i&&o&&e.option("value",n)},_getAllDayStartDate:function(e){return e.setHours(0,0,0,0)},_getAllDayEndDate:function(e){var t=new Date(e);return t.setDate(e.getDate()+1),t},_updateLabelLocation:function(e){var t=this._appointmentForm;t._initialized&&t.isReady()&&t.option("labelLocation",e<y?"top":"left")},create:function(e,t,n,i){var o=this;return this._appointmentForm=e(t,s.default,{items:this._editors,readOnly:n,showValidationSummary:!0,scrollingEnabled:!0,formData:i,colCount:2,showColonAfterLabel:!1,screenByWidth:function(){var e=t.parent().outerWidth();return o._updateLabelLocation(e),e<x?"xs":"lg"}}),this._appointmentForm},prepareAppointmentFormEditors:function(e,t,n){var i=this;return this._editors=[{dataField:t.textExpr,editorType:"dxTextBox",colSpan:2,label:{text:d.default.format("dxScheduler-editorLabelTitle")}},{dataField:t.startDateExpr,editorType:"dxDateBox",label:{text:d.default.format("dxScheduler-editorLabelStartDate")},validationRules:[{type:"required"}],editorOptions:{type:e?"date":"datetime",width:"100%",calendarOptions:{firstDayOfWeek:n.option("firstDayOfWeek")},onValueChanged:function(e){i._validateAppointmentFormDate(e.component,e.value,e.previousValue);var n=u.default.deserializeDate(e.value),o=u.default.deserializeDate(e.previousValue),a=i._appointmentForm.getEditor(t.endDateExpr),r=u.default.deserializeDate(a.option("value"));if(!i._appointmentForm._lockDateShiftFlag&&g.default.isDefined(r)&&g.default.isDefined(n)&&r&&r<n){var s=r.getTime()-o.getTime();a.option("value",new Date(n.getTime()+s))}}}},{dataField:t.startDateTimeZoneExpr,editorType:"dxSchedulerTimezoneEditor",colSpan:2,label:{text:" ",showColon:!1},editorOptions:{observer:n},visible:!1},{dataField:t.endDateExpr,editorType:"dxDateBox",label:{text:d.default.format("dxScheduler-editorLabelEndDate")},validationRules:[{type:"required"}],editorOptions:{type:e?"date":"datetime",width:"100%",calendarOptions:{firstDayOfWeek:n.option("firstDayOfWeek")},onValueChanged:function(e){i._validateAppointmentFormDate(e.component,e.value,e.previousValue);var n=u.default.deserializeDate(e.value),o=u.default.deserializeDate(e.previousValue),a=i._appointmentForm.getEditor(t.startDateExpr),r=u.default.deserializeDate(a.option("value"));if(!i._appointmentForm._lockDateShiftFlag&&n&&r>n){var s=o?o.getTime()-r.getTime():0;a.option("value",new Date(n.getTime()-s))}}}},{dataField:t.endDateTimeZoneExpr,editorType:"dxSchedulerTimezoneEditor",colSpan:2,label:{text:" ",showColon:!1},editorOptions:{observer:n},visible:!1},{dataField:t.allDayExpr,editorType:"dxSwitch",colSpan:2,label:{text:d.default.format("dxScheduler-allDay")},editorOptions:{onValueChanged:function(e){var o=e.value,a=i._appointmentForm.getEditor(t.startDateExpr),r=i._appointmentForm.getEditor(t.endDateExpr);if(a&&r){if(a.option("type",o?"date":"datetime"),r.option("type",o?"date":"datetime"),!a.option("value"))return;var s=u.default.deserializeDate(a.option("value"));o?(a.option("value",i._getAllDayStartDate(s)),r.option("value",i._getAllDayEndDate(s))):(s.setHours(n.option("startDayHour")),a.option("value",s),r.option("value",n._workSpace.calculateEndDate(u.default.deserializeDate(a.option("value")))))}}}},{itemType:"empty",colSpan:2},{dataField:t.descriptionExpr,editorType:"dxTextArea",colSpan:2,label:{text:d.default.format("dxScheduler-editorLabelDescription")}},{itemType:"empty",colSpan:2},{dataField:t.recurrenceRuleExpr,editorType:"dxRecurrenceEditor",colSpan:2,editorOptions:{observer:n,firstDayOfWeek:n.option("firstDayOfWeek"),onValueChanged:function(e){var t=i._getRecurrenceRule(n,i._appointmentForm);n.fire("recurrenceEditorVisibilityChanged",t)},onContentReady:function(e){var t=(0,a.default)(e.element).closest(".dx-field-item"),n=t.find(".dx-field-item-label");m.default.off(n,p.default.name),m.default.on(n,p.default.name,function(){e.component.toggle()})}},cssClass:v,label:{text:d.default.format("dxScheduler-editorLabelRecurrence")}}],t.recurrenceRuleExpr||this._editors.splice(9,2),this._editors},_getRecurrenceRule:function(e,t){return!g.default.isEmptyObject(t)&&!!e.fire("getField","recurrenceRule",t.option("formData"))},concatResources:function(e){this._editors=this._editors.concat(e)},checkEditorsType:function(e,t,n,i){var o=e.itemOption(t),a=e.itemOption(n);if(o&&a){var r=o.editorOptions,s=a.editorOptions;i?r.type=s.type="date":r.type=s.type="datetime",e.itemOption(t,"editorOptions",r),e.itemOption(n,"editorOptions",s)}},updateFormData:function(e,t){e._lockDateShiftFlag=!0,e.option("formData",t),e._lockDateShiftFlag=!1}};e.exports=b},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")}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(2),s=i(r),l=n(43),u=i(l),c=n(9),d=i(c),h=n(142),p=i(h),f=n(12),g=i(f),_=n(1),m=n(0),v=n(13),y=n(3),x=n(49),b=i(x),w=n(103),C=i(w),k=n(323),S=i(k),I=n(117),T=i(I),D=n(95),E=i(D),A=n(193),O=i(A),B=n(14),P=i(B),M=n(33),R=i(M),V=n(22),F=i(V),L=n(119),H=i(L),z="dx-recurrence-editor",N="-label",$="-wrapper",W="dx-recurrence-editor-container",G="dx-recurrence-selectbox-freq",j="dx-recurrence-numberbox-interval",q="dx-recurrence-interval-field",K="dx-recurrence-repeat-end",U="dx-recurrence-repeat-end-container",Y="dx-recurrence-radiogroup-repeat-type",X="dx-recurrence-numberbox-repeat-count",Z="dx-recurrence-datebox-until-date",Q="dx-recurrence-repeat-on",J="dx-recurrence-repeat-on-week",ee="dx-recurrence-checkbox-day-of-week",te="dx-recurrence-repeat-on-month",ne="dx-recurrence-numberbox-day-of-month",ie="dx-recurrence-repeat-on-year",oe="dx-recurrence-selectbox-month-of-year",ae="dx-field",re="dx-recurrence-freq-field",se="dx-field-label",le="dx-field-value",ue=[{text:function(){return P.default.format("dxScheduler-recurrenceNever")},value:"never"},{text:function(){return P.default.format("dxScheduler-recurrenceDaily")},value:"daily"},{text:function(){return P.default.format("dxScheduler-recurrenceWeekly")},value:"weekly"},{text:function(){return P.default.format("dxScheduler-recurrenceMonthly")},value:"monthly"},{text:function(){return P.default.format("dxScheduler-recurrenceYearly")},value:"yearly"}],ce=[{text:function(){return P.default.format("dxScheduler-recurrenceNever")},value:"never"},{text:function(){return P.default.format("dxScheduler-recurrenceRepeatOnDate")},value:"until"},{text:function(){return P.default.format("dxScheduler-recurrenceRepeatCount")},value:"count"}],de=["SU","MO","TU","WE","TH","FR","SA"],he=function(){function e(t){o(this,e),this._recurrenceRule=p.default.getRecurrenceRule(t).rule}return a(e,[{key:"makeRules",value:function(e){this._recurrenceRule=p.default.getRecurrenceRule(e).rule}},{key:"makeRule",value:function(e,t){return t?void((0,_.isDefined)(e)&&("until"===e&&delete this._recurrenceRule.count,"count"===e&&delete this._recurrenceRule.until,this._recurrenceRule[e]=t)):void delete this._recurrenceRule[e]}},{key:"repeatableRule",value:function(){var e=this._recurrenceRule;return"count"in e?"count":"until"in e?"until":null}},{key:"recurrenceString",value:function(){return p.default.getRecurrenceString(this._recurrenceRule)}},{key:"rules",value:function(){return this._recurrenceRule}},{key:"daysFromByDayRule",value:function(){return p.default.daysFromByDayRule(this._recurrenceRule)}}]),e}(),pe=b.default.inherit({_getDefaultOptions:function(){return(0,m.extend)(this.callBase(),{value:null,startDate:new Date,firstDayOfWeek:void 0})},_getFirstDayOfWeek:function(){return(0,_.isDefined)(this.option("firstDayOfWeek"))?this.option("firstDayOfWeek"):R.default.firstDayOfWeekIndex()},_createComponent:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._extendConfig(n,{readOnly:this.option("readOnly")}),this.callBase(e,t,n)},_init:function(){this.callBase(),this._recurrenceRule=new he(this.option("value"))},_render:function(){this.callBase(),this.$element().addClass(z),this._$container=(0,s.default)("<div>").addClass(W).appendTo(this.$element()),this._renderEditors(),this._renderContainerVisibility(this.option("value"))},_renderContainerVisibility:function(e){e?(this._$container.show(),g.default.triggerShownEvent(this._$container)):this._$container.hide()},_changeValueByVisibility:function(e){this._renderContainerVisibility(e),e?this.option("value")||this._handleDefaults():(this._recurrenceRule.makeRules(""),this.option("value",""))},_handleDefaults:function(){this._recurrenceRule.makeRule("freq","daily"),this._changeEditorValue()},_changeEditorValue:function(){this.option("value",this._recurrenceRule.recurrenceString()||"")},_renderEditors:function(){this._renderFreqEditor(),this._renderIntervalEditor(),this._renderRepeatOnEditor(),this._renderRepeatEndEditor()},_renderFreqEditor:function(){var e=this,t=(this._recurrenceRule.rules().freq||"never").toLowerCase(),n=(0,s.default)("<div>").addClass(G).addClass(le);this._freqEditor=this._createComponent(n,E.default,{field:"freq",items:ue,value:t,valueExpr:"value",displayExpr:"text",layout:"horizontal",onValueChanged:function(t){e._valueChangedHandler(t),e.invoke("resizePopup")}});var i=(0,s.default)("<div>").addClass(ae).addClass(re).append(n);this.$element().prepend(i)},_renderIntervalEditor:function(){var e=this._recurrenceRule.rules().freq||"daily",t=(0,s.default)("<div>").addClass(j).addClass(le),n=(0,s.default)("<div>").text(P.default.format("dxScheduler-recurrenceRepeatEvery")).addClass(j+N).addClass(se);this._$intervalTypeLabel=(0,s.default)("<div>").text(P.default.format("dxScheduler-recurrenceRepeat"+e.charAt(0).toUpperCase()+e.substr(1).toLowerCase())).addClass(Y+N);var i=this._recurrenceRule.rules().interval||1;this._intervalEditor=this._createComponent(t,T.default,{field:"interval",min:1,value:i,showSpinButtons:!0,useLargeSpinButtons:!1,onValueChanged:this._valueChangedHandler.bind(this)});var o=(0,s.default)("<div>").addClass(ae).addClass(q).append(n,t,this._$intervalTypeLabel);this._$container.append(o),this._setAriaDescribedBy(this._intervalEditor,n)},_renderRepeatOnEditor:function(){var e=(this._recurrenceRule.rules().freq||"").toLowerCase();return(0,_.isDefined)(this._$repeatOnEditor)||(this._$repeatOnEditor=(0,s.default)("<div>").addClass(Q).addClass(ae).appendTo(this._$container)),e&&"daily"!==e?((0,_.isDefined)(this._$repeatOnLabel)||this._renderRepeatOnLabel(this._$repeatOnEditor),"weekly"!==e||this._$repeatOnWeek?"monthly"!==e||this._$repeatOnMonth?"yearly"!==e||this._$repeatOnYear?void 0:void this._renderRepeatOnYearEditor():void this._renderRepeatOnMonthEditor():void this._renderRepeatOnWeekEditor()):(this._clearRepeatOnEditor(),void this._clearRepeatOnLabel())},_renderRepeatOnLabel:function(e){this._$repeatOnLabel=(0,s.default)("<div>").text(P.default.format("dxScheduler-recurrenceRepeatOn")).addClass(Q+N).addClass(se),e.append(this._$repeatOnLabel)},_clearRepeatOnEditor:function(){(0,_.isDefined)(this._$repeatOnWeek)&&(this._$repeatOnWeek.detach(),this._$repeatOnWeek.remove(),delete this._$repeatOnWeek),(0,_.isDefined)(this._$repeatOnMonth)&&(this._$repeatOnMonth.detach(),this._$repeatOnMonth.remove(),delete this._$repeatOnMonth),(0,_.isDefined)(this._$repeatOnYear)&&(this._$repeatOnYear.detach(),this._$repeatOnYear.remove(),delete this._$repeatOnYear)},_clearRepeatOnLabel:function(){(0,_.isDefined)(this._$repeatOnLabel)&&(this._$repeatOnLabel.detach(),this._$repeatOnLabel.remove(),delete this._$repeatOnLabel)},_renderRepeatOnWeekEditor:function(){this._clearRepeatOnEditor(),this._$repeatOnWeek=(0,s.default)("<div>").addClass(J).addClass(le).appendTo(this._$repeatOnEditor);var e=R.default.getDayNames("short"),t=this._daysOfWeekByRules();this._daysOfWeek=[];for(var n=0;n<7;n++){var i=this._getFirstDayOfWeek()+n,o=i%7,a=e[o].toUpperCase(),r=de[o],l=(0,s.default)("<div>").addClass(ee),u=this._createComponent(l,C.default,{text:a,value:(0,v.inArray)(r,t)>-1,onValueChanged:this._repeatByDayValueChangeHandler.bind(this)});this._daysOfWeek[o]=u,this._$repeatOnWeek.append(l)}},_daysOfWeekByRules:function(){var e=this._recurrenceRule.daysFromByDayRule();return e.length||(e=[de[this.option("startDate").getDay()]]),e},_repeatByDayValueChangeHandler:function(){var e="";(0,y.each)(this._daysOfWeek,function(t,n){if(n.option("value")){var i=de[t];e=e?e+","+i:i}}),this._recurrenceRule.makeRule("byday",e),this._changeEditorValue()},_renderRepeatOnMonthEditor:function(){this._clearRepeatOnEditor(),this._$repeatOnMonth=(0,s.default)("<div>").addClass(te).addClass(le).appendTo(this._$repeatOnEditor),this._renderDayOfMonthEditor(this._$repeatOnMonth)},_renderRepeatOnYearEditor:function(){this._clearRepeatOnEditor(),this._$repeatOnYear=(0,s.default)("<div>").addClass(ie).addClass(le).appendTo(this._$repeatOnEditor);for(var e=[],t=R.default.getMonthNames("wide"),n=0;n<12;n++)e[n]={value:String(n+1),text:t[n]};var i=this._monthOfYearByRules(),o=(0,s.default)("<div>").addClass(oe).appendTo(this._$repeatOnYear),a=function(e){this._valueChangedHandler.call(this,e);var t=parseInt(e.component.option("value"));if(this._dayEditor&&t){var n=new Date((new Date).getFullYear(),parseInt(t),0).getDate();2===t&&(n=29),this._dayEditor.option("max",n)}};this._monthEditor=this._createComponent(o,E.default,{field:"bymonth",items:e,value:i,displayExpr:"text",valueExpr:"value",onValueChanged:a.bind(this)}),this._renderDayOfMonthEditor(this._$repeatOnYear)},_monthOfYearByRules:function(){var e=this._recurrenceRule.rules().bymonth;return e||(e=this.option("startDate").getMonth()+1),e},_renderDayOfMonthEditor:function(e){var t=this._dayOfMonthByRules(),n=(0,s.default)("<div>").addClass(ne);this._dayEditor=this._createComponent(n,T.default,{field:"bymonthday",min:1,max:31,showSpinButtons:!0,useLargeSpinButtons:!1,value:t,onValueChanged:this._valueChangedHandler.bind(this)}),e.append(n)},_dayOfMonthByRules:function(){var e=this._recurrenceRule.rules().bymonthday;return e||(e=this.option("startDate").getDate()),e},_setAriaDescribedBy:function(e,t){var n="label-"+new u.default;e.setAria("describedby",n),e.setAria("id",n,t)},_repeatEndSwitchValueChangeHandler:function(e){var t=e.value;this._renderRepeatEndVisibility(t),this._recurrenceRule.rules().count||this._recurrenceRule.rules().until||!t?t||(this._recurrenceRule.makeRule("count",""),this._recurrenceRule.makeRule("until",""),this._changeEditorValue()):this._handleRepeatEndDefaults()},_renderRepeatEndVisibility:function(e){e?this._$repeatEndEditor.show():this._$repeatEndEditor.hide()},_handleRepeatEndDefaults:function(){this._recurrenceRule.makeRule("count",1),this._changeEditorValue()},_renderRepeatEndEditor:function(e){e=(0,_.isDefined)(e)?e:this._recurrenceRule.repeatableRule(),e||(e="count"),(0,_.isDefined)(this._$repeatEndEditor)||((0,s.default)("<div>").text(P.default.format("dxScheduler-recurrenceEnd")).addClass(U+N).addClass(se).appendTo(this._$container),this._$repeatEndEditor=(0,s.default)("<div>").addClass(U).addClass(ae).appendTo(this._$container),this._renderRepeatEndTypeEditor())},_renderRepeatEndTypeEditor:function(){var e=this,t=this._recurrenceRule.repeatableRule()||"never";this._$repeatTypeEditor=(0,s.default)("<div>").addClass(Y).addClass(le).appendTo(this._$repeatEndEditor),this._repeatTypeEditor=this._createComponent(this._$repeatTypeEditor,S.default,{items:ce,value:t,displayExpr:"text",valueExpr:"value",itemTemplate:function(t){return"count"===t.value?e._renderRepeatCountEditor():"until"===t.value?e._renderRepeatUntilEditor():e._renderDefaultRepeatEnd()},layout:"vertical",onValueChanged:this._repeatTypeValueChangedHandler.bind(this)}),this._disableRepeatEndParts(t)},_renderDefaultRepeatEnd:function(){var e=(0,s.default)("<div>").addClass(K+$);return(0,s.default)("<div>").text(P.default.format("dxScheduler-recurrenceNever")).addClass(K+N).appendTo(e),e},_repeatTypeValueChangedHandler:function(e){var t=e.value;this._disableRepeatEndParts(t),"until"===t&&this._recurrenceRule.makeRule(t,this._getUntilValue()),"count"===t&&this._recurrenceRule.makeRule(t,this._repeatCountEditor.option("value")),"never"===t&&(this._recurrenceRule.makeRule("count",""),this._recurrenceRule.makeRule("until","")),this._changeEditorValue()},_disableRepeatEndParts:function(e){"until"===e&&(this._repeatCountEditor.option("disabled",!0),this._repeatUntilDate.option("disabled",!1)),"count"===e&&(this._repeatCountEditor.option("disabled",!1),this._repeatUntilDate.option("disabled",!0)),"never"===e&&(this._repeatCountEditor.option("disabled",!0),this._repeatUntilDate.option("disabled",!0))},_renderRepeatCountEditor:function(){var e=this._recurrenceRule.rules().count||1,t=(0,s.default)("<div>").addClass(K+$);return(0,s.default)("<div>").text(P.default.format("dxScheduler-recurrenceAfter")).addClass(K+N).appendTo(t),this._$repeatCountEditor=(0,s.default)("<div>").addClass(X).addClass(le).appendTo(t),(0,s.default)("<div>").text(P.default.format("dxScheduler-recurrenceRepeatCount")).addClass(K+N).appendTo(t),this._repeatCountEditor=this._createComponent(this._$repeatCountEditor,T.default,{field:"count",min:1,showSpinButtons:!0,useLargeSpinButtons:!1,value:e,onValueChanged:this._repeatCountValueChangeHandler.bind(this)}),t},_repeatCountValueChangeHandler:function(e){if("count"===this._recurrenceRule.repeatableRule()){var t=e.value;this._recurrenceRule.makeRule("count",t),this._changeEditorValue()}},_formatUntilDate:function(e){return this._recurrenceRule.rules().until&&F.default.sameDate(this._recurrenceRule.rules().until,e)?e:F.default.setToDayEnd(e)},_renderRepeatUntilEditor:function(){var e=this._recurrenceRule.rules().until||this._formatUntilDate(new Date),t=(0,s.default)("<div>").addClass(K+$);return(0,s.default)("<div>").text(P.default.format("dxScheduler-recurrenceOn")).addClass(K+N).appendTo(t),this._$repeatDateEditor=(0,s.default)("<div>").addClass(Z).addClass(le).appendTo(t),this._repeatUntilDate=this._createComponent(this._$repeatDateEditor,O.default,{field:"until",value:e,type:"date",onValueChanged:this._repeatUntilValueChangeHandler.bind(this),calendarOptions:{firstDayOfWeek:this._getFirstDayOfWeek()}}),t},_repeatUntilValueChangeHandler:function(e){if("until"===this._recurrenceRule.repeatableRule()){var t=this._formatUntilDate(new Date(e.value));this._repeatUntilDate.option("value",t),this._recurrenceRule.makeRule("until",t),this._changeEditorValue()}},_valueChangedHandler:function(e){var t=e.component.option("value"),n=e.component.option("field"),i=!0;"freq"===n&&"never"===t?(i=!1,this.option("value","")):(this._recurrenceRule.makeRule(n,t),this._makeRepeatOnRule(n,t),this._changeEditorValue()),this._renderContainerVisibility(i)},_makeRepeatOnRule:function(e,t){"freq"===e&&("daily"===t&&(this._recurrenceRule.makeRule("byday",""),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("bymonthday","")),"weekly"===t&&(this._recurrenceRule.makeRule("byday",this._daysOfWeekByRules()),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("bymonthday","")),"monthly"===t&&(this._recurrenceRule.makeRule("bymonthday",this._dayOfMonthByRules()),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("byday","")),"yearly"===t&&(this._recurrenceRule.makeRule("bymonthday",this._dayOfMonthByRules()),this._recurrenceRule.makeRule("bymonth",this._monthOfYearByRules()),this._recurrenceRule.makeRule("byday","")))},_optionChanged:function(e){switch(e.name){case"value":this._recurrenceRule.makeRules(e.value),this._repeatTypeEditor.option("value",this._recurrenceRule.repeatableRule()||"never"),this._renderRepeatEndEditor(),this._renderRepeatOnEditor(),this._changeEditorsValues(this._recurrenceRule.rules()),this.callBase(e);break;case"startDate":this._clearRepeatOnEditor(),this._renderRepeatOnEditor(),this._makeRepeatOnRule("freq",this._recurrenceRule.rules().freq),
106(0,_.isDefined)(this._recurrenceRule.recurrenceString())&&this._changeEditorValue();break;case"firstDayOfWeek":this._clearRepeatOnEditor(),this._renderRepeatOnEditor(),this._$repeatDateEditor&&this._repeatUntilDate.option("calendarOptions.firstDayOfWeek",this._getFirstDayOfWeek());break;case"visible":this._changeValueByVisibility(e.value),this.callBase(e);break;default:this.callBase(e)}},_changeEditorsValues:function(e){this._changeCheckBoxesValue(!!e.byday),this._freqEditor.option("value",(e.freq||"never").toLowerCase()),this._changeRepeatTypeLabel(),this._intervalEditor.option("value",e.interval),this._changeRepeatCountValue(),this._changeRepeatUntilValue(),this._changeDayOfMonthValue(),this._changeMonthOfYearValue()},_changeRepeatTypeLabel:function(){var e=this.$element().find("."+Y+N);if(e.length){var t=this._recurrenceRule.rules().freq||"daily";(0,y.each)(e,function(e,n){(0,s.default)(n).text(P.default.format("dxScheduler-recurrenceRepeat"+t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()))})}},_changeRepeatCountValue:function(){if(this._$repeatCountEditor){var e=this._recurrenceRule.rules().count||1;this._repeatCountEditor.option("value",e)}},_changeRepeatUntilValue:function(){this._$repeatDateEditor&&this._repeatUntilDate.option("value",this._getUntilValue())},_getUntilValue:function(){return this._recurrenceRule.rules().until||this._formatUntilDate(new Date)},_changeCheckBoxesValue:function(e){if(this._$repeatOnWeek&&e){var t=this._daysOfWeekByRules();(0,y.each)(this._daysOfWeek,function(e,n){var i=de[e];n.option("value",(0,v.inArray)(i,t)>-1)})}},_changeDayOfMonthValue:function(){if(this._$repeatOnMonth||this._$repeatOnYear){var e=this._dayOfMonthByRules()||1;this._dayEditor.option("value",e)}},_changeMonthOfYearValue:function(){if(this._$repeatOnYear){var e=this._monthOfYearByRules()||1;this._monthEditor.option("value",e)}},toggle:function(){this._freqEditor.focus()},setAria:function(){this._switchEditor&&this._switchEditor.setAria(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1])}}).include(H.default);(0,d.default)("dxRecurrenceEditor",pe),e.exports=pe},function(e,t,n){var i=n(2),o=n(9),a=n(0).extend,r=n(119),s=n(14),l=n(49),u=n(95),c="dx-timezone-editor",d="dx-timezone-display-name",h="dx-timezone-iana-id",p=l.inherit({_getDefaultOptions:function(){return a(this.callBase(),{value:null})},_createComponent:function(e,t,n){return n=n||{},this._extendConfig(n,{readOnly:this.option("readOnly")}),this.callBase(e,t,n)},_init:function(){this.callBase(),this.$element().addClass(c)},_render:function(){this._renderDisplayNameEditor(),this._renderIanaIdEditor(),this.callBase()},_renderDisplayNameEditor:function(){var e=s.format("dxScheduler-noTimezoneTitle"),t=this.invoke("getTimezoneDisplayNameById",this.option("value"))||e;this._displayNameEditor=this._renderSelectBox(d,{items:[e].concat(this.invoke("getTimezonesDisplayName")),value:t,onOptionChanged:function(e){"value"===e.name&&this._processDisplayNameChanging(e.value)}.bind(this)})},_renderIanaIdEditor:function(){this._ianaIdEditor=this._renderSelectBox(h,{items:this._idsDataSource(),value:this.option("value"),onOptionChanged:function(e){"value"===e.name&&this.option("value",e.value)}.bind(this),valueExpr:"id",displayExpr:"displayName",disabled:this._calculateIanaIdEditorDisabledState()})},_renderSelectBox:function(e,t){t=t||{};var n=i("<div>").addClass(e),o=this._createComponent(n,u,t);return this.$element().append(n),o},_idsDataSource:function(){return this.invoke("getSimilarTimezones",this.option("value"))},_calculateIanaIdEditorDisabledState:function(){return!this.option("value")},_processDisplayNameChanging:function(e){var t=this.invoke("getTimezonesIdsByDisplayName",e),n=t.length?t[0].id:null;this.option("value",n),this._ianaIdEditor.option({value:n,items:this._idsDataSource(t),disabled:this._calculateIanaIdEditorDisabledState()})},_optionChanged:function(e){var t=e.value;switch(e.name){case"value":this._ianaIdEditor.option({value:t,items:this._idsDataSource()}),t?this._displayNameEditor.option("value",this.invoke("getTimezoneDisplayNameById",t)):this._displayNameEditor.option("value",s.format("dxScheduler-noTimezoneTitle")),this.callBase(e);break;case"readOnly":this._displayNameEditor&&this._displayNameEditor.option("readOnly",t),this._ianaIdEditor&&this._ianaIdEditor.option("readOnly",t);break;default:this.callBase(e)}}}).include(r);o("dxSchedulerTimezoneEditor",{},p),e.exports=p},function(e,t,n){e.exports=n(729)},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(5),h=i(d),p=n(0),f=n(1),g=i(f),_=n(6),m=n(9),v=i(m),y=n(18),x=i(y),b=n(291),w=i(b),C=n(730),k=n(731),S=i(k),I=n(392),T=i(I),D=n(732),E=i(D),A=n(733),O=i(A),B=n(734),P=i(B),M=n(735),R=i(M),V=n(740),F=i(V),L=n(741),H=i(L),z=n(116),N=n(137),$=n(396),W=i($),G=n(742),j=i(G),q=n(289),K=i(q),U=n(288),Y=i(U),X="dx-filemanager",Z=X+"-container",Q=X+"-dirs-panel",J=X+"-inactive-area",ee=X+"-editing-container",te=X+"-items-panel",ne=X+"-item-custom-thumbnail",ie=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_initTemplates",value:function(){}},{key:"_initMarkup",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._onSelectedFileOpenedAction=this._createActionByOption("onSelectedFileOpened"),this._provider=this._getFileProvider(),this._currentFolder=null,this._commandManager=new C.FileManagerCommandManager(this.option("permissions")),this.$element().addClass(X);var e=(0,c.default)("<div>").appendTo(this.$element());this._toolbar=this._createComponent(e,P.default,{commandManager:this._commandManager,itemViewMode:this.option("itemView").mode}),this._createAdaptivityControl(),this._createEditing(),this._initCommandManager(),this._setItemsViewAreaActive(!1)}},{key:"_createAdaptivityControl",value:function(){var e=this,t=(0,c.default)("<div>").addClass(Z).appendTo(this.$element());this._adaptivityControl=this._createComponent(t,H.default,{drawerTemplate:function(t){return e._createFilesTreeView(t)},contentTemplate:function(t){return e._createItemsPanel(t)},onAdaptiveStateChanged:function(t){return e._onAdaptiveStateChanged(t)}})}},{key:"_createEditing",value:function(){var e=this,t=(0,c.default)("<div>").addClass(ee).appendTo(this.$element());this._editing=this._createComponent(t,R.default,{model:{provider:this._provider,getFolders:this._getFilesTreeViewItems.bind(this),getCurrentFolder:this.getCurrentFolder.bind(this),getMultipleSelectedItems:this._getMultipleSelectedItems.bind(this)},onSuccess:function(t){var n=t.message,i=t.updatedOnlyFiles;e._showSuccess(n),e._refreshData(i)},onError:function(t){var n=t.message;return e._showError(n)},onCreating:function(){return e._setItemsViewAreaActive(!1)}})}},{key:"_createItemsPanel",value:function(e){this._$itemsPanel=(0,c.default)("<div>").addClass(te).appendTo(e),this._createBreadcrumbs(this._$itemsPanel),this._createItemView(this._$itemsPanel)}},{key:"_createFilesTreeView",value:function(e){var t=this,n=(0,c.default)("<div>").addClass(Q).appendTo(e);this._filesTreeView=this._createComponent(n,T.default,{contextMenu:this._createContextMenu(),getItems:this._getFilesTreeViewItems.bind(this),onCurrentFolderChanged:this._onFilesTreeViewCurrentFolderChanged.bind(this),onClick:function(){return t._setItemsViewAreaActive(!1)}})}},{key:"_createItemView",value:function(e,t){var n=this,i=this.option("itemView"),o={selectionMode:this.option("selectionMode"),contextMenu:this._createContextMenu(),getItems:this._getItemViewItems.bind(this),onError:function(e){var t=e.error;return n._showError(t)},onSelectionChanged:this._onItemViewSelectionChanged.bind(this),onSelectedItemOpened:this._onSelectedItemOpened.bind(this),onSelectedFileOpened:this._createActionByOption("onSelectedFileOpened"),getItemThumbnail:this._getItemThumbnailInfo.bind(this),customizeDetailColumns:this.option("customizeDetailColumns")},a=(0,c.default)("<div>").appendTo(e);t=t||i.mode;var r="thumbnails"===t?O.default:E.default;this._itemView=this._createComponent(a,r,o),h.default.on(a,"click",this._onItemViewClick.bind(this))}},{key:"_createBreadcrumbs",value:function(e){var t=this,n=(0,c.default)("<div>").appendTo(e);this._breadcrumbs=this._createComponent(n,F.default,{path:"",onPathChanged:function(e){return t.setCurrentFolderPath(e.newPath)},onOutsideClick:function(){return t._clearSelection()}})}},{key:"_createContextMenu",value:function(){var e=(0,c.default)("<div>").appendTo(this.$element());return this._createComponent(e,S.default,{commandManager:this._commandManager})}},{key:"_initCommandManager",value:function(){var e=this,t=(0,p.extend)(this._editing.getCommandActions(),{refresh:function(){return e._refreshData()},thumbnails:function(){return e._switchView("thumbnails")},details:function(){return e._switchView("details")},clear:function(){return e._clearSelection()},showDirsPanel:function(){return e._adaptivityControl.toggleDrawer()}});this._commandManager.registerActions(t)}},{key:"_onFilesTreeViewCurrentFolderChanged",value:function(e){this.setCurrentFolder(this._filesTreeView.getCurrentFolder())}},{key:"_onItemViewSelectionChanged",value:function(){this._updateToolbar()}},{key:"_onAdaptiveStateChanged",value:function(e){var t=e.enabled;this._commandManager.setCommandEnabled("showDirsPanel",t),this._updateToolbar()}},{key:"_updateToolbar",value:function(){var e=this.getSelectedItems();this._toolbar.update(e)}},{key:"_setItemsViewAreaActive",value:function(e){if(this._itemsViewAreaActive!==e){this._itemsViewAreaActive=e;var t=null,n=null;e?(t=this._itemView.$element(),n=this._filesTreeView.$element()):(t=this._filesTreeView.$element(),n=this._itemView.$element()),t.removeClass(J),n.addClass(J),e||this._clearSelection()}}},{key:"_tryOpen",value:function(e){if(!e){var t=this.getSelectedItems();t.length>0&&(e=t[0])}if(e&&e.isDirectory){var n=e.createClone();e.isParentFolder&&(n.name=(0,z.getName)(e.relativeName),n.relativeName=e.relativeName),this.setCurrentFolder(n)}}},{key:"_switchView",value:function(e){this._disposeWidget(this._itemView.option("contextMenu")),this._disposeWidget(this._itemView),this._createItemView(this._$itemsPanel,e)}},{key:"_disposeWidget",value:function(e){e.dispose(),e.$element().remove()}},{key:"_clearSelection",value:function(){this._itemView.clearSelection()}},{key:"_getMultipleSelectedItems",value:function(){return this._itemsViewAreaActive?this.getSelectedItems():[this.getCurrentFolder()]}},{key:"_showSuccess",value:function(e){this._showNotification(e,!0)}},{key:"_showError",value:function(e){this._showNotification(e,!1)}},{key:"_showNotification",value:function(e,t){(0,w.default)({message:e,width:450},t?"success":"error",5e3)}},{key:"_loadItemViewData",value:function(){this._itemView.refreshData()}},{key:"_refreshData",value:function(e){e||this._filesTreeView.refreshData(),this._loadItemViewData()}},{key:"_getFilesTreeViewItems",value:function(e){var t=e?e.relativeName:"";return this._provider.getFolders(t)}},{key:"_getItemViewItems",value:function(){var e=this.getCurrentFolderPath();if(null===e)return(new _.Deferred).promise();var t=this.option("itemView"),n=t.showFolders?"":"file",i=this._provider.getItems(e,n);if(t.showParentFolder&&e){var o=(0,z.getParentPath)(e),a=this._createFolderItemByPath(o);a.isParentFolder=!0,a.name="..",i=(0,_.when)(i).done(function(e){return e.unshift(a)})}return i}},{key:"_onItemViewClick",value:function(){this._setItemsViewAreaActive(!0)}},{key:"_getFileProvider",value:function(){var e=this.option("fileProvider");if(e||(e=[]),Array.isArray(e))return new W.default({data:e});if("string"==typeof e)return new j.default({url:e});if(e instanceof N.FileProvider)return e;if(e.type)switch(e.type){case"webapi":return new Y.default(e);case"onedrive":return new K.default(e)}return new W.default(e)}},{key:"_getItemThumbnailInfo",value:function(e){var t=this.option("customizeThumbnail"),n=g.default.isFunction(t)?t(e):e.thumbnail;return n?{thumbnail:n,cssClass:ne}:{thumbnail:this._getPredefinedThumbnail(e)}}},{key:"_getPredefinedThumbnail",value:function(e){if(e.isDirectory)return"folder";var t=e.getExtension();switch(t){case".txt":return"doc";case".rtf":case".doc":case".docx":case".odt":return"doc";case".xls":case".xlsx":case".ods":return"exportxlsx";case".ppt":case".pptx":case".odp":return"doc";case".pdf":return"exportpdf";case".png":case".gif":case".jpg":case".jpeg":case".ico":case".bmp":return"image";default:return"doc"}}},{key:"_createFolderItemByPath",value:function(e){var t=(0,z.getParentPath)(e),n=(0,z.getName)(e);return new N.FileManagerItem(t,n,(!0))}},{key:"_getDefaultOptions",value:function(){return(0,p.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{fileProvider:null,selectionMode:"multiple",itemView:{mode:"details",showFolders:!0,showParentFolder:!0},customizeThumbnail:null,customizeDetailColumns:null,onSelectedFileOpened:null,permissions:{create:!1,copy:!1,move:!1,remove:!1,rename:!1,upload:!1}})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"fileProvider":case"selectionMode":case"itemView":case"customizeThumbnail":case"customizeDetailColumns":case"permissions":this.repaint();break;case"onSelectedFileOpened":this._onSelectedFileOpenedAction=this._createActionByOption("onSelectedFileOpened");break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"executeCommand",value:function(e){this._commandManager.executeCommand(e)}},{key:"setCurrentFolderPath",value:function(e){var t=this._createFolderItemByPath(e);this.setCurrentFolder(t)}},{key:"getCurrentFolderPath",value:function(){return this.getCurrentFolder()?this.getCurrentFolder().relativeName:null}},{key:"setCurrentFolder",value:function(e){var t=e?e.relativeName:null;t!==this.getCurrentFolderPath()&&(this._currentFolder=e,this._filesTreeView.setCurrentFolderPath(t),this._loadItemViewData(),this._breadcrumbs.option("path",t||""))}},{key:"getCurrentFolder",value:function(){return this._currentFolder}},{key:"getSelectedItems",value:function(){return this._itemView.getSelectedItems()}},{key:"_onSelectedItemOpened",value:function(e){var t=e.item;t.isDirectory||this._onSelectedFileOpenedAction({fileItem:t}),this._tryOpen(t)}}]),t}(x.default);(0,v.default)("dxFileManager",ie),e.exports=ie},function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.FileManagerCommandManager=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(0),r=n(1);t.FileManagerCommandManager=function(){function e(t){i(this,e),this._actions={},this._permissions=t||{},this._initCommands()}return o(e,[{key:"_initCommands",value:function(){var e=this;this._commands=[{name:"create",text:"New folder",icon:"plus",enabled:this._permissions.create,noFileItemRequired:!0},{name:"rename",text:"Rename",enabled:this._permissions.rename,isSingleFileItemCommand:!0},{name:"move",text:"Move",enabled:this._permissions.move},{name:"copy",text:"Copy",enabled:this._permissions.copy},{name:"delete",text:"Delete",icon:"trash",enabled:this._permissions.remove},{name:"download",text:"Download",icon:"download",enabled:!1},{name:"upload",text:"Upload files",icon:"upload",enabled:this._permissions.upload,noFileItemRequired:!0},{name:"refresh",text:"Refresh",icon:"refresh",enabled:!0,noFileItemRequired:!0},{name:"thumbnails",text:"Thumbnails View",enabled:!0,noFileItemRequired:!0},{name:"details",text:"Details View",enabled:!0,noFileItemRequired:!0},{name:"clear",text:"Clear selection",icon:"remove",enabled:!0},{name:"showDirsPanel",icon:"menu",enabled:!1,noFileItemRequired:!0}],this._commandMap={},this._commands.forEach(function(t){e._commandMap[t.name]=t})}},{key:"registerActions",value:function(e){this._actions=(0,a.extend)(this._actions,e)}},{key:"executeCommand",value:function(e,t){var n=(0,r.isString)(e)?e:e.name,i=this._actions[n];i&&i(t)}},{key:"setCommandEnabled",value:function(e,t){var n=this.getCommandByName(e);n&&(n.enabled=t)}},{key:"getCommandByName",value:function(e){return this._commandMap[e]}},{key:"isCommandAvailable",value:function(e,t){var n=this.getCommandByName(e);if(!n||!n.enabled)return!1;if(n.noFileItemRequired)return!0;var i=t&&t.length||0;return 0!==i&&!t.some(function(e){return e.isRoot()||e.isParentFolder})&&(!n.isSingleFileItemCommand||1===i)}}]),e}()},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(0),h=n(1),p=n(18),f=i(p),g=n(330),_=i(g),m="dx-filemanager-context-menu",v=["create","upload","rename","move","copy","delete",{commandName:"refresh",beginGroup:!0}],y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_initMarkup",value:function(){var e=this;this._createContextMenuHiddenAction(),this._isVisible=!1;var n=(0,c.default)("<div>").appendTo(this.$element());this._contextMenu=this._createComponent(n,_.default,{cssClass:m,showEvent:"",onItemClick:function(t){var n=t.itemData.commandName;return e._onContextMenuItemClick(n)},onHidden:function(){return e._onContextMenuHidden()}}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"showAt",value:function(e,t,n){this._isVisible&&this._raiseContextMenuHidden(),this._isVisible=!0;var i=this.createContextMenuItems(e),o={of:t,at:"top left",my:"top left",offset:""};n?o.offset=n.offsetX+" "+n.offsetY:(o.my="left top",o.at="left bottom"),this._contextMenu.option({dataSource:i,target:t,position:o}),this._contextMenu.show()}},{key:"createContextMenuItems",value:function(e){var t=this;this._targetFileItems=e;var n=[];return v.forEach(function(i){var o=(0,h.isString)(i)?i:i.commandName;if(t._commandManager.isCommandAvailable(o,e)){var a=t._createMenuItemByCommandName(o);(0,h.isObject)(i)&&(a=(0,d.extend)(!0,a,i)),n.push(a)}}),n}},{key:"_createMenuItemByCommandName",value:function(e){var t=this,n=this._commandManager.getCommandByName(e),i=n.text,o=n.icon;return{commandName:e,text:i,icon:o,onItemClick:function(){return t._onContextMenuItemClick(e)}}}},{key:"_onContextMenuItemClick",value:function(e){this._commandManager.executeCommand(e,this._targetFileItems)}},{key:"_createContextMenuHiddenAction",value:function(){this._contextMenuHiddenAction=this._createActionByOption("onContextMenuHidden")}},{key:"_onContextMenuHidden",value:function(){this._isVisible=!1,this._raiseContextMenuHidden()}},{key:"_raiseContextMenuHidden",value:function(){this._contextMenuHiddenAction()}},{key:"_getDefaultOptions",value:function(){return(0,d.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{commandManager:null,onContextMenuHidden:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"commandManager":this.repaint();break;case"onContextMenuHidden":this._createContextMenuHiddenAction();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_commandManager",get:function(){return this.option("commandManager")}}]),t}(f.default);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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(1),h=i(d),p=n(333),f=i(p),g=n(136),_=i(g),m=n(394),v=i(m),y=n(393),x=i(y),b=n(116),w="dx-filemanager-details",C="dx-filemanager-details-item-thumbnail",k="dx-filemanager-details-item-name",S="dx-filemanager-details-item-name-wrapper",I="dx-data-row",T=["name","isDirectory","size","thumbnail","dateModified"],D=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_initMarkup",value:function(){var e=this;this._createFilesView(),this._contextMenu.option("onContextMenuHidden",function(){return e._onContextMenuHidden()}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"_createFilesView",value:function(){var e=this.option("selectionMode");this._filesView=this._createComponent("<div>",f.default,{hoverStateEnabled:!0,selection:{mode:e},allowColumnResizing:!0,scrolling:{mode:"virtual"},showColumnLines:!1,showRowLines:!1,columnHidingEnabled:!0,columns:this._createColumns(),onRowPrepared:this._onRowPrepared.bind(this),onContextMenuPreparing:this._onContextMenuPreparing.bind(this),onSelectionChanged:this._raiseSelectionChanged.bind(this)}),this.$element().addClass(w).append(this._filesView.$element()),this._loadFilesViewData()}},{key:"_createFilesViewStore",value:function(){return new _.default({key:"relativeName",load:this._getItems.bind(this)})}},{key:"_loadFilesViewData",value:function(){this._filesView.option("dataSource",{store:this._createFilesViewStore()})}},{key:"_createColumns",value:function(){var e=[{dataField:"thumbnail",caption:"",width:64,alignment:"center",cellTemplate:this._createThumbnailColumnCell.bind(this)},{dataField:"name",cellTemplate:this._createNameColumnCell.bind(this)},{dataField:"dateModified",caption:"Date Modified",width:110,hidingPriority:1},{dataField:"size",caption:"File Size",width:90,alignment:"right",hidingPriority:0,calculateCellValue:this._calculateSizeColumnCellValue.bind(this)}],t=this.option("customizeDetailColumns");if(h.default.isFunction(t)){e=t(e);for(var n=0;n<e.length;n++)T.indexOf(e[n].dataField)<0&&(e[n].dataField="dataItem."+e[n].dataField)}return e}},{key:"_onFileItemActionButtonClick",value:function(e){var t=e.component,n=e.element,i=e.event;i.stopPropagation();var o=t.$element().closest(this._getItemSelector()),a=o.data("item");this._ensureItemSelected(a),this._showContextMenu(this.getSelectedItems(),n),this._activeFileActionsButton=t,this._activeFileActionsButton.setActive(!0)}},{key:"_onContextMenuHidden",value:function(){this._activeFileActionsButton&&this._activeFileActionsButton.setActive(!1)}},{key:"_getItemThumbnailCssClass",value:function(){return C}},{key:"_getItemSelector",value:function(){return"."+I}},{key:"_onItemDblClick",value:function(e){var t=(0,c.default)(e.currentTarget),n=t.data("item");this._raiseSelectedItemOpened(n)}},{key:"_onRowPrepared",value:function(e){"data"===e.rowType&&(0,c.default)(e.rowElement).data("item",e.data)}},{key:"_onContextMenuPreparing",value:function(e){var t=null;if(e.row&&"data"===e.row.rowType){var n=e.row.data;this._ensureItemSelected(n),t=this.getSelectedItems()}e.items=this._contextMenu.createContextMenuItems(t)}},{key:"_createThumbnailColumnCell",value:function(e,t){this._getItemThumbnailContainer(t.data).appendTo(e)}},{key:"_createNameColumnCell",value:function(e,t){var n=this,i=(0,c.default)("<div>"),o=(0,c.default)("<span>").text(t.data.name).addClass(k),a=(0,c.default)("<div>").append(o,i).addClass(S);(0,c.default)(e).append(a),this._createComponent(i,x.default,{onClick:function(e){return n._onFileItemActionButtonClick(e)}})}},{key:"_calculateSizeColumnCellValue",value:function(e){return e.isDirectory?"":(0,b.getDisplayFileSize)(e.size)}},{key:"_ensureItemSelected",value:function(e){if(!this._filesView.isRowSelected(e.relativeName)){var t=this._filesView.getController("selection"),n=t.isSelectionWithCheckboxes();this._filesView.selectRows([e.relativeName],n)}}},{key:"refreshData",value:function(){this._loadFilesViewData()}},{key:"clearSelection",value:function(){this._filesView.clearSelection()}},{key:"getSelectedItems",value:function(){return this._filesView.getSelectedRowsData()}}]),t}(v.default);e.exports=D},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(0),h=n(6),p=n(5),f=i(p),g=n(8),_=n(160),m=n(116),v=n(394),y=i(v),x="dx-filemanager-thumbnails",b="dx-filemanager-thumbnails-view-port",w="dx-filemanager-thumbnails-container",C="dx-filemanager-thumbnails-item",k="dx-filemanager-thumbnails-item-content",S="dx-filemanager-thumbnails-item-thumbnail",I="dx-filemanager-thumbnails-item-spacer",T="dx-filemanager-thumbnails-item-name",D="dx-filemanager-item-selected",E="dx-filemanager-item-focused",A="dxFileManager_thumbnails",O=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_init",value:function(){this._items=[],this._currentLoadOperationId=0,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this)}},{key:"_initMarkup",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this);var e="multiple"===this.option("selectionMode"),n={onSelectionChanged:this._raiseSelectionChanged.bind(this)},i=e?P:B;this._selectionController=new i(n),this._$itemViewContainer=(0,c.default)("<div>").addClass(w),this._$viewPort=(0,c.default)("<div>").addClass(b),this._$viewPort.append(this._$itemViewContainer),this.$element().addClass(x),this.$element().append(this._$viewPort);var o=(0,g.addNamespace)(_.name,A),a=(0,g.addNamespace)("click",A);f.default.on(this.$element(),o,this._onContextMenu.bind(this)),f.default.on(this.$element(),a,this._onClick.bind(this)),this._loadItems()}},{key:"_supportedKeys",value:function(){return(0,d.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_supportedKeys",this).call(this),{rightArrow:function(e){this._beforeKeyProcessing(e),this._processMoveArrow(1,!0,e)},leftArrow:function(e){this._beforeKeyProcessing(e),this._processMoveArrow(-1,!0,e)},upArrow:function(e){this._beforeKeyProcessing(e),this._processMoveArrow(-1,!1,e)},downArrow:function(e){this._beforeKeyProcessing(e),this._processMoveArrow(1,!1,e)},home:function(e){this._beforeKeyProcessing(e),this._selectItemByIndex(0,!0,e)},end:function(e){this._beforeKeyProcessing(e),this._selectItemByIndex(this._items.length-1,!0,e)},pageUp:function(e){this._beforeKeyProcessing(e),this._processPageChange(!0,e)},pageDown:function(e){this._beforeKeyProcessing(e),this._processPageChange(!1,e)},space:function(e){this._beforeKeyProcessing(e),this._selectionController.invertFocusedItemSelection()},enter:function(e){this._beforeKeyProcessing(e),this.tryOpen()},A:function(e){this._beforeKeyProcessing(e),e.ctrlKey&&this._selectAll()}})}},{key:"_beforeKeyProcessing",value:function(e){e.preventDefault(),this._resetLayoutModel()}},{key:"_processMoveArrow",value:function(e,t,n){var i=this._getFocusedItem();if(i){if(!t){var o=this._getLayoutModel();if(!o)return;e*=o.itemPerRowCount}var a=i._state.index+e;this._selectItemByIndex(a,!0,n)}}},{key:"_processPageChange",value:function(e,t){var n=this._getFocusedItem();if(n){var i=this._getLayoutModel();if(i){var o=this._createItemLayoutModel(n._state.index),a=e?i.rowPerPageRate:-i.rowPerPageRate,r=o.itemRowIndex-a,s=e?Math.ceil:Math.floor,l=s(r),u=l*i.itemPerRowCount+o.itemColumnIndex;u<0?u=0:u>=this._items.length&&(u=this._items.length-1),this._selectItemByIndex(u,!0,t)}}}},{key:"_onClick",value:function(e){var t=(0,c.default)(e.target).closest(this._getItemSelector());t.length>0?this._selectItemByItemElement(t,e):this.clearSelection()}},{key:"_onContextMenu",value:function(e){e.preventDefault(),this._onClick(e);var t=this.getSelectedItems();this._showContextMenu(t,e.target,e)}},{key:"_selectItemByItemElement",value:function(e,t){var n=e.data("index");this._selectItemByIndex(n,!1,t)}},{key:"_getItemThumbnailCssClass",value:function(){return S}},{key:"_getItemSelector",value:function(){return"."+C}},{key:"_onItemDblClick",value:function(e){var t=(0,c.default)(e.currentTarget),n=t.data("index"),i=this._items[n];
107this._raiseSelectedItemOpened(i)}},{key:"_scrollToItem",value:function(e){var t=this._getLayoutModel();if(t){var n=Math.floor(e._state.index/t.itemPerRowCount),i=n*t.itemHeight,o=i+t.itemHeight,a=t.viewPortScrollTop;i<t.viewPortScrollTop?a=i:o>t.viewPortScrollBottom&&(a=o-t.viewPortHeight),this._$viewPort.scrollTop(a)}}},{key:"_resetLayoutModel",value:function(){this._layoutModel=null}},{key:"_getLayoutModel",value:function(){return this._layoutModel||(this._layoutModel=this._createLayoutModel()),this._layoutModel}},{key:"_createLayoutModel",value:function(){if(0===this._items.length)return null;var e=this._items[0],t=e._state.$element,n=t.outerWidth(!0);if(0===n)return null;var i=t.outerHeight(!0),o=this._$itemViewContainer.innerWidth(),a=this._$viewPort.innerHeight(),r=this._$viewPort.scrollTop(),s=r+a,l=Math.floor(o/n),u=a/i;return{itemWidth:n,itemHeight:i,viewPortWidth:o,viewPortHeight:a,viewPortScrollTop:r,viewPortScrollBottom:s,itemPerRowCount:l,rowPerPageRate:u}}},{key:"_createItemLayoutModel",value:function(e){var t=this._getLayoutModel();if(!t)return null;var n=Math.floor(e/t.itemPerRowCount),i=e%t.itemPerRowCount,o=n*t.itemHeight,a=o+t.itemHeight;return{itemRowIndex:n,itemColumnIndex:i,itemTop:o,itemBottom:a}}},{key:"_selectAll",value:function(){this._selectionController.selectAll()}},{key:"_selectItem",value:function(e,t,n){this._selectionController.selectItem(e,n),t&&this._scrollToItem(e)}},{key:"_selectItemByIndex",value:function(e,t,n){if(e>=0&&e<this._items.length){var i=this._items[e];this._selectItem(i,t,n)}}},{key:"_getFocusedItem",value:function(){return this._selectionController.getFocusedItem()}},{key:"_loadItems",value:function(){var e=this,t=this._getUniqueId();this._currentLoadOperationId=t,(0,h.when)(this._getItems()).then(function(n){e._currentLoadOperationId===t&&e._applyItems(n||[])},function(n){e._currentLoadOperationId===t&&e._raiseOnError(n)})}},{key:"_applyItems",value:function(e){this._items=e,this._selectionController.setItems(e),this._renderItems(e)}},{key:"_renderItems",value:function(e){this._$itemViewContainer.empty();for(var t=0;t<e.length;t++){var n=e[t];n._state={index:t,selected:!1,$element:null},this._renderItem(n)}}},{key:"_renderItem",value:function(e){var t=(0,c.default)("<div>").addClass(C).attr("title",this._getTooltipText(e)).data("index",e._state.index),n=(0,c.default)("<div>").addClass(k),i=this._getItemThumbnailContainer(e);f.default.on(i,"dragstart",this._disableDragging);var o=(0,c.default)("<div>").addClass(I),a=(0,c.default)("<div>").addClass(T).text(e.name);t.append(n),n.append(i,o,a),this._$itemViewContainer.append(t),e._state.$element=t}},{key:"_getTooltipText",value:function(e){if(e.tooltipText)return e.tooltipText;var t=e.name+"\r\n";return e.isDirectory||(t+="Size: "+(0,m.getDisplayFileSize)(e.size)+"\r\n"),t+="Date Modified: "+e.dateModified}},{key:"_getUniqueId",value:function(){return Date.now()+"_"+Math.round(1e5*Math.random())}},{key:"_disableDragging",value:function(){return!1}},{key:"_getDefaultOptions",value:function(){return(0,d.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{focusStateEnabled:!0})}},{key:"refreshData",value:function(){this.clearSelection(),this._loadItems()}},{key:"tryOpen",value:function(){var e=this._getFocusedItem();e&&this._raiseSelectedItemOpened(e)}},{key:"clearSelection",value:function(){this._selectionController.clearSelection()}},{key:"getSelectedItems",value:function(){return this._selectionController.getSelectedItems()}}]),t}(y.default),B=function(){function e(t){o(this,e),this._items=[],this._selectionChangedHandler=t.onSelectionChanged,this._selectionChanged=!1}return s(e,[{key:"selectAll",value:function(){}},{key:"clearSelection",value:function(){this._beginUpdate(),this._setAllItemsSelectedState(!1),this._endUpdate()}},{key:"selectItem",value:function(e,t){this._beginUpdate(),this._setAllItemsSelectedState(!1,[e]),this._setItemSelectedState(e,!0),this._endUpdate()}},{key:"invertFocusedItemSelection",value:function(e){}},{key:"getFocusedItem",value:function(){var e=this.getSelectedItems();return e.length>0?e[0]:null}},{key:"getSelectedItems",value:function(){return this._items.filter(function(e){return e._state.selected})}},{key:"setItems",value:function(e){this._items=e}},{key:"_setItemSelectedState",value:function(e,t){e._state.selected!==t&&(e._state.selected=t,e._state.$element.toggleClass(D,t),this._selectionChanged=!0)}},{key:"_setAllItemsSelectedState",value:function(e,t){for(var n=0;n<this._items.length;n++){var i=this._items[n];t&&t.indexOf(i)!==-1||this._setItemSelectedState(i,e)}}},{key:"_beginUpdate",value:function(){this._selectionChanged=!1}},{key:"_endUpdate",value:function(){this._selectionChanged&&(this._selectionChangedHandler(),this._selectionChanged=!1)}}]),e}(),P=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._focusedItem=null,n}return r(t,e),s(t,[{key:"selectAll",value:function(){this._beginUpdate(),this._setAllItemsSelectedState(!0),this._endUpdate()}},{key:"selectItem",value:function(e,t){if(this._beginUpdate(),t.shiftKey)this._setItemsRangeSelectedState(this._focusedItem._state.index,e._state.index,t.ctrlKey,!0);else if(t.ctrlKey){var n=1===this._items.length&&this._focusedItem===e||!e._state.selected;this._setItemSelectedState(e,n)}else this._setAllItemsSelectedState(!1,[e]),this._setItemSelectedState(e,!0);this._setFocusedItem(e),this._endUpdate()}},{key:"_setItemsRangeSelectedState",value:function(e,t,n,i){if(e>t){var o=t;t=e,e=o}for(var a=e;a<=t;a++){var r=this._items[a],s=n?!r._state.selected:i;this._setItemSelectedState(r,s)}}},{key:"_setFocusedItem",value:function(e){this._focusedItem!==e&&(this._focusedItem&&this._focusedItem._state.$element.removeClass(E),e._state.$element.addClass(E),this._focusedItem=e)}},{key:"invertFocusedItemSelection",value:function(){this._focusedItem&&(this._beginUpdate(),this._setItemSelectedState(this._focusedItem,!this._focusedItem._state.selected),this._endUpdate())}},{key:"getFocusedItem",value:function(){return this._focusedItem}},{key:"setItems",value:function(e){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setItems",this).call(this,e),this._focusedItem=e.length>0?e[0]:null}}]),t}(B);e.exports=O},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(0),h=n(1),p=n(4),f=n(18),g=i(f),_=n(163),m=i(_),v="dx-filemanager-toolbar",y="dx-filemanager-general-toolbar",x="dx-filemanager-file-toolbar",b=v+"-separator-item",w=v+"-viewmode-item",C=[{commandName:"download",location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},{commandName:"separator",location:"before"},{commandName:"move",location:"before",compactMode:{locateInMenu:"auto"}},{commandName:"copy",location:"before",compactMode:{locateInMenu:"auto"}},{commandName:"rename",location:"before",compactMode:{locateInMenu:"auto"}},{commandName:"separator",location:"before"},{commandName:"delete",location:"before",compactMode:{showText:"inMenu"}},{commandName:"clear",location:"after",locateInMenu:"never",compactMode:{showText:"inMenu"}}],k=[{commandName:"showDirsPanel",location:"before"},{commandName:"create",location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},{commandName:"upload",location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},{commandName:"refresh",location:"after",showText:"inMenu",compactMode:{showText:"inMenu",locateInMenu:"auto"}},{commandName:"separator",location:"after"},{commandName:"viewMode",location:"after"}],S=["separator","viewMode"],I=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_initMarkup",value:function(){this._commandManager=this.option("commandManager"),this._generalToolbarVisible=!0,this._generalToolbar=this._createToolbar(k),this._fileToolbar=this._createToolbar(C,!0),this.$element().addClass(v+" "+y)}},{key:"_render",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_render",this).call(this);var e=this._getVisibleToolbar();this._checkCompactMode(e)}},{key:"_dimensionChanged",value:function(e){if(!e||"height"!==e){var t=this._getVisibleToolbar();this._checkCompactMode(t)}}},{key:"_getVisibleToolbar",value:function(){return this._generalToolbarVisible?this._generalToolbar:this._fileToolbar}},{key:"_createToolbar",value:function(e,t){var n=this._getToolbarItems(e),i=(0,c.default)("<div>").appendTo(this.$element()),o=this._createComponent(i,m.default,{items:n,visible:!t});return o.compactMode=!1,o}},{key:"_getToolbarItems",value:function(e){var t=this,n=!1;return e.map(function(e){var i=(0,h.isString)(e)?e:e.commandName,o=t._getItemConfigByCommandName(i);(0,h.isObject)(e)||(e={commandName:i});var a=(0,d.extend)(!0,o,e);if("separator"===i)a.visible=n,n=!1;else{a.available=t._isCommandAvailable(i);var r=a.available&&(0,p.ensureDefined)(a.visible,!0);a.visible=r,n=n||r}return a})}},{key:"_getItemConfigByCommandName",value:function(e){var t=this._commandManager.getCommandByName(e);if(t)return this._createCommandItem(t);switch(e){case"separator":return this._createSeparatorItem();case"viewMode":return this._createViewModeItem()}return{}}},{key:"_createCommandItem",value:function(e){var t=this;return{widget:"dxButton",options:{text:e.text,commandText:e.text,icon:e.icon,stylingMode:"text",onClick:function(n){return t._executeCommand(e)}}}}},{key:"_createSeparatorItem",value:function(){return{template:function(e,t,n){(0,c.default)(n).addClass(b)}}}},{key:"_createViewModeItem",value:function(){var e=this,t=["thumbnails","details"].map(function(t){var n=e._commandManager.getCommandByName(t),i=n.text;return{name:t,text:i}}),n="thumbnails"===this.option("itemViewMode")?0:1;return{cssClass:w,widget:"dxSelectBox",options:{items:t,value:t[n],displayExpr:"text",stylingMode:"filled",onValueChanged:function(t){return e._executeCommand(t.value.name)}}}}},{key:"_checkCompactMode",value:function(e){e.compactMode&&this._toggleCompactMode(e,!1);var t=e.$element().width(),n=e._getItemsWidth(),i=t<n;e.compactMode!==i?(e.compactMode||this._toggleCompactMode(e,i),e.compactMode=i):e.compactMode&&this._toggleCompactMode(e,!0)}},{key:"_toggleCompactMode",value:function(e,t){var n=this;e.beginUpdate();var i=e.option("items");i.forEach(function(i,o){if(i.compactMode){var a=null;t?(i.saved=n._getCompactModeOptions(i,i.available),a=i.compactMode):a=i.saved;var r=n._getCompactModeOptions(a,i.available);e.option("items["+o+"]",r)}}),e.endUpdate()}},{key:"_getCompactModeOptions",value:function(e,t){var n=e.visible,i=e.showText,o=e.locateInMenu;return{visible:t&&(0,p.ensureDefined)(n,!0),showText:(0,p.ensureDefined)(i,"always"),locateInMenu:(0,p.ensureDefined)(o,"never")}}},{key:"_ensureAvailableCommandsVisible",value:function(e,t){var n=this;e.beginUpdate();var i=!1,o=e.option("items");o.forEach(function(o,a){var r=o.available,s=!1;if("separator"===o.commandName?(s=i,i=!1):(o.available=n._isCommandAvailable(o.commandName,t),s=o.available,i=i||s),s!==r){var l="items["+a+"].visible";e.option(l,s)}}),e.endUpdate()}},{key:"_fileToolbarHasEffectiveItems",value:function(e){var t=this,n=this._fileToolbar.option("items");return n.some(function(n){var i=n.commandName;return"clear"!==i&&t._commandManager.isCommandAvailable(i,e)})}},{key:"_executeCommand",value:function(e){this._commandManager.executeCommand(e)}},{key:"_isCommandAvailable",value:function(e,t){return S.indexOf(e)>-1||this._commandManager.isCommandAvailable(e,t)}},{key:"_getDefaultOptions",value:function(){return(0,d.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{commandManager:null,itemViewMode:"details"})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"commandManager":case"itemViewMode":this.repaint();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"update",value:function(e){e=(0,p.ensureDefined)(e,[]);var t=0===e.length||!this._fileToolbarHasEffectiveItems(e);this._generalToolbarVisible!==t&&(this._generalToolbar.option("visible",t),this._fileToolbar.option("visible",!t),this._generalToolbarVisible=t,this.$element().toggleClass(y,t),this.$element().toggleClass(x,!t));var n=this._getVisibleToolbar();this._ensureAvailableCommandsVisible(n,e),this._checkCompactMode(n)}}]),t}(g.default);e.exports=I},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){var n=[],i=!0,o=!1,a=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done)&&(n.push(r.value),!t||n.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},c=n(2),d=i(c),h=n(0),p=n(6),f=n(1),g=n(4),_=n(3),m=n(14),v=i(m),y=n(18),x=i(y),b=n(203),w=i(b),C=n(736),k=i(C),S=n(737),I=i(S),T=n(738),D=i(T),E=n(739),A=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),l(t,[{key:"_initMarkup",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._model=this.option("model"),this._provider=this._model.provider,this._initActions(),this._renameItemDialog=this._createEnterNameDialog("Rename","Save"),this._createFolderDialog=this._createEnterNameDialog("New folder","Create");var e=(0,d.default)("<div>").appendTo(this.$element());this._chooseFolderDialog=this._createComponent(e,I.default,{provider:this._provider,getItems:this._model.getFolders,onClosed:this._onDialogClosed.bind(this)}),this._confirmationDialog=this._createConfirmationDialog(),this._fileUploader=this._createFileUploader(),this._createEditActions()}},{key:"_createFileUploader",value:function(){var e=this,t=(0,d.default)("<div>").appendTo(this.$element());return this._createComponent(t,D.default,{getController:this._getFileUploaderController.bind(this),onFilesUploaded:function(t){return e._raiseOnSuccess("Files uploaded",!0)},onErrorOccurred:function(t){var n=t.info,i="Upload failed for the '"+n.fileName+"' file";e._raiseOnError(i,n.error)}})}},{key:"_getFileUploaderController",value:function(){var e=this._uploadFolder,t=this;return{chunkSize:this._provider.getFileUploadChunkSize(),initiateUpload:function(n){return n.destinationFolder=e,(0,p.when)(t._provider.initiateFileUpload(n))},uploadChunk:function(e,n){return(0,p.when)(t._provider.uploadFileChunk(e,n))},finalizeUpload:function(e){return(0,p.when)(t._provider.finalizeFileUpload(e))},abortUpload:function(e){return(0,p.when)(t._provider.abortFileUpload(e))}}}},{key:"_createEnterNameDialog",value:function(e,t){var n=(0,d.default)("<div>").appendTo(this.$element());return this._createComponent(n,k.default,{title:e,buttonText:t,onClosed:this._onDialogClosed.bind(this)})}},{key:"_createConfirmationDialog",value:function(){var e=this;return{show:function(){setTimeout(function(){e._onDialogClosed({dialogResult:{}})})}}}},{key:"_createEditActions",value:function(){var e=this;this._editActions={create:{useCurrentFolder:!0,affectsAllItems:!0,dialog:this._createFolderDialog,getDialogArgument:function(){return v.default.format("dxFileManager-newFolderName")},action:function(t,n){var i=s(t,1),o=i[0],a=n.name;return e._provider.createFolder(o,a)},getSuccessMessage:function(e){return"Folder created"}},rename:{dialog:this._renameItemDialog,getDialogArgument:function(e){var t=s(e,1),n=t[0].name;return n},action:function(t,n){var i=s(t,1),o=i[0],a=n.name;return e._provider.renameItem(o,a)},getSuccessMessage:function(e){return"Item renamed"}},"delete":{dialog:this._confirmationDialog,getDialogArgument:function(e){var t=s(e,1),n=t[0].name;return n},action:function(t,n){return e._provider.deleteItems(t)},getSuccessMessage:function(e){return"Items deleted"}},move:{dialog:this._chooseFolderDialog,action:function(t,n){return e._provider.moveItems(t,n.folder)},getSuccessMessage:function(e){return"Items moved"}},copy:{dialog:this._chooseFolderDialog,action:function(t,n){return e._provider.copyItems(t,n.folder)},getSuccessMessage:function(e){return"Items copied"}},upload:this._tryUpload.bind(this),download:function(){}}}},{key:"getCommandActions",value:function(){var e=this,t={};return(0,_.each)(this._editActions,function(n,i){Object.prototype.hasOwnProperty.call(e._editActions,n)&&(t[n]=function(t){return e._executeAction(n,t)})}),t}},{key:"_executeAction",value:function(e,t){var n=this._editActions[e];n&&((0,f.isFunction)(n)?n(t):this._tryEditAction(n,t))}},{key:"_tryEditAction",value:function(e,t){var n=this,i=t;i||(i=e.useCurrentFolder?[this._model.getCurrentFolder()]:this._model.getMultipleSelectedItems());var o=!e.affectsAllItems&&i.every(function(e){return!e.isDirectory}),a=e.getDialogArgument||g.noop;this._showDialog(e.dialog,a(i)).then(function(t){return e.action(i,t)}).then(function(t){(0,w.default)(t,function(){return n._raiseOnSuccess(e.getSuccessMessage(i),o)},function(e){return n._onFileProviderError(e,i)})},function(e){return n._onFileProviderError(e,i)})}},{key:"_onFileProviderError",value:function(e,t){var n=t[e.index];this._raiseOnError(e.errorId,n)}},{key:"_tryUpload",value:function(e){this._uploadFolder=e&&e[0]||this._model.getCurrentFolder(),this._fileUploader.tryUpload()}},{key:"_showDialog",value:function(e,t){return this._dialogDeferred=new p.Deferred,e.show(t),this._dialogDeferred.promise()}},{key:"_onDialogClosed",value:function(e){var t=e.dialogResult;t?this._dialogDeferred.resolve(t):this._dialogDeferred.reject()}},{key:"_initActions",value:function(){this._actions={onSuccess:this._createActionByOption("onSuccess"),onError:this._createActionByOption("onError"),onCreating:this._createActionByOption("onCreating")}}},{key:"_getDefaultOptions",value:function(){return(0,h.extend)(u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{model:{provider:null,getFolders:null,getCurrentFolder:null,getMultipleSelectedItems:null},onSuccess:null,onError:null,onCreating:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"model":this.repaint();break;case"onSuccess":case"onError":case"onCreating":this._actions[n]=this._createActionByOption(n);break;default:u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_raiseOnSuccess",value:function(e,t){this._actions.onSuccess({message:e,updatedOnlyFiles:t})}},{key:"_raiseOnError",value:function(e,t){var n=t?t.name:null,i=E.FileManagerMessages.get(e,n);this._actions.onError({message:i})}}]),t}(x.default);e.exports=A},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(0),h=n(92),p=i(h),f=n(395),g=i(f),_="dx-filemanager-dialog-name-editor",m="dx-filemanager-dialog-name-editor-popup",v=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"show",value:function(e){e=e||"",this._nameTextBox?this._nameTextBox.option("value",e):this._initialNameValue=e,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this)}},{key:"_onPopupShown",value:function(){if(this._nameTextBox){var e=this._nameTextBox._input();e.length&&e[0].select(),this._nameTextBox.focus()}}},{key:"_getDialogOptions",value:function(){return(0,d.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDialogOptions",this).call(this),{title:this.option("title"),buttonText:this.option("buttonText"),contentCssClass:_,popupCssClass:m})}},{key:"_createContentTemplate",value:function(e){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_createContentTemplate",this).call(this,e),this._nameTextBox=this._createComponent((0,c.default)("<div>"),p.default,{value:this._initialNameValue}),this._$contentElement.append(this._nameTextBox.$element())}},{key:"_getDialogResult",value:function(){var e=this._nameTextBox.option("value");return e?{name:e}:null}},{key:"_getDefaultOptions",value:function(){return(0,d.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{title:"",buttonText:""})}}]),t}(g.default);e.exports=v},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(0),h=n(395),p=i(h),f=n(392),g=i(f),_="dx-filemanager-dialog-folder-chooser",m="dx-filemanager-dialog-folder-chooser-popup",v=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"show",value:function(){this._filesTreeView&&this._filesTreeView.refreshData(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this)}},{key:"_getDialogOptions",value:function(){return(0,d.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDialogOptions",this).call(this),{title:"Select Destination Folder",buttonText:"Select",contentCssClass:_,popupCssClass:m})}},{key:"_createContentTemplate",value:function(e){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_createContentTemplate",this).call(this,e),this._filesTreeView=this._createComponent((0,c.default)("<div>"),g.default,{getItems:this.option("getItems")}),this._$contentElement.append(this._filesTreeView.$element())}},{key:"_getDialogResult",value:function(){return{folder:this._filesTreeView.getCurrentFolder()}}},{key:"_getDefaultOptions",value:function(){return(0,d.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{getItems:null})}}]),t}(p.default);e.exports=v},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(0),h=n(5),p=i(h),f=n(6),g=n(18),_=i(g),m=n(34),v=i(m),y=n(247),x=i(y),b=n(46),w=i(b),C="dx-filemanager-fileuploader",k=C+"-fileinput",S="dx-filemanager-progresspanel",I="dx-filemanager-progressbox",T=I+"-title",D=I+"-progressbar",E=I+"-cancel-button",A=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_initMarkup",value:function(){this._initActions(),this._progressPanel=this._createComponent((0,c.default)("<div>"),B,{}),this.$element().addClass(C).append(this._progressPanel.$element()),this._renderFileInput(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"_renderFileInput",value:function(){this._$fileInput=(0,c.default)("<input>").attr("type","file").prop({multiple:"multiple",tabIndex:-1}).addClass(k),p.default.on(this._$fileInput,"change",this._onFileInputChange.bind(this)),p.default.on(this._$fileInput,"click",function(e){return e.stopPropagation(),!0}),this.$element().append(this._$fileInput)}},{key:"_onFileInputChange",value:function(){var e=this._$fileInput.prop("files");if(0!==e.length){p.default.off(this._$fileInput,"change"),p.default.off(this._$fileInput,"click");var t=this._$fileInput;this._uploadFiles(e).always(function(){setTimeout(function(){t.remove()})}),this._renderFileInput()}}},{key:"_uploadFiles",value:function(e){var t=this;if(0!==e.length){var n="Uploading "+e.length+" files",i=this._progressPanel.addProgressBox(n,null),o=this.option("getController"),a=new O({controller:o(),onProgress:function(e){return i.updateProgress(100*e)},onError:function(e){return t._raiseOnErrorOccurred(e)}});i.option("onCancel",function(){return a.cancelUpload()});var r=a.uploadFiles(e);return f.when.apply(null,r).then(function(){this._progressPanel.removeProgressBox(i);var e=[].slice.call(arguments);e.some(function(e){return e.success})&&this._onFilesUploaded()}.bind(this))}}},{key:"tryUpload",value:function(){this._$fileInput.click()}},{key:"_onFilesUploaded",value:function(){this._actions.onFilesUploaded()}},{key:"_raiseOnErrorOccurred",value:function(e){this._actions.onErrorOccurred({info:e})}},{key:"_initActions",value:function(){this._actions={onFilesUploaded:this._createActionByOption("onFilesUploaded"),onErrorOccurred:this._createActionByOption("onErrorOccurred")}}},{key:"_getDefaultOptions",value:function(){return(0,d.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{getController:null,onFilesUploaded:null,onErrorOccurred:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"getController":this.repaint();break;case"onFilesUploaded":case"onErrorOccurred":this._actions[n]=this._createActionByOption(n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}(_.default),O=function(){function e(t){o(this,e),this._controller=t.controller,this._onProgressHandler=t.onProgress,this._onErrorHandler=t.onError,this._canceled=!1}return s(e,[{key:"uploadFiles",value:function(e){for(var t={uploadedBytesCount:0,totalBytesCount:0},n=0;n<e.length;n++)t.totalBytesCount+=e[n].size;for(var i=[],o=0;o<e.length;o++){var a=this._uploadFile(e[o],t);i.push(a)}return i}},{key:"cancelUpload",value:function(){this._canceled=!0}},{key:"_uploadFile",value:function(e,t){var n=this,i=this._createUploadingState(e);return this._controller.initiateUpload(i).then(function(){return n._uploadChunks(i,t)}).then(function(){return n._finalizeUpload(i)},function(t){return t&&t.canceled?n._abortUpload(i):n._handleError(t,e)}).catch(function(t){return n._handleError(t,e)})}},{key:"_uploadChunks",value:function(e,t){var n=this;if(this._canceled){var i=this._createResultInfo(e.file.name,!1,!0);return(new f.Deferred).reject(i).promise()}var o=this._getChunk(e);return o?this._controller.uploadChunk(e,o).done(function(){e.uploadedBytesCount+=o.size,e.uploadedChunksCount++,t.uploadedBytesCount+=o.size,n._raiseOnProgress(t)}).then(function(){return n._uploadChunks(e,t)}):(new f.Deferred).resolve().promise()}},{key:"_getChunk",value:function(e){var t=e.file.size-e.uploadedBytesCount;if(0===t)return null;var n=Math.min(t,this._controller.chunkSize),i=e.file.slice(e.uploadedBytesCount,e.uploadedBytesCount+n);return{index:e.uploadedChunksCount,size:n,blob:i}}},{key:"_finalizeUpload",value:function(e){var t=this;return this._controller.finalizeUpload(e).then(function(){return t._createResultInfo(e.file.name,!0)})}},{key:"_abortUpload",value:function(e){var t=this;return this._controller.abortUpload(e).then(function(){return t._createResultInfo(e.file.name,!1,!0)})}},{key:"_handleError",value:function(e,t){var n=this._createResultInfo(t.name,!1,!1,e);return this._onErrorHandler(n),
108n}},{key:"_raiseOnProgress",value:function(e){var t=0!==e.totalBytesCount?e.uploadedBytesCount/e.totalBytesCount:1;this._onProgressHandler(t)}},{key:"_createUploadingState",value:function(e){var t=Math.ceil(e.size/this._controller.chunkSize);return{file:e,uploadedBytesCount:0,uploadedChunksCount:0,totalChunkCount:t,customData:{}}}},{key:"_createResultInfo",value:function(e,t,n,i){return{fileName:e,success:t||!1,canceled:n||!1,error:i||null}}}]),e}(),B=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_init",value:function(){this._progressBoxCount=0,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this)}},{key:"_initMarkup",value:function(){this._popup=this._createComponent(this.$element(),w.default,{width:200,height:145,position:"right bottom",showTitle:!1,visible:!1,shading:!1,deferRendering:!1,closeOnOutsideClick:!1,contentTemplate:this._getPopupContentTemplate.bind(this)}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"addProgressBox",value:function(e,t){var n=this._createComponent((0,c.default)("<div>"),P,{title:e,onCancel:t});return this._$container.append(n.$element()),0===this._progressBoxCount&&this._popup.show(),this._progressBoxCount++,n}},{key:"removeProgressBox",value:function(e){1===this._progressBoxCount&&this._popup.hide(),this._progressBoxCount--,e.dispose(),e.$element().remove()}},{key:"_getPopupContentTemplate",value:function(){return this._$container=(0,c.default)("<div>").addClass(S),this._$container}}]),t}(_.default),P=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_initMarkup",value:function(){this._createOnCancelAction();var e=this.option("title"),n=(0,c.default)("<span>").text(e).addClass(T);this._cancelButton=this._createComponent((0,c.default)("<div>"),v.default,{text:"Cancel",onClick:this._onCancelButtonClick.bind(this)}),this._cancelButton.$element().addClass(E),this._progressBar=this._createComponent((0,c.default)("<div>"),x.default,{min:0,max:100,width:"100%",showStatus:!1}),this._progressBar.$element().addClass(D),this.$element().addClass(I),this.$element().append(n,this._progressBar.$element(),this._cancelButton.$element()),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"updateProgress",value:function(e){this._progressBar.option("value",e)}},{key:"_onCancelButtonClick",value:function(){this._cancelButton.option({disabled:!0,text:"Canceling..."}),this._onCancelAction()}},{key:"_createOnCancelAction",value:function(){this._onCancelAction=this._createActionByOption("onCancel")}},{key:"_getDefaultOptions",value:function(){return(0,d.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{title:"",onCancel:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"title":this.repaint();break;case"onCancel":this._createOnCancelAction();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}(_.default);e.exports=A},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.FileManagerMessages=void 0;var o=n(14),a=i(o),r=n(203);t.FileManagerMessages={get:function(e,t){switch(e){case r.ErrorCode.NoAccess:return a.default.format("dxFileManager-errorNoAccess");case r.ErrorCode.FileExists:return a.default.format("dxFileManager-errorFileExistsFormat",t);case r.ErrorCode.FileNotFound:return a.default.format("dxFileManager-errorFileNotFoundFormat",t);case r.ErrorCode.DirectoryExists:return a.default.format("dxFileManager-errorDirectoryExistsFormat",t)}return a.default.format("dxFileManager-errorDefault")}};e.exports.ErrorCode=r.ErrorCode},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(0),h=n(5),p=i(h),f=n(8),g=n(18),_=i(g),m=n(361),v=i(m),y=n(116),x="dx-filemanager-breadcrumbs",b=x+"-parent-folder-item",w=x+"-separator-item",C=x+"-path-separator-item",k="dx-menu-items-container",S="dxFileManager_breadcrubms",I=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_initMarkup",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._initActions();var e=(0,c.default)("<div>").appendTo(this.$element());this._menu=this._createComponent(e,v.default,{dataSource:this._getMenuItems(),onItemClick:this._onItemClick.bind(this),onItemRendered:this._onItemRendered.bind(this)});var n=(0,f.addNamespace)("click",S);p.default.on(e,n,this._onClick.bind(this)),this.$element().addClass(x)}},{key:"_getMenuItems",value:function(){var e=this.option("path"),t=e?(0,y.getPathParts)(e,!0):[],n=this.option("rootFolderDisplayName");n&&t.unshift(n);for(var i=[{icon:"arrowup",path:(0,y.getParentPath)(e),isPathItem:!0,cssClass:b},{cssClass:w}],o=0;o<t.length;o++){var a=t[o];i.push({text:(0,y.getName)(a),path:0===o?"":a,isPathItem:!0}),o!==t.length-1&&i.push({icon:"spinnext",cssClass:C})}return i}},{key:"_onItemClick",value:function(e){var t=e.itemData;if(t.isPathItem){var n=this.option("path"),i=t.path;i!==n&&this._raisePathChanged(i)}}},{key:"_onClick",value:function(e){var t=e.target,n=(0,c.default)(t).closest("."+k);0===n.length&&this._raiseOutsideClick()}},{key:"_onItemRendered",value:function(e){var t=e.itemElement,n=e.itemData;n.cssClass&&(0,c.default)(t).addClass(n.cssClass)}},{key:"_initActions",value:function(){this._actions={onPathChanged:this._createActionByOption("onPathChanged"),onOutsideClick:this._createActionByOption("onOutsideClick")}}},{key:"_raisePathChanged",value:function(e){this._actions.onPathChanged({newPath:e})}},{key:"_raiseOutsideClick",value:function(){this._actions.onOutsideClick()}},{key:"_getDefaultOptions",value:function(){return(0,d.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{rootFolderDisplayName:"Files",path:"",onPathChanged:null,onOutsideClick:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"rootFolderDisplayName":case"path":this.repaint();break;case"onPathChanged":case"onOutsideClick":this._actions[n]=this._createActionByOption(n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}(_.default);e.exports=I},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(0),h=n(1),p=n(7),f=n(18),g=i(f),_=n(311),m=i(_),v=(0,p.getWindow)(),y=573,x=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_initMarkup",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._initActions(),this._isInAdaptiveState=!1;var e=(0,c.default)("<div>").appendTo(this.$element()),n=this.option("contentTemplate");(0,h.isFunction)(n)&&n(e),this._drawer=this._createComponent(e,m.default,{opened:!0,template:this.option("drawerTemplate")})}},{key:"_render",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_render",this).call(this),this._checkAdaptiveState()}},{key:"_dimensionChanged",value:function(e){e&&"height"===e||this._checkAdaptiveState()}},{key:"_checkAdaptiveState",value:function(){var e=this._isInAdaptiveState;this._isInAdaptiveState=this._isSmallScreen(),e!==this._isInAdaptiveState&&(this.toggleDrawer(!this._isInAdaptiveState,!0),this._raiseAdaptiveStateChanged(this._isInAdaptiveState))}},{key:"_isSmallScreen",value:function(){return(0,c.default)(v).width()<=y}},{key:"_initActions",value:function(){this._actions={onAdaptiveStateChanged:this._createActionByOption("onAdaptiveStateChanged")}}},{key:"_raiseAdaptiveStateChanged",value:function(e){this._actions.onAdaptiveStateChanged({enabled:e})}},{key:"_getDefaultOptions",value:function(){return(0,d.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{drawerTemplate:null,contentTemplate:null,onAdaptiveStateChanged:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"drawerTemplate":case"contentTemplate":this.repaint();break;case"onAdaptiveStateChanged":this._actions[n]=this._createActionByOption(n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"isInAdaptiveState",value:function(){return this._isInAdaptiveState}},{key:"toggleDrawer",value:function(e,t){this._drawer.option("animationEnabled",!t),this._drawer.toggle(e)}}]),t}(g.default);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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(57),u=i(l),c=n(4),d=n(6),h=n(0),p=n(137),f=n(396),g=i(f),_=function(e){function t(e){o(this,t),e=(0,c.ensureDefined)(e,{});var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._options=e,n._provider=null,n}return r(t,e),s(t,[{key:"getItems",value:function(e,t){var n=this;return this._doActionAfterDataAcquired(function(){return n._provider.getItems(e,t)})}},{key:"renameItem",value:function(e,t){var n=this;return this._doActionAfterDataAcquired(function(){return n._provider.renameItem(e,t)})}},{key:"createFolder",value:function(e,t){var n=this;return this._doActionAfterDataAcquired(function(){return n._provider.createFolder(e,t)})}},{key:"deleteItems",value:function(e){var t=this;return this._doActionAfterDataAcquired(function(){return t._provider.deleteItems(e)})}},{key:"moveItems",value:function(e,t){var n=this;return this._doActionAfterDataAcquired(function(){return n._provider.moveItems(e,t)})}},{key:"copyItems",value:function(e,t){var n=this;return this._doActionAfterDataAcquired(function(){return n._provider.copyItems(e,t)})}},{key:"initiateFileUpload",value:function(e){var t=this;return this._doActionAfterDataAcquired(function(){return t._provider.initiateFileUpload(e)})}},{key:"uploadFileChunk",value:function(e,t){var n=this;return this._doActionAfterDataAcquired(function(){return n._provider.uploadFileChunk(e,t)})}},{key:"finalizeFileUpload",value:function(e){var t=this;return this._doActionAfterDataAcquired(function(){return t._provider.finalizeFileUpload(e)})}},{key:"abortFileUpload",value:function(e){var t=this;return this._doActionAfterDataAcquired(function(){return t._provider.abortFileUpload(e)})}},{key:"_doActionAfterDataAcquired",value:function(e){return this._ensureDataAcquired().then(e.bind(this))}},{key:"_ensureDataAcquired",value:function(){var e=this;return this._provider?(new d.Deferred).resolve().promise():this._getData().done(function(t){var n=(0,h.extend)(e._options,{data:t});e._provider=new g.default(n)})}},{key:"_getData",value:function(){return u.default.sendRequest({url:this._options.url,dataType:"json",cache:!1})}}]),t}(p.FileProvider);e.exports=_},function(e,t,n){e.exports=n(744)},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(18),h=i(d),p=n(310),f=i(p),g=n(9),_=i(g),m=n(0),v=n(1),y=i(v),x=n(20),b=i(x),w=n(745),C=i(w),k=n(747),S=i(k),I=n(749),T=i(I),D=n(750),E=i(D),A=n(751),O=i(A),B=n(752),P=i(B),M=n(164),R=i(M),V=n(204),F=n(7),L=n(5),H=i(L),z=n(8),N=i(z),$="dx-diagram",W="dx-diagram-fullscreen",G=$+"-toolbar-wrapper",j=$+"-content-wrapper",q=$+"-drawer-wrapper",K=$+"-content",U="id",Y="text",X="type",Z="parentId",Q="items",J="from",ee="to",te=["north","east","south","west"],ne="dxDiagramEvent",ie=N.default.addNamespace("fullscreenchange",ne),oe=N.default.addNamespace("msfullscreenchange",ne),ae=N.default.addNamespace("webkitfullscreenchange",ne),re=N.default.addNamespace("mozfullscreenchange",ne),se=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_init",value:function(){this._updateDiagramLockCount=0,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this._initDiagram()}},{key:"_initMarkup",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this);var e=!(0,F.hasWindow)();this.$element().addClass($),this._renderToolbar();var n=(0,c.default)("<div>").addClass(j).appendTo(this.$element());this._renderLeftPanel(n);var i=(0,c.default)("<div>").addClass(q).appendTo(n),o=(0,c.default)("<div>").appendTo(i),a=(0,c.default)("<div>").addClass(K).appendTo(o);this._renderRightPanel(o),this._renderContextMenu(a),!e&&this._diagramInstance.createDocument(a[0])}},{key:"_renderToolbar",value:function(){var e=this,t=(0,c.default)("<div>").addClass(G).appendTo(this.$element());this._toolbarInstance=this._createComponent(t,C.default,{onContentReady:function(t){return e._diagramInstance.barManager.registerBar(t.component.bar)},onPointerUp:this._onPanelPointerUp.bind(this),"export":this.option("export")})}},{key:"_renderLeftPanel",value:function(e){var t=this,n=!(0,F.hasWindow)(),i=(0,c.default)("<div>").appendTo(e);this._leftPanel=this._createComponent(i,S.default,{dataSources:this._getDataSources(),customShapes:this._getCustomShapes(),onShapeCategoryRendered:function(i){if(!n){var o=(0,c.default)(i.$element);t._diagramInstance.createToolbox(o[0],40,8,{"data-toggle":"shape-toolbox-tooltip"},i.category),t._createTooltips(e,o.find('[data-toggle="shape-toolbox-tooltip"]'))}},onDataToolboxRendered:function(e){return!n&&t._diagramInstance.createDataSourceToolbox(e.key,e.$element[0])},onPointerUp:this._onPanelPointerUp.bind(this)})}},{key:"_createTooltips",value:function(e,t){var n=this;t.each(function(t,i){var o=(0,c.default)(i),a=(0,c.default)("<div>").html(o.attr("title")).appendTo(e);n._tooltipInstance=n._createComponent(a,R.default,{target:o,showEvent:"mouseenter",hideEvent:"mouseleave",position:"top",animation:{show:{type:"fade",from:0,to:1,delay:500},hide:{type:"fade",from:1,to:0,delay:100}}})})}},{key:"_invalidateLeftPanel",value:function(){this._leftPanel&&this._leftPanel.option({dataSources:this._getDataSources(),customShapes:this._getCustomShapes()})}},{key:"_renderRightPanel",value:function(e){var t=this,n=this._createComponent(e,f.default,{closeOnOutsideClick:!0,openedStateMode:"overlap",position:"right",template:function(e){t._createComponent(e,T.default,{onContentReady:function(e){return t._diagramInstance.barManager.registerBar(e.component.bar)},onPointerUp:t._onPanelPointerUp.bind(t)})}});this._toolbarInstance.option("onWidgetCommand",function(e){"options"===e.name&&n.toggle()})}},{key:"_onPanelPointerUp",value:function(){this._diagramInstance.captureFocus()}},{key:"_renderContextMenu",value:function(e){var t=this,n=(0,c.default)("<div>").appendTo(this.$element());this._createComponent(n,E.default,{container:e,onContentReady:function(e){var n=e.component;return t._diagramInstance.barManager.registerBar(n.bar)},onVisibleChanged:function(e){var n=e.component;return t._diagramInstance.barManager.updateBarItemsState(n.bar)}})}},{key:"_initDiagram",value:function(){var e=(0,V.getDiagram)(),t=e.DiagramControl;this._diagramInstance=new t,this._diagramInstance.onChanged=this._raiseDataChangeAction.bind(this),this._diagramInstance.onEdgeInserted=this._raiseEdgeInsertedAction.bind(this),this._diagramInstance.onEdgeUpdated=this._raiseEdgeUpdatedAction.bind(this),this._diagramInstance.onEdgeRemoved=this._raiseEdgeRemovedAction.bind(this),this._diagramInstance.onNodeInserted=this._raiseNodeInsertedAction.bind(this),this._diagramInstance.onNodeUpdated=this._raiseNodeUpdatedAction.bind(this),this._diagramInstance.onNodeRemoved=this._raiseNodeRemovedAction.bind(this),this._diagramInstance.onToolboxDragStart=this._raiseToolboxDragStart.bind(this),this._diagramInstance.onToolboxDragEnd=this._raiseToolboxDragEnd.bind(this),this._diagramInstance.onToggleFullscreen=this._onToggleFullscreen.bind(this),this._updateCustomShapes(this._getCustomShapes()),this._refreshDataSources()}},{key:"_refreshDataSources",value:function(){this._beginUpdateDiagram(),this._refreshNodesDataSource(),this._refreshEdgesDataSource(),this._endUpdateDiagram()}},{key:"_refreshNodesDataSource",value:function(){this._nodesOption&&(this._nodesOption._disposeDataSource(),delete this._nodesOption,delete this._nodes),this.option("nodes.dataSource")&&(this._nodesOption=new O.default(this),this._nodesOption.option("dataSource",this.option("nodes.dataSource")),this._nodesOption._refreshDataSource())}},{key:"_refreshEdgesDataSource",value:function(){this._edgesOption&&(this._edgesOption._disposeDataSource(),delete this._edgesOption,delete this._edges),this.option("edges.dataSource")&&(this._edgesOption=new P.default(this),this._edgesOption.option("dataSource",this.option("edges.dataSource")),this._edgesOption._refreshDataSource())}},{key:"_getDiagramData",value:function(){var e=void 0,t=(0,V.getDiagram)(),n=t.DiagramCommand;return this._diagramInstance.commandManager.getCommand(n.Export).execute(function(t){e=t}),e}},{key:"_setDiagramData",value:function(e,t){var n=(0,V.getDiagram)(),i=n.DiagramCommand;this._diagramInstance.commandManager.getCommand(i.Import).execute({data:e,keepExistingItems:t})}},{key:"_getDataSources",value:function(){return this.option("dataSources")||{}}},{key:"_createDiagramDataSource",value:function(e){var t=e.key||"0",n=e.title||"Data Source",i=e.nodes||{},o=e.edges||{},a={key:t,title:n,nodeDataSource:i.dataSource,edgeDataSource:o.dataSource,nodeDataImporter:{getKey:this._createGetter(i.keyExpr||U),setKey:this._createSetter(i.keyExpr||U),getText:this._createGetter(i.textExpr||Y),setText:this._createSetter(i.textExpr||Y),getType:this._createGetter(i.typeExpr||X),setType:this._createSetter(i.typeExpr||X),getParentKey:this._createGetter(i.parentKeyExpr||Z),setParentKey:this._createSetter(i.parentKeyExpr||Z),getItems:this._createGetter(i.itemsExpr||Q),setItems:this._createSetter(i.itemsExpr||Q)},edgeDataImporter:{getKey:this._createGetter(o.keyExpr||U),setKey:this._createSetter(o.keyExpr||U),getFrom:this._createGetter(o.fromExpr||J),setFrom:this._createSetter(o.fromExpr||J),getTo:this._createGetter(o.toExpr||ee),setTo:this._createSetter(o.toExpr||ee)},layoutType:this._getDataSourceLayoutType(e.layout)},r=(0,V.getDiagram)(),s=r.DiagramCommand;this._diagramInstance.commandManager.getCommand(s.ImportDataSource).execute(a);var l=this._getDataSources();l[t]=a,this.option("dataSources",l)}},{key:"_getDataSourceLayoutType",value:function(e){var t=(0,V.getDiagram)(),n=t.DataLayoutType;switch(e){case"tree":return n.Tree;case"sugiyama":return n.Sugiyama}}},{key:"_deleteDiagramDataSource",value:function(e){var t=this._getDataSources();if(t[e]){var n=(0,V.getDiagram)(),i=n.DiagramCommand;this._diagramInstance.commandManager.getCommand(i.CloseDataSource).execute(e),delete t[e],this.option("dataSources",t)}}},{key:"_nodesDataSourceChanged",value:function(e){this._nodes=e,this._bindDiagramData()}},{key:"_edgesDataSourceChanged",value:function(e){this._edges=e,this._bindDiagramData()}},{key:"_createGetter",value:function(e){return b.default.compileGetter(e)}},{key:"_createSetter",value:function(e){return y.default.isFunction(e)?e:b.default.compileSetter(e)}},{key:"_createOptionGetter",value:function(e){var t=this.option(e);return this._createGetter(t)}},{key:"_createOptionSetter",value:function(e){var t=this.option(e);return this._createSetter(t)}},{key:"_bindDiagramData",value:function(){if(!this._updateDiagramLockCount&&this._isBindingMode()){var e=(0,V.getDiagram)(),t=e.DiagramCommand,n={nodeDataSource:this._nodes,edgeDataSource:this._edges,nodeDataImporter:{getKey:this._createOptionGetter("nodes.keyExpr"),setKey:this._createOptionSetter("nodes.keyExpr"),getText:this._createOptionGetter("nodes.textExpr"),setText:this._createOptionSetter("nodes.textExpr"),getType:this._createOptionGetter("nodes.typeExpr"),setType:this._createOptionSetter("nodes.typeExpr"),getParentKey:this._createOptionGetter("nodes.parentKeyExpr"),setParentKey:this._createOptionSetter("nodes.parentKeyExpr"),getItems:this._createOptionGetter("nodes.itemsExpr"),setItems:this._createOptionSetter("nodes.itemsExpr")},edgeDataImporter:{getKey:this._createOptionGetter("edges.keyExpr"),setKey:this._createOptionSetter("edges.keyExpr"),getFrom:this._createOptionGetter("edges.fromExpr"),setFrom:this._createOptionSetter("edges.fromExpr"),getTo:this._createOptionGetter("edges.toExpr"),setTo:this._createOptionSetter("edges.toExpr")},layoutType:this._getDataBindingLayoutType()};this._diagramInstance.commandManager.getCommand(t.BindDocument).execute(n)}}},{key:"_getDataBindingLayoutType",value:function(){var e=(0,V.getDiagram)(),t=e.DataLayoutType;switch(this.option("layout")){case"sugiyama":return t.Sugiyama;default:return t.Tree}}},{key:"_isBindingMode",value:function(){return this._nodes||this._edges}},{key:"_beginUpdateDiagram",value:function(){this._updateDiagramLockCount++}},{key:"_endUpdateDiagram",value:function(){this._updateDiagramLockCount=Math.max(this._updateDiagramLockCount-1,0),this._updateDiagramLockCount||this._bindDiagramData()}},{key:"_getCustomShapes",value:function(){return this.option("customShapes")||[]}},{key:"_updateCustomShapes",value:function(e,t){Array.isArray(t)&&this._diagramInstance.removeCustomShapes(e.map(function(e){return e.id})),Array.isArray(e)&&this._diagramInstance.addCustomShapes(e.map(function(e){return{id:e.id,title:e.title,svgUrl:e.svgUrl,svgLeft:e.svgLeft,svgTop:e.svgTop,svgWidth:e.svgWidth,svgHeight:e.svgHeight,defaultWidth:e.defaultWidth,defaultHeight:e.defaultHeight,defaultText:e.defaultText,allowHasText:e.allowHasText,textLeft:e.textLeft,textTop:e.textTop,textWidth:e.textWidth,textHeight:e.textHeight,connectionPoints:e.connectionPoints&&e.connectionPoints.map(function(e){return{x:e.x,y:e.y,side:te.indexOf(e.side)}})}}))}},{key:"_onToggleFullscreen",value:function(e){this._changeNativeFullscreen(e),this.$element().toggleClass(W,e),this._diagramInstance.updateLayout()}},{key:"_changeNativeFullscreen",value:function(e){var t=(0,F.getWindow)();t.self!==t.top&&e!==this._inNativeFullscreen()&&(e?this._subscribeFullscreenNativeChanged():this._unsubscribeFullscreenNativeChanged(),this._setNativeFullscreen(e))}},{key:"_setNativeFullscreen",value:function(e){var t=(0,F.getWindow)(),n=t.self.document,i=t.self.document.body;e?i.requestFullscreen?i.requestFullscreen():i.mozRequestFullscreen?i.mozRequestFullscreen():i.webkitRequestFullscreen?i.webkitRequestFullscreen():i.msRequestFullscreen&&i.msRequestFullscreen():n.exitFullscreen?n.exitFullscreen():n.mozCancelFullscreen?n.mozCancelFullscreen():n.webkitExitFullscreen?n.webkitExitFullscreen():n.msExitFullscreen&&n.msExitFullscreen()}},{key:"_inNativeFullscreen",value:function(){var e=(0,F.getWindow)().document,t=e.fullscreenElement||e.msFullscreenElement||e.webkitFullscreenElement,n=t===e.body||e.webkitIsFullscreen;return!!n}},{key:"_subscribeFullscreenNativeChanged",value:function(){var e=(0,F.getWindow)().document,t=this._onNativeFullscreenChangeHandler.bind(this);H.default.on(e,ie,t),H.default.on(e,oe,t),H.default.on(e,ae,t),H.default.on(e,re,t)}},{key:"_unsubscribeFullscreenNativeChanged",value:function(){var e=(0,F.getWindow)().document;H.default.off(e,ie),H.default.off(e,oe),H.default.off(e,ae),H.default.off(e,re)}},{key:"_onNativeFullscreenChangeHandler",value:function(){this._inNativeFullscreen()||(this._unsubscribeFullscreenNativeChanged(),this._setFullscreen(!1))}},{key:"getData",value:function(){return this._getDiagramData()}},{key:"setData",value:function(e,t){this._setDiagramData(e,t),this._raiseDataChangeAction()}},{key:"createDataSource",value:function(e){this._createDiagramDataSource(e)}},{key:"deleteDataSource",value:function(e){this._deleteDiagramDataSource(e)}},{key:"_getDefaultOptions",value:function(){return(0,m.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{onDataChanged:null,nodes:{dataSource:null,keyExpr:U,textExpr:Y,typeExpr:X,parentKeyExpr:Z,itemsExpr:Q},edges:{dataSource:null,keyExpr:U,fromExpr:J,toExpr:ee},layout:"tree",customShapes:[],"export":{fileName:"Diagram",proxyUrl:void 0}})}},{key:"_createDataChangeAction",value:function(){this._dataChangeAction=this._createActionByOption("onDataChanged")}},{key:"_raiseDataChangeAction",value:function(){this.option("onDataChanged")&&(this._dataChangeAction||this._createDataChangeAction(),this._dataChangeAction({data:this.getData()}))}},{key:"_raiseEdgeInsertedAction",value:function(e,t){this._edgesOption&&this._edgesOption.insert(e,t)}},{key:"_raiseEdgeUpdatedAction",value:function(e,t,n){this._edgesOption&&this._edgesOption.update(e,t,n)}},{key:"_raiseEdgeRemovedAction",value:function(e,t){this._edgesOption&&this._edgesOption.remove(e,t)}},{key:"_raiseNodeInsertedAction",value:function(e,t){this._nodesOption&&this._nodesOption.insert(e,t)}},{key:"_raiseNodeUpdatedAction",value:function(e,t,n){this._nodesOption&&this._nodesOption.update(e,t,n)}},{key:"_raiseNodeRemovedAction",value:function(e,t){this._nodesOption&&this._nodesOption.remove(e,t)}},{key:"_raiseToolboxDragStart",value:function(){this._leftPanel&&this._leftPanel.$element().addClass("dx-skip-gesture-event")}},{key:"_raiseToolboxDragEnd",value:function(){this._leftPanel&&this._leftPanel.$element().removeClass("dx-skip-gesture-event")}},{key:"_optionChanged",value:function(e){switch(e.name){case"nodes":this._refreshNodesDataSource();break;case"edges":this._refreshEdgesDataSource();break;case"layout":this._refreshDataSources();break;case"customShapes":this._updateCustomShapes(e.value,e.previousValue),this._invalidateLeftPanel();break;case"onDataChanged":this._createDataChangeAction();break;case"dataSources":this._invalidateLeftPanel();break;case"export":this._toolbarInstance.option("export",this.option("export"));break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}(h.default);(0,_.default)("dxDiagram",se),e.exports=se},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(260),h=i(d),p=n(163),f=i(p),g=n(104),_=i(g),m=n(261),v=i(m),y=n(262),x=i(y),b=n(0);n(95),n(306),n(103);var w="dx-format-active",C="dx-diagram-toolbar",k=[{command:"options",icon:"preferences",hint:"Show Properties",text:"Properties"}],S="dx-diagram-toolbar-separator",I="dx-diagram-toolbar-menu-separator",T=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_init",value:function(){this.bar=new D(this),this._itemHelpers={},this._contextMenus=[],this._createOnWidgetCommand(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this)}},{key:"_initMarkup",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this);var e=(0,
109c.default)("<div>").addClass(C).appendTo(this._$element);this._renderToolbar(e)}},{key:"_renderToolbar",value:function(e){var t=this._prepareToolbarItems(v.default.getToolbar(),"before",this._execDiagramCommand);t=t.concat(this._prepareToolbarItems(k,"after",this._execWidgetCommand)),this._toolbarInstance=this._createComponent(e,f.default,{dataSource:t})}},{key:"_prepareToolbarItems",value:function(e,t,n){var i=this;return e.map(function(e){return(0,b.extend)(!0,{location:t,locateInMenu:"auto"},i._createItem(e,t,n),i._createItemOptions(e),i._createItemActionOptions(e,n))})}},{key:"_createItem",value:function(e,t,n){var i=this;return"separator"===e.widget?{template:function(e,t,n){(0,c.default)(n).addClass(S)},menuItemTemplate:function(e,t,n){(0,c.default)(n).addClass(I)}}:{widget:e.widget||"dxButton",cssClass:e.cssClass,options:{stylingMode:"text",text:e.text,hint:e.hint,icon:e.icon,onInitialized:function(t){return i._onItemInitialized(t.component,e)},onContentReady:function(t){return i._onItemContentReady(t.component,e,n)}}}}},{key:"_createItemOptions",value:function(e){var t=e.widget,n=e.items,i=e.valueExpr,o=e.displayExpr,a=e.showText,r=e.hint,s=e.icon;return"dxSelectBox"===t?this._createSelectBoxItemOptions(r,n,i,o):"dxColorBox"===t?this._createColorBoxItemOptions(r,s):t&&"dxButton"!==t?void 0:{showText:a||"inMenu"}}},{key:"_createSelectBoxItemOptions",value:function(e,t,n,i){var o=this._createSelectBoxBaseItemOptions(e);o=(0,b.extend)(!0,o,{options:{items:t,valueExpr:n,displayExpr:i}});var a=t.every(function(e){return void 0!==e.icon});return a&&(o=(0,b.extend)(!0,o,{options:{fieldTemplate:function(e,t){(0,c.default)("<i>").addClass(e&&e.icon).appendTo(t),(0,c.default)("<div>").dxTextBox({readOnly:!0,stylingMode:"outlined"}).appendTo(t)},itemTemplate:function(e){return'<i class="'+e.icon+'"'+(e.hint&&' title="'+e.hint)+'"}></i>'}}})),o}},{key:"_createColorBoxItemOptions",value:function(e,t){var n=this._createSelectBoxBaseItemOptions(e);return t&&(n=(0,b.extend)(!0,n,{options:{openOnFieldClick:!0,fieldTemplate:function(e,n){(0,c.default)("<i>").addClass(t).css("borderBottomColor",e).appendTo(n),(0,c.default)("<div>").dxTextBox({readOnly:!0,stylingMode:"outlined"}).appendTo(n)}}})),n}},{key:"_createSelectBoxBaseItemOptions",value:function(e){return{options:{stylingMode:"filled",hint:e}}}},{key:"_createItemActionOptions",value:function(e,t){var n=this;switch(e.widget){case"dxSelectBox":case"dxColorBox":return{options:{onValueChanged:function(i){var o=n._getExecCommandParameter(e,i.component.option("value"));t.call(n,e.command,o)}}};default:if(!e.items)return{options:{onClick:function(i){var o=n._getExecCommandParameter(e);t.call(n,e.command,o)}}}}}},{key:"_getExecCommandParameter",value:function(e,t){return e.getParameter?e.getParameter(this,t):t}},{key:"_onItemInitialized",value:function(e,t){void 0!==t.command&&(this._itemHelpers[t.command]=new E(e))}},{key:"_onItemContentReady",value:function(e,t,n){var i=this;if("dxButton"===e.NAME&&t.items){var o=(0,c.default)("<div>").appendTo(this.$element());this._createComponent(o,_.default,{dataSource:t.items,displayExpr:"text",valueExpr:"command",target:e.$element(),showEvent:"dxclick",position:{at:"left bottom"},onItemClick:function(e){var t=e.itemData;if(void 0!==t.command){var o=i._getExecCommandParameter(t);n.call(i,t.command,o)}},onInitialized:function(e){var n=e.component;return i._onContextMenuInitialized(n,t)},onDisposing:function(e){var n=e.component;return i._onContextMenuDisposing(n,t)}})}}},{key:"_onContextMenuInitialized",value:function(e,t){var n=this;this._contextMenus.push(e),t.items.forEach(function(t,i){n._itemHelpers[t.command]=new A(e,i)})}},{key:"_onContextMenuDisposing",value:function(e,t){this._contextMenus=this._contextMenus.filter(function(t){return t!==e})}},{key:"_execDiagramCommand",value:function(e,t){this._updateLocked||this.bar.raiseBarCommandExecuted(e,t)}},{key:"_execWidgetCommand",value:function(e){this._updateLocked||this._onWidgetCommandAction({name:e})}},{key:"_createOnWidgetCommand",value:function(){this._onWidgetCommandAction=this._createActionByOption("onWidgetCommand")}},{key:"_setItemEnabled",value:function(e,t){e in this._itemHelpers&&this._itemHelpers[e].setEnabled(t)}},{key:"_setEnabled",value:function(e){this._toolbarInstance.option("disabled",!e),this._contextMenus.forEach(function(t){return t.option("disabled",!e)})}},{key:"_setItemValue",value:function(e,t){try{this._updateLocked=!0,e in this._itemHelpers&&this._itemHelpers[e].setValue(t)}finally{this._updateLocked=!1}}},{key:"_optionChanged",value:function(e){switch(e.name){case"onWidgetCommand":this._createOnWidgetCommand();break;case"export":break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_getDefaultOptions",value:function(){return(0,b.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{"export":{fileName:"Diagram",proxyUrl:void 0}})}}]),t}(h.default),D=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"getCommandKeys",value:function(){return v.default.getToolbar().reduce(function(e,t){return void 0!==t.command&&e.push(t.command),t.items?e.concat(t.items.filter(function(e){return void 0!==e.command}).map(function(e){return e.command})):e},[])}},{key:"setItemValue",value:function(e,t){this._owner._setItemValue(e,t)}},{key:"setItemEnabled",value:function(e,t){this._owner._setItemEnabled(e,t)}},{key:"setEnabled",value:function(e){this._owner._setEnabled(e)}}]),t}(x.default),E=function(){function e(t){o(this,e),this._widget=t}return s(e,[{key:"setEnabled",value:function(e){this._widget.option("disabled",!e)}},{key:"setValue",value:function(e){"value"in this._widget.option()?this._widget.option("value",e):void 0!==e&&this._widget.$element().toggleClass(w,e)}}]),e}(),A=function(e){function t(e,n){o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i._index=n,i}return r(t,e),s(t,[{key:"setEnabled",value:function(e){this._widget.option("items["+this._index+"].disabled",!e)}},{key:"setValue",value:function(e){}}]),t}(E);e.exports=T},function(e,t){e.exports=window.DevExpress.diagram},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(260),h=i(d),p=n(252),f=i(p),g=n(162),_=i(g),m=n(748),v=i(m),y=n(6),x="dx-diagram-left-panel",b=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_init",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this._dataSources=this.option("dataSources")||{},this._customShapes=this.option("customShapes")||[],this._onShapeCategoryRenderedAction=this._createActionByOption("onShapeCategoryRendered"),this._onDataToolboxRenderedAction=this._createActionByOption("onDataToolboxRendered")}},{key:"_initMarkup",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this.$element().addClass(x);var e=(0,c.default)("<div>").appendTo(this.$element());this._scrollView=this._createComponent(e,_.default);var n=(0,c.default)("<div>").appendTo(this._scrollView.content());this._renderAccordion(n)}},{key:"_getAccordionDataSource",value:function(){for(var e=this,t=[],n=v.default.load(this._customShapes.length>0),i=0;i<n.length;i++)t.push({category:n[i].category,title:n[i].title,onTemplate:function(t,n,i){e._onShapeCategoryRenderedAction({category:i.category,$element:n})}});for(var o in this._dataSources)Object.prototype.hasOwnProperty.call(this._dataSources,o)&&(t.push({key:o,title:this._dataSources[o].title,onTemplate:function(t,n,i){e._onDataToolboxRenderedAction({key:i.key,$element:n})}}),this._hasDataSources=!0);return t}},{key:"_renderAccordion",value:function(e){var t=this,n=this._getAccordionDataSource();this._accordionInstance=this._createComponent(e,f.default,{multiple:!0,collapsible:!0,displayExpr:"title",dataSource:n,itemTemplate:function(e,n,i){return e.onTemplate(t,i,e)},onContentReady:function(e){t._updateScrollAnimateSubscription(e.component)}}),(this._customShapes.length>0||this._hasDataSources)&&(this._accordionInstance.collapseItem(0),this._accordionInstance.expandItem(n.length-1))}},{key:"_updateScrollAnimateSubscription",value:function(e){var t=this;e._deferredAnimate=new y.Deferred,e._deferredAnimate.done(function(){t._scrollView.update(),t._updateScrollAnimateSubscription(e)})}},{key:"_optionChanged",value:function(e){switch(e.name){case"customShapes":this._customShapes=e.value||[],this._invalidate();break;case"dataSources":this._dataSources=e.value||{},this._invalidate();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}(h.default);e.exports=b},function(e,t,n){var i=n(204),o={load:function(e){var t=(0,i.getDiagram)().ShapeCategory,n=[{category:t.General,title:"General"},{category:t.Flowchart,title:"Flow Chart"}];return e&&n.push({category:t.Custom,title:"Custom"}),n}};e.exports=o},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="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},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},c=n(2),d=i(c),h=n(260),p=i(h),f=n(252),g=i(f),_=n(140),m=i(_),v=n(261),y=i(v),x=n(0),b=n(262),w=i(b),C="dx-diagram-right-panel",k="dx-diagram-right-panel-begin-group",S=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),l(t,[{key:"_init",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this.bar=new I(this),this._valueConverters={}}},{key:"_initMarkup",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this.$element().addClass(C);var e=(0,d.default)("<div>").appendTo(this.$element());this._renderAccordion(e)}},{key:"_getAccordionDataSource",value:function(){return[{title:"Page Properties",onTemplate:function(e,t){return e._renderOptions(t)}}]}},{key:"_renderAccordion",value:function(e){var t=this;this._accordionInstance=this._createComponent(e,g.default,{multiple:!0,collapsible:!0,displayExpr:"title",dataSource:this._getAccordionDataSource(),itemTemplate:function(e,n,i){return e.onTemplate(t,i)}})}},{key:"_renderOptions",value:function(e){var t=this;this._formInstance=this._createComponent(e,m.default,{items:y.default.getOptions().map(function(e){return(0,x.extend)(!0,{editorType:e.widget,dataField:e.command.toString(),cssClass:e.beginGroup&&k,label:{text:e.text},options:{text:e.text,hint:e.hint,icon:e.icon,onInitialized:function(n){return t._onToolbarItemInitialized(n.component,e.command)}}},t._createWidgetOptions(e))}),onFieldDataChanged:function(e){return t._onDiagramOptionChanged(e.dataField,e.value)}})}},{key:"_createWidgetOptions",value:function(e){if(e.getValue&&e.setValue&&(this._valueConverters[e.command]={getValue:e.getValue,setValue:e.setValue}),"dxSelectBox"===e.widget)return{editorOptions:{dataSource:e.items,displayExpr:"title",valueExpr:"value"}}}},{key:"_onDiagramOptionChanged",value:function(e,t){if(!this._updateLocked&&void 0!==t){var n=this._valueConverters[e];n&&(t=n.getValue(t)),this.bar.raiseBarCommandExecuted(parseInt(e),t)}}},{key:"_setItemValue",value:function(e,t){var n=this._valueConverters[e];n&&(t=n.setValue(t)),this._updateLocked=!0,this._formInstance.updateData(e.toString(),t),this._updateLocked=!1}},{key:"_setItemSubItems",value:function(e,t){this._updateLocked=!0;var n=this._formInstance.getEditor(e.toString());n.option("items",t.map(function(e){var t="object"===s(e.value)?JSON.stringify(e.value):e.value;return{value:t,title:e.text}})),this._updateLocked=!1}},{key:"_setEnabled",value:function(e){this._formInstance.option("disabled",!e)}},{key:"_getDefaultOptions",value:function(){return(0,x.extend)(u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{container:null})}}]),t}(p.default),I=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),l(t,[{key:"getCommandKeys",value:function(){return y.default.getOptions().map(function(e){return e.command})}},{key:"setItemValue",value:function(e,t){this._owner._setItemValue(e,t)}},{key:"setEnabled",value:function(e){this._owner._setEnabled(e)}},{key:"setItemSubItems",value:function(e,t){this._owner._setItemSubItems(e,t)}}]),t}(w.default);e.exports=S},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},u=n(2),c=i(u),d=n(18),h=i(d),p=n(104),f=i(p),g=n(261),_=i(g),m=n(262),v=i(m),y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_init",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this._createOnVisibleChangedAction(),this.bar=new x(this),this._tempState=void 0,this._commandToIndexMap={}}},{key:"_initMarkup",value:function(){var e=this;l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this);var n=_.default.getContextMenu(),i=(0,c.default)("<div>").appendTo(this.$element());this._contextMenuInstance=this._createComponent(i,f.default,{target:this.option("container"),dataSource:n,displayExpr:"text",onItemClick:function(t){var n=t.itemData;return e._onItemClick(n.command)},onShowing:function(t){e._tempState=!0,e._onVisibleChangedAction({visible:!0,component:e}),delete e._tempState},onHiding:function(t){e._tempState=!1,e._onVisibleChangedAction({visible:!1,component:e}),delete e._tempState}}),n.forEach(function(t,n){return e._commandToIndexMap[t.command]=n})}},{key:"_onItemClick",value:function(e){this.bar.raiseBarCommandExecuted(e),this._contextMenuInstance.hide()}},{key:"_setItemEnabled",value:function(e,t){e in this._commandToIndexMap&&this._contextMenuInstance.option("items["+this._commandToIndexMap[e]+"].disabled",!t)}},{key:"_setEnabled",value:function(e){this._contextMenuInstance.option("disabled",!e)}},{key:"isVisible",value:function(){return void 0!==this._tempState?this._tempState:!!this._contextMenuInstance.option("visible")}},{key:"_createOnVisibleChangedAction",value:function(){this._onVisibleChangedAction=this._createActionByOption("onVisibleChanged")}},{key:"_optionChanged",value:function(e){switch(e.name){case"onVisibleChanged":this._createOnVisibleChangedAction();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}(h.default),x=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"getCommandKeys",value:function(){return _.default.getContextMenu().map(function(e){return e.command})}},{key:"setItemEnabled",value:function(e,t){this._owner._setItemEnabled(e,t)}},{key:"setEnabled",value:function(e){this._owner._setEnabled(e)}},{key:"isVisible",value:function(){return this._owner.isVisible()}}]),t}(v.default);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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(397),u=i(l),c=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_dataSourceChangedHandler",value:function(e,t){this._diagramWidget._nodesDataSourceChanged(e)}}]),t}(u.default);e.exports=c},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){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(397),u=i(l),c=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_dataSourceChangedHandler",value:function(e,t){this._diagramWidget._edgesDataSourceChanged(e)}}]),t}(u.default);e.exports=c},function(e,t,n){var i=n(171);n(212);var o=i.viz=n(754);o.currentTheme=n(50).currentTheme,o.registerTheme=n(50).registerTheme,o.exportFromMarkup=n(263).exportFromMarkup,o.getMarkup=n(263).getMarkup,o.exportWidgets=n(263).exportWidgets,o.currentPalette=n(167).currentPalette,o.getPalette=n(167).getPalette,o.generateColors=n(167).generateColors,o.registerPalette=n(167).registerPalette,o.refreshTheme=n(50).refreshTheme,o.dxChart=n(755),o.dxPieChart=n(792),o.dxPolarChart=n(793),o.dxLinearGauge=n(794),o.dxCircularGauge=n(800),o.dxBarGauge=n(803),o.dxRangeSelector=n(805),o.dxVectorMap=n(813),o.map={},o.map.sources={},o.map.projection=n(417).projection,o.dxSparkline=n(823),o.dxBullet=n(825),o.dxTreeMap=n(827),o.dxFunnel=n(838),o.dxSankey=n(846),o.BaseWidget=n(97),o.getTheme=n(50).getTheme,o.findTheme=n(50).getTheme,o.refreshAll=n(50).refreshTheme,o.refreshPaths=n(853).refreshPaths,o.gauges={__internals:{}},o._dashboard={},o._dashboard.Renderer=n(168).Renderer,o._dashboard.SvgElement=n(168).SvgElement,o._dashboard.patchFontOptions=n(10).patchFontOptions,e.exports=o},function(e,t,n){n(130),e.exports=DevExpress.viz=DevExpress.viz||{}},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,t,n){for(var i,o=0;o<e.length;o++)if(e[o].pane===t||void 0===e[o].pane&&t===n){i=e[o].name;break}return i||(i=e[0].name),i}function a(e,t,n){var i=e.getOptions().grid,o=e.getOptions().minorGrid;i.visible=t,o&&(o.visible=n)}function r(e){var t=!1,n=[],i=e.some(function(e){var t=e.getOptions().minorGrid;return t&&t.visible}),o=e.some(function(e){var t=e.getOptions().grid;return t&&t.visible});e.length>1&&(e.forEach(function(e){var r=e.getOptions().grid;t?a(e,!1,!1):r&&r.visible&&(e.getTranslator().getBusinessRange().isEmpty()?(a(e,!1,!1),n.push(e)):(t=!0,a(e,o,i)))}),!t&&n.length&&a(n[0],o,i))}function s(e,t,n){var i,o;for(o=0;o<t.length;o++)if(t[o].name===n){i=t[o],i.priority=o;break}if(!i)for(o=0;o<e.length;o++)if(e[o].name===n){i=e[o].getOptions(),i.priority=e[o].priority;break}return i}function l(e,t,n){var i,o;for(o=0;o<n.length;o++)if(i=n[o],i.name===t&&i.pane===e)return i;if(e)return l(void 0,t,n)}function u(e,t){return e.priority-t.priority}function c(e,t){var n=!1;return W(e,function(e,i){if(i.name===t)return n=!0,!1}),n}function d(e,t,n,i){var o=t[e]||0,a=n[e]||0;return o+a+(o&&a?i:0)}function h(e,t,n){return p(t[e],n[e])}function p(e,t){return Math.max(e||0,t||0)}function f(e){return e.getMargins()}function g(e,t){return e.reduce(function(e,n){var i=t(n),o=e.panes[n.pane]=e.panes[n.pane]||{},a=n.getMultipleAxesSpacing();return o.top=d("top",o,i,a),o.bottom=d("bottom",o,i,a),o.left=h("left",o,i),o.right=h("right",o,i),e.top=h("top",o,e),e.bottom=h("bottom",o,e),e.left=h("left",o,e),e.right=h("right",o,e),e},{panes:{}})}function _(e){return e.reduce(function(e,t){var n=t.getMargins(),i=e.panes[t.pane]=e.panes[t.pane]||{},o=t.getMultipleAxesSpacing();return i.top=h("top",i,n),i.bottom=h("bottom",i,n),i.left=d("left",i,n,o),i.right=d("right",i,n,o),e.top=h("top",i,e),e.bottom=h("bottom",i,e),e.left=h("left",i,e),e.right=h("right",i,e),e},{panes:{}})}function m(e,t,n,i,o){e.forEach(function(e){e[t](n&&n[e.pane],i&&i[e.pane]||i,o)})}function v(e,t,n,i){function o(t,n,i){var o=(e?["left","right"]:["top","bottom"]).indexOf(t)===-1?n:n.panes[i]||{};return o[t]}function a(e,t,n,i){return p(o(e,t,i),o(e,n,i))}for(var r in t)t[r].top=t[r].originalTop+a("top",n,i,r),t[r].bottom=t[r].originalBottom+a("bottom",n,i,r),t[r].left=t[r].originalLeft+a("left",n,i,r),t[r].right=t[r].originalRight+a("right",n,i,r);return t}function y(e,t,n,i){t&&(m(e,"createTicks",n),M.synchronize(e)),m(e,"draw",!t&&n,i)}function x(e,t){var n={};return function(i){var o=n[i.pane]=n[i.pane]||{top:0,left:0,bottom:0,right:0},a=i.getMultipleAxesSpacing(),r=i.getMargins();i.shift(o),o[e]=d(e,o,r,a),o[t]=d(t,o,r,a)}}function b(e,t){var n,i,o=0;for(n in t.panes)i=t.panes[n],o+="height"===e?i.top+i.bottom:i.left+i.right;return o}function w(e,t,n,i){var o=0;e[t]>0&&(o=b(t,i(n,f)),m(n,"hideTitle"),e[t]-=o-b(t,i(n,f))),e[t]>0&&m(n,"hideOuterElements")}function C(e,t){var n=t.reduce(function(e,t){return e+=t.getPoints().length},0)/t.length;return e.animate&&n<=e.animationPointsLimit}var k=n(4).noop,S=n(0).extend,I=n(13).inArray,T=n(3).each,D=n(9),E=n(10),A=n(1),O=n(29),B=n(264).overlapping,P=n(402),M=n(780),R=n(404).AdvancedChart,V=n(789),F=n(410),L=n(271),H=n(109),z="default",N=[{name:z,border:{}}],$=E.map,W=T,G=Array.isArray,j=n(1).isDefined,q=function(e,t,n,i,o){var a=~~((n<i?n:i)/2),r=o.width||0,s=r<a?r:a;e+=s/2,t+=s/2,n-=s,i-=s;var l,u=e+n,c=t+i,d=[],h=[],p=0,f=0,g={top:[[e,t],[u,t]],right:[[u,t],[u,c]],bottom:[[u,c],[e,c]],left:[[e,c],[e,t]]};switch(W(g,function(e){var t=!!o[e];p=2*p+~~t}),p){case 13:case 9:l=["left","top","right","bottom"];break;case 11:l=["bottom","left","top","right"];break;default:l=["top","right","bottom","left"]}return W(l,function(e,t){var n=!!o[t];!f&&h.length&&(d.push(h),h=[]),n&&W(g[t].slice(f),function(e,t){h=h.concat(t)}),f=~~n}),h.length&&d.push(h),1===d.length&&(d=d[0]),{points:d,pathType:15===p?"area":"line"}},K=R.inherit({_themeSection:"chart",_fontFields:["crosshair.label.font"],_setDeprecatedOptions:function(){this.callBase.apply(this,arguments),S(this._deprecatedOptions,{useAggregation:{since:"18.1",message:"Use the 'commonSeriesSettings.aggregation.enabled' or 'series.aggregation.enabled' option instead"},"argumentAxis.min":{since:"18.2",message:"Use the 'argumentAxis.visualRange' option instead"},"argumentAxis.max":{since:"18.2",message:"Use the 'argumentAxis.visualRange' option instead"},"valueAxis.min":{since:"18.2",message:"Use the 'valueAxis.visualRange' option instead"},"valueAxis.max":{since:"18.2",message:"Use the 'valueAxis.visualRange' option instead"},zoomingMode:{since:"18.2",message:"Use the 'zoomAndPan' option instead"},scrollingMode:{since:"18.2",message:"Use the 'zoomAndPan' option instead"}})},_partialOptionChangesMap:{visualRange:"VISUAL_RANGE",_customVisualRange:"VISUAL_RANGE",strips:"REFRESH_AXES",constantLines:"REFRESH_AXES"},_partialOptionChangesPath:{argumentAxis:["strips","constantLines","visualRange","_customVisualRange"],valueAxis:["strips","constantLines","visualRange","_customVisualRange"]},_initCore:function(){this.paneAxis={},this._panesClipRects={},this.callBase()},_disposeCore:function(){var e=this,t=this._disposeObjectsInArray,n=e._panesClipRects;e.callBase(),t.call(n,"fixed"),t.call(n,"base"),t.call(n,"wide"),e._panesClipRects=null},_correctAxes:function(){this._correctValueAxes(!0)},_getExtraOptions:k,_cleanPanesClipRects:function(e){var t=this,n=t._panesClipRects[e];W(n||[],function(e,t){t&&t.dispose()}),t._panesClipRects[e]=[]},_createPanes:function(){var e,t=this,n=t.option("panes"),i=0;return(!n||G(n)&&!n.length)&&(n=N),t._cleanPanesClipRects("fixed"),t._cleanPanesClipRects("base"),t._cleanPanesClipRects("wide"),e=t.option("defaultPane"),n=S(!0,[],G(n)?n:[n]),W(n,function(e,t){t.name=j(t.name)?t.name:z+i++}),j(e)?c(n,e)||(t._incidentOccurred("W2101",[e]),e=n[n.length-1].name):e=n[n.length-1].name,t.defaultPane=e,n=t._isRotated()?n.reverse():n},_getAxisRenderingOptions:function(){return{axisType:"xyAxes",drawingType:"linear"}},_prepareAxisOptions:function(e,t,n){return{isHorizontal:"argumentAxis"===e!==n,containerColor:this._themeManager.getOptions("containerBackgroundColor")}},_checkPaneName:function(e){var t=$(this.panes,function(e){return e.name});return e.pane=e.pane||this.defaultPane,I(e.pane,t)!==-1},_getValueAxis:function(e,t){var n,i,a=this,r=a._valueAxes,u=a.option("valueAxis")||{},c=G(u)?u:[u],d=a._isRotated(),h=a._getCrosshairMargins();return t=t||o(r,e,a.defaultPane),i=l(e,t,r),i||(n=s(r,c,t),n||(a._incidentOccurred("W2102",[t]),n={name:t,priority:r.length}),i=a._createAxis(!1,a._populateAxesOptions("valueAxis",n,{pane:e,name:t,optionPath:G(u)?"valueAxis["+n.priority+"]":"valueAxis",crosshairMargin:d?h.y:h.x},d)),i.applyVisualRangeSetter(a._getVisualRangeSetter()),r.push(i)),i.setPane(e),i},_correctValueAxes:function(e){var t=this,n=t._themeManager.getOptions("synchronizeMultiAxes"),i=t._valueAxes,o={};t.series.forEach(function(e){var t=e.getValueAxis();o[t.pane]=!0}),t.panes.forEach(function(a){var s=a.name;o[s]||t._getValueAxis(s),e&&n&&r(i.filter(function(e){return e.pane===s}))}),t._valueAxes=i.filter(function(e){return e.pane||e.setPane(t.defaultPane),c(t.panes,e.pane)}).sort(u);var a=this.getValueAxis();t._valueAxes.forEach(function(e){var n=e.getOptions().optionPath;if(n){var i=t._valueAxes.filter(function(e){return e.getOptions().optionPath===n});i.length>1&&(i.some(function(e){return e===a})?i.forEach(function(e){e!==a&&(e.getOptions().optionPath=null)}):i.forEach(function(e,t){0!==t&&(e.getOptions().optionPath=null)}))}})},_getSeriesForPane:function(e){var t=[];return W(this.series,function(n,i){i.pane===e&&t.push(i)}),t},_createPanesBorderOptions:function(){var e=this._themeManager.getOptions("commonPaneSettings").border,t={};return this.panes.forEach(function(n){return t[n.name]=S(!0,{},e,n.border)}),t},_createScrollBar:function(){var e=this,t=e._themeManager.getOptions("scrollBar")||{},n=e._scrollBarGroup;t.visible?(t.rotated=e._isRotated(),e._scrollBar=(e._scrollBar||new V.ScrollBar(e._renderer,n)).update(t)):(n.linkRemove(),e._scrollBar&&e._scrollBar.dispose(),e._scrollBar=null)},_prepareToRender:function(e){var t=this._createPanesBorderOptions();return this._createPanesBackground(),this._appendAxesGroups(),this._adjustViewport(),t},_adjustViewport:function(){var e=this,t=e._getVisibleSeries(),n=e.getArgumentAxis(),i=t.some(function(e){return e.useAggregation()}),o=e._themeManager.getOptions("adjustOnZoom"),a=!n.dataVisualRangeIsReduced();(i||o)&&e._valueAxes.forEach(function(e){return e.adjust(a)})},_recreateSizeDependentObjects:function(e){var t=this,n=t._getVisibleSeries(),i=n.some(function(e){return e.useAggregation()}),o=t._isZooming();i&&(t._argumentAxes.forEach(function(e){e.updateCanvas(t._canvas)}),n.forEach(function(t){t.useAggregation()&&(e||o||!t._useAllAggregatedPoints)&&t.createPoints()}),t._processSeriesFamilies())},_isZooming:function(){var e=this,t=e.getArgumentAxis();if(!t||!t.getTranslator())return!1;var n=t.getTranslator().getBusinessRange(),i=t.getViewport(),o=i?i.min:0,a=i?i.max:0;"logarithmic"===n.axisType&&(o=E.getLog(o,n.base),a=E.getLog(a,n.base));var r="discrete"===n.axisType?E.getCategoriesInfo(n.categories,o,a).categories.length:Math.abs(a-o),s=O.getPrecision(r);s=s>1?Math.pow(10,s-2):1;var l=Math.round((e._zoomLength-r)*s)/s!==0;return e._zoomLength=r,l},_handleSeriesDataUpdated:function(){var e=this,t=new H.Range;e.series.forEach(function(e){t.addRange(e.getArgumentRange())}),e._argumentAxes.forEach(function(n){n.updateCanvas(e._canvas),n.setBusinessRange(t,e._axesReinitialized)}),e.callBase()},_isLegendInside:function(){return this._legend&&"inside"===this._legend.getPosition()},_isRotated:function(){return this._themeManager.getOptions("rotated")},_getLayoutTargets:function(){return this.panes},_applyClipRects:function(e){var t,n=this,i=n._getCanvasClipRectID();for(n._drawPanesBorders(e),n._createClipRectsForPanes(),t=0;t<n._argumentAxes.length;t++)n._argumentAxes[t].applyClipRects(n._getElementsClipRectID(n._argumentAxes[t].pane),i);
110for(t=0;t<n._valueAxes.length;t++)n._valueAxes[t].applyClipRects(n._getElementsClipRectID(n._valueAxes[t].pane),i);n._fillPanesBackground()},_updateLegendPosition:function(e,t){var n=this;if(e.drawLegend&&n._legend&&t){var i=n.panes,o=S({},i[0].canvas),a=new P.LayoutManager;o.right=i[i.length-1].canvas.right,o.bottom=i[i.length-1].canvas.bottom,a.setOptions({width:0,height:0}),a.layoutElements([n._legend],o,k,[{canvas:o}],void 0)}},_allowLegendInsidePosition:function(){return!0},_applyExtraSettings:function(e){var t=this,n=t._getPaneIndex(e.pane),i=t._panesClipRects,o=i.wide[n];e.setClippingParams(i.base[n].id,o&&o.id,t._getPaneBorderVisibility(n))},_updatePanesCanvases:function(e){e.recreateCanvas&&E.updatePanesCanvases(this.panes,this._canvas,this._isRotated())},_renderScaleBreaks:function(){this._valueAxes.concat(this._argumentAxes).forEach(function(e){e.drawScaleBreaks()})},_applyPointMarkersAutoHiding:function(){var e=this;return e._themeManager.getOptions("autoHidePointMarkers")?void e.panes.forEach(function(t){var n=e.series.filter(function(e){return e.pane===t.name&&e.usePointsToDefineAutoHiding()}),i=e.getArgumentAxis(),o=i.visualRange(),a=i.getTranslator(),r=i.getOptions().type,s=L.getViewPortFilter(o||{}),l=[],u={};n.forEach(function(t){var i=t.getValueAxis(),o=i.visualRange(),r=i.getTranslator(),c=e.series.indexOf(t),d=L.getViewPortFilter(o||{});u[c]={},n.forEach(function(t){return u[c][e.series.indexOf(t)]=0});var h=[];t.getPoints().filter(function(e){return e.getOptions().visible&&s(e.argument)&&(d(e.getMinValue(!0))||d(e.getMaxValue(!0)))}).forEach(function(e){var t={seriesIndex:c,argument:e.argument,value:e.getMaxValue(!0),size:e.bubbleSize||e.getOptions().size};if(e.getMinValue(!0)!==e.getMaxValue(!0)){var n=S({},t);n.value=e.getMinValue(!0),n.x=a.to(n.argument,1),n.y=r.to(n.value,1),h.push(n)}t.x=a.to(t.argument,1),t.y=r.to(t.value,1),h.push(t)}),u[c].pointsCount=h.length,u[c].total=0,u[c].continuousSeries=0,l=l.concat(h)});var c="discrete"===r?function(e,t){return o.categories.indexOf(e.argument)-o.categories.indexOf(t.argument)}:function(e,t){return e.argument-t.argument};l.sort(c);for(var d=!1,h=0;h<l.length-1;h++){var p=l[h],f=p.size;if(j(p.x)&&j(p.y))for(var g=h+1;g<l.length;g++){var _=l[g],m=j(_)?_.x:null,v=j(_)?_.y:null;if(!j(m)||Math.abs(p.x-m)>=f){d&=g!==h+1;break}var y=j(m)&&j(v)&&Math.sqrt(Math.pow(p.x-m,2)+Math.pow(p.y-v,2));y&&y<f&&(u[p.seriesIndex][_.seriesIndex]++,u[p.seriesIndex].total++,d||(u[p.seriesIndex].continuousSeries++,d=!0))}}n.forEach(function(t){var n=e.series.indexOf(t);t.autoHidePointMarkers=!1;var o=i.getTicksValues().majorTicksValues.length;if(t.autoHidePointMarkersEnabled()&&("discrete"===r||u[n].pointsCount>o))for(var a in u[n]){var s=parseInt(a);if(!(isNaN(s)||u[n].total/u[n].continuousSeries<3))if(s===n){if(2*u[s][s]>=u[s].pointsCount){t.autoHidePointMarkers=!0;break}}else if(u[n].total>=u[n].pointsCount){t.autoHidePointMarkers=!0;break}}})}):void e.series.forEach(function(e){return e.autoHidePointMarkers=!1})},_renderAxes:function(e,t){function n(e){return e.map(function(e){if(!e.getTitle)return 0;var t=e.getTitle();return t?t.bBox.width:0})}var i=this,o=i._isRotated(),a=i._themeManager.getOptions("synchronizeMultiAxes"),r=(i._scrollBar?[i._scrollBar]:[]).concat(i._argumentAxes),s=o?r:i._valueAxes,l=o?i._valueAxes:r,u=s.concat(l);i._updatePanesCanvases(e);var c=i.panes.reduce(function(e,t){return e[t.name]=S({},t.canvas),e},{}),d=S(!0,{},c);if(!e.adjustAxes)return y(s,!o&&a,c,t),y(l,o&&a,c,t),m(u,"prepareAnimation"),i._renderScaleBreaks(),!1;i._scrollBar&&i._scrollBar.setPane(i.panes);var h={panes:{}},p=g(l,function(e){return e.estimateMargins(c[e.pane])});c=v(o,c,h,p),y(s,!o&&a,c,t),h=_(s),c=v(o,c,h,p),y(l,o&&a,c,t),p=g(l,f),c=v(o,c,h,p);var b=n(s);return m(u,"updateSize",c,C(e,i._getVisibleSeries())),l.forEach(x("top","bottom")),s.forEach(x("left","right")),i._renderScaleBreaks(),i.panes.forEach(function(e){S(e.canvas,c[e.name])}),i._valueAxes.forEach(function(e){e.setInitRange()}),s.forEach(function(e,t){if(e.hasWrap&&e.hasWrap()){var a=e.getTitle(),r=a?a.bBox.width:0,l=r-b[t];"right"===e.getOptions().position?h.right+=l:(h.left+=l,i.panes.forEach(function(e){var t=e.name;return h.panes[t].left+=l})),c=v(o,c,h,p),m(u,"updateSize",c,!1,!1),b=n(s)}}),d},_shrinkAxes:function(e,t){if(e&&t){this._renderer.stopAllAnimations();var n=this,i=n._isRotated(),o=(n._scrollBar?[n._scrollBar]:[]).concat(n._argumentAxes),a=i?o:n._valueAxes,r=i?n._valueAxes:o,s=a.concat(r);(e.width||e.height)&&(w(e,"height",r,g),w(e,"width",a,_),m(s,"updateSize",t),t=v(i,t,_(a),g(r,f)),m(s,"updateSize",t),r.forEach(x("top","bottom")),a.forEach(x("left","right")),n.panes.forEach(function(e){S(e.canvas,t[e.name])}))}},_getPanesParameters:function(){var e,t=this,n=t.panes,i=[];for(e=0;e<n.length;e++)t._getPaneBorderVisibility(e)&&i.push({coords:n[e].borderCoords,clipRect:t._panesClipRects.fixed[e]});return i},_createCrosshairCursor:function(){var e=this,t=e._themeManager.getOptions("crosshair")||{},n=e.getArgumentAxis(),i=e._isRotated()?[e._valueAxes,[n]]:[[n],e._valueAxes],o={canvas:e._getCommonCanvas(),panes:e._getPanesParameters(),axes:i};t&&t.enabled&&(e._crosshair?e._crosshair.update(t,o):e._crosshair=new F.Crosshair(e._renderer,t,o,e._crosshairCursorGroup),e._crosshair.render())},_getCommonCanvas:function(){var e,t,n,i=this.panes;for(e=0;e<i.length;e++)t=i[e].canvas,n?(n.right=t.right,n.bottom=t.bottom):n=S({},t);return n},_createPanesBackground:function(){var e,t,n,i=this,o=i._themeManager.getOptions("commonPaneSettings").backgroundColor,a=i._renderer,r=[];for(i._panesBackgroundGroup.clear(),n=0;n<i.panes.length;n++)e=i.panes[n].backgroundColor||o,e&&"none"!==e?(t=a.rect(0,0,0,0).attr({fill:e,"stroke-width":0}).append(i._panesBackgroundGroup),r.push(t)):r.push(null);i.panesBackground=r},_fillPanesBackground:function(){var e,t=this;W(t.panes,function(n,i){e=i.borderCoords,null!==t.panesBackground[n]&&t.panesBackground[n].attr({x:e.left,y:e.top,width:e.width,height:e.height})})},_calcPaneBorderCoords:function(e){var t=e.canvas,n=e.borderCoords=e.borderCoords||{};n.left=t.left,n.top=t.top,n.right=t.width-t.right,n.bottom=t.height-t.bottom,n.width=Math.max(n.right-n.left,0),n.height=Math.max(n.bottom-n.top,0)},_drawPanesBorders:function(e){var t=this,n=t._isRotated();t._panesBorderGroup.linkRemove().clear(),W(t.panes,function(i,o){var a,r,s=e[o.name],l={fill:"none",stroke:s.color,"stroke-opacity":s.opacity,"stroke-width":s.width,dashStyle:s.dashStyle,"stroke-linecap":"square"};t._calcPaneBorderCoords(o,n),s.visible&&(a=o.borderCoords,r=q(a.left,a.top,a.width,a.height,s),t._renderer.path(r.points,r.pathType).attr(l).append(t._panesBorderGroup))}),t._panesBorderGroup.linkAppend()},_createClipRect:function(e,t,n,i,o,a){var r=this,s=e[t];s?s.attr({x:n,y:i,width:o,height:a}):(s=r._renderer.clipRect(n,i,o,a),e[t]=s)},_createClipRectsForPanes:function(){var e=this,t=e._canvas;W(e.panes,function(n,i){var o=!1,a=i.borderCoords,r=a.left,s=a.top,l=a.width,u=a.height,c=e._panesClipRects;e._createClipRect(c.fixed,n,r,s,l,u),e._createClipRect(c.base,n,r,s,l,u),W(e.series,function(e,t){t.pane===i.name&&(t.isFinancialSeries()||t.areErrorBarsVisible())&&(o=!0)}),o?(e._isRotated()?(s=0,u=t.height):(r=0,l=t.width),e._createClipRect(c.wide,n,r,s,l,u)):c.wide[n]=null})},_getPaneIndex:function(e){var t;return W(this.panes,function(n,i){if(i.name===e)return t=n,!1}),t},_getPaneBorderVisibility:function(e){var t=this._themeManager.getOptions("commonPaneSettings").border.visible,n=this.panes[e]||{},i=n.border||{};return"visible"in i?i.visible:t},_getElementsClipRectID:function(e){return this._panesClipRects.fixed[this._getPaneIndex(e)].id},_getCanvasForPane:function(e){var t,n=this.panes,i=n.length;for(t=0;t<i;t++)if(n[t].name===e)return n[t].canvas},_getTrackerSettings:function(){var e=this,t=e._themeManager;return S(this.callBase(),{chart:e,rotated:e._isRotated(),crosshair:e._getCrosshairOptions().enabled?e._crosshair:null,stickyHovering:t.getOptions("stickyHovering")})},_resolveLabelOverlappingStack:function(){var e=this,t=e._isRotated(),n=t?function(e,t){return{x:e.x-t,y:e.y}}:function(e,t){return{x:e.x,y:e.y-t}};W(e._getStackPoints(),function(i,o){W(o,function(i,o){B.resolveLabelOverlappingInOneDirection(o,e._getCommonCanvas(),t,n,function(e,n){var i=t?1:0,o=e.labels[0].getFigureCenter()[i],a=n.labels[0].getFigureCenter()[i];return o-a===0?(e.value()-n.value())*(e.labels[0].getPoint().series.getValueAxis().getTranslator().isInverted()?-1:1):0})})})},_getStackPoints:function(){var e={},t=this._getVisibleSeries();return W(t,function(t,n){var i=n.getPoints(),o=n.getStackName()||null;W(i,function(t,n){var i=n.argument;e[i]||(e[i]={}),e[i][o]||(e[i][o]=[]),e[i][o].push(n)})}),e},_getCrosshairOptions:function(){return this._getOption("crosshair")},_parseVisualRangeOption:function(e,t){var n=this,i=e.split(/[.[]/)[0],o=e.match(/\d+/g);e.indexOf("visualRange")>0?n._setCustomVisualRange("argumentAxis"===i,j(o)?parseInt(o[0]):o,t):("object"===A.type(t)||"array"===A.type(t))&&i.indexOf("Axis")>0&&JSON.stringify(t).indexOf("visualRange")>0&&(j(t.visualRange)?n._setCustomVisualRange("argumentAxis"===i,j(o)?parseInt(o[0]):o,t.visualRange):G(t)&&t.forEach(function(e,t){return n._setCustomVisualRange("argumentAxis"===i,t,e.visualRange)}))},_setCustomVisualRange:function(e,t,n){var i=this,o=e?"argumentAxis":"valueAxis",a=i._options[o];a&&(e||!j(t)?a._customVisualRange=n:a[t]._customVisualRange=n,i._axesReinitialized=!0)},zoomArgument:function(e,t){var n=this;n._initialized&&(j(e)||j(t))&&n.getArgumentAxis().visualRange([e,t])},resetVisualRange:function(){var e=this;e._argumentAxes.forEach(function(t){t.resetVisualRange(e.getArgumentAxis()!==t)}),e._valueAxes.forEach(function(e){return e.resetVisualRange(!1)}),e._requestChange(["VISUAL_RANGE"])},_getVisualRangeSetter:function(){var e=this;return function(t,n){if(t.getOptions().optionPath&&(e._parseVisualRangeOption(t.getOptions().optionPath+".visualRange",n),t.setCustomVisualRange(n)),t.isArgumentAxis){if(t!==e.getArgumentAxis())return;e._argumentAxes.filter(function(e){return e!==t}).forEach(function(e){return e.visualRange(n,{start:!0,end:!0})})}e._applyingChanges?e._change_VISUAL_RANGE():e._requestChange(["VISUAL_RANGE"])}},getVisibleArgumentBounds:function(){var e=this._argumentAxes[0].getTranslator(),t=e.getBusinessRange(),n="discrete"===t.axisType,i=t.categories;return{minVisible:n?t.minVisible||i[0]:t.minVisible,maxVisible:n?t.maxVisible||i[i.length-1]:t.maxVisible}},_change_VISUAL_RANGE:function(){var e=this;e._recreateSizeDependentObjects(!1),e._changes.has("FULL_RENDER")||(e._doRender({force:!0,drawTitle:!1,drawLegend:!1,adjustAxes:this.option("adjustAxesOnZoom")||!1,animate:!1}),e._raiseZoomEndHandlers())},_change_FULL_RENDER:function(){this.callBase(),this._changes.has("VISUAL_RANGE")&&this._raiseZoomEndHandlers()},_raiseZoomEndHandlers:function(){this._argumentAxes.forEach(function(e){return e.handleZoomEnd()}),this._valueAxes.forEach(function(e){return e.handleZoomEnd()})},_notifyOptionChanged:function(e,t,n){this.callBase.apply(this,arguments),this._optionChangedLocker||this._parseVisualRangeOption(e,t)},_setOptionsByReference:function(){this.callBase(),S(this._optionsByReference,{"argumentAxis.visualRange":!0,"valueAxis.visualRange":!0})},option:function e(){var e=this.callBase.apply(this,arguments);if("array"===A.type(this._options.valueAxis))for(var t=0;t<this._options.valueAxis.length;t++){var n="valueAxis["+t+"].visualRange";this._optionsByReference[n]=!0}return e},_optionChanged:function(e){var t=this;if(!t._optionChangedLocker)if(e.fullName.indexOf("visualRange")>0){var n=void 0;if(e.fullName&&(n=e.fullName.slice(0,e.fullName.indexOf("."))),"argumentAxis"===n){var o=e.fullName.split("."),a=o[o.length-1];return void("endValue"===a||"startValue"===a?t.getArgumentAxis().visualRange(i({},a,e.value)):t.getArgumentAxis().visualRange(e.value))}var r=t._valueAxes.filter(function(e){return e.getOptions().optionPath===n})[0];r&&r.visualRange(e.value)}else t.getPartialChangeOptionsName(e).indexOf("visualRange")>-1&&("argumentAxis"===e.name?t.getArgumentAxis().visualRange(e.value.visualRange):"valueAxis"===e.name&&("object"===A.type(e.value)?t._valueAxes[0].visualRange(e.value.visualRange):e.value.forEach(function(n,i){j(n.visualRange)&&j(t._valueAxes[i])&&t._valueAxes[i].visualRange(e.value[i].visualRange)})));t.callBase(e)},_notify:function(){var e=this;if(e.callBase(),e.option("disableTwoWayBinding")!==!0){var t=E.convertVisualRangeObject(this._argumentAxes[0].visualRange(),!G(e.option("argumentAxis.visualRange")));e.option("argumentAxis.visualRange",t),e._valueAxes.forEach(function(t){if(t.getOptions().optionPath){var n=t.getOptions().optionPath+".visualRange",i=E.convertVisualRangeObject(t.visualRange(),!G(e.option(n)));e.option(n,i)}})}}});K.addPlugin(n(790)),K.addPlugin(n(791)),K.addPlugin(n(411).plugins.core),K.addPlugin(n(411).plugins.chart),D("dxChart",K),e.exports=K},function(e,t,n){var i="#ffffff",o="#000000",a="#d3d3d3",r="#303030",s="#2b2b2b",l="#ff0000",u="#232323",c="#767676",d="none",h="solid",p="top",f="right",g="bottom",_="left",m="center",v="inside",y="outside",x=n(50),b=x.registerTheme;b({name:"generic.light",isDefault:!0,font:{color:c,family:"'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif",weight:400,size:12,cursor:"default"},redrawOnResize:!0,backgroundColor:i,primaryTitleColor:u,secondaryTitleColor:c,gridColor:a,axisColor:c,title:{backgroundColor:i,font:{size:28,family:"'Segoe UI Light', 'Helvetica Neue Light', 'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif",weight:200},subtitle:{font:{size:16},offset:0,wordWrap:"normal",textOverflow:"ellipsis"},wordWrap:"normal",textOverflow:"ellipsis"},loadingIndicator:{text:"Loading..."},"export":{backgroundColor:i,margin:10,font:{size:14,color:u,weight:400},button:{margin:{top:8,left:10,right:10,bottom:8},"default":{color:"#333",borderColor:"#ddd",backgroundColor:i},hover:{color:"#333",borderColor:"#bebebe",backgroundColor:"#e6e6e6"},focus:{color:o,borderColor:"#9d9d9d",backgroundColor:"#e6e6e6"},active:{color:"#333",borderColor:"#9d9d9d",backgroundColor:"#d4d4d4"}},shadowColor:a},tooltip:{enabled:!1,border:{width:1,color:a,dashStyle:h,visible:!0},font:{color:u},color:i,arrowLength:10,paddingLeftRight:18,paddingTopBottom:15,textAlignment:"center",shared:!1,location:m,shadow:{opacity:.4,offsetX:0,offsetY:4,blur:2,color:o}},legend:{hoverMode:"includePoints",verticalAlignment:p,horizontalAlignment:f,position:y,visible:!0,margin:10,markerSize:12,border:{visible:!1,width:1,cornerRadius:0,dashStyle:h},paddingLeftRight:20,paddingTopBottom:15,columnCount:0,rowCount:0,columnItemSpacing:20,rowItemSpacing:8,title:{backgroundColor:i,margin:{left:0,bottom:9,right:0,top:0},font:{size:18,weight:200},subtitle:{offset:0,font:{size:14},wordWrap:"none",textOverflow:"ellipsis"},wordWrap:"none",textOverflow:"ellipsis"}},"chart:common":{animation:{enabled:!0,duration:1e3,easing:"easeOutCubic",maxPointCountSupported:300},commonSeriesSettings:{border:{visible:!1,width:2},showInLegend:!0,visible:!0,hoverMode:"nearestPoint",selectionMode:"includePoints",hoverStyle:{hatching:{direction:f,width:2,step:6,opacity:.75},border:{visible:!1,width:3}},selectionStyle:{hatching:{direction:f,width:2,step:6,opacity:.5},border:{visible:!1,width:3}},valueErrorBar:{displayMode:"auto",value:1,color:o,lineWidth:2,edgeLength:8},label:{visible:!1,alignment:m,rotationAngle:0,horizontalOffset:0,verticalOffset:0,radialOffset:0,showForZeroValues:!0,customizeText:void 0,maxLabelCount:void 0,position:y,font:{color:i},border:{visible:!1,width:1,color:a,dashStyle:h},connector:{visible:!1,width:1}}},seriesSelectionMode:"single",pointSelectionMode:"single",equalRowHeight:!0,dataPrepareSettings:{checkTypeForAllData:!1,convertToAxisDataType:!0,sortingMethod:!0},title:{margin:10},adaptiveLayout:{width:80,height:80,keepLabels:!0},_rtl:{legend:{itemTextPosition:_}},resolveLabelOverlapping:d},"chart:common:axis":{visible:!0,valueMarginsEnabled:!0,placeholderSize:null,logarithmBase:10,discreteAxisDivisionMode:"betweenLabels",width:1,label:{visible:!0},grid:{visible:!1,width:1},minorGrid:{visible:!1,width:1,opacity:.3},tick:{visible:!0,width:1,length:7,shift:3},minorTick:{visible:!1,width:1,opacity:.3,length:7,shift:3},stripStyle:{paddingLeftRight:10,paddingTopBottom:5},constantLineStyle:{width:1,color:o,dashStyle:h,label:{visible:!0,position:v}},marker:{label:{}}},chart:{commonSeriesSettings:{type:"line",stack:"default",aggregation:{enabled:void 0},point:{visible:!0,symbol:"circle",size:12,border:{visible:!1,width:1},hoverMode:"onlyPoint",selectionMode:"onlyPoint",hoverStyle:{border:{visible:!0,width:4}},selectionStyle:{border:{visible:!0,width:4}}},scatter:{},line:{width:2,dashStyle:h,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},stackedline:{width:2,dashStyle:h,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},stackedspline:{width:2,dashStyle:h,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},fullstackedline:{width:2,dashStyle:h,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},fullstackedspline:{width:2,dashStyle:h,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},stepline:{width:2,dashStyle:h,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},area:{point:{visible:!1},opacity:.5},stackedarea:{point:{visible:!1},opacity:.5},fullstackedarea:{point:{visible:!1},opacity:.5},fullstackedsplinearea:{point:{visible:!1},opacity:.5},steparea:{border:{visible:!0,width:2},point:{visible:!1},hoverStyle:{border:{visible:!0,width:3}},selectionStyle:{border:{visible:!0,width:3}},opacity:.5},spline:{width:2,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},splinearea:{point:{visible:!1},opacity:.5},stackedsplinearea:{point:{visible:!1},opacity:.5},bar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},stackedbar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}},label:{position:v}},fullstackedbar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}},label:{position:v}},rangebar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},rangearea:{point:{visible:!1},opacity:.5},rangesplinearea:{point:{visible:!1},opacity:.5},bubble:{opacity:.5,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},candlestick:{width:1,reduction:{color:l},hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3},point:{border:{visible:!0}}},stock:{width:1,reduction:{color:l},hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3},point:{border:{visible:!0}}}},crosshair:{enabled:!1,color:"#f05b41",width:1,dashStyle:h,label:{visible:!1,font:{color:i,size:12}},verticalLine:{visible:!0},horizontalLine:{visible:!0}},commonAxisSettings:{multipleAxesSpacing:5,forceUserTickInterval:!1,breakStyle:{width:5,color:"#ababab",line:"waved"},label:{displayMode:"standard",overlappingBehavior:"hide",indentFromAxis:10,wordWrap:"normal",textOverflow:"none"},title:{font:{size:16},margin:6,alignment:m},constantLineStyle:{paddingLeftRight:10,paddingTopBottom:10}},horizontalAxis:{position:g,axisDivisionFactor:70,label:{rotationAngle:90,staggeringSpacing:5,alignment:m},stripStyle:{label:{horizontalAlignment:m,verticalAlignment:p}},constantLineStyle:{label:{horizontalAlignment:f,verticalAlignment:p}},constantLines:[]},verticalAxis:{position:_,axisDivisionFactor:40,label:{alignment:f},stripStyle:{label:{horizontalAlignment:_,verticalAlignment:m}},constantLineStyle:{label:{horizontalAlignment:_,verticalAlignment:p}},constantLines:[]},argumentAxis:{endOnTick:!1,workWeek:[1,2,3,4,5]},valueAxis:{grid:{visible:!0},autoBreaksEnabled:!1,maxAutoBreakCount:4},commonPaneSettings:{backgroundColor:d,border:{color:a,width:1,visible:!1,top:!0,bottom:!0,left:!0,right:!0,dashStyle:h}},scrollBar:{visible:!1,offset:5,color:"gray",width:10},adjustOnZoom:!0,autoHidePointMarkers:!0,rotated:!1,zoomingMode:d,scrollingMode:d,synchronizeMultiAxes:!0,stickyHovering:!0,equalBarWidth:!0,barGroupPadding:.3,minBubbleSize:12,maxBubbleSize:.2,zoomAndPan:{dragBoxStyle:{color:"#2a2a2a",opacity:.2},panKey:"shift",allowMouseWheel:!0,allowTouchGestures:!0},commonAnnotationSettings:{font:{color:"#333333"},tooltipEnabled:!0,border:{width:1,color:"#dddddd",dashStyle:h,visible:!0},color:i,opacity:.9,arrowLength:14,arrowWidth:14,paddingLeftRight:10,paddingTopBottom:10,shadow:{opacity:.15,offsetX:0,offsetY:1,blur:4,color:o},image:{width:30,height:30},wordWrap:"normal",textOverflow:"ellipsis",allowDragging:!1}},pie:{innerRadius:.5,minDiameter:.5,type:"pie",dataPrepareSettings:{_skipArgumentSorting:!0},commonSeriesSettings:{pie:{border:{visible:!1,width:2,color:i},hoverStyle:{hatching:{direction:f,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:f,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},doughnut:{border:{visible:!1,width:2,color:i},hoverStyle:{hatching:{direction:f,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:f,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},donut:{border:{visible:!1,width:2,color:i},hoverStyle:{hatching:{direction:f,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:f,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},label:{textOverflow:"ellipsis",wordWrap:"normal"}},legend:{hoverMode:"allArgumentPoints",backgroundColor:d},adaptiveLayout:{keepLabels:!1}},gauge:{scale:{tick:{visible:!0,length:5,width:2,opacity:1},minorTick:{visible:!1,length:3,width:1,opacity:1},label:{visible:!0,alignment:m,hideFirstOrLast:"last",overlappingBehavior:"hide"},position:p,endOnTick:!1},rangeContainer:{offset:0,width:5,backgroundColor:"#808080"},valueIndicators:{_default:{color:"#c2c2c2"},rangebar:{space:2,size:10,color:"#cbc5cf",backgroundColor:d,text:{indent:0,font:{size:14,color:null}}},twocolorneedle:{secondColor:"#e18e92"},trianglemarker:{space:2,length:14,width:13,color:"#8798a5"},textcloud:{arrowLength:5,horizontalOffset:6,verticalOffset:3,color:"#679ec5",text:{font:{color:i,size:18}}}},indicator:{hasPositiveMeaning:!0,layout:{horizontalAlignment:m,verticalAlignment:g},text:{font:{size:18}}},_circular:{scale:{scaleDivisionFactor:17,orientation:y,label:{indentFromTick:10}},rangeContainer:{orientation:y},valueIndicatorType:"rectangleneedle",subvalueIndicatorType:"trianglemarker",valueIndicators:{_type:"rectangleneedle",_default:{offset:20,indentFromCenter:0,width:2,spindleSize:14,spindleGapSize:10,beginAdaptingAtRadius:50},triangleneedle:{width:4},twocolorneedle:{space:2,secondFraction:.4},rangebar:{offset:30},trianglemarker:{offset:6},textcloud:{offset:-6}}},_linear:{scale:{scaleDivisionFactor:25,horizontalOrientation:f,verticalOrientation:g,label:{indentFromTick:-10}},rangeContainer:{horizontalOrientation:f,verticalOrientation:g},valueIndicatorType:"rangebar",subvalueIndicatorType:"trianglemarker",valueIndicators:{_type:"rectangle",_default:{offset:2.5,length:15,width:15},rectangle:{width:10},rangebar:{offset:10,horizontalOrientation:f,verticalOrientation:g},trianglemarker:{offset:10,horizontalOrientation:_,verticalOrientation:p},textcloud:{offset:-1,horizontalOrientation:_,verticalOrientation:p}}}},barGauge:{backgroundColor:"#e0e0e0",relativeInnerRadius:.3,barSpacing:4,resolveLabelOverlapping:"hide",label:{indent:20,connectorWidth:2,font:{size:16}},legend:{visible:!1},indicator:{hasPositiveMeaning:!0,layout:{horizontalAlignment:m,verticalAlignment:g},text:{font:{size:18}}}},rangeSelector:{scale:{valueMarginsEnabled:!0,width:1,color:o,opacity:.1,showCustomBoundaryTicks:!0,label:{overlappingBehavior:"hide",alignment:m,visible:!0,topIndent:7,font:{size:11}},tick:{width:1,color:o,opacity:.17,visible:!0,length:12},minorTick:{width:1,color:o,opacity:.05,visible:!0,length:12},marker:{width:1,color:"#000000",opacity:.1,visible:!0,separatorHeight:33,topIndent:10,textLeftIndent:7,textTopIndent:11,label:{}},logarithmBase:10,workWeek:[1,2,3,4,5],breakStyle:{width:5,color:"#ababab",line:"waved"},endOnTick:!1},selectedRangeColor:"#606060",sliderMarker:{visible:!0,paddingTopBottom:2,paddingLeftRight:4,color:"#606060",invalidRangeColor:l,font:{color:i,size:11}},sliderHandle:{width:1,color:o,opacity:.2},shutter:{opacity:.75},background:{color:"#c0bae1",visible:!0,image:{location:"full"}},behavior:{snapToTicks:!0,animationEnabled:!0,moveSelectedRangeByClick:!0,manualRangeSelectionEnabled:!0,allowSlidersSwap:!0,callValueChanged:"onMovingComplete"},redrawOnResize:!0,chart:{equalBarWidth:!0,barGroupPadding:.3,minBubbleSize:12,maxBubbleSize:.2,topIndent:.1,bottomIndent:0,valueAxis:{inverted:!1,logarithmBase:10},commonSeriesSettings:{type:"area",aggregation:{enabled:void 0},point:{visible:!1},scatter:{point:{visible:!0}}}}},map:{title:{margin:10},background:{borderWidth:1,borderColor:"#cacaca"},layer:{label:{enabled:!1,stroke:i,"stroke-width":1,"stroke-opacity":.7,font:{color:s,size:12}}},"layer:area":{borderWidth:1,borderColor:i,color:"#d2d2d2",hoveredBorderColor:r,selectedBorderWidth:2,selectedBorderColor:r,label:{"stroke-width":2,font:{size:16}}},"layer:line":{borderWidth:2,color:"#ba8365",hoveredColor:"#a94813",selectedBorderWidth:3,selectedColor:"#e55100",label:{"stroke-width":2,font:{size:16}}},"layer:marker":{label:{enabled:!0,"stroke-width":1,font:{size:12}}},"layer:marker:dot":{borderWidth:2,borderColor:i,size:8,selectedStep:2,backStep:18,backColor:i,backOpacity:.32,shadow:!0},"layer:marker:bubble":{minSize:20,maxSize:50,hoveredBorderWidth:1,hoveredBorderColor:r,selectedBorderWidth:2,selectedBorderColor:r},"layer:marker:pie":{size:50,hoveredBorderWidth:1,hoveredBorderColor:r,selectedBorderWidth:2,selectedBorderColor:r},"layer:marker:image":{size:20},legend:{verticalAlignment:g,horizontalAlignment:f,position:v,backgroundOpacity:.65,border:{visible:!0},paddingLeftRight:16,paddingTopBottom:12},controlBar:{borderColor:"#5d5d5d",borderWidth:3,color:i,margin:20,opacity:.3},_rtl:{legend:{itemTextPosition:_}}},treeMap:{tile:{border:{width:1,opacity:.2,color:"#000000"},color:"#5f8b95",hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:"right"},border:{}},selectionStyle:{hatching:{opacity:.5,step:6,width:2,direction:"right"},border:{opacity:1}},label:{visible:!0,paddingLeftRight:5,paddingTopBottom:4,stroke:"#000000","stroke-width":1,"stroke-opacity":.3,font:{color:"#ffffff",weight:300},shadow:{opacity:.8,offsetX:0,offsetY:1,blur:1,color:"#000000"},wordWrap:"normal",textOverflow:"ellipsis"}},group:{padding:4,border:{width:1},color:"#eeeeee",hoverStyle:{hatching:{opacity:0,step:6,width:2,direction:"right"},border:{}},selectionStyle:{hatching:{opacity:0,step:6,width:2,direction:"right"},border:{}},label:{visible:!0,paddingLeftRight:5,paddingTopBottom:4,font:{color:c,weight:600},textOverflow:"ellipsis"}},title:{subtitle:{}},tooltip:{},loadingIndicator:{}},sparkline:{lineColor:"#666666",lineWidth:2,areaOpacity:.2,minColor:"#e8c267",maxColor:"#e55253",barPositiveColor:"#a9a9a9",barNegativeColor:"#d7d7d7",winColor:"#a9a9a9",lossColor:"#d7d7d7",firstLastColor:"#666666",pointSymbol:"circle",pointColor:i,pointSize:4,type:"line",argumentField:"arg",valueField:"val",winlossThreshold:0,showFirstLast:!0,showMinMax:!1,tooltip:{enabled:!0}},bullet:{color:"#e8c267",targetColor:"#666666",targetWidth:4,showTarget:!0,showZeroLevel:!0,tooltip:{enabled:!0}},polar:{commonSeriesSettings:{type:"scatter",closed:!0,point:{visible:!0,symbol:"circle",size:12,border:{visible:!1,width:1},hoverMode:"onlyPoint",selectionMode:"onlyPoint",hoverStyle:{border:{visible:!0,width:4},size:12},selectionStyle:{border:{visible:!0,width:4},size:12}},scatter:{},line:{width:2,dashStyle:h,hoverStyle:{width:3,hatching:{direction:d}},selectionStyle:{width:3}},area:{point:{visible:!1},opacity:.5},stackedline:{width:2},bar:{opacity:.8},stackedbar:{opacity:.8}},adaptiveLayout:{width:170,height:170,keepLabels:!0},equalBarWidth:!0,barGroupPadding:.3,commonAxisSettings:{visible:!0,forceUserTickInterval:!1,label:{overlappingBehavior:"hide",indentFromAxis:5},grid:{visible:!0},minorGrid:{visible:!0},tick:{visible:!0},title:{font:{size:16},margin:10}},argumentAxis:{startAngle:0,firstPointOnStartAngle:!1,period:void 0},valueAxis:{endOnTick:!1,tick:{visible:!1}},horizontalAxis:{position:p,axisDivisionFactor:50,label:{alignment:m}},verticalAxis:{position:p,axisDivisionFactor:30,label:{alignment:f}}},funnel:{sortData:!0,valueField:"val",colorField:"color",argumentField:"arg",hoverEnabled:!0,selectionMode:"single",item:{border:{visible:!1,width:2,color:i},hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:f},border:{}},selectionStyle:{hatching:{opacity:.5,step:6,width:2,direction:f},border:{}}},title:{margin:10},adaptiveLayout:{width:80,height:80,keepLabels:!0},legend:{visible:!1},_rtl:{legend:{itemTextPosition:_}},tooltip:{customizeTooltip:function(e){return{text:e.item.argument+" "+e.valueText}}},inverted:!1,algorithm:"dynamicSlope",neckWidth:0,neckHeight:0,resolveLabelOverlapping:"shift",label:{textOverflow:"ellipsis",wordWrap:"normal",visible:!0,horizontalAlignment:f,horizontalOffset:0,verticalOffset:0,showForZeroValues:!1,customizeText:function(e){return e.item.argument+" "+e.valueText},position:"columns",font:{color:i},border:{visible:!1,width:1,color:a,dashStyle:h},connector:{visible:!0,width:1,opacity:.5}}},sankey:{sourceField:"source",targetField:"target",weightField:"weight",hoverEnabled:!0,alignment:m,adaptiveLayout:{width:80,height:80,keepLabels:!0},label:{visible:!0,horizontalOffset:8,verticalOffset:0,overlappingBehavior:"ellipsis",useNodeColors:!1,font:{color:o,weight:500},border:{visible:!1,width:2,color:i},customizeText:function(e){return e.title},shadow:{opacity:.2,offsetX:0,offsetY:1,blur:1,color:i}},title:{margin:10,font:{size:28,weight:200},subtitle:{font:{size:16}}},tooltip:{enabled:!0},node:{padding:30,width:8,opacity:1,border:{color:i,width:1,visible:!1},hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:f},border:{}}},link:{color:"#888888",colorMode:"none",opacity:.3,border:{color:i,width:1,visible:!1},hoverStyle:{opacity:.5,hatching:{opacity:.75,step:6,width:2,direction:f},border:{}}}}}),b({name:"generic.light.compact"},"generic.light")},function(e,t,n){var i=n(50),o=i.registerTheme,a="#ffffff",r="#000000",s="#2b2b2b",l="#b5b5b5",u="#303030",c="#686868",d="#c7c7c7",h="#8e8e8e",p="#b8b8b8",f="#494949";o({name:"generic.dark",font:{color:"#808080"},backgroundColor:"#2a2a2a",primaryTitleColor:"#dedede",secondaryTitleColor:"#a3a3a3",gridColor:"#555555",axisColor:"#a3a3a3","export":{backgroundColor:"#2a2a2a",font:{color:"#dbdbdb"},button:{"default":{color:"#dedede",borderColor:"#4d4d4d",backgroundColor:"#2e2e2e"},hover:{color:"#dedede",borderColor:"#6c6c6c",backgroundColor:"#444"},focus:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#444444"},active:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#555555"}},shadowColor:"#292929"},tooltip:{color:s,border:{color:f},font:{color:"#929292"}},"chart:common":{commonSeriesSettings:{label:{border:{color:f}},valueErrorBar:{color:a}}},"chart:common:axis":{constantLineStyle:{color:a}},chart:{commonPaneSettings:{border:{color:f}},commonAxisSettings:{breakStyle:{color:"#818181"}},zoomAndPan:{dragBoxStyle:{color:a}},commonAnnotationSettings:{font:{color:"#929292"},border:{color:f},color:s,shadow:{opacity:.008,offsetY:4,blur:8}}},gauge:{rangeContainer:{backgroundColor:l},valueIndicators:{_default:{color:l},rangebar:{color:"#84788b"},twocolorneedle:{secondColor:"#ba544d"},trianglemarker:{color:"#b7918f"},textcloud:{color:"#ba544d"}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:a,opacity:.32},minorTick:{color:a,opacity:.1},breakStyle:{color:"#818181"}},selectedRangeColor:l,sliderMarker:{color:l,font:{color:u}},sliderHandle:{color:a,opacity:.2},shutter:{
111color:s,opacity:.9}},map:{background:{borderColor:"#3f3f3f"},layer:{label:{stroke:r,font:{color:a}}},"layer:area":{borderColor:u,color:c,hoveredBorderColor:a,selectedBorderColor:a},"layer:line":{color:"#c77244",hoveredColor:"#ff5d04",selectedColor:"#ff784f"},"layer:marker:bubble":{hoveredBorderColor:a,selectedBorderColor:a},"layer:marker:pie":{hoveredBorderColor:a,selectedBorderColor:a},legend:{border:{color:"#3f3f3f"},font:{color:a}},controlBar:{borderColor:d,color:u}},treeMap:{group:{color:"#4c4c4c",label:{font:{color:"#a3a3a3"}}}},sparkline:{lineColor:d,firstLastColor:d,barPositiveColor:p,barNegativeColor:h,winColor:p,lossColor:h,pointColor:u},bullet:{targetColor:h},funnel:{item:{border:{color:"#2a2a2a"}}},sankey:{label:{font:{color:a},shadow:{opacity:0}},node:{border:{color:"#2a2a2a"}},link:{color:"#888888",border:{color:"#2a2a2a"},hoverStyle:{color:"#bbbbbb"}}}},"generic.light"),o({name:"generic.dark.compact"},"generic.dark")},function(e,t,n){var i=n(50),o=i.registerTheme,a="#ffffff",r="#000000",s="#cf00da",l="#f8ca00",u="#686868";o({name:"generic.contrast",defaultPalette:"Bright",font:{color:a},backgroundColor:r,primaryTitleColor:a,secondaryTitleColor:a,gridColor:a,axisColor:a,"export":{backgroundColor:r,font:{color:a},button:{"default":{color:a,borderColor:a,backgroundColor:r},hover:{color:a,borderColor:a,backgroundColor:"#cf00d7"},focus:{color:a,borderColor:"#cf00d7",backgroundColor:r},active:{color:r,borderColor:a,backgroundColor:a}},borderColor:a,menuButtonColor:r,activeBackgroundColor:a,activeColor:r,selectedBorderColor:s,selectedColor:s,shadowColor:"none"},tooltip:{border:{color:a},font:{color:a},color:r},"chart:common":{commonSeriesSettings:{valueErrorBar:{color:a},hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}},label:{font:{color:a},border:{color:a}}}},"chart:common:axis":{constantLineStyle:{color:a}},chart:{commonSeriesSettings:{},crosshair:{color:"#cf00d7"},commonPaneSettings:{backgroundColor:r,border:{color:a}},scrollBar:{color:a},commonAxisSettings:{breakStyle:{color:"#cf00d7"}},zoomAndPan:{dragBoxStyle:{color:a,opacity:.7}},commonAnnotationSettings:{font:{color:a},border:{color:a},color:r}},pie:{commonSeriesSettings:{pie:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}},doughnut:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}},donut:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}}}},gauge:{rangeContainer:{backgroundColor:a},valueIndicators:{_default:{color:a},rangebar:{color:a,backgroundColor:r},twocolorneedle:{secondColor:a},trianglemarker:{color:a},textcloud:{color:a,text:{font:{color:r}}}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:a,opacity:.4},minorTick:{color:a,opacity:.12},breakStyle:{color:"#cf00d7"}},selectedRangeColor:s,sliderMarker:{color:s},sliderHandle:{color:s,opacity:1},shutter:{opacity:.75},background:{color:r}},map:{background:{borderColor:a},layer:{label:{stroke:r,font:{color:a}}},"layer:area":{borderColor:r,color:u,hoveredBorderColor:a,selectedBorderColor:a,label:{font:{opacity:1}}},"layer:line":{color:"#267cff",hoveredColor:"#f613ff",selectedColor:a},"layer:marker:dot":{borderColor:r,color:l,backColor:r,backOpacity:.32},"layer:marker:bubble":{color:l,hoveredBorderColor:a,selectedBorderColor:a},"layer:marker:pie":{hoveredBorderColor:a,selectedBorderColor:a},controlBar:{borderColor:a,color:r,opacity:.3}},treeMap:{tile:{color:"#70c92f"},group:{color:"#797979",label:{font:{color:a}}}},sparkline:{pointColor:r},bullet:{},polar:{commonSeriesSettings:{}},funnel:{label:{connector:{opacity:1}}},sankey:{label:{font:{color:a},shadow:{opacity:0}},node:{border:{visible:!0,width:1,color:a}},link:{opacity:.5,border:{visible:!0,width:1,color:a},hoverStyle:{opacity:.9}}}},"generic.light"),o({name:"generic.contrast.compact"},"generic.contrast")},function(e,t,n){var i=n(50),o=i.registerTheme,a="#f05b41",r="#fff",s="#333",l="#8899a8",u="#707070",c="#dee1e3";o({name:"generic.carmine",defaultPalette:"Carmine",backgroundColor:r,primaryTitleColor:s,secondaryTitleColor:l,gridColor:c,axisColor:u,"export":{backgroundColor:r,font:{color:s},button:{"default":{color:s,borderColor:"#b1b7bd",backgroundColor:r},hover:{color:s,borderColor:"#b1b7bd",backgroundColor:"#faf2f0"},focus:{color:s,borderColor:"#6d7781",backgroundColor:"#faf2f0"},active:{color:s,borderColor:"#6d7781",backgroundColor:"#f5e7e4"}}},legend:{font:{color:u}},tooltip:{color:r,border:{color:c},font:{color:s}},"chart:common":{commonSeriesSettings:{label:{border:{color:c}}}},chart:{commonPaneSettings:{border:{color:c}},commonAxisSettings:{breakStyle:{color:"#c1c5c7"}},commonAnnotationSettings:{font:{color:s},border:{color:c},color:r}},rangeSelector:{scale:{breakStyle:{color:"#c1c5c7"},tick:{opacity:.12}},selectedRangeColor:a,sliderMarker:{color:a},sliderHandle:{color:a,opacity:.5}},sparkline:{pointColor:r,minColor:"#f0ad4e",maxColor:"#f74d61"},treeMap:{group:{color:c,label:{font:{color:l}}}},bullet:{color:a},gauge:{valueIndicators:{rangebar:{color:a},textcloud:{color:a}}}},"generic.light")},function(e,t,n){var i=n(50),o=i.registerTheme,a="#3debd3",r="#465672",s="#fff",l="#919bac",u="#c7ccd4",c="#596980";o({name:"generic.darkmoon",defaultPalette:"Dark Moon",backgroundColor:r,primaryTitleColor:s,secondaryTitleColor:l,gridColor:c,axisColor:u,"export":{backgroundColor:r,font:{color:s},button:{"default":{color:s,borderColor:"#7a889e",backgroundColor:r},hover:{color:s,borderColor:"#9da8b8",backgroundColor:"#596e92"},focus:{color:s,borderColor:"#c4cad4",backgroundColor:"#596e92"},active:{color:s,borderColor:"#c4cad4",backgroundColor:"#6b80a4"}}},legend:{font:{color:u}},tooltip:{color:"#62789e",border:{color:c},font:{color:s}},"chart:common":{commonSeriesSettings:{label:{border:{color:c}}}},chart:{commonPaneSettings:{border:{color:c}},commonAxisSettings:{breakStyle:{color:"#73869e"}},commonAnnotationSettings:{font:{color:s},border:{color:c},color:"#62789e"}},gauge:{valueIndicators:{rangebar:{color:a},textcloud:{color:a,text:{font:{color:r}}}}},barGauge:{backgroundColor:"#526280"},funnel:{item:{border:{color:r}}},sparkline:{pointColor:r,minColor:"#f0ad4e",maxColor:"#f9517e"},treeMap:{group:{color:c,label:{font:{color:s}}}},map:{background:{borderColor:c},"layer:area":{color:"#97a3b6",borderColor:r}},rangeSelector:{shutter:{color:r},scale:{breakStyle:{color:"#73869e"},tick:{opacity:.2}},selectedRangeColor:a,sliderMarker:{color:a,font:{color:"#000"}},sliderHandle:{color:a,opacity:.5}},bullet:{color:a},sankey:{link:{border:{color:r}},node:{border:{color:r}}}},"generic.dark")},function(e,t,n){var i=n(50),o=i.registerTheme,a="#7ab8eb",r="#fff",s="#333",l="#99a1a8",u="#707070",c="#e8eaeb";o({name:"generic.softblue",defaultPalette:"Soft Blue",backgroundColor:r,primaryTitleColor:s,secondaryTitleColor:l,gridColor:c,axisColor:u,"export":{backgroundColor:r,font:{color:s},button:{"default":{color:s,borderColor:"#c9d0d4",backgroundColor:r},hover:{color:s,borderColor:"#a7b2b9",backgroundColor:"#e6e6e6"},focus:{color:s,borderColor:"#82929b",backgroundColor:"#e6e6e6"},active:{color:s,borderColor:"#82929b",backgroundColor:"#d4d4d4"}}},legend:{font:{color:u}},tooltip:{color:r,border:{color:c},font:{color:s}},"chart:common":{commonSeriesSettings:{label:{border:{color:c}}}},chart:{commonPaneSettings:{border:{color:c}},commonAxisSettings:{breakStyle:{color:"#cfd2d3"}},commonAnnotationSettings:{color:r,border:{color:c},font:{color:s}}},rangeSelector:{scale:{breakStyle:{color:"#cfd2d3"},tick:{opacity:.12}},selectedRangeColor:a,sliderMarker:{color:a},sliderHandle:{color:a,opacity:.5}},sparkline:{pointColor:r,minColor:"#f0ad4e",maxColor:"#d9534f"},treeMap:{group:{color:c,label:{font:{color:l}}}},bullet:{color:a},gauge:{valueIndicators:{rangebar:{color:a},textcloud:{color:a}}}},"generic.light")},function(e,t,n){var i=n(50),o=i.registerTheme,a="#9c63ff",r="#17171f",s="#f5f6f7",l="#fff",u="#b2b2b6",c="#343840";o({name:"generic.darkviolet",defaultPalette:"Dark Violet",backgroundColor:r,primaryTitleColor:s,secondaryTitleColor:l,gridColor:c,axisColor:u,"export":{backgroundColor:r,font:{color:s},button:{"default":{color:s,borderColor:"#414152",backgroundColor:r},hover:{color:s,borderColor:"#5c5c74",backgroundColor:"#2d2d3c"},focus:{color:s,borderColor:"#7c7c97",backgroundColor:"#2d2d3c"},active:{color:s,borderColor:"#7c7c97",backgroundColor:"#3c3c51"}}},legend:{font:{color:u}},tooltip:{color:r,border:{color:"#414152"},font:{color:s}},"chart:common":{commonSeriesSettings:{label:{border:{color:c}}}},chart:{commonPaneSettings:{border:{color:c}},commonAxisSettings:{breakStyle:{color:"#575e6b"}},commonAnnotationSettings:{font:{color:s},border:{color:"#414152"},color:r}},funnel:{item:{border:{color:r}}},sparkline:{pointColor:r,minColor:"#f0ad4e",maxColor:"#d9534f"},treeMap:{group:{color:c,label:{font:{color:l}}}},rangeSelector:{shutter:{color:r},scale:{breakStyle:{color:"#575e6b"},tick:{opacity:.2}},selectedRangeColor:a,sliderMarker:{color:a,font:{color:"#fff"}},sliderHandle:{color:a,opacity:.5}},bullet:{color:a},gauge:{valueIndicators:{rangebar:{color:a},textcloud:{color:a}}},sankey:{link:{border:{color:r}},node:{border:{color:r}}}},"generic.dark")},function(e,t,n){var i=n(50),o=i.registerTheme,a="#3cbab2",r="#f5f5f5",s="#28484f",l="#7eb2be",u="#657c80",c="#dedede";o({name:"generic.greenmist",defaultPalette:"Green Mist",backgroundColor:r,primaryTitleColor:s,secondaryTitleColor:l,gridColor:c,axisColor:u,"export":{backgroundColor:r,font:{color:s},button:{"default":{color:s,borderColor:"#a2b4b8",backgroundColor:r},hover:{color:s,borderColor:"#7f989e",backgroundColor:"rgba(222, 222, 222, 0.4)"},focus:{color:s,borderColor:"#5f777c",backgroundColor:"rgba(222, 222, 222, 0.4)"},active:{color:s,borderColor:"#5f777c",backgroundColor:"rgba(222, 222, 222, 0.8)"}}},legend:{font:{color:u}},tooltip:{color:"#fff",border:{color:c},font:{color:s}},"chart:common":{commonSeriesSettings:{label:{border:{color:c}}}},chart:{commonPaneSettings:{border:{color:c}},commonAxisSettings:{breakStyle:{color:"#c1c1c1"}},commonAnnotationSettings:{color:"#fff",border:{color:c},font:{color:s}}},funnel:{item:{border:{color:r}}},sparkline:{pointColor:r,minColor:"#ffc852",maxColor:"#f74a5e"},treeMap:{group:{color:c,label:{font:{color:l}}}},rangeSelector:{shutter:{color:r},scale:{breakStyle:{color:"#c1c1c1"},tick:{opacity:.12}},selectedRangeColor:a,sliderMarker:{color:a},sliderHandle:{color:a,opacity:.5}},bullet:{color:a},gauge:{valueIndicators:{rangebar:{color:a},textcloud:{color:a}}}},"generic.light")},function(e,t,n){function i(e,t,n){a({name:"material."+e+"."+t,rangeSelector:{selectedRangeColor:n,sliderMarker:{color:n},sliderHandle:{color:n}},map:{"layer:marker:dot":{color:n},"layer:marker:bubble":{color:n},legend:{markerColor:n}},bullet:{color:n},gauge:{valueIndicators:{rangebar:{color:n},textcloud:{color:n}}}},"material."+t)}var o=n(50),a=o.registerTheme,r=o.registerThemeAlias,s="'Roboto', 'RobotoFallback', 'Helvetica', 'Arial', sans-serif",l="rgba(0,0,0,0.87)",u="rgba(0,0,0,0.54)",c="rgba(255,255,255,0.87)",d="rgba(255,255,255,0.54)",h="#363640",p="#ffffff",f="#000000",g="#b5b5b5",_="#686868",m="#c7c7c7",v="#8e8e8e",y="#b8b8b8",x="#494949",b="#818181";a({name:"material",defaultPalette:"Material",font:{family:s},title:{margin:{top:20,bottom:20,left:0,right:0},font:{size:20,family:s,weight:500},horizontalAlignment:"left",subtitle:{font:{size:14},horizontalAlignment:"left"}},tooltip:{shadow:{opacity:0},border:{visible:!1},paddingLeftRight:8,paddingTopBottom:6,arrowLength:0,location:"edge",color:"#616161",font:{color:p},cornerRadius:4},chart:{commonAxisSettings:{minorTick:{opacity:.5},label:{font:{size:11}}},commonAnnotationSettings:{font:{color:p},border:{color:"#616161"},color:"#616161",arrowLength:14,arrowWidth:0,shadow:{opacity:.08,offsetY:4,blur:8},cornerRadius:4}},pie:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},polar:{commonAxisSettings:{minorTick:{opacity:.5}},title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},funnel:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},gauge:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},barGauge:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},rangeSelector:{sliderHandle:{opacity:.5}},treeMap:{group:{label:{font:{weight:500}}}}},"generic.light"),a({name:"material.light",gridColor:"#e0e0e0",axisColor:u,primaryTitleColor:l,legend:{font:{color:u}},chart:{scrollBar:{color:"#bfbfbf",opacity:.7}},gauge:{rangeContainer:{backgroundColor:"rgba(0,0,0,0.2)"}},barGauge:{backgroundColor:"#efefef"}},"material"),a({name:"material.dark",gridColor:"#515159",backgroundColor:h,axisColor:d,font:{color:d},primaryTitleColor:c,secondaryTitleColor:c,tooltip:{color:"#000"},"export":{backgroundColor:h,font:{color:"#dbdbdb"},button:{"default":{color:"#dedede",borderColor:"#4d4d4d",backgroundColor:h},hover:{color:"#dedede",borderColor:"#6c6c6c",backgroundColor:"#3f3f4b"},focus:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#494956"},active:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#494956"}},shadowColor:"#292929"},"chart:common":{commonSeriesSettings:{label:{border:{color:x}},valueErrorBar:{color:p}}},"chart:common:axis":{constantLineStyle:{color:p}},chart:{commonPaneSettings:{border:{color:x}},commonAxisSettings:{breakStyle:{color:b}},zoomAndPan:{dragBoxStyle:{color:p}},commonAnnotationSettings:{border:{color:"#000"},color:"#000"}},gauge:{rangeContainer:{backgroundColor:g},valueIndicators:{_default:{color:g},rangebar:{color:"#84788b"},twocolorneedle:{secondColor:"#ba544d"},trianglemarker:{color:"#b7918f"},textcloud:{color:"#ba544d"}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:p,opacity:.32},minorTick:{color:p,opacity:.1},breakStyle:{color:b}},selectedRangeColor:g,sliderMarker:{color:g,font:{color:h}},sliderHandle:{color:p,opacity:.2},shutter:{color:p,opacity:.1}},map:{background:{borderColor:"#3f3f3f"},layer:{label:{stroke:f,font:{color:p}}},"layer:area":{borderColor:h,color:_,hoveredBorderColor:p,selectedBorderColor:p},"layer:line":{color:"#c77244",hoveredColor:"#ff5d04",selectedColor:"#ff784f"},"layer:marker:bubble":{hoveredBorderColor:p,selectedBorderColor:p},"layer:marker:pie":{hoveredBorderColor:p,selectedBorderColor:p},legend:{border:{color:"#3f3f3f"},font:{color:p}},controlBar:{borderColor:m,color:h}},treeMap:{group:{color:"#4c4c4c",label:{font:{color:"#a3a3a3"}}}},sparkline:{lineColor:m,firstLastColor:m,barPositiveColor:y,barNegativeColor:v,winColor:y,lossColor:v,pointColor:h},bullet:{targetColor:v},funnel:{item:{border:{color:h}}},sankey:{label:{font:{color:p}}}},"material");var w={blue:"#03a9f4",lime:"#cddc39",orange:"#ff5722",purple:"#9c27b0",teal:"#009688"};for(var C in w)if(Object.prototype.hasOwnProperty.call(w,C)){var k=w[C];i(C,"light",k),i(C,"dark",k),r("material."+C+".light.compact","material."+C+".light"),r("material."+C+".dark.compact","material."+C+".dark")}},function(e,t,n){var i=n(50),o="ios7.default",a="#767676",r="#d3d3d3",s="#000000";i.registerTheme({name:o,backgroundColor:"#ffffff",primaryTitleColor:s,secondaryTitleColor:a,gridColor:"#ececec",axisColor:a,legend:{font:{color:s}},tooltip:{font:{color:a}},"chart:common":{commonSeriesSettings:{label:{border:{color:r}}}},chart:{commonPaneSettings:{border:{color:r}}},rangeSelector:{scale:{tick:{color:s,opacity:.1},minorTick:{color:s,opacity:.03}}},treeMap:{group:{label:{font:{color:a}}}}},"generic.light")},function(e,t,n){var i=n(125),o=n(21);e.exports=i(o.ERROR_MESSAGES,{E2001:"Invalid data source",E2002:"Axis type and data type are incompatible",E2003:'The "{0}" data source field contains data of unsupported type',E2004:'The "{0}" data source field is inconsistent',E2005:'The value field "{0}" is absent in the data source or all its values are negative',E2006:"A cycle is detected in provided data",E2007:'The value field "{0}" is absent in the data source',E2008:'The value field "{0}" must be a string',E2009:'The value field "{0}" must be a positive numeric value',E2101:"Unknown series type: {0}",E2102:"Ambiguity occurred between two value axes with the same name",E2103:'The "{0}" option is given an invalid value. Assign a function instead',E2104:"Invalid logarithm base",E2105:'Invalid value of a "{0}"',E2106:"Invalid visible range",E2202:"Invalid {0} scale value",E2203:"The range you are trying to set is invalid",W2002:"The {0} series cannot be drawn because the {1} data field is missing",W2003:"Tick interval is too small",W2101:'The "{0}" pane does not exist; the last pane is used by default',W2102:'A value axis with the "{0}" name was created automatically',W2103:"The chart title was hidden due to the container size",W2104:"The legend was hidden due to the container size",W2105:'The title of the "{0}" axis was hidden due to the container size',W2106:'The labels of the "{0}" axis were hidden due to the container size',W2107:"The export menu was hidden due to the container size",W2108:"The browser does not support exporting images to {0} format.",W2301:"Invalid value range"})},function(e,t,n){function i(e){var t,n=this,i=n._animateStep;n._progress=n._calcProgress(e);for(t in n.params){var o=i[t]||i.base;o(n.element,n.params[t],n._progress,n._easing,n._currentParams,t)}return n.options.step&&n.options.step(n._easing(n._progress,0,1),n._progress),1!==n._progress||n.stop()}function o(e){return e-this._startTime>=this.delay&&(this.tick=i),!0}function a(e){return this._startTime=e,this.tick=this.delay?o:i,!0}function r(e,t,n){var i=this;i._progress=0,i.element=e,i.params=t,i.options=n,i.duration=n.partitionDuration?n.duration*n.partitionDuration:n.duration,i.delay=n.delay&&n.duration*n.delay||0,i._animateStep=n.animateStep||d,i._easing=c[n.easing]||c.easeOutCubic,i._currentParams={},i.tick=a}function s(e){var t=this;t._animationCount=0,t._timerId=null,t._animations={},t.element=e}var l=n(112),u=function(){},c={easeOutCubic:function(e,t,n){return 1===e?n:(1-Math.pow(1-e,3))*(n-t)+ +t},linear:function(e,t,n){return 1===e?n:e*(n-t)+ +t}};t.easingFunctions=c;var d={segments:function e(t,n,i,o,a){var r,s,l,u,c=n.from,d=n.to,e=[];for(l=0;l<c.length;l++){if(r=c[l],s=[r[0]],r.length>1)for(u=1;u<r.length;u++)s.push(o(i,r[u],d[l][u]));e.push(s)}a.segments=n.end&&1===i?n.end:e,t.attr({segments:e})},arc:function(e,t,n,i){var o=t.from,a=t.to,r={};for(var s in o)r[s]=i(n,o[s],a[s]);e.attr(r)},transform:function(e,t,n,i,o){var a=t.from,r=t.to,s={};for(var l in a)s[l]=o[l]=i(n,a[l],r[l]);e.attr(s)},base:function(e,t,n,i,o,a){var r={};r[a]=o[a]=i(n,t.from,t.to),e.attr(r)},_:u,complete:function(e,t){e.attr(t)}};r.prototype={_calcProgress:function(e){return Math.min(1,(e-this.delay-this._startTime)/this.duration)},stop:function(e){var t=this,n=t.options,i=t._animateStep;t.stop=t.tick=u,i.complete&&i.complete(t.element,t._currentParams),n.complete&&!e&&n.complete()}},t.AnimationController=s,s.prototype={_loop:function(){var e,t=this,n=t._animations,i=0,o=(new Date).getTime(),a=t._endAnimation;for(e in n)n[e].tick(o)||delete n[e],i++;return 0===i?(t.stop(),void(t._endAnimationTimer=a&&setTimeout(function(){0===t._animationCount&&(a(),t._endAnimation=null)}))):void(t._timerId=l.requestAnimationFrame.call(null,function(){t._loop()},t.element))},addAnimation:function(e){var t=this;t._animations[t._animationCount++]=e,clearTimeout(t._endAnimationTimer),t._timerId||(clearTimeout(t._startDelay),t._startDelay=setTimeout(function(){t._timerId=1,t._loop()},0))},animateElement:function(e,t,n){e&&t&&n&&(e.animation&&e.animation.stop(),this.addAnimation(e.animation=new r(e,t,n)))},onEndAnimation:function(e){this._animationCount?this._endAnimation=e:e()},dispose:function(){this.stop(),this.element=null},stop:function(){var e=this;e._animations={},e._animationCount=0,l.cancelAnimationFrame(e._timerId),clearTimeout(e._startDelay),clearTimeout(e._endAnimationTimer),e._timerId=null},lock:function(){var e,t,n,i=this._animations;for(e in i)t=i[e].options.unstoppable,n=n||t,t||(i[e].stop(!0),delete i[e]);!n&&this.stop()}},t.animationSvgStep=d},function(e,t,n){function i(e,t,n){var i=m(e);return i in t?t[i]:n}function o(e){var t=i(e.side,I,1),n=[i(e.horizontalAlignment,k,w),i(e.verticalAlignment,S,b)];return{side:t,primary:a(n[t]),secondary:n[1-t],weak:e.weak,priority:e.priority||0,header:e.header,position:e.position}}function a(e){return e<2?0:2}function r(e){return 1-e}function s(e,t,n,i){return T[e](t,n,i)}function l(e,t){return(e>0?-1:1)*t}function u(e,t,n){var i=e.side,o=e.element.measure([t[2]-t[0],t[3]-t[1]]),a="indside"===e.position?0:n[i],r=o[i]<t[2+i]-t[i]-a;return r&&("inside"!==e.position&&(t[e.primary+i]+=l(e.primary,o[i])),e.size=o),r}function c(e,t,n){var i=e.side,o=r(i),a=[],u=s(e.secondary,n[o],n[2+o],e.size[o]);return a[i]=x(a[2+i]=t[e.primary+i]+("inside"===e.position?l(e.primary,e.size[i]):0)),a[e.primary+i]=x(t[e.primary+i]-l(e.primary,e.size[i])),"inside"!==e.position&&(t[e.primary+i]=a[e.primary+i]),a[o]=x(u[0]),a[2+o]=x(u[1]),a}function d(e,t,n,i,o,a){var r=c(e,t,n),s=c(e,i,i);o[e.side]>0?(o[e.side]-=e.size[e.side],a[e.primary+e.side]=r[e.primary+e.side],e.element.freeSpace()):e.element.move(r,s)}function h(){this._targets=[]}function p(e){var t,n,i=e.length,a=[];for(t=0;t<i;++t)n=e[t].layoutOptions(),n&&(n=o(n),n.element=e[t],a.push(n));return a.sort(function(e,t){return t.side-e.side||e.priority-t.priority}),a=f(a)}function f(e){var t,n=e.filter(function(e){return e.weak===!0})[0];return n&&(t=e.filter(function(e){return n.primary===e.primary&&e.side===n.side&&e!==n})[0]),n&&t?[_(t,n)].concat(e.filter(function(e){return!(e===t||e===n)})):e}function g(e,t){var n=t.slice(),i=c(e,n,n);return i[e.side]=t[e.side],i[2+e.side]=t[2+e.side],i}function _(e,t){var n=e.side,i=e.primary,o=e.secondary;return{side:n,primary:i,secondary:o,priority:0,element:{measure:function(o){var a=o.slice(),r=t.element.measure(o.slice());o[i]-=r[i];var s=e.element.measure(o.slice());return a[n]=r[n]=s[n]=Math.max(s[n],r[n]),t.size=r,e.size=s,a},move:function(n,i){if(i[2]-i[0]<e.size[0]+t.size[0]-D)return void this.freeSpace();var o=g(t,i,i);i[2+t.primary]=o[t.primary];var a=g(e,i,i);i[2+t.primary]<n[2+t.primary]&&e.size[e.primary]>n[2+e.primary]-n[e.primary]&&(n[2+t.primary]=i[2+t.primary]);var r=g(e,n,n);r[2+t.primary]>i[2+t.primary]&&(n[2+t.primary]=i[2+t.primary],r=g(e,n,n)),t.element.move(o),e.element.move(r,a)},freeSpace:function(){e.element.freeSpace(),t.element.freeSpace()}}}}var m=n(10).normalizeEnum,v=Math.min,y=Math.max,x=Math.round,b=0,w=1,C=2,k={left:b,center:w,right:C},S={top:b,center:w,bottom:C},I={horizontal:0,vertical:1},T={},D=2;T[b]=function(e,t,n){return[e,v(t,e+n)]},T[w]=function(e,t,n){return[y(e,(e+t-n)/2),v(t,(e+t+n)/2)]},T[C]=function(e,t,n){return[y(e,t-n),t]},h.prototype={constructor:h,dispose:function(){this._targets=null},add:function(e){this._targets.push(e)},forward:function(e,t){var n,i=e.slice(),o=p(this._targets),a=o.length,r=[];for(n=0;n<a;++n)u(o[n],i,t)?r.push(o[n]):o[n].element.freeSpace();return this._cache=r.reverse(),i},backward:function(e,t){var n,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0],a=e.slice(),r=e.slice(),s=this._cache,l=0,u=s.length;for(i=0;i<u;++i)n=s[i],n.side!==l&&(a=e.slice()),d(n,a,t,r,o,e),l=n.side;return o}},e.exports=h},function(e,t,n){function i(e){return"none"===_(e)}function o(e,t,n){this.fullState=A,this.series=e,this.update(t,n),this._viewCounters={hover:0,selection:0},this._emptySettings={fill:null,stroke:null,dashStyle:null}}var a={},r=n(120).states,s=n(121),l=n(206),u=n(770),c=n(398),d=n(399),h=n(771),p=n(400),f=n(772),g=n(773),_=n(10).normalizeEnum,m=n(0).extend,v=n(3).each,y=v,x=m,b=n(1).isDefined,w=n(4).noop,C="symbolPoint",k="polarSymbolPoint",S="barPoint",I="polarBarPoint",T="piePoint",D=r.selectedMark,E=r.hoverMark,A=r.normalMark,O=r.hover,B=r.normal,P=r.selection,M={chart:{scatter:C,line:C,spline:C,stepline:C,stackedline:C,fullstackedline:C,stackedspline:C,fullstackedspline:C,stackedsplinearea:C,fullstackedsplinearea:C,area:C,splinearea:C,steparea:C,stackedarea:C,fullstackedarea:C,rangearea:"rangeSymbolPoint",bar:S,stackedbar:S,fullstackedbar:S,rangebar:"rangeBarPoint",bubble:"bubblePoint",stock:"stockPoint",candlestick:"candlestickPoint"},pie:{pie:T,doughnut:T,donut:T},polar:{scatter:k,line:k,area:k,bar:I,stackedbar:I}};t.Point=o,a.symbolPoint=s,a.barPoint=l,a.bubblePoint=u,a.piePoint=c,a.rangeSymbolPoint=d,a.rangeBarPoint=h,a.candlestickPoint=p,a.stockPoint=f,a.polarSymbolPoint=g.polarSymbolPoint,a.polarBarPoint=g.polarBarPoint,o.prototype={constructor:o,getColor:function(){return this.hasValue()||this._styles.usePointCustomOptions||this.series.customizePoint(this,this._dataItem),this._styles.normal.fill||this.series.getColor()},_getStyle:function(){return this._styles[this._currentStyle||"normal"]},update:function(e,t){this.updateOptions(t),this.updateData(e)},updateData:function(e){var t=this,n=t.argument!==e.argument;t.argument=t.initialArgument=t.originalArgument=e.argument,t.tag=e.tag,t.index=e.index,t._dataItem=e,t.data=e.data,t.lowError=e.lowError,t.highError=e.highError,t.aggregationInfo=e.aggregationInfo,t._updateData(e,n),!t.hasValue()&&t.setInvisibility(),t._fillStyle(),t._updateLabelData()},deleteMarker:function(){var e=this;e.graphic&&e.graphic.dispose(),e.graphic=null},draw:function(e,t,n,i){var o=this;return(o._needDeletingOnDraw||o.series.autoHidePointMarkers&&!o.isSelected())&&(o.deleteMarker(),o._needDeletingOnDraw=!1),o._needClearingOnDraw&&(o.clearMarker(),o._needClearingOnDraw=!1),o._hasGraphic()?o._updateMarker(n,this._getStyle(),t.markers):o.getMarkerVisibility()&&!o.series.autoHidePointMarkers&&o._drawMarker(e,t.markers,n,i),o._drawLabel(),o._drawErrorBar(e,t.errorBars,n),o},_getViewStyle:function(){var e=A,t=this.fullState,n=[B,O,P,P];return this._viewCounters.hover&&(e|=E),this._viewCounters.selection&&(e|=D),i(this.getOptions().selectionMode)&&(t&=~D),i(this.getOptions().hoverMode)&&(t&=~E),e|=t,n[e]},applyView:function(e){var t=this._getViewStyle(),n=this;n._currentStyle=t,n.graphic||!n.series.autoHidePointMarkers||t!==P&&t!==O||n._drawMarker(n.series.getRenderer(),n.series.getMarkersGroup()),n.graphic&&(n.series.autoHidePointMarkers&&t!==P&&t!==O?n.deleteMarker():("normal"===t?n.clearMarker():n.graphic.toForeground(),n._updateMarker(!0,n._styles[t],void 0,e)))},setView:function(e){this._viewCounters[e]++,this.applyView()},resetView:function(e){var t=this._viewCounters;--t[e],t[e]<0&&(t[e]=0),this.applyView()},releaseHoverState:function(){var e=this;e.graphic&&!e.isSelected()&&e.graphic.toBackground()},select:function(){this.series.selectPoint(this)},clearSelection:function(){this.series.deselectPoint(this)},hover:function(){this.series.hoverPoint(this)},clearHover:function(){this.series.clearPointHover()},showTooltip:function(){this.series.showPointTooltip(this)},hideTooltip:function(){this.series.hidePointTooltip(this)},_checkLabelsChanging:function(e,t){var n=~t.indexOf("range"),i=~e.indexOf("range");return i&&!n||!i&&n},updateOptions:function(e){if(e){var t=this,n=t._options,i=e.widgetType,o=n&&n.type,r=e.type,s=M[i][r];o!==r?(t._needDeletingOnDraw=!0,t._needClearingOnDraw=!1,o&&(t._checkLabelsChanging(o,r)&&t.deleteLabel(),t._resetType(a[M[o]])),t._setType(a[s])):(t._needDeletingOnDraw=t._checkSymbol(n,e),t._needClearingOnDraw=t._checkCustomize(n,e)),t._options=e,t._fillStyle(),t._updateLabelOptions(s)}},translate:function(){this.hasValue()&&(this._translate(),this.translated=!0)},_checkCustomize:function(e,t){return e.styles.usePointCustomOptions&&!t.styles.usePointCustomOptions},_getCustomLabelVisibility:function(){return this._styles.useLabelCustomOptions?!!this._options.label.visible:null},getBoundingRect:function(){return this._getGraphicBBox()},_resetType:function(e){for(var t in e)delete this[t]},_setType:function(e){for(var t in e)this[t]=e[t]},isInVisibleArea:function(){return this.inVisibleArea},isSelected:function(){return!!(this.fullState&D)},isHovered:function(){return!!(this.fullState&E)},getOptions:function(){return this._options},animate:function(e,t,n){return this.graphic?void this.graphic.animate(t,{partitionDuration:n},e):void(e&&e())},getCoords:function(e){var t=this;return e?t._options.rotated?{x:t.minX-(t.x-t.minX?0:1),y:t.y}:{x:t.x,y:t.minY+(t.y-t.minY?0:1)}:{x:t.x,y:t.y}},getDefaultCoords:function(){var e=this;return e._options.rotated?{x:e.defaultX,y:e.y}:{x:e.x,y:e.defaultY}},setDefaultCoords:function(){var e=this.getDefaultCoords();this.x=e.x,this.y=e.y},_getVisibleArea:function(){return this.series.getVisibleArea()},_getArgTranslator:function(){return this.series.getArgumentAxis().getTranslator()},_getValTranslator:function(){return this.series.getValueAxis().getTranslator()},_calculateVisibility:function(e,t,n,i){var o=this,a=o._getVisibleArea(),r=o._options.rotated;a.minX>e+(n||0)||a.maxX<e||a.minY>t+(i||0)||a.maxY<t||r&&b(n)&&0!==n&&(a.minX===e+n||a.maxX===e)||!r&&b(i)&&0!==i&&(a.minY===t+i||a.maxY===t)?o.inVisibleArea=!1:o.inVisibleArea=!0},hasValue:function(){return null!==this.value&&null!==this.minValue},hasCoords:w,correctPosition:w,correctRadius:w,correctLabelRadius:w,getCrosshairData:w,getPointRadius:w,_populatePointShape:w,_checkSymbol:w,getMarkerCoords:w,hide:w,show:w,hideMarker:w,setInvisibility:w,clearVisibility:w,isVisible:w,resetCorrection:w,correctValue:w,resetValue:w,setPercentValue:w,correctCoordinates:w,coordsIn:w,getTooltipParams:w,applyWordWrap:w,setLabelTrackerData:w,updateLabelCoord:w,drawLabel:w,correctLabelPosition:w,getMinValue:w,getMaxValue:w,_drawErrorBar:w,getMarkerVisibility:w,dispose:function(){var e=this;e.deleteMarker(),e.deleteLabel(),e._errorBar&&this._errorBar.dispose(),e._options=e._styles=e.series=e._errorBar=null},getTooltipFormatObject:function(e){var t=this,n=t._getFormatObject(e),i=[],o=[];t.stackPoints&&(y(t.stackPoints,function(t,n){if(n.isVisible()){var a=n._getFormatObject(e);o.push(a),i.push(a.seriesName+": "+a.valueText)}}),x(n,{points:o,valueText:i.join("\n"),stackName:t.stackPoints.stackName}));var a=t.aggregationInfo;if(a){var r=t.series.getArgumentAxis(),s=r.formatRange(a.intervalStart,a.intervalEnd,a.aggregationInterval);s&&(n.valueText+="\n"+s)}return n},setHole:function(e,t){var n=this,i=isFinite(n.minValue)?n.minValue:0;b(e)&&("left"===t?(n.leftHole=n.value-e,n.minLeftHole=i-e):(n.rightHole=n.value-e,n.minRightHole=i-e))},resetHoles:function(){this.leftHole=null,this.minLeftHole=null,this.rightHole=null,this.minRightHole=null},getLabel:function(){return this._label},getLabels:function(){return[this._label]},getCenterCoord:function(){return{x:this.x,y:this.y}}}},function(e,t,n){var i=n(0).extend,o=n(121),a=i,r=20;e.exports=a({},o,{correctCoordinates:function(e){this.bubbleSize=e/2},_drawMarker:function(e,t,n){var i=this,o=a({translateX:i.x,translateY:i.y},i._getStyle());i.graphic=e.circle(0,0,n?0:i.bubbleSize).smartAttr(o).data({"chart-data-point":i}).append(t)},getTooltipParams:function(e){var t,n=this,i=n.graphic;if(i)return t=i.getBBox().height,{x:n.x,y:n.y,offset:t<r||"edge"===e?t/2:0}},_getLabelFormatObject:function(){var e=o._getLabelFormatObject.call(this);return e.size=this.initialSize,e},_updateData:function(e){o._updateData.call(this,e),this.size=this.initialSize=e.size},_getGraphicBBox:function(){var e=this;return e._getSymbolBBox(e.x,e.y,e.bubbleSize)},_updateMarker:function(e,t){var n=this;e||(t=a({r:n.bubbleSize,translateX:n.x,translateY:n.y},t)),n.graphic.smartAttr(t)},_getFormatObject:function(e){var t=o._getFormatObject.call(this,e);return t.sizeText=e.formatValue(this.initialSize),t},_storeTrackerR:function(){return this.bubbleSize},_getLabelCoords:function(e){var t;return t="inside"===e.getLayoutOptions().position?this._getLabelCoordOfPosition(e,"inside"):o._getLabelCoords.call(this,e)}})},function(e,t,n){var i=n(4).noop,o=n(0).extend,a=n(206),r=n(399),s=o;e.exports=s({},a,{deleteLabel:r.deleteLabel,_getFormatObject:r._getFormatObject,clearVisibility:function(){var e=this.graphic;e&&e.attr("visibility")&&e.attr({
112visibility:null})},setInvisibility:function(){var e=this.graphic;e&&"hidden"!==e.attr("visibility")&&e.attr({visibility:"hidden"}),this._topLabel.draw(!1),this._bottomLabel.draw(!1)},getTooltipParams:function(e){var t,n,i=this,o="edge"===e;return i._options.rotated?(t=o?i.x+i.width:i.x+i.width/2,n=i.y+i.height/2):(t=i.x+i.width/2,n=o?i.y:i.y+i.height/2),{x:t,y:n,offset:0}},_translate:function(){var e=this,t=a;t._translate.call(e),e._options.rotated?e.width=e.width||1:e.height=e.height||1},hasCoords:r.hasCoords,_updateData:r._updateData,_getLabelPosition:r._getLabelPosition,_getLabelMinFormatObject:r._getLabelMinFormatObject,_updateLabelData:r._updateLabelData,_updateLabelOptions:r._updateLabelOptions,getCrosshairData:r.getCrosshairData,_createLabel:r._createLabel,_checkOverlay:r._checkOverlay,_checkLabelsOverlay:r._checkLabelsOverlay,_getOverlayCorrections:r._getOverlayCorrections,_drawLabel:r._drawLabel,_getLabelCoords:r._getLabelCoords,_getGraphicBBox:function(e){var t="top"===e,n=a._getGraphicBBox.call(this);return this._options.rotated?(n.x=t?n.x+n.width:n.x,n.width=0):(n.y=t?n.y:n.y+n.height,n.height=0),n},getLabel:r.getLabel,getLabels:r.getLabels,getBoundingRect:i,getMinValue:r.getMinValue,getMaxValue:r.getMaxValue})},function(e,t,n){var i=n(0).extend,o=n(1).isNumeric,a=n(400),r=i,s=o;e.exports=r({},a,{_getPoints:function(){var e,t=this,n=t._options.rotated?function(e,t){return[t,e]}:function(e,t){return[e,t]},i=s(t.openY),o=s(t.closeY),a=t.x,r=t.width;return e=[].concat(n(a,t.highY)),i&&(e=e.concat(n(a,t.openY))),i&&(e=e.concat(n(a-r/2,t.openY))),i&&(e=e.concat(n(a,t.openY))),o&&(e=e.concat(n(a,t.closeY))),o&&(e=e.concat(n(a+r/2,t.closeY))),o&&(e=e.concat(n(a,t.closeY))),e=e.concat(n(a,t.lowY))},_drawMarkerInGroup:function(e,t,n){this.graphic=n.path(this._getPoints(),"line").attr({"stroke-linecap":"square"}).attr(t).data({"chart-data-point":this}).sharp().append(e)},_getMinTrackerWidth:function(){var e=2+this._styles.normal["stroke-width"];return e+e%2}})},function(e,t,n){var i=n(0).extend,o=i,a=n(121),r=n(206),s=n(398),l=n(1).isDefined,u=n(10),c=u.normalizeAngle,d=Math,h=d.max,p=n(120).radialLabelIndent,f=90,g="canvas_position_end",_="canvas_position_default";t.polarSymbolPoint=o({},a,{_getLabelCoords:s._getLabelCoords,_moveLabelOnCanvas:r._moveLabelOnCanvas,_getLabelPosition:function(){return"outside"},_getCoords:function(e,t){var n=this.series.getValueAxis(),i=n.getAngles()[0],o=this._getArgTranslator().translate(e),a=this._getValTranslator().translate(t),r=u.convertPolarToXY(n.getCenter(),n.getAngles()[0],o,a);return r.angle=o+i-90,r.radius=a,r},_translate:function(){var e=this,t=e.series.getValueAxis().getCenter(),n=e._getCoords(e.argument,e.value);e.vx=c(n.angle),e.vy=e.radiusOuter=e.radiusLabels=n.radius,e.radiusLabels+=p,e.radius=n.radius,e.middleAngle=-n.angle,e.angle=-n.angle,e.x=n.x,e.y=n.y,e.defaultX=e.centerX=t.x,e.defaultY=e.centerY=t.y,e._translateErrorBars(),e.inVisibleArea=!0},_translateErrorBars:function(){var e=this,t=e._options.errorBars,n=e._getValTranslator();t&&(l(e.lowError)&&(e._lowErrorCoord=e.centerY-n.translate(e.lowError)),l(e.highError)&&(e._highErrorCoord=e.centerY-n.translate(e.highError)),e._errorBarPos=e.centerX,e._baseErrorBarPos="stdDeviation"===t.type?e._lowErrorCoord+(e._highErrorCoord-e._lowErrorCoord)/2:e.centerY-e.radius)},_getTranslates:function(e){return e?this.getDefaultCoords():{x:this.x,y:this.y}},getDefaultCoords:function(){var e=u.getCosAndSin(-this.angle),t=this._getValTranslator().translate(_),n=this.defaultX+t*e.cos,i=this.defaultY+t*e.sin;return{x:n,y:i}},_addLabelAlignmentAndOffset:function(e,t){return t},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea(),o=n._getGraphicBBox();return n._isPointInVisibleArea(i,o)&&(t=n._moveLabelOnCanvas(t,i,e.getBoundingRect())),t},_getErrorBarSettings:function(e,t){var n=a._getErrorBarSettings.call(this,e,t);return n.rotate=f-this.angle,n.rotateX=this.centerX,n.rotateY=this.centerY,n},getCoords:function(e){return e?this.getDefaultCoords():{x:this.x,y:this.y}}}),t.polarBarPoint=o({},r,{_translateErrorBars:t.polarSymbolPoint._translateErrorBars,_getErrorBarSettings:t.polarSymbolPoint._getErrorBarSettings,_moveLabelOnCanvas:r._moveLabelOnCanvas,_getLabelCoords:s._getLabelCoords,_getLabelConnector:s._getLabelConnector,getTooltipParams:s.getTooltipParams,_getLabelPosition:s._getLabelPosition,_getCoords:t.polarSymbolPoint._getCoords,_translate:function(){var e=this,n=e._getValTranslator(),i=n.translate(g);e.radiusInner=n.translate(e.minValue),t.polarSymbolPoint._translate.call(e),null===e.radiusInner?e.radiusInner=e.radius=i:null===e.radius&&(this.radius=this.value>=0?i:0),e.radiusOuter=e.radiusLabels=h(e.radiusInner,e.radius),e.radiusLabels+=p,e.radiusInner=e.defaultRadius=d.min(e.radiusInner,e.radius),e.middleAngle=e.angle=-c(e.middleAngleCorrection-e.angle)},_getErrorBarBaseEdgeLength:function(){var e=this.getMarkerCoords();return d.PI*e.outerRadius*d.abs(e.startAngle-e.endAngle)/180},getMarkerCoords:function(){return{x:this.centerX,y:this.centerY,outerRadius:this.radiusOuter,innerRadius:this.defaultRadius,startAngle:this.middleAngle-this.interval/2,endAngle:this.middleAngle+this.interval/2}},_drawMarker:function(e,t,n){var i=this,o=i._getStyle(),a=i.getMarkerCoords(),r=a.innerRadius,s=a.outerRadius,l=i._getCoords(i.argument,_),u=a.x,c=a.y;n&&(r=0,s=0,u=l.x,c=l.y),i.graphic=e.arc(u,c,r,s,a.startAngle,a.endAngle).attr(o).data({"chart-data-point":i}).append(t)},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea(),o=u.getCosAndSin(n.middleAngle),a=n.centerX+n.defaultRadius*o.cos,r=n.centerY-n.defaultRadius*o.sin;return a>i.minX&&a<i.maxX&&r>i.minY&&r<i.maxY&&(t=n._moveLabelOnCanvas(t,i,e.getBoundingRect())),t},_addLabelAlignmentAndOffset:function(e,t){return t},correctCoordinates:function(e){this.middleAngleCorrection=e.offset,this.interval=e.width},coordsIn:function(e,t){var n=u.convertXYToPolar(this.series.getValueAxis().getCenter(),e,t),i=this.getMarkerCoords(),o=i.startAngle<i.endAngle?-n.phi>=i.startAngle&&-n.phi<=i.endAngle:-n.phi<=i.startAngle&&-n.phi>=i.endAngle;return n.r>=i.innerRadius&&n.r<=i.outerRadius&&o}})},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}var o=n(0).extend,a=o,r=n(1).isDefined,s=n(10).map,l=n(4).noop,u=n(107).chart,c=n(144).chart.bar,d=n(169).chart.area;t.chart={};var h={areErrorBarsVisible:l,_createErrorBarGroup:l,_checkData:function(e,t){var n=this.getValueFields();return u._checkData.call(this,e,t,{minValue:n[0],value:n[1]})&&e.minValue===e.minValue},getValueRangeInitialValue:u.getValueRangeInitialValue,_getPointDataSelector:function(e){var t=this,n=this.getValueFields(),i=n[0],o=n[1],a=this.getTagField(),r=this.getArgumentField();return function(e){return{tag:e[a],minValue:t._processEmptyValue(e[i]),value:t._processEmptyValue(e[o]),argument:e[r],data:e}}},_defaultAggregator:"range",_aggregators:{range:function(e,t){var n,o=e.intervalStart,a=e.data;if(a.length){var s=t.getValueFields(),l=s[0],u=s[1],c=a.reduce(function(e,t){var n=t[l],i=t[u];return r(n)&&r(i)?(e[l]=Math.min(e[l],Math.min(n,i)),e[u]=Math.max(e[u],Math.max(n,i)),e):e},(n={},i(n,l,1/0),i(n,u,-(1/0)),i(n,t.getArgumentField(),o),n));if(!isFinite(c[l])||!isFinite(c[u])){if(a.filter(function(e){return null===e[l]&&null===e[u]}).length!==a.length)return;c[l]=c[u]=null}return c}}},getValueFields:function(){return[this._options.rangeValue1Field||"val1",this._options.rangeValue2Field||"val2"]},getSeriesPairCoord:function(e,t){for(var n=null,i=this._options.rotated,o=!t&&!i||t&&i,a=o?"vy":"vx",r=i?"minX":"minY",s=o?"vx":"vy",l=this.getPoints(),u=0;u<l.length;u++){var c=l[u],d=void 0;if(t)d=c.getCenterCoord()[a[1]]===e?c[s]:void 0;else{var h=[Math.min(c[a],c[r]),Math.max(c[a],c[r])];d=e>=h[0]&&e<=h[1]?c[s]:void 0}if(this.checkAxisVisibleAreaCoord(!t,d)){n=d;break}}return n}};t.chart.rangebar=a({},c,h),t.chart.rangearea=a({},d,{_drawPoint:function(e){var t=e.point;t.isInVisibleArea()?(t.clearVisibility(),t.draw(this._renderer,e.groups),this._drawnPoints.push(t),t.visibleTopMarker||t.hideMarker("top"),t.visibleBottomMarker||t.hideMarker("bottom")):t.setInvisibility()},_prepareSegment:function(e,t){var n=this._processSinglePointsAreaSegment(e,t),i=s(n,function(e){return e.getCoords(!0)});return{line:n,bottomLine:i,area:s(n,function(e){return e.getCoords()}).concat(i.slice().reverse()),singlePointSegment:n!==e}},_getDefaultSegment:function(e){var t=d._getDefaultSegment.call(this,e);return t.bottomLine=t.line,t},_removeElement:function(e){d._removeElement.call(this,e),e.bottomLine&&e.bottomLine.remove()},_drawElement:function(e,t){var n=this,i=d._drawElement.call(n,e,t);return i.bottomLine=n._bordersGroup&&n._createBorderElement(e.bottomLine,{"stroke-width":n._styles.normal.border["stroke-width"]}).append(n._bordersGroup),i},_applyStyle:function(e){var t=this,n=t._elementsGroup,i=t._bordersGroup;n&&n.smartAttr(e.elements),i&&i.attr(e.border),(t._graphics||[]).forEach(function(t){t.line&&t.line.attr({"stroke-width":e.border["stroke-width"]}),t.bottomLine&&t.bottomLine.attr({"stroke-width":e.border["stroke-width"]})})},_updateElement:function(e,t,n,i){var o={points:t.bottomLine},a=e.bottomLine;d._updateElement.apply(this,arguments),a&&(n?a.animate(o):a.attr(o))}},h)},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}var o=n(207).chart.line,a=n(107).chart,r=n(169).chart.area,s=n(144),l=s.chart.bar,u=s.polar.bar,c=n(0).extend,d=n(3).each,h=c,p=d,f=n(4).noop;t.chart={},t.chart.bubble=h({},a,{getErrorBarRangeCorrector:f,_calculateErrorBars:f,_getMainColor:l._getMainColor,_createPointStyles:l._createPointStyles,_updatePointsVisibility:l._updatePointsVisibility,_getOptionsForPoint:l._getOptionsForPoint,_applyMarkerClipRect:o._applyElementsClipRect,_parsePointStyle:u._parsePointStyle,_createLegendState:r._createLegendState,_setMarkerGroupSettings:u._setMarkerGroupSettings,areErrorBarsVisible:f,_createErrorBarGroup:f,_checkData:function(e,t){return a._checkData.call(this,e,t,{value:this.getValueFields()[0],size:this.getSizeField()})},_getPointDataSelector:function(e,t){var n=this.getSizeField(),i=a._getPointDataSelector.call(this);return function(e){var t=i(e);return t.size=e[n],t}},_aggregators:{avg:function(e,t){var n,o=e.data,a=e.intervalStart;if(o.length){var r=t.getValueFields()[0],s=t.getSizeField(),l=o.reduce(function(e,t){return e[0]+=t[r],e[1]+=t[s],e[2]++,e},[0,0,0]);return n={},i(n,r,l[0]/l[2]),i(n,s,l[1]/l[2]),i(n,t.getArgumentField(),a),n}}},getValueFields:function(){return[this._options.valueField||"val"]},getSizeField:function(){return this._options.sizeField||"size"},_animate:function(){var e=this,t=e._drawnPoints.length-1,n=e._labelsGroup,i=function(){n&&n.animate({opacity:1},{duration:e._defaultDuration})};p(e._drawnPoints||[],function(e,n){n.animate(e===t?i:void 0,{r:n.bubbleSize,translateX:n.x,translateY:n.y})})},_patchMarginOptions:function(e){return e.processBubbleSize=!0,e}})},function(e,t,n){var i=n(4).noop,o=n(3).each,a=n(107),r=n(10),s=n(0).extend,l=a.chart,u=n(144).chart.bar,c=s,d=o,h=i,p=r.map,f=isFinite,g=Math.max,_=.7,m="inside";t.pie=c({},u,{_setGroupsSettings:l._setGroupsSettings,_createErrorBarGroup:h,_drawPoint:function(e){var t=e.point,n=this._legendCallback;l._drawPoint.call(this,e),!t.isVisible()&&t.setInvisibility(),t.isSelected()&&n()},_getOldPoint:function(e,t,n){var i=(this._points||[])[n];return i&&(t[i.argument]=t[i.argument].filter(function(e){return e!==i})),i},adjustLabels:function(e){return(this._points||[]).reduce(function(t,n){if(n._label.isVisible())return n.setLabelTrackerData(),t=n.applyWordWrap(e)||t,n.updateLabelCoord(e),t},!1)},_applyElementsClipRect:h,getColor:h,areErrorBarsVisible:h,drawLabelsWOPoints:function(){var e=this;return e._options.label.position!==m&&(e._labelsGroup.append(e._extGroups.labelsGroup),(e._points||[]).forEach(function(e){e.drawLabel()}),!0)},getPointsCount:function(){var e=this;return this._data.filter(function(t){return e._checkData(t)}).length},setMaxPointsCount:function(e){this._pointsCount=e},_getCreatingPointOptions:function(e,t){return this._getPointOptions(e,t)},_updateOptions:function(e){this.labelSpace=0,this.innerRadius="pie"===this.type?0:e.innerRadius},_checkData:function(e,t){var n=u._checkData.call(this,e,t,{value:this.getValueFields()[0]});return this._options.paintNullPoints?n:n&&null!==e.value},_createGroups:l._createGroups,_setMarkerGroupSettings:function(){var e=this;e._markersGroup.attr({"class":"dxc-markers"})},_getMainColor:function(e,t){var n=this.getPointsByArg(e.argument),i=t?n.indexOf(t):n.length;return this._options.mainSeriesColor(e.argument,i,this._pointsCount)},_getPointOptions:function(e){return this._parsePointOptions(this._preparePointOptions(),this._options.label,e)},_getRangeData:function(){return this._rangeData},_createPointStyles:function(e,t,n){var i=this,o=e.color||i._getMainColor(t,n);return{normal:i._parsePointStyle(e,o,o),hover:i._parsePointStyle(e.hoverStyle,o,o),selection:i._parsePointStyle(e.selectionStyle,o,o),legendStyles:{normal:i._createLegendState(e,o),hover:i._createLegendState(e.hoverStyle,o),selection:i._createLegendState(e.selectionStyle,o)}}},_getArrangeMinShownValue:function(e,t){var n=this._options.minSegmentSize,i=0,o=0;return t=t||e.length,d(e,function(e,a){a.isVisible()&&(a.normalInitialValue<n*t/360?i+=n:o+=a.normalInitialValue)}),i<360?n*o/(360-i):0},_applyArrangeCorrection:function(e,t,n){var i,o=this._options,a="anticlockwise"!==o.segmentsDirection,s=f(o.startAngle)?r.normalizeAngle(o.startAngle):0,l=o.minSegmentSize,u=0,c=0;0===n&&(n=e.filter(function(e){return e.isVisible()}).length,c=1),d(a?e:e.concat([]).reverse(),function(e,o){var a,r=o.isVisible()?c||o.normalInitialValue:0;l&&o.isVisible()&&r<t&&(a=t),i=r/n,o.correctValue(u,i,c+(a||0)),o.shiftedAngle=s,u+=a||r}),this._rangeData={val:{min:0,max:u}}},_removePoint:function(e){var t=this.getPointsByArg(e.argument);t.splice(t.indexOf(e),1),e.dispose()},arrangePoints:function(){for(var e,t,n,i,o=this,a=o._points||[],r=o._options.minSegmentSize,s=!0,l=0,u=a.length;l<u&&s;)s=a[l].value<=0,l++;n=o._points=p(a,function(e){return null===e.value||!s&&e.value<0?(o._removePoint(e),null):e}),i=n.reduce(function(e,t){return g(e,Math.abs(t.initialValue))},0),n.forEach(function(e){e.normalInitialValue=e.initialValue/(0!==i?i:1)}),t=n.reduce(function(e,t){return e+(t.isVisible()?t.normalInitialValue:0)},0),r&&(e=this._getArrangeMinShownValue(n,t)),o._applyArrangeCorrection(n,e,t)},correctPosition:function(e,t){d(this._points,function(t,n){n.correctPosition(e)}),this.setVisibleArea(t)},correctRadius:function(e){this._points.forEach(function(t){t.correctRadius(e)})},correctLabelRadius:function(e){this._points.forEach(function(t){t.correctLabelRadius(e)})},setVisibleArea:function(e){this._visibleArea={minX:e.left,maxX:e.width-e.right,minY:e.top,maxY:e.height-e.bottom}},_applyVisibleArea:h,_animate:function(e){var t,n=this,i=n._points,o=i&&i.length,a=function(){n._animateComplete()};t=e?function(e,t){e.animate(t===o-1?a:void 0,_,(1-_)*t/(o-1))}:function(e,t){e.animate(t===o-1?a:void 0)},i.forEach(t)},getVisiblePoints:function(){return p(this._points,function(e){return e.isVisible()?e:null})},getPointsByKeys:function(e,t){var n=this.getPointsByArg(e);return n[t]&&[n[t]]||[]}}),t.doughnut=t.donut=t.pie},function(e,t,n){var i=n(107).chart,o=n(144).chart.bar,a=n(0).extend,r=n(1).isDefined,s=n(10).normalizeEnum,l=n(4).noop,u=10;t.stock=a({},i,{_animate:l,_applyMarkerClipRect:function(e){e["clip-path"]=this._forceClipping?this._paneClipRectID:this._widePaneClipRectID},_updatePointsVisibility:o._updatePointsVisibility,_getOptionsForPoint:o._getOptionsForPoint,getErrorBarRangeCorrector:l,_createErrorBarGroup:l,areErrorBarsVisible:l,_createGroups:i._createGroups,_setMarkerGroupSettings:function(){var e=this,t=e._markersGroup,n=e._createPointStyles(e._getMarkerGroupOptions()),i=a(n.normal,{"class":"default-markers"}),o=a(n.positive.normal,{"class":"default-positive-markers"}),r=a(n.reduction.normal,{"class":"reduction-markers"}),s=a(n.reductionPositive.normal,{"class":"reduction-positive-markers"}),l={"class":"dxc-markers"};e._applyMarkerClipRect(l),t.attr(l),e._createGroup("defaultMarkersGroup",t,t,i),e._createGroup("reductionMarkersGroup",t,t,r),e._createGroup("defaultPositiveMarkersGroup",t,t,o),e._createGroup("reductionPositiveMarkersGroup",t,t,s)},_setGroupsSettings:function(){i._setGroupsSettings.call(this,!1)},_getCreatingPointOptions:function(){var e,t=this,n=t._predefinedPointOptions;return n||(e=this._getPointOptions(),t._predefinedPointOptions=n=a(!0,{styles:{}},e),n.styles.normal=n.styles.positive.normal=n.styles.reduction.normal=n.styles.reductionPositive.normal={"stroke-width":e.styles&&e.styles.normal&&e.styles.normal["stroke-width"]}),n},_checkData:function(e,t){var n=this.getValueFields();return i._checkData.call(this,e,t,{openValue:n[0],highValue:n[1],lowValue:n[2],closeValue:n[3]})&&e.highValue===e.highValue&&e.lowValue===e.lowValue},_getPointDataSelector:function(e,t){var n,i=this,o=this,a=o.getValueFields(),l=o.getArgumentField(),u=a[0],c=a[1],d=a[2],h=a[3];switch(o.level=o._options.reduction.level,s(o.level)){case"open":n=u;break;case"high":n=c;break;case"low":n=d;break;default:n=h,o.level="close"}var p=void 0;return function(e){var t=e[n],a=!1;return r(t)&&(r(p)&&(a=t<p),p=t),{argument:e[l],highValue:i._processEmptyValue(e[c]),lowValue:i._processEmptyValue(e[d]),closeValue:i._processEmptyValue(e[h]),openValue:i._processEmptyValue(e[u]),reductionValue:t,tag:e[o.getTagField()],isReduction:a,data:e}}},_parsePointStyle:function(e,t,n){return{stroke:e.color||t,"stroke-width":e.width,fill:e.color||n}},_getDefaultStyle:function(e){var t=this,n=e.color||t._options.mainSeriesColor;return{normal:t._parsePointStyle(e,n,n),hover:t._parsePointStyle(e.hoverStyle,n,n),selection:t._parsePointStyle(e.selectionStyle,n,n)}},_getReductionStyle:function(e){var t=this,n=e.reduction.color;return{normal:t._parsePointStyle({color:n,width:e.width,hatching:e.hatching},n,n),hover:t._parsePointStyle(e.hoverStyle,n,n),selection:t._parsePointStyle(e.selectionStyle,n,n)}},_createPointStyles:function(e){var t,n,i,o=this,r=o._options.innerColor,s=o._getDefaultStyle(e);return t=a(!0,{},s),n=o._getReductionStyle(e),i=a(!0,{},n),t.normal.fill=t.hover.fill=t.selection.fill=r,i.normal.fill=i.hover.fill=i.selection.fill=r,s.positive=t,s.reduction=n,s.reductionPositive=i,s},_endUpdateData:function(){delete this._predefinedPointOptions},_defaultAggregator:"ohlc",_aggregators:{ohlc:function(e,t){var n=e.intervalStart,i=e.data;if(i.length){var o={},a=t.getValueFields(),r=a[1],s=a[2];return o[r]=-(1/0),o[s]=1/0,o=i.reduce(function(e,t){return null!==t[r]&&(e[r]=Math.max(e[r],t[r])),null!==t[s]&&(e[s]=Math.min(e[s],t[s])),e},o),o[a[0]]=i[0][a[0]],o[a[3]]=i[i.length-1][a[3]],isFinite(o[r])||(o[r]=null),isFinite(o[s])||(o[s]=null),o[t.getArgumentField()]=n,o}}},getValueFields:function(){var e=this._options;return[e.openValueField||"open",e.highValueField||"high",e.lowValueField||"low",e.closeValueField||"close"]},getArgumentField:function(){return this._options.argumentField||"date"},_patchMarginOptions:function(e){var t=this._getCreatingPointOptions(),n=t.styles,i=[n.normal,n.hover,n.selection].reduce(function(e,t){return Math.max(e,t["stroke-width"])},0);return e.size=u+i,e.sizePointNormalState=u,e},getSeriesPairCoord:function(e,t){for(var n=null,i=this.getVisiblePoints(),o=0;o<i.length;o++){var a=i[o],r=void 0;if(t)r=a.vx===e?(a.openY+a.closeY)/2:void 0;else{var s=[Math.min(a.lowY,a.highY),Math.max(a.lowY,a.highY)];r=e>=s[0]&&e<=s[1]?a.vx:void 0}if(this.checkAxisVisibleAreaCoord(!t,r)){n=r;break}}return n},usePointsToDefineAutoHiding:function(){return!1}}),t.candlestick=a({},t.stock,{_parsePointStyle:function(e,n,i){var o=e.color||i,a=t.stock._parsePointStyle.call(this,e,n,o);return a.fill=o,a.hatching=e.hatching,a}})},function(e,t,n){function i(e,t,n,i){return e=g.clone(e),e.value=t,e.minValue=n,e.translate(),e.argument=e.argument+i,e}function o(e){for(var t,n,o=0,a=[],r=e.length;o<r;)t=e[o],n=[t],t.leftHole&&(n=[i(t,t.leftHole,t.minLeftHole,"left"),t]),t.rightHole&&n.push(i(t,t.rightHole,t.minRightHole,"right")),a.push(n),o++;return[].concat.apply([],a)}function a(e,t){for(var n;!n&&e;)n=e._segmentByArg&&e._segmentByArg[t],e=e._prevSeries;return n}var r=n(4).noop,s=n(0).extend,l=n(3).each,u=n(169).chart,c=u.area,d=n(144),h=d.chart.bar,p=n(207).chart,f=n(10),g=n(48),_={getErrorBarRangeCorrector:r,_calculateErrorBars:r,_updateOptions:function(e){this._stackName="axis_"+(e.axis||"default")}};t.chart={},t.polar={},t.chart.stackedline=s({},p.line,_,{}),t.chart.stackedspline=s({},p.spline,_,{}),t.chart.fullstackedline=s({},p.line,_,{getValueRangeInitialValue:u.area.getValueRangeInitialValue}),t.chart.fullstackedspline=s({},p.spline,_,{getValueRangeInitialValue:u.area.getValueRangeInitialValue});var m=t.chart.stackedbar=s({},h,_,{_updateOptions:function(e){_._updateOptions.call(this,e),this._stackName=this._stackName+"_stack_"+(e.stack||"default")}});t.chart.fullstackedbar=s({},h,_,{_updateOptions:m._updateOptions}),t.chart.stackedarea=s({},c,_,{_prepareSegment:function(e,t){return c._prepareSegment.call(this,o(e),t)},_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup).toBackground()}}),t.chart.stackedsplinearea=s({},u.splinearea,_,{_prepareSegment:function(e,t){var n,i=this;if(e=o(e),this._prevSeries&&1!==e.length){for(var r=p.spline._calculateBezierPoints(e,t),s=f.map(e,function(e){var t=e.getCoords(!0);return t.argument=e.argument,t}),c=[],d={},h=0,g=i._prevSeries._segments.length;h<g;)c=c.concat(i._prevSeries._segments[h].line),h++;l(c,function(e,t){if(null!==t.argument){var n=t.argument.valueOf();d[n]?d[n].push(t):d[n]=[t]}}),i._prevSeries._segmentByArg=d,s=p.spline._calculateBezierPoints(s,t),l(s,function(e,t){var n,o=t.argument.valueOf();e%3===0&&(n=d[o]||a(i._prevSeries,o),n&&(s[e-1]&&n[0]&&(s[e-1]=n[0]),s[e+1]&&(s[e+1]=n[2]||t)))}),n={line:r,area:r.concat(s.reverse())},i._areaPointsToSplineAreaPoints(n.area)}else n=u.splinearea._prepareSegment.call(this,e,t);return n},_appendInGroup:t.chart.stackedarea._appendInGroup}),t.chart.fullstackedarea=s({},c,_,{_prepareSegment:t.chart.stackedarea._prepareSegment,_appendInGroup:t.chart.stackedarea._appendInGroup}),t.chart.fullstackedsplinearea=s({},u.splinearea,_,{_prepareSegment:t.chart.stackedsplinearea._prepareSegment,_appendInGroup:t.chart.stackedarea._appendInGroup}),t.polar.stackedbar=s({},d.polar.bar,_,{})},function(e,t,n){function i(e,t){var n=e.target;return("tspan"===n.tagName?n.parentNode:n)[t]}function o(e,t){return e.cancel||!t.getOptions()}function a(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}function r(e){return z.indexOf(e)>-1?e:L}function s(e){var t=e.getOptions().hoverMode;return t===V?t:F}var l=n(11),u=n(5),c=n(19),d=n(0).extend,h=n(3).each,p=n(120),f=p.events,g=n(10),_=n(24),m=n(89),v=n(8).addNamespace,y=n(1).isDefined,x=n(10).normalizeEnum,b=Math.floor,w=h,C=n(4).noop,k=p.states.hoverMark,S=p.states.normalMark,I="dxChartTracker",T="."+I,D=v([_.down,_.move],I),E="legendClick",A="seriesClick",O="pointClick",B="chart-data-point",P="chart-data-series",M="chart-data-argument",R=100,V="none",F="allargumentpoints",L="includepoints",H="excludepoints",z=[L,H,V],N={ctor:function(e){var t=this,n={tracker:t};t._renderer=e.renderer,t._legend=e.legend,t._tooltip=e.tooltip,t._eventTrigger=e.eventTrigger,t._seriesGroup=e.seriesGroup,e.seriesGroup.off(T).on(v(f.showPointTooltip,I),n,t._showPointTooltip).on(v(f.hidePointTooltip,I),n,t._hidePointTooltip),t._renderer.root.off(T).on(D,n,t._pointerHandler).on(v(c.name,I),n,t._clickHandler).on(v(m.name,I),{timeout:300},C)},update:function(){},updateSeries:function(e,t){var n=this,i=!(e&&e.some(function(e){return e===n.hoveredSeries})||n._hoveredPoint&&n._hoveredPoint.series);n._storedSeries!==e&&(n._storedSeries=e||[]),i&&(n._clean(),n._renderer.initHatching()),t&&(n.clearSelection(),i||(n._hideTooltip(n.pointAtShownTooltip),n.clearHover()))},setCanvases:function(e,t){this._mainCanvas=e,this._canvases=t},repairTooltip:function(){var e=this.pointAtShownTooltip;e&&e.series&&e.isVisible()?this._showTooltip(e):this._hideTooltip(e,!0)},_setHoveredPoint:function(e){e!==this._hoveredPoint&&(this._releaseHoveredPoint(),e.hover(),this._hoveredPoint=e)},_releaseHoveredPoint:function(){this._hoveredPoint&&this._hoveredPoint.getOptions()&&(this._hoveredPoint.clearHover(),this._hoveredPoint=null,this._tooltip.isEnabled()&&this._hideTooltip(this._hoveredPoint))},_setHoveredSeries:function(e,t){this._releaseHoveredSeries(),this._releaseHoveredPoint(),e.hover(t),this.hoveredSeries=e},_releaseHoveredSeries:function(e,t){this.hoveredSeries&&(this.hoveredSeries.clearHover(),this.hoveredSeries=null)},clearSelection:function(){this._storedSeries.forEach(function(e){e&&(e.clearSelection(),e.getPoints().forEach(function(e){e.clearSelection()}))})},_clean:function(){var e=this;e.hoveredPoint=e.hoveredSeries=e._hoveredArgumentPoints=null,e._hideTooltip(e.pointAtShownTooltip)},clearHover:function(){this._resetHoveredArgument(),this._releaseHoveredSeries(),this._releaseHoveredPoint()},_hideTooltip:function(e,t){var n=this;!n._tooltip||e&&n.pointAtShownTooltip!==e||(!t&&n.pointAtShownTooltip&&(n.pointAtShownTooltip=null),n._tooltip.hide())},_showTooltip:function(e){var t,n,i=this;if(e&&e.getOptions()){if(t=e.getTooltipFormatObject(i._tooltip),!y(t.valueText)&&!t.points||!e.isVisible())return;i.pointAtShownTooltip&&i.pointAtShownTooltip===e||(n={target:e});var o=e.getTooltipParams(i._tooltip.getLocation()),a=i._renderer.getRootOffset();if(o.x+=a.left,o.y+=a.top,!i._tooltip.show(t,o,n))return;i.pointAtShownTooltip=e}},_showPointTooltip:function(e,t){var n=e.data.tracker,i=n.pointAtShownTooltip;i&&i!==t&&n._hideTooltip(i),n._showTooltip(t)},_hidePointTooltip:function(e,t){e.data.tracker._hideTooltip(t)},_enableOutHandler:function(){if(!this._outHandler){var e=this,t=function(t){var n=e._renderer.getRootOffset(),i=b(t.pageX-n.left),o=b(t.pageY-n.top);a(e._mainCanvas,i,o)||(e._pointerOut(),e._disableOutHandler())};u.on(l.getDocument(),D,t),this._outHandler=t}},_disableOutHandler:function(){this._outHandler&&u.off(l.getDocument(),D,this._outHandler),this._outHandler=null},stopCurrentHandling:function(){this._pointerOut(!0)},_pointerOut:function(e){this.clearHover(),(e||this._tooltip.isEnabled())&&this._hideTooltip(this.pointAtShownTooltip)},_triggerLegendClick:function(e,t){var n=this._eventTrigger;n(E,e,function(){!o(e.event,e.target)&&n(t,e)})},_hoverLegendItem:function(e,t){var n,i=this,o=i._legend.getItemByCoord(e,t),a=r(i._legend.getOptions().hoverMode);o?(n=i._storedSeries[o.id],n.isHovered()&&n.lastHoverMode===a||i._setHoveredSeries(n,a),i._tooltip.isEnabled()&&i._hideTooltip(i.pointAtShownTooltip)):i.clearHover()},_hoverArgument:function(e,t){var n=this,i=n._getArgumentHoverMode();y(e)&&(n._releaseHoveredPoint(),n._hoveredArgument=e,n._argumentIndex=t,n._notifySeries({action:"pointHover",notifyLegend:n._notifyLegendOnHoverArgument,target:{argument:e,fullState:k,argumentIndex:t,getOptions:function(){return{hoverMode:i}}}}))},_resetHoveredArgument:function(){var e,t=this;y(t._hoveredArgument)&&(e=t._getArgumentHoverMode(),t._notifySeries({action:"clearPointHover",notifyLegend:t._notifyLegendOnHoverArgument,target:{fullState:S,argumentIndex:t._argumentIndex,argument:t._hoveredArgument,getOptions:function(){return{hoverMode:e}}}}),t._hoveredArgument=null)},_notifySeries:function(e){this._storedSeries.forEach(function(t){t.notify(e)})},_pointerHandler:function(e){var t=e.data.tracker,n=t._renderer.getRootOffset(),o=b(e.pageX-n.left),a=b(e.pageY-n.top),r=t._getCanvas(o,a),s=i(e,P),l=i(e,B)||s&&s.getPointByCoord(o,a);if(l&&!l.getMarkerVisibility()&&(l=void 0),t._enableOutHandler(),t._legend.coordsIn(o,a))return void t._hoverLegendItem(o,a);if(t.hoveredSeries&&t.hoveredSeries!==t._stuckSeries&&t._releaseHoveredSeries(),!t._hoverArgumentAxis(o,a,e)&&(t._isPointerOut(r,l)&&t._pointerOut(),r||l)){if(s&&!l){if(l=s.getNeighborPoint(o,a),t._stickyHovering||!l||l.coordsIn(o,a)||(l=null),s!==t.hoveredSeries)return void t._setTimeout(function(){t._setHoveredSeries(s),t._setStuckSeries(e,s,o,a),t._pointerComplete(l,o,a)},s)}else{if(l){if(e.type!==_.move&&"touch"!==e.pointerType)return;return void(t.hoveredSeries?t._setTimeout(function(){t._pointerOnPoint(l,o,a,e)},l):t._pointerOnPoint(l,o,a,e))}t._setStuckSeries(e,void 0,o,a)&&t._stickyHovering?(s=t._stuckSeries,l=s.getNeighborPoint(o,a),t._releaseHoveredSeries(),l&&l.getMarkerVisibility()&&t._setHoveredPoint(l)):t._stickyHovering||t._pointerOut()}t._pointerComplete(l,o,a)}},_pointerOnPoint:function(e,t,n){this._resetHoveredArgument(),this._setHoveredPoint(e),this._pointerComplete(e,t,n)},_pointerComplete:function(e){this.pointAtShownTooltip!==e&&this._tooltip.isEnabled()&&this._showTooltip(e)},_clickHandler:function(e){var t=e.data.tracker,n=t._renderer.getRootOffset(),o=b(e.pageX-n.left),a=b(e.pageY-n.top),r=i(e,B),s=t._stuckSeries||i(e,P)||r&&r.series,l=t._argumentAxis;if(t._legend.coordsIn(o,a)){var u=t._legend.getItemByCoord(o,a);u&&t._legendClick(u,e)}else if(l&&l.coordsIn(o,a)){var c=i(e,M);y(c)&&t._eventTrigger("argumentAxisClick",{argument:c,event:e})}else s&&(r=r||s.getPointByCoord(o,a),r&&r.getMarkerVisibility()?t._pointClick(r,e):i(e,P)&&t._eventTrigger(A,{target:s,event:e}))},dispose:function(){var e=this;e._disableOutHandler(),e._renderer.root.off(T),e._seriesGroup.off(T)}},$=function(e){this.ctor(e)};d($.prototype,N,{_pointClick:function(e,t){var n=this,i=n._eventTrigger,a=e.series;i(O,{target:e,event:t},function(){!o(t,a)&&i(A,{target:a,event:t})})},update:function(e){var t=this;N.update.call(this,e),t._argumentAxis=e.argumentAxis||{},t._axisHoverEnabled=t._argumentAxis&&x(t._argumentAxis.getOptions().hoverMode)===F,t._chart=e.chart,t._rotated=e.rotated,t._crosshair=e.crosshair,t._stickyHovering=e.stickyHovering},_getCanvas:function(e,t){for(var n=this,i=n._canvases||[],o=0;o<i.length;o++){var r=i[o];if(a(r,e,t))return r}return null},_isPointerOut:function(e){return!e&&this._stuckSeries},_hideCrosshair:function(){this._crosshair&&this._crosshair.hide()},_moveCrosshair:function(e,t,n){e&&this._crosshair&&e.isVisible()&&this._crosshair.show({point:e,x:t,y:n})},_clean:function(){var e=this;N._clean.call(e),e._resetTimer(),e._stuckSeries=null},_getSeriesForShared:function(e,t){var n=this,i=[],o=null,a=1/0;return n._tooltip.isShared()&&!n.hoveredSeries&&(w(n._storedSeries,function(n,o){var a=o.getNeighborPoint(e,t);a&&i.push(a)}),w(i,function(n,i){var r=i.getCrosshairData(e,t),s=g.getDistance(e,t,r.x,r.y);s<a&&(o=i,a=s)})),o&&o.series},_setTimeout:function(e,t){var n=this;n._timeoutKeeper!==t&&(n._resetTimer(),n._hoverTimeout=setTimeout(function(){e(),n._timeoutKeeper=null},R),n._timeoutKeeper=t)},_resetTimer:function(){clearTimeout(this._hoverTimeout),this._timeoutKeeper=this._hoverTimeout=null},_stopEvent:function(e){y(e.cancelable)&&!e.cancelable||(e.preventDefault(),e.stopPropagation())},_setStuckSeries:function(e,t,n,i){return"mouse"!==e.pointerType?this._stuckSeries=null:this._stuckSeries=t||this._stuckSeries||this._getSeriesForShared(n,i),!!this._stuckSeries},_pointerOut:function(){var e=this;e._stuckSeries=null,e._hideCrosshair(),e._resetTimer(),N._pointerOut.apply(e,arguments)},_hoverArgumentAxis:function(e,t,n){var o=this;if(o._resetHoveredArgument(),o._axisHoverEnabled&&o._argumentAxis.coordsIn(e,t))return o._hoverArgument(i(n,M)),!0},_pointerComplete:function(e,t,n){var i=this;i.hoveredSeries&&i.hoveredSeries.updateHover(t,n),i._resetTimer(),i._moveCrosshair(e,t,n),N._pointerComplete.call(i,e)},_legendClick:function(e,t){var n=this._storedSeries[e.id];this._triggerLegendClick({target:n,event:t},A)},_hoverLegendItem:function(e,t){this._stuckSeries=null,this._hideCrosshair(),N._hoverLegendItem.call(this,e,t)},_pointerOnPoint:function(e,t,n,i){
113this._setStuckSeries(i,e.series,t,n),this._releaseHoveredSeries(),N._pointerOnPoint.call(this,e,t,n,i)},_notifyLegendOnHoverArgument:!1,_getArgumentHoverMode:function(){return s(this._argumentAxis)},dispose:function(){this._resetTimer(),N.dispose.call(this)}});var W=function(e){this.ctor(e)};d(W.prototype,N,{_isPointerOut:function(e,t){return!t},_legendClick:function(e,t){var n=this,i=[];n._storedSeries.forEach(function(t){return i.push.apply(i,t.getPointsByKeys(e.argument,e.argumentIndex))}),n._eventTrigger(E,{target:e.argument,points:i,event:t})},_pointClick:function(e,t){this._eventTrigger(O,{target:e,event:t})},_hoverLegendItem:function(e,t){var n=this,i=n._legend.getItemByCoord(e,t);n._resetHoveredArgument(),i?n._hoverArgument(i.argument,i.argumentIndex):n.clearHover()},_getArgumentHoverMode:function(){return s(this._legend)},_hoverArgumentAxis:C,_setStuckSeries:C,_getCanvas:C,_notifyLegendOnHoverArgument:!0}),t.ChartTracker=$,t.PieTracker=W},function(e,t,n){function i(e){var t={};return e.forEach(function(e){var n=e.pane;t[n]||(t[n]=[]),t[n].push(e)}),t}function o(e,t){if(e.isLogarithmic){var n,i,o=e.logarithmicBase,a=e.tickValues,r=[];for(e.minValue=t.transform(e.minValue,o),e.oldMinValue=t.transform(e.oldMinValue,o),e.maxValue=t.transform(e.maxValue,o),e.oldMaxValue=t.transform(e.oldMaxValue,o),e.tickInterval=x.round(e.tickInterval),e.tickInterval<1&&(e.tickInterval=1),i=t.getInterval(o,e.tickInterval),n=t.transform(a[0],o);r.length<a.length;)r.push(n),n=t.addInterval(n,i);r.tickInterval=e.tickInterval,e.tickValues=r}}function a(e){return e.reduce(function(e,t){var n,i=t.getTicksValues(),a=i.majorTicksValues,r=t.getOptions(),s=t.getTranslator().getBusinessRange(),l=t.getVisibleArea(),u=t._tickInterval,c=r.synchronizedValue;if(a&&a.length>0&&(0,_.isNumeric)(a[0])&&"discrete"!==r.type&&!s.isEmpty()&&(!s.breaks||!s.breaks.length)&&"zoom"!==t.getViewport().action){t.applyMargins();var d=t.getTranslator().from(l[0]),h=t.getTranslator().from(l[1]),p=d<h?d:h,f=d<h?h:d;p===f&&(0,_.isDefined)(c)&&(u=C(a[0]-c)||1,p=a[0]-u,f=a[0]+u),n={axis:t,isLogarithmic:"logarithmic"===r.type,logarithmicBase:s.base,tickValues:a,minorValues:i.minorTicksValues,minorTickInterval:t._minorTickInterval,minValue:p,oldMinValue:p,maxValue:f,oldMaxValue:f,inverted:s.invert,tickInterval:u,synchronizedValue:c},o(n,k),e.push(n)}return e},[])}function r(e){var t=e.reduce(function(e,t){return w(e,t.tickValues.length)},0);e.forEach(function(e){var n,i,o=0,a=e.synchronizedValue,r=e.tickValues,s=e.tickInterval;if((0,_.isDefined)(a))e.baseTickValue=e.invertedBaseTickValue=a,e.tickValues=[e.baseTickValue];else{if(r.length>1&&s){for(n=b((t+1)/r.length),i=n>1?b((t+1)/n):t,o=b((i-r.length)/2);o>0&&0!==r[0];)r.unshift((0,y.adjust)(r[0]-s)),o--;for(;r.length<i;)r.push((0,y.adjust)(r[r.length-1]+s));e.tickInterval=s/n}e.baseTickValue=r[0],e.invertedBaseTickValue=r[r.length-1]}})}function s(e){return e.maxValue-e.minValue||1}function l(e){for(var t=0;t<e.length;t++)if(!e[t].stubData)return e[t];return null}function u(e){var t=l(e),n=t.tickInterval;e.forEach(function(e){var i,o,a,r;e!==t&&(n&&e.tickInterval&&(e.stubData&&(0,_.isDefined)(e.synchronizedValue)&&(e.oldMinValue=e.minValue=e.baseTickValue-(t.baseTickValue-t.minValue)/n*e.tickInterval,e.oldMaxValue=e.maxValue=e.baseTickValue-(t.baseTickValue-t.maxValue)/n*e.tickInterval),i=n/s(t)/e.tickInterval*s(e),e.maxValue=e.minValue+s(e)/i),a=t.inverted&&!e.inverted||!t.inverted&&e.inverted?t.maxValue-t.invertedBaseTickValue:t.baseTickValue-t.minValue,r=s(e),o=(a/s(t)-(e.baseTickValue-e.minValue)/r)*r,e.minValue-=o,e.maxValue-=o)})}function c(e){var t,n,i=0,o=0;return e.forEach(function(e){var a=e.inverted;t=e.minValue>e.oldMinValue?(e.minValue-e.oldMinValue)/s(e):0,n=e.maxValue<e.oldMaxValue?(e.oldMaxValue-e.maxValue)/s(e):0,i=w(i,a?n:t),o=w(o,a?t:n)}),{start:i,end:o}}function d(e,t){e.forEach(function(e){var n=s(e),i=e.inverted;e.minValue=(0,y.adjust)(e.minValue-t[i?"end":"start"]*n),e.maxValue=(0,y.adjust)(e.maxValue+t[i?"start":"end"]*n)})}function h(e){var t=!1;e.forEach(function(e){t=t||(0,_.isDefined)(e.synchronizedValue)}),e.forEach(function(e){var n,i=e.tickInterval,o=e.tickValues,a=e.maxValue,r=e.minValue;if(t&&i){for(;(n=(0,y.adjust)(o[0]-i))>=r;)o.unshift(n);for(n=o[o.length-1];(n=(0,y.adjust)(n+i))<=a;)o.push(n)}for(;o[0]+i/10<r;)o.shift();for(;o[o.length-1]-i/10>a;)o.pop()})}function p(e){e.forEach(function(e){var t=e.axis,n=t.getTranslator().getBusinessRange();n.min===n.minVisible&&(n.min=e.minValue),n.max===n.maxVisible&&(n.max=e.maxValue),n.minVisible=e.minValue,n.maxVisible=e.maxValue,n.min>n.minVisible&&(n.min=n.minVisible),n.max<n.maxVisible&&(n.max=n.maxVisible),t.getTranslator().updateBusinessRange(n),t.setTicks({majorTicks:e.tickValues,minorTicks:e.minorValues})})}function f(e){var t,n=[];e.forEach(function(e){e.oldMaxValue-e.oldMinValue===0?n.push(e):(0,_.isDefined)(t)||(0,_.isDefined)(e.synchronizedValue)||(t=C((e.maxValue-e.minValue)/(e.tickValues[b(e.tickValues.length/2)]-e.minValue||e.maxValue)))}),(0,_.isDefined)(t)&&n.forEach(function(e){var n=e.tickValues[0],i=n*t;n>0?(e.maxValue=i,e.minValue=0):n<0&&(e.minValue=i,e.maxValue=0)})}function g(e){e.forEach(function(e){if(e.minorTickInterval){for(var t=[],n=e.minorTickInterval,i=e.tickInterval/n-1,o=1;o<e.tickValues.length;o++)for(var a=e.tickValues[o-1],r=0;r<i;r++)a+=n,t.push(a);e.minorValues=t}})}var _=(n(81),n(1)),m=n(3),v=n(10),y=n(29),x=Math,b=x.floor,w=x.max,C=x.abs,k={transform:function(e,t){return(0,y.adjust)((0,v.getLog)(e,t))},addInterval:function(e,t){return(0,y.adjust)(e+t)},getInterval:function(e,t){return t}},S={transform:function(e,t){return(0,y.adjust)((0,v.raiseTo)(e,t))},addInterval:function(e,t){return(0,y.adjust)(e*t)},getInterval:function(e,t){return x.pow(e,t)}},I={synchronize:function(e){(0,m.each)(i(e),function(e,t){var n,i;if(t.length>1){if(n=a(t),n.length<2||!l(n))return;r(n),u(n),i=c(n),d(n,i),f(n),h(n),g(n),n.forEach(function(e){o(e,S)}),p(n)}})}};e.exports=I},function(e,t,n){function i(e){return e}var o=n(1).isDefined,a=n(29).adjust,r=Math.round;e.exports={translate:function(e,t){var n,i=this,a=i._canvasOptions,s=i._categoriesToPoints[e.valueOf()],l=i.translateSpecialCase(e),u=a.startPointIndex||0,c=i._options.stick?0:.5;return o(l)?r(l):s||0===s?(t=t||0,n=s+c-u+.5*t,r(i._calculateProjection(a.interval*n))):null},getInterval:function(){return this._canvasOptions.interval},getEventScale:function(e){var t=e.deltaScale||1;return 1-(1-t)/(.75+this.visibleCategories.length/this._categories.length)},zoom:function(e,t){var n,i,o,r=this,s=r._categories,l=r._canvasOptions,u=r._options.stick,c=l.invert,d=l.interval*t,h=e/d,p=(r.visibleCategories||[]).length,f=parseInt((l.startPointIndex||0)+h+.5),g=parseInt(a(l.canvasLength/d)+(u?1:0))||1;return c&&(f=parseInt((l.startPointIndex||0)+p-h+.5)-g),f<0&&(f=0),n=f+g,n>s.length&&(n=s.length,f=n-g,f<0&&(f=0)),i=s.slice(parseInt(f),parseInt(n)),o=r._getDiscreteInterval(i.length,l),t=o/l.interval,e=r.translate(c?i[i.length-1]:i[0])*t-(l.startPoint+(u?0:o/2)),{min:i[0],max:i[i.length-1],translate:e,scale:t}},getMinScale:function(e){var t=this,n=t._canvasOptions,i=(t.visibleCategories||t._categories).length;return i+=(parseInt(.1*i)||1)*(e?-2:2),n.canvasLength/(Math.max(i,1)*n.interval)},getScale:function(e,t){var n=this,i=n._canvasOptions,a=n.getCanvasVisibleArea(),r=!n._options.stick&&1,s=o(e)?n.translate(e,-r):null,l=o(t)?n.translate(t,+r):null;return null===s&&(s=i.invert?a.max:a.min),null===l&&(l=i.invert?a.min:a.max),n.canvasLength/Math.abs(l-s)},isValid:function(e){return!!o(e)&&this._categoriesToPoints[e.valueOf()]>=0},getCorrectValue:i,to:function(e,t){var n=this._canvasOptions,i=this._categoriesToPoints[e.valueOf()],o=n.startPointIndex||0,a=i+(this._options.stick?0:.5)-o+(this._businessRange.invert?-1:1)*t*.5;return r(this._calculateProjection(n.interval*a))},from:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._canvasOptions,i=n.startPoint,o=this.visibleCategories||this._categories,a=o.length,s=this._options.stick?.5:0,l=r((e-i)/n.interval+s-.5-.5*t);return l>=a&&(l=a-1),l<0&&(l=0),n.invert&&(l=a-l-1),o[l]},_add:function(){return NaN},_toValue:i,isValueProlonged:!0}},function(e,t,n){var i=n(1),o=i.isNumeric,a=i.isDefined,r=n(22),s=r.addInterval,l=r.dateToMilliseconds,u=Math.floor,c=n(29).adjust;e.exports={_intervalize:function(e,t){if(a(e))return"datetime"===this._businessRange.dataType?(e=o(e)?new Date(e):new Date(e.getTime()),e=r.correctDateWithUnitBeginning(e,t)):e=c(u(c(e/t))*t,t),e},translate:function(e,t,n){var i=this,o=i.translateSpecialCase(e);return a(o)?Math.round(o):(n=n||i._options.interval,i.isValid(e,n)?i.to(e,t,n):null)},getInterval:function(){return Math.round(this._canvasOptions.ratioOfCanvasRange*(this._businessRange.interval||Math.abs(this._canvasOptions.rangeMax-this._canvasOptions.rangeMin)))},zoom:function(){},getMinScale:function(){},getScale:function(){},_parse:function(e){return"datetime"===this._businessRange.dataType?new Date(e):Number(e)},_fromValue:function(e){return this._parse(e)},_toValue:function(e){return this._parse(e)},isValid:function(e,t){var n=this,i=n._canvasOptions,a=i.rangeMin,r=i.rangeMax;return t=t||n._options.interval,null!==e&&!isNaN(e)&&(e="datetime"===n._businessRange.dataType&&o(e)?new Date(e):e,t!==n._options.interval&&(a=n._intervalize(a,t),r=n._intervalize(r,t)),!(e.valueOf()<a||e.valueOf()>=s(r,t)))},to:function(e,t,n){var i=this;n=n||i._options.interval;var o=i._intervalize(e,n),a=s(o,n),r=i._to(o),l=i._to(a);return t?t>0&&(r=l):r=u((r+l)/2),r},_to:function(e){var t=this._canvasOptions,n=t.rangeMinVisible,i=t.rangeMaxVisible,o=e-n;return e<n?o=0:e>i&&(o=s(i,this._options.interval)-n),this._conversionValue(this._calculateProjection(o*this._canvasOptions.ratioOfCanvasRange))},from:function(e,t){var n,i=this,o=i._options.interval,a=o,r=i._canvasOptions,u=r.rangeMinVisible,c=r.rangeMaxVisible;return"datetime"===i._businessRange.dataType&&(a=l(o)),n=i._calculateUnProjection((e-i._canvasOptions.startPoint)/i._canvasOptions.ratioOfCanvasRange),n=i._intervalize(s(n,a/2,t>0),o),n<u?n=u:n>c&&(n=c),n},_add:function(){return NaN},isValueProlonged:!0}},function(e,t,n){function i(e){return null!==e?new Date(e):e}e.exports={_fromValue:i,_toValue:i,_add:n(22).addDateInterval}},function(e,t,n){var i=n(10),o=n(1).isDefined,a=i.raiseTo,r=i.getLog;e.exports={_fromValue:function(e){return null!==e?r(e,this._canvasOptions.base):e},_toValue:function(e){return null!==e?a(e,this._canvasOptions.base):e},getMinBarSize:function(e){var t=this.getCanvasVisibleArea(),n=this.from(t.min+e),i=this._canvasOptions;return Math.pow(i.base,i.rangeMinVisible+this._fromValue(this.from(t.min))-this._fromValue(o(n)?n:this.from(t.max)))},checkMinBarSize:function(e,t,n){var i,a,r=this._canvasOptions,s=n-e,l=this.constructor.prototype.checkMinBarSize;return o(t)&&s>0?(i=l(this._fromValue(n/s),this._fromValue(t)-r.rangeMinVisible),a=Math.pow(r.base,this._fromValue(s)+i)-s):a=l(e,t),a}}},function(e,t,n){function i(e){return f.filter(function(t){return!e.some(function(e){return e===t})})}function o(e){return(e+1)%7}function a(e,t){for(var n=e.start,i=e.end;n!==i;){if(n===t)return!0;n=o(n)}return!1}function r(e,t){for(var n=0;e!==t;)e=o(e),n++;return n}function s(e,t){var n=[],i=new Date(t);return i.setDate(t.getDate()+1),t>e.from&&n.push({from:e.from,to:t}),i<e.to&&n.push({from:i,to:e.to}),n}function l(e){var t=i(e);if(t.length<7)for(;o(t[t.length-1])===t[0];)t.unshift(t.pop());return t}function u(e,t,n){var i=e.getDate(),s=[],l=n.reduce(function(e,t){var n=e[1];return void 0===n.start?(n={start:t,end:o(t)},e[0].push(n),[e[0],n]):n.end===t?(n.end=o(t),e):(n={start:t,end:o(t)},e[0].push(n),[e[0],n])},[[],{}]);return l[0].forEach(function(n){var o=new Date(e);for(o=p.trimTime(o);o<t;){i=o.getDay();var l=o.getDate();if(a(n,i)){var u,c=new Date(o);o.setDate(l+r(i,n.end)),u=new Date(o),s.push({from:c,to:u})}o.setDate(o.getDate()+1)}}),s}function c(e,t){var n,i=e.slice(),o=function(e){if(e=p.trimTime(new Date(e)),i[n].from<=e&&i[n].to>e){var t=s(i[n],e);2===t.length?i.splice(n,1,t[0],t[1]):1===t.length?i.splice(n,1,t[0]):i.splice(n,1)}};for(n=0;n<i.length;n++)t.forEach(o);return i}function d(e,t,n,i){var o,a=function(e){return e===o},r=p.trimTime(e),s=p.trimTime(t);return s.setDate(t.getDate()+1),n.reduce(function(e,t){var n,l;return t=new Date(t),o=t.getDay(),!i.some(a)&&t>=r&&t<=s&&(n=p.trimTime(t),l=new Date(n),l.setDate(n.getDate()+1),e.push({from:n,to:l})),e},[])}function h(e){return e.map(function(e){return{from:e.from,to:e.to,gapSize:p.convertMillisecondsToDateUnits(e.to-e.from)}})}var p=n(22),f=[0,1,2,3,4,5,6];t.generateDateBreaks=function(e,t,n,i,o){var a=l(n),r=u(e,t,a);return r.push.apply(r,d(e,t,o||[],a)),h(c(r,i||[]))}},function(e,t,n){function i(e){var t;return e=r.normalizeAngle(e),e>=315&&e<=360||e<45&&e>=0?t=1:e>=45&&e<135?t=2:e>=135&&e<225?t=3:e>=225&&e<315&&(t=4),t}var o,a,r=n(10),s=n(1).isDefined,l=n(0).extend,u=n(273),c=n(408).linear,d=n(407).tick,h=r.map,p=Math,f=p.abs,g=p.round,_=r.convertPolarToXY,m=l,v=n(4).noop,y=90;a=t,o=a.circular={_calculateValueMargins:function(e){var t=this._getViewportRange(),n=t.minVisible,i=t.maxVisible;return e&&e.length>1&&(n=n<e[0].value?n:e[0].value,i=n>e[e.length-1].value?i:e[e.length-1].value),{minValue:n,maxValue:i}},applyMargins:function(){var e=this._calculateValueMargins(this._majorTicks),t=this._translator.getBusinessRange();t.addRange({minVisible:e.minValue,maxVisible:e.maxValue,interval:this._calculateRangeInterval(t.interval)}),this._translator.updateBusinessRange(t)},_getTranslatorOptions:function(){return{isHorizontal:!0,conversionValue:!0,addSpiderCategory:this._getSpiderCategoryOption(),stick:this._getStick()}},getCenter:function(){return this._center},getRadius:function(){return this._radius},getAngles:function(){var e=this._options;return[e.startAngle,e.endAngle]},_updateRadius:function(e){var t=Math.min(e.width-e.left-e.right,e.height-e.top-e.bottom)/2;this._radius=t<0?0:t},_updateCenter:function(e){this._center={x:e.left+(e.width-e.right-e.left)/2,y:e.top+(e.height-e.top-e.bottom)/2}},_processCanvas:function(e){return this._updateRadius(e),this._updateCenter(e),{left:0,right:0,width:this._getScreenDelta()}},_createAxisElement:function(){return this._renderer.circle()},_updateAxisElementPosition:function(){var e=this.getCenter();this._axisElement.attr({cx:e.x,cy:e.y,r:this.getRadius()})},_boundaryTicksVisibility:{min:!0},_getSpiderCategoryOption:function(){return this._options.firstPointOnStartAngle},_validateOptions:function(e){var t=this,n=e.originValue,i=e.wholeRange={},o=e.period;s(n)&&(n=t.validateUnit(n)),o>0&&e.argumentType===u.numeric&&(n=n||0,i.endValue=n+o,t._viewport=r.getVizRangeObject([n,i.endValue])),s(n)&&(i.startValue=n)},_setVisualRange:v,allowToExtendVisualRange:function(e){return!0},_getStick:function(){return this._options.firstPointOnStartAngle||this._options.type!==u.discrete},_getTranslatedCoord:function(e,t){return this._translator.translate(e,t)-y},_getCanvasStartEnd:function(){return{start:0-y,end:360-y}},_getStripGraphicAttributes:function(e,t){var n=this.getCenter(),i=this.getAngles()[0],o=this.getRadius();return{x:n.x,y:n.y,innerRadius:0,outerRadius:o,startAngle:-t-i,endAngle:-e-i}},_createStrip:function(e){return this._renderer.arc(e.x,e.y,e.innerRadius,e.outerRadius,e.startAngle,e.endAngle)},_getStripLabelCoords:function(e,t){var n=this,i=n._getStripGraphicAttributes(e,t),o=i.startAngle+(i.endAngle-i.startAngle)/2,a=r.getCosAndSin(o),s=n.getRadius()/2,l=n.getCenter(),c=g(l.x+s*a.cos),d=g(l.y-s*a.sin);return{x:c,y:d,align:u.center}},_getConstantLineGraphicAttributes:function(e){var t=this.getCenter(),n=this.getRadius();return{points:[t.x,t.y,t.x+n,t.y]}},_createConstantLine:function(e,t){var n=this.getCenter();return this._createPathElement(this._getConstantLineGraphicAttributes(e).points,t).rotate(e+this.getAngles()[0],n.x,n.y)},_getConstantLineLabelsCoords:function(e){var t=this,n=r.getCosAndSin(-e-t.getAngles()[0]),i=t.getRadius()/2,o=t.getCenter(),a=g(o.x+i*n.cos),s=g(o.y-i*n.sin);return{x:a,y:s}},_checkAlignmentConstantLineLabels:v,_adjustDivisionFactor:function(e){return 180*e/(this.getRadius()*Math.PI)},_getScreenDelta:function(){var e=this.getAngles();return p.abs(e[0]-e[1])},_getTickMarkPoints:function(e,t,n){var i=n.shift,o=void 0===i?0:i,a=this.getCenter(),r={inside:-1,center:-.5,outside:0},s=this.getRadius()+t*r[this._options.tickOrientation||"center"];return[a.x+s+o,a.y,a.x+s+t+o,a.y]},_getLabelAdjustedCoord:function(e){var t=this,n=e.labelCoords,o=n.y,a=n.angle,s=r.getCosAndSin(a),l=s.cos,u=s.sin,c=e.labelBBox,d=c.width/2,h=c.height/2,p=t._options.label.indentFromAxis||0,f=n.x+p*l,g=o+(o-c.y-h)+p*u;switch(i(a)){case 1:f+=d,g+=h*u;break;case 2:f+=d*l,g+=h;break;case 3:f+=-d,g+=h*u;break;case 4:f+=d*l,g+=-h}return{x:f,y:g}},_getGridLineDrawer:function(){var e=this;return function(t,n){var i=e.getCenter();return e._createPathElement(e._getGridPoints().points,n).rotate(t.coords.angle,i.x,i.y)}},_getGridPoints:function(){var e=this.getRadius(),t=this.getCenter();return{points:[t.x,t.y,t.x+e,t.y]}},_getTranslatedValue:function(e,t){var n=this.getAngles()[0],i=this._translator.translate(e,-t),o=_(this.getCenter(),n,i,this.getRadius());return{x:o.x,y:o.y,angle:i+n-y}},_getAdjustedStripLabelCoords:function(e){var t=e.labelBBox;return{translateY:e.label.attr("y")-t.y-t.height/2}},coordsIn:function(e,t){return r.convertXYToPolar(this.getCenter(),e,t).r>this.getRadius()},_rotateTick:function(e,t){var n=this.getCenter();e.rotate(t.angle,n.x,n.y)},_validateOverlappingMode:function(e){return u.validateOverlappingMode(e)},_validateDisplayMode:function(){return"standard"},_getStep:function(e){var t=this,n=t.getRadius()+(t._options.label.indentFromAxis||0),i=e.reduce(function(e,t){var n=e;return e.width<t.width&&(n.width=t.width),e.height<t.height&&(n.height=t.height),n},{width:0,height:0}),o=f(2*p.atan(i.height/(2*n-i.width))*180/p.PI),a=f(2*p.atan(i.width/(2*n-i.height))*180/p.PI);return u.getTicksCountInRange(t._majorTicks,"angle",p.max(o,a))},_checkBoundedLabelsOverlapping:function(e,t,n){var i=p.floor((n.length-1)/e)*e,o=this._options.label;i&&u.areLabelsOverlap(n[0],n[i],o.minSpacing,u.center)&&("first"===o.hideFirstOrLast?t[0].label.remove():t[i].label.remove())},shift:function(e){this._axisGroup.attr({translateX:e.right,translateY:e.bottom})}},a.circularSpider=m({},o,{_createAxisElement:function(){return this._renderer.path([],"area")},_updateAxisElementPosition:function(){this._axisElement.attr({points:h(this.getSpiderTicks(),function(e){return{x:e.coords.x,y:e.coords.y}})})},_getStick:function(){return!0},_getSpiderCategoryOption:function(){return!0},getSpiderTicks:function(){var e=this,t=e.getFullTicks();return e._spiderTicks=t.map(d(e,e.renderer,{},{},e._getSkippedCategory(t),!0)),e._spiderTicks.forEach(function(e){e.initCoords()}),e._spiderTicks},_getStripGraphicAttributes:function(e,t){for(var n,i,o,a,r=this.getCenter(),s=this.getSpiderTicks(),l=[],u=0,c=s.length;u<c;)a=s[u].coords,a.angle>=e&&a.angle<=t&&(n||(n=(s[u-1]||s[s.length-1]).coords,l.push((a.x+n.x)/2,(a.y+n.y)/2)),l.push(a.x,a.y),o=(s[u+1]||s[0]).coords,i={x:(a.x+o.x)/2,y:(a.y+o.y)/2}),u++;return l.push(i.x,i.y),l.push(r.x,r.y),{points:l}},_createStrip:function(e){var t=e.points;return this._renderer.path(t,"area")},_getTranslatedCoord:function(e,t){return this._translator.translate(e,t)-y},_setTickOffset:function(){this._tickOffset=!1}}),a.linear={applyMargins:o.applyMargins,_resetMargins:function(){this._reinitTranslator(this._getViewportRange())},_setVisualRange:v,_getStick:c._getStick,_getSpiderCategoryOption:v,_getTranslatorOptions:function(){return{isHorizontal:!0,stick:this._getStick()}},_updateRadius:o._updateRadius,getRadius:o.getRadius,getCenter:o.getCenter,getAngles:o.getAngles,_updateCenter:o._updateCenter,_processCanvas:function(e){return this._updateRadius(e),this._updateCenter(e),{left:0,right:0,width:this.getRadius()}},_createAxisElement:c._createAxisElement,_updateAxisElementPosition:function(){var e=this.getCenter();this._axisElement.attr({points:[e.x,e.y,e.x+this.getRadius(),e.y]}).rotate(this.getAngles()[0]-y,e.x,e.y)},_getScreenDelta:function(){return this.getRadius()},_getTickMarkPoints:function(e,t){return[e.x-t/2,e.y,e.x+t/2,e.y]},_getLabelAdjustedCoord:function(e){var t,n,i=this,o=e.labelCoords,a=o.y,s=r.getCosAndSin(o.angle),l=i._options.label.indentFromAxis||0,u=e.labelBBox;return t=o.x-f(l*s.sin)+f(u.width/2*s.cos)-u.width/2,n=a+(a-u.y)-f(u.height/2*s.sin)+f(l*s.cos),{x:t,y:n}},_getGridLineDrawer:function(){var e=this;return function(t,n){var i=e._getGridPoints(t.coords);return e._renderer.circle(i.cx,i.cy,i.r).attr(n).sharp()}},_getGridPoints:function(e){var t=this.getCenter();return{cx:t.x,cy:t.y,r:r.getDistance(t.x,t.y,e.x,e.y)}},_getTranslatedValue:function(e,t){var n=this.getAngles()[0],i=_(this.getCenter(),n,0,this._translator.translate(e,t));return{x:i.x,y:i.y,angle:n-y}},_getTranslatedCoord:function(e,t){return this._translator.translate(e,t)},_getCanvasStartEnd:function(){return{start:0,end:this.getRadius()}},_getStripGraphicAttributes:function(e,t){var n=this.getCenter();return{x:n.x,y:n.y,innerRadius:e,outerRadius:t}},_createStrip:function(e){return this._renderer.arc(e.x,e.y,e.innerRadius,e.outerRadius,0,360)},_getAdjustedStripLabelCoords:o._getAdjustedStripLabelCoords,_getStripLabelCoords:function(e,t){var n=this,i=e+(t-e)/2,o=n.getCenter(),a=g(o.y-i);return{x:o.x,y:a,align:u.center}},_getConstantLineGraphicAttributes:function(e){var t=this.getCenter();return{cx:t.x,cy:t.y,r:e}},_createConstantLine:function(e,t){var n=this._getConstantLineGraphicAttributes(e);return this._renderer.circle(n.cx,n.cy,n.r).attr(t).sharp()},_getConstantLineLabelsCoords:function(e){var t=this,n=t.getCenter(),i=g(n.y-e);return{x:n.x,y:i}},_checkAlignmentConstantLineLabels:v,_rotateTick:function(e,t,n){!n&&e.rotate(t.angle+y,t.x,t.y)},_validateOverlappingMode:o._validateOverlappingMode,_validateDisplayMode:o._validateDisplayMode,_getStep:function(e){var t=i(this.getAngles()[0]),n=this._options.label.minSpacing,o=2===t||4===t?function(e){return e.width+n}:function(e){return e.height},a=e.reduce(function(e,t){return p.max(e,o(t))},0);return u.getTicksCountInRange(this._majorTicks,2===t||4===t?"x":"y",a)}},a.linearSpider=m({},a.linear,{_createPathElement:function(e,t){return this._renderer.path(e,"area").attr(t).sharp()},setSpiderTicks:function(e){this._spiderTicks=e},_getGridLineDrawer:function(){var e=this;return function(t,n,i){return e._createPathElement(e._getGridPoints(t.coords).points,n)}},_getGridPoints:function(e){var t=this.getCenter(),n=r.getDistance(t.x,t.y,e.x,e.y);return this._getGridPointsByRadius(n)},_getGridPointsByRadius:function(e){var t=this.getCenter();return{points:h(this._spiderTicks,function(n){var i=r.getCosAndSin(n.coords.angle);return{x:g(t.x+e*i.cos),y:g(t.y+e*i.sin)}})}},_getStripGraphicAttributes:function(e,t){var n=this._getGridPointsByRadius(t).points,i=this._getGridPointsByRadius(e).points;return{points:[i,n.reverse()]}},_createStrip:a.circularSpider._createStrip,_getConstantLineGraphicAttributes:function(e){return this._getGridPointsByRadius(e)},_createConstantLine:function(e,t){return this._createPathElement(this._getConstantLineGraphicAttributes(e).points,t)}})},function(e,t,n){function i(e,t){var n=t.label||{},i=n.position||"inside",a=void 0,r=!1;e._checkAlignmentConstantLineLabels(n);var s=void 0;return{options:t,labelOptions:n,labelPosition:i,label:null,line:null,getParsedValue:function(){return r?a:(a=e.validateUnit(t.value,"E2105","constantLine"),r=!0,a)},draw:function(){if(!(0,o.isDefined)(t.value)||e._translator.getBusinessRange().isEmpty())return this;var a=e._getCanvasStartEnd(),r=this.getParsedValue();this.coord=e._getConstantLinePos(r,a.start,a.end);var s=t.displayBehindSeries?e._axisConstantLineGroups.under:e._axisConstantLineGroups.above,l=s[i];if(!l){var u=e._isHorizontal?n.verticalAlignment:n.horizontalAlignment;l=s[u]}if(!(0,o.isDefined)(this.coord))return this;var c=e._createConstantLine(this.coord,{stroke:t.color,"stroke-width":t.width,dashStyle:t.dashStyle});return this.line=c.append(s.inside),this.label=n.visible?e._drawConstantLineLabels(r,n,this.coord,l):null,this.updatePosition(),this},removeLabel:function(){this.label&&this.label.remove()},updatePosition:function(t){var n=e._getCanvasStartEnd(),i=e._getConstantLinePos(this.getParsedValue(),n.start,n.end);(0,o.isDefined)(i)&&(this.coord=i,t&&s?(this.label&&this.label.attr(e._getConstantLineLabelsCoords(s,this.labelOptions)),this.line&&this.line.attr(e._getConstantLineGraphicAttributes(s)),this.label&&this.label.animate(e._getConstantLineLabelsCoords(this.coord,this.labelOptions)),this.line&&this.line.animate(e._getConstantLineGraphicAttributes(this.coord))):(this.label&&this.label.attr(e._getConstantLineLabelsCoords(this.coord,this.labelOptions)),this.line&&this.line.attr(e._getConstantLineGraphicAttributes(this.coord))))},saveCoords:function(){s=this.coord}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(1)},function(e,t,n){function i(e,t){var n=void 0,i=t.label||{};return{options:t,label:null,rect:null,_getCoord:function(){var n=e._getCanvasStartEnd(),i=e._translator.getBusinessRange();return e._getStripPos(t.startValue,t.endValue,n.start,n.end,i)},_drawLabel:function(t){return e._renderer.text(i.text,t.x,t.y).css((0,a.patchFontOptions)((0,r.extend)({},e.getOptions().label.font,i.font))).attr({align:"center","class":i.cssClass}).append(e._axisStripLabelGroup)},draw:function(){if(!e._translator.getBusinessRange().isEmpty()&&((0,o.isDefined)(t.startValue)||(0,o.isDefined)(t.endValue))&&(0,o.isDefined)(t.color)){var n=this._getCoord();if(this.labelCoords=i.text?e._getStripLabelCoords(n.from,n.to,i):null,n.to-n.from===0||!(0,o.isDefined)(n.to)||!(0,o.isDefined)(n.from))return;this.rect=e._createStrip(e._getStripGraphicAttributes(n.from,n.to)).attr({fill:t.color}).append(e._axisStripGroup),this.label=i.text?this._drawLabel(this.labelCoords):null}},removeLabel:function(){},updatePosition:function(i){var o=this._getCoord();i&&n?(this.label&&this.label.attr(e._getStripLabelCoords(n.from,n.to,t.label)),this.rect&&this.rect.attr(e._getStripGraphicAttributes(n.from,n.to)),this.label&&this.label.animate(e._getStripLabelCoords(o.from,o.to,t.label)),this.rect&&this.rect.animate(e._getStripGraphicAttributes(o.from,o.to))):(this.label&&this.label.attr(e._getStripLabelCoords(o.from,o.to,t.label)),this.rect&&this.rect.attr(e._getStripGraphicAttributes(o.from,o.to)))},saveCoords:function(){n=this._getCoord()}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(1),a=n(10),r=n(0)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,i){var o=0;return"right"===t?o=e.width-e.right+n:"left"===t&&(o=e.left-n-i),o}function a(e,t,n,i){var o=0;return"top"===t?o=e.top-n:"bottom"===t&&(o=e.height-e.bottom+i+n),o}var r=n(5),s=i(r),l=n(8),u=i(l),c=n(0),d=n(274),h=i(d),p=n(1),f=n(4),g=n(55),_=i(g),m=Math.min,v=Math.max,y=2,x=function(e,t){this._translator=new h.default.Translator2D({},{},{}),this._scroll=e.rect().append(t),this._addEvents()};x.prototype={_addEvents:function(){var e=this,t=this._scroll.element;s.default.on(t,_.default.start,function(e){u.default.fireEvent({type:"dxc-scroll-start",originalEvent:e,target:t})}),s.default.on(t,_.default.move,function(n){var i=-n.offset.x*e._scale,o=-n.offset.y*e._scale,a=e._offset-(e._layoutOptions.vertical?o:i)/e._scale;e._applyPosition(a,a+e._translator.canvasLength/e._scale),u.default.fireEvent({type:"dxc-scroll-move",originalEvent:n,target:t,offset:{x:i,y:o}})}),s.default.on(t,_.default.end,function(n){u.default.fireEvent({type:"dxc-scroll-end",originalEvent:n,target:t,offset:{x:-n.offset.x*e._scale,y:-n.offset.y*e._scale}})})},update:function(e){var t=this,n=e.position,i=e.rotated,o=i?"right":"top",a=i?"left":"bottom";return n!==o&&n!==a&&(n=o),t._scroll.attr({rotate:e.rotated?0:-90,rotateX:0,rotateY:0,fill:e.color,width:e.width,opacity:e.opacity}),t._layoutOptions={width:e.width,offset:e.offset,vertical:i,position:n},t},init:function(e,t){var n=this,i="discrete"===e.axisType;return n._translateWithOffset=i&&!t&&1||0,n._translator.update((0,c.extend)({},e,{minVisible:null,maxVisible:null,visibleCategories:null},i&&{min:null,max:null}||{}),n._canvas,{isHorizontal:!n._layoutOptions.vertical,stick:t}),n},getOptions:function(){return this._layoutOptions},setPane:function(e){var t,n=this._layoutOptions.position;return t="left"===n||"top"===n?e[0]:e[e.length-1],this.pane=t.name,this},updateSize:function(e){this._canvas=(0,c.extend)({},e);var t=this._layoutOptions,n=t.position,i=t.offset,r=t.width;this._scroll.attr({translateX:o(e,n,i,r),translateY:a(e,n,i,r)})},getMultipleAxesSpacing:function(){return 0},estimateMargins:function(){return this.getMargins()},getMargins:function(){var e=this._layoutOptions,t={left:0,top:0,right:0,bottom:0};return t[e.position]=e.width+e.offset,t},draw:f.noop,shift:f.noop,hideTitle:f.noop,hideOuterElements:f.noop,prepareAnimation:f.noop,setPosition:function(e,t){var n=this,i=n._translator,o=(0,p.isDefined)(e)?i.translate(e,-n._translateWithOffset):i.translate("canvas_position_start"),a=(0,p.isDefined)(t)?i.translate(t,n._translateWithOffset):i.translate("canvas_position_end");n._offset=m(o,a),n._scale=i.getScale(e,t),n._applyPosition(m(o,a),v(o,a))},dispose:function(){this._scroll.dispose(),this._scroll=this._translator=null},_applyPosition:function(e,t){var n,i=this,o=i._translator.getCanvasVisibleArea();e=v(e,o.min),e=m(e,o.max),t=m(t,o.max),t=v(t,o.min),n=Math.abs(t-e),i._scroll.attr({y:e,height:n<y?y:n})}},t.ScrollBar=x},function(e,t,n){function i(e,t,n,i){var o=Math.floor(n?i.pageY-e.top:i.pageX-e.left),a=n?t.y1:t.x1,r=n?t.y2:t.x2;return o<a?o=a:o>r&&(o=r),o}function o(e,t,n){var i=n.pageX-e.left,o=n.pageY-e.top;return i>=t.x1&&i<=t.x2&&o>=t.y1&&o<=t.y2}function a(e){return function(t){var n=e.getRootOffset(),a=e.getCanvas();return o(n,a,t)?(e.rootOffset=n,e.canvas=a,e.startCoord=i(n,a,e.rotated,t),e.triggerStart(),void e.rect.attr({x:a.x1,y:a.y1,width:a.width,height:a.height}).append(e.root)):void(t.cancel=!0)}}function r(e){return function(t){var n=i(e.rootOffset,e.canvas,e.rotated,t),o={};e.curCoord=n,o[e.rotated?"y":"x"]=Math.min(e.startCoord,n),o[e.rotated?"height":"width"]=Math.abs(e.startCoord-n),e.rect.attr(o)}}function s(e){return function(t){e.triggerEnd(),e.rect.remove()}}function l(e){var t=e.chart,n=e.renderer,i=e.rotated,o=n.rect(0,0,0,0).attr(e.shutterOptions),l={rect:o,root:n.root,rotated:i,triggerStart:function(){t._eventTrigger("zoomStart")},triggerEnd:function(){var e=t._argumentAxes[0].getTranslator(),n=Math.min(this.startCoord,this.curCoord),i=Math.max(this.startCoord,this.curCoord);t._eventTrigger("zoomEnd",{rangeStart:e.from(n),rangeEnd:e.from(i)})},dispose:function(){n.root.off(c),o.dispose()},getRootOffset:function(){return n.getRootOffset()},getCanvas:function(){var e=t._canvas,n=t.panes,i=n[0].canvas,o=n[n.length-1].canvas;return{x1:i.left,y1:i.top,x2:e.width-o.right,y2:e.height-o.bottom,width:e.width-i.left-o.right,height:e.height-i.top-o.bottom}}};return n.root.off(c).on(d,{direction:i?"vertical":"horizontal",immediate:!0},a(l)).on(h,r(l)).on(p,s(l)),l}var u=n(55),c=".shutter-zoom",d=u.start+c,h=u.move+c,p=u.end+c;e.exports={name:"shutter_zoom",init:function(){var e=this.option("shutterZoom")||{};e.enabled&&(this._shutterZoom=l({chart:this,renderer:this._renderer,rotated:this.option("rotated"),shutterOptions:e}))},dispose:function(){this._shutterZoom&&this._shutterZoom.dispose()}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return{x:e.left,y:e.top,width:e.width-e.left-e.right,height:e.height-e.top-e.bottom}}function a(e,t){var n=t.x,i=t.y;return n>=e.x&&n<=e.width+e.x&&i>=e.y&&i<=e.height+e.y}function r(e,t){return t&&(e=e.sort(function(e,n){return e===t?-1:n===t?1:0})),e}function s(e){return!e.getTranslator().getBusinessRange().isEmpty();
114}var l=n(1),u=n(0),c=n(10),d=n(128),h=n(285),p=i(h),f=n(55),g=i(f),_=".zoomAndPanNS",m=g.default.start+_,v=g.default.move+_,y=g.default.end+_,x=p.default.pinchstart+_,b=p.default.pinch+_,w=p.default.pinchend+_,C="dxc-scroll-start"+_,k="dxc-scroll-move"+_,S="dxc-scroll-end"+_,I=300,T=5,D=Math.min,E=Math.max,A=Math.abs;e.exports={name:"zoom_and_pan",init:function(){function e(t){t.originalEvent&&e(t.originalEvent);try{t.cancel=!0}catch(e){return}}function t(t,n,i){var o=t.options,a=t.actionData,r=[];o.argumentAxis[n]&&r.push(P.getArgumentAxis()),o.valueAxis[n]&&(r=r.concat(a.valueAxes)),r.reduce(function(e,t){return e?e:s(t)?t.handleZooming(null,{end:!0},i,n).isPrevented:e},!1)&&e(i)}function n(e,t,n,i,o){function a(e,n,o,a,r){var d={zoomed:!1};return n&&e.filter(s).forEach(function(e){var n=e.getOptions(),s=e.visualRange(),h=e.getTranslator().getEventScale(a),p=-i(a,r,o,h);d=(0,u.extend)(!0,d,e.getTranslator().zoom(p,h,e.getZoomBounds()));var f=e.adjustRange((0,c.getVizRangeObject)([d.min,d.max])),g=e.isZoomingLowerLimitOvercome(t,h,f);if((0,l.isDefined)(s)&&s.startValue.valueOf()===f.startValue.valueOf()&&s.endValue.valueOf()===f.endValue.valueOf()){if("touch"===a.pointerType&&"discrete"===n.type){var _=e.isExtremePosition(!1),m=e.isExtremePosition(!0),v=h>1&&!g,y=h<1&&(!_||!m),x=1===h&&!(_&&(p<0&&!n.inverted||p>0&&n.inverted)||m&&(p>0&&!n.inverted||p<0&&n.inverted));d.enabled=v||y||x}}else e.handleZooming(g?null:f,{start:!0,end:!0},a,t),g||(d.zoomed=!0,d.deltaTranslate=p-d.translate)}),d}function r(e,t,n,i){n.zoomed&&(t.offset[i]=(e.offset?e.offset[i]:t.offset[i])+n.deltaTranslate)}function d(e,t,n,i){n.zoomed&&(t.center[i]=e[i]+n.deltaTranslate)}var h=P.option("rotated"),p=e.actionData,f=e.options,g={},_={};p.fallback||(g=a(P._argumentAxes,f.argumentAxis[t],h?"y":"x",n,p),_=a(p.valueAxes,f.valueAxis[t],h?"x":"y",n,p),P._requestChange(["VISUAL_RANGE"]),r(n,p,g,h?"y":"x"),r(n,p,_,h?"x":"y"));var m=o(n);return d(m,p,g,h?"y":"x"),d(m,p,_,h?"x":"y"),g.zoomed||_.zoomed||(p.center=m),g.zoomed||_.zoomed||p.fallback||g.enabled||_.enabled}function i(e,t,n,i){function o(e,n,o,a,r,s){var l=!1;return n&&e.forEach(function(e){var n=s&&e!==s,u=a.scale||1,c=e.getTranslator().zoom(-i(a,r,o,u),u,e.getZoomBounds()),d={startValue:c.min,endValue:c.max},h=e.isZoomingLowerLimitOvercome(t,u,d);e.handleZooming(h?null:d,{start:!0,end:n},a,t),h?e.handleZoomEnd():l=!0}),l}var a=P.option("rotated"),r=e.actionData,l=e.options,u=!0;if(r.fallback)u&=o(P._argumentAxes,l.argumentAxis[t],a?"y":"x",n,r,P.getArgumentAxis()),u|=o(r.valueAxes,l.valueAxis[t],a?"x":"y",n,r);else{var c=[];l.argumentAxis[t]&&c.push(P.getArgumentAxis()),l.valueAxis[t]&&(c=c.concat(r.valueAxes)),c.filter(s).forEach(function(e){e.handleZooming(null,{start:!0},n,t)}),u=u&&c.length}u&&P._requestChange(["VISUAL_RANGE"])}function h(e,t){var n=P._argumentAxes.filter(function(t){return a(o(t.getCanvas()),e)});return{fallback:P._lastRenderingTime>I,cancel:!n.length||!(0,l.isDefined)(t),action:t,curAxisRect:n.length&&o(n[0].getCanvas()),valueAxes:n.length&&P._valueAxes.filter(function(t){return a(o(t.getCanvas()),e)}),offset:{x:0,y:0},center:e,startCenter:e}}function p(e,t){var n=M.getRootOffset();return{x:D(E(t.pageX-n.left,e.x),e.width+e.x),y:D(E(t.pageY-n.top,e.y),e.height+e.y)}}function f(e){var t=M.getRootOffset(),n=e.pointers[0].pageX,i=e.pointers[1].pageX,o=e.pointers[0].pageY,a=e.pointers[1].pageY;return{x:D(n,i)+A(i-n)/2-t.left,y:D(o,a)+A(a-o)/2-t.top}}function g(e){var t=M.getRootOffset();return{x:e.pageX-t.left,y:e.pageY-t.top}}function O(e,t,n){return e.offset[n]-t.offset[n]}function B(e){e.preventDefault(),e.stopPropagation(),P._stopCurrentHandling()}var P=this,M=this._renderer,R={dragStartHandler:function(e){var n=R.options,i="touch"===e.pointerType,o=n.argumentAxis.pan||n.valueAxis.pan,a=n.argumentAxis.zoom||n.valueAxis.zoom,r=(0,l.isDefined)(n.panKey)&&e[(0,c.normalizeEnum)(n.panKey)+"Key"],s=n.dragToZoom,u=void 0;if(i){if(n.allowTouchGestures&&o){var d=!R.panningVisualRangeEnabled()||R.skipEvent;u=d?null:"pan"}}else s&&o&&r?u="pan":!s&&o?u="pan":s&&a&&(u="zoom");var f=h(g(e),u);return f.cancel?(R.skipEvent=!1,void(e.cancel=!0)):(R.actionData=f,B(e),void("zoom"===u?(f.startCoords=p(f.curAxisRect,e),f.rect=M.rect(0,0,0,0).attr(n.dragBoxStyle).append(M.root)):t(R,"pan",e)))},dragHandler:function(t){var i=P.option("rotated"),o=R.options,a=R.actionData,r="touch"===t.pointerType;if(a&&(!r||R.panningVisualRangeEnabled()))if("zoom"===a.action){B(t);var s=a.curAxisRect,l=a.startCoords,u=p(s,t),c=o.argumentAxis.zoom,d=o.valueAxis.zoom,h={x:D(l.x,u.x),y:D(l.y,u.y),width:A(l.x-u.x),height:A(l.y-u.y)};c&&d||(!c&&!i||!d&&i?(h.x=s.x,h.width=s.width):(h.y=s.y,h.height=s.height)),a.rect.attr(h)}else if("pan"===a.action){var f=n(R,"pan",t,O,function(e){return e.offset});r?(R.defineTouchBehavior(!f,t),!f&&R.panningVisualRangeEnabled()&&(e(t),R.skipEvent=!0,R.actionData=null)):B(t)}},dragEndHandler:function(e){var t=P.option("rotated"),n=R.options,o=R.actionData,a="touch"===e.pointerType;if(o&&(!a||R.panningVisualRangeEnabled())){if((!a||!R.actionData.isNative)&&B(e),"zoom"===o.action){var s=function(t,n,i,a,s,l){t=r(t,l);var u=s[i],c=a[i],d=!1;return n&&A(u-c)>T&&t.some(function(t){var n=t.getTranslator();if(!n.getBusinessRange().isEmpty()){var i=l&&t!==l,a=[n.from(c),n.from(u)],r=t.isZoomingLowerLimitOvercome(o.action,n.getMinScale(!0),a),s=t.handleZooming(r?null:a,{start:!!i,end:!!i},e,o.action);return r?t.handleZoomEnd():d=!0,l&&s.isPrevented}}),d},l=p(o.curAxisRect,e),u=s(P._argumentAxes,n.argumentAxis.zoom,t?"y":"x",o.startCoords,l,P.getArgumentAxis()),c=s(o.valueAxes,n.valueAxis.zoom,t?"x":"y",o.startCoords,l);(c||u)&&P._requestChange(["VISUAL_RANGE"]),o.rect.dispose()}else"pan"===o.action&&i(R,"pan",e,O);R.actionData=null}},pinchStartHandler:function(n){B(n);var i=h(f(n),"zoom");return i.isNative=!R.panningVisualRangeEnabled(),i.cancel?void e(n):(R.actionData=i,void t(R,"zoom",n))},pinchHandler:function(e){if(R.actionData&&R.actionData.isNative&&e.deltaScale<=1&&(R.defineTouchBehavior(!0,e),R.actionData=null),R.actionData){var t=n(R,"zoom",e,function(e,t,n,i){return f(e)[n]-t.center[n]+(t.center[n]-t.center[n]*i)},f);R.defineTouchBehavior(!t,e)}},pinchEndHandler:function(e){R.actionData&&(!R.actionData.isNative&&B(e),i(R,"zoom",e,function(e,t,n,i){return t.center[n]-t.startCenter[n]+(t.startCenter[n]-t.startCenter[n]*i)}),R.actionData=null)},cleanup:function(){M.root.off(_),R.actionData&&R.actionData.rect&&R.actionData.rect.dispose(),R.actionData=null,M.root.css({"touch-action":"","-ms-touch-action":""})},setup:function(s){if(R.cleanup(),s.argumentAxis.pan||M.root.on(C,e),!s.argumentAxis.none||!s.valueAxis.none){R.options=s;var l=P.option("rotated");(s.argumentAxis.zoom||s.valueAxis.zoom)&&s.allowMouseWheel&&M.root.on(d.name+_,function(e){function t(t,n,i,o){t=r(t,o);var a=!1;return t.some(function(t){var r=t.getTranslator();if(!r.getBusinessRange().isEmpty()){var s=o&&t!==o,l=r.getMinScale(i>0),u=r.zoom(-(n-n*l),l,t.getZoomBounds()),c={startValue:u.min,endValue:u.max},d=t.isZoomingLowerLimitOvercome("zoom",l,c),h=t.handleZooming(d?null:c,{start:!!s,end:!!s},e,"zoom");return d?t.handleZoomEnd():a=!0,o&&h.isPrevented}}),!!a}var n=g(e),i=!1,u=void 0;if(s.valueAxis.zoom){if(u=P._valueAxes.filter(function(e){return a(o(e.getCanvas()),n)}),0===u.length){var c=P._valueAxes.reduce(function(e,t){return!e&&t.coordsIn(n.x,n.y)&&(e=t.getCanvas()),e},null);c&&(u=P._valueAxes.filter(function(e){return a(o(e.getCanvas()),{x:c.left,y:c.top})}))}i|=t(u,l?n.x:n.y,e.delta)}if(s.argumentAxis.zoom){var d=P._argumentAxes.some(function(e){return!(!a(o(e.getCanvas()),n)&&!e.coordsIn(n.x,n.y))});i|=d&&t(P._argumentAxes,l?n.y:n.x,e.delta,P.getArgumentAxis())}i&&(P._requestChange(["VISUAL_RANGE"]),R.panningVisualRangeEnabled(u)&&B(e))}),s.allowTouchGestures&&((s.argumentAxis.zoom||s.valueAxis.zoom)&&M.root.on(x,{immediate:!0},R.pinchStartHandler).on(b,R.pinchHandler).on(w,R.pinchEndHandler),R.setTouchAction(!1)),M.root.on(m,{immediate:!0},R.dragStartHandler).on(v,R.dragHandler).on(y,R.dragEndHandler),s.argumentAxis.pan&&M.root.on(C,function(e){R.actionData={valueAxes:[],offset:{x:0,y:0},center:{x:0,y:0}},B(e),t(R,"pan",e)}).on(k,function(e){B(e),n(R,"pan",e,O,function(e){return e.offset})}).on(S,function(e){B(e),i(R,"pan",e,O),R.actionData=null})}},defineTouchBehavior:function(e,t){R.setTouchAction(e),R.actionData&&(R.actionData.isNative=e),e||B(t)},setTouchAction:function(e){var t=R.options;if(t.allowTouchGestures){var n=e?"":"none";e||(t.argumentAxis.zoom||t.valueAxis.zoom||(n="pinch-zoom"),t.argumentAxis.pan||t.valueAxis.pan||(n="pan-x pan-y")),M.root.css({"touch-action":n,"-ms-touch-action":n})}},panningVisualRangeEnabled:function(e){if(e&&e.length)return e.some(function(e){return!e.isExtremePosition(!1)||!e.isExtremePosition(!0)});var t=P._valueAxes.some(function(e){return!e.isExtremePosition(!1)||!e.isExtremePosition(!0)}),n=P._argumentAxes.some(function(e){return!e.isExtremePosition(!1)||!e.isExtremePosition(!0)});return t||n}};this._zoomAndPan=R},members:{_setupZoomAndPan:function(){this._zoomAndPan.setup(this._themeManager.getOptions("zoomAndPan"))}},dispose:function(){this._zoomAndPan.cleanup()},customize:function(e){e.addChange({code:"ZOOM_AND_PAN",handler:function(){this._setupZoomAndPan()},isThemeDependent:!0,isOptionChange:!0,option:"zoomAndPan"})}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=x;return e.forEach(function(e){t|=e.fullState}),w[t]}function a(e){return(0,u.isNumeric)(e)?e>1?e=1:e<0&&(e=0):e=void 0,e}var r=n(120),s=n(10),l=n(0),u=n(1),c=n(3),d=n(109),h=i(d),p=n(9),f=i(p),g=n(264),_=n(4),m=n(412),v=i(m),y=["startAngle","innerRadius","segmentsDirection","type"],x=r.states.normalMark,b=5,w=[r.states.resetItem,r.states.applyHover,r.states.applySelected,r.states.applySelected],C=g.BaseChart.inherit({_themeSection:"pie",_layoutManagerOptions:function(){return(0,l.extend)(!0,{},this.callBase(),{piePercentage:a(this._themeManager.getOptions("diameter")),minPiePercentage:a(this._themeManager.getOptions("minDiameter"))})},_optionChangesMap:{diameter:"REINIT",minDiameter:"REINIT",sizeGroup:"REINIT"},_disposeCore:function(){k.remove(this),this.callBase()},_groupSeries:function(){var e=this.series;this._groupsData={groups:[{series:e,valueOptions:{valueType:"numeric"}}],argumentOptions:e[0]&&e[0].getOptions()}},getArgumentAxis:function(){return null},_getValueAxis:function(){var e=(new v.default.Translator1D).setCodomain(360,0);return{getTranslator:function(){return e},setBusinessRange:function(t){e.setDomain(t.min,t.max)}}},_populateBusinessRange:function(){this.series.map(function(e){var t=new h.default.Range;return t.addRange(e.getRangeData().val),e.getValueAxis().setBusinessRange(t),t})},_specialProcessSeries:function(){(0,c.each)(this.series,function(e,t){t.arrangePoints()})},_checkPaneName:function(){return!0},_processSingleSeries:function(e){this.callBase(e),e.arrangePoints()},_handleSeriesDataUpdated:function(){var e=0;this.series.forEach(function(t){e=Math.max(t.getPointsCount(),e)}),this.series.forEach(function(t){t.setMaxPointsCount(e)}),this.callBase()},_getLegendOptions:function(e){var t=this.callBase(e),n=t.legendData;return n.argument=e.argument,n.argumentIndex=e.argumentIndex,n.points=[e],t},_getLegendTargets:function(){var e=this,t={};(e.series||[]).forEach(function(e){e.getPoints().forEach(function(n){var i=n.argument.valueOf(),o=e.getPointsByArg(i).indexOf(n),a=i.valueOf().toString()+o;t[a]=t[a]||[];var r=t[a].push(n);n.index=t[a][r-2]?t[a][r-2].index:Object.keys(t).length-1,n.argumentIndex=o})});var n=[];return(0,c.each)(t,function(t,i){i.forEach(function(t,i){if(0===i)return void n.push(e._getLegendOptions(t));var o=n[n.length-1];o.legendData.points.push(t),o.visible||(o.visible=t.isVisible())})}),n},_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getLayoutSeries:function(e,t){var n,i=this,o=i._canvas,a=!1;return n=i.layoutManager.applyPieChartSeriesLayout(o,e,!0),e.forEach(function(e){e.correctPosition(n,o),a=e.drawLabelsWOPoints()||a}),a&&(n=i.layoutManager.applyPieChartSeriesLayout(o,e,t.hideLayoutLabels)),e.forEach(function(e){e.hideLabels()}),i._sizeGroupLayout={x:n.centerX,y:n.centerY,radius:n.radiusOuter,drawOptions:t},n},_getLayoutSeriesForEqualPies:function(e,t){var n=this._canvas,i=this.layoutManager.applyEqualPieChartLayout(e,t);return e.forEach(function(e){e.correctPosition(i,n),e.drawLabelsWOPoints()}),this.layoutManager.correctPieLabelRadius(e,i,n),i},_updateSeriesDimensions:function(e){var t,n,i,o=this,a=o._getVisibleSeries(),s=a.length,l=e.sizeGroupLayout;s&&(i=l?o._getLayoutSeriesForEqualPies(a,l):o._getLayoutSeries(a,e),n=(i.radiusOuter-i.radiusInner-r.pieSeriesSpacing*(s-1))/s,t=i.radiusInner,o._setCenter({x:i.centerX,y:i.centerY}),a.forEach(function(e){e.correctRadius({radiusInner:t,radiusOuter:t+n}),t+=n+r.pieSeriesSpacing}))},_renderSeries:function(e,t,n){return this._calculateSeriesLayout(e,t),!e.sizeGroupLayout&&this.getSizeGroup()?(k.queue(this),void this._clearCanvas()):void this._renderSeriesElements(e,t,n)},_getLegendCallBack:function(){var e=this,t=this._legend,n=this._getLegendTargets().map(function(e){return e.legendData});return function(i){n.forEach(function(n){var a=[],r=t.getActionCallback({index:n.id});e.series.forEach(function(e){var t=e.getPointsByKeys(n.argument,n.argumentIndex);a.push.apply(a,t)}),i&&i.argument===n.argument&&i.argumentIndex===n.argumentIndex&&a.push(i),r(o(a))})}},_locateLabels:function(e){var t=0,n=void 0,i=void 0;do n=this._resolveLabelOverlapping(e),i=this._adjustSeriesLabels("shift"===e);while((n||i)&&++t<b)},_adjustSeriesLabels:function(e){return this.series.reduce(function(t,n){return n.adjustLabels(e)||t},!1)},_prepareStackPoints:_.noop,_resetStackPoints:_.noop,_applyExtraSettings:_.noop,_resolveLabelOverlappingShift:function(){function e(e,t){return e.getVisiblePoints().reduce(function(e,t){var n=(0,s.normalizeAngle)(t.middleAngle);return(n<=90||n>=270?e.right:e.left).push(t),e},t||{left:[],right:[]})}function t(e,t){var n=!1;return a&&(e.left.reverse(),e.right.reverse()),n=g.overlapping.resolveLabelOverlappingInOneDirection(e.left,o._canvas,!1,t),g.overlapping.resolveLabelOverlappingInOneDirection(e.right,o._canvas,!1,t)||n}function n(e,t){return(0,s.getVerticallyShiftedAngularCoords)(e,-t,o._center)}function i(e,t){return{x:e.x,y:e.y-t}}var o=this,a="anticlockwise"===o.option("segmentsDirection"),r=o.series.reduce(function(e,t){return(e[t.getOptions().label.position]||e.outside).push(t),e},{inside:[],columns:[],outside:[]}),l=!1;return r.inside.length>0&&(l=t(r.inside.reduce(function(e,t){return t.getVisiblePoints().reduce(function(e,t){return e.left.push(t),e},e)},{left:[],right:[]}),i)||l),l=r.columns.reduce(function(n,o){return t(e(o),i)||n},l),r.outside.length>0&&(l=t(r.outside.reduce(function(t,n){return e(n,t)},null),n)||l),l},_setCenter:function(e){this._center=e},_disposeSeries:function(e){this.callBase.apply(this,arguments),this._abstractSeries=null},_legendDataField:"point",_legendItemTextField:"argument",_applyPointMarkersAutoHiding:_.noop,_renderTrackers:_.noop,_trackerType:"PieTracker",_createScrollBar:_.noop,_updateAxesLayout:_.noop,_applyClipRects:_.noop,_appendAdditionalSeriesGroups:_.noop,_prepareToRender:_.noop,_isLegendInside:_.noop,_renderAxes:_.noop,_shrinkAxes:_.noop,_isRotated:_.noop,_seriesPopulatedHandlerCore:_.noop,_reinitAxes:_.noop,_correctAxes:_.noop,_getExtraOptions:function(){var e=this;return{startAngle:e.option("startAngle"),innerRadius:e.option("innerRadius"),segmentsDirection:e.option("segmentsDirection"),type:e.option("type")}},getSizeGroup:function(){return this._themeManager.getOptions("sizeGroup")},getSizeGroupLayout:function(){return this._sizeGroupLayout||{}}});(0,c.each)(y,function(e,t){C.prototype._optionChangesMap[t]="REFRESH_SERIES_DATA_INIT"}),(0,f.default)("dxPieChart",C),e.exports=C;var k=function(){function e(e,t){var n=t.filter(function(t){return t._isVisible()&&t.getSizeGroup()===e}),i=Math.min.apply(null,n.map(function(e){return e.getSizeGroupLayout().radius})),o=n.filter(function(e){return e.getSizeGroupLayout().radius===i});n.forEach(function(e){return e.render({force:!0,sizeGroupLayout:o.length?o[0].getSizeGroupLayout():{}})})}function t(e,t){return e.filter(function(e){return e!==t})}function n(e,n){return t(e,n).concat(n)}var i=[],o={};return{queue:function(t){var a=t.getSizeGroup();i=n(i,t),clearTimeout(o[a]),o[a]=setTimeout(function(){e(a,i)})},remove:function(e){i=t(i,e),i.length||(o={})}}}()},function(e,t,n){var i=n(4).noop,o=n(9),a=n(0).extend,r=n(10),s=n(404).AdvancedChart,l="default",u=s.inherit({_themeSection:"polar",_createPanes:function(){return[{name:l}]},_checkPaneName:function(){return!0},_getAxisRenderingOptions:function(e){var t="argumentAxis"===e,n=t?"circular":"linear",i=this.option("useSpiderWeb");return i&&(n+="Spider"),{axisType:"polarAxes",drawingType:n}},_prepareAxisOptions:function(e,t){var n="argumentAxis"===e,i=this._themeManager,o=this.option("argumentAxis"),a=i.getOptions("argumentAxis",o)||{},s=isFinite(a.startAngle)?r.normalizeAngle(a.startAngle):0;return{type:this.option("useSpiderWeb")&&n?"discrete":t.type,isHorizontal:!0,showCustomBoundaryTicks:n,startAngle:s,endAngle:s+360}},_optionChangesMap:{useSpiderWeb:"AXES_AND_PANES"},_getExtraOptions:function(){return{spiderWidget:this.option("useSpiderWeb")}},_prepareToRender:function(){return this._appendAxesGroups(),{}},_renderAxes:function(e){var t=this,n=t._getValueAxis(),i=t.getArgumentAxis(),o=t._calcCanvas(i.measureLabels(a({},t._canvas),!0));i.draw(o),n.setSpiderTicks(i.getSpiderTicks()),n.draw(o)},_getValueAxis:function(){return this._valueAxes[0]},_shrinkAxes:function(e){var t=this._getValueAxis(),n=this.getArgumentAxis();e&&(e.width||e.height)&&(n.hideOuterElements(),n.updateSize(this._canvas),t.updateSize(this._canvas))},_calcCanvas:function(e){var t=a({},this._canvas);return t.left+=e.width,t.right+=e.width,t.top+=e.height,t.bottom+=e.height,t},_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getSeriesForPane:function(){return this.series},_applyExtraSettings:i,_applyPointMarkersAutoHiding:i,_createScrollBar:i,_applyClipRects:i,_isRotated:i,_getCrosshairOptions:i,_isLegendInside:i});o("dxPolarChart",u),e.exports=u},function(e,t,n){e.exports=n(795)},function(e,t,n){function i(e,t,n){var i,o=u({},e);return n=n||{},t&&(o.left+=n.left||0,o.right-=n.right||0,o.top+=n.top||0,o.bottom-=n.bottom||0,t.width>0&&(i=(o.right-o.left-t.width)/2,i>0&&(o.left+=i,o.right-=i)),t.height>0&&(i=(o.bottom-o.top-t.height)/2,i>0&&(o.top+=i,o.bottom-=i))),o}var o=n(3).each,a=Math.max,r=Math.min,s=Math.round,l=n(9),u=n(0).extend,c=n(48),d=n(146).dxBaseGauge,h=n(208).dxGauge,p=n(10).normalizeEnum,f=n(798),g=n(208).createIndicatorCreator,_=n(799),m=h.inherit({_rootClass:"dxg-linear-gauge",_factoryMethods:{rangeContainer:"createLinearRangeContainer",indicator:"createLinearIndicator"},_gridSpacingFactor:25,_scaleTypes:{type:"xyAxes",drawingType:"linear"},_getTicksOrientation:function(e){return e.isHorizontal?e.verticalOrientation:e.horizontalOrientation},_getThemeManagerOptions:function(){var e=this.callBase.apply(this,arguments);return e.subTheme="_linear",e},_updateScaleTickIndent:function(e){var t,n,i,o=e.label.indentFromTick,a=e.tick.length,r=this._scale.measureLabels(u({},this._canvas)),s=e.isHorizontal?r.height+r.y:0,l=o>0;e.isHorizontal?(t=l?{center:.5,top:0,bottom:1}:{center:.5,top:1,bottom:0},i=a*t[e.verticalOrientation],n=r.y):(t=l?{center:.5,left:0,right:1}:{center:.5,left:1,right:0},i=a*t[e.horizontalOrientation],n=-r.width),e.label.indentFromAxis=-o+(l?-i+n:i-s),this._scale.updateOptions(e)},_shiftScale:function(e,t){var n=this,i=u({},n._canvas),o=t.isHorizontal,a=n._scale;i[o?"left":"top"]=n._area[o?"startCoord":"endCoord"],i[o?"right":"bottom"]=i[o?"width":"height"]-n._area[o?"endCoord":"startCoord"],a.draw(i),a.shift({left:-e.x,top:-e.y})},_setupCodomain:function(){var e=this,t=e.option("geometry")||{},n="vertical"===p(t.orientation),i=-100,o=100;e._area={vertical:n,x:0,y:0,startCoord:i,endCoord:o},e._rangeContainer.vertical=n,e._translator.setCodomain(i,o)},_getScaleLayoutValue:function(){return this._area[this._area.vertical?"x":"y"]},_getTicksCoefficients:function(e){var t={inner:0,outer:1};return this._area.vertical?"left"===e.horizontalOrientation?(t.inner=1,t.outer=0):"center"===e.horizontalOrientation&&(t.inner=t.outer=.5):"top"===e.verticalOrientation?(t.inner=1,t.outer=0):"center"===e.verticalOrientation&&(t.inner=t.outer=.5),t},_correctScaleIndents:function(e,t,n){var i=this._area.vertical;t>=0?e.max+=t+n[i?"width":"height"]:e.min-=-t+n[i?"width":"height"],e.indent=n[i?"height":"width"]/2},_measureMainElements:function(e,t){var n=this,i=n._area.x,s=n._area.y,l=1e3,u=0,c=0,d=n._scale;return o(e.concat(d),function(e,n){var o=n.measure?n.measure({x:i+n.getOffset(),y:s+n.getOffset()}):t;void 0!==o.max&&(u=a(u,o.max)),void 0!==o.min&&(l=r(l,o.min)),o.indent>0&&(c=a(c,o.indent))}),{minBound:l,maxBound:u,indent:c}},_applyMainLayout:function(e,t){var n,o,a=this,r=a._measureMainElements(e,t),l=a._area;l.vertical?(n=i(a._innerRect,{width:r.maxBound-r.minBound}),o=(n.left+n.right)/2-(r.minBound+r.maxBound)/2,l.startCoord=n.bottom-r.indent,l.endCoord=n.top+r.indent,l.x=s(l.x+o)):(n=i(a._innerRect,{height:r.maxBound-r.minBound}),o=(n.top+n.bottom)/2-(r.minBound+r.maxBound)/2,l.startCoord=n.left+r.indent,l.endCoord=n.right-r.indent,l.y=s(l.y+o)),a._translator.setCodomain(l.startCoord,l.endCoord),a._innerRect=n},_getElementLayout:function(e){return{x:s(this._area.x+e),y:s(this._area.y+e)}},_getApproximateScreenRange:function(){var e=this,t=e._area,n=t.vertical?e._canvas.height:e._canvas.width;return n>t.totalSize&&(n=t.totalSize),n=.8*n},_getDefaultSize:function(){var e=this.option("geometry")||{};return"vertical"===e.orientation?{width:100,height:300}:{width:300,height:100}},_factory:c.clone(d.prototype._factory)}),v=m.prototype._factory.indicators={};m.prototype._factory.createIndicator=g(v),v._default=f._default,v.rectangle=f.rectangle,v.rhombus=f.rhombus,v.circle=f.circle,v.trianglemarker=f.trianglemarker,v.textcloud=f.textcloud,v.rangebar=f.rangebar,m.prototype._factory.RangeContainer=_,l("dxLinearGauge",m),e.exports=m},function(e,t,n){var i=n(0).extend,o=i,a=n(265).BaseThemeManager,r=a.inherit({ctor:function(e){this.callBase.apply(this,arguments),this._subTheme=e.subTheme},_initializeTheme:function(){var e,t=this;t._subTheme&&(e=o(!0,{},t._theme[t._subTheme],t._theme),o(!0,t._theme,e)),t.callBase.apply(t,arguments)}});e.exports={ThemeManager:r}},function(e,t,n){function i(e){var t=e.data.tracker;t._x=e.pageX,t._y=e.pageY,t._element.off(v).on(v,e.data),t._showTooltip(e)}function o(e){var t=e.data.tracker;t._x=e.pageX,t._y=e.pageY,t._showTooltip(e)}function a(e){var t=e.data.tracker;t._element.off(v),t._hideTooltip(g)}function r(e){e.data.tracker._hideTooltip()}function s(e){e.preventDefault();var t=b;t&&t!==e.data.tracker&&t._hideTooltip(g),t=b=e.data.tracker,t._showTooltip(e),t._touch=!0}function l(){var e=b;e&&(e._touch||(e._hideTooltip(g),b=null),e._touch=null)}function u(){var e=b;e&&(e._hideTooltip(g),b=null)}var c=n(5),d=n(15),h=n(11),p=n(47).add,f=n(128),g=100,_=d.inherit({ctor:function(e){var t=this;t._element=e.renderer.g().attr({"class":"dxg-tracker",stroke:"none","stroke-width":0,fill:"#000000",opacity:1e-4}).linkOn(e.container,{name:"tracker",after:"peripheral"}),t._showTooltipCallback=function(){var e=t._tooltipEvent.target,n=e["gauge-data-target"],i=e["gauge-data-info"];t._targetEvent=null,t._tooltipTarget!==e&&t._callbacks["tooltip-show"](n,i)&&(t._tooltipTarget=e)},t._hideTooltipCallback=function(){t._hideTooltipTimeout=null,t._targetEvent=null,t._tooltipTarget&&(t._callbacks["tooltip-hide"](),t._tooltipTarget=null)},t._dispose=function(){clearTimeout(t._hideTooltipTimeout),t._showTooltipCallback=t._hideTooltipCallback=t._dispose=null}},dispose:function(){var e=this;return e._dispose(),e.deactivate(),e._element.linkOff(),e._element=e._context=e._callbacks=null,e},activate:function(){return this._element.linkAppend(),this},deactivate:function(){return this._element.linkRemove().clear(),this},attach:function(e,t,n){return e.data({"gauge-data-target":t,"gauge-data-info":n}).append(this._element),this},detach:function(e){return e.remove(),this},setTooltipState:function(e){var t,n=this;return n._element.off(m).off(x).off(y),e&&(t={tracker:n},n._element.on(m,t).on(x,t).on(y,t)),n},setCallbacks:function(e){return this._callbacks=e,this},_showTooltip:function(e){var t=this;clearTimeout(t._hideTooltipTimeout),t._hideTooltipTimeout=null,t._tooltipTarget!==e.target&&(t._tooltipEvent=e,t._showTooltipCallback())},_hideTooltip:function(e){var t=this;clearTimeout(t._hideTooltipTimeout),e?t._hideTooltipTimeout=setTimeout(t._hideTooltipCallback,e):t._hideTooltipCallback()}}),m={"mouseover.gauge-tooltip":i,"mouseout.gauge-tooltip":a},v={"mousemove.gauge-tooltip":o},y={};y[f.name+".gauge-tooltip"]=r;var x={"touchstart.gauge-tooltip":s},b=null;p(function(){c.subscribeGlobal(h.getDocument(),{"touchstart.gauge-tooltip":l,"touchend.gauge-tooltip":u})}),e.exports=_},function(e,t,n){var i=n(275),o=i.BaseIndicator,a=i.BaseTextCloudMarker,r=i.BaseRangeBar,s=Number,l=n(10).normalizeEnum,u=o.inherit({_move:function(){var e=this,t=e._actualPosition-e._zeroPosition;e._rootElement.move(e.vertical?0:t,e.vertical?t:0),e._trackerElement&&e._trackerElement.move(e.vertical?0:t,e.vertical?t:0)},_isEnabled:function(){return this.vertical=this._options.vertical,this._options.length>0&&this._options.width>0},_isVisible:function(){return!0},_getTrackerSettings:function(){var e,t,n,i,o=this._options,a=o.width/2,r=o.length/2,s=this._zeroPosition;return a>10||(a=10),r>10||(r=10),this.vertical?(e=o.x-r,t=o.x+r,n=s+a,i=s-a):(e=s-a,t=s+a,n=o.y+r,i=o.y-r),{points:[e,n,e,i,t,i,t,n]}},_render:function(){var e=this;e._zeroPosition=e._translator.getCodomainStart()},_clear:function(){delete this._element},measure:function(e){var t=this.vertical?e.x:e.y;return{min:t-this._options.length/2,max:t+this._options.length/2}},getTooltipParameters:function(){var e=this,t=e._options,n=e._actualPosition,i={x:n,y:n,value:e._currentValue,color:t.color,offset:t.width/2};return e.vertical?i.x=t.x:i.y=t.y,i}}),c=u.inherit({_render:function(){var e,t,n,i,o,a=this,r=a._options;a.callBase(),e=a._zeroPosition,a.vertical?(t=r.x-r.length/2,n=r.x+r.length/2,i=e+r.width/2,o=e-r.width/2):(t=e-r.width/2,n=e+r.width/2,i=r.y+r.length/2,o=r.y-r.length/2),a._element=a._element||a._renderer.path([],"area").append(a._rootElement),a._element.attr({points:[t,i,t,o,n,o,n,i]})}}),d=u.inherit({_render:function(){var e,t,n,i,o=this,a=o._options;o.callBase(),o.vertical?(e=a.x,t=o._zeroPosition,n=a.length/2||0,i=a.width/2||0):(e=o._zeroPosition,t=a.y,n=a.width/2||0,i=a.length/2||0),o._element=o._element||o._renderer.path([],"area").append(o._rootElement),o._element.attr({points:[e-n,t,e,t-i,e+n,t,e,t+i]})}}),h=u.inherit({_render:function(){var e,t,n,i=this,o=i._options;i.callBase(),i.vertical?(e=o.x,t=i._zeroPosition):(e=i._zeroPosition,t=o.y),n=o.length/2||0,i._element=i._element||i._renderer.circle().append(i._rootElement),i._element.attr({cx:e,cy:t,r:n})}}),p=u.inherit({_isEnabled:function(){var e=this;return e.vertical=e._options.vertical,e._inverted=e.vertical?"right"===l(e._options.horizontalOrientation):"bottom"===l(e._options.verticalOrientation),e._options.length>0&&e._options.width>0},_isVisible:function(){return!0},_render:function(){var e,t,n,i,o=this,a=o._options,r={stroke:"none","stroke-width":0,"stroke-linecap":"square"};o.callBase(),o.vertical?(e=a.x,n=o._zeroPosition,t=e+s(o._inverted?a.length:-a.length),r.points=[e,n,t,n-a.width/2,t,n+a.width/2]):(n=a.y,e=o._zeroPosition,i=n+s(o._inverted?a.length:-a.length),r.points=[e,n,e-a.width/2,i,e+a.width/2,i]),a.space>0&&(r["stroke-width"]=Math.min(a.space,a.width/4)||0,r.stroke=r["stroke-width"]>0?a.containerBackgroundColor||"none":"none"),o._element=o._element||o._renderer.path([],"area").append(o._rootElement),o._element.attr(r).sharp()},_getTrackerSettings:function(){var e,t,n,i,o,a=this,r=a._options,l=r.width/2,u=s(r.length);return l>10||(l=10),u>20||(u=20),a.vertical?(e=t=r.x,t=e+(a._inverted?u:-u),n=a._zeroPosition+l,i=a._zeroPosition-l,o=[e,n,t,n,t,i,e,i]):(n=r.y,i=n+(a._inverted?u:-u),e=a._zeroPosition-l,t=a._zeroPosition+l,o=[e,n,e,i,t,i,t,n]),{points:o}},measure:function(e){var t,n,i=this,o=s(i._options.length);return i.vertical?(t=n=e.x,i._inverted?n=t+o:t=n-o):(t=n=e.y,i._inverted?n=t+o:t=n-o),{min:t,max:n,indent:i._options.width/2}},getTooltipParameters:function(){var e=this,t=e._options,n=(e._inverted?t.length:-t.length)/2,i=e.callBase();return e.vertical?i.x+=n:i.y+=n,i.offset=t.length/2,i}}),f=a.inherit({_isEnabled:function(){var e=this;return e.vertical=e._options.vertical,e._inverted=e.vertical?"right"===l(e._options.horizontalOrientation):"bottom"===l(e._options.verticalOrientation),!0},_isVisible:function(){return!0},_getTextCloudOptions:function(){var e,t=this,n=t._actualPosition,i=t._actualPosition;return t.vertical?(n=t._options.x,e=t._inverted?"top-left":"top-right"):(i=t._options.y,e=t._inverted?"right-top":"right-bottom"),{x:n,y:i,type:e}},measure:function(e){var t,n,i,o=this,a=s(o._options.arrowLength)||0;return o._measureText(),o.vertical?(i=o._textFullHeight,o._inverted?(t=e.x,n=e.x+a+o._textFullWidth):(t=e.x-a-o._textFullWidth,n=e.x)):(i=o._textFullWidth,o._inverted?(t=e.y,n=e.y+a+o._textFullHeight):(t=e.y-a-o._textFullHeight,n=e.y)),{min:t,max:n,indent:i}}}),g=r.inherit({_isEnabled:function(){var e=this;return e.vertical=e._options.vertical,e._inverted=e.vertical?"right"===l(e._options.horizontalOrientation):"bottom"===l(e._options.verticalOrientation),e._options.size>0},_isVisible:function(){return!0},_createBarItem:function(){return this._renderer.path([],"area").append(this._rootElement)},_createTracker:function(){return this._renderer.path([],"area")},_setBarSides:function(){var e,t,n=this,i=n._options,o=s(i.size);n.vertical?n._inverted?(e=i.x,t=i.x+o):(e=i.x-o,t=i.x):n._inverted?(e=i.y,t=i.y+o):(e=i.y-o,t=i.y),n._minSide=e,n._maxSide=t,n._minBound=e,n._maxBound=t},_getSpace:function(){var e=this._options;return e.space>0?s(e.space):0},_isTextVisible:function(){var e=this._options.text||{};return e.indent>0||e.indent<0},_getTextAlign:function(){return this.vertical?this._options.text.indent>0?"left":"right":"center"},_setTextItemsSides:function(){var e=this,t=s(e._options.text.indent);t>0?(e._lineStart=e._maxSide,e._lineEnd=e._maxSide+t,e._textPosition=e._lineEnd+(e.vertical?2:e._textHeight/2),e._maxBound=e._textPosition+(e.vertical?e._textWidth:e._textHeight/2)):t<0&&(e._lineStart=e._minSide,e._lineEnd=e._minSide+t,e._textPosition=e._lineEnd-(e.vertical?2:e._textHeight/2),e._minBound=e._textPosition-(e.vertical?e._textWidth:e._textHeight/2))},_getPositions:function(){var e,t,n,i,o=this,a=o._startPosition,r=o._endPosition,s=o._space,l=o._basePosition,u=o._actualPosition;return a<r?(l<u?(e=l,t=u):(e=u,t=l),n=e-s,i=t+s):(l>u?(e=l,t=u):(e=u,t=l),n=e+s,i=t-s),{start:a,end:r,main1:e,main2:t,back1:n,back2:i}},_buildItemSettings:function(e,t){var n=this,i=n._minSide,o=n._maxSide,a=n.vertical?[i,e,i,t,o,t,o,e]:[e,i,e,o,t,o,t,i];return{points:a}},_updateTextPosition:function(){var e=this;e._text.attr(e.vertical?{x:e._textPosition,y:e._actualPosition+e._textVerticalOffset}:{x:e._actualPosition,y:e._textPosition+e._textVerticalOffset})},_updateLinePosition:function(){var e,t,n,i=this,o=i._actualPosition;i.vertical?(i._basePosition>=o?(e=o,t=o+2):(e=o-2,t=o),n=[i._lineStart,e,i._lineStart,t,i._lineEnd,t,i._lineEnd,e]):(i._basePosition<=o?(e=o-2,t=o):(e=o,t=o+2),n=[e,i._lineStart,e,i._lineEnd,t,i._lineEnd,t,i._lineStart]),i._line.attr({points:n}).sharp()},_getTooltipPosition:function(){var e=this,t=(e._minSide+e._maxSide)/2,n=(e._basePosition+e._actualPosition)/2;return e.vertical?{x:t,y:n}:{x:n,y:t}},measure:function(e){var t,n,i,o=this,a=s(o._options.size),r=s(o._options.text.indent);
115return o._measureText(),o.vertical?(t=n=e.x,o._inverted?n+=a:t-=a,o._hasText&&(i=o._textHeight/2,r>0&&(n+=r+o._textWidth),r<0&&(t+=r-o._textWidth))):(t=n=e.y,o._inverted?n+=a:t-=a,o._hasText&&(i=o._textWidth/2,r>0&&(n+=r+o._textHeight),r<0&&(t+=r-o._textHeight))),{min:t,max:n,indent:i}}});t._default=g,t.rectangle=c,t.rhombus=d,t.circle=h,t.trianglemarker=p,t.textcloud=f,t.rangebar=g},function(e,t,n){var i=n(413),o=Number,a=Math.max,r=n(10).normalizeEnum,s=i.inherit({_processOptions:function(){var e=this;if(e.vertical=e._options.vertical,e._inner=e._outer=0,e.vertical)switch(r(e._options.horizontalOrientation)){case"left":e._inner=1;break;case"center":e._inner=e._outer=.5;break;default:e._outer=1}else switch(r(e._options.verticalOrientation)){case"top":e._inner=1;break;case"center":e._inner=e._outer=.5;break;default:e._outer=1}},_isVisible:function(){return!0},_createRange:function(e,t){var n,i=this,o=i._inner,a=i._outer,r=i._translator.translate(e.start),s=i._translator.translate(e.end),l=t.x,u=t.y,c=e.startWidth,d=e.endWidth;return n=i.vertical?[l-c*o,r,l-d*o,s,l+d*a,s,l+c*a,r]:[r,u+c*a,r,u-c*o,s,u-d*o,s,u+d*a],i._renderer.path(n,"area")},measure:function(e){var t,n={};return n.min=n.max=e[this.vertical?"x":"y"],t=this._options.width,t=o(t)||a(o(t.start),o(t.end)),n.min-=this._inner*t,n.max+=this._outer*t,n}});e.exports=s},function(e,t,n){e.exports=n(414)},function(e,t,n){var i=n(275),o=i.BaseIndicator,a=i.BaseTextCloudMarker,r=i.BaseRangeBar,s=n(10),l=Number,u=s.getCosAndSin,c=s.convertAngleToRendererSpace,d=o.inherit({_move:function(){var e=this,t=e._options,n=c(e._actualPosition);e._rootElement.rotate(n,t.x,t.y),e._trackerElement&&e._trackerElement.rotate(n,t.x,t.y)},_isEnabled:function(){return this._options.width>0},_isVisible:function(e){return e.radius-l(this._options.indentFromCenter)>0},_getTrackerSettings:function(){var e=this._options,t=this._getRadius(),n=this._getIndentFromCenter(),i=e.x,o=e.y-(t+n)/2,a=e.width/2,r=(t-n)/2;return a>10||(a=10),r>10||(r=10),{points:[i-a,o-r,i-a,o+r,i+a,o+r,i+a,o-r]}},_render:function(){var e=this;e._renderPointer()},_clearPointer:function(){delete this._element},_clear:function(){this._clearPointer()},_getIndentFromCenter:function(e){return Number(this._options.indentFromCenter)||0},_getRadius:function(){return 0},measure:function(e){var t={max:e.radius};return this._options.indentFromCenter<0&&(t.inverseHorizontalOffset=t.inverseVerticalOffset=-l(this._options.indentFromCenter)),t},getTooltipParameters:function(){var e=this._options,t=u(this._actualPosition),n=(this._getRadius()+this._getIndentFromCenter())/2;return{x:e.x+t.cos*n,y:e.y-t.sin*n,value:this._currentValue,color:e.color,offset:e.width/2}}}),h=d.inherit({_isVisible:function(e){var t=this._adjustOffset(Number(this._options.indentFromCenter),e.radius),n=this._adjustOffset(Number(this._options.offset),e.radius);return e.radius-t-n>0},getOffset:function(){return 0},_adjustOffset:function(e,t){var n=Number(this._options.beginAdaptingAtRadius),i=t/n;return i<1&&(e=Math.floor(e*i)),e||0},_getIndentFromCenter:function(e){return this._adjustOffset(Number(this._options.indentFromCenter),this._options.radius)},_getRadius:function(){var e=this._options;return e.radius-this._adjustOffset(Number(e.offset),e.radius)},_renderSpindle:function(){var e,t=this,n=t._options,i=n.radius,o=2*this._adjustOffset(l(n.spindleSize)/2,i);e=2*this._adjustOffset(l(n.spindleGapSize)/2,i)||0,e>0&&(e=e<=o?e:o),o>0&&(t._spindleOuter=t._spindleOuter||t._renderer.circle().append(t._rootElement),t._spindleInner=t._spindleInner||t._renderer.circle().append(t._rootElement),t._spindleOuter.attr({"class":"dxg-spindle-border",cx:n.x,cy:n.y,r:o/2}),t._spindleInner.attr({"class":"dxg-spindle-hole",cx:n.x,cy:n.y,r:e/2,fill:n.containerBackgroundColor}))},_render:function(){var e=this;e.callBase(),e._renderSpindle()},_clear:function(){this.callBase(),delete this._spindleOuter,delete this._spindleInner}}),p=h.inherit({_renderPointer:function(){var e=this,t=e._options,n=t.y-this._getRadius(),i=t.y-this._getIndentFromCenter(),o=t.x-t.width/2,a=o+l(t.width);e._element=e._element||e._renderer.path([],"area").append(e._rootElement),e._element.attr({points:[o,i,o,n,a,n,a,i]})}}),f=h.inherit({_renderPointer:function(){var e=this,t=e._options,n=t.y-this._getRadius(),i=t.y-this._getIndentFromCenter(),o=t.x-t.width/2,a=t.x+t.width/2;e._element=e._element||e._renderer.path([],"area").append(e._rootElement),e._element.attr({points:[o,i,t.x,n,a,i]})}}),g=h.inherit({_renderPointer:function(){var e,t,n=this,i=n._options,o=i.x-i.width/2,a=i.x+i.width/2,r=i.y-this._getRadius(),s=i.y-this._getIndentFromCenter(),u=l(i.secondFraction)||0;u>=1?e=t=s:u<=0?e=t=r:(t=r+(s-r)*u,e=t+l(i.space)),n._firstElement=n._firstElement||n._renderer.path([],"area").append(n._rootElement),n._spaceElement=n._spaceElement||n._renderer.path([],"area").append(n._rootElement),n._secondElement=n._secondElement||n._renderer.path([],"area").append(n._rootElement),n._firstElement.attr({points:[o,s,o,e,a,e,a,s]}),n._spaceElement.attr({points:[o,e,o,t,a,t,a,e],"class":"dxg-hole",fill:i.containerBackgroundColor}),n._secondElement.attr({points:[o,t,o,r,a,r,a,t],"class":"dxg-part",fill:i.secondColor})},_clearPointer:function(){delete this._firstElement,delete this._secondElement,delete this._spaceElement}}),_=d.inherit({_isEnabled:function(){return this._options.length>0&&this._options.width>0},_isVisible:function(e){return e.radius>0},_render:function(){var e,t=this,n=t._options,i=n.x,o=n.y-n.radius,a=n.width/2||0,r=o-l(n.length);t._element=t._element||t._renderer.path([],"area").append(t._rootElement),e={points:[i,o,i-a,r,i+a,r],stroke:"none","stroke-width":0,"stroke-linecap":"square"},n.space>0&&(e["stroke-width"]=Math.min(n.space,n.width/4)||0,e.stroke=e["stroke-width"]>0?n.containerBackgroundColor||"none":"none"),t._element.attr(e).sharp()},_clear:function(){delete this._element},_getTrackerSettings:function(){var e=this._options,t=e.x,n=e.y-e.radius-e.length/2,i=e.width/2,o=e.length/2;return i>10||(i=10),o>10||(o=10),{points:[t-i,n-o,t-i,n+o,t+i,n+o,t+i,n-o]}},measure:function(e){return{min:e.radius,max:e.radius+l(this._options.length)}},getTooltipParameters:function(){var e=this._options,t=u(this._actualPosition),n=e.radius+e.length/2,i=this.callBase();return i.x=e.x+t.cos*n,i.y=e.y-t.sin*n,i.offset=e.length/2,i}}),m=a.inherit({_isEnabled:function(){return!0},_isVisible:function(e){return e.radius>0},_getTextCloudOptions:function(){var e=this,t=u(e._actualPosition),n=s.normalizeAngle(e._actualPosition);return{x:e._options.x+t.cos*e._options.radius,y:e._options.y-t.sin*e._options.radius,type:n>270?"left-top":n>180?"top-right":n>90?"right-bottom":"bottom-left"}},measure:function(e){var t,n,i=this,o=l(i._options.arrowLength)||0;return i._measureText(),t=i._textFullHeight+o,n=i._textFullWidth+o,{min:e.radius,max:e.radius,horizontalOffset:n,verticalOffset:t,inverseHorizontalOffset:n,inverseVerticalOffset:t}}}),v=r.inherit({_isEnabled:function(){return this._options.size>0},_isVisible:function(e){return e.radius-l(this._options.size)>0},_createBarItem:function(){return this._renderer.arc().attr({"stroke-linejoin":"round"}).append(this._rootElement)},_createTracker:function(){return this._renderer.arc().attr({"stroke-linejoin":"round"})},_setBarSides:function(){var e=this;e._maxSide=e._options.radius,e._minSide=e._maxSide-l(e._options.size)},_getSpace:function(){var e=this._options;return e.space>0?180*e.space/e.radius/Math.PI:0},_isTextVisible:function(){var e=this._options.text||{};return e.indent>0},_setTextItemsSides:function(){var e=this,t=e._options,n=l(t.text.indent);e._lineFrom=t.y-t.radius,e._lineTo=e._lineFrom-n,e._textRadius=t.radius+n},_getPositions:function(){var e,t,n=this,i=n._basePosition,o=n._actualPosition;return i>=o?(e=i,t=o):(e=o,t=i),{start:n._startPosition,end:n._endPosition,main1:e,main2:t,back1:Math.min(e+n._space,n._startPosition),back2:Math.max(t-n._space,n._endPosition)}},_buildItemSettings:function(e,t){var n=this;return{x:n._options.x,y:n._options.y,innerRadius:n._minSide,outerRadius:n._maxSide,startAngle:t,endAngle:e}},_updateTextPosition:function(){var e=this,t=u(e._actualPosition),n=e._options.x+e._textRadius*t.cos,i=e._options.y-e._textRadius*t.sin;n+=t.cos*e._textWidth*.6,i-=t.sin*e._textHeight*.6,e._text.attr({x:n,y:i+e._textVerticalOffset})},_updateLinePosition:function(){var e,t,n=this,i=n._options.x;n._basePosition>n._actualPosition?(e=i-2,t=i):n._basePosition<n._actualPosition?(e=i,t=i+2):(e=i-1,t=i+1),n._line.attr({points:[e,n._lineFrom,e,n._lineTo,t,n._lineTo,t,n._lineFrom]}).rotate(c(n._actualPosition),i,n._options.y).sharp()},_getTooltipPosition:function(){var e=this,t=u((e._basePosition+e._actualPosition)/2),n=(e._minSide+e._maxSide)/2;return{x:e._options.x+t.cos*n,y:e._options.y-t.sin*n}},measure:function(e){var t=this,n={min:e.radius-l(t._options.size),max:e.radius};return t._measureText(),t._hasText&&(n.max+=l(t._options.text.indent),n.horizontalOffset=t._textWidth,n.verticalOffset=t._textHeight),n}});t._default=p,t.rectangleneedle=p,t.triangleneedle=f,t.twocolorneedle=g,t.trianglemarker=_,t.textcloud=m,t.rangebar=v},function(e,t,n){var i=n(413),o=Number,a=Math.max,r=n(10).normalizeEnum,s=i.inherit({_processOptions:function(){var e=this;switch(e._inner=e._outer=0,r(e._options.orientation)){case"inside":e._inner=1;break;case"center":e._inner=e._outer=.5;break;default:e._outer=1}},_isVisible:function(e){var t=this._options.width;return t=o(t)||a(o(t.start),o(t.end)),e.radius-this._inner*t>0},_createRange:function(e,t){var n=this,i=(e.startWidth+e.endWidth)/2;return n._renderer.arc(t.x,t.y,t.radius-n._inner*i,t.radius+n._outer*i,n._translator.translate(e.end),n._translator.translate(e.start)).attr({"stroke-linejoin":"round"})},measure:function(e){var t=this._options.width;return t=o(t)||a(o(t.start),o(t.end)),{min:e.radius-this._inner*t,max:e.radius+this._outer*t}}});e.exports=s},function(e,t,n){e.exports=n(804).dxBarGauge},function(e,t,n){function i(e,t,n){e.startAngle=t<n?t:n,e.endAngle=t<n?n:t}function o(e,t){return r(e-t)<1e-4}var a=Math.PI/180,r=Math.abs,s=Math.round,l=Math.floor,u=Math.min,c=Math.max,d=n(9),h=n(48),p=n(4),f=n(0).extend,g=n(10).normalizeEnum,_=n(146),m=_.dxBaseGauge,v=_.getSampleText,y=_.formatValue,x=_.compareArrays,b=n(414),w=Array.isArray,C=n(10),k=C.convertAngleToRendererSpace,S=C.getCosAndSin,I=C.patchFontOptions,T=Number,D=isFinite,E=p.noop,A=f,O="values",B=m.inherit({_rootClass:"dxbg-bar-gauge",_themeSection:"barGauge",_fontFields:["label.font","legend.font","legend.title.font","legend.title.subtitle.font"],_initCore:function(){var e=this;e.callBase.apply(e,arguments),e._barsGroup=e._renderer.g().attr({"class":"dxbg-bars"}).linkOn(e._renderer.root,"bars"),e._values=[],e._context={renderer:e._renderer,translator:e._translator,tracker:e._tracker,group:e._barsGroup},e._animateStep=function(t){var n,i,o=e._bars;for(n=0,i=o.length;n<i;++n)o[n].animate(t)},e._animateComplete=function(){e._bars.forEach(function(e){return e.endAnimation()}),e._checkOverlap()}},_disposeCore:function(){var e=this;e._barsGroup.linkOff(),e._barsGroup=e._values=e._context=e._animateStep=e._animateComplete=null,e.callBase.apply(e,arguments)},_setupDomainCore:function(){var e=this,t=e.option("startValue"),n=e.option("endValue");D(t)||(t=0),D(n)||(n=100),e._translator.setDomain(t,n),e._baseValue=e._translator.adjust(e.option("baseValue")),D(e._baseValue)||(e._baseValue=t<n?t:n)},_getDefaultSize:function(){return{width:300,height:300}},_setupCodomain:b.prototype._setupCodomain,_getApproximateScreenRange:function(){var e=this,t=e._area.sides,n=e._canvas.width/(t.right-t.left),i=e._canvas.height/(t.down-t.up),o=n<i?n:i;return-e._translator.getCodomainRange()*o*a},_setupAnimationSettings:function(){var e=this;e.callBase.apply(e,arguments),e._animationSettings&&(e._animationSettings.step=e._animateStep,e._animationSettings.complete=e._animateComplete)},_cleanContent:function(){var e=this;e._barsGroup.linkRemove(),e._animationSettings&&e._barsGroup.stopAnimation(),e._barsGroup.clear()},_renderContent:function(){var e,t,n=this,i=n.option("label"),o=n._context;n._barsGroup.linkAppend(),o.textEnabled=void 0===i||i&&(!("visible"in i)||i.visible),o.textEnabled&&(o.textColor=i&&i.font&&i.font.color||null,i=A(!0,{},n._themeManager.theme().label,i),o.formatOptions={format:void 0!==i.format?i.format:n._defaultFormatOptions,customizeText:i.customizeText},o.textOptions={align:"center"},o.fontStyles=I(A({},n._themeManager.theme().label.font,i.font,{color:null})),n._textIndent=i.indent>0?T(i.indent):0,o.lineWidth=i.connectorWidth>0?T(i.connectorWidth):0,o.lineColor=i.connectorColor||null,e=n._renderer.text(v(n._translator,o.formatOptions),0,0).attr(o.textOptions).css(o.fontStyles).append(n._barsGroup),t=e.getBBox(),e.remove(),o.textY=t.y,o.textWidth=t.width,o.textHeight=t.height),b.prototype._applyMainLayout.call(n),n._renderBars()},_measureMainElements:function(){var e={maxRadius:this._area.radius};return this._context.textEnabled&&(e.horizontalMargin=this._context.textWidth,e.verticalMargin=this._context.textHeight,e.inverseHorizontalMargin=this._context.textWidth/2,e.inverseVerticalMargin=this._context.textHeight/2),e},_renderBars:function(){var e,t,n=this,i=A({},n._themeManager.theme(),n.option()),o=n._area;e=i.relativeInnerRadius>0&&i.relativeInnerRadius<1?T(i.relativeInnerRadius):.1,t=o.radius,n._context.textEnabled&&(n._textIndent=s(u(n._textIndent,t/2)),t-=n._textIndent),n._outerRadius=l(t),n._innerRadius=l(t*e),n._barSpacing=i.barSpacing>0?T(i.barSpacing):0,A(n._context,{backgroundColor:i.backgroundColor,x:o.x,y:o.y,startAngle:o.startCoord,endAngle:o.endCoord,baseAngle:n._translator.translate(n._baseValue)}),n._arrangeBars()},_arrangeBars:function(){var e,t,n,i,o=this,a=o._outerRadius-o._innerRadius,r=o._context,s=o._bars.length;o._beginValueChanging(),r.barSize=s>0?c((a-(s-1)*o._barSpacing)/s,1):0,e=s>1?c(u((a-s*r.barSize)/(s-1),o._barSpacing),0):0;var d=u(l((a+e)/r.barSize),s);for(o._setBarsCount(s),a=o._outerRadius,r.textRadius=a,r.textIndent=o._textIndent,o._palette.reset(),n=r.barSize+e,t=o._palette.generateColors(d),i=0;i<d;++i,a-=n)o._bars[i].arrange({radius:a,color:t[i]});for(var h=d;h<s;h++)o._bars[h].hide();o._animationSettings&&!o._noAnimation?o._animateBars():o._updateBars(),o._endValueChanging()},_setBarsCount:function(){var e=this;e._bars.length>0?e._dummyBackground&&(e._dummyBackground.dispose(),e._dummyBackground=null):(e._dummyBackground||(e._dummyBackground=e._renderer.arc().attr({"stroke-linejoin":"round"})),e._dummyBackground.attr({x:e._context.x,y:e._context.y,outerRadius:e._outerRadius,innerRadius:e._innerRadius,startAngle:e._context.endAngle,endAngle:e._context.startAngle,fill:e._context.backgroundColor}).append(e._barsGroup))},_updateBars:function(){this._bars.forEach(function(e){return e.applyValue()}),this._checkOverlap()},_checkOverlap:function(){var e=this,t=e._bars,n=g(e._getOption("resolveLabelOverlapping",!0));if("none"!==n)for(var i=t.concat().sort(function(e,t){return e.getValue()-t.getValue()}),o=0,a=1;o<i.length&&a<i.length;){var r=i[o],s=i[a];r.checkIntersect(s)?(s.hideLabel(),a++):(o=a,a=o+1)}},_animateBars:function(){var e,t=this,n=t._bars.length;if(n>0){for(e=0;e<n;++e)t._bars[e].beginAnimation();t._barsGroup.animate({_:0},t._animationSettings)}},_buildNodes:function(){var e=this,t=e._options;e._palette=e._themeManager.createPalette(t.palette,{useHighlight:!0,extensionMode:t.paletteExtensionMode}),e._palette.reset(),e._bars=e._bars||[],e._animationSettings&&e._barsGroup.stopAnimation();var n=e._values.filter(D),i=n.length;if(e._bars.length>i){for(var o=e._bars.length,a=i;a<o;++a)e._bars[a].dispose();e._bars.splice(i,o-i)}else if(e._bars.length<i)for(var r=e._bars.length;r<i;++r)e._bars.push(new P(r,e._context));e._bars.forEach(function(t,o){t.update({color:e._palette.getNextColor(i),value:n[o]})})},_updateValues:function(e){var t,n,i=this,o=w(e)&&e||D(e)&&[e]||[],a=o.length;for(i._values.length=a,t=0;t<a;++t)n=o[t],i._values[t]=n=T(D(n)?n:i._values[t]);i._resizing||x(i._values,i.option(O))||i.option(O,i._values.slice()),this._change(["NODES"])},values:function(e){return void 0!==e?(this._updateValues(e),this):this._values.slice(0)},_optionChangesMap:{backgroundColor:"MOSTLY_TOTAL",relativeInnerRadius:"MOSTLY_TOTAL",barSpacing:"MOSTLY_TOTAL",label:"MOSTLY_TOTAL",resolveLabelOverlapping:"MOSTLY_TOTAL",palette:"MOSTLY_TOTAL",paletteExtensionMode:"MOSTLY_TOTAL",values:"VALUES"},_change_VALUES:function(){this._updateValues(this.option(O))},_factory:h.clone(m.prototype._factory),_optionChangesOrder:["VALUES","NODES"],_initialChanges:["VALUES"],_change_NODES:function(){this._buildNodes()},_change_MOSTLY_TOTAL:function(){this._change(["NODES"]),this.callBase()},_proxyData:[],_getLegendData:function(){var e=this,t={},n=e._options,i=(n.label||{}).format,o=(n.legend||{}).itemTextFormat;return o?t.format=o:t.format=i||e._defaultFormatOptions,(this._bars||[]).map(function(e){return{id:e.index,item:{value:e.getValue(),color:e.getColor(),index:e.index},text:y(e.getValue(),t),visible:!0,states:{normal:{fill:e.getColor()}}}})}}),P=function(e,t){var n=this;n._context=t,n._tracker=t.renderer.arc().attr({"stroke-linejoin":"round"}),n.index=e};A(P.prototype,{dispose:function(){var e=this;return e._background.dispose(),e._bar.dispose(),e._context.textEnabled&&(e._line.dispose(),e._text.dispose()),e._context.tracker.detach(e._tracker),e._context=e._settings=e._background=e._bar=e._line=e._text=e._tracker=null,e},arrange:function(e){var t=this,n=t._context;return this._visible=!0,n.tracker.attach(t._tracker,t,{index:t.index}),t._background=n.renderer.arc().attr({"stroke-linejoin":"round",fill:n.backgroundColor}).append(n.group),t._settings=t._settings||{x:n.x,y:n.y,startAngle:n.baseAngle,endAngle:n.baseAngle},t._bar=n.renderer.arc().attr(A({"stroke-linejoin":"round"},t._settings)).append(n.group),n.textEnabled&&(t._line=n.renderer.path([],"line").attr({"stroke-width":n.lineWidth}).append(n.group),t._text=n.renderer.text().css(n.fontStyles).attr(n.textOptions).append(n.group)),t._angle=isFinite(t._angle)?t._angle:n.baseAngle,t._settings.outerRadius=e.radius,t._settings.innerRadius=e.radius-n.barSize,t._settings.x=n.x,t._settings.y=n.y,t._background.attr(A({},t._settings,{startAngle:n.endAngle,endAngle:n.startAngle,fill:t._context.backgroundColor})),t._bar.attr({x:n.x,y:n.y,outerRadius:t._settings.outerRadius,innerRadius:t._settings.innerRadius,fill:t._color}),t._tracker.attr(t._settings),n.textEnabled&&(t._line.attr({points:[n.x,n.y-t._settings.innerRadius,n.x,n.y-n.textRadius-n.textIndent],stroke:n.lineColor||t._color}).sharp(),t._text.css({fill:n.textColor||t._color})),t},getTooltipParameters:function(){var e=this,t=S((e._angle+e._context.baseAngle)/2);return{x:s(e._context.x+(e._settings.outerRadius+e._settings.innerRadius)/2*t.cos),y:s(e._context.y-(e._settings.outerRadius+e._settings.innerRadius)/2*t.sin),offset:0,color:e._color,value:e._value}},setAngle:function(e){var t,n=this,o=n._context,a=n._settings;if(n._angle=e,i(a,o.baseAngle,e),n._bar.attr(a),n._tracker.attr(a),o.textEnabled){t=S(e);var s=o.textIndent,l=o.textRadius+s,u=o.x+l*t.cos,c=o.y-l*t.sin,d=.5*o.textWidth,h=o.textHeight,p=o.textY;r(u-o.x)>s&&(u+=u<o.x?-d:d),c-=r(c-o.y)<=s?p+.5*h:c<o.y?p+h:p;var f=y(n._value,o.formatOptions,{index:n.index}),g=""===f?"hidden":null;n._text.attr({text:f,x:u,y:c,visibility:g}),n._line.attr({visibility:g}),n._line.rotate(k(e),o.x,o.y)}return n},hideLabel:function(){this._text.attr({visibility:"hidden"}),this._line.attr({visibility:"hidden"})},checkIntersect:function(e){var t=this.calculateLabelCoords(),n=e.calculateLabelCoords();if(!t||!n)return!1;var i=Math.max(0,Math.min(t.bottomRight.x,n.bottomRight.x)-Math.max(t.topLeft.x,n.topLeft.x)),o=Math.max(0,Math.min(t.bottomRight.y,n.bottomRight.y)-Math.max(t.topLeft.y,n.topLeft.y));return i*o!==0},calculateLabelCoords:function(){if(this._text){var e=this._text.getBBox();return{topLeft:{x:e.x,y:e.y},bottomRight:{x:e.x+e.width,y:e.y+e.height}}}},_processValue:function(e){return this._context.translator.translate(this._context.translator.adjust(e))},applyValue:function(){return this._visible?this.setAngle(this._processValue(this.getValue())):this},update:function(e){var t=e.color,n=e.value;this._color=t,this._value=n},hide:function(){this._visible=!1},getColor:function(){return this._color},getValue:function(){return this._value},beginAnimation:function(){if(!this._visible)return this;var e=this,t=this._processValue(this.getValue());o(e._angle,t)?(e.animate=E,e.setAngle(e._angle)):(e._start=e._angle,e._delta=t-e._angle,e._tracker.attr({visibility:"hidden"}),e._context.textEnabled&&(e._line.attr({visibility:"hidden"}),e._text.attr({visibility:"hidden"})))},animate:function(e){if(!this._visible)return this;var t=this;t._angle=t._start+t._delta*e,i(t._settings,t._context.baseAngle,t._angle),t._bar.attr(t._settings)},endAnimation:function(){var e=this;void 0!==e._delta?o(e._angle,e._start+e._delta)&&(e._tracker.attr({visibility:null}),e.setAngle(e._angle)):delete e.animate,delete e._start,delete e._delta}}),d("dxBarGauge",B),t.dxBarGauge=B,B.addPlugin(n(205).plugin)},function(e,t,n){e.exports=n(806)},function(e,t,n){function i(e,t,n){var i=void 0===t?j.consts.emptySliderMarkerText:j.formatValue(t,n),o=m(e,i,n.font);return ie(o.height)+2*n.paddingTopBottom+j.consts.pointerSize}function o(e,t,n,i){var o=j.formatValue(t,n.label,i,n.valueType,n.type,n.logarithmBase),a=m(e,o,n.label.font);return ie(a.width/2)}function a(e,t,n,a,r){var s,l,u,c,d,h,p,f=0,g=0,_="semidiscrete"===t.type?t.customTicks:r.ticks;return a=a||{},u=a.left,c=a.right,d=n.placeholderHeight,n.visible&&(s=i(e,t.startValue,n),l=i(e,t.endValue,n),void 0===d&&(d=ne(s,l))),t.label.visible&&(h=J(t.startValue)?_[0]:void 0,p=J(t.endValue)?_[_.length-1]:void 0,f=o(e,h,t,r),g=o(e,p,t,r)),u=void 0!==u?u:f,c=(void 0!==c?c:g)||1,{left:u,right:c,top:d||0,bottom:0}}function r(e,t){var n=A.type(e),i=A.type(t),o=function(e){return n===e||i===e};return o("date")?se:o("number")?"numeric":o(de)?de:""}function s(e){return e.valueType===se&&e.marker.visible}function l(e,t){var n=t.minorTickInterval||t.tickInterval;"datetime"===t.valueType&&(n=M.dateToMilliseconds(n)),e.addRange({interval:n})}function u(e,t,n){var i;e&&(i=e.logarithmBase,e.type===_e&&i<=0||i&&!ee(i)?(e.logarithmBase=t,n("E2104")):e.type!==_e&&(e.logarithmBase=void 0))}function c(e,t,n,i){var o=t.label,a=t.marker,r=t.placeholderHeight,s="semidiscrete"===t.type?t.customTicks:i.ticks,l=j.formatValue(s[0],o);return r?r:(o.visible?o.topIndent+m(e,l,o.font).height:0)+(n?a.topIndent+a.separatorHeight:0)}function d(e,t,n){var i=M.getDateUnitInterval(t),o=M.getDateUnitInterval(e),a=M.dateUnitIntervals.indexOf(i);return n&&i===o&&a>0&&(i=M.dateUnitIntervals[a-1]),i}function h(e,t,n){return e?n?e=M.getNextDateUnit(e):e+=t:e=t,e}function p(e,t,n,i){var o,a,r,s=e.minorTickInterval,l=e.tickInterval,u="datetime"===e.valueType,c=e.axisDivisionFactor||{};if(!l)do{if(o=h(l,s,u),l===o)break;l=o,u&&(o=F(l)),a=ie((n-t)/o),r=oe(i/(c[l]||be))||1}while(o&&a>r);return{tickInterval:l,minorTickInterval:s,bounds:{minVisible:t,maxVisible:n},ticks:[]}}function f(e,t,n,i){var o,a,r,s=J(i.minVisible)?i.minVisible:i.min,l=J(i.maxVisible)?i.maxVisible:i.max,u=e._categoriesInfo,c={};return e.type===ce?o=p(e,s,l,t):(a=X.tickGenerator({axisType:e.type,dataType:e.valueType,logBase:e.logarithmBase,axisDivisionFactor:e.axisDivisionFactor,minorAxisDivisionFactor:e.minorAxisDivisionFactor,calculateMinors:!0,allowDecimals:e.allowDecimals,endOnTick:e.endOnTick,incidentOccurred:n,rangeIsEmpty:i.isEmpty()})({min:s,max:l,categories:J(u)?u.categories:[]},t,e.tickInterval,e.forceUserTickInterval,void 0,e.minorTickInterval,e.minorTickCount),r=a.ticks.length,c.minVisible=a.ticks[0]<s?a.ticks[0]:s,c.maxVisible=a.ticks[r-1]>l?a.ticks[r-1]:l,o={tickInterval:a.tickInterval,minorTickInterval:0===e.minorTickInterval?0:a.minorTickInterval,bounds:c,ticks:a.ticks}),o}function g(e,t){var n,i,o,a,r,s=!1,l=t.startValue,u=t.endValue,c=e?e.getBoundRange().arg:new H.Range,d="datetime"===t.valueType,h=t.minRange;return t.type===ue&&(r=new H.Range({minVisible:l,maxVisible:u}),r.addRange(c),c=r,o=e?e.argCategories:t.categories||!e&&l&&u&&[l,u],o=o||[],t._categoriesInfo=a=P.getCategoriesInfo(o,l,u)),t.type===ce&&(l=t.startValue=b(t.startValue,d,h),u=t.endValue=b(t.endValue,d,h),c.minVisible=b(c.minVisible,d,h),c.maxVisible=b(c.maxVisible,d,h),c.min=b(c.min,d,h),c.max=b(c.max,d,h)),J(l)&&J(u)?(s=a?a.inverted:l>u,n=a?a.start:s?u:l,i=a?a.end:s?l:u):J(l)||J(u)?(n=l,i=u):a&&(n=a.start,i=a.end),c.addRange({invert:s,min:n,max:i,minVisible:n,maxVisible:i,dataType:t.valueType}),c.addRange({categories:e?void 0:o,base:t.logarithmBase,axisType:t.type,dataType:t.valueType}),e&&c.sortCategories(o),c}function _(e,t){return!J(e)||!J(t)}function m(e,t,n){var i=e.text(t,xe,xe).css(N(n)).append(e.root),o=i.getBBox();return i.remove(),o}function v(e){return function(t,n,i,o,a){return n&&t&&(!J(a)||a.years||a.months>=6||e/be<ie((o-i)/F("year"))+1)&&(n=!1),n}}function y(e,t,n,i,o){var a,r,s,l=e._categoriesInfo,u=e.valueType===se;!t||t.isEmpty()||n.isEmpty()||(a=i.bounds,n.addRange(a),e.startValue=n.invert?a.maxVisible:a.minVisible,e.endValue=n.invert?a.minVisible:a.maxVisible),e.marker.visible=o(u&&e.type.indexOf(ue)===-1,e.marker.visible,e.startValue,e.endValue,i.tickInterval),l&&(e.startValue=l.start,e.endValue=l.end),e.type.indexOf(ue)===-1&&(r=te(e.startValue)&&te(e.endValue)&&e.startValue.getTime()===e.endValue.getTime()||e.startValue===e.endValue),e.isEmpty=_(e.startValue,e.endValue)||r,e.isEmpty?e.startValue=e.endValue=void 0:(e.minorTickInterval=i.minorTickInterval,e.tickInterval=i.tickInterval,u&&(!J(e.label.format)||e.type===ce&&e.minorTickInterval!==e.tickInterval)&&(e.type===ue?e.label.format=G.getDateFormatByTicks(i.ticks):e.marker.visible?e.label.format=M.getDateFormatByTickInterval(e.tickInterval):e.label.format=G.getDateFormatByTickInterval(e.startValue,e.endValue,e.tickInterval))),e.type===ce&&(s=w(e),e.customMinorTicks=s.altIntervals,e.customTicks=s.intervals,e.customBoundTicks=[e.customTicks[0]])}function x(e,t,n,i){var o,a=0,s=$.correctValueType(W(e.valueType)),l=function(t,i){var o=t===ae?"start":"end";J(e[t])&&(a=i(e[t]),J(a)?e[t]=a:(e[t]=void 0,n("E2202",[o])))};return s=t||s,s||(s=r(e.startValue,e.endValue)||"numeric"),(s===de||e.categories)&&(e.type=ue,s=de),e.containerColor=i,e.valueType=s,e.dataType=s,o=$.getParser(s),l(ae,o),l(re,o),u(e,ke,n),e.type||(e.type="continuous"),e.parser=o,e.type===ce&&(e.minorTick.visible=!1,e.minorTickInterval=e.minRange,e.marker.visible=!1,e.maxRange=void 0),e.forceUserTickInterval|=J(e.tickInterval)&&!J(e.axisDivisionFactor),e.axisDivisionFactor=J(e.axisDivisionFactor)?e.axisDivisionFactor:we,e.minorAxisDivisionFactor=J(e.minorAxisDivisionFactor)?e.minorAxisDivisionFactor:Ce,e}function b(e,t,n){return J(e)&&(e=t?M.correctDateWithUnitBeginning(new Date(e),n):R(oe(R(e/n))*n)),e}function w(e){var t=e.startValue,n=e.endValue,i="datetime"===e.valueType,o=e.tickInterval,a={intervals:[]};return J(t)&&J(n)?(a.intervals=L(t,n,e.minorTickInterval),o!==e.minorTickInterval&&(a.altIntervals=a.intervals,t=b(t,i,o),n=b(n,i,o),a.intervals=L(t,n,o),a.intervals[0]=a.altIntervals[0]),a):a}function C(e,t,n){var i=Math.abs(t-e)/n,o=i-Math.floor(i);return o>0?Math.ceil(Math.abs(R(P.getLog(o,10)))):0}function k(e,t,n,i){return e.marker.label.font=e.label.font,e.color=e.marker.color=e.tick.color,e.opacity=e.marker.opacity=e.tick.opacity,e.width=e.marker.width=e.tick.width,e.placeholderSize=(e.placeholderHeight||0)+i,e.argumentType=e.valueType,e.visible=t,e.isHorizontal=!0,e.calculateMinors=!0,e.semiDiscreteInterval=e.minRange,t||(e.minorTick.length=e.tick.length=n),e.label.indentFromAxis=e.label.topIndent+i,e}function S(e,t,n){function i(t){var i=t.target.range,o=e.minRange?V(i.startValue,e.minRange):void 0,a=e.maxRange?V(i.startValue,e.maxRange):void 0;o&&o>i.endValue||a&&a<i.endValue||n(i)}B(t,function(e,t){t.on("dxpointerdown",i)})}function I(){return 1}function T(e){return e%2===1?-Math.floor(e/2):-e/2}function D(e){var t=this;t._axis=new z.Axis({renderer:e.renderer,axesContainerGroup:e.root,scaleBreaksGroup:e.scaleBreaksGroup,incidentOccurred:e.incidentOccurred,axisType:"xyAxes",drawingType:"linear",widgetClass:"dxrs",axisClass:"range-selector",isArgumentAxis:!0}),t._updateSelectedRangeCallback=e.updateSelectedRange,t._axis.getAxisSharpDirection=t._axis.getSharpDirectionByCoords=I,t._axis.getTickStartPositionShift=T}var E=n(9),A=n(1),O=n(0).extend,B=n(3).each,P=n(10),M=n(22),R=n(29).adjust,V=M.addInterval,F=M.dateToMilliseconds,L=M.getSequenceByInterval,H=n(109),z=n(272),N=P.patchFontOptions,$=n(268),W=P.normalizeEnum,G=n(63),j=n(209),q=n(807),K=n(810),U=n(811),Y=n(812),X=n(406),Z=P.getVizRangeObject,Q=P.convertVisualRangeObject,J=A.isDefined,ee=A.isNumeric,te=A.isDate,ne=Math.max,ie=Math.ceil,oe=Math.floor,ae="startValue",re="endValue",se="datetime",le="value",ue="discrete",ce="semidiscrete",de="string",he=le+"Changed",pe="containerBackgroundColor",fe="sliderMarker",ge="background",_e="logarithmic",me="keep",ve="shift",ye="reset",xe=-1e3,be=50,we=30,Ce=15,ke=10,Se=n(97).inherit({_toggleParentsScrollSubscription:function(){},_eventsMap:{onValueChanged:{name:he}},_setDeprecatedOptions:function(){this.callBase.apply(this,arguments),O(this._deprecatedOptions,{"chart.barWidth":{since:"18.1",message:"Use the 'chart.commonSeriesSettings.barPadding' or 'chart.series.barPadding' option instead"},"chart.equalBarWidth":{since:"18.1",message:"Use the 'chart.commonSeriesSettings.ignoreEmptyPoints' or 'chart.series.ignoreEmptyPoints' option instead"},"chart.useAggregation":{since:"18.1",message:"Use the 'chart.commonSeriesSettings.aggregation.enabled' or 'chart.series.aggregation.enabled' option instead"}})},_rootClassPrefix:"dxrs",_rootClass:"dxrs-range-selector",_dataIsReady:function(){return this._dataIsLoaded()},_initialChanges:["DATA_SOURCE","VALUE"],_themeDependentChanges:["MOSTLY_TOTAL"],_themeSection:"rangeSelector",_fontFields:["scale.label.font","sliderMarker.font"],_initCore:function(){var e,t,n,i,o,a=this,r=a._renderer,s=r.root;s.css({"touch-action":"pan-y"}),a._clipRect=r.clipRect(),e=r.g().attr({"class":"dxrs-view"}).append(s),t=r.g().attr({"class":"dxrs-slidersContainer","clip-path":a._clipRect.id}).append(s),n=r.g().attr({"class":"dxrs-scale","clip-path":a._clipRect.id}).append(s),i=r.g().attr({"class":"dxrs-scale-breaks"}).append(s),o=r.g().attr({"class":"dxrs-trackers"}).append(s),a._axis=new D({renderer:r,root:n,scaleBreaksGroup:i,updateSelectedRange:function(e){a.setValue(Q(e))},incidentOccurred:a._incidentOccurred}),a._rangeView=new U.RangeView({renderer:r,root:e,translator:a._axis.getTranslator()}),a._slidersController=new q.SlidersController({renderer:r,root:t,trackersGroup:o,updateSelectedRange:function(e,t){a._rangeOption||a.option(le,Q(e,A.isPlainObject(a._options[le]))),a._eventTrigger(he,{value:Q(e),previousValue:Q(t)})},axis:a._axis,translator:a._axis.getTranslator()}),a._tracker=new K.Tracker({renderer:r,controller:a._slidersController})},_getDefaultSize:function(){return{width:400,height:160}},_disposeCore:function(){this._axis.dispose(),this._slidersController.dispose(),this._tracker.dispose()},_applySize:function(e){this._clientRect=e.slice(),this._change(["MOSTLY_TOTAL"])},_optionChangesMap:{scale:"SCALE",value:"VALUE",dataSource:"DATA_SOURCE"},_optionChangesOrder:["SCALE","DATA_SOURCE"],_change_SCALE:function(){this._change(["MOSTLY_TOTAL"])},_setValueByDataSource:function(){var e=this,t=e._options,n=e._axis;if(t.dataSource){var i=e.option("selectedRangeUpdateMode"),o=e.getValue(),a=J(o[0])&&J(o[1]);if(J(i)?(i=W(i),e.__skipAnimation=!0):a&&(i=ye),"auto"===i&&a){var r=n.allScaleSelected(o);i=r.startValue&&r.endValue?ye:r.endValue?ve:me}if(i===ye)t[le]=null;else if(i===ve&&a){var s=e.getValue();e.__skipAnimation=!0,t[le]={length:n.getVisualRangeLength({minVisible:s[0],maxVisible:s[1]})}}else i===me&&(e.__skipAnimation=!0);
116}},_change_DATA_SOURCE:function(){this._options.dataSource&&this._updateDataSource()},_customChangesOrder:["MOSTLY_TOTAL","VALUE","SLIDER_SELECTION"],_change_MOSTLY_TOTAL:function(){this._applyMostlyTotalChange()},_change_SLIDER_SELECTION:function(){var e=this,t=e._options[le];e._slidersController.setSelectedRange(t&&Z(t))},_change_VALUE:function(){var e=this,t=e._rangeOption;t&&(e._options[le]=t,e.setValue(t))},_validateRange:function(e,t){var n=this,i=n._axis.getTranslator();(J(e)&&!i.isValid(e)||J(t)&&!i.isValid(t))&&n._incidentOccurred("E2203")},_applyChanges:function(){var e=this,t=e._options[le];e._changes.has("VALUE")&&t&&(e._rangeOption=t),e.callBase.apply(e,arguments),e._rangeOption=null,e.__isResizing=e.__skipAnimation=!1},_applyMostlyTotalChange:function(){var e,t=this,n=t._renderer,i=t._clientRect,o={left:i[0],top:i[1],width:i[2]-i[0],height:i[3]-i[1]};(t.__isResizing||t.__skipAnimation)&&(e=n.animationEnabled(),n.updateAnimationOptions({enabled:!1})),t._clipRect.attr({x:i[0],y:i[1],width:i[2]-i[0],height:i[3]-i[1]}),t._axis.getTranslator().update(new H.Range,o,{isHorizontal:!0}),t._updateContent({left:i[0],top:i[1],width:i[2]-i[0],height:i[3]-i[1]}),(t.__isResizing||t.__skipAnimation)&&n.updateAnimationOptions({enabled:e}),t._drawn()},_dataSourceChangedHandler:function(){this._setValueByDataSource(),this._requestChange(["MOSTLY_TOTAL"])},_completeSeriesDataSourceCreation:function(e,t){var n=this._clientRect,i={left:n[0],top:n[1],width:n[2]-n[0],height:n[3]-n[1]};this._axis.updateOptions(O({},e,{isHorizontal:!0,label:{}})),t.isShowChart()&&this._axis.setMarginOptions(t.getMarginOptions(i)),this._axis.updateCanvas(i),t.createPoints()},_updateContent:function(e){var t=this,n=t.option("chart"),i=t._createSeriesDataSource(n),o=!(i&&i.isShowChart()||t.option("background.image.url")),r=x(t._getOption("scale"),i&&i.getCalculatedValueType(),t._incidentOccurred,this._getOption("containerBackgroundColor",!0));i&&t._completeSeriesDataSourceCreation(r,i);var d=g(i,r),h=f(r,e.width,t._incidentOccurred,d),p=void 0,_=void 0,m=void 0,b=i&&i.isShowChart()&&i.getThemeManager();b&&u(n&&n.valueAxis,b.getOptions("valueAxis").logarithmBase,t._incidentOccurred),y(r,i,d,h,v(e.width)),l(d,r),p=t._prepareSliderMarkersOptions(r,e.width,h,d),_=a(t._renderer,r,p,t.option("indent"),h),m={left:e.left+_.left,top:e.top+_.top,width:e.left+_.left+ne(e.width-_.left-_.right,1),height:ne(o?j.HEIGHT_COMPACT_MODE:e.height-_.top-_.bottom-c(t._renderer,r,s(r),h),0),right:0,bottom:0},t._axis.update(r,o,m,d,i),r.minorTickInterval=r.isEmpty?0:r.minorTickInterval,t._updateElements(r,p,o,m,i),b&&b.dispose()},_updateElements:function(e,t,n,i,o){var a=this,r=a._getOption("behavior"),s=a._getOption("shutter"),l=e.type!==ce;s.color=s.color||a._getOption(pe,!0),a._rangeView.update(a.option("background"),a._themeManager.theme("background"),i,n,r.animationEnabled&&a._renderer.animationEnabled(),o),a._isUpdating=!0,a._slidersController.update([i.top,i.top+i.height],r,n,a._getOption("sliderHandle"),t,s,{minRange:l?a.option("scale.minRange"):void 0,maxRange:l?a.option("scale.maxRange"):void 0},a._axis.getFullTicks(),a._getOption("selectedRangeColor",!0)),a._requestChange(["SLIDER_SELECTION"]),a._isUpdating=!1,a._tracker.update(!a._axis.getTranslator().getBusinessRange().isEmpty(),r)},_createSeriesDataSource:function(e){var t,n=this,i=n._dataSourceItems(),o=n._getOption("scale"),a=o.valueType||r(o.startValue,o.endValue),s=new z.Axis({renderer:n._renderer,axisType:"xyAxes",drawingType:"linear"});return s.updateOptions({isHorizontal:!1,label:{},categoriesSortingMethod:n._getOption("chart").valueAxis.categoriesSortingMethod}),(i||e&&e.series)&&(e=O({},e,{theme:n.option("theme")}),t=new Y.SeriesDataSource({renderer:n._renderer,dataSource:i,valueType:W(a),axisType:o.type,chart:e,dataSourceField:n.option("dataSourceField"),incidentOccurred:n._incidentOccurred,categories:o.categories,argumentAxis:n._axis,valueAxis:s})),t},_prepareSliderMarkersOptions:function(e,t,n,i){var o=this,a=n.minorTickInterval,r=n.tickInterval,s=r,l=e.endValue,u=e.startValue,c=o._getOption(fe),h=!o._getOption("behavior").snapToTicks,p=e.type===ue,f=e.valueType===se;return c.borderColor=o._getOption(pe,!0),c.format||i.isEmpty()||(h&&ee(e.startValue)&&(c.format={type:"fixedPoint",precision:C(u,l,t)}),f&&!p&&(J(a)&&0!==a&&(s=d(r,a,h)),e.marker.visible?c.format=M.getDateFormatByTickInterval(s):J(u)&&J(l)&&(c.format=G.getDateFormatByTickInterval(u,l,s))),f&&p&&n.ticks.length&&(c.format=G.getDateFormatByTicks(n.ticks))),c},getValue:function(){return Q(this._slidersController.getSelectedRange())},setValue:function(e){var t,n=Z(e);!this._isUpdating&&e&&(this._validateRange(n.startValue,n.endValue),t=this._slidersController.getSelectedRange(),t&&t.startValue===n.startValue&&t.endValue===n.endValue||this._slidersController.setSelectedRange(Z(e)))},_setContentSize:function(){this.__isResizing=2===this._changes.count(),this.callBase.apply(this,arguments)}});B(["selectedRangeColor","containerBackgroundColor","sliderMarker","sliderHandle","shutter",ge,"behavior","chart","indent"],function(e,t){Se.prototype._optionChangesMap[t]="MOSTLY_TOTAL"}),D.prototype={constructor:D,dispose:function(){this._axis.dispose()},calculateInterval:function(e,t){return this._axis.calculateInterval(e,t)},update:function(e,t,n,i,o){var a=this._axis;a.updateOptions(k(e,t,n.height,n.height/2-Math.ceil(e.width/2))),a.validate(),a.setBusinessRange(i,!0),void 0!==o&&o.isShowChart()&&a.setMarginOptions(o.getMarginOptions(n)),a.draw(n),a.shift({left:0,bottom:-n.height/2+n.top}),a.getMarkerTrackers()&&S(e,a.getMarkerTrackers(),this._updateSelectedRangeCallback),a.drawScaleBreaks({start:n.top,end:n.top+n.height})},visualRange:function(){},getViewport:function(){return{}},allScaleSelected:function(e){var t=this._axis.visualRange(),n=t.startValue,i=t.endValue;return{startValue:e[0].valueOf()===n.valueOf(),endValue:e[1].valueOf()===i.valueOf()}}},["setMarginOptions","getFullTicks","updateCanvas","updateOptions","getAggregationInfo","getTranslator","getVisualRangeLength","getVisibleArea","getMarginOptions"].forEach(function(e){D.prototype[e]=function(){var t=this._axis;return t[e].apply(t,arguments)}}),E("dxRangeSelector",Se),e.exports=Se,Se.addPlugin(n(96).plugin),Se.addPlugin(n(106).plugin),Se.addPlugin(n(122).plugin),Se.addPlugin(n(145).plugin)},function(e,t,n){function i(e,t,n,i){return[e,t,n,t,n,i,e,i]}function o(e){return e&&e.valueOf()}function a(e,t){return e<t}function r(e,t){return e>t}function s(e,t){for(var n,i=0,o=t?t.length-1:0,a=e;o-i>1;){if(n=i+o>>1,a=t[n],a===e)return e;e<a?o=n:i=n}return t&&(a=t[e-t[i]<=t[o]-e?i:o]),a}function l(){this._lastSelectedRange=this.getSelectedRange(),delete this._processSelectionChanged}function u(e){e.setSelectedRange=h,e._processSelectionChanged===l&&e._processSelectionChanged()}function c(e){delete e.setSelectedRange}function d(e){var t=this,n={renderer:e.renderer,root:e.root,trackersGroup:e.trackersGroup,translator:e.translator};t._params=e,t._areaTracker=e.renderer.path(null,"area").attr({"class":"area-tracker",fill:"#000000",opacity:1e-4}).append(e.trackersGroup),t._selectedAreaTracker=e.renderer.path(null,"area").attr({"class":"selected-area-tracker",fill:"#000000",opacity:1e-4}).append(e.trackersGroup),t._shutter=e.renderer.path(null,"area").append(e.root),t._sliders=[new _(n,0),new _(n,1)],t._processSelectionChanged=l}var h=n(4).noop,p=n(209),f=p.utils.animationSettings,g=p.consts.emptySliderMarkerText,_=n(808),m=n(10).normalizeEnum,v=n(1),y=v.isNumeric,x=n(10),b=n(29).adjust;d.prototype={constructor:d,dispose:function(){this._sliders[0].dispose(),this._sliders[1].dispose()},getTrackerTargets:function(){return{area:this._areaTracker,selectedArea:this._selectedAreaTracker,sliders:this._sliders}},_processSelectionChanged:function(){var e=this,t=e.getSelectedRange();o(t.startValue)===o(e._lastSelectedRange.startValue)&&o(t.endValue)===o(e._lastSelectedRange.endValue)||(e._params.updateSelectedRange(t,e._lastSelectedRange),e._lastSelectedRange=t)},update:function(e,t,n,o,a,r,s,l,u){var c=this,d=c._params.translator.getScreenRange();c._verticalRange=e,c._minRange=s.minRange,c._maxRange=s.maxRange,c._animationEnabled=t.animationEnabled&&c._params.renderer.animationEnabled(),c._allowSlidersSwap=t.allowSlidersSwap,c._sliders[0].update(e,o,a),c._sliders[1].update(e,o,a),c._sliders[0]._position=c._sliders[1]._position=d[0],c._values=!c._params.translator.isValueProlonged&&t.snapToTicks?l:null,c._areaTracker.attr({points:i(d[0],e[0],d[1],e[1])}),c._isCompactMode=n,c._shutterOffset=o.width/2,c._updateSelectedView(r,u),c._isOnMoving="onmoving"===m(t.callValueChanged),c._updateSelectedRange(),c._applyTotalPosition(!1)},_updateSelectedView:function(e,t){var n={fill:null,"fill-opacity":null,stroke:null,"stroke-width":null};this._isCompactMode?(n.stroke=t,n["stroke-width"]=3,n.sharp="v"):(n.fill=e.color,n["fill-opacity"]=e.opacity),this._shutter.attr(n)},_updateSelectedRange:function(){var e=this,t=e._sliders;t[0].cancelAnimation(),t[1].cancelAnimation(),e._shutter.stopAnimation(),e._params.translator.getBusinessRange().isEmpty()?(t[0]._setText(g),t[1]._setText(g),t[0]._value=t[1]._value=void 0,t[0]._position=e._params.translator.getScreenRange()[0],t[1]._position=e._params.translator.getScreenRange()[1],e._applyTotalPosition(!1),u(e)):c(e)},_applyTotalPosition:function(e){var t,n=this._sliders;e=this._animationEnabled&&e,n[0].applyPosition(e),n[1].applyPosition(e),t=n[0].getCloudBorder()>n[1].getCloudBorder(),n[0].setOverlapped(t),n[1].setOverlapped(t),this._applyAreaTrackersPosition(),this._applySelectedRangePosition(e)},_applyAreaTrackersPosition:function(){var e=this,t=e._sliders[0].getPosition(),n=e._sliders[1].getPosition();e._selectedAreaTracker.attr({points:i(t,e._verticalRange[0],n,e._verticalRange[1])}).css({cursor:Math.abs(e._params.translator.getScreenRange()[1]-e._params.translator.getScreenRange()[0]-n+t)<.001?"default":"pointer"})},_applySelectedRangePosition:function(e){var t,n,o=this,a=o._verticalRange,r=o._sliders[0].getPosition(),s=o._sliders[1].getPosition();o._isCompactMode?n=[r+Math.ceil(o._shutterOffset),(a[0]+a[1])/2,s-Math.floor(o._shutterOffset),(a[0]+a[1])/2]:(t=o._params.axis.getVisibleArea(),n=[i(t[0],a[0],Math.max(r-Math.floor(o._shutterOffset),t[0]),a[1]),i(t[1],a[0],Math.min(s+Math.ceil(o._shutterOffset),t[1]),a[1])]),e?o._shutter.animate({points:n},f):o._shutter.attr({points:n})},getSelectedRange:function(){return{startValue:this._sliders[0].getValue(),endValue:this._sliders[1].getValue()}},setSelectedRange:function(e){e=e||{};var t=this,n=t._params.translator,i=n.getBusinessRange(),o="discrete"===i.axisType?function(e,t){return e<t}:function(e,t){return e<=t},a=x.adjustVisualRange({dataType:i.dataType,axisType:i.axisType,base:i.base},{startValue:n.isValid(e.startValue)?n.getCorrectValue(e.startValue,1):void 0,endValue:n.isValid(e.endValue)?n.getCorrectValue(e.endValue,-1):void 0,length:e.length},{min:i.minVisible,max:i.maxVisible,categories:i.categories}),r=a.startValue,s=a.endValue;r=y(r)?b(r):r,s=y(s)?b(s):s;var l=o(n.to(r,-1),n.to(s,1))?[r,s]:[s,r];t._sliders[0].setDisplayValue(l[0]),t._sliders[1].setDisplayValue(l[1]),t._sliders[0]._position=n.to(l[0],-1),t._sliders[1]._position=n.to(l[1],1),t._applyTotalPosition(!0),t._processSelectionChanged()},beginSelectedAreaMoving:function(e){function t(e){e!==a&&e>a==e>(i[0].getPosition()+i[1].getPosition())/2-o&&n._moveSelectedArea(e+o,!1),a=e}var n=this,i=n._sliders,o=(i[0].getPosition()+i[1].getPosition())/2-e,a=e;return t.complete=function(){n._dockSelectedArea()},t},_dockSelectedArea:function(){var e=this._params.translator,t=this._sliders;t[0]._position=e.to(t[0].getValue(),-1),t[1]._position=e.to(t[1].getValue(),1),this._applyTotalPosition(!0),this._processSelectionChanged()},moveSelectedArea:function(e){this._moveSelectedArea(e,!0),this._dockSelectedArea()},_moveSelectedArea:function(e,t){var n,i=this,o=i._params.translator,a=i._sliders,r=a[1].getPosition()-a[0].getPosition(),l=e-r/2,u=e+r/2;l<o.getScreenRange()[0]&&(l=o.getScreenRange()[0],u=l+r),u>o.getScreenRange()[1]&&(u=o.getScreenRange()[1],l=u-r),n=s(o.from(l,-1),i._values),a[0].setDisplayValue(n),a[1].setDisplayValue(s(o.from(o.to(n,-1)+r,1),i._values)),a[0]._position=l,a[1]._position=u,i._applyTotalPosition(t),i._isOnMoving&&i._processSelectionChanged()},placeSliderAndBeginMoving:function(e,t){var n,i,o=this,l=o._params.translator,u=o._sliders,c=e<t?0:1,d=c>0?1:-1,h=c>0?r:a,p=c>0?a:r,f=[],g=[];return g[c]=l.from(e,d),g[1-c]=l.from(t,-d),f[1-c]=t,l.isValueProlonged&&(h(e,l.to(g[c],d))&&(g[c]=l.from(e,-d)),h(t,l.to(g[c],-d))&&(g[1-c]=g[c])),o._minRange&&(n=l.to(l.add(s(g[c],o._values),o._minRange,-d),-d),h(t,n)&&(g[1-c]=l.add(g[c],o._minRange,-d)),n=l.to(l.add(l.getRange()[1-c],o._minRange,d),-d),p(e,n)&&(g[1-c]=l.getRange()[1-c],g[c]=l.add(g[1-c],o._minRange,d),f[1-c]=e)),g[0]=s(g[0],o._values),g[1]=s(g[1],o._values),f[c]=l.to(g[c],d),u[0].setDisplayValue(g[0]),u[1].setDisplayValue(g[1]),u[0]._position=f[0],u[1]._position=f[1],o._applyTotalPosition(!0),o._isOnMoving&&o._processSelectionChanged(),i=o.beginSliderMoving(1-c,t),u[1-c]._sliderGroup.stopAnimation(),o._shutter.stopAnimation(),i(t),i},beginSliderMoving:function(e,t){function n(e){var t,n,a,r,y;e!==p&&(g(e+v,h)&&(t=i._allowSlidersSwap,t&&!o.isValueProlonged&&i._minRange&&(t=o.isValid(o.add(l[1-d].getValue(),i._minRange,-f))),t&&(i._changeMovingSlider(d),d=1-d,f=-f,n=g,g=_,_=n,m=-f*Math.abs(m),v=-m)),_(e+m,h)&&(t=!0,r=l[d],y=l[1-d].getValue(),a=Math.max(Math.min(e+m,c),u),t&&o.isValueProlonged&&(t=!g(a,o.to(y,f))),t&&i._minRange&&(t=!g(a,o.to(o.add(y,i._minRange,f),f))),t&&i._maxRange&&(t=!_(a,o.to(o.add(y,i._maxRange,f),f))),r._setValid(t),r.setDisplayValue(t?s(o.from(a,f),i._values):r.getValue()),r._position=a,i._applyTotalPosition(!1),r.toForeground(),i._isOnMoving&&i._processSelectionChanged())),p=e}var i=this,o=i._params.translator,l=i._sliders,u=o.getScreenRange()[0],c=o.getScreenRange()[1],d=e,h=l[1-d].getPosition(),p=t,f=d>0?1:-1,g=d>0?a:r,_=d>0?r:a,m=l[d].getPosition()-t,v=g(l[d].getPosition(),t)?-m:m;return n.complete=function(){l[d]._setValid(!0),i._dockSelectedArea()},n},_changeMovingSlider:function(e){var t,n=this,i=n._params.translator,o=n._sliders,a=o[1-e].getPosition(),r=e>0?1:-1;o[e].setDisplayValue(s(i.from(a,r),n._values)),t=i.from(a,-r),i.isValueProlonged?t=i.from(a,r):n._minRange&&(t=i.add(t,n._minRange,-r)),o[1-e].setDisplayValue(s(t,n._values)),o[e]._setValid(!0),o[e]._marker._update(),o[0]._position=o[1]._position=a},foregroundSlider:function(e){this._sliders[e].toForeground()}},t.SlidersController=d},function(e,t,n){function i(e){return u.touchEvents||u.pointer?d:c<e?e:c}function o(e,t){var n=this;n._translator=e.translator,n._sliderGroup=e.renderer.g().attr({"class":"slider"}).append(e.root),n._line=e.renderer.path(null,"line").append(n._sliderGroup),n._marker=new l(e.renderer,n._sliderGroup,1===t),n._tracker=e.renderer.rect().attr({"class":"slider-tracker",fill:"#000000",opacity:1e-4}).css({cursor:"w-resize"}).append(e.trackersGroup)}var a=n(209),r=a.utils.animationSettings,s=a.formatValue,l=n(809),u=n(42),c=8,d=20;o.prototype={constructor:o,cancelAnimation:function(){this._sliderGroup.stopAnimation(),this._tracker.stopAnimation()},applyPosition:function(e){var t=this,n=t._sliderGroup,i=t._tracker,o={translateX:t._position};t._marker.setPosition(t._position),e?(n.animate(o,r),i.animate(o,r)):(n.attr(o),i.attr(o))},_setValid:function(e){this._marker.setValid(e),this._line.attr({stroke:this._colors[Number(e)]})},_setText:function(e){this._marker.setText(e)},update:function(e,t,n){var o=this;o._formatOptions={format:n.format,customizeText:n.customizeText},o._marker.applyOptions(n,o._translator.getScreenRange()),o._colors=[n.invalidRangeColor,t.color],o._sliderGroup.attr({translateY:e[0]}),o._line.attr({"stroke-width":t.width,stroke:t.color,"stroke-opacity":t.opacity,sharp:"h",points:[0,0,0,e[1]-e[0]]});var a=i(t.width);o._tracker.attr({x:-a/2,y:0,width:a,height:e[1]-e[0],translateY:e[0]})},toForeground:function(){this._sliderGroup.toForeground()},getSliderTracker:function(){return this._tracker},getPosition:function(){return this._position},setDisplayValue:function(e){this._value=e,this._setText(s(e,this._formatOptions))},setOverlapped:function(e){this._marker.setOverlapped(e)},getValue:function(){return this._value},on:function(e,t){this._tracker.on(e,t),this._marker.getTracker().on(e,t)},getCloudBorder:function(){return this._marker.getBorderPosition()},dispose:function(){this._marker.dispose()}},e.exports=o},function(e,t,n){function i(e,t,n){var i=this;i._isLeftPointer=n,i._isOverlapped=!1,i._group=e.g().attr({"class":"slider-marker"}).append(t),i._area=e.path(null,"area").append(i._group),i._label=e.text().attr({align:"left"}).append(i._group),i._tracker=e.rect().attr({"class":"slider-marker-tracker",fill:"#000000",opacity:1e-4}).css({cursor:"pointer"}).append(i._group),i._border=e.rect(0,0,1,0)}var o=n(10).patchFontOptions,a=75,r=n(209).consts.pointerSize;i.prototype={constructor:i,_getRectSize:function(e){return{width:Math.round(2*this._paddingLeftRight+e.width),height:Math.round(2*this._paddingTopBottom+e.height)}},_getTextSize:function(){var e=this._label.getBBox();return!this._textHeight&&isFinite(e.height)&&(this._textHeight=e.height),{width:e.width,height:this._textHeight,y:e.y}},_getAreaPointsInfo:function(e){var t=this,n=t._getRectSize(e),i=n.width,o=n.height,a=-i,s=0,l=r,u=0,c=-r,d=t._position,h=t._isLeftPointer,p=function(){a++,s++,l++,u++,c++},f=function(){l>s?l=s:c<a&&(c=a),h&&p()},g=d;return h?d>t._range[1]-i?(s=-d+t._range[1],a=s-i,f(),g+=a):(a=c=0,s=i):d-t._range[0]<i?(a=-(d-t._range[0]),s=a+i,f(),g+=s):(l=0,p()),t._borderPosition=g,{offset:a,isCut:(!h||u!==c)&&(h||u!==l),points:[a,0,s,0,s,o,l,o,u,o+r,c,o,a,o]}},_update:function(){function e(e,t){var n,i,a;t=t||o._getRectSize(e),o._group.attr({translateY:-(t.height+r)}),i=o._getAreaPointsInfo(e),n=i.points,a=i.offset,o._area.attr({points:n}),o._border.attr({x:o._isLeftPointer?n[0]-1:n[2],height:i.isCut?t.height:t.height+r}),o._tracker.attr({translateX:a,width:t.width,height:t.height+r}),o._label.attr({translateX:o._paddingLeftRight+a,translateY:t.height/2-(e.y+e.height/2)})}var t,n,i,o=this;clearTimeout(o._timeout),o._label.attr({text:o._text||""}),n=o._getTextSize(),i=o._getRectSize(n),t=o._textSize||n,t=o._textSize=n.width>t.width||n.height>t.height?n:t,o._timeout=setTimeout(function(){e(n,i),o._textSize=n},a),e(t)},setText:function(e){this._text=e},setPosition:function(e){this._position=e,this._update()},applyOptions:function(e,t){var n=this;n._range=t,n._paddingLeftRight=e.paddingLeftRight,n._paddingTopBottom=e.paddingTopBottom,n._textHeight=null,n._colors=[e.invalidRangeColor,e.color],n._area.attr({fill:e.color}),n._border.attr({fill:e.borderColor}),n._label.css(o(e.font)),n._update()},getTracker:function(){return this._tracker},setValid:function(e){this._area.attr({fill:this._colors[Number(e)]})},setColor:function(e){this._area.attr({fill:e})},dispose:function(){clearTimeout(this._timeout)},setOverlapped:function(e){var t=this;t._isOverlapped!==e&&(e?t._border.append(t._group):t._isOverlapped&&t._border.remove(),t._isOverlapped=e)},getBorderPosition:function(){return this._borderPosition}},e.exports=i},function(e,t,n){function i(e){var t=e||g.event,n=t.originalEvent,i=t.touches,o=!!n&&n.pointerType,a=!!n&&n.touches,r=n&&void 0!==o&&(o===(n.MSPOINTER_TYPE_TOUCH||"touch")||o===(n.MSPOINTER_TYPE_MOUSE||"mouse")&&1===n.buttons),s=i&&i.length>0||a&&a.length>0;return 1===t.which||r||s}function o(e){var t=e.originalEvent,n=e.touches,i=t&&t.touches;return n&&n.length>1||i&&i.length>1||null}function a(e){o(e)||e.preventDefault()}function r(e){o(e)||(e.stopPropagation(),e.preventDefault())}function s(e){return e&&e.type&&0===e.type.indexOf("touch")}function l(e){var t=e.originalEvent,n=0;return e.pageX?n=e.pageX:t&&t.pageX&&(n=t.pageX),t&&t.touches&&(t.touches.length>0?n=t.touches[0].pageX:t.changedTouches.length>0&&(n=t.changedTouches[0].pageX)),n}function u(e,t,n,o){function a(){c&&(c=!1,d&&(d.complete(),d=null))}var r,u,c=!1,d=null,h={};return h[f.move]=function(t){var h,p;r===s(t)&&(i(t)||a(),c&&(h=l(t),p=o(),d?d(h-p):n.manualRangeSelectionEnabled&&Math.abs(u-h)>=y&&(d=e.placeSliderAndBeginMoving(u-p,h-p))))},h[f.up]=function(t){var i;c&&(i=l(t),!d&&n.moveSelectedRangeByClick&&Math.abs(u-i)<y&&e.moveSelectedArea(i-o()),a())},t.on(f.down,function(e){n.enabled&&i(e)&&!c&&(c=!0,r=s(e),u=l(e))}),h}function c(e,t,n,o){function u(){d&&(d=!1,h.complete(),h=null)}var c,d=!1,h=null,p={};return p[f.move]=function(e){c===s(e)&&(i(e)||u(),d&&(a(e),h(l(e)-o())))},p[f.up]=u,t.on(f.down,function(t){n.enabled&&i(t)&&!d&&(d=!0,c=s(t),h=e.beginSelectedAreaMoving(l(t)-o()),r(t))}),p}function d(e,t,n,o){function u(){d&&(d=!1,h.complete(),h=null)}var c,d=!1,h=null,p={};return p[f.move]=function(e){c===s(e)&&(i(e)||u(),d&&(a(e),h(l(e)-o())))},p[f.up]=u,m(t,function(t,a){var u={};u[f.down]=function(a){n.enabled&&i(a)&&!d&&(d=!0,c=s(a),h=e.beginSliderMoving(t,l(a)-o()),r(a))},u[f.move]=function(){h||e.foregroundSlider(t)},a.on(u)}),p}function h(e){function t(){return e.renderer.getRootOffset().left}var n=this._state={},i=e.controller.getTrackerTargets();v&&e.renderer.root.css({msTouchAction:"pinch-zoom"}),this._docEvents=[c(e.controller,i.selectedArea,n,t),u(e.controller,i.area,n,t),d(e.controller,i.sliders,n,t)],m(this._docEvents,function(e,t){p.on(_.getDocument(),t)})}var p=n(5),f=n(24),g=n(7).getWindow(),_=n(11),m=n(3).each,v=n(42).pointer,y=10;h.prototype={constructor:h,dispose:function(){m(this._docEvents,function(e,t){p.off(_.getDocument(),t)})},update:function(e,t){var n=this._state;n.enabled=e,n.moveSelectedRangeByClick=t.moveSelectedRangeByClick,n.manualRangeSelectionEnabled=t.manualRangeSelectionEnabled}},t.Tracker=h},function(e,t,n){function i(e,t,n,i){var o=t.getSeries();if(o.length){var a=o[0].getValueAxis();a.updateCanvas({top:n.top,bottom:0,height:n.height+n.top}),t.adjustSeriesDimensions();var r=t.getBoundRange().val;r.sortCategories(a.getCategoriesSorter()),a.setBusinessRange(r),o.forEach(function(t){t._extGroups.seriesGroup=t._extGroups.labelsGroup=e,t.draw(i)})}}function o(e,t){return void 0!==e?e:t}function a(e){this._params=e,this._clipRect=e.renderer.clipRect(),e.root.attr({"clip-path":this._clipRect.id})}a.prototype={constructor:a,update:function(e,t,n,a,r,s){var l,u=this._params.renderer,c=this._params.root,d=n.width-n.left;e=e||{},c.clear(),this._clipRect.attr({x:n.left,y:n.top,width:d,height:n.height}),a||(o(e.visible,t.visible)&&(e.color&&u.rect(n.left,n.top,d+1,n.height).attr({fill:o(e.color,t.color),"class":"dx-range-selector-background"}).append(c),e.image&&e.image.url&&u.image(n.left,n.top,d+1,n.height,e.image.url,o(e.image.location,t.image.location)).append(c)),s&&s.isShowChart()&&(l=u.g().attr({"class":"dxrs-series-group"}).append(c),i(l,s,n,r)))}},t.RangeView=a},function(e,t,n){var i,o=n(269),a=n(409),r=n(1),s=n(0).extend,l=n(13).inArray,u=n(3).each,c=n(10),d=n(109),h=n(267),p=n(401).ThemeManager,f=function(e){return new p({options:e,themeSection:"rangeSelector.chart",fontFields:["commonSeriesSettings.label.font"]})},g=function(e,t,n,i,o,r){var s=[],c=[];return u(e,function(e,t){l(t.type,c)===-1&&c.push(t.type)}),u(c,function(l,u){var c=new a.SeriesFamily({type:u,equalBarWidth:t,minBubbleSize:n,maxBubbleSize:i,barWidth:o.barWidth,barGroupPadding:o.barGroupPadding,barGroupWidth:o.barGroupWidth,negativesAsZeroes:r});c.add(e),c.adjustSeriesValues(),s.push(c)}),s};i=function(e){var t,n,i=this,o=i._themeManager=f(e.chart);o.setTheme(e.chart.theme),t=o.getOptions("topIndent"),n=o.getOptions("bottomIndent"),i._indent={top:t>=0&&t<1?t:0,bottom:n>=0&&n<1?n:0},i._valueAxis=o.getOptions("valueAxisRangeSelector")||{},i._hideChart=!1,i._series=i._calculateSeries(e),i._seriesFamilies=[]},i.prototype={constructor:i,_calculateSeries:function(e){var t,n,i,a,r,l,u,d=this,p=[],f=e.dataSource||[],g=d._themeManager,_=g.getOptions("seriesTemplate"),m=_?c.processSeriesTemplate(_,f):e.chart.series,v=d._valueAxis;for(e.dataSource&&!m&&(a=e.dataSourceField||"arg",m={argumentField:a,valueField:a},d._hideChart=!0),m=Array.isArray(m)?m:m?[m]:[],r=0;r<m.length;r++)t=s(!0,{},m[r]),t.rotated=!1,n=g.getOptions("series",t,m.length),n.argumentField=n.argumentField||e.dataSourceField,n.name||(n.name="Series "+(r+1).toString()),f&&f.length>0&&(l=new o.Series({renderer:e.renderer,argumentAxis:e.argumentAxis,valueAxis:e.valueAxis,incidentOccurred:e.incidentOccurred},n),p.push(l));if(p.length)for(u={groups:[{series:p,valueAxis:e.valueAxis,valueOptions:{type:v.type,valueType:a?e.valueType:v.valueType}}],argumentOptions:{categories:e.categories,argumentType:e.valueType,type:e.axisType}},i=h.validateData(f,u,e.incidentOccurred,g.getOptions("dataPrepareSettings")),d.argCategories=u.categories,r=0;r<p.length;r++)p[r].updateData(i[p[r].getArgumentField()]);return p},createPoints:function(){if(0!==this._series.length){var e=this._series,t=new d.Range,n=e[0].getArgumentAxis(),i=this._themeManager,o=i.getOptions("negativesAsZeroes"),a=i.getOptions("negativesAsZeros");e.forEach(function(e){t.addRange(e.getArgumentRange())}),n.getTranslator().updateBusinessRange(t),e.forEach(function(e){e.createPoints()}),this._seriesFamilies=g(e,i.getOptions("equalBarWidth"),i.getOptions("minBubbleSize"),i.getOptions("maxBubbleSize"),{barWidth:i.getOptions("barWidth"),barGroupPadding:i.getOptions("barGroupPadding"),barGroupWidth:i.getOptions("barGroupWidth")},r.isDefined(o)?o:a)}},adjustSeriesDimensions:function(){u(this._seriesFamilies,function(e,t){t.adjustSeriesDimensions()})},getBoundRange:function(){var e,t,n,i,o,a=this,s=a._valueAxis,l=new d.Range({min:s.min,minVisible:s.min,max:s.max,maxVisible:s.max,axisType:s.type,base:s.logarithmBase}),c=new d.Range({});return u(a._series,function(t,n){e=n.getRangeData(),l.addRange(e.val),c.addRange(e.arg)}),l.isEmpty()||c.isEmpty()||(i=s.inverted?a._indent.top:a._indent.bottom,o=s.inverted?a._indent.bottom:a._indent.top,t=l.max-l.min,n=(r.isNumeric(l.maxVisible)?l.maxVisible:l.max)-(r.isNumeric(l.minVisible)?l.minVisible:l.min),r.isDate(l.min)?l.min=new Date(l.min.valueOf()-t*i):l.min-=t*i,r.isDate(l.max)?l.max=new Date(l.max.valueOf()+t*o):l.max+=t*o,r.isNumeric(n)&&(l.maxVisible=l.maxVisible?l.maxVisible+n*o:void 0,l.minVisible=l.minVisible?l.minVisible-n*i:void 0),l.invert=s.inverted),{arg:c,val:l}},getMarginOptions:function(e){var t=Math.min(e.width,e.height)*this._themeManager.getOptions("maxBubbleSize");return this._series.reduce(function(e,n){var i=n.getMarginOptions();return i.processBubbleSize===!0&&(i.size=t),c.mergeMarginOptions(e,i)},{})},getSeries:function(){return this._series},isEmpty:function(){return 0===this.getSeries().length},isShowChart:function(){return!this._hideChart},getCalculatedValueType:function(){var e=this._series[0];return e&&e.argumentType},getThemeManager:function(){return this._themeManager}},t.SeriesDataSource=i},function(e,t,n){e.exports=n(814)},function(e,t,n){function i(){return"vectormap-data-"+_++}var o=n(10).parseScalar,a=n(415),r=n(815),s=n(816),l=n(817),u=n(818),c=n(819),d=n(820),h=n(821),p=n(822),f=800,g=400,_=1,m=/^layers/,v=/\.dataSource$/;n(417);var y=n(97).inherit({_eventsMap:{onClick:{name:"click"},onCenterChanged:{name:"centerChanged"},onZoomFactorChanged:{name:"zoomFactorChanged"},onHoverChanged:{name:"hoverChanged"},onSelectionChanged:{name:"selectionChanged"}},_rootClassPrefix:"dxm",_rootClass:"dxm-vector-map",_themeSection:"map",_fontFields:["layer:area.label.font","layer:marker:dot.label.font","layer:marker:bubble.label.font","layer:marker:pie.label.font","layer:marker:image.label.font","legend.font","legend.title.font","legend.title.subtitle.font"],_initLayerCollection:function(e){var t=this;t._layerCollection=new h.MapLayerCollection({renderer:t._renderer,projection:t._projection,themeManager:t._themeManager,tracker:t._tracker,dataKey:e,eventTrigger:t._eventTrigger,dataExchanger:t._dataExchanger,tooltip:t._tooltip,notifyDirty:t._notifyDirty,notifyReady:t._notifyReady})},_initLegendsControl:function(){var e=this;e._legendsControl=new c.LegendsControl({renderer:e._renderer,container:e._root,layoutControl:e._layoutControl,themeManager:e._themeManager,dataExchanger:e._dataExchanger,notifyDirty:e._notifyDirty,notifyReady:e._notifyReady})},_initControlBar:function(e){var t=this;t._controlBar=new r.ControlBar({renderer:t._renderer,container:t._root,layoutControl:t._layoutControl,projection:t._projection,tracker:t._tracker,dataKey:e})},_initElements:function(){var e=this,t=i(),n=0,o=!0;e._notifyDirty=function(){e._resetIsReady(),++n},e._notifyReady=function(){o=!1,0===--n&&e._drawn()},e._dataExchanger=new u.DataExchanger,e._projection=new a.Projection({centerChanged:function(t){o||e._eventTrigger("centerChanged",{center:t})},zoomChanged:function(t){o||e._eventTrigger("zoomFactorChanged",{zoomFactor:t})}}),e._tracker=new l.Tracker({root:e._root,projection:e._projection,dataKey:t}),e._gestureHandler=new s.GestureHandler({projection:e._projection,renderer:e._renderer,tracker:e._tracker}),e._layoutControl=new d.LayoutControl,e._layoutControl.suspend(),e._initLayerCollection(t),e._initControlBar(t),e._initLegendsControl(),e._tooltipViewer=new p.TooltipViewer({tracker:e._tracker,tooltip:e._tooltip,layerCollection:e._layerCollection})},_change_RESUME_LAYOUT:function(){this._layoutControl.resume()},_initialChanges:["PROJECTION","RESUME_LAYOUT","LAYOUT_INIT","BOUNDS","MAX_ZOOM_FACTOR","ZOOM_FACTOR","CENTER"],_layoutChangesOrder:["RESUME_LAYOUT","LAYERS"],_initCore:function(){this._root=this._renderer.root.attr({align:"center",cursor:"default"}),this._initElements()},_disposeCore:function(){var e=this;e._controlBar.dispose(),e._gestureHandler.dispose(),e._tracker.dispose(),e._legendsControl.dispose(),e._layerCollection.dispose(),e._layoutControl.dispose(),e._tooltipViewer.dispose(),e._dataExchanger.dispose(),e._projection.dispose(),e._dataExchanger=e._gestureHandler=e._projection=e._tracker=e._layoutControl=e._root=e._layerCollection=e._controlBar=e._legendsControl=null},_setupInteraction:function(){var e={centeringEnabled:!!o(this._getOption("panningEnabled",!0),!0),zoomingEnabled:!!o(this._getOption("zoomingEnabled",!0),!0)};this._gestureHandler.setInteraction(e),this._controlBar.setInteraction(e)},_getDefaultSize:function(){return{width:f,height:g}},_applySize:function(e){var t={left:e[0],top:e[1],width:e[2]-e[0],height:e[3]-e[1],right:0,bottom:0};this._projection.setSize(t),this._layoutControl.setSize(t),this._layerCollection.setRect([t.left,t.top,t.width,t.height])},_optionChanging:function(e,t,n){t&&n&&m.test(e)&&(t.dataSource&&n.dataSource&&t!==n?t.dataSource=null:v.test(e)&&this.option(e,null))},_applyChanges:function(){this._notifyDirty(),this.callBase.apply(this,arguments),this._notifyReady()},_optionChangesMap:{background:"BACKGROUND",layers:"LAYERS",controlBar:"CONTROL_BAR",legends:"LEGENDS",touchEnabled:"TRACKER",wheelEnabled:"TRACKER",panningEnabled:"INTERACTION",zoomingEnabled:"INTERACTION",projection:"PROJECTION",bounds:"BOUNDS",maxZoomFactor:"MAX_ZOOM_FACTOR",zoomFactor:"ZOOM_FACTOR",center:"CENTER"},_optionChangesOrder:["PROJECTION","BOUNDS","MAX_ZOOM_FACTOR","ZOOM_FACTOR","CENTER","BACKGROUND","CONTROL_BAR","LEGENDS","TRACKER","INTERACTION"],_change_PROJECTION:function(){this._setProjection()},_change_BOUNDS:function(){this._setBounds()},_change_MAX_ZOOM_FACTOR:function(){this._setMaxZoom()},_change_ZOOM_FACTOR:function(){this._setZoom()},_change_CENTER:function(){this._setCenter()},_change_BACKGROUND:function(){this._setBackgroundOptions()},_change_LAYERS:function(){this._setLayerCollectionOptions()},_change_CONTROL_BAR:function(){this._setControlBarOptions()},_change_LEGENDS:function(){this._setLegendsOptions()},_change_TRACKER:function(){this._setTrackerOptions()},_change_INTERACTION:function(){this._setupInteraction()},_themeDependentChanges:["BACKGROUND","LAYERS","CONTROL_BAR","LEGENDS","TRACKER","INTERACTION"],_setProjection:function(){
117this._projection.setEngine(this.option("projection"))},_setBounds:function(){this._projection.setBounds(this.option("bounds"))},_setMaxZoom:function(){this._projection.setMaxZoom(this.option("maxZoomFactor"))},_setZoom:function(){this._projection.setZoom(this.option("zoomFactor"))},_setCenter:function(){this._projection.setCenter(this.option("center"))},_setBackgroundOptions:function(){this._layerCollection.setBackgroundOptions(this._getOption("background"))},_setLayerCollectionOptions:function(){this._layerCollection.setOptions(this.option("layers"))},_setControlBarOptions:function(){this._controlBar.setOptions(this._getOption("controlBar"))},_setLegendsOptions:function(){this._legendsControl.setOptions(this.option("legends"))},_setTrackerOptions:function(){this._tracker.setOptions({touchEnabled:this._getOption("touchEnabled",!0),wheelEnabled:this._getOption("wheelEnabled",!0)})},getLayers:function(){var e,t=this._layerCollection.items(),n=[],i=n.length=t.length;for(e=0;e<i;++e)n[e]=t[e].proxy;return n},getLayerByIndex:function(e){var t=this._layerCollection.byIndex(e);return t?t.proxy:null},getLayerByName:function(e){var t=this._layerCollection.byName(e);return t?t.proxy:null},clearSelection:function(e){var t,n=this._layerCollection.items(),i=n.length;for(t=0;t<i;++t)n[t].clearSelection(e);return this},center:function(e){var t=this;return void 0===e?t._projection.getCenter():(t._projection.setCenter(e),t)},zoomFactor:function(e){var t=this;return void 0===e?t._projection.getZoom():(t._projection.setZoom(e),t)},viewport:function(e){var t=this;return void 0===e?t._projection.getViewport():(t._projection.setViewport(e),t)},convertCoordinates:function(e){return e=e&&e.length?e:[arguments[0],arguments[1]],this._projection.fromScreenPoint(e)}});n(9)("dxVectorMap",y),e.exports=y,y.addPlugin(n(96).plugin),y.addPlugin(n(106).plugin),y.addPlugin(n(108).plugin),y.addPlugin(n(122).plugin)},function(e,t,n){function i(e){var t=this;t._params=e,t._createElements(e.renderer,e.container,e.dataKey),e.layoutControl.addItem(t),t._subscribeToProjection(e.projection),t._subscribeToTracker(e.tracker),t._createCallbacks(e.projection)}function o(e){delete e._owner,e.update=function(){},e.finish=function(){}}function a(e,t){this._owner=e,this._command=t}function r(e,t,n){function i(){e._callbacks.move([r,s]),o=setTimeout(i,a)}this._command=t;var o=null,a=100,r=0,s=0;switch(this._command){case x:s=-10;break;case b:r=10;break;case w:s=10;break;case C:r=-10}this._stop=function(){return clearTimeout(o),e._callbacks.endMove(),this._stop=e=null,this},n=null,e._callbacks.beginMove(),i()}function s(e,t){function n(){e._adjustZoom(e._zoomFactor+a),i=setTimeout(n,o)}this._owner=e,this._command=t;var i=null,o=150,a=this._command===k?1:-1;this._stop=function(){return clearTimeout(i),this._stop=e=null,this},n()}function l(e,t,n){this._owner=e,this._zoomFactor=e._zoomFactor,this._pos=n.y}var u=Math,c=u.min,d=u.max,h=u.round,p=u.floor,f=u.sqrt,g=n(10),_=g.parseScalar,m=g.enumParser(["left","center","right"]),v=g.enumParser(["top","bottom"]),y="command-reset",x="command-move-up",b="command-move-right",w="command-move-down",C="command-move-left",k="command-zoom-in",S="command-zoom-out",I="command-zoom-drag-line",T="command-zoom-drag",D="control-bar",E=1,A=2,O={bigCircleSize:58,smallCircleSize:28,buttonSize:10,arrowButtonOffset:20,incDecButtonSize:11,incButtonOffset:66,decButtonOffset:227,sliderLineStartOffset:88.5,sliderLineEndOffset:205.5,sliderLength:20,sliderWidth:8,trackerGap:4},B=30.5,P=30.5,M=61,R=274,V={};V[y]=a,V[x]=V[b]=V[w]=V[C]=r,V[k]=V[S]=s,V[T]=l,i.prototype={constructor:i,_flags:0,dispose:function(){var e=this;e._params.layoutControl.removeItem(e),e._root.linkRemove().linkOff(),e._offProjection(),e._offTracker(),e._params=e._root=e._offProjection=e._offTracker=e._callbacks=null},_subscribeToProjection:function(e){function t(){n._adjustZoom(e.getScaledZoom())}var n=this;n._offProjection=e.on({engine:function(){n._update()},zoom:t,"max-zoom":function(){n._zoomPartition=e.getZoomScalePartition(),n._sliderUnitLength=n._sliderLineLength/n._zoomPartition,t()}})},_subscribeToTracker:function(e){var t=this,n=!1;t._offTracker=e.on({start:function(e){n=e.data.name===D,n&&t._processStart(e.data.index,e)},move:function(e){n&&t._processMove(e.data.index,e)},end:function(){n&&(t._processEnd(),n=!1)}})},_createCallbacks:function(e){var t=this;t._callbacks={reset:function(t,n){t&&e.setCenter(null),n&&e.setZoom(null)},beginMove:function(){e.beginMoveCenter()},endMove:function(){e.endMoveCenter()},move:function(t){e.moveCenter(t)},zoom:function(t){e.setScaledZoom(t)}}},_createElements:function(e,t,n){var i,o,a=this;a._root=e.g().attr({"class":"dxm-control-bar"}).linkOn(t,"control-bar"),i=a._buttonsGroup=e.g().attr({"class":"dxm-control-buttons"}).append(a._root),o=e.g().attr({stroke:"none","stroke-width":0,fill:"#000000",opacity:1e-4}).css({cursor:"pointer"}).append(a._root),a._createButtons(e,n,i),a._createTrackers(e,n,o)},_createButtons:function(e,t,n){var i=this,o=O,a=o.buttonSize/2,r=o.arrowButtonOffset-a,s=o.arrowButtonOffset,l=o.incDecButtonSize/2,u={"stroke-linecap":"square",fill:"none"},c="line";e.circle(0,0,o.bigCircleSize/2).append(n),e.circle(0,0,a).attr({fill:"none"}).append(n),e.path([-a,-r,0,-s,a,-r],c).attr(u).append(n),e.path([r,-a,s,0,r,a],c).attr(u).append(n),e.path([a,r,0,s,-a,r],c).attr(u).append(n),e.path([-r,a,-s,0,-r,-a],c).attr(u).append(n),e.circle(0,o.incButtonOffset,o.smallCircleSize/2).append(n),e.path([[-l,o.incButtonOffset,l,o.incButtonOffset],[0,o.incButtonOffset-l,0,o.incButtonOffset+l]],"area").append(n),e.circle(0,o.decButtonOffset,o.smallCircleSize/2).append(n),e.path([-l,o.decButtonOffset,l,o.decButtonOffset],"area").append(n),i._zoomLine=e.path([],"line").append(n),i._zoomDrag=e.rect(p(-o.sliderLength/2),p(o.sliderLineEndOffset-o.sliderWidth/2),o.sliderLength,o.sliderWidth).append(n),i._sliderLineLength=o.sliderLineEndOffset-o.sliderLineStartOffset},_createTrackers:function(e,t,n){var i=O,o=h((i.arrowButtonOffset-i.trackerGap)/2),a=i.arrowButtonOffset-o,r=h(f(i.bigCircleSize*i.bigCircleSize/4-o*o)),s=r-a;e.rect(-o,-o,2*o,2*o).data(t,{index:y,name:D}).append(n),e.rect(-o,-r,2*o,s).data(t,{index:x,name:D}).append(n),e.rect(a,-o,s,2*o).data(t,{index:b,name:D}).append(n),e.rect(-o,a,2*o,s).data(t,{index:w,name:D}).append(n),e.rect(-r,-o,s,2*o).data(t,{index:C,name:D}).append(n),e.circle(0,i.incButtonOffset,i.smallCircleSize/2).data(t,{index:k,name:D}).append(n),e.circle(0,i.decButtonOffset,i.smallCircleSize/2).data(t,{index:S,name:D}).append(n),e.rect(-2,i.sliderLineStartOffset-2,4,i.sliderLineEndOffset-i.sliderLineStartOffset+4).css({cursor:"default"}).data(t,{index:I,name:D}).append(n),this._zoomDragTracker=e.rect(-i.sliderLength/2,i.sliderLineEndOffset-i.sliderWidth/2,i.sliderLength,i.sliderWidth).data(t,{index:T,name:D}).append(n)},resize:function(e){this._isActive&&this._root.attr({visibility:null!==e?null:"hidden"})},getLayoutOptions:function(){return this._isActive?this._layoutOptions:null},locate:function(e,t){this._root.attr({translateX:e+this._margin+B,translateY:t+this._margin+P})},_update:function(){var e=this;e._isActive=e._isEnabled&&e._flags&&e._params.projection.isInvertible(),e._isActive?e._root.linkAppend():e._root.linkRemove(),e._processEnd(),e.updateLayout()},setInteraction:function(e){var t=this;_(e.centeringEnabled,!0)?t._flags|=E:t._flags&=~E,_(e.zoomingEnabled,!0)?t._flags|=A:t._flags&=~A,t._update()},setOptions:function(e){var t=this;t._isEnabled=!!_(e.enabled,!0),t._margin=e.margin||0,t._layoutOptions={width:2*t._margin+M,height:2*t._margin+R,horizontalAlignment:m(e.horizontalAlignment,"left"),verticalAlignment:v(e.verticalAlignment,"top")},t._buttonsGroup.attr({"stroke-width":e.borderWidth,stroke:e.borderColor,fill:e.color,"fill-opacity":e.opacity}),t._update()},_adjustZoom:function(e){var t,n,i=this,o=O.sliderLineStartOffset,a=O.sliderLineEndOffset,r=O.sliderWidth;i._zoomFactor=d(c(h(e),i._zoomPartition),0),t={translateY:-h(i._zoomFactor*i._sliderUnitLength)},n=a-r/2+t.translateY,i._zoomLine.attr({points:[[0,o,0,d(o,n)],[0,c(a,n+r),0,a]]}),i._zoomDrag.attr(t),i._zoomDragTracker.attr(t)},_applyZoom:function(){this._callbacks.zoom(this._zoomFactor)},_processStart:function(e,t){var n;this._isActive&&(n=V[e],this._command=n&&n.flags&this._flags?new n(this,e,t):null)},_processMove:function(e,t){this._command&&this._command.update(e,t)},_processEnd:function(){this._command&&this._command.finish(),this._command=null}},a.flags=E|A,a.prototype.update=function(e){e!==this._command&&o(this)},a.prototype.finish=function(){var e=this._owner._flags;this._owner._callbacks.reset(!!(e&E),!!(e&A)),o(this)},r.flags=E,r.prototype.update=function(e){this._command!==e&&this.finish()},r.prototype.finish=function(){o(this._stop())},s.flags=A,s.prototype.update=function(e){this._command!==e&&this.finish()},s.prototype.finish=function(){this._owner._applyZoom(),o(this._stop())},l.flags=A,l.prototype.update=function(e,t){var n=this._owner;n._adjustZoom(this._zoomFactor+n._zoomPartition*(this._pos-t.y)/n._sliderLineLength)},l.prototype.finish=function(){this._owner._applyZoom(),o(this)},t.ControlBar=i},function(e,t,n){function i(e){var t=this;t._projection=e.projection,t._renderer=e.renderer,t._x=t._y=0,t._subscribeToTracker(e.tracker)}var o=Math.log,a=Math.LN2;i.prototype={constructor:i,dispose:function(){this._offTracker(),this._offTracker=null},_subscribeToTracker:function(e){var t=this,n=!1;t._offTracker=e.on({start:function(e){n="control-bar"!==e.data.name,n&&t._processStart(e)},move:function(e){n&&t._processMove(e)},end:function(){n&&t._processEnd()},zoom:function(e){t._processZoom(e)}})},setInteraction:function(e){this._processEnd(),this._centeringEnabled=e.centeringEnabled,this._zoomingEnabled=e.zoomingEnabled},_processStart:function(e){this._centeringEnabled&&(this._x=e.x,this._y=e.y,this._projection.beginMoveCenter())},_processMove:function(e){var t=this;t._centeringEnabled&&(t._renderer.root.attr({cursor:"move"}),t._projection.moveCenter([t._x-e.x,t._y-e.y]),t._x=e.x,t._y=e.y)},_processEnd:function(){this._centeringEnabled&&(this._renderer.root.attr({cursor:"default"}),this._projection.endMoveCenter())},_processZoom:function(e){var t,n,i,r=this;r._zoomingEnabled&&(e.delta?t=e.delta:e.ratio&&(t=o(e.ratio)/a),r._centeringEnabled&&(n=r._renderer.getRootOffset(),n=[e.x-n.left,e.y-n.top],i=r._projection.fromScreenPoint(n)),r._projection.changeScaledZoom(t),r._centeringEnabled&&r._projection.setCenterByPoint(i,n))}},t.GestureHandler=i},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=this;t._root=e.root,t._createEventHandlers(e.dataKey),t._createProjectionHandlers(e.projection),t._initEvents(),t._focus=new Q(function(e,n){t._fire(e,n)}),t._attachHandlers()}function a(e,t,n,i){return D((e-n)*(e-n)+(t-i)*(t-i))}function r(e){var t=e.originalEvent.type,n=e.originalEvent.pointerType;return/^touch/.test(t)||/^MSPointer/.test(t)&&4!==n||/^pointer/.test(t)&&"mouse"!==n}function s(e,t){for(var n,i=0,o=e.length;i<o;++i)if(e[i]){n=t[i];break}return A(n||t[i],B)}function l(){var e=[S.pointerEnabled,S.msPointerEnabled,_.default.hasProperty("ontouchstart")];Z={start:s(e,["pointerdown","MSPointerDown","touchstart mousedown","mousedown"]),move:s(e,["pointermove","MSPointerMove","touchmove mousemove","mousemove"]),end:s(e,["pointerup","MSPointerUp","touchend mouseup","mouseup"]),wheel:A(C.name,B)}}function u(e){var t=e.originalEvent,n=t.touches&&t.touches[0]||{};return{x:n.pageX||t.pageX||e.pageX,y:n.pageY||t.pageY||e.pageY}}function c(e){return e.originalEvent.pointerId}function d(e,t){var n=e.originalEvent;return n=void 0!==n.pointerId?n.pointerId===t?n:null:n.touches[t],n?{x:n.pageX||e.pageX,y:n.pageY||e.pageY}:null}function h(e,t){if(0===e)return 0;var n=T(e),i=E(e/n);return t.dir&&i!==t.dir?0:(t.dir=i,n=n<.1?0:n<1?1:n>4?4:E(n),i*n)}var p=n(5),f=i(p),g=n(7),_=i(g),m=n(11),v=i(m),y=n(416),x=i(y),b=n(8),w=i(b),C=n(128),k=n(10),S=_.default.getNavigator(),I=Math,T=I.abs,D=I.sqrt,E=I.round,A=w.default.addNamespace,O=Date.now,B="dxVectorMap",P="start",M="move",R="end",V="zoom",F="hover-on",L="hover-off",H="click",z="focus-on",N="focus-move",$="focus-off",W=500,G=5,j=20,q=5,K=10,U=100,Y=50,X=300,Z=void 0;l(),o.prototype={constructor:o,dispose:function(){var e=this;e._detachHandlers(),e._disposeEvents(),e._focus.dispose(),e._root=e._focus=e._docHandlers=e._rootHandlers=null},_eventNames:[P,M,R,V,H,F,L,z,$,N],_startClick:function(e,t){if(t){var n=u(e);this._clickState={x:n.x,y:n.y,threshold:r(e)?j:G,time:O()}}},_endClick:function(e,t){var n,i,o=this._clickState;o&&(t&&O()-o.time<=W&&(n=o.threshold,i=u(e),T(i.x-o.x)<=n&&T(i.y-o.y)<=n&&this._fire(H,{data:t,x:i.x,y:i.y,$event:e})),this._clickState=null)},_startDrag:function(e,t){if(t){var n=u(e),i=this._dragState={x:n.x,y:n.y,data:t};this._fire(P,{x:i.x,y:i.y,data:i.data})}},_moveDrag:function(e,t){var n,i,o=this._dragState;o&&(n=u(e),i=r(e)?K:q,(o.active||T(n.x-o.x)>i||T(n.y-o.y)>i)&&(o.x=n.x,o.y=n.y,o.active=!0,o.data=t||{},this._fire(M,{x:o.x,y:o.y,data:o.data})))},_endDrag:function(){var e=this._dragState;e&&(this._dragState=null,this._fire(R,{x:e.x,y:e.y,data:e.data}))},_wheelZoom:function(e,t){if(t){var n,i,o=this,a=o._wheelLock,r=O();r-a.time<=Y||(r-a.dirTime>X&&(a.dir=0),n=h(e.delta/120||0,a),0!==n&&(i=u(e),o._fire(V,{delta:n,x:i.x,y:i.y}),a.time=a.dirTime=r))}},_startZoom:function(e,t){if(r(e)&&t){var n,i,o=this._zoomState=this._zoomState||{};o.pointer1&&o.pointer2||(void 0===o.pointer1&&(o.pointer1=c(e)||0,n=d(e,o.pointer1),o.x1=o.x1_0=n.x,o.y1=o.y1_0=n.y),void 0===o.pointer2&&(i=c(e)||1,i!==o.pointer1&&(n=d(e,i),n&&(o.x2=o.x2_0=n.x,o.y2=o.y2_0=n.y,o.pointer2=i,o.ready=!0,this._endDrag()))))}},_moveZoom:function(e){var t,n=this._zoomState;n&&r(e)&&(void 0!==n.pointer1&&(t=d(e,n.pointer1),t&&(n.x1=t.x,n.y1=t.y)),void 0!==n.pointer2&&(t=d(e,n.pointer2),t&&(n.x2=t.x,n.y2=t.y)))},_endZoom:function(e){var t,n,i=this._zoomState;i&&r(e)&&(i.ready&&(t=a(i.x1_0,i.y1_0,i.x2_0,i.y2_0),n=a(i.x1,i.y1,i.x2,i.y2),this._fire(V,{ratio:n/t,x:(i.x1_0+i.x2_0)/2,y:(i.y1_0+i.y2_0)/2})),this._zoomState=null)},_startHover:function(e,t){this._doHover(e,t,!0)},_moveHover:function(e,t){this._doHover(e,t,!1)},_doHover:function(e,t,n){var i=this;return i._dragState&&i._dragState.active||i._zoomState&&i._zoomState.ready?void i._cancelHover():void(r(e)!==n||i._hoverTarget===e.target||i._hoverState&&i._hoverState.data===t||(i._cancelHover(),t&&(i._hoverState={data:t},i._fire(F,{data:t})),i._hoverTarget=e.target))},_cancelHover:function(){var e=this._hoverState;this._hoverState=this._hoverTarget=null,e&&this._fire(L,{data:e.data})},_startFocus:function(e,t){this._doFocus(e,t,!0)},_moveFocus:function(e,t){this._doFocus(e,t,!1)},_doFocus:function(e,t,n){var i=this;return i._dragState&&i._dragState.active||i._zoomState&&i._zoomState.ready?void i._cancelFocus():void(r(e)===n&&(i._focus.turnOff(),t&&i._focus.turnOn(t,u(e))))},_cancelFocus:function(){this._focus.cancel()},_createEventHandlers:function(e){function t(t){var n=t.target;return("tspan"===n.tagName?n.parentNode:n)[e]}var n=this;n._docHandlers={},n._rootHandlers={},n._rootHandlers[Z.start]=n._docHandlers[Z.start]=function(e){var i=r(e),o=t(e);i&&!n._isTouchEnabled||(o&&(e.preventDefault(),e.stopPropagation()),n._startClick(e,o),n._startDrag(e,o),n._startZoom(e,o),n._startHover(e,o),n._startFocus(e,o))},n._docHandlers[Z.move]=function(e){var i=r(e),o=t(e);i&&!n._isTouchEnabled||(n._moveDrag(e,o),n._moveZoom(e,o),n._moveHover(e,o),n._moveFocus(e,o))},n._docHandlers[Z.end]=function(e){var i=r(e),o=t(e);i&&!n._isTouchEnabled||(n._endClick(e,o),n._endDrag(e,o),n._endZoom(e,o))},n._rootHandlers[Z.wheel]=function(e){if(n._cancelFocus(),n._isWheelEnabled){var i=t(e);i&&(e.preventDefault(),e.stopPropagation(),n._wheelZoom(e,i))}},n._wheelLock={dir:0}},_createProjectionHandlers:function(e){function t(){n._cancelFocus()}var n=this;e.on({center:t,zoom:t})},reset:function(){var e=this;e._clickState=null,e._endDrag(),e._cancelHover(),e._cancelFocus()},setOptions:function(e){var t=this;t.reset(),t._detachHandlers(),t._isTouchEnabled=!!(0,k.parseScalar)(e.touchEnabled,!0),t._isWheelEnabled=!!(0,k.parseScalar)(e.wheelEnabled,!0),t._attachHandlers()},_detachHandlers:function(){var e=this;e._isTouchEnabled&&e._root.css({"touch-action":"","-webkit-user-select":""}).off(A("MSHoldVisual",B)).off(A("contextmenu",B)),f.default.off(v.default.getDocument(),e._docHandlers),e._root.off(e._rootHandlers)},_attachHandlers:function(){var e=this;e._isTouchEnabled&&e._root.css({"touch-action":"none","-webkit-user-select":"none"}).on(A("MSHoldVisual",B),function(e){e.preventDefault()}).on(A("contextmenu",B),function(e){r(e)&&e.preventDefault()}),f.default.on(v.default.getDocument(),e._docHandlers),e._root.on(e._rootHandlers)}};var Q=function(e){var t,n,i=this,o=null,a=null,r=!1,s=null;i.dispose=function(){clearTimeout(s),i.turnOn=i.turnOff=i.cancel=i.dispose=i=e=o=a=s=null},i.turnOn=function(i,l){function u(e){r=!e,e&&(o=a,clearTimeout(s),s=null)}i===a&&r||(r=!1,a=i,o?(t=l.x,n=l.y,a===o?(e(N,{data:a,x:t,y:n}),u(!0)):e(z,{data:a,x:t,y:n,done:u})):(t=l.x,n=l.y,e(z,{data:a,x:t,y:n,done:u})))},i.turnOff=function(){a=null,o&&!r&&(s=s||setTimeout(function(){s=null,e($,{data:o}),o=null},U))},i.cancel=function(){clearTimeout(s),o&&e($,{data:o}),o=a=s=null}};x.default.makeEventEmitter(o),t.Tracker=o},function(e,t,n){function i(){this._store={}}var o=n(25);i.prototype={constructor:i,dispose:function(){return this._store=null,this},_get:function(e,t){var n=this._store[e]||(this._store[e]={});return n[t]||(n[t]={callbacks:o()})},set:function(e,t,n){var i=this._get(e,t);return i.data=n,i.callbacks.fire(n),this},bind:function(e,t,n){var i=this._get(e,t);return i.callbacks.add(n),i.data&&n(i.data),this},unbind:function(e,t,n){var i=this._get(e,t);return i.callbacks.remove(n),this}},t.DataExchanger=i},function(e,t,n){function i(e,t,n){var i,o,a=t.length,r=[];for(i=0;i<a;++i)r[i]=o={start:e[i],end:e[i+1],index:i},o[n]=t[i],o.states={normal:{fill:o.color}},o.visible=!0;return r}function o(e){this._params=e,this._items=[],e.container.virtualLink("legend-base")}var a=n(0).extend,r=n(3).each,s=a,l=r,u=n(205),c=u.Legend,d={category:"UNKNOWN",name:"UNKNOWN"},h=function(e){var t=this;t._params=e,t._root=e.renderer.g().attr({"class":"dxm-legend"}).linkOn(e.container,{name:"legend",after:"legend-base"}).enableLinks().linkAppend(),e.layoutControl.addItem(t),c.call(t,{renderer:e.renderer,group:t._root,backgroundClass:null,itemsGroupClass:null,textField:"text",getFormatObject:function(e){return e}}),t._onDataChanged=function(e){t._updateData(e)}};h.prototype=s(n(48).clone(c.prototype),{constructor:h,dispose:function(){var e=this;return e._params.layoutControl.removeItem(e),e._unbindData(),e._root.linkRemove().linkOff(),e._params=e._root=e._onDataChanged=null,c.prototype.dispose.apply(e,arguments)},resize:function(e){this._params.notifyDirty(),null===e?this.erase():this.draw(e.width,e.height),this._params.notifyReady()},locate:c.prototype.shift,_updateData:function(e){this._options.defaultColor=e&&e.defaultColor,this.update(e?i(e.partition,e.values,this._dataName):[],this._options,this._params.themeManager.theme("legend").title),this.updateLayout()},_unbindData:function(){this._dataCategory&&this._params.dataExchanger.unbind(this._dataCategory,this._dataName,this._onDataChanged)},_bindData:function(e){this._params.dataExchanger.bind(this._dataCategory=e.category,this._dataName=e.name,this._onDataChanged)},setOptions:function(e){var t=this;t.update(t._data,e,this._params.themeManager.theme("legend").title),t._unbindData();var n=e.source;return t._bindData(n?{category:n.layer,name:n.grouping}:d),t.updateLayout(),t}}),o.prototype={constructor:o,dispose:function(){l(this._items,function(e,t){t.dispose()}),this._params=this._items=null},setOptions:function(e){var t,n=e&&e.length?e:[],i=this._items,o=n.length,a=this._params,r=a.themeManager.theme("legend");for(t=i.length;t<o;++t)i[t]=new h(a);for(t=i.length-1;t>=o;--t)i[t].dispose(),i.splice(t,1);for(a.layoutControl.suspend(),t=0;t<o;++t)i[t].setOptions(s(!0,{},r,n[t]));a.layoutControl.resume()}},t.LegendsControl=o},function(e,t,n){function i(e){return 3*v[e.verticalAlignment]+m[e.horizontalAlignment]}function o(e,t){var n=(e.right-e.left)/3,o=(e.bottom-e.top)/2,a=e.left,r=h(a+n),s=h(a+n+n),l=e.right,u=e.top,c=h(u+o),d=e.bottom,p=[{rect:[a,u,r,c]},{rect:[r,u,s,c],center:!0},{rect:[s,u,l,c],horInversion:!0},{rect:[a,c,r,d],verInversion:!0},{rect:[r,c,s,d],center:!0,verInversion:!0},{rect:[s,c,l,d],horInversion:!0,verInversion:!0}],f=[[],[],[],[],[],[]];return g(t,function(e,t){var n=t.getLayoutOptions();n&&f[i(n)].push({item:t,width:n.width,height:n.height})}),g(p,function(e,t){f[e].length?t.items=f[e]:(t.center?t.rect[0]=t.rect[2]=(t.rect[0]+t.rect[2])/2:t.rect[t.horInversion?0:2]=t.rect[t.horInversion?2:0],t.rect[t.verInversion?1:3]=t.rect[t.verInversion?3:1])}),p}function a(e){g([0,1,2,3,4,5],function(t,n){var i=e[n],o=e[(n+3)%6];i.items&&(o.items||(i.rect[1]=p(i.rect[1],o.rect[3]),i.rect[3]=f(i.rect[3],o.rect[1])))}),g([1,4],function(t,n){var i,o,a=e[n],r=e[n-1],s=e[n+1];a.items?r.items||s.items||(i=a.rect[0]-r.rect[2],o=s.rect[0]-a.rect[2],i>o?i/o>=2?(a.rect[0]-=i,a.right=!0):(a.rect[0]-=o,a.rect[2]+=o):o/i>=2?(a.rect[2]+=o,a.center=null):(a.rect[0]-=i,a.rect[2]+=i)):(r.items&&(r.rect[2]=(a.rect[0]+a.rect[2])/2),s.items&&(s.rect[0]=(a.rect[0]+a.rect[2])/2))})}function r(e,t){var n=!1;return a(e),g(e,function(e,i){i.items&&(n=s(i,t)||n)}),n}function s(e,t){var n=e.rect,i=n[2]-n[0],o=n[3]-n[1],a=0,r=0,s=0,l=n[2],u=n[3],c=n[0],d=n[1],_=[],m=!1;return g(e.items,function(h,g){if(g.width>i||g.height>o)return _.push(null),m=!0,t||!1;if(a+g.width>i&&(r+=s,a=s=0),r+g.height>o)return _.push(null),m=!0,t||!1;s=f(s,g.height);var v=e.horInversion?n[2]-g.width-a:n[0]+a,y=e.verInversion?n[3]-g.height-r:n[1]+r;a+=g.width,l=p(l,v),u=p(u,y),c=f(c,v+g.width),d=f(d,y+g.height),_.push([v,y])}),!t&&m||(a=0,e.right?a=n[2]-n[0]-c+l:e.center&&(a=h((n[2]-n[0]-c+l)/2)),g(e.items,function(e,t){var n=_[e];n?t.item.locate(n[0]+a,n[1]):t.item.resize(null)}),e.rect=[l,u,c,d],e.items=null),m}function l(e,t){var n=o(e,t);r(n)&&r(n,!0)}function u(){var e=this;e._items=[],e._suspended=0,e._updateLayout=function(){e._update()}}var c=n(13).inArray,d=n(3).each,h=Math.round,p=Math.min,f=Math.max,g=d,_=c,m={left:0,center:1,right:2},v={top:0,bottom:1};u.prototype={constructor:u,dispose:function(){this._items=this._updateLayout=null},setSize:function(e){this._canvas=e,this._update()},suspend:function(){++this._suspended},resume:function(){0===--this._suspended&&this._update()},addItem:function(e){this._items.push(e),e.updateLayout=this._updateLayout},removeItem:function(e){this._items.splice(_(e,this._items),1),e.updateLayout=null},_update:function(){var e;0===this._suspended&&(e=this._canvas,g(this._items,function(t,n){n.resize(e)}),l({left:e.left,top:e.top,right:e.width+e.left,bottom:e.height+e.top},this._items))}},t.LayoutControl=u},function(e,t,n){function i(e){var t=le(e);return t=t in be?be[t]:be.single,null!==t&&(t={state:{},single:t}),t}function o(e,t){return(e[t]||{}).name}function a(){}function r(e){this.raw=e}function s(e){this.raw=e}function l(e){return oe(e.features)}function u(e){var t;return e&&(l(e)?t=s:1===e.length&&e[0]&&l(e[0])?(t=s,e=e[0]):oe(e)&&(t=r)),new(t=t||a)(e)}function c(e){return e?l(e)?[e]:e:[]}function d(e,t,n){t.call(n,e)}function h(e){e.text.attr({visibility:e.size[0]/e.spaceSize[0]<xe&&e.size[1]/e.spaceSize[1]<xe?null:"hidden"})}function p(e){e.text.attr({visibility:e.size[0]/e.spaceSize[0]<xe||e.size[1]/e.spaceSize[1]<xe?null:"hidden"})}function f(e,t){return e.attribute(t)}function g(e,t){return void 0!==e?e:t}function _(e){var t=we[e.type],n=e.coordinates;return t||(t="number"==typeof n[0]?ge:"number"==typeof n[0][0]?fe:pe),t}function m(e,t,n,i){e[i].attr(t[i][n])}function v(e,t){return e.project(t)}function y(e,t){var n,i=[],o=i.length=t.length;for(n=0;n<o;++n)i[n]=e.project(t[n]);return i}function x(e,t){return[y(e,t)]}function b(e,t){var n,i=[],o=i.length=t.length;for(n=0;n<o;++n)i[n]=y(e,t[n]);return i}function w(e,t){var n,i=[],o=i.length=t.length;for(n=0;n<o;++n)i[n]=b(e,t[n]);return he.apply([],i)}function C(e,t,n){var i=t.transform(n);e.root.attr({translateX:i[0],translateY:i[1]})}function k(e,t){var n,i,o=[],a=t.length,r=0;for(o.length=2*a,n=0;n<a;++n)i=e.transform(t[n]),o[r++]=i[0],o[r++]=i[1];return o}function S(e,t,n){var i,o=[],a=o.length=n.length;for(i=0;i<a;++i)o[i]=k(t,n[i]);e.root.attr({points:o})}function I(e,t,n){var i=t.transform(n[0]);e.spaceSize=t.getSquareSize(n[1]),e.text.attr({translateX:i[0],translateY:i[1]}),h(e)}function T(e,t,n){var i=t.transform(n[0]);e.spaceSize=t.getSquareSize(n[1]),e.text.attr({translateX:i[0],translateY:i[1]}),p(e)}function D(e,t,n){var i=B(e.settings,n);return E(e.grouping,t,i),void 0===n.color&&n.paletteIndex>=0&&(i.color=i._colors[n.paletteIndex]),i}function E(e,t,n){de(e,function(e,i){var o=A(i.callback(t,i.field),i.partition);o>=0&&(n[e]=i.values[o])})}function A(e,t){var n,i=0,o=t.length-1,a=-1;if(t[i]<=e&&e<=t[o])if(e===t[o])a=o-1;else{for(;o-i>1;)n=i+o>>1,e<t[n]?o=n:i=n;a=i}return a}function O(e,t,n,i){e.params.eventTrigger(i,{target:t.proxy,state:n})}function B(e,t){var n=ce({},e,t);return n.label=ce({},e.label,n.label),n.label.font=ce({},e.label.font,n.label.font),n}function P(e,t){var n,i,o,a=e.params.themeManager,r=e.str,s=B(ce({label:{},color:r.getDefaultColor(e,t.palette)},a.theme("layer:"+r.fullType)),t);if(s.paletteSize>0){for(o=a.createDiscretePalette(s.palette,s.paletteSize),i=0,n=[];i<s.paletteSize;++i)n.push(o.getColor(i));s._colors=n}return s}function M(e,t){return e.attribute(t)}function R(e){var t=e.name,n=e.params.dataExchanger;de(e.grouping,function(e){n.set(t,e,null)}),e.grouping={}}function V(e,t,n){return n?e|=t:e&=~t,e}function F(e,t){return!!(e&t)}function L(e,t,n){var i={index:n,name:t,getElements:function(){return e.getProxies()},clearSelection:function(t){return e.clearSelection(t),i},getDataSource:function(){return e.getDataSource()}};return i}function H(e,t,n){var i={coordinates:function(){return t},attribute:function(e,t){return arguments.length>1?(n[e]=t,i):arguments.length>0?n[e]:n},selected:function(t,n){return arguments.length>0?(e.setSelected(t,n),i):e.isSelected()},applySettings:function(t){return e.update(t),i}};return i}function z(e){var t,n,i,o=e.length,a=e[o-1],r=0,s=0,l=0,u=1/0,c=-(1/0),d=1/0,h=-(1/0);for(t=0;t<o;++t)n=a,a=e[t],i=n[0]*a[1]-a[0]*n[1],l+=i,r+=(n[0]+a[0])*i,s+=(n[1]+a[1])*i,u=Q(u,a[0]),c=J(c,a[0]),d=Q(d,a[1]),h=J(h,a[1]);return{area:X(l)/2,center:[2*r/3/l-(u+c)/2,2*s/3/l-(d+h)/2]}}function N(e){var t,n,i,o=e.length,a=e[0]||[],r=0,s=[0],l=a[0],u=a[0],c=a[1],d=a[1];for(t=1;t<o;++t)n=a,a=e[t],r+=ee((n[0]-a[0])*(n[0]-a[0])+(n[1]-a[1])*(n[1]-a[1])),s[t]=r,l=Q(l,a[0]),u=J(u,a[0]),c=Q(c,a[1]),d=J(d,a[1]);return t=A(r/2,s),n=e[t],a=e[t+1],i=(r/2-s[t])/(s[t+1]-s[t]),o?[[n[0]*(1-i)+a[0]*i,n[1]*(1-i)+a[1]*i],[u-l,d-c],r]:[]}function $(e){var t,n,i,o=e.length,a=0;for(t=0;t<o;++t)n=z(e[t]),n.area>a&&(a=n.area,i=n);return i?[i.center,[ee(i.area),ee(i.area)]]:[[],[]]}function W(e){var t,n,i,o=e.length,a=0;for(t=0;t<o;++t)n=N(e[t]),n[2]>a&&(a=n[2],i=n);return i||[[],[]]}function G(e){var t=this,n=e.renderer;t._params=e,t._layers=[],t._layerByName={},t._rect=[0,0,0,0],t._clip=n.clipRect(),t._background=n.rect().attr({"class":"dxm-background"}).data(e.dataKey,{name:"background"}).append(n.root),t._container=n.g().attr({"class":"dxm-layers","clip-path":t._clip.id}).append(n.root).enableLinks(),t._subscribeToTracker(e.tracker,n,e.eventTrigger)}var j=n(4).noop,q=n(0).extend,K=n(3).each,U=Number,Y=String,X=Math.abs,Z=Math.round,Q=Math.min,J=Math.max,ee=Math.sqrt,te=n(86),ne=n(1).isFunction,ie=n(1).isDefined,oe=Array.isArray,ae=n(10),re=ae.parseScalar,se=ae.patchFontOptions,le=ae.normalizeEnum,ue=j,ce=q,de=K,he=Array.prototype.concat,pe="area",fe="line",ge="marker",_e=0,me=1,ve=2,ye=[0,1,2,2],xe=1,be={none:null,single:-1,multiple:NaN};a.prototype.count=function(){return 0},r.prototype={constructor:r,count:function(){return this.raw.length},item:function(e){return this.raw[e]},geometry:function(e){return{coordinates:e.coordinates}},attributes:function(e){return e.attributes}},s.prototype={constructor:s,count:function(){return this.raw.features.length},item:function(e){return this.raw.features[e]},geometry:function(e){return e.geometry},attributes:function(e){return e.properties}};var we={Point:ge,MultiPoint:fe,LineString:fe,MultiLineString:fe,Polygon:pe,MultiPolygon:pe},Ce=function(e,t){var n,i=le(e.type),o=le(e.elementType),a=ce({},ke);return t.count()>0&&(n=t.geometry(t.item(0)),i=Se[i]?i:_(n),ce(a,Se[i]),a.fullType=a.type=i,Ie[i]&&ce(a,Ie[i](n)),Te[i]&&(o=Te[i][o]?o:Te[i]._default,ce(a,Te[i][o]),a.elementType=o,a.fullType+=":"+o)),a},ke={setup:ue,reset:ue,arrange:ue,updateGrouping:ue,getDefaultColor:ue},Se={};Se[pe]={projectLabel:$,transform:S,transformLabel:I,draw:function(e,t,n){t.root=e.renderer.path([],"area").data(e.dataKey,n)},refresh:ue,getLabelOffset:function(e){return h(e),[0,0]},getStyles:function(e){var t=e.color||null,n=e.borderColor||null,i=g(e.borderWidth,null),o=g(e.opacity,null);return{root:[{"class":"dxm-area",stroke:n,"stroke-width":i,fill:t,opacity:o},{"class":"dxm-area dxm-area-hovered",stroke:e.hoveredBorderColor||n,"stroke-width":g(e.hoveredBorderWidth,i),fill:e.hoveredColor||t,opacity:g(e.hoveredOpacity,o)},{"class":"dxm-area dxm-area-selected",stroke:e.selectedBorderColor||n,"stroke-width":g(e.selectedBorderWidth,i),fill:e.selectedColor||t,opacity:g(e.selectedOpacity,o)}]}},setState:function(e,t,n){m(e,t,n,"root")},hasLabelsGroup:!0,updateGrouping:function(e){Ee(e)},getDefaultColor:ue},Se[fe]={projectLabel:W,transform:S,transformLabel:T,draw:function(e,t,n){t.root=e.renderer.path([],"line").data(e.dataKey,n)},refresh:ue,getLabelOffset:function(e){return p(e),[0,0]},getStyles:function(e){var t=e.color||e.borderColor||null,n=g(e.borderWidth,null),i=g(e.opacity,null);return{root:[{"class":"dxm-line",stroke:t,"stroke-width":n,opacity:i},{"class":"dxm-line dxm-line-hovered",stroke:e.hoveredColor||e.hoveredBorderColor||t,"stroke-width":g(e.hoveredBorderWidth,n),opacity:g(e.hoveredOpacity,i)},{"class":"dxm-line dxm-line-selected",stroke:e.selectedColor||e.selectedBorderColor||t,"stroke-width":g(e.selectedBorderWidth,n),opacity:g(e.selectedOpacity,i)}]}},setState:function(e,t,n){m(e,t,n,"root")},hasLabelsGroup:!0,updateGrouping:function(e){Ee(e)},getDefaultColor:ue},Se[ge]={project:v,transform:C,draw:function(e,t,n){t.root=e.renderer.g(),this._draw(e,t,n)},refresh:ue,hasLabelsGroup:!1,getLabelOffset:function(e,t){return[Z((e.size[0]+J(t.size||0,0))/2)+2,0]},getStyles:function(e){var t={root:[{"class":"dxm-marker"},{"class":"dxm-marker dxm-marker-hovered"},{"class":"dxm-marker dxm-marker-selected"}]};return this._getStyles(t,e),t},setState:function(e,t,n){m(e,t,n,"root"),this._setState(e,t,n)},updateGrouping:function(e){Ee(e),Ae(e)},getDefaultColor:function(e,t){return e.params.themeManager.getAccentColor(t)}};var Ie={};Ie[pe]=function(e){var t=e.coordinates;return{project:t[0]&&t[0][0]&&t[0][0][0]&&"number"==typeof t[0][0][0][0]?w:b}},Ie[fe]=function(e){var t=e.coordinates;return{project:t[0]&&t[0][0]&&"number"==typeof t[0][0][0]?b:x}};var Te={};Te[ge]={_default:"dot",dot:{setup:function(e){e.filter=e.renderer.shadowFilter("-40%","-40%","180%","200%",0,1,1,"#000000",.2)},reset:function(e){e.filter.dispose(),e.filter=null},_draw:function(e,t,n){t.back=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root),t.dot=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i,o){t.dot.attr({filter:o.shadow?e.filter.id:null})},_getStyles:function(e,t){var n=t.size>0?U(t.size):0,i=n,o=n+(t.selectedStep>0?U(t.selectedStep):0),a=i+(t.backStep>0?U(t.backStep):0),r=o+(t.backStep>0?U(t.backStep):0),s=t.color||null,l=t.borderColor||null,u=g(t.borderWidth,null),c=g(t.opacity,null),d=t.backColor||null,h=g(t.backOpacity,null);
118e.dot=[{r:n/2,stroke:l,"stroke-width":u,fill:s,opacity:c},{r:i/2,stroke:t.hoveredBorderColor||l,"stroke-width":g(t.hoveredBorderWidth,u),fill:t.hoveredColor||s,opacity:g(t.hoveredOpacity,c)},{r:o/2,stroke:t.selectedBorderColor||l,"stroke-width":g(t.selectedBorderWidth,u),fill:t.selectedColor||s,opacity:g(t.selectedOpacity,c)}],e.back=[{r:n/2,stroke:"none","stroke-width":0,fill:d,opacity:h},{r:a/2,stroke:"none","stroke-width":0,fill:d,opacity:h},{r:r/2,stroke:"none","stroke-width":0,fill:d,opacity:h}]},_setState:function(e,t,n){m(e,t,n,"dot"),m(e,t,n,"back")}},bubble:{_draw:function(e,t,n){t.bubble=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i,o){t.bubble.attr({r:o.size/2})},_getStyles:function(e,t){var n=t.color||null,i=t.borderColor||null,o=g(t.borderWidth,null),a=g(t.opacity,null);e.bubble=[{stroke:i,"stroke-width":o,fill:n,opacity:a},{stroke:t.hoveredBorderColor||i,"stroke-width":g(t.hoveredBorderWidth,o),fill:t.hoveredColor||t.color,opacity:g(t.hoveredOpacity,a)},{stroke:t.selectedBorderColor||i,"stroke-width":g(t.selectedBorderWidth,o),fill:t.selectedColor||t.color,opacity:g(t.selectedOpacity,a)}]},_setState:function(e,t,n){m(e,t,n,"bubble")},arrange:function(e,t){var n,i,o,a,r,s=[],l=s.length=t.length,u=e.settings,c=u.dataField,d=u.minSize>0?U(u.minSize):0,h=u.maxSize>d?U(u.maxSize):d;if(!u.sizeGroups){for(n=0;n<l;++n)s[n]=J(f(t[n].proxy,c)||0,0);for(i=Q.apply(null,s),o=J.apply(null,s),a=o-i||1,r=h-d,n=0;n<l;++n)t[n]._settings.size=d+r*(s[n]-i)/a}},updateGrouping:function(e){var t=e.settings.dataField;Se[ge].updateGrouping(e),Ae(e,function(e){return f(e,t)})}},pie:{_draw:function(e,t,n){t.pie=e.renderer.g().append(t.root),t.border=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i,o){var a=f(i,e.settings.dataField)||[],r=o._colors,s=0,l=t.pie,u=e.renderer,c=e.dataKey,d=(o.size>0?U(o.size):0)/2,h=90,p=h,g=!1;s=a.reduce(function(e,t){return e+(t||0)},0),0===s&&(g=!0,s=360/a.length),a.forEach(function(e,t){h=p,p+=g?s:(e||0)/s*360,u.arc(0,0,0,d,h,p).attr({"stroke-linejoin":"round",fill:r[t]}).data(c,n).append(l)}),t.border.attr({r:d})},_getStyles:function(e,t){var n=g(t.opacity,null),i=t.borderColor||null,o=g(t.borderWidth,null);e.pie=[{opacity:n},{opacity:g(t.hoveredOpacity,n)},{opacity:g(t.selectedOpacity,n)}],e.border=[{stroke:i,"stroke-width":o},{stroke:t.hoveredBorderColor||i,"stroke-width":g(t.hoveredBorderWidth,o)},{stroke:t.selectedBorderColor||i,"stroke-width":g(t.selectedBorderWidth,o)}]},_setState:function(e,t,n){m(e,t,n,"pie"),m(e,t,n,"border")},arrange:function(e,t){var n,i,o,a=t.length,r=e.settings.dataField,s=0;for(n=0;n<a;++n)i=f(t[n].proxy,r),i&&i.length>s&&(s=i.length);s>0&&(o=e.params.themeManager.createPalette(e.settings.palette,{useHighlight:!0,extensionMode:"alternate"}),i=o.generateColors(s),e.settings._colors=i,e.grouping.color={callback:ue,field:"",partition:[],values:[]},e.params.dataExchanger.set(e.name,"color",{partition:[],values:i}))}},image:{_draw:function(e,t,n){t.image=e.renderer.image(null,null,null,null,null,"center").attr({"pointer-events":"visible"}).data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i){t.image.attr({href:f(i,e.settings.dataField)})},_getStyles:function(e,t){var n=t.size>0?U(t.size):0,i=n+(t.hoveredStep>0?U(t.hoveredStep):0),o=n+(t.selectedStep>0?U(t.selectedStep):0),a=g(t.opacity,null);e.image=[{x:-n/2,y:-n/2,width:n,height:n,opacity:a},{x:-i/2,y:-i/2,width:i,height:i,opacity:g(t.hoveredOpacity,a)},{x:-o/2,y:-o/2,width:o,height:o,opacity:g(t.selectedOpacity,a)}]},_setState:function(e,t,n){m(e,t,n,"image")}}};var De=function(e,t,n,i,o){var a;i&&t&&t.length>1&&(a=o(t.length-1),e.grouping[n]={callback:ne(i)?i:M,field:i,partition:t,values:a},e.params.dataExchanger.set(e.name,n,{partition:t,values:a,defaultColor:e.settings.color}))},Ee=function(e){De(e,e.settings.colorGroups,"color",e.settings.colorGroupingField,function(t){var n,i=e.params.themeManager.createDiscretePalette(e.settings.palette,t),o=[];for(n=0;n<t;++n)o.push(i.getColor(n));return o})},Ae=function(e,t){var n=e.settings;De(e,n.sizeGroups,"size",t||n.sizeGroupingField,function(e){var t=n.minSize>0?U(n.minSize):0,i=n.maxSize>=t?U(n.maxSize):0,o=0,a=[];if(e>1)for(o=0;o<e;++o)a.push((t*(e-o-1)+i*o)/(e-1));else 1===e&&a.push((t+i)/2);return a})},Oe=function(e,t,n,i){var o=this;o._params=e,o._onProjection(),o.proxy=L(o,n,i),o._context={name:n,layer:o.proxy,renderer:e.renderer,projection:e.projection,params:e,dataKey:e.dataKey,str:ke,hover:!1,selection:null,grouping:{},root:e.renderer.g().attr({"class":"dxm-layer"}).linkOn(t,n).linkAppend()},o._container=t,o._options={},o._handles=[],o._data=new a};Oe.prototype=ce({constructor:Oe,_onProjection:function(){var e=this;e._removeHandlers=e._params.projection.on({engine:function(){e._project()},screen:function(){e._transform()},center:function(){e._transformCore()},zoom:function(){e._transform()}})},_dataSourceLoadErrorHandler:function(){this._dataSourceChangedHandler()},_dataSourceChangedHandler:function(){var e=this;e._data=u(e._dataSource&&e._dataSource.items()),e._update(!0)},_dataSourceOptions:function(){return{paginate:!1}},_getSpecificDataSourceOption:function(){return this._specificDataSourceOption},_offProjection:function(){this._removeHandlers(),this._removeHandlers=null},dispose:function(){var e=this;return e._disposeDataSource(),e._destroyHandles(),R(e._context),e._context.root.linkRemove().linkOff(),e._context.labelRoot&&e._context.labelRoot.linkRemove().linkOff(),e._context.str.reset(e._context),e._offProjection(),e._params=e._container=e._context=e.proxy=null,e},setOptions:function(e){var t=this;e=t._options=e||{},"dataSource"in e&&e.dataSource!==t._options_dataSource?(t._options_dataSource=e.dataSource,t._params.notifyDirty(),t._specificDataSourceOption=c(e.dataSource),t._refreshDataSource()):t._data.count()>0&&(t._params.notifyDirty(),t._update(void 0!==e.type&&e.type!==t._context.str.type||void 0!==e.elementType&&e.elementType!==t._context.str.elementType)),t._transformCore()},_update:function(e){var t=this,n=t._context;e&&(n.str.reset(n),n.root.clear(),n.labelRoot&&n.labelRoot.clear(),t._params.tracker.reset(),t._destroyHandles(),n.str=Ce(t._options,t._data),n.str.setup(n),t.proxy.type=n.str.type,t.proxy.elementType=n.str.elementType),n.settings=P(n,t._options),n.hasSeparateLabel=!(!n.settings.label.enabled||!n.str.hasLabelsGroup),n.hover=!!re(n.settings.hoverEnabled,!0),n.selection&&de(n.selection.state,function(e,t){t&&t.resetSelected()}),n.selection=i(n.settings.selectionMode),n.hasSeparateLabel?n.labelRoot||(n.labelRoot=n.renderer.g().attr({"class":"dxm-layer-labels"}).linkOn(t._container,{name:n.name+"-labels",after:n.name}).linkAppend(),t._transformCore()):n.labelRoot&&(n.labelRoot.linkRemove().linkOff(),n.labelRoot=null),e&&t._createHandles(),R(n),n.str.arrange(n,t._handles),n.str.updateGrouping(n),t._updateHandles(),t._params.notifyReady()},_destroyHandles:function(){var e,t=this._handles,n=t.length;for(e=0;e<n;++e)t[e].dispose();this._context.selection&&(this._context.selection.state={}),this._handles=[]},_createHandles:function(){var e,t,n,i=this,o=i._handles=[],a=i._data,r=o.length=a.count(),s=i._context,l=a.geometry,u=a.attributes;for(e=0;e<r;++e)n=a.item(e),o[e]=new Be(s,e,l(n),u(n));for(ne(i._options.customize)&&d(i.getProxies(),i._options.customize,i._params.widget),e=0;e<r;++e)t=o[e],t.project(),t.draw(),t.transform();s.selection&&de(s.selection.state,function(e,t){t&&t.restoreSelected()})},_updateHandles:function(){var e,t=this._handles,n=t.length;for(e=0;e<n;++e)t[e].refresh();if(this._context.settings.label.enabled){for(e=0;e<n;++e)t[e].measureLabel();for(e=0;e<n;++e)t[e].adjustLabel()}},_transformCore:function(){var e=this._params.projection.getTransform();this._context.root.attr(e),this._context.labelRoot&&this._context.labelRoot.attr(e)},_project:function(){var e,t=this._handles,n=t.length;for(e=0;e<n;++e)t[e].project()},_transform:function(){var e,t=this._handles,n=t.length;for(this._transformCore(),e=0;e<n;++e)t[e].transform()},getProxies:function(){var e,t=this._handles,n=[],i=n.length=t.length;for(e=0;e<i;++e)n[e]=t[e].proxy;return n},getProxy:function(e){return this._handles[e].proxy},raiseClick:function(e,t){this._params.eventTrigger("click",{target:this._handles[e].proxy,event:t})},hoverItem:function(e,t){this._handles[e].setHovered(t)},selectItem:function(e,t,n){this._handles[e].setSelected(t,n)},clearSelection:function(){var e=this._context.selection;e&&(de(e.state,function(e,t){t&&t.setSelected(!1)}),e.state={})}},te);var Be=function(e,t,n,i){var o=this,a=o.proxy=H(o,n.coordinates,ce({},i));o._ctx=e,o._index=t,o._fig=o._label=null,o._state=_e,o._coordinates=n.coordinates,o._settings={label:{}},a.index=t,a.layer=e.layer,o._data={name:e.name,index:t}};Be.prototype={constructor:Be,dispose:function(){var e=this;return e._ctx=e.proxy=e._settings=e._fig=e._label=e.data=null,e},project:function(){var e=this._ctx;this._projection=e.str.project(e.projection,this._coordinates),e.hasSeparateLabel&&this._label&&this._projectLabel()},_projectLabel:function(){this._labelProjection=this._ctx.str.projectLabel(this._projection)},draw:function(){var e=this,t=this._ctx;t.str.draw(t,e._fig={},e._data),e._fig.root.append(t.root)},transform:function(){var e=this,t=e._ctx;t.str.transform(e._fig,t.projection,e._projection),t.hasSeparateLabel&&e._label&&e._transformLabel()},_transformLabel:function(){this._ctx.str.transformLabel(this._label,this._ctx.projection,this._labelProjection)},refresh:function(){var e=this,t=e._ctx.str,n=D(e._ctx,e.proxy,e._settings);e._styles=t.getStyles(n),t.refresh(e._ctx,e._fig,e._data,e.proxy,n),e._refreshLabel(n),e._setState()},_refreshLabel:function(e){var t=this,n=t._ctx,i=e.label,o=t._label;n.settings.label.enabled?(o||(o=t._label={root:n.labelRoot||t._fig.root,text:n.renderer.text().attr({"class":"dxm-label"}),size:[0,0]},n.hasSeparateLabel&&(t._projectLabel(),t._transformLabel())),o.value=Y(t.proxy.text||t.proxy.attribute(i.dataField)||""),o.value&&(o.text.attr({text:o.value,x:0,y:0}).css(se(i.font)).attr({align:"center",stroke:i.stroke,"stroke-width":i["stroke-width"],"stroke-opacity":i["stroke-opacity"]}).data(n.dataKey,t._data).append(o.root),o.settings=e)):o&&(o.text.remove(),t._label=null)},measureLabel:function(){var e,t=this._label;t.value&&(e=t.text.getBBox(),t.size=[e.width,e.height,-e.y-e.height/2])},adjustLabel:function(){var e,t=this._label;t.value&&(e=this._ctx.str.getLabelOffset(t,t.settings),t.settings=null,t.text.attr({x:e[0],y:e[1]+t.size[2]}))},update:function(e){var t=this;t._settings=B(t._settings,e),t._fig&&(t.refresh(),t._label&&t._label.value&&(t.measureLabel(),t.adjustLabel()))},_setState:function(){this._ctx.str.setState(this._fig,this._styles,ye[this._state])},_setForeground:function(){var e=this._fig.root;this._state?e.toForeground():e.toBackground()},setHovered:function(e){var t=this,n=F(t._state,me),i=!!e;return t._ctx.hover&&n!==i&&(t._state=V(t._state,me,i),t._setState(),t._setForeground(),O(t._ctx,t,i,"hoverChanged")),t},setSelected:function(e,t){var n,i=this,o=F(i._state,ve),a=!!e,r=i._ctx.selection;r&&o!==a&&(i._state=V(i._state,ve,a),n=r.state[r.single],r.state[r.single]=null,n&&n.setSelected(!1),r.state[r.single||i._index]=e?i:null,i._fig&&(i._setState(),i._setForeground(),t||O(i._ctx,i,a,"selectionChanged")))},isSelected:function(){return F(this._state,ve)},resetSelected:function(){this._state=V(this._state,ve,!1)},restoreSelected:function(){this._fig.root.toForeground()}},G.prototype={constructor:G,dispose:function(){var e=this;e._clip.dispose(),e._layers.forEach(function(e){return e.dispose()}),e._offTracker(),e._params=e._offTracker=e._layers=e._layerByName=e._clip=e._background=e._container=null},_subscribeToTracker:function(e,t,n){var i=this;i._offTracker=e.on({click:function(e){var o=t.getRootOffset(),a=i.byName(e.data.name);e.$event.x=e.x-o.left,e.$event.y=e.y-o.top,a?a.raiseClick(e.data.index,e.$event):"background"===e.data.name&&n("click",{event:e.$event})},"hover-on":function(e){var t=i.byName(e.data.name);t&&t.hoverItem(e.data.index,!0)},"hover-off":function(e){var t=i.byName(e.data.name);t&&t.hoverItem(e.data.index,!1)}})},setOptions:function(e){var t=this,n=e?oe(e)?e:[e]:[],i=t._layerByName,a=t._layers,r=n.length!==a.length||a.some(function(e,t){var i=o(n,t);return ie(i)&&i!==e.proxy.name});if(r){t._params.tracker.reset(),t._layers.forEach(function(e){return e.dispose()}),t._layerByName=i={},t._layers=a=[];for(var s=0,l=n.length;s<l;++s){var u=o(n,s)||"map-layer-"+s,c=a[s]=new Oe(t._params,t._container,u,s);i[u]=c}}a.forEach(function(e,t){e.setOptions(n[t])})},_updateClip:function(){var e=this._rect,t=this._borderWidth;this._clip.attr({x:e[0]+t,y:e[1]+t,width:J(e[2]-2*t,0),height:J(e[3]-2*t,0)})},setBackgroundOptions:function(e){this._background.attr({stroke:e.borderColor,"stroke-width":e.borderWidth,fill:e.color}),this._borderWidth=J(e.borderWidth,0),this._updateClip()},setRect:function(e){this._rect=e,this._background.attr({x:e[0],y:e[1],width:e[2],height:e[3]}),this._updateClip()},byIndex:function(e){return this._layers[e]},byName:function(e){return this._layerByName[e]},items:function(){return this._layers}},t.MapLayerCollection=G},function(e,t,n){function i(e){this._subscribeToTracker(e.tracker,e.tooltip,e.layerCollection)}var o=12;i.prototype={constructor:i,dispose:function(){this._offTracker(),this._offTracker=null},_subscribeToTracker:function(e,t,n){this._offTracker=e.on({"focus-on":function(e){var i,a,r=!1;t.isEnabled()&&(i=n.byName(e.data.name),a=i&&i.getProxy(e.data.index),a&&t.show(a,{x:0,y:0,offset:0},{target:a})&&(t.move(e.x,e.y,o),r=!0)),e.done(r)},"focus-move":function(e){t.move(e.x,e.y,o)},"focus-off":function(){t.hide()}})}},t.TooltipViewer=i},function(e,t,n){e.exports=n(824)},function(e,t,n){function i(e,t){var n,i,o=e[0]||{},a=o[t]||0,r=a,s=a,l=[0],u=[0],c=e.length;for(i=1;i<c;i++)n=e[i][t],n<r?(r=n,l=[i]):n===r&&l.push(i),n>s?(s=n,u=[i]):n===s&&u.push(i);return s===r&&(l=u=[]),{minIndexes:l,maxIndexes:u}}function o(e,t,n,i){return I(e,function(e,o){var a,r,s=null;return void 0!==e&&(s={},a=k(e),s[t]=a?A(o):e[t],r=a?e:e[n],s[n]=null===r?i?void 0:r:E(r),s=void 0!==s[t]&&void 0!==s[n]?s:null),s})}function a(e,t,n,i){var o=-1,a=0,r=1,s=1e-4;return I(e,function(e){var l={};return l[t]=e[t],x(e[n]-i)<s?l[n]=a:e[n]>i?l[n]=r:l[n]=o,l})}function r(e,t,n,i){return n!==i.first&&n!==i.last||(e=t.firstLastColor),(i.min||[]).indexOf(n)>=0&&(e=t.minColor),(i.max||[]).indexOf(n)>=0&&(e=t.maxColor),e}function s(e,t){return function(){var n=r(void 0,t,this.index,e);return n?{visible:!0,border:{color:n}}:{}}}function l(e,t,n){return function(){var i=this.index,o="winloss"===t.type,a=o?t.winlossThreshold:0,s=o?n[i][t.valueField]:this.value,l=o?t.winColor:t.barPositiveColor,u=o?t.lossColor:t.barNegativeColor;return{color:r(s>=a?l:u,t,i,e)}}}var u=n(418),c=n(267),d=n(269),h=1,p=50,f=4,g=250,_=30,m=2,v={line:!0,spline:!0,stepline:!0,area:!0,steparea:!0,splinearea:!0,bar:!0,winloss:!0},y=Math,x=y.abs,b=y.round,w=y.max,C=y.min,k=isFinite,S=n(10),I=S.map,T=S.normalizeEnum,D=n(1).isDefined,E=Number,A=String,O=u.inherit({_rootClassPrefix:"dxsl",_rootClass:"dxsl-sparkline",_themeSection:"sparkline",_defaultSize:{width:g,height:_},_initCore:function(){this.callBase(),this._createSeries()},_initialChanges:["DATA_SOURCE"],_dataSourceChangedHandler:function(){this._requestChange(["UPDATE"])},_updateWidgetElements:function(){this._updateSeries(),this.callBase()},_disposeWidgetElements:function(){var e=this;e._series&&e._series.dispose(),e._series=e._seriesGroup=e._seriesLabelGroup=null},_cleanWidgetElements:function(){this._seriesGroup.remove(),this._seriesLabelGroup.remove(),this._seriesGroup.clear(),this._seriesLabelGroup.clear()},_drawWidgetElements:function(){this._dataIsLoaded()&&(this._drawSeries(),this._drawn())},_getCorrectCanvas:function(){var e=this._allOptions,t=this._canvas,n=e.pointSize&&Math.ceil(e.pointSize/2)+m,i=e.type;return"bar"!==i&&"winloss"!==i&&(e.showFirstLast||e.showMinMax)?{width:t.width,height:t.height,left:t.left+n,right:t.right+n,top:t.top+n,bottom:t.bottom+n}:t},_prepareOptions:function(){var e=this;e._allOptions=e.callBase(),e._allOptions.type=T(e._allOptions.type),v[e._allOptions.type]||(e._allOptions.type="line")},_createHtmlElements:function(){this._seriesGroup=this._renderer.g().attr({"class":"dxsl-series"}),this._seriesLabelGroup=this._renderer.g().attr({"class":"dxsl-series-labels"})},_createSeries:function(){this._series=new d.Series({renderer:this._renderer,seriesGroup:this._seriesGroup,labelsGroup:this._seriesLabelGroup,argumentAxis:this._argumentAxis,valueAxis:this._valueAxis},{widgetType:"chart",type:"line"})},_updateSeries:function(){var e,t,n=this,i=n._series;n._prepareDataSource(),t=n._prepareSeriesOptions(),i.updateOptions(t),e={groups:[{series:[i]}]},e.argumentOptions={type:"bar"===t.type?"discrete":void 0},n._simpleDataSource=c.validateData(n._simpleDataSource,e,n._incidentOccurred,{checkTypeForAllData:!1,convertToAxisDataType:!0,sortingMethod:!0})[i.getArgumentField()],t.customizePoint=n._getCustomizeFunction(),i.updateData(n._simpleDataSource),i.createPoints(),n._groupsDataCategories=e.categories},_optionChangesMap:{dataSource:"DATA_SOURCE"},_optionChangesOrder:["DATA_SOURCE"],_change_DATA_SOURCE:function(){this._updateDataSource()},_prepareDataSource:function(){var e=this,t=e._allOptions,n=t.argumentField,i=t.valueField,r=e._dataSourceItems()||[],s=o(r,n,i,e.option("ignoreEmptyPoints"));"winloss"===t.type?(e._winlossDataSource=s,e._simpleDataSource=a(s,n,i,t.winlossThreshold)):e._simpleDataSource=s},_prepareSeriesOptions:function(){var e=this,t=e._allOptions,n="winloss"===t.type?"bar":t.type;return{visible:!0,argumentField:t.argumentField,valueField:t.valueField,color:t.lineColor,width:t.lineWidth,widgetType:"chart",type:n,opacity:n.indexOf("area")!==-1?e._allOptions.areaOpacity:void 0,point:{size:t.pointSize,symbol:t.pointSymbol,border:{visible:!0,width:m},color:t.pointColor,visible:!1,hoverStyle:{border:{}},selectionStyle:{border:{}}},border:{color:t.lineColor,width:t.lineWidth,visible:"bar"!==n}}},_getCustomizeFunction:function(){var e,t=this,n=t._allOptions,i=t._winlossDataSource||t._simpleDataSource,o=t._getExtremumPointsIndexes(i);return e="winloss"===n.type||"bar"===n.type?l(o,n,t._winlossDataSource):s(o,n)},_getExtremumPointsIndexes:function(e){var t=this,n=t._allOptions,o=e.length-1,a={};return t._minMaxIndexes=i(e,n.valueField),n.showFirstLast&&(a.first=0,a.last=o),n.showMinMax&&(a.min=t._minMaxIndexes.minIndexes,a.max=t._minMaxIndexes.maxIndexes),a},_getStick:function(){return{stick:"bar"!==this._series.type}},_updateRange:function(){var e,t,n=this,i=n._series,o=i.type,a="bar"===o,r="winloss"===o,s=.15,l=.1,u=1,c=-1,d=i.getRangeData(),h=n._allOptions.minValue,p=D(h)&&k(h),f=n._allOptions.maxValue,g=D(f)&&k(f);e=(d.val.max-d.val.min)*s,a||r||"area"===o?(0!==d.val.min&&(d.val.min-=e),0!==d.val.max&&(d.val.max+=e)):(d.val.min-=e,d.val.max+=e),(p||g)&&(p&&g?(d.val.minVisible=C(h,f),d.val.maxVisible=w(h,f)):(d.val.minVisible=p?E(h):void 0,d.val.maxVisible=g?E(f):void 0),r&&(d.val.minVisible=p?w(d.val.minVisible,c):void 0,d.val.maxVisible=g?C(d.val.maxVisible,u):void 0)),i.getPoints().length>1&&a&&(t=(d.arg.max-d.arg.min)*l,d.arg.min=d.arg.min-t,d.arg.max=d.arg.max+t),d.arg.categories=n._groupsDataCategories,n._ranges=d},_getBarWidth:function(e){var t=this,n=t._canvas,i=e*f,o=n.width-n.left-n.right-i,a=b(o/e);return a<h&&(a=h),a>p&&(a=p),a},_correctPoints:function(){var e,t,n=this,i=n._allOptions.type,o=n._series.getPoints(),a=o.length;if("bar"===i||"winloss"===i)for(e=n._getBarWidth(a),t=0;t<a;t++)o[t].correctCoordinates({width:e,offset:0})},_drawSeries:function(){var e=this;e._simpleDataSource.length>0&&(e._correctPoints(),e._series.draw(),e._seriesGroup.append(e._renderer.root))},_isTooltipEnabled:function(){return!!this._simpleDataSource.length},_getTooltipData:function(){var e=this,t=e._allOptions,n=e._winlossDataSource||e._simpleDataSource,i=e._tooltip;if(0===n.length)return{};var o=e._minMaxIndexes,a=t.valueField,r=n[0][a],s=n[n.length-1][a],l=D(o.minIndexes[0])?n[o.minIndexes[0]][a]:r,u=D(o.maxIndexes[0])?n[o.maxIndexes[0]][a]:r,c=i.formatValue(r),d=i.formatValue(s),h=i.formatValue(l),p=i.formatValue(u),f={firstValue:c,lastValue:d,minValue:h,maxValue:p,originalFirstValue:r,originalLastValue:s,originalMinValue:l,originalMaxValue:u,valueText:["Start:",c,"End:",d,"Min:",h,"Max:",p]};return"winloss"===t.type&&(f.originalThresholdValue=t.winlossThreshold,f.thresholdValue=i.formatValue(t.winlossThreshold)),f}});I(["lineColor","lineWidth","areaOpacity","minColor","maxColor","barPositiveColor","barNegativeColor","winColor","lessColor","firstLastColor","pointSymbol","pointColor","pointSize","type","argumentField","valueField","winlossThreshold","showFirstLast","showMinMax","ignoreEmptyPoints","minValue","maxValue"],function(e){O.prototype._optionChangesMap[e]="OPTIONS"}),n(9)("dxSparkline",O),e.exports=O,O.addPlugin(n(145).plugin)},function(e,t,n){e.exports=n(826)},function(e,t,n){var i=n(3).each,o=n(418),a=.02,r=.98,s=.1,l=.9,u=300,c=30,d=1,h=2,p=Number,f=isFinite,g=o.inherit({_rootClassPrefix:"dxb",_rootClass:"dxb-bullet",_themeSection:"bullet",_defaultSize:{width:u,height:c,left:d,right:d,top:h,bottom:h},_disposeWidgetElements:function(){delete this._zeroLevelPath,delete this._targetPath,delete this._barValuePath},_cleanWidgetElements:function(){this._zeroLevelPath.remove(),this._targetPath.remove(),this._barValuePath.remove()},_drawWidgetElements:function(){this._drawBullet(),this._drawn()},_createHtmlElements:function(){var e=this._renderer;this._zeroLevelPath=e.path(void 0,"line").attr({"class":"dxb-zero-level","stroke-linecap":"square"}),this._targetPath=e.path(void 0,"line").attr({"class":"dxb-target","stroke-linecap":"square"}),this._barValuePath=e.path(void 0,"line").attr({"class":"dxb-bar-value","stroke-linecap":"square"})},_prepareOptions:function(){var e,t,n,i,o,a,r,s,l=this;l._allOptions=e=l.callBase(),r=void 0===l._allOptions.value,s=void 0===l._allOptions.target,l._tooltipEnabled=!(r&&s),r&&(l._allOptions.value=0),s&&(l._allOptions.target=0),e.value=o=p(e.value),e.target=a=p(e.target),void 0===l._allOptions.startScaleValue&&(l._allOptions.startScaleValue=a<o?a:o,l._allOptions.startScaleValue=l._allOptions.startScaleValue<0?l._allOptions.startScaleValue:0),void 0===l._allOptions.endScaleValue&&(l._allOptions.endScaleValue=a>o?a:o),e.startScaleValue=t=p(e.startScaleValue),e.endScaleValue=n=p(e.endScaleValue),n<t&&(i=n,l._allOptions.endScaleValue=t,l._allOptions.startScaleValue=i,l._allOptions.inverted=!0)},_updateRange:function(){var e=this,t=e._allOptions;e._ranges={arg:{invert:t.inverted,min:t.startScaleValue,max:t.endScaleValue,axisType:"continuous",dataType:"numeric"},val:{min:0,max:1,axisType:"continuous",dataType:"numeric"}}},_drawBullet:function(){var e=this,t=e._allOptions,n=t.startScaleValue!==t.endScaleValue,i=f(t.startScaleValue),o=f(t.endScaleValue),a=f(t.value),r=f(t.target);n&&o&&i&&r&&a&&(this._drawBarValue(),this._drawTarget(),this._drawZeroLevel())},_getTargetParams:function(){var e=this,t=e._allOptions,n=e._valueAxis.getTranslator(),i=e._argumentAxis.getTranslator().translate(t.target);return{points:[i,n.translate(a),i,n.translate(r)],stroke:t.targetColor,"stroke-width":t.targetWidth}},_getBarValueParams:function(){var e,t,n=this,i=n._allOptions,o=n._argumentAxis.getTranslator(),a=n._valueAxis.getTranslator(),r=i.startScaleValue,u=i.endScaleValue,c=i.value,d=a.translate(s),h=a.translate(l);return c>0?(e=r<=0?0:r,t=c>=u?u:c<e?e:c):(e=u>=0?0:u,t=c<r?r:c>e?e:c),e=o.translate(e),t=o.translate(t),{points:[e,h,t,h,t,d,e,d],fill:i.color}},_getCorrectCanvas:function(){return this._canvas},_getZeroLevelParams:function(){var e=this,t=e._valueAxis.getTranslator(),n=e._argumentAxis.getTranslator().translate(0);return{points:[n,t.translate(a),n,t.translate(r)],stroke:e._allOptions.targetColor,"stroke-width":1}},_drawZeroLevel:function(){var e=this,t=e._allOptions;0>t.endScaleValue||0<t.startScaleValue||!t.showZeroLevel||e._zeroLevelPath.attr(e._getZeroLevelParams()).sharp().append(e._renderer.root)},_drawTarget:function(){var e=this,t=e._allOptions,n=t.target;n>t.endScaleValue||n<t.startScaleValue||!t.showTarget||e._targetPath.attr(e._getTargetParams()).sharp().append(e._renderer.root)},_drawBarValue:function(){this._barValuePath.attr(this._getBarValueParams()).append(this._renderer.root)},_getTooltipCoords:function(){var e=this._canvas,t=this._renderer.getRootOffset(),n=this._barValuePath.getBBox();return{x:n.x+n.width/2+t.left,y:e.height/2+t.top}},_getTooltipData:function(){var e=this,t=e._tooltip,n=e._allOptions,i=n.value,o=n.target,a=t.formatValue(i),r=t.formatValue(o);return{originalValue:i,originalTarget:o,value:a,target:r,valueText:["Actual Value:",a,"Target Value:",r]}},_isTooltipEnabled:function(){return this._tooltipEnabled}});i(["color","targetColor","targetWidth","showTarget","showZeroLevel","value","target","startScaleValue","endScaleValue"],function(e,t){g.prototype._optionChangesMap[t]="OPTIONS"}),n(9)("dxBullet",g),e.exports=g},function(e,t,n){e.exports=n(828)},function(e,t,n){var i=e.exports=n(73);n(419),n(829),n(830),n(831),n(421),n(832),n(833),n(147),n(422),n(834),n(424),n(835),n(836),n(837),i.addPlugin(n(96).plugin),i.addPlugin(n(106).plugin),i.addPlugin(n(122).plugin)},function(e,t,n){function i(e,t,n){return((n-1)*e+t)/n}function o(e){return a(e,i,!0)}var a=n(420);n(123).addAlgorithm("strip",o),e.exports=o},function(e,t,n){function i(e){var t=e.items,n=o.buildSidesData(e.rect,e.directions,e.isRotated?1:0);o.calculateRectangles(t,0,e.rect,n,{sum:e.sum,count:t.length,side:n.variedSide})}var o=n(123);o.addAlgorithm("sliceanddice",i),e.exports=i},function(e,t,n){function i(e){return e.isRotated=!e.isRotated,a.call(this,e)}var o=n(123),a=o.getAlgorithm("sliceanddice");o.addAlgorithm("rotatedsliceanddice",i)},function(e,t,n){function i(e,t){return function(n){return e(n,t)}}function o(e){return[Number(e[0])||0,e[1]-e[0]||1]}function a(e,t){var n,i,a=e.length,r=[];for(n=0;n<a;++n)i=t(e[n]),isFinite(i)&&r.push(i);return o([u.apply(null,r),c.apply(null,r)])}function r(e,t){var n={};return function(i){var o=i.parent;return e(i,n[o._id]||(n[o._id]=a(o.nodes,t)))}}function s(e,t){function n(e,t){return a.getColor((s(e)-t[0])/t[1])}var a=t.createGradientPalette(e.palette),s=l(e);return"range"in e?i(n,o(e.range||[])):r(n,s)}var l=n(124).createColorCodeGetter,u=Math.min,c=Math.max;n(124).addColorizer("gradient",s),e.exports=s},function(e,t,n){function i(e,t){var n,i=0,o=t.length-1,a=-1;if(t[i]<=e&&e<=t[o])if(e===t[o])a=o-1;else{for(;o-i>1;)n=i+o>>1,e<t[n]?o=n:i=n;a=i}return a}function o(e,t){var n=e.range||[],o=t.createDiscretePalette(e.palette,n.length-1),r=a(e);return function(e){return o.getColor(i(r(e),n))}}var a=n(124).createColorCodeGetter;n(124).addColorizer("range",o),e.exports=o},function(e,t,n){function i(e,t){var n,i,o=t.length;for(n=0;n<o;++n)i=e[t[n]],m[Number(i.isNode())](i.tile)}function o(e){e.toForeground()}function a(e){e.outer.toForeground(),e.inner.toForeground()}var r=n(73).prototype,s=n(170).prototype,l=n(143).expand,u=n(276),c=u.buildRectAppearance,d=n(10).normalizeEnum,h=n(13).inArray,p=0,f=1,g=2,_=2;n(147),n(423),r._eventsMap.onSelectionChanged={name:"selectionChanged"},l(r._handlers,"calculateAdditionalStates",function(e,t){e[2]=t.selectionStyle?c(t.selectionStyle):{}}),s.statesMap[2]=s.statesMap[3]=_,s.additionalStates.push(2),l(r,"_onNodesCreated",function(){this._selectionList.length=0}),l(r,"_extendProxyType",function(e){var t=this;e.select=function(e){t._selectNode(this._id,!!e)},e.isSelected=function(){return h(this._id,t._selectionList)>=0},t._selectionList=[]}),n(73).addChange({code:"SELECTION_MODE",handler:function(){var e,t,n=this,i=d(n._getOption("selectionMode",!0)),o=n._selectionList;e="none"===i?p:"multiple"===i?g:f,e===f&&o.length>1?(t=o.pop(),n.clearSelection(),o.push(t)):e===p&&n.clearSelection(),n._selectionMode=e},isThemeDependent:!0,isOptionChange:!0,option:"selectionMode"}),l(r,"_applyTilesAppearance",function(){this._selectionList.length&&i(this._nodes,this._selectionList)});var m=[o,a];r._applySelectionState=function(e,t){var n=this._nodes[e];n.setState(_,t),this._eventTrigger("selectionChanged",{node:n.proxy})},r._selectNode=function(e,t){var n,i,o,a=this;a._selectionMode!==p&&(a._context.suspend(),n=a._selectionList,i=h(e,n),t&&i===-1?(a._selectionMode===f&&n.length&&(o=n.pop(),a._applySelectionState(o,!1)),n.push(e),a._applySelectionState(e,!0)):!t&&i>=0&&(n.splice(i,1),a._applySelectionState(e,!1)),a._context.resume())},r.clearSelection=function(){var e,t=this,n=t._selectionList,i=n.length;if(t._selectionMode!==p){for(t._context.suspend(),e=0;e<i;++e)t._applySelectionState(n[e],!1);n.length=0,t._context.resume()}}},function(e,t,n){var i=n(73).prototype,o=n(277).Tracker,a=n(143).expand,r=n(10).parseScalar,s="__treemap_data_",l=0;n(147),n(422),n(424),i._eventsMap.onClick={name:"click"},a(i,"_initCore",function(){var e=this,t=s+l++,n=function(t){return e._nodes[t].proxy};e._tracker=new o({widget:e,root:e._renderer.root,getNode:function(t){var i=n(t),o=r(e._getOption("interactWithGroup",!0));return o&&i.isLeaf()&&i.getParent().isActive()?i.getParent():i},getData:function(e){var n=e.target;return("tspan"===n.tagName?n.parentNode:n)[t]},getProxy:n,click:function(t){e._eventTrigger("click",t)}}),e._handlers.setTrackerData=function(e,n){n.data(t,e._id)}}),a(i,"_disposeCore",function(){this._tracker.dispose()})},function(e,t,n){var i=n(73).prototype,o=n(143).expand;n(147),i._eventsMap.onDrill={name:"drill"},o(i,"_extendProxyType",function(e){var t=this;e.drillDown=function(){t._drillToNode(this._id)}}),o(i,"_onNodesCreated",function(){this._drilldownIndex=-1}),i._drillToNode=function(e){var t,n=this;n._drilldownIndex!==e&&(t=n._nodes[e]||n._root,t.nodes&&(n._drilldownIndex=e,n._topNode=t,n._context.suspend(),n._context.change(["MAX_DEPTH","NODES_RESET"]),n._context.resume(),n._eventTrigger("drill",{node:t.proxy})))},i.resetDrillDown=function(){return this._drillToNode(-1),this},i.drillUp=function(){return this._drillToNode(this._topNode.parent._id||-1),this},i.getCurrentNode=function(){return this._topNode.proxy}},function(e,t,n){function i(e,t){var n,o,a,r=e.struct;for(o=0;o<t.length;o++)n=t[o],a=n[e.idField],r[a]&&(n.items=r[a].items,r[a]=null,i(e,n.items))}var o=n(73).prototype;o._optionChangesMap.idField=o._optionChangesMap.parentField="NODES_CREATE",o._processDataSourceItems=function(e){var t,n,o,a,r,s={},l=this._getOption("idField",!0),u=this._getOption("parentField",!0),c=[];if(!l||!u||0===e.length)return{items:e,isPlain:!0};for(t=0;t<e.length;t++)n=e[t],o=n[u],o?(s[o]=s[o]||{items:[]},a=s[o].items):a=c,a.push(n);i({struct:s,idField:l},c);for(r in s)s[r]&&c.push(s[r]);return{items:c,isPlain:!0}}},function(e,t,n){var i=n(425);i.addPlugin(n(843).plugin),i.addPlugin(n(96).plugin),i.addPlugin(n(106).plugin),i.addPlugin(n(205).plugin),i.addPlugin(n(844).plugin),i.addPlugin(n(845).plugin),i.addPlugin(n(122).plugin),e.exports=i},function(e,t,n){var i,o=n(10).normalizeEnum,a={};t.getAlgorithm=function(e){return a[o(e)]||i},t.addAlgorithm=function(e,t,n){a[e]=t,n&&(i=a[e])}},function(e,t,n){var i=.5;e.exports={getFigures:function(e){var t=1/e.length;return e.map(function(e,n,o){var a=o[n+1]?o[n+1]:o[n];return[i-e/2,t*n,i+e/2,t*n,i+a/2,t*(n+1),i-a/2,t*(n+1)]})},normalizeValues:function(e){var t=e.reduce(function(e,t){return Math.max(t.value,e)},e[0]&&e[0].value||0);return e.map(function(e){return e.value/t})}}},function(e,t,n){var i=.5,o=0,a=1;e.exports={getFigures:function(e,t,n){var r=0,s=0,l=0,u=0,c=t/2,d=i-c,h=1-n,p=i-c,f=i+c;return e.map(function(e){return l=u,s=r,r+=e,u=d*r/h,s<=h&&r<=h?[l,s,a-l,s,a-u,r,o+u,r]:s<=h&&r>h?[l,s,a-l,s,f,h,f,r,p,r,p,h]:[p,s,f,s,f,r,p,r]})},normalizeValues:function(e){var t=e.reduce(function(e,t){return e+t.value},0);return e.map(function(e){return e.value/t})}}},function(e,t,n){function i(e,t,n){
119var i=t.border,o=n.border,a=r(i.visible)?i.visible:o.visible,s=r(i.width)?i.width:o.width;return{fill:e,hatching:t.hatching,stroke:i.color||o.color,"stroke-width":a?s:0}}function o(e,t){var n=this,o=t.data;n.code=0,n.widget=e,n.figure=t.figure,n.argument=o.argument,n.value=o.value,n.data=o.dataItem,n.percent=t.percent,n.id=t.id,n.color=t.color,n.states={normal:i(t.color,t.itemOptions,t.itemOptions),hover:i(t.color,t.itemOptions.hoverStyle,t.itemOptions),selection:i(t.color,t.itemOptions.selectionStyle,t.itemOptions)}}var a=["normal","hover","selection","selection"],r=n(1).isDefined;o.prototype={getState:function(){return a[this.code]},getNormalStyle:function(){return this.states.normal},setHover:function(){this.hover(!0)},hover:function(e){this.widget._getOption("hoverEnabled",!0)&&e!==this.isHovered()&&(this.widget._suspend(),e&&this.widget.clearHover(),this.setState(1,e),this.widget._eventTrigger("hoverChanged",{item:this}),this.widget._resume())},setState:function(e,t){t?this.code|=e:this.code&=~e,this.widget._applyTilesAppearance()},select:function(e){var t=this.widget._getOption("selectionMode",!0);"none"!==t&&e!==this.isSelected()&&(this.widget._suspend(),e&&"multiple"!==t&&this.widget.clearSelection(),this.setState(2,e),this.widget._eventTrigger("selectionChanged",{item:this}),this.widget._resume())},showTooltip:function(e){this.widget._showTooltip(this.id,e)},getColor:function(){return this.color},isHovered:function(){return!!(1&this.code)},isSelected:function(){return!!(2&this.code)}},e.exports=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e){return e=(0,x.normalizeEnum)(e),e===C?S:e===k?0:I}function r(e){return e=(0,x.normalizeEnum)(e),e===C||e!==k}function s(e,t,n){return n?e-t.height:e}function l(e,t,n,i){return{x:e[2]+n.horizontalOffset+S,y:s(e[3]+n.verticalOffset,t,i)}}function u(e,t,n,i){return{x:e[0]-t.width-n.horizontalOffset-S,y:s(e[1]+n.verticalOffset,t,i)}}function c(e,t,n){var i=e[2]-e[0],o=e[7]-e[1];return{x:e[0]+i/2+n.horizontalOffset-t.width/2,y:e[1]+n.verticalOffset+o/2-t.height/2}}function d(e,t,n){return function(i,o,a,r){return{x:"left"===n?t[2]+a.horizontalOffset+I:e[2]-o.width,y:s(i[3]+a.verticalOffset,o,r)}}}function h(e,t,n){return function(i,o,a,r){return{x:"left"===n?e[0]:t[0]-o.width-a.horizontalOffset-I,y:s(i[3]+a.verticalOffset,o,r)}}}function p(e,t){function n(e){return i?[e[0]+D,e[1]+s]:[e[2]-D,e[3]+s]}var i="left"===e.horizontalAlignment,a=i?T:-T,s=t?-D:0;return{isLabelInside:function(){return!r(e.position)},getFigureCenter:n,prepareLabelPoints:function(e){var t=e.x+a,n=e.y,i=t+e.width;return[].concat(o(Array(e.height+1))).map(function(e,i){return[t,n+i]}).concat([].concat(o(Array(e.height+1))).map(function(e,t){return[i,n+t]}))},isHorizontal:function(){return!0},findFigurePoint:function(e){return n(e)},adjustPoints:function(e){return e.map(Math.round)}}}function f(e,t,n){var i=e||{},o=(0,b.extend)({},i.font)||{},a=i.border||{},s=i.connector||{},l={fill:i.backgroundColor||t,"stroke-width":a.visible?a.width||0:0,stroke:a.visible&&a.width?a.color:"none",dashStyle:a.dashStyle},u={stroke:s.visible&&s.width?s.color||t:"none","stroke-width":s.visible?s.width||0:0,opacity:s.opacity};return o.color="none"===i.backgroundColor&&"#ffffff"===(0,x.normalizeEnum)(o.color)&&"inside"!==i.position?t:o.color,{format:i.format,textAlignment:i.textAlignment||(r(i.position)?n:"center"),customizeText:i.customizeText,attributes:{font:o},visible:0!==o.size&&i.visible,showForZeroValues:i.showForZeroValues,horizontalOffset:i.horizontalOffset,verticalOffset:i.verticalOffset,background:l,connector:u,wordWrap:e.wordWrap,textOverflow:e.textOverflow}}function g(e,t,n){return e.x<n[0]&&(e.x=n[0]),e.x+t.width>n[2]&&(e.x=n[2]-t.width),e.y<n[1]&&(e.y=n[1]),e.y+t.height>n[3]&&(e.y=n[3]-t.height),e}function _(e,t,n){e.reduce(function(e,t,i,o){var a=o[i+1];if(e>0){var r=t.getBoundingRect(),s=a?a.getBoundingRect().y+a.getBoundingRect().height:n,l=r.y-s,u=Math.min(l,e);o.slice(0,i+1).forEach(function(e){var t=e.getBoundingRect();e.shift(t.x,t.y-u)}),e-=u}return e},t)}var m=function(){function e(e,t){var n=[],i=!0,o=!1,a=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done)&&(n.push(r.value),!t||n.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=n(270),y=i(v),x=n(10),b=n(0),w=n(4),C="outside",k="inside",S=5,I=20,T=4,D=1;t.plugin={name:"lables",init:w.noop,dispose:w.noop,extenders:{_initCore:function(){this._labelsGroup=this._renderer.g().attr({"class":this._rootClassPrefix+"-labels"}).append(this._renderer.root),this._labels=[]},_applySize:function(){var e,t=this._getOption("label"),n=this._getOption("adaptiveLayout"),i=this._rect,o=0,s=i[2]-i[0];return this._labelRect=i.slice(),this._labels.length&&r(t.position)?(e=this._labels.map(function(e){return e.resetEllipsis(),e.getBoundingRect().width}).reduce(function(e,t){return Math.max(e,t)},0),o=e+t.horizontalOffset+a(t.position),!n.keepLabels&&s-o<n.width?void this._labels.forEach(function(e){e.draw(!1)}):(s-o<n.width&&(o=s-n.width,o=o>0?o:0),this._labels.forEach(function(e){e.draw(!0)}),void("left"===t.horizontalAlignment?i[0]+=o:i[2]-=o))):void((0,x.normalizeEnum)("none"!==this._getOption("resolveLabelOverlapping",!0))&&this._labels.forEach(function(e){return!e.isVisible()&&e.draw(!0)}))},_buildNodes:function(){this._createLabels()},_change_TILING:function(){var e,t=this,n=t._getOption("label"),i=c,o=t._getOption("inverted",!0);r(n.position)&&((0,x.normalizeEnum)(n.position)===C?i="left"===n.horizontalAlignment?u:l:(e=this._defaultLabelTextAlignment(),i="left"===n.horizontalAlignment?h(this._labelRect,this._rect,e):d(this._labelRect,this._rect,e))),t._labels.forEach(function(e,a){var s,l,u=t._items[a],c=u.getNormalStyle()["stroke-width"],d=o?c/2:-c/2,h=d?u.coords.map(function(e,t){return 1===t||3===t?e-d:2===t?e-c:0===t?e+c:e}):u.coords;return n.showForZeroValues||0!==u.value?(r(n.position)&&t._correctLabelWidth(e,u.coords,n),s=e.getBoundingRect(),l=g(i(h,s,n,o),s,t._labelRect),e.setFigureToDrawConnector(h),void e.shift(l.x,l.y)):void e.draw(!1)}),t._resolveLabelOverlapping()}},members:{_resolveLabelOverlapping:function(){var e=this,t=(0,x.normalizeEnum)(e._getOption("resolveLabelOverlapping",!0)),n=this._getOption("inverted",!0)?e._labels.slice().reverse():e._labels;if("hide"===t)n.reduce(function(e,t){return t.getBoundingRect().y<e?t.hide():e=t.getBoundingRect().y+t.getBoundingRect().height,e},0);else if("shift"===t){var i=this._labelRect[3];n.reduce(function(t,n,o,a){var r=m(t,2),s=r[0],l=r[1],u=n.getBoundingRect(),c=u.y;return u.y<s&&(n.shift(u.x,s),c=s),c-s>0&&(l+=c-s),c+u.height>i?l&&l>c+u.height-i?(_(a.slice(0,o).reverse(),c+u.height-i,e._labelRect[1]),l-=c+u.height-i,n.shift(u.x,c-(c+u.height-i)),s=c-(c+u.height-i)+u.height):n.hide():s=c+u.height,[s,l]},[this._labelRect[1],0])}},_defaultLabelTextAlignment:function(){return this._getOption("rtlEnabled",!0)?"right":"left"},_correctLabelWidth:function(e,t,n){var i="left"===n.horizontalAlignment,o=i?this._labelRect[0]:t[2],a=i?t[0]:this._labelRect[2],r=a-o;e.getBoundingRect().width>r&&e.fit(r)},_createLabels:function(){var e=this,t=e._getOption("label"),n=p(t,e._getOption("inverted",!0));this._labelsGroup.clear(),t.visible&&(this._labels=e._items.map(function(i){var o=new y.default.Label({renderer:e._renderer,labelsGroup:e._labelsGroup,strategy:n});return o.setOptions(f(t,i.color,e._defaultLabelTextAlignment())),o.setData({item:i,value:i.value,percent:i.percent}),o.draw(!0),o}),this._labels.length&&r(t.position)&&this._requestChange(["LAYOUT"]))}},customize:function(e){e.prototype._proxyData.push(function(e,t){var n,i=this;return i._labels.forEach(function(o,a){var s=o.getBoundingRect();if(e>=s.x&&e<=s.x+s.width&&t>=s.y&&t<=s.y+s.height){var l=r(i._getOption("label").position)?"outside":"inside";return n={id:a,type:l+"-label"},!0}}),n}),["label","resolveLabelOverlapping"].forEach(function(t){e.addChange({code:t.toUpperCase(),handler:function(){this._createLabels(),this._requestChange(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:t})})},fontFields:["label.font"]}},function(e,t,n){var i=n(425).prototype,o=n(277).Tracker,a="__funnel_data_",r=n(1).isDefined,s=0;i._eventsMap.onItemClick={name:"itemClick"},i._eventsMap.onLegendClick={name:"legendClick"},t.plugin={name:"tracker",init:function(){var e=this,t=a+s++,n=function(t){var n=e._renderer.getRootOffset(),i=Math.floor(t.pageX-n.left),o=Math.floor(t.pageY-n.top);return e._hitTestTargets(i,o)};e._tracker=new o({widget:e,root:e._renderer.root,getData:function(e,i){var o,a=e.target,s=a[t];return r(s)?s:(o=n(e),i&&o&&"inside-label"!==o.type?void 0:o&&o.id)},getNode:function(t){return e._items[t]},click:function(t){var i=n(t.event),o=i&&i.type,a="legend"===o?"legendClick":"itemClick";e._eventTrigger(a,{item:t.node,event:t.event})}}),this._dataKey=t},dispose:function(){this._tracker.dispose()},extenders:{_change_TILING:function(){var e=this._dataKey;this._items.forEach(function(t,n){t.element.data(e,n)})}}}},function(e,t,n){function i(e,t){var n=t.getRootOffset();return[(e[0]+e[2])/2+n.left,(e[1]+e[5])/2+n.top]}var o=n(4).noop;t.plugin={name:"funnel-tooltip",init:o,dispose:o,extenders:{_buildNodes:function(){this.hideTooltip()},_change_TILING:function(){this._tooltipIndex>=0&&this._moveTooltip(this._items[this._tooltipIndex])}},members:{hideTooltip:function(){this._tooltipIndex>=0&&(this._tooltipIndex=-1,this._tooltip.hide())},_moveTooltip:function(e,t){var n=t||e.coords&&i(e.coords,this._renderer)||[-1e3,-1e3];this._tooltip.move(n[0],n[1],0)},_showTooltip:function(e,t){var n=this,i=n._tooltip,o=n._items[e],a=n._tooltipIndex===e||i.show({value:o.value,valueText:i.formatValue(o.value),percentText:i.formatValue(o.percent,"percent"),percent:o.percent,item:o},{x:0,y:0,offset:0},{item:o});a?n._moveTooltip(o,t):i.hide(),n._tooltipIndex=a?e:-1}},customize:function(e){e.addPlugin(n(108).plugin)}}},function(e,t,n){var i=n(426),o=n(851).setTooltipCustomOptions;i.addPlugin(n(96).plugin),i.addPlugin(n(106).plugin),i.addPlugin(n(852).plugin),i.addPlugin(n(122).plugin),i.addPlugin(n(108).plugin),o(i),e.exports=i},function(e,t,n){function i(e,t,n){var i=t.border,o=n.border,a=s(i.visible)?i.visible:o.visible,r=s(i.width)?i.width:o.width,l=s(i.opacity)?i.opacity:s(o.opacity)?o.opacity:1,u=s(t.opacity)?t.opacity:s(n.opacity)?n.opacity:1;return{fill:t.color||e,"stroke-width":a?r:0,stroke:t.border.color||n.border.color,"stroke-opacity":l,opacity:u,hatching:t.hatching}}function o(e,t,i){var o=n(10).patchFontOptions;e.useNodeColors&&(e.font.color=i.color);var a=!!s(e.border.visible)&&e.border.visible,r=s(e.border.width)?e.border.width:0,l=s(e.border.color)?e.border.color:e.font.color,u=s(e.border.opacity)?e.border.opacity:1,c={filter:t};return a&&r&&(c.stroke=l,c["stroke-width"]=a?r:0,c["stroke-opacity"]=u),{attr:c,css:o(e.font)}}function a(e,t){var n=this,o=e._renderer.getRootOffset();n.code=0,n.widget=e,n.color=t.color,n.options=t.options,n.rect=t.rect,n.title=t.rect._name,n.coords={x:t.rect.x+t.rect.width/2+o.left,y:t.rect.y+t.rect.height/2+o.top},n.id=t.id,n.linksIn=t.linksIn,n.linksOut=t.linksOut,this.states={normal:i(this.color,n.options,n.options),hover:i(this.color,n.options.hoverStyle,n.options)}}var r=["normal","hover"],s=n(1).isDefined;a.prototype={compileAttrs:function(){return i(this.color,this.options)},getState:function(){return r[this.code]},isHovered:function(){return!!(1&this.code)},setState:function(e,t){var n=this;t?this.code|=e:this.code&=~e,t?this.linksIn.concat(this.linksOut).forEach(function(e){n.widget._links[e.index].setAdjacentNodeHover(!0)}):(this.widget._links.forEach(function(e){e.isAdjacentNodeHovered()&&e.adjacentNodeHover(!1)}),this.hideTooltip()),this.widget._applyNodesAppearance(),this.widget._applyLinksAppearance()},hover:function(e){this.widget._getOption("hoverEnabled",!0)&&e!==this.isHovered()&&(this.widget._suspend(),e&&this.widget.clearHover(),this.setState(1,e),this.widget._eventTrigger("nodeHoverChanged",{target:this}),this.widget._resume())},setHover:function(){this.hover(!0)},showTooltip:function(e){this.widget._getOption("hoverEnabled",!0)&&this.widget._tooltip&&this.widget._tooltip.show({type:"node",info:{title:this.title,weightIn:this.linksIn.reduce(function(e,t){return e+t.weight},0),weightOut:this.linksOut.reduce(function(e,t){return e+t.weight},0)}},"undefined"!=typeof e?{x:e[0],y:e[1]}:this.coords)},hideTooltip:function(){this.widget._tooltip&&this.widget._tooltip.hide()},getLabelAttributes:function(e,t){return o(e,t,this)}},e.exports=a},function(e,t,n){function i(e,t,n,i){var o=t.border,r=n.border,l=s(o.visible)?o.visible:r.visible,u=s(o.width)?o.width:r.width,c=s(o.opacity)?o.opacity:s(r.opacity)?r.opacity:1,d=s(t.opacity)?t.opacity:s(n.opacity)?n.opacity:1,h=t.color||e;return n.colorMode===a.COLOR_MODE_TARGET||n.colorMode===a.COLOR_MODE_SOURCE?h=e:n.colorMode===a.COLOR_MODE_GRADIENT&&i&&s(i.id)&&(h=i.id),{fill:h,"stroke-width":l?u:0,stroke:t.border.color||n.border.color,"stroke-opacity":c,opacity:d,hatching:t.hatching}}function o(e,t){var n=this,o=e._renderer.getRootOffset();n.code=0,n.widget=e,n.color=t.color,n.connection=t.connection,n.d=t.d,n.options=t.options,n.boundingRect=t.boundingRect,n.coords={x:t.boundingRect.x+t.boundingRect.width/2+o.left,y:t.boundingRect.y+t.boundingRect.height/2+o.top},n.states={normal:i(n.color,n.options,n.options,t.gradient),adjacentNodeHover:i(n.color,{opacity:0,border:{}},n.options,t.gradient),hover:i(n.color,{opacity:0,border:{}},n.options,t.gradient)},n.overlayStates={normal:i(n.color,{opacity:0,border:{}},n.options),adjacentNodeHover:i(n.color,n.options.hoverStyle,n.options),hover:i(n.color,n.options.hoverStyle,n.options)}}var a=n(427),r=["normal","adjacentNodeHover","hover"],s=n(1).isDefined;o.prototype={getState:function(){return r[this.code]},isHovered:function(){return 2===this.code},isAdjacentNodeHovered:function(){return 1===this.code},setState:function(e,t){t?this.code=e:(this.code=0,this.hideTooltip()),this.widget._applyLinksAppearance()},setHover:function(){this.hover(!0)},hover:function(e){this.widget._getOption("hoverEnabled",!0)&&e!==this.isHovered()&&(this.widget._suspend(),e&&this.widget.clearHover(),this.setState(2,e),this.widget._eventTrigger("linkHoverChanged",{target:this}),this.widget._resume())},adjacentNodeHover:function(e){this.widget._getOption("hoverEnabled",!0)&&e!==this.isAdjacentNodeHovered()&&(this.widget._suspend(),this.setState(1,e),this.widget._resume())},setAdjacentNodeHover:function(){this.adjacentNodeHover(!0)},showTooltip:function(e){this.widget._getOption("hoverEnabled",!0)&&this.widget._tooltip&&this.widget._tooltip.show({type:"link",info:{source:this.connection.source,target:this.connection.target,weight:this.connection.weight}},"undefined"!=typeof e?{x:e[0],y:e[1]}:this.coords)},hideTooltip:function(){this.widget._tooltip&&this.widget._tooltip.hide()}},e.exports=o},function(e,t,n){var i=.3,o="center",a="bottom",r=o,s=n(428),l=n(850),u={_weightPerPixel:null,_getCascadeIdx:function(e,t){var n=t.filter(function(t){return t.name===e})[0];return n.outgoing.length>0?n.lp:s.routines.maxOfArray(t.map(function(e){return e.lp}))},_getInWeightForNode:function(e,t){var n=0;return t.forEach(function(t){t[1]===e&&(n+=t[2])}),n},_getOutWeightForNode:function(e,t){var n=0;return t.forEach(function(t){t[0]===e&&(n+=t[2])}),n},_computeCascades:function(e){for(var t=this,n=s.struct.computeLongestPaths(e),i=s.routines.maxOfArray(n.map(function(e){return e.lp})),o=[],a=0;a<i+1;a++)o.push({});return e.forEach(function(e){var i=o[t._getCascadeIdx(e[0],n)];i[e[0]]||(i[e[0]]={nodeTitle:e[0]}),i=o[t._getCascadeIdx(e[1],n)],i[e[1]]||(i[e[1]]={nodeTitle:e[1]})}),o.forEach(function(n){Object.keys(n).forEach(function(i){var o=n[i];o.inWeight=t._getInWeightForNode(o.nodeTitle,e),o.outWeight=t._getOutWeightForNode(o.nodeTitle,e),o.maxWeight=Math.max(o.inWeight,o.outWeight)})}),o},_getWeightForCascade:function(e,t){var n=0,i=e[t];return Object.keys(i).forEach(function(e){n+=Math.max(i[e].inWeight,i[e].outWeight)}),n},_getMaxWeightThroughCascades:function(e){var t=[];return e.forEach(function(e){var n=0;Object.keys(e).forEach(function(t){var i=e[t];n+=Math.max(i.inWeight,i.outWeight)}),t.push(n)}),s.routines.maxOfArray(t)},_computeNodes:function(e,t){var n=this,i=[],l=this._getMaxWeightThroughCascades(e),u=s.routines.maxOfArray(e.map(function(e){return Object.keys(e).length})),c=t.nodePadding,d=t.height-c*(u-1);d<0&&(c=0,d=t.height-c*(u-1)),this._weightPerPixel=l/d;var h=0;return e.forEach(function(s){var u=[],p=0,f=Object.keys(s).length,g=n._getWeightForCascade(e,h)/n._weightPerPixel+c*(f-1),_=r;_=Array.isArray(t.nodeAlign)?h<t.nodeAlign.length?t.nodeAlign[h]:r:t.nodeAlign,_===a?p=t.height-g:_===o&&(p=.5*(t.height-g)),p=Math.round(p),Object.keys(s).forEach(function(e){s[e].sort=n._sort&&Object.prototype.hasOwnProperty.call(n._sort,e)?n._sort[e]:1}),Object.keys(s).sort(function(e,t){return s[e].sort-s[t].sort}).forEach(function(n){var i=s[n],o=Math.floor(d*i.maxWeight/l),a=Math.round(h*t.width/(e.length-1))-(0===h?0:t.nodeWidth),r={};r._name=n,r.width=t.nodeWidth,r.height=o,r.x=a+t.x,r.y=p+t.y,p+=o+c,u.push(r)}),h++,i.push(u)}),i},_findRectByName:function(e,t){for(var n=0;n<e.length;n++)for(var i=0;i<e[n].length;i++)if(t===e[n][i]._name)return e[n][i];return null},_findIndexByName:function(e,t){for(var n=0,i=0;i<e.length;i++)for(var o=0;o<e[i].length;o++){if(t===e[i][o]._name)return n;n++}return null},_computeLinks:function(e,t,n){var i=this,o={},a=[],r=[];return n.forEach(function(e){Object.keys(e).forEach(function(e){o[e]={"in":0,out:0}})}),t.forEach(function(n){n.forEach(function(n){var r=n._name,s=i._findRectByName(t,r),l=e.filter(function(e){return e[0]===r});l.forEach(function(e){e.sort=i._findIndexByName(t,e[1])}),l.sort(function(e,t){return e.sort-t.sort}).forEach(function(e){var n=i._findRectByName(t,e[1]),r=Math.round(e[2]/i._weightPerPixel),l=o[e[0]].out,u=o[e[1]].in,c=o[e[0]].out+r>s.height?s.height-o[e[0]].out:r,d=o[e[1]].in+r>n.height?n.height-o[e[1]].in:r;a.push({from:{x:s.x,y:s.y+l,width:s.width,height:c,node:s,weight:e[2]},to:{x:n.x,y:n.y+u,width:n.width,height:d,node:n}}),o[e[0]].out+=r,o[e[1]].in+=r})})}),a.forEach(function(e){var t={d:i._spline(e.from,e.to),_boundingRect:{x:e.from.x+e.from.width,y:Math.min(e.from.y,e.to.y),width:e.to.x-(e.from.x+e.from.width),height:Math.max(e.from.x+e.from.height,e.to.y+e.to.height)-Math.min(e.from.y,e.to.y)},_weight:e.from.weight,_from:e.from.node,_to:e.to.node};r.push(t)}),this._fitAllNodesHeight(t,a),r},_fitNodeHeight:function(e,t,n){var i=this._findRectByName(t,e),o=0,a=0;n.forEach(function(t){t.from.node._name===e&&(a+=t.from.height),t.to.node._name===e&&(o+=t.to.height)}),i.height=Math.max(o,a)},_fitAllNodesHeight:function(e,t){for(var n=0;n<e.length;n++)for(var i=0;i<e[n].length;i++)this._fitNodeHeight(e[n][i]._name,e,t)},_spline:function(e,t){var n={x:e.x+e.width,y:e.y},o={x:e.x+e.width,y:e.y+e.height},a={x:t.x,y:t.y},r={x:t.x,y:t.y+t.height},s=i*(a.x-n.x),l="M "+n.x+" "+n.y+" C "+(n.x+s)+" "+n.y+" "+(a.x-s)+" "+a.y+" "+a.x+" "+a.y+" L "+r.x+" "+r.y+" C "+(r.x-s)+" "+r.y+" "+(o.x+s)+" "+o.y+" "+o.x+" "+o.y+" Z";return l},computeLayout:function(e,t,n,i){this._sort=t;var o={},a=l.validate(e,i);return a?o.error=a:(o.cascades=this._computeCascades(e),o.nodes=this._computeNodes(o.cascades,{width:n.availableRect.width,height:n.availableRect.height,x:n.availableRect.x,y:n.availableRect.y,nodePadding:n.nodePadding,nodeWidth:n.nodeWidth,nodeAlign:n.nodeAlign}),o.links=this._computeLinks(e,o.nodes,o.cascades)),o},overlap:function(e,t){return!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>=e.y+e.height||t.y+t.height<=e.y)}};e.exports=u},function(e,t,n){var i=n(428),o={validate:function(e,t){var n=null;return this._hasCycle(e)&&(n="E2006",t("E2006")),n},_hasCycle:function(e){return i.struct.hasCycle(e)}};e.exports=o},function(e,t,n){function i(e){e.prototype._setTooltipOptions=function(){var e=this._tooltip,t=e&&this._getOption("tooltip");e&&e.update(o({},t,{customizeTooltip:function(e){return"node"===e.type?l(t.customizeNodeTooltip,s)(e.info):"link"===e.type?l(t.customizeLinkTooltip,r)(e.info):{}},enabled:t.enabled}))},e.prototype.hideTooltip=function(){this._tooltip&&this._tooltip.hide()}}Object.defineProperty(t,"__esModule",{value:!0}),t.setTooltipCustomOptions=i;var o=n(0).extend,a=n(1).isFunction,r=function(e){return{html:"<strong>"+e.source+" > "+e.target+"</strong><br/>Weight: "+e.weight}},s=function(e){return{html:"<strong>"+e.title+"</strong><br/>Incoming weight: "+e.weightIn+"<br/>Outgoing weight: "+e.weightOut}},l=function(e,t){return function(n){var i=a(e)?e.call(n,n):{},r=Object.prototype.hasOwnProperty.bind(i);return r("html")||r("text")||(i=o(i,t.call(n,n))),i}}},function(e,t,n){var i=n(426).prototype,o=n(277).Tracker,a="__sankey_data_",r=0;i._eventsMap.onNodeClick={name:"nodeClick"},i._eventsMap.onLinkClick={name:"linkClick"},t.plugin={name:"tracker",init:function(){var e=this,t=a+r++;e._tracker=new o({widget:e,root:e._renderer.root,getData:function(e){var n=e.target;return n[t]},getNode:function(t){return t<e._nodes.length?e._nodes[t]:e._links[t-e._nodes.length]},click:function(t){var n=this.getData(t.event)<e._nodes.length?"nodeClick":"linkClick";e._eventTrigger(n,{target:t.node,event:t.event})}}),this._dataKey=t},dispose:function(){this._tracker.dispose()},extenders:{_change_LINKS_DRAW:function(){var e=this._dataKey;this._nodes.concat(this._links).forEach(function(t,n){t.element.data(e,n)})}}}},function(e,t,n){t.refreshPaths=n(168).refreshPaths},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(38),s=n(19),l=n(27),u=n(12).getPublicElement,c=n(211).hideCallback,d=n(9),h=n(0).extend,p=n(286),f=n(18),g=n(158),_=n(111),m=n(6).Deferred,v=n(7),y="dx-slideoutview",x="dx-slideoutview-wrapper",b="dx-slideoutview-menu-content",w="dx-slideoutview-content",C="dx-slideoutview-shield",k="dx-state-invisible",S="content",I=400,T={moveTo:function(e,t,n){r.animate(e,{type:"slide",to:{left:t},duration:I,complete:n})},complete:function(e){r.stop(e,!0)}},D=f.inherit({_getDefaultOptions:function(){return h(this.callBase(),{menuPosition:"normal",menuVisible:!1,swipeEnabled:!0,menuTemplate:"menu",contentTemplate:"content",contentOffset:45})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{android:!0},options:{contentOffset:54}},{device:function(e){return"generic"===e.platform&&"desktop"!==e.deviceType},options:{contentOffset:56}},{device:{win:!0,phone:!1},options:{contentOffset:76}}])},_getAnonymousTemplateName:function(){return S},_init:function(){this.callBase(),this.$element().addClass(y),this._whenAnimationComplete=void 0,this._whenMenuRendered=void 0,this._initHideTopOverlayHandler()},_initHideTopOverlayHandler:function(){this._hideMenuHandler=this.hideMenu.bind(this)},_initTemplates:function(){this.callBase(),this._defaultTemplates.menu=new _(this),this._defaultTemplates.content=new _(this)},_initMarkup:function(){var e=this;this.callBase(),this._renderMarkup(),this._whenMenuRendered=new m;var t=this._getTemplate(this.option("menuTemplate"));t&&t.render({container:this.menuContent(),onRendered:function(){e._whenMenuRendered.resolve()}});var n=this.option("contentTemplate"),i=this._getTemplate(n),o=this._getAnonymousTemplateName()===n;i&&i.render({container:this.content(),noModel:!0,transclude:o}),this._renderShield(),this._toggleMenuPositionClass()},_render:function(){var e=this;this.callBase(),this._whenMenuRendered.always(function(){e._initSwipeHandlers(),e._dimensionChanged()})},_renderMarkup:function(){var e=i("<div>").addClass(x);this._$menu=i("<div>").addClass(b),this._$container=i("<div>").addClass(w),e.append(this._$menu),e.append(this._$container),this.$element().append(e),o.on(this._$container,"MSPointerDown",a)},_renderShield:function(){this._$shield=this._$shield||i("<div>").addClass(C),this._$shield.appendTo(this.content()),o.off(this._$shield,s.name),o.on(this._$shield,s.name,this.hideMenu.bind(this)),this._toggleShieldVisibility(this.option("menuVisible"))},_initSwipeHandlers:function(){this._createComponent(i(this.content()),g,{disabled:!this.option("swipeEnabled"),elastic:!1,itemSizeFunc:this._getMenuWidth.bind(this),onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this)})},_isRightMenuPosition:function(){var e="inverted"===this.option("menuPosition"),t=this.option("rtlEnabled");return t&&!e||!t&&e},_swipeStartHandler:function(e){T.complete(i(this.content()));var t=e.event,n=this.option("menuVisible"),o=this._isRightMenuPosition();t.maxLeftOffset=+(o?!n:n),t.maxRightOffset=+(o?n:!n),this._toggleShieldVisibility(!0)},_swipeUpdateHandler:function(e){var t=e.event,n=this.option("menuVisible")?t.offset+1*this._getRTLSignCorrection():t.offset;n*=this._getRTLSignCorrection(),this._renderPosition(n,!1)},_swipeEndHandler:function(e){var t=e.event.targetOffset*this._getRTLSignCorrection()+this.option("menuVisible"),n=0!==t;this.option("menuVisible")===n?this._renderPosition(this.option("menuVisible"),!0):this.option("menuVisible",n)},_toggleMenuPositionClass:function(){var e=y+"-left",t=y+"-right",n=this._isRightMenuPosition()?"right":"left";this._$menu.removeClass(e+" "+t),this._$menu.addClass(y+"-"+n)},_renderPosition:function(e,t){if(v.hasWindow()){var n=this._calculatePixelOffset(e)*this._getRTLSignCorrection();this._toggleHideMenuCallback(e),t?(this._toggleShieldVisibility(!0),T.moveTo(i(this.content()),n,this._animationCompleteHandler.bind(this))):l.move(i(this.content()),{left:n})}},_calculatePixelOffset:function(e){return e=e||0,e*this._getMenuWidth()},_getMenuWidth:function(){if(!this._menuWidth){var e=this.$element().width()-this.option("contentOffset"),t=i(this.menuContent());t.css("maxWidth",e<0?0:e);var n=t.width();this._menuWidth=Math.min(n,e)}return this._menuWidth},_animationCompleteHandler:function(){this._toggleShieldVisibility(this.option("menuVisible")),this._whenAnimationComplete&&this._whenAnimationComplete.resolveWith(this)},_toggleHideMenuCallback:function(e){e?c.add(this._hideMenuHandler):c.remove(this._hideMenuHandler)},_getRTLSignCorrection:function(){return this._isRightMenuPosition()?-1:1},_dispose:function(){T.complete(i(this.content())),this._toggleHideMenuCallback(!1),this.callBase()},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){delete this._menuWidth,this._renderPosition(this.option("menuVisible"),!1)},_toggleShieldVisibility:function(e){this._$shield.toggleClass(k,!e)},_optionChanged:function(e){switch(e.name){case"width":this.callBase(e),this._dimensionChanged();break;case"contentOffset":this._dimensionChanged();break;case"menuVisible":this._renderPosition(e.value,!0);break;case"menuPosition":this._renderPosition(this.option("menuVisible"),!0),this._toggleMenuPositionClass();break;case"swipeEnabled":this._initSwipeHandlers();break;case"contentTemplate":case"menuTemplate":this._invalidate();break;default:this.callBase(e)}},menuContent:function(){return u(this._$menu)},content:function(){return u(this._$container)},showMenu:function(){return this.toggleMenuVisibility(!0)},hideMenu:function(){return this.toggleMenuVisibility(!1)},toggleMenuVisibility:function(e){return e=void 0===e?!this.option("menuVisible"):e,this._whenAnimationComplete=new m,this.option("menuVisible",e),this._whenAnimationComplete.promise()}}).include(p);d("dxSlideOutView",D),e.exports=D},function(e,t,n){e.exports=n(856)},function(e,t,n){n(857),n(753),e.exports=n(130)},function(e,t,n){n(858),n(600)},function(e,t,n){var i=n(490);i.dxSlideOut=n(859),i.dxSlideOutView=n(854)},function(e,t,n){var i=n(2),o=n(12).getPublicElement,a=n(4).noop,r=n(1).isDefined,s=n(9),l=n(0).extend,u=n(187),c=n(854),d=n(54),h=n(101),p=n(134),f=n(111),g=n(287).default,_="dx-slideout",m="dx-slideout-item-container",v="dx-slideout-menu",y="dx-slideout-item",x="dxSlideoutItemData",b=d.inherit({_getDefaultOptions:function(){return l(this.callBase(),{activeStateEnabled:!1,menuItemTemplate:"menuItem",swipeEnabled:!0,menuVisible:!1,menuPosition:"normal",menuGrouped:!1,menuGroupTemplate:"menuGroup",onMenuItemRendered:null,onMenuGroupRendered:null,contentTemplate:"content",selectionMode:"single",selectedIndex:0,selectionRequired:!0})},_itemClass:function(){return y},_itemDataKey:function(){return x},_itemContainer:function(){return i(this._slideOutView.content())},_init:function(){this._selectedItemContentRendered=!1,this.callBase(),this.$element().addClass(_),this._initSlideOutView()},_initTemplates:function(){this.callBase(),this._defaultTemplates.menuItem=new p("item",this),this._defaultTemplates.menuGroup=new p("group",this),this._defaultTemplates.content=new f(this)},_initEditStrategy:function(){if(this.option("menuGrouped")){var e=u.inherit({_getPlainItems:function(){return this.callBase().reduce(function(e,t){return e.push.apply(e,t.items),e},[])}});this._editStrategy=new e(this)}else this.callBase()},_initSlideOutView:function(){this._slideOutView=this._createComponent(this.$element(),c,{integrationOptions:{},menuVisible:this.option("menuVisible"),swipeEnabled:this.option("swipeEnabled"),menuPosition:this.option("menuPosition"),onOptionChanged:this._slideOutViewOptionChanged.bind(this)}),this._itemContainer().addClass(m)},_slideOutViewOptionChanged:function(e){"menuVisible"===e.name&&this.option(e.name,e.value)},_initMarkup:function(){this._renderList(),this._renderContentTemplate(),this.callBase()},_render:function(){this._slideOutView._renderShield(),this.callBase()},_renderList:function(){var e=this._list&&this._list.$element()||i("<div>").addClass(v).appendTo(i(this._slideOutView.menuContent()));this._renderItemClickAction(),this._list=this._createComponent(e,h,{itemTemplateProperty:"menuTemplate",selectionMode:this.option("selectionMode"),selectionRequired:this.option("selectionRequired"),indicateLoading:!1,onItemClick:this._listItemClickHandler.bind(this),items:this.option("items"),dataSource:this._dataSource,itemTemplate:this._getTemplateByOption("menuItemTemplate"),grouped:this.option("menuGrouped"),groupTemplate:this._getTemplateByOption("menuGroupTemplate"),onItemRendered:this.option("onMenuItemRendered"),onGroupRendered:this.option("onMenuGroupRendered"),onContentReady:this._updateSlideOutView.bind(this)}),this._list.option("selectedIndex",this.option("selectedIndex"))},_getGroupedOption:function(){return this.option("menuGrouped")},_updateSlideOutView:function(){this._slideOutView._dimensionChanged()},_renderItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_listItemClickHandler:function(e){var t=this._list.$element().find(".dx-list-item").index(e.itemElement);this.option("selectedIndex",t),this._itemClickAction(e)},_renderContentTemplate:function(){if(!r(this._singleContent)){var e=this._itemContainer().html().length;this._getTemplateByOption("contentTemplate").render({container:o(this._itemContainer())}),this._singleContent=this._itemContainer().html().length!==e}},_itemClickHandler:a,_renderContentImpl:function(){if(!this._singleContent){var e=this.option("items"),t=this.option("selectedIndex");if(e.length&&t>-1){this._selectedItemContentRendered=!0;var n=this._list.getItemByIndex(t);this._renderItems([n])}}},_renderItem:function(e,t){this._itemContainer().find("."+y).remove(),this.callBase(e,t)},_selectedItemElement:function(){return this._itemElements().eq(0)},_renderSelection:function(){this._prepareContent(),this._renderContent()},_getListWidth:function(){return this._slideOutView._getMenuWidth()},_changeMenuOption:function(e,t){this._list.option(e,t),this._updateSlideOutView()},_cleanItemContainer:function(){this._singleContent||this.callBase();
120},beginUpdate:function(){this.callBase(),this._list&&this._list.beginUpdate()},endUpdate:function(){this._list&&this._list.endUpdate(),this.callBase()},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"menuVisible":case"swipeEnabled":case"rtlEnabled":case"menuPosition":this._slideOutView.option(t,n);break;case"width":this.callBase(e),this._updateSlideOutView();break;case"menuItemTemplate":this._changeMenuOption("itemTemplate",this._getTemplate(n));break;case"items":this._changeMenuOption("items",this.option("items")),this._selectedItemContentRendered||this._renderSelection();break;case"dataSource":case"selectedIndex":case"selectedItem":this._changeMenuOption(t,n),this.callBase(e);break;case"menuGrouped":this._initEditStrategy(),this._changeMenuOption("grouped",n);break;case"menuGroupTemplate":this._changeMenuOption("groupTemplate",this._getTemplate(n));break;case"onMenuItemRendered":this._changeMenuOption("onItemRendered",n);break;case"onMenuGroupRendered":this._changeMenuOption("onGroupRendered",n);break;case"onItemClick":this._renderItemClickAction();break;case"contentTemplate":this._singleContent=null,this._invalidate();break;default:this.callBase(e)}},showMenu:function(){return this._slideOutView.toggleMenuVisibility(!0)},hideMenu:function(){return this._slideOutView.toggleMenuVisibility(!1)},toggleMenuVisibility:function(e){return this._slideOutView.toggleMenuVisibility(e)}}).include(g);s("dxSlideOut",b),e.exports=b}]);