UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

10 lines • 2.29 MB
/*! * DevExtreme (dx.web.js) * Version: 18.1.3 * Build date: Tue May 15 2018 * * Copyright (c) 2012 - 2018 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict";!function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=752)}([function(e,t,n){var i=n(1).isPlainObject,o=function(e,t,n){e=e||{};for(var i in t)if(t.hasOwnProperty(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 s in a){var r,l=t[s],c=a[s],d=!1;t!==c&&(o&&c&&(i(c)||(d=Array.isArray(c)))?(r=d?l&&Array.isArray(l)?l:[]:l&&i(l)?l:{},t[s]=e(o,r,c)):void 0!==c&&(t[s]=c))}}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)},s=function(e){return"boolean"==typeof e},r=function(e){return h(e)&&e.toString().indexOf("e")!==-1},l=function(e){return"date"===a(e)},c=function(e){return null!==e&&void 0!==e},d=function(e){return"function"==typeof e},u=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)},m=function(e){return["object","array","function"].indexOf(a(e))===-1},_=function(e){return null!=e&&e===e.window},v=function(e){return!(!e.jquery&&!e.dxRenderer)},w=function(e){return e&&d(e.then)},x=function(e){return e&&d(e.done)&&d(e.fail)};t.isBoolean=s,t.isExponential=r,t.isDate=l,t.isDefined=c,t.isFunction=d,t.isString=u,t.isNumeric=h,t.isObject=p,t.isEmptyObject=f,t.isPlainObject=g,t.isPrimitive=m,t.isWindow=_,t.isRenderer=v,t.isPromise=w,t.isDeferred=x,t.type=a},function(e,t,n){var i=n(215);e.exports=i.get()},function(e,t,n){var i=function(e,t,n,i){var o=n(t[e],e);null!=o&&i.push(o)},o=function(e,t){var n=[];if("length"in e)for(var o=0;o<e.length;o++)i(o,e,t,n);else for(var a in e)i(a,e,t,n);return[].concat.apply([],n)},a=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}};t.map=o,t.each=a},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(29),s=n(7),r=s.when,l=s.Deferred,c=n(3).each,d=n(1),u=function(e,t){return d.isDefined(e)?e:t},h=function(e,t){var n,i=new l,o=t||this,a={promise:i.promise(),abort:function(){clearTimeout(n),i.rejectWith(o)}},s=function(){var t=e.call(o);t&&t.done&&d.isFunction(t.done)?t.done(function(){i.resolveWith(o)}):i.resolveWith(o)};return n=(arguments[2]||setTimeout)(s,"number"==typeof t?t:0),a},p=[],f=[],g=[],m=function(e,t,n){if(i&&i!==e)return p.push(t),f.push(e),n=n||new l,g.push(n),n;var o=i,a=g.length;i=e;var s=t();return s||(g.length>a?s=r.apply(this,g.slice(a)):n&&n.resolve()),i=o,n&&s&&s.done&&s.done(n.resolve).fail(n.reject),!i&&p.length&&("render"===f.shift()?_:v)(p.shift(),g.shift()),s},_=function(e,t){return m("render",e,t)},v=function(e,t){return m("update",e,t)},w=function(e){return function(){var t=this;return m("render",function(){return e.call(t)})}},x=function(e){return function(){var t=this;return m("update",function(){return e.call(t)})}},y=function(e,t,n){var i=[],o=0;return c(t,function(t,a){var s=0,r=n?n(a):a;c(e,function(e,t){var n=r[e];if(void 0!==n)return b(n,t)?void s++:(s=-1,!1)}),s<o||(s>o&&(i.length=0,o=s),i.push(a))}),i},b=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var n=!1;return c(e,function(e,i){if(i!==t[e])return n=!0,!1}),!n}return e===t},C=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}},k=function(e){switch("undefined"==typeof e?"undefined":o(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=d.isString(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9_]/g);return n&&c(n,function(e,n){t=t.replace(n,"__"+n.charCodeAt()+"__")}),t},I=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},D=function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!E(e[i],t[i],n+1))return!1;return!0},T=function(e,t,n){for(var i in e)if(e.hasOwnProperty(i)&&!E(e[i],t[i],n+1))return!1;for(i in t)if(!(i in e))return!1;return!0},E=function(e,t,n){if(e===t)return!0;var i=3;return n=n||0,n>=i||(d.isObject(e)&&d.isObject(t)?T(e,t,n):Array.isArray(e)&&Array.isArray(t)?D(e,t,n):!(!d.isDate(e)||!d.isDate(t))&&e.getTime()===t.getTime())},A=function(e){if(d.isObject(e)||Array.isArray(e))try{var t=JSON.stringify(e);return"{}"===t?e:t}catch(t){return e}return e},B=function(e){return e.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},O=function(e){var t=a().serverDecimalSeparator;return d.isDefined(e)&&(e=e.toString().replace(".",t)),e},R=function(){},M=function(e,t,n){for(var i,o=[],a=!n,s=0;s<e.length;s++)i=!!t(e[s],s),i===a&&o.push(e[s]);return o};t.ensureDefined=u,t.executeAsync=h,t.deferRender=_,t.deferRenderer=w,t.deferUpdate=v,t.deferUpdater=x,t.splitPair=C,t.splitQuad=k,t.findBestMatches=y,t.normalizeKey=S,t.denormalizeKey=I,t.equalByValue=E,t.getKeyHash=A,t.escapeRegExp=B,t.applyServerDecimalSeparator=O,t.noop=R,t.grep=M},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(107),s=n(0).extend,r=n(12),l=n(6),c=l.getWindow(),d=n(55),u=n(1),h=n(19),p=u.isWindow,f=u.isFunction,g=u.isString,m=n(17),_=n(171),v=n(216),w="dxEmptyEventType",x={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},y={focusin:"focus",focusout:"blur"},b=["blur","focusout","focus","focusin","load"],C=function(e,t){return!p(e)&&"#document"!==e.nodeName&&r.elementMatches(e,t)},k=new _,S=0,I=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(r.isNode(i)||p(i))n.apply($,t);else{if(g(i)||!("length"in i))throw m.Error("E0025");var o=Array.prototype.slice.call(t,0);Array.prototype.forEach.call(i,function(t){o[0]=t,e(o,n)})}},T=function(e){return function(){D(arguments,e)}},E=function(e,t){var n=k.get(e);t=t||"";var o=t.split("."),a=o.slice(1),s=!!o[0];t=o[0]||w,n||(n={},k.set(e,n)),n[t]||(n[t]={handleObjects:[],nativeHandler:null});var l=n[t];return{addHandler:function(n,o,c){var d=function(i,o){var a,s,r=[i],l=i.currentTarget,d=i.relatedTarget;t in x&&(a=d&&l&&(d===l||l.contains(d))),void 0!==o&&r.push(o),I.callMethod(t,"handle",e,[i,c]),a||(s=n.apply(l,r)),s===!1&&(i.preventDefault(),i.stopPropagation())},u=function(t,n){if(!i||t.type!==i)if(t.data=c,t.delegateTarget=e,o)for(var a=t.target;a&&a!==e;)C(a,o)&&(t.currentTarget=a,d(t,n)),a=a.parentNode;else d(t,n)},h={handler:n,wrappedHandler:u,selector:o,type:t,data:c,namespace:a.join("."),namespaces:a,guid:++S};l.handleObjects.push(h);var p=1===l.handleObjects.length,f=p&&s,g=A(t);f&&(f=!I.callMethod(t,"setup",e,[c,a,g])),f&&(l.nativeHandler=g,l.removeListener=r.listen(e,x[t]||t,l.nativeHandler)),I.callMethod(t,"add",e,[h])},removeHandler:function(i,o){var r=function(t){var s=n[t];if(!s.handleObjects.length)return void delete n[t];var r;s.handleObjects=s.handleObjects.filter(function(n){var s=a.length&&!B(n.namespaces,a)||i&&n.handler!==i||o&&n.selector!==o;return s||(r=n.handler,I.callMethod(t,"remove",e,[n])),s});var l=!s.handleObjects.length,c=l&&t!==w;c&&(I.callMethod(t,"teardown",e,[a,r]),s.nativeHandler&&s.removeListener(),delete n[t])};if(s)r(t);else for(var l in n)r(l);var c=0===Object.keys(n).length;c&&k.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[w]&&n[w].handleObjects.forEach(o)}}},A=function(e){return function(t,n){var i=E(this,e);t=$.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},O=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)}},R=function(e){return function(t,n,i,o){"function"==typeof i&&(o=i,i=void 0),e(t,n,i,o)}},M=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 $.Event?n:$.Event(n),i)}},P=function(e){return function(t,n){return this instanceof $.Event?(t||(t={}),"string"==typeof t&&(t={type:t}),n||(n={}),void e.call(this,t,n)):new $.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)}},V=function(e,t){var n=y[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},$=d({on:T(O(F(function(e,t,n,i,o){var a=E(e,t);a.addHandler(o,n,i)}))),one:T(O(function(e,t,n,i,o){var a=function i(){$.off(e,t,n,i),o.apply(this,arguments)};$.on(e,t,n,i,a)})),off:T(R(F(function(e,t,n,i){var o=E(e,t);o.removeHandler(i,n)}))),trigger:T(M(function(e,t,n){var i=t.type,o=E(e,t.type);I.callMethod(i,"trigger",e,[t,n]),o.callHandlers(t,n);var a=I.getField(i,"noBubble")||t.isPropagationStopped()||b.indexOf(i)!==-1;if(!a){var r=[],l=function e(t){var n=t.parentNode;n&&(r.push(n),e(n))};l(e),r.push(c);for(var d=0;r[d]&&!t.isPropagationStopped();){var u=E(r[d],t.type);u.callHandlers(s(t,{currentTarget:r[d]}),n),d++}}(e.nodeType||p(e))&&(I.callMethod(i,"_default",e,[t,n]),V(i,e))})),triggerHandler:T(M(function(e,t,n){var i=E(e,t.type);i.callHandlers(t,n)}))}),L=function(e){e&&($.Event=e,$.Event.prototype=e.prototype)};L(P(function(e,t){var n=this,i=!1,o=!1,a=!1;s(n,e),(e instanceof $.Event||l.hasWindow()&&e instanceof c.Event)&&(n.originalEvent=e,n.currentTarget=void 0),e instanceof $.Event||s(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()}}),z("which",H,n),0===e.type.indexOf("touch")&&(delete t.pageX,delete t.pageY),s(n,t),n.guid=++S}));var z=function(e,t,n){Object.defineProperty(n||$.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(z);var N=h(),W=h();$.set=function(e){N.fire(),$.inject(e),L(e.Event),W.fire()},$.subscribeGlobal=function(){D(arguments,O(function(){var e=arguments;$.on.apply(this,e),N.add(function(){var t=Array.prototype.slice.call(e,0);t.splice(3,1),$.off.apply(this,t)}),W.add(function(){$.on.apply(this,e)})}))},e.exports=$},function(e,t,n){var i=n(12),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)},openWindow:function(){return this.hasProperty("open")?a.open():null},getNavigator:function(){return this.hasWindow()?a.navigator:{userAgent:""}}}},function(e,t,n){var i=n(1),o=i.isPromise,a=i.isDeferred,s=n(0).extend,r=n(19),l=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],c=function(){var e=this;this._state="pending",this._promise={},l.forEach(function(t){var n=t.method;this[n+"Callbacks"]=new r,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 c;return["done","fail"].forEach(function(i){var s="done"===i?e:t;this[i](function(){if(!s)return void n["done"===i?"resolve":"reject"].apply(this,arguments);var e=s&&s.apply(this,arguments);a(e)?e.done(n.resolve).fail(n.reject):o(e)?e.then(n.resolve,n.reject):n.resolve.apply(this,e?[e]:arguments)})}.bind(this)),n.promise()},this._promise.state=function(){return e._state},this._promise.promise=function(t){return t?s(t,e._promise):e._promise},this._promise.promise(this)};l.forEach(function(e){var t=e.method,n=e.state;c.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 c;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 c).resolveWith(t,[e])};var d=function(){if(1===arguments.length)return t.fromPromise(arguments[0]);for(var e=[].slice.call(arguments),n=[],i=0,o=new c,s=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)}},r=0;r<e.length;r++)a(e[r])?e[r].promise().done(s(r)).fail(o.reject):i++;return i===e.length&&o.resolveWith(n,e),o.promise()};t.setStrategy=function(e){c=e.Deferred,d=e.when},t.Deferred=function(){return new c},t.when=function(){return d.apply(this,arguments)}},function(e,t,n){var i=n(2),o=n(137),a=n(17),s=n(99),r=function(e,t,n){n?t[e]=n:n=t,s.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 s=n,r=[].slice.call(arguments).slice(1);this.each(function(){var n=t.getInstance(this);if(!n)throw a.Error("E0009",e);var o=n[s],l=o.apply(n,r);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=r},function(e,t,n){var i=n(2),o=n(5),a=n(17),s=n(56).focused,r=n(0).extend,l=n(3).each,c=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 l(e,function(e){if(this.test(t.type))return n=e,!1}),n}}(),d=function(e){return"dx"===c(e)},u=function(e){return"mouse"===c(e)},h=function(e){return"touch"===c(e)},p=function(e){return"pointer"===c(e)},f=function(e){return u(e)||(p(e)||d(e))&&"mouse"===e.pointerType},g=function(e){return h(e)||(p(e)||d(e))&&"touch"===e.pointerType},m=function(e){return"keyboard"===c(e)},_=function(e){return 0===e.screenX&&!e.offsetX&&0===e.pageX},v=function(e){return{x:e.pageX,y:e.pageY,time:e.timeStamp}},w=function(e,t){return{x:t.x-e.x,y:t.y-e.y,time:t.time-e.time||1}},x=function(e){return h(e)?(e.originalEvent.touches||[]).length:d(e)?(e.pointers||[]).length:0},y=function(e){var t=i(e.target),n=t.is("input, textarea, select");return!!t.is(".dx-skip-gesture-event *, .dx-skip-gesture-event")||("dxmousewheel"===e.type?t.is("input[type='number'], textarea, select")&&t.is(":focus"):f(e)?n||e.which>1:g(e)?n&&s(t):void 0)},b=function(e){return e},C=function(e){b=e},k=function(e){return b(o.Event(e,e),e)},S=function(e,t){var n=k(e);return t&&r(n,t),n},I=function(e){var t=S(e.originalEvent,e);return o.trigger(e.delegateTarget||t.target,t),t},D=function e(t,n){if(!n)throw a.Error("E0017");return"string"==typeof t?t.indexOf(" ")===-1?t+"."+n:e(t.split(/\s+/g),n):(l(t,function(e,i){t[e]=i+"."+n}),t.join(" "))};e.exports={eventSource:c,isPointerEvent:p,isMouseEvent:f,isTouchEvent:g,isKeyboardEvent:m,isFakeClickEvent:_,hasTouches:x,eventData:v,eventDelta:w,needSkipEvent:y,createEvent:S,fireEvent:I,addNamespace:D,setEventFixMethod:C}},function(e,t,n){var i=n(17),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}}},s=function(e){var t=function(){};return t.prototype=e.prototype,new t},r=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;for(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},c=function(e){return this.parent===e||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(e)},d=function(){throw i.Error("E0001")},u=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,s=t.constructor._includedPostCtors;for(e=0;e<a.length;e++)a[e].call(t);for(n&&n.apply(t,arguments),e=0;e<s.length;e++)s[e].call(t)};return t.prototype=s(this),u(this,t),t.inherit=this.inherit,t.abstract=d,t.redefine=r,t.include=l,t.subclassOf=c,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=d,e.exports=h},function(e,t,n){var i=n(1).isDefined,o=n(3).each,a=n(53),s=function(e){return Array.isArray(e)&&!e.length},r=function(e){return Array.isArray(e)?e:[e]},l=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=u(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=u(i,t);o===-1&&n.push(i)}),n},d=function(e,t,n,s){var r={},l=0;return o(e,function(e,o){e=o[t],i(e)&&(r[e]=r[e]||[],o===n?r[e].unshift(o):r[e].push(o),delete o[t])}),a.orderEach(r,function(e,n){o(n,function(){e>=0&&(this[t]=l++)})}),o(e,function(){i(this[t])||s&&!s(this)||(this[t]=l++)}),l},u=function(e,t){if(!t)return-1;var n=Array.isArray(t)?t:t.toArray();return n.indexOf(e)},h=function(e,t){for(var n=0;n<t.length;n++)e[e.length]=t[n];return e};t.isEmpty=s,t.wrapToArray=r,t.intersection=l,t.removeDuplicates=c,t.normalizeIndexes=d,t.inArray=u,t.merge=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(55),a=n(4).noop,s={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){for(var n=this.querySelectorAll(e.document||e.ownerDocument,t),i=0;i<n.length;i++)if(n[i]===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))},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=e.className.split(" "),o=i.indexOf(t);n&&o<0&&(e.className=e.className?e.className+" "+t:t),!n&&o>=0&&(i.splice(o,1),e.className=i.join(" "))}},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(s)},function(e,t,n){var i,o=n(2),a=n(12),s=n(6),r=s.getWindow(),l=n(5),c=n(17),d=n(11).inArray,u=n(1),h=u.isDefined,p=u.isRenderer,f=n(217),g=function(){var e=a.getActiveElement();e&&e!==a.getBody()&&e.blur&&e.blur()},m=function(){var e=r.getSelection();if(e&&"Caret"!==e.type)if(e.empty)e.empty();else if(e.removeAllRanges)try{e.removeAllRanges()}catch(e){}},_=function(e,t){var n=o(e),i=o(t);if(n[0]===i[0])return n[0];for(var a=n.parents(),s=i.parents(),r=Math.min(a.length,s.length),l=-r;l<0;l++)if(a.get(l)===s.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)),s=0;s<a.length;s++)l.triggerHandler(a[s],e)}},w=function(){var e=0;return function(t){return(t||"")+e++}}(),x="data-options",y=function(e){var t,n=o(e).attr(x)||"";"{"!==n.trim().charAt(0)&&(n="{"+n+"}");try{t=new Function("return "+n)()}catch(e){throw c.Error("E3018",e,n)}return t},b=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),s=y(i);for(var r in s)(!t||d(r,t)>-1)&&a[r]&&(a[r](s[r]),n.push(a[r]("instance")))}),n},C=function(e){if(!r.WinJS)return o(f.parseHTML(e));var t=o("<div>");return r.WinJS.Utilities.setInnerHTMLUnsafe(t.get(0),e),t.contents()},k=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},S=function(e,t,n){n?e.attr(t,n):e.removeAttr(t)},I=function(e,t){var n=e.originalEvent&&e.originalEvent.clipboardData||r.clipboardData;return 1===arguments.length?n&&n.getData("Text"):void(n&&n.setData("Text",t))},D=function(e,t){return!!t&&(t=a.isTextNode(t)?t.parentNode:t,a.isDocument(e)?e.body.contains(t):e.contains(t))},T=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=y,t.createComponents=b,t.normalizeTemplateElement=k,t.clearSelection=m,t.uniqueId=w,t.closestCommonParent=_,t.clipboardText=I,t.toggleAttr=S,t.contains=D,t.getPublicElement=T},function(e,t,n){var i=n(2),o=n(6),a=o.getNavigator(),s=o.getWindow(),r=n(0).extend,l=n(1).isPlainObject,c=n(3).each,d=n(10),u=n(17),h=n(19),p=n(121),f=n(52),g=n(154).sessionStorage,m=n(73),_=n(29),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"},w={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===s.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],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}}}},y=d.inherit({ctor:function(e){this._window=e&&e.window||s,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 r({},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]),b.isSimulator()&&t.push("dx-simulator"),_().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 u.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=r({},w,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 r(t,n)},_fromUA:function(e){var t;if(c(x,function(n,i){return t=i(e),!t}),t)return this._fromConfig(t);var n=/(mac os)/.test(e.toLowerCase()),i=w;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),b=new y;m.changeCallback.add(function(e,t){b.detachCssClasses(t),b.attachCssClasses(e)}),b.isForced()||"win"!==b.current().platform||b.current({version:[10]}),e.exports=b},function(e,t,n){var i=n(2),o=n(55),a=n(0).extend,s=n(3).each,r=n(39).format,l=n(36).humanize,c=n(81);n(81);var d="-",u=a(!0,{},n(320)),h=n(321),p=function(e){var t=h[e];return t?"root"!==t&&t:e.substr(0,e.lastIndexOf(d))},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:u,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 s,r=t._localizablePrefix+a;return o!==i&&(s=t.format(a)),s||(m[a]=l(a)),n+(s||r)})},_messageLoaded:function(e,t){return void 0!==g(this._dictionary,t||c.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")||(s(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?m:a({},m,this.getMessagesByLocales()[c.locale()])},getFormatter:function(e){return this._getFormatterBase(e)||this._getFormatterBase(e,"en"); },_getFormatterBase:function(e,t){var n=g(this._dictionary,t||c.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),r.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=_},,function(e,t,n){var i=n(101);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",E0021:"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.",E4016:"The compileSetter(expr) method is called with 'self' passed as a parameter",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){var i=n(2),o=n(5),a=n(14),s=n(12),r=n(13),l=n(105),c=n(9),d=n(25),u=n(108),h=n(84),p=n(59).compare,f="dxclick",g=10,m=Math.abs,_=function(e){return i(e).is("input, textarea, select, button ,:focus, :focus *")},v={requestAnimationFrame:l.requestAnimationFrame,cancelAnimationFrame:l.cancelAnimationFrame},w=u.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=c.eventData(e)},end:function(e){return this._eventOutOfElement(e,this.getElement().get(0))||e.type===d.cancel?void this._cancel(e):(_(e.target)||this._blurPrevented||r.resetActiveElement(),this._accept(e),void(this._clickAnimationFrame=v.requestAnimationFrame(function(){this._fireClickEvent(e)}.bind(this))))},_eventOutOfElement:function(e,t){var n=e.target,i=!r.contains(t,n)&&t!==n,o=c.eventDelta(c.eventData(e),this._startEventData),a=m(o.x)>g||m(o.y)>g;return i||a},_fireClickEvent:function(e){this._fireEvent(f,e,{target:r.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,s=function(t){return n||i(t).closest("."+e).length},r=null,l=null,d=function(e){var t=e.originalEvent,n=l!==t,i=!e.which||1===e.which;i&&!r&&s(e.target)&&n&&(l=t,c.fireEvent({type:f,originalEvent:e}))};w=w.inherit({_makeElementClickable:function(e){s(e)||this.callBase(e),o.on(e,"click",d)},configure:function(t){this.callBase(t),t.useNative&&this.getElement().addClass(e)},start:function(e){r=null,s(e.target)||this.callBase(e)},end:function(e){s(e.target)||this.callBase(e)},cancel:function(){r=!0},dispose:function(){this.callBase(),o.off(this.getElement(),"click",d)}})}(),function(){var e=a.real().generic;if(!e){var t=null,n=!1,l=function(e){t=e.target,n=e.isDefaultPrevented()},u=function(e){var o=i(e.target);n||!t||o.is(t)||i(t).is("label")||!_(o)||r.resetActiveElement(),t=null,n=!1},h="NATIVE_CLICK_FIXER",p=s.getDocument();o.subscribeGlobal(p,c.addNamespace(d.down,h),l),o.subscribeGlobal(p,c.addNamespace("click",h),u)}}(),h({emitter:w,bubble:!0,events:[f]}),t.name=f},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 s=i[n[a]].apply(e,t);if(s===!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){function i(){if(!E.hasWindow())return null;var e,t=D("<div>",w).addClass("dx-theme-marker").appendTo(w.documentElement);try{return(e=t.css("fontFamily"))?(e=e.replace(/["']/g,""),e.substr(0,K.length)!==K?null:e.substr(K.length)):null}finally{t.remove()}}function o(e){function t(){C=null,$.fire(),$.empty()}var n;C=e,a()?t():(n=Date.now(),S=setInterval(function(){var e=a(),i=!e&&Date.now()-n>15e3;i&&O.log("W0004",C),(e||i)&&(clearInterval(S),S=void 0,t())},10))}function a(){return!C||i()===C}function s(){var e=D(N,w);e.length&&(y={},x=D(R.createMarkupFromString("<link rel=stylesheet>"),w),e.each(function(){var e=D(this,w),t=e.attr(W),n=e.attr("href"),i="true"===e.attr(q);y[t]={url:n,isActive:i}}),e.last().after(x),e.remove())}function r(e){var t=e.split("."),n=null;if(y){if(e in y)return e;F(y,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!==w&&(y=null)}catch(e){y=null}w=e}function c(e){e=e||{},l(e.context||T.getDocument()),w&&(s(),b=void 0,k=void 0,d(e))}function d(e){if(!arguments.length)return b=b||i();f(L()),e=e||{},"string"==typeof e&&(e={theme:e});var t,n=e._autoInit,a=e.loadCallback;if(b=e.theme||b,n&&!b&&(b=u(V.current())),b=r(b),b&&(t=y[b]),a&&$.add(a),t)x.attr("href",y[b].url),!$.has()&&!e._forceTimeout||S?C&&(C=b):o(b);else{if(!n)throw O.Error("E0021",b);$.fire(),$.empty()}k=/material/.test(b||i()),_(),p(H.originalViewPort(),b)}function u(e){var t=e.platform,n=e.version&&e.version[0];switch(t){case"ios":t+="7";break;case"android":t+="5";break;case"win":t+=n&&8===n?"8":"10"}return t}function h(e){e=e||d();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()?"-"+n[2]:""))),t}function p(e,t){I=h(t).join(" "),D(e).addClass(I);var n=function(){var t=E.hasWindow()&&A.devicePixelRatio;if(t&&!(t<2)){var n=D("<div>");n.css("border",".5px solid transparent"),D("body").append(n),1===n.outerHeight()&&(D(e).addClass(G),I+=" "+G),n.remove()}};n()}function f(e){D(e).removeClass(I)}function g(e){$.add(e)}function m(){return k}function _(){var e=b||i();/win8/.test(e)&&O.log("W0010","The 'win8' theme","16.1","Use the 'generic' theme instead."),/win10/.test(e)&&O.log("W0010","The 'win10' theme","17.2","Use the 'generic' theme instead."),/android/.test(e)&&O.log("W0010","The 'android5' theme","18.1","Use the 'material' theme instead.")}function v(){if(c({_autoInit:!0,_forceTimeout:!0}),D(N,w).length)throw O.Error("E0022");j.resolve()}var w,x,y,b,C,k,S,I,D=n(2),T=n(12),E=n(6),A=E.getWindow(),B=n(7).Deferred,O=n(21),R=n(13),M=n(50),P=M.add,F=n(3).each,V=n(14),H=n(73),$=n(231),L=H.value,z=H.changeCallback,N="link[rel=dx-theme]",W="data-theme",q="data-active",G="dx-hairlines",K="dx.",j=new B;E.hasWindow()?v():P(v),z.add(function(e,t){j.done(function(){f(t),p(e)})}),V.changed.add(function(){c({_autoInit:!0})}),t.current=d,t.ready=g,t.init=c,t.attachCssClasses=p,t.detachCssClasses=f,t.themeNameFromDevice=u,t.waitForThemeLoad=o,t.isMaterial=m,t.resetTheme=function(){x&&x.attr("href","about:blank"),b=null,C=null,k=!1}},function(e,t,n){var i=n(101),o=n(17);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}",E1036:"Validation rules are not defined for any form item",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 JSZip script is referenced after the DevExtreme scripts or not referenced at all",E1042:'Deferred selection cannot be performed. Set the "key" field for the data store',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',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 '{0}' error",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"})},function(e,t,n){var i=n(17),o=n(10),a=n(53),s=n(1),r=n(3).each,l=n(71),c=l.unwrap,d=l.isWrapped,u=l.assign,h=function(e){return e.replace(/\[/g,".").replace(/\]/g,"")},p=function(e,t,n){return n=n||{},"this"===t?m(e,n):m(e[t],n)},f=function(e,t,n,o){if("this"===t)throw new i.Error("E4016");var a=e[t];o.unwrapObservables&&d(a)?u(a,n):e[t]=n},g=function(e){return e=e||{},e.unwrapObservables=void 0===e.unwrapObservables||e.unwrapObservables,e},m=function(e,t){return t.unwrapObservables?c(e):e},_=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=m(e,n),a=0;a<t.length&&o;a++){var r=m(o[t[a]],n);!i&&s.isFunction(r)&&(r=r.call(o)),o=r}return o}}return Array.isArray(e)?v(e):s.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]=_(o)}return function(e,n){var i;return r(t,function(t){var o,a,s,r,l=this(e,n);if(void 0!==l){for(o=i||(i={}),a=t.split("."),s=a.length-1,r=0;r<s;r++)o=o[a[r]]={};o[a[r]]=l}}),i}},w=function(e,t,n,i){if(s.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 r=m(n,o);e.forEach(function(e,n){var l=p(r,e,o),c=!o.functionsAsIs&&s.isFunction(l)&&!d(l);n===t?o.merge&&s.isPlainObject(i)&&(!s.isDefined(l)||s.isPlainObject(l))?(l=w(r,e,l,o),a.deepExtendArraySafe(l,i,!1,!0)):c?r[e](i):f(r,e,i,o):(l=w(r,e,l,o),c&&(l=l.call(r)),r=l)})}},y=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=_,t.compileSetter=x,t.toComparable=y},function(e,t,n){function i(e){return y[x(e)]||""}function o(e,t,n){var i=new Date(e.getTime()),o=d(t)?$(t.toLowerCase()):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),s=n(33).adjust,r=n(3).each,l=n(36).camelize,c=a.isObject,d=a.isString,u=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)},m=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}},_=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-=w(i,n));return a},v=function(e){var t=0;return c(e)&&r(e,function(e,n){t+=w(e.substr(0,e.length-1),n)}),d(e)&&(t=w(e,1)),t},w=function(e,t){return f(e)*t},x=function(e){var t,n=-1;return d(e)?e:c(e)?(r(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]):""},y={millisecond:"millisecond",second:"longtime",minute:"shorttime",hour:"shorttime",day:"day",week:"day",month:"month",quarter:"quarter",year:"year"},b=function(e){return Math.floor(e/3)},C=function(e){return 3*b(e)},k=function(e,t,n,i){e=new Date(e.getTime());var o,a=new Date(e.getTime()),s=x(t);switch(s){case"second":e=new Date(1e3*Math.floor(a.getTime()/1e3));break;case"minute":e=new Date(6e4*Math.floor(a.getTime()/6e4));break;case"hour":e=new Date(36e5*Math.floor(a.getTime()/36e5));break;case"year":e.setMonth(0);case"mont