UNPKG

dash-devextreme

Version:

Wrapper of DevExtreme components for Plotly Dash

13 lines 3.92 MB
window.dash_devextreme=function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=417)}([function(e,t,n){"use strict";var i=n(1).isPlainObject;t.extend=function e(t){var n=1,o=!1;for("boolean"==typeof(t=t||{})&&(o=t,t=arguments[1]||{},n++);n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var a in r){var s,l=t[a],u=r[a],c=!1;t!==u&&(o&&u&&(i(u)||(c=Array.isArray(u)))?(s=c?l&&Array.isArray(l)?l:[]:l&&i(l)?l:{},t[a]=e(o,s,u)):void 0!==u&&(t[a]=u))}}return t},t.extendFromObject=function(e,t,n){for(var i in e=e||{},t)if(t.hasOwnProperty(i)){var o=t[i];i in e&&!n||(e[i]=o)}return e}},function(e,t,n){"use strict";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"},r=function(e){var t=Object.prototype.toString.call(e);return"object"===(void 0===e?"undefined":i(e))?o[t]||"object":void 0===e?"undefined":i(e)},a=function(e){return"function"==typeof e},s=function(e){return"number"==typeof e&&isFinite(e)||!isNaN(e-parseFloat(e))};t.isBoolean=function(e){return"boolean"==typeof e},t.isExponential=function(e){return s(e)&&-1!==e.toString().indexOf("e")},t.isDate=function(e){return"date"===r(e)},t.isDefined=function(e){return null!=e},t.isFunction=a,t.isString=function(e){return"string"==typeof e},t.isNumeric=s,t.isObject=function(e){return"object"===r(e)},t.isEmptyObject=function(e){var t;for(t in e)return!1;return!0},t.isPlainObject=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)},t.isPrimitive=function(e){return-1===["object","array","function"].indexOf(r(e))},t.isWindow=function(e){return null!=e&&e===e.window},t.isRenderer=function(e){return!(!e.jquery&&!e.dxRenderer)},t.isPromise=function(e){return e&&a(e.then)},t.isDeferred=function(e){return e&&a(e.done)&&a(e.fail)},t.type=r},function(e,t,n){"use strict";var i=n(423);e.exports=i.get()},function(e,t,n){"use strict";t.map=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},t.each=function(e,t){if(e){if("length"in e)for(var n=0;n<e.length&&!1!==t.call(e[n],n,e[n]);n++);else for(var i in e)if(!1===t.call(e[i],i,e[i]))break;return e}},t.reverseEach=function(e,t){if(e&&"length"in e&&0!==e.length)for(var n=e.length-1;n>=0&&!1!==t.call(e[n],n,e[n]);n--);}},function(e,t,n){"use strict";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},r=n(40),a=n(7),s=a.when,l=a.Deferred,u=n(3).each,c=n(1),d=[],h=[],p=[],f=function(e,t,n){if(i&&i!==e)return d.push(t),h.push(e),n=n||new l,p.push(n),n;var o=i,r=p.length;i=e;var a=t();return a||(p.length>r?a=s.apply(this,p.slice(r)):n&&n.resolve()),i=o,n&&a&&a.done&&a.done(n.resolve).fail(n.reject),!i&&d.length&&("render"===h.shift()?g:m)(d.shift(),p.shift()),a},g=function(e,t){return f("render",e,t)},m=function(e,t){return f("update",e,t)},_=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var n=!1;return u(e,function(e,i){if(i!==t[e])return n=!0,!1}),!n}return e===t},v=function(e,t,n){if(e===t)return!0;return(n=n||0)>=3||(c.isObject(e)&&c.isObject(t)?function(e,t,n){for(var i in e)if(e.hasOwnProperty(i)&&!v(e[i],t[i],n+1))return!1;for(i in t)if(!(i in e))return!1;return!0}(e,t,n):Array.isArray(e)&&Array.isArray(t)?function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!v(e[i],t[i],n+1))return!1;return!0}(e,t,n):!(!c.isDate(e)||!c.isDate(t))&&e.getTime()===t.getTime())};t.ensureDefined=function(e,t){return c.isDefined(e)?e:t},t.executeAsync=function(e,t){var n,i=new l,o=t||this,r={promise:i.promise(),abort:function(){clearTimeout(n),i.rejectWith(o)}};return n=(arguments[2]||setTimeout)(function(){var t=e.call(o);t&&t.done&&c.isFunction(t.done)?t.done(function(){i.resolveWith(o)}):i.resolveWith(o)},"number"==typeof t?t:0),r},t.deferRender=g,t.deferRenderer=function(e){return function(){var t=this;return f("render",function(){return e.call(t)})}},t.deferUpdate=m,t.deferUpdater=function(e){return function(){var t=this;return f("update",function(){return e.call(t)})}},t.splitPair=function(e){switch(void 0===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.splitQuad=function(e){switch(void 0===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}},t.findBestMatches=function(e,t,n){var i=[],o=0;return u(t,function(t,r){var a=0,s=n?n(r):r;u(e,function(e,t){var n=s[e];if(void 0!==n){if(!_(n,t))return a=-1,!1;a++}}),a<o||(a>o&&(i.length=0,o=a),i.push(r))}),i},t.normalizeKey=function(e){var t=c.isString(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9_]/g);return n&&u(n,function(e,n){t=t.replace(n,"__"+n.charCodeAt()+"__")}),t},t.denormalizeKey=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},t.equalByValue=v,t.getKeyHash=function(e){if(c.isObject(e)||Array.isArray(e))try{var t=JSON.stringify(e);return"{}"===t?e:t}catch(t){return e}return e},t.escapeRegExp=function(e){return e.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},t.applyServerDecimalSeparator=function(e){var t=r().serverDecimalSeparator;return c.isDefined(e)&&(e=e.toString().replace(".",t)),e},t.noop=function(){},t.grep=function(e,t,n){for(var i=[],o=!n,r=0;r<e.length;r++)!!t(e[r],r)===o&&i.push(e[r]);return i}},function(e,t,n){"use strict";var i,o,r,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},s=n(242),l=n(0).extend,u=n(17),c=n(8),d=c.getWindow(),h=n(63),p=n(1),f=n(30),g=p.isWindow,m=p.isFunction,_=p.isString,v=n(32),y=n(190),b=n(424),x={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},w={focusin:"focus",focusout:"blur"},C=["blur","focusout","focus","focusin","load"],T={eventName:"dxpointermove",nativeEventName:"touchmove"},k=function(e,t){return!g(e)&&"#document"!==e.nodeName&&u.elementMatches(e,t)},S=new y,I=0,P=(o={},s.add(function(e,t){o[e]=t}),{getField:function(e,t){return o[e]&&o[e][t]},callMethod:function(e,t,n,i){return o[e]&&o[e][t]&&o[e][t].apply(n,i)}}),O=function e(t,n){var i=t[0];if(i)if(u.isNode(i)||g(i))n.apply(N,t);else{if(_(i)||!("length"in i))throw v.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(){O(arguments,e)}},D=function(e,t){var n=S.get(e),o=(t=t||"").split("."),r=o.slice(1),a=!!o[0];t=o[0]||"dxEmptyEventType",n||(n={},S.set(e,n)),n[t]||(n[t]={handleObjects:[],nativeHandler:null});var s=n[t];return{addHandler:function(n,o,l){var c=function(i,o){var r,a,s=[i],u=i.currentTarget,c=i.relatedTarget;t in x&&(r=c&&u&&(c===u||u.contains(c))),void 0!==o&&s.push(o),P.callMethod(t,"handle",e,[i,l]),r||(a=n.apply(u,s)),!1===a&&(i.preventDefault(),i.stopPropagation())},d={handler:n,wrappedHandler:function(t,n){if(!i||t.type!==i)if(t.data=l,t.delegateTarget=e,o)for(var r=t.target;r&&r!==e;)k(r,o)&&(t.currentTarget=r,c(t,n)),r=r.parentNode;else c(t,n)},selector:o,type:t,data:l,namespace:r.join("."),namespaces:r,guid:++I};s.handleObjects.push(d);var h,p=1===s.handleObjects.length&&a;p&&(p=!P.callMethod(t,"setup",e,[l,r,n])),p&&(s.nativeHandler=A(t),t===T.nativeEventName&&(h={passive:!1}),s.removeListener=u.listen(e,x[t]||t,s.nativeHandler,h)),P.callMethod(t,"add",e,[d])},removeHandler:function(i,o){var s=function(t){var a,s=n[t];s.handleObjects.length?(s.handleObjects=s.handleObjects.filter(function(n){var s=r.length&&!B(n.namespaces,r)||i&&n.handler!==i||o&&n.selector!==o;return s||(a=n.handler,P.callMethod(t,"remove",e,[n])),s}),!s.handleObjects.length&&"dxEmptyEventType"!==t&&(P.callMethod(t,"teardown",e,[r,a]),s.nativeHandler&&s.removeListener(),delete n[t])):delete n[t]};if(a)s(t);else for(var l in n)s(l);0===Object.keys(n).length&&S.delete(e)},callHandlers:function(e,t){var i=!1,o=function(n){i||r.length&&!B(n.namespaces,r)||(n.wrappedHandler(e,t),i=e.isImmediatePropagationStopped())};s.handleObjects.forEach(o),r.length&&n.dxEmptyEventType&&n.dxEmptyEventType.handleObjects.forEach(o)}}},A=function(e){return function(t,n){var i=D(this,e);t=N.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},R=function(e){return function(t,n,i,o,r){r||(r=o,o=void 0),"string"!=typeof i&&(o=i,i=void 0),r||"string"!=typeof n||(r=o||i,i=void 0,o=void 0),e(t,n,i,o,r)}},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 N.Event?n:N.Event(n),i)}},V=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"===(void 0===n?"undefined":a(n))){var i=Array.prototype.slice.call(arguments,0);for(var o in n)i[1]=o,i[i.length-1]=n[o],t.apply(this,i)}else t.apply(this,arguments)}},F=function(e){if(function(e){return null==e.which&&0===e.type.indexOf("key")}(e))return null!=e.charCode?e.charCode:e.keyCode;if(function(e){return!e.which&&void 0!==e.button&&/^(?:mouse|pointer|contextmenu|drag|drop)|click/.test(e.type)}(e)){return{1:1,2:3,3:1,4:2}[e.button]}return e.which},N=h({on:E(R(V(function(e,t,n,i,o){D(e,t).addHandler(o,n,i)}))),one:E(R(function(e,t,n,i,o){N.on(e,t,n,i,function i(){N.off(e,t,n,i),o.apply(this,arguments)})})),off:E((r=V(function(e,t,n,i){D(e,t).removeHandler(i,n)}),function(e,t,n,i){"function"==typeof n&&(i=n,n=void 0),r(e,t,n,i)})),trigger:E(M(function(e,t,n){var o=t.type,r=D(e,t.type);if(P.callMethod(o,"trigger",e,[t,n]),r.callHandlers(t,n),!(P.getField(o,"noBubble")||t.isPropagationStopped()||-1!==C.indexOf(o))){var a=[];!function e(t){var n=t.parentNode;n&&(a.push(n),e(n))}(e),a.push(d);for(var s=0;a[s]&&!t.isPropagationStopped();){D(a[s],t.type).callHandlers(l(t,{currentTarget:a[s]}),n),s++}}(e.nodeType||g(e))&&(P.callMethod(o,"_default",e,[t,n]),function(e,t){var n=w[e]||e;(function(e,t){return"click"===e&&"a"===t.localName})(e,t)||m(t[n])&&(i=e,t[n](),i=void 0)}(o,e))})),triggerHandler:E(M(function(e,t,n){D(e,t.type).callHandlers(t,n)}))}),L=function(e){e&&(N.Event=e,N.Event.prototype=e.prototype)};L(function(e){return function(t,n){if(!(this instanceof N.Event))return new N.Event(t,n);t||(t={}),"string"==typeof t&&(t={type:t}),n||(n={}),e.call(this,t,n)}}(function(e,t){var n=this,i=!1,o=!1,r=!1;l(n,e),(e instanceof N.Event||c.hasWindow()&&e instanceof d.Event)&&(n.originalEvent=e,n.currentTarget=void 0),e instanceof N.Event||l(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!!(r||n.originalEvent&&n.originalEvent.defaultPrevented)},preventDefault:function(){r=!0,n.originalEvent&&n.originalEvent.preventDefault()}}),H("which",F,n),0===e.type.indexOf("touch")&&(delete t.pageX,delete t.pageY),l(n,t),n.guid=++I}));var H=function(e,t,n){Object.defineProperty(n||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})}})};b(H);var z=f(),j=f();N.set=function(e){z.fire(),N.inject(e),L(e.Event),j.fire()},N.subscribeGlobal=function(){O(arguments,R(function(){var e=arguments;N.on.apply(this,e),z.add(function(){var t=Array.prototype.slice.call(e,0);t.splice(3,1),N.off.apply(this,t)}),j.add(function(){N.on.apply(this,e)})}))},N.passiveListenerEvents=T,e.exports=N},function(e,t,n){"use strict";var i=n(2),o=n(430),r=n(32),a=n(140);o.add(function(e,t){i.fn[e]=function(n){var i;if("string"==typeof n){var o=n,a=[].slice.call(arguments).slice(1);this.each(function(){var n=t.getInstance(this);if(!n)throw r.Error("E0009",e);var s=n[o].apply(n,a);void 0===i&&(i=s)})}else this.each(function(){var e=t.getInstance(this);e?e.option(n):new t(this,n)}),i=this;return i}}),e.exports=function(e,t,n){n?t[e]=n:n=t,a.name(n,e),o.fire(e,n)}},function(e,t,n){"use strict";var i=n(1),o=i.isPromise,r=i.isDeferred,a=n(0).extend,s=n(30),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 a="done"===i?e:t;this[i](function(){if(a){var e=a&&a.apply(this,arguments);r(e)?e.done(n.resolve).fail(n.reject):o(e)?e.then(n.resolve,n.reject):n.resolve.apply(this,e?[e]:arguments)}else n["done"===i?"resolve":"reject"].apply(this,arguments)})}.bind(this)),n.promise()},this._promise.state=function(){return e._state},this._promise.promise=function(t){return t?a(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(r(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,a=function(t){return function(r){n[t]=this,e[t]=arguments.length>1?[].slice.call(arguments):r,++i===e.length&&o.resolveWith(n,e)}},s=0;s<e.length;s++)r(e[s])?e[s].promise().done(a(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){"use strict";var i=n(17),o="undefined"!=typeof window,r=o&&window;r||((r={}).window=r),e.exports={hasWindow:function(){return o},getWindow:function(){return r},hasProperty:function(e){return this.hasWindow()&&e in r},defaultScreenFactorFunc:function(e){return e<768?"xs":e<992?"sm":e<1200?"md":"lg"},getCurrentScreenFactor:function(e){return(e||this.defaultScreenFactorFunc)(i.getDocumentElement().clientWidth)},openWindow:function(){return this.hasProperty("open")?r.open():null},getNavigator:function(){return this.hasWindow()?r.navigator:{userAgent:""}}}},function(e,t,n){e.exports=n(419)()},function(e,t,n){"use strict";var i,o=n(2),r=n(5),a=n(32),s=n(59).focused,l=n(0).extend,u=n(3).each,c=(i={dx:/^dx/i,mouse:/(mouse|wheel)/i,touch:/^touch/i,keyboard:/^key/i,pointer:/^(ms)?pointer/i},function(e){var t="other";return u(i,function(n){if(this.test(e.type))return t=n,!1}),t}),d=function(e){return"dx"===c(e)},h=function(e){return"touch"===c(e)},p=function(e){return"pointer"===c(e)},f=function(e){return function(e){return"mouse"===c(e)}(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 e},_=function(e,t){var n=function(e){return m(r.Event(e,e),e)}(e);return t&&l(n,t),n};e.exports={eventSource:c,isPointerEvent:p,isMouseEvent:f,isTouchEvent:g,isKeyboardEvent:function(e){return"keyboard"===c(e)},isFakeClickEvent:function(e){return 0===e.screenX&&!e.offsetX&&0===e.pageX},hasTouches:function(e){return h(e)?(e.originalEvent.touches||[]).length:d(e)?(e.pointers||[]).length:0},eventData:function(e){return{x:e.pageX,y:e.pageY,time:e.timeStamp}},eventDelta:function(e,t){return{x:t.x-e.x,y:t.y-e.y,time:t.time-e.time||1}},needSkipEvent:function(e){var t=o(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)},createEvent:_,fireEvent:function(e){var t=_(e.originalEvent,e);return r.trigger(e.delegateTarget||t.target,t),t},addNamespace:function e(t,n){if(!n)throw a.Error("E0017");return"string"==typeof t?-1===t.indexOf(" ")?t+"."+n:e(t.split(/\s+/g),n):(u(t,function(e,i){t[e]=i+"."+n}),t.join(" "))},setEventFixMethod:function(e){m=e}}},function(e,t,n){"use strict";var i=n(4).noop,o=n(1),r=n(0).extend,a=n(3).each,s=n(31).adjust,l=n(22).dateToMilliseconds,u=o.isDefined,c=o.isNumeric,d=o.isExponential,h=Math,p=h.round,f=Math.sqrt,g=Math.PI,m=1e10,_=g/180,v=Math.LN10,y=Math.cos,b=Math.sin,x=Math.abs,w=Math.log,C=Math.floor,T=Math.ceil,k=Math.max,S=isNaN,I=Number,P=function(e,t){return e?Math.log(e)/Math.log(t):NaN},O=function(e,t){return Math.pow(t,e)},E=function(e){return(e%360+360)%360},D=function(e){return g*e/180},A=function(e){var t=D(e);return{cos:y(t),sin:b(t)}},B=function(e,t,n,i){var o=n-e,r=i-t;return Math.sqrt(r*r+o*o)},R=function(e){var t,n=x(e);return S(n)?NaN:n>0?(n=w(n)/v,(t=T(n))-n<1e-14?t:C(n)):0};function M(e,t){for(var n,i=0,o=e.length,r=[];i<o;)null!==(n=t(e[i],i))&&r.push(n),i++;return r}function V(e,t){return M(t,function(t){return e[t]?e[t]:null})}function F(e,t,n,i){var o=i;return a(t,function(t,i){e[i]&&(e[i]-=n,o-=n)}),o}function N(e){return String(e).toLowerCase()}function L(e){e&&(e.originalTop=e.top,e.originalBottom=e.bottom,e.originalLeft=e.left,e.originalRight=e.right)}function H(e){return-m<e&&e<+m?e:0}function z(e){var t=H(C(e.x)),n=H(C(e.y)),i={x:t,y:n,width:H(T(e.width+e.x))-t,height:H(T(e.height+e.y))-n};return i.isEmpty=!(i.x||i.y||i.width||i.height),i}function j(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=P(t,e.base)+i*n;return O(o,e.base)}:function(e,n){var i=e+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)*n;return t&&i*e<=0?0:i}}r(t,{decreaseGaps:function(e,t,n){var i;do{(i=V(e,t)).push(h.ceil(n/i.length)),n=F(e,t,h.min.apply(null,i),n)}while(n>0&&i.length>1);return n},normalizeEnum:N,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[N(e[t])]=1;return function(e,t){var n=N(e);return i[n]?n:t}},patchFontOptions:function(e){var t={};return a(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;return n=u(n)?n+t-90:0,o=A(n),{x:p(e.x+i*o.cos),y:p(e.y+i*o.sin)}},convertXYToPolar:function(e,t,n){var i=B(e.x,e.y,t,n),o=h.atan2(n-e.y,t-e.x);return{phi:p(E(180*o/h.PI)),r:p(i)}},processSeriesTemplate:function(e,t){var n,a,s,l=o.isFunction(e.customizeSeries)?e.customizeSeries:i,u=e.nameField,c={},d=[],h=0;for(a=(t=t||[]).length;h<a;h++)u in(s=t[h])&&((n=c[s[u]])||(n=c[s[u]]={name:s[u]},d.push(n.name)));return M(d,function(e){var t=c[e];return r(t,l.call(null,t.name))})},getCategoriesInfo:function(e,t,n){if(0===e.length)return{categories:[]};t=u(t)?t:e[0],n=u(n)?n:e[e.length-1];var i,o,r,a=M(e,function(e){return u(e)?e.valueOf():null}),s=a.indexOf(t.valueOf()),l=a.indexOf(n.valueOf()),c=!1;return s<0&&(s=0),l<0&&(l=e.length-1),l<s&&(o=l,l=s,s=o,c=!0),r=(i=e.slice(s,l+1)).length-1,{categories:i,start:i[c?r:0],end:i[c?0:r],inverted:c}},setCanvasValues:L,updatePanesCanvases:function(e,t,n){var i=0;a(e,function(e,t){t.weight=t.weight||1,i+=t.weight});var o=0,s=e.padding||10,l=n?t.width-t.left-t.right:t.height-t.top-t.bottom,u=(l-s*(e.length-1))/i,c=n?"left":"top",d=n?"right":"bottom";a(e,function(e,n){var i=p(n.weight*u);n.canvas=n.canvas||{},r(n.canvas,t),n.canvas[c]=t[c]+o,n.canvas[d]=t[d]+(l-i-o),o=o+i+s,L(n.canvas)})},unique:function(e){var t={};return M(e,function(e){var n=t[e]?null:e;return t[e]=!0,n})},map:M,getVerticallyShiftedAngularCoords:function(e,t,n){var i=e.x+e.width/2>=n.x,o=(i?e.x:e.x+e.width)-n.x,r=e.y-n.y,a=r+t,s=p(f(o*o+r*r-a*a)),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=function(e){return Array.isArray(e)?{startValue:e[0],endValue:e[1]}:e||{}},t.convertVisualRangeObject=function(e,t){return t?e:[e.startValue,e.endValue]},t.adjustVisualRange=function(e,n,i,r){var a=o.isDefined(n.startValue),s=o.isDefined(n.endValue),d="discrete"===e.axisType;r=r||i;var h=j(e,!1),p=a?n.startValue:r.min,f=s?n.endValue:r.max,g=n.length,m=r.categories;if(u(g))if(d){if(g=parseInt(g),!isNaN(g)&&isFinite(g))if(g--,s||a){if(a&&!s)f=t.getCategoriesInfo(m,p,void 0).categories[g];else if(!a&&s){var _=t.getCategoriesInfo(m,void 0,f);p=_.categories[_.categories.length-1-g]}}else f=m[m.length-1],p=m[m.length-1-g]}else"datetime"!==e.dataType||c(g)||(g=l(g)),s&&!a||!s&&!a?(u(i.max)&&(f=f>i.max?i.max:f),p=h(f,g,-1)):a&&!s&&(u(i.min)&&(p=p<i.min?i.min:p),f=h(p,g));return d||(u(i.max)&&f>i.max&&(f=i.max),u(i.min)&&p<i.min&&(p=i.min)),{startValue:p,endValue:f}},t.getAddFunction=j,t.getLog=P,t.getAdjustedLog10=function(e){return s(P(e,10))},t.raiseTo=O,t.normalizeAngle=E,t.convertAngleToRendererSpace=function(e){return 90-e},t.degreesToRadians=D,t.getCosAndSin=A,t.getDecimalOrder=R,t.getAppropriateFormat=function(e,t,n){var i,o=k(R(e),R(t)),r=-R(x(t-e)/n);return S(o)||S(r)?null:(x(o)<=4?(i="fixedPoint",r<0&&(r=0),r>4&&(r=4)):(i="exponential",(r+=o-1)>3&&(r=3)),{type:i,precision:r})},t.getDistance=B,t.roundValue=function(e,t){if(t>20&&(t=20),c(e))return d(e)?I(e.toExponential(t)):I(e.toFixed(t))},t.getPower=function(e){return e.toExponential().split("e")[1]},t.rotateBBox=function(e,t,n){var i=I(y(n*_).toFixed(3)),o=I(b(n*_).toFixed(3)),r=e.width/2,a=e.height/2,s=e.x+r,l=e.y+a,u=x(r*i)+x(a*o),c=x(r*o)+x(a*i);return z({x:t[0]+(s-t[0])*i+(l-t[1])*o-u,y:t[1]-(s-t[0])*o+(l-t[1])*i-c,width:2*u,height:2*c})},t.normalizeBBox=z},function(e,t,n){"use strict";var i=n(1).isDefined,o=n(3).each,r=n(45),a=n(40),s=function(e,t){return t?(Array.isArray(t)?t:t.toArray()).indexOf(e):-1};t.isEmpty=function(e){return Array.isArray(e)&&!e.length},t.wrapToArray=function(e){return Array.isArray(e)?e:[e]},t.intersection=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){-1!==s(i,t)&&n.push(i)}),n},t.removeDuplicates=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){-1===s(i,t)&&n.push(i)}),n},t.normalizeIndexes=function(e,t,n,s){var l={},u=0,c=a().useLegacyVisibleIndex;return o(e,function(e,i){(e=i[t])>=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,r.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},t.inArray=s,t.merge=function(e,t){for(var n=0;n<t.length;n++)e[e.length]=t[n];return e}},function(e,t,n){"use strict"; /*! * devextreme-react * Version: 18.2.3 * Build date: Thu Nov 08 2018 * * Copyright (c) 2012 - 2018 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-react */var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(253),s=n(42),l=n(443),u=n(241),c=n(256),d=n(255),h=function(e){function t(t){var n=e.call(this,t)||this;return n._templateProps=[],n._prepareProps=n._prepareProps.bind(n),n._updateTemplatesState=n._updateTemplatesState.bind(n),n.state={templates:{}},n._optionsManager=new l.default(function(e){return n.props[e]}),n}return o(t,e),t.prototype.componentWillUpdate=function(e){var t=this._prepareProps(e),n=r({},t.options,t.integrationOptions);this._optionsManager.processChangedValues(n,this.props)},t.prototype.render=function(){var e=this,t={ref:function(t){return e._element=t}};return c.elementPropNames.forEach(function(n){n in e.props&&(t[n]=e.props[n])}),s.createElement.apply(s,["div",t].concat(this._prepareChildren()))},t.prototype.componentDidMount=function(){this._updateCssClasses(null,this.props)},t.prototype.componentDidUpdate=function(e){this._updateCssClasses(e,this.props)},t.prototype.componentWillUnmount=function(){this._instance&&(a.triggerHandler(this._element,"dxremove"),this._instance.dispose())},t.prototype._prepareChildren=function(e){var t=this;void 0===e&&(e=[]),this._optionsManager.resetNestedElements();var n={};return s.Children.forEach(this.props.children,function(i){n=r({},n,u.findProps(i)),e.push(t._preprocessChild(i)||i)}),(Object.getOwnPropertyNames(this.state.templates)||[]).forEach(function(i){e.push(t.state.templates[i](n))}),e},t.prototype._preprocessChild=function(e){return this._optionsManager.registerNestedOption(e,this._expectedChildren)||e},t.prototype._createWidget=function(e){e=e||this._element;var t=this._optionsManager.getNestedOptionsObjects(this._updateTemplatesState),n=r({},this.props,t),i=this._prepareProps(n),o=r({templatesRenderAsynchronously:!0},i.defaults,i.options,i.integrationOptions);this._optionsManager.wrapEventHandlers(o),this._instance=new this._WidgetClass(e,o),this._optionsManager.setInstance(this._instance),this._instance.on("optionChanged",this._optionsManager.handleOptionChange)},t.prototype._updateTemplatesState=function(e){this.setState(function(t){var n=r({},t.templates);return e(n),{templates:n}})},t.prototype._updateCssClasses=function(e,t){var n,i,o=e?c.getClassName(e):void 0,r=c.getClassName(t);if(o!==r){var a;if(o)(a=o.split(" ").filter(function(e){return e})).length&&(n=this._element.classList).remove.apply(n,a);if(r)(a=r.split(" ").filter(function(e){return e})).length&&(i=this._element.classList).add.apply(i,a)}},t.prototype._prepareProps=function(e){var t=this,n=c.separateProps(e,this._defaults,this._templateProps),i=d.getTemplateOptions({templateProps:this._templateProps,options:n.templates,nestedOptions:p(e),stateUpdater:this._updateTemplatesState,propsGetter:function(e){return t.props[e]}}),o=r({},e.integrationOptions&&e.integrationOptions.templates,i.templates),a=Object.keys(o).length?r({integrationOptions:{templates:o}},i.templateStubs):void 0;return{options:n.options,defaults:n.defaults,integrationOptions:a}},t}(s.PureComponent);function p(e){var t={};return s.Children.forEach(e.children,function(e){t=r({},t,u.findProps(e))}),t}t.ComponentBase=h;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._extensions=[],t}return o(t,e),t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this._createWidget(),this._extensions.forEach(function(e){return e.call(t,t._element)})},t.prototype._prepareChildren=function(){var t=[],n=s.Children.toArray(this.props.children);return 1===n.length&&"string"==typeof n[0]&&t.push(s.Fragment),e.prototype._prepareChildren.call(this,t)},t.prototype._preprocessChild=function(t){return this._registerExtension(t)||e.prototype._preprocessChild.call(this,t)},t.prototype._registerExtension=function(e){var t=this;return g.isPrototypeOf(e.type)?s.cloneElement(e,{onMounted:function(e){t._extensions.push(e)}}):null},t}(h);t.Component=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.onMounted;t&&t(function(t){e._createWidget(t)})},t}(h);t.ExtensionComponent=g},function(e,t,n){"use strict";var i=n(2),o=n(63),r=n(0).extend,a=n(3).each,s=n(43).format,l=n(41).humanize,u=n(160);n(160);var c=r(!0,{},n(437)),d=n(438),h=function(e){var t=d[e];return t?"root"!==t&&t:e.substr(0,e.lastIndexOf("-"))},p=function(e,t){return e[t]||{}},f=function(e,t,n){for(var i,o=p(e,t)[n];!o&&!i;)(t=h(t))?o=p(e,t)[n]:i=!0;return o},g={},m=o({_dictionary:c,load:function(e){r(!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,r){var a,s=t._localizablePrefix+r;return o!==i&&(a=t.format(r)),a||(g[r]=l(r)),n+(a||s)})},_messageLoaded:function(e,t){return void 0!==f(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")||(a(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?g:r({},g,this.getMessagesByLocales()[u.locale()])},getFormatter:function(e){return this._getFormatterBase(e)||this._getFormatterBase(e,"en")},_getFormatterBase:function(e,t){var n=f(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){"use strict";var i,o=n(32),r=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,n,i;if(!e)return this;for(n in e)i=e[n],t="function"==typeof this.prototype[n]&&"function"==typeof i,this.prototype[n]=t?a(this.parent.prototype,n,i):i;return this},l=function(){var e,t,n;for(n=0;n<arguments.length;n++)for(t in(e=arguments[n]).ctor&&this._includedCtors.push(e.ctor),e.postCtor&&this._includedPostCtors.push(e.postCtor),e)"ctor"!==t&&"postCtor"!==t&&(this.prototype[t]=e[t]);return this},u=function(e){return this.parent===e||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(e)},c=function(){throw o.Error("E0001")},d=(i=Object.prototype.hasOwnProperty,function(e,t){for(var n in e){if(!i.call(e,n))return;t[n]=e[n]}}),h=function(){};h.inherit=function(e){var t,n=function(){if(!this||r.isWindow(this)||"function"!=typeof this.constructor)throw o.Error("E0003");var e,t=this.ctor,n=this.constructor._includedCtors,i=this.constructor._includedPostCtors;for(e=0;e<n.length;e++)n[e].call(this);for(t&&t.apply(this,arguments),e=0;e<i.length;e++)i[e].call(this)};return n.prototype=((t=function(){}).prototype=this.prototype,new t),d(this,n),n.inherit=this.inherit,n.abstract=c,n.redefine=s,n.include=l,n.subclassOf=u,n.parent=this,n._includedCtors=this._includedCtors?this._includedCtors.slice(0):[],n._includedPostCtors=this._includedPostCtors?this._includedPostCtors.slice(0):[],n.prototype.constructor=n,n.redefine(e),n},h.abstract=c,e.exports=h},function(e,t,n){"use strict";var i,o,r=n(2),a=n(17),s=n(8).getWindow(),l=n(5),u=n(32),c=n(12).inArray,d=n(1),h=d.isDefined,p=d.isRenderer,f=n(243),g=function(e){return function(t){for(var n=r(t||"body"),i=n.filter(".dx-visibility-change-handler").add(n.find(".dx-visibility-change-handler")),o=0;o<i.length;o++)l.triggerHandler(i[o],e)}},m=(o=0,function(e){return(e||"")+o++}),_=function(e){var t,n=r(e).attr("data-options")||"";"{"!==n.trim().charAt(0)&&(n="{"+n+"}");try{t=new Function("return "+n)()}catch(e){throw u.Error("E3018",e,n)}return t},v=function(e){i=e};v(function(e){return e&&e.get(0)}),t.setPublicElementWrapper=v,t.resetActiveElement=function(){var e=a.getActiveElement();e&&e!==a.getBody()&&e.blur&&e.blur()},t.createMarkupFromString=function(e){if(!s.WinJS)return r(f.parseHTML(e));var t=r("<div>");return s.WinJS.Utilities.setInnerHTMLUnsafe(t.get(0),e),t.contents()},t.triggerShownEvent=g("dxshown"),t.triggerHidingEvent=g("dxhiding"),t.triggerResizeEvent=g("dxresize"),t.getElementOptions=_,t.createComponents=function(e,t){var n=[];return e.find("[data-options]").add(e.filter("[data-options]")).each(function(e,i){var o=r(i),a=_(i);for(var s in a)(!t||c(s,t)>-1)&&o[s]&&(o[s](a[s]),n.push(o[s]("instance")))}),n},t.extractTemplateMarkup=function(e){var t=(e=r(e)).length&&e.filter(function(){var e=r(this);return e.is("script[type]")&&e.attr("type").indexOf("script")<0});return t.length?t.eq(0).html():(e=r("<div>").append(e)).html()},t.normalizeTemplateElement=function e(t){var n=h(t)&&(t.nodeType||p(t))?r(t):r("<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},t.clearSelection=function(){var e=s.getSelection();if(e&&"Caret"!==e.type)if(e.empty)e.empty();else if(e.removeAllRanges)try{e.removeAllRanges()}catch(e){}},t.uniqueId=m,t.closestCommonParent=function(e,t){var n=r(e),i=r(t);if(n[0]===i[0])return n[0];for(var o=n.parents(),a=i.parents(),s=-Math.min(o.length,a.length);s<0;s++)if(o.get(s)===a.get(s))return o.get(s)},t.clipboardText=function(e,t){var n=e.originalEvent&&e.originalEvent.clipboardData||s.clipboardData;if(1===arguments.length)return n&&n.getData("Text");n&&n.setData("Text",t)},t.toggleAttr=function(e,t,n){n?e.attr(t,n):e.removeAttr(t)},t.contains=function(e,t){return!!t&&(t=a.isTextNode(t)?t.parentNode:t,a.isDocument(e)?e.documentElement.contains(t):e.contains(t))},t.getPublicElement=function(e){return i(e)}},function(e,t,n){"use strict";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(63),r=n(4).noop,a={querySelectorAll:function(e,t){return e.querySelectorAll(t)},elementMatches:function(e,t){return(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)).call(e,t)},createElement:function(e,t){return(t=t||this._document).createElement(e)},createElementNS:function(e,t,n){return(n=n||this._document).createElementNS(e,t)},createTextNode:function(e,t){return(t=t||this._document).createTextNode(e)},isNode:function(e){return"object"===(void 0===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)}):r}};e.exports=o(a)},function(e,t,n){"use strict";var i=n(2),o=n(8),r=o.getNavigator(),a=o.getWindow(),s=n(0).extend,l=n(1).isPlainObject,u=n(3).each,c=n(15),d=n(32),h=n(30),p=n(193),f=n(118),g=n(244).sessionStorage,m=n(97),_=n(40),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},b={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),r=[];return o?r.push(parseInt(o[1],10),parseInt(o[2],10)):(o=e.match(/msapphost(\/(\d+).(\d+))?/i))&&r.push(3===parseInt(o[2],10)?10:8),{deviceType:t?"phone":n?"tablet":"desktop",platform:"win",version:r,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);return{deviceType:t?"phone":"tablet",platform:"ios",version:n?[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3]||0,10)]:[],grade:480===a.screen.height?"B":"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)]:[];return{deviceType:t?"phone":"tablet",platform:"android",version:i,grade:i.length>1&&(i[0]<4||4===i[0]&&i[1]<4)?"B":"A"}}}},x=new(c.inherit({ctor:function(e){this._window=e&&e.window||a,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()).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]),x.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]))throw d.Error("E0005")}else t=r.userAgent;return this._fromUA(t)},_getDeviceOrNameFromWindowScope:function(){var e;return o.hasWindow()&&(this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"])&&(e=this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"]),e},_getDeviceNameFromSessionStorage:function(){var e=g();if(e){var t=e.getItem("dx-force-device");try{return JSON.parse(t)}catch(e){return t}}},_fromConfig:function(e){var t=s({},y,this._currentDevice,e),n={phone:"phone"===t.deviceType,tablet:"tablet"===t.deviceType,android:"android"===t.platform,ios:"ios"===t.platform,win:"win"===t.platform,generic:"generic"===t.platform};return s(t,n)},_fromUA:function(e){var t;if(u(b,function(n,i){return!(t=i(e))}),t)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));m.changeCallback.add(function(e,t){x.detachCssClasses(t),x.attachCssClasses(e)}),x.isForced()||"win"!==x.current().platform||x.current({version:[10]}),e.exports=x,e.exports.default=e.exports},function(e,t,n){"use strict";var i,o,r,a,s,l,u=n(2),c=n(5),d=n(18),h=n(17),p=n(16),f=n(137),g=n(10),m=n(27),_=n(139),v=n(98),y=n(154).compare,b=Math.abs,x=function(e){return u(e).is("input, textarea, select, button ,:focus, :focus *")},w={requestAnimationFrame:f.requestAnimationFrame,cancelAnimationFrame:f.cancelAnimationFrame},C=_.inherit({ctor:function(e){this.callBase(e),this._makeElementClickable(u(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=g.eventData(e)},end:function(e){this._eventOutOfElement(e,this.getElement().get(0))||e.type===m.cancel?this._cancel(e):(x(e.target)||this._blurPrevented||p.resetActiveElement(),this._accept(e),this._clickAnimationFrame=w.requestAnimationFrame(function(){this._fireClickEvent(e)}.bind(this)))},_eventOutOfElement:function(e,t){var n=e.target,i=!p.contains(t,n)&&t!==n,o=g.eventDelta(g.eventData(e),this._startEventData),r=b(o.x)>10||b(o.y)>10;return i||r},_fireClickEvent:function(e){this._fireEvent("dxclick",e,{target:p.closestCommonParent(this._startTarget,e.target)})},dispose:function(){w.cancelAnimationFrame(this._clickAnimationFrame)}});i=d.real(),o=i.generic||i.ios&&y(i.version,[9,3])>=0||i.android&&y(i.version,[5])>=0,r=function(e){return o||u(e).closest(".dx-native-click").length},a=null,s=null,l=function(e){var t=e.originalEvent,n=s!==t;(!e.which||1===e.which)&&!a&&r(e.target)&&n&&(s=t,g.fireEvent({type:"dxclick",originalEvent:e}))},C=C.inherit({_makeElementClickable:function(e){r(e)||this.callBase(e),c.on(e,"click",l)},configure:function(e){this.callBase(e),e.useNative&&this.getElement().addClass("dx-native-click")},start:function(e){a=null,r(e.target)||this.callBase(e)},end:function(e){r(e.target)||this.callBase(e)},cancel:function(){a=!0},dispose:function(){this.callBase(),c.off(this.getElement(),"click",l)}}),function(){if(!d.real().generic){var e=null,t=!1,n=h.getDocument();c.subscribeGlobal(n,g.addNamespace(m.down,"NATIVE_CLICK_FIXER"),function(n){e=n.target,t=n.isDefaultPrevented()}),c.subscribeGlobal(n,g.addNamespace("click","NATIVE_CLICK_FIXER"),function(n){var i=u(n.target);t||!e||i.is(e)||u(e).is("label")||!x(i)||p.resetActiveElement(),e=null,t=!1})}}(),v({emitter:C,bubble:!0,events:["dxclick"]}),t.name="dxclick"},function(e,t,n){"use strict";var i=n(152),o=n(32);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 '{0}' 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',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:'The "{0}" converter is not found in the ConverterController',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 applie